From dd62441800929f70f53a59675794ef81c69d47bf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 19 May 2026 09:38:08 +0000 Subject: [PATCH] chore: update schemas and regenerate all SDK clients Auto-generated by schema-propagation workflow. Source: constructive-db@fc8aad0731 --- .agents/skills/cli-admin/SKILL.md | 32 +- .../skills/cli-objects/references/commit.md | 6 +- .../cli-objects/references/freeze-objects.md | 4 +- .../references/get-all-objects-from-root.md | 4 +- .../references/get-object-at-path.md | 4 +- .../references/get-path-objects-from-root.md | 4 +- .../cli-objects/references/init-empty-repo.md | 4 +- .../references/insert-node-at-path.md | 4 +- .../skills/cli-objects/references/object.md | 6 +- .agents/skills/cli-objects/references/ref.md | 6 +- .../references/remove-node-at-path.md | 4 +- .../cli-objects/references/rev-parse.md | 4 +- .../cli-objects/references/set-and-commit.md | 4 +- .../references/set-data-at-path.md | 4 +- .../references/set-props-and-commit.md | 4 +- .../skills/cli-objects/references/store.md | 6 +- .../references/update-node-at-path.md | 4 +- .agents/skills/cli-public/SKILL.md | 52 +- .../cli-public/references/billing-module.md | 6 +- .../skills/cli-public/references/commit.md | 6 +- .../references/config-secrets-org-module.md | 68 + .../references/config-secrets-user-module.md | 68 + .../cli-public/references/freeze-objects.md | 4 +- .../references/get-all-objects-from-root.md | 4 +- .../references/get-object-at-path.md | 4 +- .../references/get-path-objects-from-root.md | 4 +- .../references/inference-log-module.md | 68 + .../cli-public/references/init-empty-repo.md | 4 +- .../references/insert-node-at-path.md | 4 +- .../skills/cli-public/references/object.md | 6 +- .../skills/cli-public/references/partition.md | 6 +- .agents/skills/cli-public/references/ref.md | 6 +- .../references/remove-node-at-path.md | 4 +- .../skills/cli-public/references/rev-parse.md | 4 +- .../cli-public/references/set-and-commit.md | 4 +- .../cli-public/references/set-data-at-path.md | 4 +- .../references/set-props-and-commit.md | 4 +- .../cli-public/references/storage-module.md | 6 +- .agents/skills/cli-public/references/store.md | 6 +- .../references/update-node-at-path.md | 4 +- .agents/skills/hooks-admin/SKILL.md | 32 +- .../hooks-admin/references/app-limit-event.md | 7 +- .../hooks-admin/references/org-limit-event.md | 7 +- .../skills/hooks-objects/references/commit.md | 8 +- .../references/freeze-objects.md | 4 +- .../references/get-all-objects-from-root.md | 4 +- .../references/get-object-at-path.md | 4 +- .../references/get-path-objects-from-root.md | 4 +- .../references/init-empty-repo.md | 4 +- .../skills/hooks-objects/references/object.md | 8 +- .../skills/hooks-objects/references/ref.md | 8 +- .../references/remove-node-at-path.md | 4 +- .../hooks-objects/references/rev-parse.md | 4 +- .../references/set-data-at-path.md | 4 +- .../references/set-props-and-commit.md | 4 +- .../skills/hooks-objects/references/store.md | 8 +- .agents/skills/hooks-public/SKILL.md | 52 +- .../references/app-limit-event.md | 7 +- .../hooks-public/references/billing-module.md | 8 +- .../skills/hooks-public/references/commit.md | 8 +- .../references/config-secrets-org-module.md | 34 + .../references/config-secrets-user-module.md | 34 + .../hooks-public/references/freeze-objects.md | 4 +- .../references/get-all-objects-from-root.md | 4 +- .../references/get-object-at-path.md | 4 +- .../references/get-path-objects-from-root.md | 4 +- .../references/inference-log-module.md | 34 + .../references/init-empty-repo.md | 4 +- .../skills/hooks-public/references/object.md | 8 +- .../references/org-limit-event.md | 7 +- .../hooks-public/references/partition.md | 8 +- .agents/skills/hooks-public/references/ref.md | 8 +- .../references/remove-node-at-path.md | 4 +- .../hooks-public/references/rev-parse.md | 4 +- .../references/set-data-at-path.md | 4 +- .../references/set-props-and-commit.md | 4 +- .../hooks-public/references/storage-module.md | 8 +- .../skills/hooks-public/references/store.md | 8 +- .agents/skills/orm-admin/SKILL.md | 32 +- .../skills/orm-objects/references/commit.md | 4 +- .../orm-objects/references/freeze-objects.md | 4 +- .../references/get-all-objects-from-root.md | 4 +- .../references/get-object-at-path.md | 4 +- .../references/get-path-objects-from-root.md | 4 +- .../orm-objects/references/init-empty-repo.md | 4 +- .../skills/orm-objects/references/object.md | 4 +- .agents/skills/orm-objects/references/ref.md | 4 +- .../references/remove-node-at-path.md | 4 +- .../orm-objects/references/rev-parse.md | 4 +- .../references/set-data-at-path.md | 4 +- .../references/set-props-and-commit.md | 4 +- .../skills/orm-objects/references/store.md | 4 +- .agents/skills/orm-public/SKILL.md | 54 +- .../orm-public/references/billing-module.md | 4 +- .../skills/orm-public/references/commit.md | 4 +- .../references/config-secrets-org-module.md | 34 + .../references/config-secrets-user-module.md | 34 + .../orm-public/references/freeze-objects.md | 4 +- .../references/get-all-objects-from-root.md | 4 +- .../references/get-object-at-path.md | 4 +- .../references/get-path-objects-from-root.md | 4 +- .../references/inference-log-module.md | 34 + .../orm-public/references/init-empty-repo.md | 4 +- .../skills/orm-public/references/object.md | 4 +- .../skills/orm-public/references/partition.md | 4 +- .agents/skills/orm-public/references/ref.md | 4 +- .../references/remove-node-at-path.md | 4 +- .../skills/orm-public/references/rev-parse.md | 4 +- .../orm-public/references/set-data-at-path.md | 4 +- .../references/set-props-and-commit.md | 4 +- .../orm-public/references/storage-module.md | 4 +- .agents/skills/orm-public/references/store.md | 4 +- sdk/constructive-cli/src/admin/cli/README.md | 800 +- .../src/admin/cli/commands.ts | 66 +- .../src/admin/cli/commands/app-limit-event.ts | 203 +- .../src/admin/cli/commands/org-limit-event.ts | 203 +- sdk/constructive-cli/src/admin/orm/README.md | 810 +- sdk/constructive-cli/src/admin/orm/index.ts | 64 +- .../src/admin/orm/input-types.ts | 4812 +++--- .../src/admin/orm/models/appLimitEvent.ts | 110 + .../src/admin/orm/models/index.ts | 32 +- .../src/admin/orm/models/orgLimitEvent.ts | 110 + .../src/objects/cli/README.md | 40 +- .../src/objects/cli/commands/commit.ts | 24 +- .../cli/commands/get-all-objects-from-root.ts | 4 +- .../cli/commands/get-object-at-path.ts | 4 +- .../commands/get-path-objects-from-root.ts | 4 +- .../src/objects/cli/commands/object.ts | 24 +- .../src/objects/cli/commands/ref.ts | 24 +- .../src/objects/cli/commands/rev-parse.ts | 4 +- .../src/objects/cli/commands/store.ts | 24 +- .../src/objects/orm/README.md | 58 +- .../src/objects/orm/input-types.ts | 84 +- .../src/objects/orm/query/index.ts | 16 +- sdk/constructive-cli/src/public/README.md | 2 +- sdk/constructive-cli/src/public/cli/README.md | 1081 +- .../src/public/cli/commands.ts | 98 +- .../public/cli/commands/app-limit-event.ts | 203 +- .../src/public/cli/commands/billing-module.ts | 44 + .../src/public/cli/commands/commit.ts | 24 +- ...module.ts => config-secrets-org-module.ts} | 46 +- .../commands/config-secrets-user-module.ts | 325 + .../cli/commands/get-all-objects-from-root.ts | 4 +- .../public/cli/commands/get-object-at-path.ts | 4 +- .../commands/get-path-objects-from-root.ts | 4 +- .../cli/commands/inference-log-module.ts | 479 + .../src/public/cli/commands/object.ts | 24 +- .../public/cli/commands/org-limit-event.ts | 203 +- .../src/public/cli/commands/partition.ts | 22 + .../src/public/cli/commands/ref.ts | 24 +- .../src/public/cli/commands/rev-parse.ts | 4 +- .../src/public/cli/commands/storage-module.ts | 22 + .../src/public/cli/commands/store.ts | 24 +- sdk/constructive-cli/src/public/orm/README.md | 1159 +- sdk/constructive-cli/src/public/orm/index.ts | 68 +- .../src/public/orm/input-types.ts | 5269 +++--- .../src/public/orm/models/appLimitEvent.ts | 110 + .../orm/models/configSecretsOrgModule.ts | 246 + .../orm/models/configSecretsUserModule.ts | 246 + .../orm/models/encryptedSecretsModule.ts | 246 - .../src/public/orm/models/index.ts | 34 +- .../public/orm/models/inferenceLogModule.ts | 244 + .../src/public/orm/models/orgLimitEvent.ts | 110 + .../src/public/orm/mutation/index.ts | 314 +- .../src/public/orm/query/index.ts | 194 +- .../src/admin/hooks/README.md | 718 +- .../src/admin/hooks/index.ts | 2 +- .../src/admin/hooks/invalidation.ts | 544 +- .../src/admin/hooks/mutation-keys.ts | 304 +- .../src/admin/hooks/mutations/index.ts | 92 +- .../useDeleteAppLimitEventMutation.ts | 98 + .../useDeleteOrgLimitEventMutation.ts | 98 + .../useUpdateAppLimitEventMutation.ts | 116 + .../useUpdateOrgLimitEventMutation.ts | 116 + .../src/admin/hooks/queries/index.ts | 62 +- .../hooks/queries/useAppLimitEventQuery.ts | 138 + .../hooks/queries/useOrgLimitEventQuery.ts | 138 + .../src/admin/hooks/query-keys.ts | 284 +- .../src/admin/orm/README.md | 810 +- sdk/constructive-react/src/admin/orm/index.ts | 64 +- .../src/admin/orm/input-types.ts | 4812 +++--- .../src/admin/orm/models/appLimitEvent.ts | 110 + .../src/admin/orm/models/index.ts | 32 +- .../src/admin/orm/models/orgLimitEvent.ts | 110 + .../src/admin/schema-types.ts | 4514 ++--- sdk/constructive-react/src/admin/types.ts | 284 +- .../src/objects/hooks/README.md | 32 +- .../queries/useGetAllObjectsFromRootQuery.ts | 6 +- .../hooks/queries/useGetObjectAtPathQuery.ts | 6 +- .../queries/useGetPathObjectsFromRootQuery.ts | 6 +- .../objects/hooks/queries/useRevParseQuery.ts | 6 +- .../src/objects/orm/README.md | 58 +- .../src/objects/orm/input-types.ts | 84 +- .../src/objects/orm/query/index.ts | 16 +- .../src/objects/schema-types.ts | 88 +- sdk/constructive-react/src/objects/types.ts | 8 +- sdk/constructive-react/src/public/README.md | 2 +- .../src/public/hooks/README.md | 938 +- .../src/public/hooks/index.ts | 2 +- .../src/public/hooks/invalidation.ts | 594 +- .../src/public/hooks/mutation-keys.ts | 363 +- .../src/public/hooks/mutations/index.ts | 96 +- ...useCreateConfigSecretsOrgModuleMutation.ts | 91 + ...seCreateConfigSecretsUserModuleMutation.ts | 91 + ...useCreateEncryptedSecretsModuleMutation.ts | 91 - .../useCreateInferenceLogModuleMutation.ts | 91 + .../useDeleteAppLimitEventMutation.ts | 98 + ...useDeleteConfigSecretsOrgModuleMutation.ts | 104 + ...seDeleteConfigSecretsUserModuleMutation.ts | 104 + ...=> useDeleteInferenceLogModuleMutation.ts} | 46 +- .../useDeleteOrgLimitEventMutation.ts | 98 + .../useUpdateAppLimitEventMutation.ts | 116 + ...useUpdateConfigSecretsOrgModuleMutation.ts | 116 + ...seUpdateConfigSecretsUserModuleMutation.ts | 116 + ...useUpdateEncryptedSecretsModuleMutation.ts | 116 - .../useUpdateInferenceLogModuleMutation.ts | 116 + .../useUpdateOrgLimitEventMutation.ts | 116 + .../src/public/hooks/queries/index.ts | 70 +- .../hooks/queries/useAppLimitEventQuery.ts | 138 + .../queries/useConfigSecretsOrgModuleQuery.ts | 146 + .../useConfigSecretsOrgModulesQuery.ts | 180 + .../useConfigSecretsUserModuleQuery.ts | 146 + .../useConfigSecretsUserModulesQuery.ts | 182 + .../queries/useEncryptedSecretsModuleQuery.ts | 146 - .../useEncryptedSecretsModulesQuery.ts | 180 - .../queries/useGetAllObjectsFromRootQuery.ts | 6 +- .../hooks/queries/useGetObjectAtPathQuery.ts | 6 +- .../queries/useGetPathObjectsFromRootQuery.ts | 6 +- .../queries/useInferenceLogModuleQuery.ts | 144 + .../queries/useInferenceLogModulesQuery.ts | 171 + .../hooks/queries/useOrgLimitEventQuery.ts | 138 + .../public/hooks/queries/useRevParseQuery.ts | 6 +- .../src/public/hooks/query-keys.ts | 318 +- .../src/public/orm/README.md | 1159 +- .../src/public/orm/index.ts | 68 +- .../src/public/orm/input-types.ts | 5269 +++--- .../src/public/orm/models/appLimitEvent.ts | 110 + .../orm/models/configSecretsOrgModule.ts | 246 + .../orm/models/configSecretsUserModule.ts | 246 + .../orm/models/encryptedSecretsModule.ts | 246 - .../src/public/orm/models/index.ts | 34 +- .../public/orm/models/inferenceLogModule.ts | 244 + .../src/public/orm/models/orgLimitEvent.ts | 110 + .../src/public/orm/mutation/index.ts | 314 +- .../src/public/orm/query/index.ts | 194 +- .../src/public/schema-types.ts | 6229 +++---- sdk/constructive-react/src/public/types.ts | 303 +- sdk/constructive-sdk/schemas/admin.graphql | 11130 ++++++------ sdk/constructive-sdk/schemas/objects.graphql | 112 +- sdk/constructive-sdk/schemas/public.graphql | 14263 +++++++++------- sdk/constructive-sdk/src/admin/orm/README.md | 810 +- sdk/constructive-sdk/src/admin/orm/index.ts | 64 +- .../src/admin/orm/input-types.ts | 4812 +++--- .../src/admin/orm/models/appLimitEvent.ts | 110 + .../src/admin/orm/models/index.ts | 32 +- .../src/admin/orm/models/orgLimitEvent.ts | 110 + .../src/objects/orm/README.md | 58 +- .../src/objects/orm/input-types.ts | 84 +- .../src/objects/orm/query/index.ts | 16 +- sdk/constructive-sdk/src/public/README.md | 2 +- sdk/constructive-sdk/src/public/orm/README.md | 1159 +- sdk/constructive-sdk/src/public/orm/index.ts | 68 +- .../src/public/orm/input-types.ts | 5269 +++--- .../src/public/orm/models/appLimitEvent.ts | 110 + .../orm/models/configSecretsOrgModule.ts | 246 + .../orm/models/configSecretsUserModule.ts | 246 + .../orm/models/encryptedSecretsModule.ts | 246 - .../src/public/orm/models/index.ts | 34 +- .../public/orm/models/inferenceLogModule.ts | 244 + .../src/public/orm/models/orgLimitEvent.ts | 110 + .../src/public/orm/mutation/index.ts | 314 +- .../src/public/orm/query/index.ts | 194 +- 272 files changed, 53019 insertions(+), 40365 deletions(-) create mode 100644 .agents/skills/cli-public/references/config-secrets-org-module.md create mode 100644 .agents/skills/cli-public/references/config-secrets-user-module.md create mode 100644 .agents/skills/cli-public/references/inference-log-module.md create mode 100644 .agents/skills/hooks-public/references/config-secrets-org-module.md create mode 100644 .agents/skills/hooks-public/references/config-secrets-user-module.md create mode 100644 .agents/skills/hooks-public/references/inference-log-module.md create mode 100644 .agents/skills/orm-public/references/config-secrets-org-module.md create mode 100644 .agents/skills/orm-public/references/config-secrets-user-module.md create mode 100644 .agents/skills/orm-public/references/inference-log-module.md rename sdk/constructive-cli/src/public/cli/commands/{encrypted-secrets-module.ts => config-secrets-org-module.ts} (76%) create mode 100644 sdk/constructive-cli/src/public/cli/commands/config-secrets-user-module.ts create mode 100644 sdk/constructive-cli/src/public/cli/commands/inference-log-module.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/configSecretsOrgModule.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/configSecretsUserModule.ts delete mode 100644 sdk/constructive-cli/src/public/orm/models/encryptedSecretsModule.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/inferenceLogModule.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts delete mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateInferenceLogModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts rename sdk/constructive-react/src/public/hooks/mutations/{useDeleteEncryptedSecretsModuleMutation.ts => useDeleteInferenceLogModuleMutation.ts} (53%) create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts delete mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateInferenceLogModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppLimitEventQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModulesQuery.ts delete mode 100644 sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts delete mode 100644 sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useInferenceLogModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useInferenceLogModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventQuery.ts create mode 100644 sdk/constructive-react/src/public/orm/models/configSecretsOrgModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/configSecretsUserModule.ts delete mode 100644 sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/inferenceLogModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/configSecretsOrgModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/configSecretsUserModule.ts delete mode 100644 sdk/constructive-sdk/src/public/orm/models/encryptedSecretsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/inferenceLogModule.ts diff --git a/.agents/skills/cli-admin/SKILL.md b/.agents/skills/cli-admin/SKILL.md index 0e627cc769..0d9e3614ca 100644 --- a/.agents/skills/cli-admin/SKILL.md +++ b/.agents/skills/cli-admin/SKILL.md @@ -65,42 +65,42 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-credit](references/app-limit-credit.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) +- [org-permission-default](references/org-permission-default.md) +- [app-membership-default](references/app-membership-default.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-membership-default](references/org-membership-default.md) +- [org-owner-grant](references/org-owner-grant.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) - [app-limit-cap](references/app-limit-cap.md) - [org-limit-cap](references/org-limit-cap.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [membership-type](references/membership-type.md) +- [org-chart-edge](references/org-chart-edge.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) - [org-limit-credit](references/org-limit-credit.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) - [app-limit-warning](references/app-limit-warning.md) -- [org-limit-warning](references/org-limit-warning.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) +- [org-limit-warning](references/org-limit-warning.md) +- [membership-type](references/membership-type.md) - [app-grant](references/app-grant.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [org-grant](references/org-grant.md) -- [org-chart-edge](references/org-chart-edge.md) - [usage-snapshot](references/usage-snapshot.md) -- [app-limit](references/app-limit.md) -- [app-invite](references/app-invite.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [org-membership-setting](references/org-membership-setting.md) -- [org-limit-aggregate](references/org-limit-aggregate.md) -- [org-limit](references/org-limit.md) - [org-member-profile](references/org-member-profile.md) - [app-membership](references/app-membership.md) -- [org-invite](references/org-invite.md) +- [app-limit](references/app-limit.md) - [org-membership](references/org-membership.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) +- [org-limit](references/org-limit.md) +- [app-invite](references/app-invite.md) +- [org-invite](references/org-invite.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) - [org-is-manager-of](references/org-is-manager-of.md) diff --git a/.agents/skills/cli-objects/references/commit.md b/.agents/skills/cli-objects/references/commit.md index 62eca94282..0f0e47f7b0 100644 --- a/.agents/skills/cli-objects/references/commit.md +++ b/.agents/skills/cli-objects/references/commit.md @@ -12,8 +12,8 @@ csdk commit list --where.. --orderBy csdk commit list --limit 10 --after csdk commit find-first --where.. csdk commit get --id -csdk commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] -csdk commit update --id [--message ] [--databaseId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit update --id [--message ] [--scopeId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] csdk commit delete --id ``` @@ -58,7 +58,7 @@ csdk commit list --where.id.equalTo --orderBy ID_ASC ### Create a commit ```bash -csdk commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] ``` ### Get a commit by id diff --git a/.agents/skills/cli-objects/references/freeze-objects.md b/.agents/skills/cli-objects/references/freeze-objects.md index e4eac21087..16c66772cb 100644 --- a/.agents/skills/cli-objects/references/freeze-objects.md +++ b/.agents/skills/cli-objects/references/freeze-objects.md @@ -7,7 +7,7 @@ Execute the freezeObjects mutation ## Usage ```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id +csdk freeze-objects --input.clientMutationId --input.sId --input.id ``` ## Examples @@ -15,5 +15,5 @@ csdk freeze-objects --input.clientMutationId --input.databaseId ### Run freezeObjects ```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id +csdk freeze-objects --input.clientMutationId --input.sId --input.id ``` diff --git a/.agents/skills/cli-objects/references/get-all-objects-from-root.md b/.agents/skills/cli-objects/references/get-all-objects-from-root.md index 291a443793..c9509c4e04 100644 --- a/.agents/skills/cli-objects/references/get-all-objects-from-root.md +++ b/.agents/skills/cli-objects/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after +csdk get-all-objects-from-root --sId --id --first --offset --after ``` ## Examples @@ -15,5 +15,5 @@ csdk get-all-objects-from-root --databaseId --id --first --o ### Run getAllObjectsFromRoot ```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after +csdk get-all-objects-from-root --sId --id --first --offset --after ``` diff --git a/.agents/skills/cli-objects/references/get-object-at-path.md b/.agents/skills/cli-objects/references/get-object-at-path.md index 61a0fde431..c89a387d1a 100644 --- a/.agents/skills/cli-objects/references/get-object-at-path.md +++ b/.agents/skills/cli-objects/references/get-object-at-path.md @@ -7,7 +7,7 @@ Execute the getObjectAtPath query ## Usage ```bash -csdk get-object-at-path --dbId --storeId --path --refname +csdk get-object-at-path --sId --storeId --path --refname ``` ## Examples @@ -15,5 +15,5 @@ csdk get-object-at-path --dbId --storeId --path --refname ### Run getObjectAtPath ```bash -csdk get-object-at-path --dbId --storeId --path --refname +csdk get-object-at-path --sId --storeId --path --refname ``` diff --git a/.agents/skills/cli-objects/references/get-path-objects-from-root.md b/.agents/skills/cli-objects/references/get-path-objects-from-root.md index 172092437a..6dcfeb1272 100644 --- a/.agents/skills/cli-objects/references/get-path-objects-from-root.md +++ b/.agents/skills/cli-objects/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after +csdk get-path-objects-from-root --sId --id --path --first --offset --after ``` ## Examples @@ -15,5 +15,5 @@ csdk get-path-objects-from-root --databaseId --id --path ### Run getPathObjectsFromRoot ```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after +csdk get-path-objects-from-root --sId --id --path --first --offset --after ``` diff --git a/.agents/skills/cli-objects/references/init-empty-repo.md b/.agents/skills/cli-objects/references/init-empty-repo.md index 7ba5aa8199..22523a8cd8 100644 --- a/.agents/skills/cli-objects/references/init-empty-repo.md +++ b/.agents/skills/cli-objects/references/init-empty-repo.md @@ -7,7 +7,7 @@ Execute the initEmptyRepo mutation ## Usage ```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId +csdk init-empty-repo --input.clientMutationId --input.sId --input.storeId ``` ## Examples @@ -15,5 +15,5 @@ csdk init-empty-repo --input.clientMutationId --input.dbId --inp ### Run initEmptyRepo ```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId +csdk init-empty-repo --input.clientMutationId --input.sId --input.storeId ``` diff --git a/.agents/skills/cli-objects/references/insert-node-at-path.md b/.agents/skills/cli-objects/references/insert-node-at-path.md index b93267c911..5a9e3b7ba3 100644 --- a/.agents/skills/cli-objects/references/insert-node-at-path.md +++ b/.agents/skills/cli-objects/references/insert-node-at-path.md @@ -7,7 +7,7 @@ Execute the insertNodeAtPath mutation ## Usage ```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk insert-node-at-path --input.clientMutationId --input.dbId - ### Run insertNodeAtPath ```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-objects/references/object.md b/.agents/skills/cli-objects/references/object.md index 97a6238558..49192ead95 100644 --- a/.agents/skills/cli-objects/references/object.md +++ b/.agents/skills/cli-objects/references/object.md @@ -12,8 +12,8 @@ csdk object list --where.. --orderBy csdk object list --limit 10 --after csdk object find-first --where.. csdk object get --id -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] -csdk object update --id [--databaseId ] [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object create --scopeId [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object update --id [--scopeId ] [--kids ] [--ktree ] [--data ] [--frzn ] csdk object delete --id ``` @@ -58,7 +58,7 @@ csdk object list --where.id.equalTo --orderBy ID_ASC ### Create a object ```bash -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object create --scopeId [--kids ] [--ktree ] [--data ] [--frzn ] ``` ### Get a object by id diff --git a/.agents/skills/cli-objects/references/ref.md b/.agents/skills/cli-objects/references/ref.md index 5369e75209..da2eb0434f 100644 --- a/.agents/skills/cli-objects/references/ref.md +++ b/.agents/skills/cli-objects/references/ref.md @@ -12,8 +12,8 @@ csdk ref list --where.. --orderBy csdk ref list --limit 10 --after csdk ref find-first --where.. csdk ref get --id -csdk ref create --name --databaseId --storeId [--commitId ] -csdk ref update --id [--name ] [--databaseId ] [--storeId ] [--commitId ] +csdk ref create --name --scopeId --storeId [--commitId ] +csdk ref update --id [--name ] [--scopeId ] [--storeId ] [--commitId ] csdk ref delete --id ``` @@ -58,7 +58,7 @@ csdk ref list --where.id.equalTo --orderBy ID_ASC ### Create a ref ```bash -csdk ref create --name --databaseId --storeId [--commitId ] +csdk ref create --name --scopeId --storeId [--commitId ] ``` ### Get a ref by id diff --git a/.agents/skills/cli-objects/references/remove-node-at-path.md b/.agents/skills/cli-objects/references/remove-node-at-path.md index 9db6761b91..7376ea0cad 100644 --- a/.agents/skills/cli-objects/references/remove-node-at-path.md +++ b/.agents/skills/cli-objects/references/remove-node-at-path.md @@ -7,7 +7,7 @@ Execute the removeNodeAtPath mutation ## Usage ```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path +csdk remove-node-at-path --input.clientMutationId --input.sId --input.root --input.path ``` ## Examples @@ -15,5 +15,5 @@ csdk remove-node-at-path --input.clientMutationId --input.dbId - ### Run removeNodeAtPath ```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path +csdk remove-node-at-path --input.clientMutationId --input.sId --input.root --input.path ``` diff --git a/.agents/skills/cli-objects/references/rev-parse.md b/.agents/skills/cli-objects/references/rev-parse.md index 35c6f3dcc8..c7240fd324 100644 --- a/.agents/skills/cli-objects/references/rev-parse.md +++ b/.agents/skills/cli-objects/references/rev-parse.md @@ -7,7 +7,7 @@ Execute the revParse query ## Usage ```bash -csdk rev-parse --dbId --storeId --refname +csdk rev-parse --sId --storeId --refname ``` ## Examples @@ -15,5 +15,5 @@ csdk rev-parse --dbId --storeId --refname ### Run revParse ```bash -csdk rev-parse --dbId --storeId --refname +csdk rev-parse --sId --storeId --refname ``` diff --git a/.agents/skills/cli-objects/references/set-and-commit.md b/.agents/skills/cli-objects/references/set-and-commit.md index 897356944a..f13e45b5a9 100644 --- a/.agents/skills/cli-objects/references/set-and-commit.md +++ b/.agents/skills/cli-objects/references/set-and-commit.md @@ -7,7 +7,7 @@ Execute the setAndCommit mutation ## Usage ```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree +csdk set-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk set-and-commit --input.clientMutationId --input.dbId --inpu ### Run setAndCommit ```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree +csdk set-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-objects/references/set-data-at-path.md b/.agents/skills/cli-objects/references/set-data-at-path.md index 965cece542..0b30c6a3ab 100644 --- a/.agents/skills/cli-objects/references/set-data-at-path.md +++ b/.agents/skills/cli-objects/references/set-data-at-path.md @@ -7,7 +7,7 @@ Execute the setDataAtPath mutation ## Usage ```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data +csdk set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data ``` ## Examples @@ -15,5 +15,5 @@ csdk set-data-at-path --input.clientMutationId --input.dbId --in ### Run setDataAtPath ```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data +csdk set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data ``` diff --git a/.agents/skills/cli-objects/references/set-props-and-commit.md b/.agents/skills/cli-objects/references/set-props-and-commit.md index 9dd2bc2ec0..dcb02d3da3 100644 --- a/.agents/skills/cli-objects/references/set-props-and-commit.md +++ b/.agents/skills/cli-objects/references/set-props-and-commit.md @@ -7,7 +7,7 @@ Execute the setPropsAndCommit mutation ## Usage ```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data +csdk set-props-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data ``` ## Examples @@ -15,5 +15,5 @@ csdk set-props-and-commit --input.clientMutationId --input.dbId ### Run setPropsAndCommit ```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data +csdk set-props-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data ``` diff --git a/.agents/skills/cli-objects/references/store.md b/.agents/skills/cli-objects/references/store.md index 25b76714d1..73ff0959f8 100644 --- a/.agents/skills/cli-objects/references/store.md +++ b/.agents/skills/cli-objects/references/store.md @@ -12,8 +12,8 @@ csdk store list --where.. --orderBy csdk store list --limit 10 --after csdk store find-first --where.. csdk store get --id -csdk store create --name --databaseId [--hash ] -csdk store update --id [--name ] [--databaseId ] [--hash ] +csdk store create --name --scopeId [--hash ] +csdk store update --id [--name ] [--scopeId ] [--hash ] csdk store delete --id ``` @@ -58,7 +58,7 @@ csdk store list --where.id.equalTo --orderBy ID_ASC ### Create a store ```bash -csdk store create --name --databaseId [--hash ] +csdk store create --name --scopeId [--hash ] ``` ### Get a store by id diff --git a/.agents/skills/cli-objects/references/update-node-at-path.md b/.agents/skills/cli-objects/references/update-node-at-path.md index 8d52fff70e..cd28f74f5e 100644 --- a/.agents/skills/cli-objects/references/update-node-at-path.md +++ b/.agents/skills/cli-objects/references/update-node-at-path.md @@ -7,7 +7,7 @@ Execute the updateNodeAtPath mutation ## Usage ```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk update-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk update-node-at-path --input.clientMutationId --input.dbId - ### Run updateNodeAtPath ```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk update-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-public/SKILL.md b/.agents/skills/cli-public/SKILL.md index a1b996afa6..2b2f4efb21 100644 --- a/.agents/skills/cli-public/SKILL.md +++ b/.agents/skills/cli-public/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-public -description: CLI tool (csdk) for the public API — provides CRUD commands for 148 tables and 69 custom operations +description: CLI tool (csdk) for the public API — provides CRUD commands for 150 tables and 69 custom operations --- # cli-public -CLI tool (csdk) for the public API — provides CRUD commands for 148 tables and 69 custom operations +CLI tool (csdk) for the public API — provides CRUD commands for 150 tables and 69 custom operations ## Usage @@ -59,9 +59,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-managers-record](references/org-get-managers-record.md) - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [get-all-record](references/get-all-record.md) +- [object](references/object.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) -- [object](references/object.md) - [database](references/database.md) - [schema](references/schema.md) - [table](references/table.md) @@ -86,6 +86,7 @@ See the `references/` directory for detailed per-entity API documentation: - [session-secrets-module](references/session-secrets-module.md) - [identity-providers-module](references/identity-providers-module.md) - [realtime-module](references/realtime-module.md) +- [config-secrets-org-module](references/config-secrets-org-module.md) - [schema-grant](references/schema-grant.md) - [default-privilege](references/default-privilege.md) - [enum](references/enum.md) @@ -110,7 +111,7 @@ See the `references/` directory for detailed per-entity API documentation: - [default-ids-module](references/default-ids-module.md) - [denormalized-table-field](references/denormalized-table-field.md) - [emails-module](references/emails-module.md) -- [encrypted-secrets-module](references/encrypted-secrets-module.md) +- [config-secrets-user-module](references/config-secrets-user-module.md) - [invites-module](references/invites-module.md) - [events-module](references/events-module.md) - [limits-module](references/limits-module.md) @@ -164,44 +165,45 @@ See the `references/` directory for detailed per-entity API documentation: - [agent-thread](references/agent-thread.md) - [agent-message](references/agent-message.md) - [agent-task](references/agent-task.md) -- [role-type](references/role-type.md) - [identity-provider](references/identity-provider.md) - [ref](references/ref.md) - [store](references/store.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) +- [role-type](references/role-type.md) +- [migrate-file](references/migrate-file.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) -- [app-limit-cap](references/app-limit-cap.md) -- [org-limit-cap](references/org-limit-cap.md) -- [membership-type](references/membership-type.md) -- [migrate-file](references/migrate-file.md) - [devices-module](references/devices-module.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) - [node-type-registry](references/node-type-registry.md) +- [app-limit-cap](references/app-limit-cap.md) - [app-limit-default](references/app-limit-default.md) +- [org-limit-cap](references/org-limit-cap.md) - [org-limit-default](references/org-limit-default.md) -- [app-limit-warning](references/app-limit-warning.md) - [user-connected-account](references/user-connected-account.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) +- [app-limit-warning](references/app-limit-warning.md) - [commit](references/commit.md) - [pubkey-setting](references/pubkey-setting.md) - [rate-limits-module](references/rate-limits-module.md) - [usage-snapshot](references/usage-snapshot.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) +- [membership-type](references/membership-type.md) - [rls-setting](references/rls-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [rls-module](references/rls-module.md) +- [inference-log-module](references/inference-log-module.md) - [rate-limit-meters-module](references/rate-limit-meters-module.md) - [plans-module](references/plans-module.md) - [sql-action](references/sql-action.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [database-setting](references/database-setting.md) +- [org-membership-setting](references/org-membership-setting.md) - [billing-module](references/billing-module.md) -- [ast-migration](references/ast-migration.md) +- [app-membership](references/app-membership.md) - [user](references/user.md) -- [org-membership-setting](references/org-membership-setting.md) +- [ast-migration](references/ast-migration.md) - [webauthn-setting](references/webauthn-setting.md) -- [app-membership](references/app-membership.md) - [billing-provider-module](references/billing-provider-module.md) - [hierarchy-module](references/hierarchy-module.md) - [current-user-id](references/current-user-id.md) @@ -218,11 +220,11 @@ See the `references/` directory for detailed per-entity API documentation: - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) - [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [get-all-objects-from-root](references/get-all-objects-from-root.md) - [get-path-objects-from-root](references/get-path-objects-from-root.md) - [get-object-at-path](references/get-object-at-path.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [current-user](references/current-user.md) - [send-account-deletion-email](references/send-account-deletion-email.md) - [sign-out](references/sign-out.md) @@ -248,7 +250,10 @@ See the `references/` directory for detailed per-entity API documentation: - [remove-node-at-path](references/remove-node-at-path.md) - [copy-template-to-blueprint](references/copy-template-to-blueprint.md) - [provision-spatial-relation](references/provision-spatial-relation.md) +- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [bootstrap-user](references/bootstrap-user.md) +- [sign-up](references/sign-up.md) +- [sign-in](references/sign-in.md) - [set-field-order](references/set-field-order.md) - [provision-check-constraint](references/provision-check-constraint.md) - [provision-unique-constraint](references/provision-unique-constraint.md) @@ -262,14 +267,11 @@ See the `references/` directory for detailed per-entity API documentation: - [set-and-commit](references/set-and-commit.md) - [provision-relation](references/provision-relation.md) - [apply-rls](references/apply-rls.md) -- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [create-user-database](references/create-user-database.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) -- [sign-up](references/sign-up.md) - [request-cross-origin-token](references/request-cross-origin-token.md) -- [sign-in](references/sign-in.md) - [provision-table](references/provision-table.md) +- [send-verification-email](references/send-verification-email.md) +- [forgot-password](references/forgot-password.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-public/references/billing-module.md b/.agents/skills/cli-public/references/billing-module.md index a2ab7e635a..ee7b7f8de4 100644 --- a/.agents/skills/cli-public/references/billing-module.md +++ b/.agents/skills/cli-public/references/billing-module.md @@ -12,8 +12,8 @@ csdk billing-module list --where.. --orderBy csdk billing-module list --limit 10 --after csdk billing-module find-first --where.. csdk billing-module get --id -csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--recordUsageFunction ] [--prefix ] -csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--recordUsageFunction ] [--prefix ] +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--recordUsageFunction ] [--prefix ] +csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--recordUsageFunction ] [--prefix ] csdk billing-module delete --id ``` @@ -58,7 +58,7 @@ csdk billing-module list --where.id.equalTo --orderBy ID_ASC ### Create a billingModule ```bash -csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--recordUsageFunction ] [--prefix ] +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--recordUsageFunction ] [--prefix ] ``` ### Get a billingModule by id diff --git a/.agents/skills/cli-public/references/commit.md b/.agents/skills/cli-public/references/commit.md index 62eca94282..0f0e47f7b0 100644 --- a/.agents/skills/cli-public/references/commit.md +++ b/.agents/skills/cli-public/references/commit.md @@ -12,8 +12,8 @@ csdk commit list --where.. --orderBy csdk commit list --limit 10 --after csdk commit find-first --where.. csdk commit get --id -csdk commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] -csdk commit update --id [--message ] [--databaseId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit update --id [--message ] [--scopeId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] csdk commit delete --id ``` @@ -58,7 +58,7 @@ csdk commit list --where.id.equalTo --orderBy ID_ASC ### Create a commit ```bash -csdk commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] ``` ### Get a commit by id diff --git a/.agents/skills/cli-public/references/config-secrets-org-module.md b/.agents/skills/cli-public/references/config-secrets-org-module.md new file mode 100644 index 0000000000..f7e31391e2 --- /dev/null +++ b/.agents/skills/cli-public/references/config-secrets-org-module.md @@ -0,0 +1,68 @@ +# configSecretsOrgModule + + + +CRUD operations for ConfigSecretsOrgModule records via csdk CLI + +## Usage + +```bash +csdk config-secrets-org-module list +csdk config-secrets-org-module list --where.. --orderBy +csdk config-secrets-org-module list --limit 10 --after +csdk config-secrets-org-module find-first --where.. +csdk config-secrets-org-module get --id +csdk config-secrets-org-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +csdk config-secrets-org-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] +csdk config-secrets-org-module delete --id +``` + +## Examples + +### List configSecretsOrgModule records + +```bash +csdk config-secrets-org-module list +``` + +### List configSecretsOrgModule records with pagination + +```bash +csdk config-secrets-org-module list --limit 10 --offset 0 +``` + +### List configSecretsOrgModule records with cursor pagination + +```bash +csdk config-secrets-org-module list --limit 10 --after +``` + +### Find first matching configSecretsOrgModule + +```bash +csdk config-secrets-org-module find-first --where.id.equalTo +``` + +### List configSecretsOrgModule records with field selection + +```bash +csdk config-secrets-org-module list --select id,id +``` + +### List configSecretsOrgModule records with filtering and ordering + +```bash +csdk config-secrets-org-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a configSecretsOrgModule + +```bash +csdk config-secrets-org-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +``` + +### Get a configSecretsOrgModule by id + +```bash +csdk config-secrets-org-module get --id +``` diff --git a/.agents/skills/cli-public/references/config-secrets-user-module.md b/.agents/skills/cli-public/references/config-secrets-user-module.md new file mode 100644 index 0000000000..908ee09c6a --- /dev/null +++ b/.agents/skills/cli-public/references/config-secrets-user-module.md @@ -0,0 +1,68 @@ +# configSecretsUserModule + + + +CRUD operations for ConfigSecretsUserModule records via csdk CLI + +## Usage + +```bash +csdk config-secrets-user-module list +csdk config-secrets-user-module list --where.. --orderBy +csdk config-secrets-user-module list --limit 10 --after +csdk config-secrets-user-module find-first --where.. +csdk config-secrets-user-module get --id +csdk config-secrets-user-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +csdk config-secrets-user-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] +csdk config-secrets-user-module delete --id +``` + +## Examples + +### List configSecretsUserModule records + +```bash +csdk config-secrets-user-module list +``` + +### List configSecretsUserModule records with pagination + +```bash +csdk config-secrets-user-module list --limit 10 --offset 0 +``` + +### List configSecretsUserModule records with cursor pagination + +```bash +csdk config-secrets-user-module list --limit 10 --after +``` + +### Find first matching configSecretsUserModule + +```bash +csdk config-secrets-user-module find-first --where.id.equalTo +``` + +### List configSecretsUserModule records with field selection + +```bash +csdk config-secrets-user-module list --select id,id +``` + +### List configSecretsUserModule records with filtering and ordering + +```bash +csdk config-secrets-user-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a configSecretsUserModule + +```bash +csdk config-secrets-user-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +``` + +### Get a configSecretsUserModule by id + +```bash +csdk config-secrets-user-module get --id +``` diff --git a/.agents/skills/cli-public/references/freeze-objects.md b/.agents/skills/cli-public/references/freeze-objects.md index e4eac21087..16c66772cb 100644 --- a/.agents/skills/cli-public/references/freeze-objects.md +++ b/.agents/skills/cli-public/references/freeze-objects.md @@ -7,7 +7,7 @@ Execute the freezeObjects mutation ## Usage ```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id +csdk freeze-objects --input.clientMutationId --input.sId --input.id ``` ## Examples @@ -15,5 +15,5 @@ csdk freeze-objects --input.clientMutationId --input.databaseId ### Run freezeObjects ```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id +csdk freeze-objects --input.clientMutationId --input.sId --input.id ``` diff --git a/.agents/skills/cli-public/references/get-all-objects-from-root.md b/.agents/skills/cli-public/references/get-all-objects-from-root.md index 291a443793..c9509c4e04 100644 --- a/.agents/skills/cli-public/references/get-all-objects-from-root.md +++ b/.agents/skills/cli-public/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after +csdk get-all-objects-from-root --sId --id --first --offset --after ``` ## Examples @@ -15,5 +15,5 @@ csdk get-all-objects-from-root --databaseId --id --first --o ### Run getAllObjectsFromRoot ```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after +csdk get-all-objects-from-root --sId --id --first --offset --after ``` diff --git a/.agents/skills/cli-public/references/get-object-at-path.md b/.agents/skills/cli-public/references/get-object-at-path.md index 61a0fde431..c89a387d1a 100644 --- a/.agents/skills/cli-public/references/get-object-at-path.md +++ b/.agents/skills/cli-public/references/get-object-at-path.md @@ -7,7 +7,7 @@ Execute the getObjectAtPath query ## Usage ```bash -csdk get-object-at-path --dbId --storeId --path --refname +csdk get-object-at-path --sId --storeId --path --refname ``` ## Examples @@ -15,5 +15,5 @@ csdk get-object-at-path --dbId --storeId --path --refname ### Run getObjectAtPath ```bash -csdk get-object-at-path --dbId --storeId --path --refname +csdk get-object-at-path --sId --storeId --path --refname ``` diff --git a/.agents/skills/cli-public/references/get-path-objects-from-root.md b/.agents/skills/cli-public/references/get-path-objects-from-root.md index 172092437a..6dcfeb1272 100644 --- a/.agents/skills/cli-public/references/get-path-objects-from-root.md +++ b/.agents/skills/cli-public/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after +csdk get-path-objects-from-root --sId --id --path --first --offset --after ``` ## Examples @@ -15,5 +15,5 @@ csdk get-path-objects-from-root --databaseId --id --path ### Run getPathObjectsFromRoot ```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after +csdk get-path-objects-from-root --sId --id --path --first --offset --after ``` diff --git a/.agents/skills/cli-public/references/inference-log-module.md b/.agents/skills/cli-public/references/inference-log-module.md new file mode 100644 index 0000000000..f405a6d167 --- /dev/null +++ b/.agents/skills/cli-public/references/inference-log-module.md @@ -0,0 +1,68 @@ +# inferenceLogModule + + + +CRUD operations for InferenceLogModule records via csdk CLI + +## Usage + +```bash +csdk inference-log-module list +csdk inference-log-module list --where.. --orderBy +csdk inference-log-module list --limit 10 --after +csdk inference-log-module find-first --where.. +csdk inference-log-module get --id +csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--prefix ] +csdk inference-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--prefix ] +csdk inference-log-module delete --id +``` + +## Examples + +### List inferenceLogModule records + +```bash +csdk inference-log-module list +``` + +### List inferenceLogModule records with pagination + +```bash +csdk inference-log-module list --limit 10 --offset 0 +``` + +### List inferenceLogModule records with cursor pagination + +```bash +csdk inference-log-module list --limit 10 --after +``` + +### Find first matching inferenceLogModule + +```bash +csdk inference-log-module find-first --where.id.equalTo +``` + +### List inferenceLogModule records with field selection + +```bash +csdk inference-log-module list --select id,id +``` + +### List inferenceLogModule records with filtering and ordering + +```bash +csdk inference-log-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a inferenceLogModule + +```bash +csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--prefix ] +``` + +### Get a inferenceLogModule by id + +```bash +csdk inference-log-module get --id +``` diff --git a/.agents/skills/cli-public/references/init-empty-repo.md b/.agents/skills/cli-public/references/init-empty-repo.md index 7ba5aa8199..22523a8cd8 100644 --- a/.agents/skills/cli-public/references/init-empty-repo.md +++ b/.agents/skills/cli-public/references/init-empty-repo.md @@ -7,7 +7,7 @@ Execute the initEmptyRepo mutation ## Usage ```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId +csdk init-empty-repo --input.clientMutationId --input.sId --input.storeId ``` ## Examples @@ -15,5 +15,5 @@ csdk init-empty-repo --input.clientMutationId --input.dbId --inp ### Run initEmptyRepo ```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId +csdk init-empty-repo --input.clientMutationId --input.sId --input.storeId ``` diff --git a/.agents/skills/cli-public/references/insert-node-at-path.md b/.agents/skills/cli-public/references/insert-node-at-path.md index b93267c911..5a9e3b7ba3 100644 --- a/.agents/skills/cli-public/references/insert-node-at-path.md +++ b/.agents/skills/cli-public/references/insert-node-at-path.md @@ -7,7 +7,7 @@ Execute the insertNodeAtPath mutation ## Usage ```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk insert-node-at-path --input.clientMutationId --input.dbId - ### Run insertNodeAtPath ```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-public/references/object.md b/.agents/skills/cli-public/references/object.md index 97a6238558..49192ead95 100644 --- a/.agents/skills/cli-public/references/object.md +++ b/.agents/skills/cli-public/references/object.md @@ -12,8 +12,8 @@ csdk object list --where.. --orderBy csdk object list --limit 10 --after csdk object find-first --where.. csdk object get --id -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] -csdk object update --id [--databaseId ] [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object create --scopeId [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object update --id [--scopeId ] [--kids ] [--ktree ] [--data ] [--frzn ] csdk object delete --id ``` @@ -58,7 +58,7 @@ csdk object list --where.id.equalTo --orderBy ID_ASC ### Create a object ```bash -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object create --scopeId [--kids ] [--ktree ] [--data ] [--frzn ] ``` ### Get a object by id diff --git a/.agents/skills/cli-public/references/partition.md b/.agents/skills/cli-public/references/partition.md index f70565b455..f17a21d6fc 100644 --- a/.agents/skills/cli-public/references/partition.md +++ b/.agents/skills/cli-public/references/partition.md @@ -12,8 +12,8 @@ csdk partition list --where.. --orderBy csdk partition list --limit 10 --after csdk partition find-first --where.. csdk partition get --id -csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--premake ] [--namingPattern ] -csdk partition update --id [--databaseId ] [--tableId ] [--strategy ] [--partitionKeyId ] [--interval ] [--retention ] [--premake ] [--namingPattern ] +csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] +csdk partition update --id [--databaseId ] [--tableId ] [--strategy ] [--partitionKeyId ] [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] csdk partition delete --id ``` @@ -58,7 +58,7 @@ csdk partition list --where.id.equalTo --orderBy ID_ASC ### Create a partition ```bash -csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--premake ] [--namingPattern ] +csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] ``` ### Get a partition by id diff --git a/.agents/skills/cli-public/references/ref.md b/.agents/skills/cli-public/references/ref.md index 5369e75209..da2eb0434f 100644 --- a/.agents/skills/cli-public/references/ref.md +++ b/.agents/skills/cli-public/references/ref.md @@ -12,8 +12,8 @@ csdk ref list --where.. --orderBy csdk ref list --limit 10 --after csdk ref find-first --where.. csdk ref get --id -csdk ref create --name --databaseId --storeId [--commitId ] -csdk ref update --id [--name ] [--databaseId ] [--storeId ] [--commitId ] +csdk ref create --name --scopeId --storeId [--commitId ] +csdk ref update --id [--name ] [--scopeId ] [--storeId ] [--commitId ] csdk ref delete --id ``` @@ -58,7 +58,7 @@ csdk ref list --where.id.equalTo --orderBy ID_ASC ### Create a ref ```bash -csdk ref create --name --databaseId --storeId [--commitId ] +csdk ref create --name --scopeId --storeId [--commitId ] ``` ### Get a ref by id diff --git a/.agents/skills/cli-public/references/remove-node-at-path.md b/.agents/skills/cli-public/references/remove-node-at-path.md index 9db6761b91..7376ea0cad 100644 --- a/.agents/skills/cli-public/references/remove-node-at-path.md +++ b/.agents/skills/cli-public/references/remove-node-at-path.md @@ -7,7 +7,7 @@ Execute the removeNodeAtPath mutation ## Usage ```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path +csdk remove-node-at-path --input.clientMutationId --input.sId --input.root --input.path ``` ## Examples @@ -15,5 +15,5 @@ csdk remove-node-at-path --input.clientMutationId --input.dbId - ### Run removeNodeAtPath ```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path +csdk remove-node-at-path --input.clientMutationId --input.sId --input.root --input.path ``` diff --git a/.agents/skills/cli-public/references/rev-parse.md b/.agents/skills/cli-public/references/rev-parse.md index 35c6f3dcc8..c7240fd324 100644 --- a/.agents/skills/cli-public/references/rev-parse.md +++ b/.agents/skills/cli-public/references/rev-parse.md @@ -7,7 +7,7 @@ Execute the revParse query ## Usage ```bash -csdk rev-parse --dbId --storeId --refname +csdk rev-parse --sId --storeId --refname ``` ## Examples @@ -15,5 +15,5 @@ csdk rev-parse --dbId --storeId --refname ### Run revParse ```bash -csdk rev-parse --dbId --storeId --refname +csdk rev-parse --sId --storeId --refname ``` diff --git a/.agents/skills/cli-public/references/set-and-commit.md b/.agents/skills/cli-public/references/set-and-commit.md index 897356944a..f13e45b5a9 100644 --- a/.agents/skills/cli-public/references/set-and-commit.md +++ b/.agents/skills/cli-public/references/set-and-commit.md @@ -7,7 +7,7 @@ Execute the setAndCommit mutation ## Usage ```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree +csdk set-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk set-and-commit --input.clientMutationId --input.dbId --inpu ### Run setAndCommit ```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree +csdk set-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-public/references/set-data-at-path.md b/.agents/skills/cli-public/references/set-data-at-path.md index 965cece542..0b30c6a3ab 100644 --- a/.agents/skills/cli-public/references/set-data-at-path.md +++ b/.agents/skills/cli-public/references/set-data-at-path.md @@ -7,7 +7,7 @@ Execute the setDataAtPath mutation ## Usage ```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data +csdk set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data ``` ## Examples @@ -15,5 +15,5 @@ csdk set-data-at-path --input.clientMutationId --input.dbId --in ### Run setDataAtPath ```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data +csdk set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data ``` diff --git a/.agents/skills/cli-public/references/set-props-and-commit.md b/.agents/skills/cli-public/references/set-props-and-commit.md index 9dd2bc2ec0..dcb02d3da3 100644 --- a/.agents/skills/cli-public/references/set-props-and-commit.md +++ b/.agents/skills/cli-public/references/set-props-and-commit.md @@ -7,7 +7,7 @@ Execute the setPropsAndCommit mutation ## Usage ```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data +csdk set-props-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data ``` ## Examples @@ -15,5 +15,5 @@ csdk set-props-and-commit --input.clientMutationId --input.dbId ### Run setPropsAndCommit ```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data +csdk set-props-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data ``` diff --git a/.agents/skills/cli-public/references/storage-module.md b/.agents/skills/cli-public/references/storage-module.md index 4aea34241e..101a82c49e 100644 --- a/.agents/skills/cli-public/references/storage-module.md +++ b/.agents/skills/cli-public/references/storage-module.md @@ -12,8 +12,8 @@ csdk storage-module list --where.. --orderBy csdk storage-module list --limit 10 --after csdk storage-module find-first --where.. csdk storage-module get --id -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] -csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--storageKey ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] +csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--storageKey ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] csdk storage-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageModule ```bash -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--storageKey ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] ``` ### Get a storageModule by id diff --git a/.agents/skills/cli-public/references/store.md b/.agents/skills/cli-public/references/store.md index 25b76714d1..73ff0959f8 100644 --- a/.agents/skills/cli-public/references/store.md +++ b/.agents/skills/cli-public/references/store.md @@ -12,8 +12,8 @@ csdk store list --where.. --orderBy csdk store list --limit 10 --after csdk store find-first --where.. csdk store get --id -csdk store create --name --databaseId [--hash ] -csdk store update --id [--name ] [--databaseId ] [--hash ] +csdk store create --name --scopeId [--hash ] +csdk store update --id [--name ] [--scopeId ] [--hash ] csdk store delete --id ``` @@ -58,7 +58,7 @@ csdk store list --where.id.equalTo --orderBy ID_ASC ### Create a store ```bash -csdk store create --name --databaseId [--hash ] +csdk store create --name --scopeId [--hash ] ``` ### Get a store by id diff --git a/.agents/skills/cli-public/references/update-node-at-path.md b/.agents/skills/cli-public/references/update-node-at-path.md index 8d52fff70e..cd28f74f5e 100644 --- a/.agents/skills/cli-public/references/update-node-at-path.md +++ b/.agents/skills/cli-public/references/update-node-at-path.md @@ -7,7 +7,7 @@ Execute the updateNodeAtPath mutation ## Usage ```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk update-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk update-node-at-path --input.clientMutationId --input.dbId - ### Run updateNodeAtPath ```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk update-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/hooks-admin/SKILL.md b/.agents/skills/hooks-admin/SKILL.md index c2b711eaaa..279fa56b55 100644 --- a/.agents/skills/hooks-admin/SKILL.md +++ b/.agents/skills/hooks-admin/SKILL.md @@ -47,42 +47,42 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-credit](references/app-limit-credit.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) +- [org-permission-default](references/org-permission-default.md) +- [app-membership-default](references/app-membership-default.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-membership-default](references/org-membership-default.md) +- [org-owner-grant](references/org-owner-grant.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) - [app-limit-cap](references/app-limit-cap.md) - [org-limit-cap](references/org-limit-cap.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [membership-type](references/membership-type.md) +- [org-chart-edge](references/org-chart-edge.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) - [org-limit-credit](references/org-limit-credit.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) - [app-limit-warning](references/app-limit-warning.md) -- [org-limit-warning](references/org-limit-warning.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) +- [org-limit-warning](references/org-limit-warning.md) +- [membership-type](references/membership-type.md) - [app-grant](references/app-grant.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [org-grant](references/org-grant.md) -- [org-chart-edge](references/org-chart-edge.md) - [usage-snapshot](references/usage-snapshot.md) -- [app-limit](references/app-limit.md) -- [app-invite](references/app-invite.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [org-membership-setting](references/org-membership-setting.md) -- [org-limit-aggregate](references/org-limit-aggregate.md) -- [org-limit](references/org-limit.md) - [org-member-profile](references/org-member-profile.md) - [app-membership](references/app-membership.md) -- [org-invite](references/org-invite.md) +- [app-limit](references/app-limit.md) - [org-membership](references/org-membership.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) +- [org-limit](references/org-limit.md) +- [app-invite](references/app-invite.md) +- [org-invite](references/org-invite.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) - [org-is-manager-of](references/org-is-manager-of.md) diff --git a/.agents/skills/hooks-admin/references/app-limit-event.md b/.agents/skills/hooks-admin/references/app-limit-event.md index d67a98c768..76524be944 100644 --- a/.agents/skills/hooks-admin/references/app-limit-event.md +++ b/.agents/skills/hooks-admin/references/app-limit-event.md @@ -7,8 +7,11 @@ Append-only log of limit events for historical reporting and audit ## Usage ```typescript -useAppLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useAppLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useAppLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitEventMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitEventMutation({}) ``` ## Examples @@ -17,7 +20,7 @@ useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) ```typescript const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); ``` diff --git a/.agents/skills/hooks-admin/references/org-limit-event.md b/.agents/skills/hooks-admin/references/org-limit-event.md index 4055f0c39e..c3bab2354e 100644 --- a/.agents/skills/hooks-admin/references/org-limit-event.md +++ b/.agents/skills/hooks-admin/references/org-limit-event.md @@ -7,8 +7,11 @@ Append-only log of limit events for historical reporting and audit ## Usage ```typescript -useOrgLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useOrgLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useOrgLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitEventMutation({}) ``` ## Examples @@ -17,7 +20,7 @@ useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) ```typescript const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); ``` diff --git a/.agents/skills/hooks-objects/references/commit.md b/.agents/skills/hooks-objects/references/commit.md index a6c4430011..d47f70910c 100644 --- a/.agents/skills/hooks-objects/references/commit.md +++ b/.agents/skills/hooks-objects/references/commit.md @@ -7,8 +7,8 @@ A commit records changes to the repository. ## Usage ```typescript -useCommitsQuery({ selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) -useCommitQuery({ id: '', selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCommitsQuery({ selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCommitQuery({ id: '', selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) useCreateCommitMutation({ selection: { fields: { id: true } } }) useUpdateCommitMutation({ selection: { fields: { id: true } } }) useDeleteCommitMutation({}) @@ -20,7 +20,7 @@ useDeleteCommitMutation({}) ```typescript const { data, isLoading } = useCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useCommitsQuery({ const { mutate } = useCreateCommitMutation({ selection: { fields: { id: true } }, }); -mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +mutate({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/freeze-objects.md b/.agents/skills/hooks-objects/references/freeze-objects.md index bbb6e628f3..2ab48606e5 100644 --- a/.agents/skills/hooks-objects/references/freeze-objects.md +++ b/.agents/skills/hooks-objects/references/freeze-objects.md @@ -7,7 +7,7 @@ React Query mutation hook for freezeObjects ## Usage ```typescript -const { mutate } = useFreezeObjectsMutation(); mutate({ input: { databaseId: '', id: '' } }); +const { mutate } = useFreezeObjectsMutation(); mutate({ input: { sId: '', id: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useFreezeObjectsMutation(); mutate({ input: { databaseId: '', id: '' } }); +mutate({ input: { sId: '', id: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/get-all-objects-from-root.md b/.agents/skills/hooks-objects/references/get-all-objects-from-root.md index 8b80aa7df4..5725c7af0a 100644 --- a/.agents/skills/hooks-objects/references/get-all-objects-from-root.md +++ b/.agents/skills/hooks-objects/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) +useGetAllObjectsFromRootQuery({ sId: '', id: '', first: '', offset: '', after: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', id: '', first: '', offset: '', after: '' }); +const { data, isLoading } = useGetAllObjectsFromRootQuery({ sId: '', id: '', first: '', offset: '', after: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/get-object-at-path.md b/.agents/skills/hooks-objects/references/get-object-at-path.md index 7c01530d9d..8038eb7b3b 100644 --- a/.agents/skills/hooks-objects/references/get-object-at-path.md +++ b/.agents/skills/hooks-objects/references/get-object-at-path.md @@ -7,7 +7,7 @@ React Query query hook for getObjectAtPath ## Usage ```typescript -useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) +useGetObjectAtPathQuery({ sId: '', storeId: '', path: '', refname: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', r ### Use useGetObjectAtPathQuery ```typescript -const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); +const { data, isLoading } = useGetObjectAtPathQuery({ sId: '', storeId: '', path: '', refname: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/get-path-objects-from-root.md b/.agents/skills/hooks-objects/references/get-path-objects-from-root.md index 7a0bc57eda..cefdbc17ce 100644 --- a/.agents/skills/hooks-objects/references/get-path-objects-from-root.md +++ b/.agents/skills/hooks-objects/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) +useGetPathObjectsFromRootQuery({ sId: '', id: '', path: '', first: '', offset: '', after: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', id: '', path: '', first: '', offset: '', after: '' }); +const { data, isLoading } = useGetPathObjectsFromRootQuery({ sId: '', id: '', path: '', first: '', offset: '', after: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/init-empty-repo.md b/.agents/skills/hooks-objects/references/init-empty-repo.md index a6c8e875b4..2886faeeb7 100644 --- a/.agents/skills/hooks-objects/references/init-empty-repo.md +++ b/.agents/skills/hooks-objects/references/init-empty-repo.md @@ -7,7 +7,7 @@ React Query mutation hook for initEmptyRepo ## Usage ```typescript -const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', storeId: '' } }); +const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { sId: '', storeId: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', ```typescript const { mutate, isLoading } = useInitEmptyRepoMutation(); -mutate({ input: { dbId: '', storeId: '' } }); +mutate({ input: { sId: '', storeId: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/object.md b/.agents/skills/hooks-objects/references/object.md index 02b80242e6..cea5abc22d 100644 --- a/.agents/skills/hooks-objects/references/object.md +++ b/.agents/skills/hooks-objects/references/object.md @@ -7,8 +7,8 @@ React Query hooks for Object data operations ## Usage ```typescript -useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) -useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) useCreateObjectMutation({ selection: { fields: { id: true } } }) useUpdateObjectMutation({ selection: { fields: { id: true } } }) useDeleteObjectMutation({}) @@ -20,7 +20,7 @@ useDeleteObjectMutation({}) ```typescript const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useObjectsQuery({ const { mutate } = useCreateObjectMutation({ selection: { fields: { id: true } }, }); -mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +mutate({ hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/ref.md b/.agents/skills/hooks-objects/references/ref.md index ec187041d4..64b4e891fe 100644 --- a/.agents/skills/hooks-objects/references/ref.md +++ b/.agents/skills/hooks-objects/references/ref.md @@ -7,8 +7,8 @@ A ref is a data structure for pointing to a commit. ## Usage ```typescript -useRefsQuery({ selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) -useRefQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) +useRefsQuery({ selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) +useRefQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) useCreateRefMutation({ selection: { fields: { id: true } } }) useUpdateRefMutation({ selection: { fields: { id: true } } }) useDeleteRefMutation({}) @@ -20,7 +20,7 @@ useDeleteRefMutation({}) ```typescript const { data, isLoading } = useRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRefsQuery({ const { mutate } = useCreateRefMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); +mutate({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/remove-node-at-path.md b/.agents/skills/hooks-objects/references/remove-node-at-path.md index 49129cd05c..8c837ff704 100644 --- a/.agents/skills/hooks-objects/references/remove-node-at-path.md +++ b/.agents/skills/hooks-objects/references/remove-node-at-path.md @@ -7,7 +7,7 @@ React Query mutation hook for removeNodeAtPath ## Usage ```typescript -const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '' } }); +const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { sId: '', root: '', path: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '' } }); +mutate({ input: { sId: '', root: '', path: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/rev-parse.md b/.agents/skills/hooks-objects/references/rev-parse.md index eaaf37b062..75c8b24588 100644 --- a/.agents/skills/hooks-objects/references/rev-parse.md +++ b/.agents/skills/hooks-objects/references/rev-parse.md @@ -7,7 +7,7 @@ React Query query hook for revParse ## Usage ```typescript -useRevParseQuery({ dbId: '', storeId: '', refname: '' }) +useRevParseQuery({ sId: '', storeId: '', refname: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useRevParseQuery({ dbId: '', storeId: '', refname: '' }) ### Use useRevParseQuery ```typescript -const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); +const { data, isLoading } = useRevParseQuery({ sId: '', storeId: '', refname: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/set-data-at-path.md b/.agents/skills/hooks-objects/references/set-data-at-path.md index e22c1a1cd5..dcb9adb0aa 100644 --- a/.agents/skills/hooks-objects/references/set-data-at-path.md +++ b/.agents/skills/hooks-objects/references/set-data-at-path.md @@ -7,7 +7,7 @@ React Query mutation hook for setDataAtPath ## Usage ```typescript -const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '', data: '' } }); +const { mutate } = useSetDataAtPathMutation(); mutate({ input: { sId: '', root: '', path: '', data: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', ```typescript const { mutate, isLoading } = useSetDataAtPathMutation(); -mutate({ input: { dbId: '', root: '', path: '', data: '' } }); +mutate({ input: { sId: '', root: '', path: '', data: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/set-props-and-commit.md b/.agents/skills/hooks-objects/references/set-props-and-commit.md index b02527816a..b71f40bcf4 100644 --- a/.agents/skills/hooks-objects/references/set-props-and-commit.md +++ b/.agents/skills/hooks-objects/references/set-props-and-commit.md @@ -7,7 +7,7 @@ React Query mutation hook for setPropsAndCommit ## Usage ```typescript -const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); +const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); +mutate({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/store.md b/.agents/skills/hooks-objects/references/store.md index fd0c67b206..27d3b4bdbc 100644 --- a/.agents/skills/hooks-objects/references/store.md +++ b/.agents/skills/hooks-objects/references/store.md @@ -7,8 +7,8 @@ A store represents an isolated object repository within a database. ## Usage ```typescript -useStoresQuery({ selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) -useStoreQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) +useStoresQuery({ selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) +useStoreQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) useCreateStoreMutation({ selection: { fields: { id: true } } }) useUpdateStoreMutation({ selection: { fields: { id: true } } }) useDeleteStoreMutation({}) @@ -20,7 +20,7 @@ useDeleteStoreMutation({}) ```typescript const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStoresQuery({ const { mutate } = useCreateStoreMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', databaseId: '', hash: '' }); +mutate({ name: '', scopeId: '', hash: '' }); ``` diff --git a/.agents/skills/hooks-public/SKILL.md b/.agents/skills/hooks-public/SKILL.md index 27abfaa170..27e7b69b22 100644 --- a/.agents/skills/hooks-public/SKILL.md +++ b/.agents/skills/hooks-public/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-public -description: React Query hooks for the public API — provides typed query and mutation hooks for 148 tables and 69 custom operations +description: React Query hooks for the public API — provides typed query and mutation hooks for 150 tables and 69 custom operations --- # hooks-public -React Query hooks for the public API — provides typed query and mutation hooks for 148 tables and 69 custom operations +React Query hooks for the public API — provides typed query and mutation hooks for 150 tables and 69 custom operations ## Usage @@ -41,9 +41,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-managers-record](references/org-get-managers-record.md) - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [get-all-record](references/get-all-record.md) +- [object](references/object.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) -- [object](references/object.md) - [database](references/database.md) - [schema](references/schema.md) - [table](references/table.md) @@ -68,6 +68,7 @@ See the `references/` directory for detailed per-entity API documentation: - [session-secrets-module](references/session-secrets-module.md) - [identity-providers-module](references/identity-providers-module.md) - [realtime-module](references/realtime-module.md) +- [config-secrets-org-module](references/config-secrets-org-module.md) - [schema-grant](references/schema-grant.md) - [default-privilege](references/default-privilege.md) - [enum](references/enum.md) @@ -92,7 +93,7 @@ See the `references/` directory for detailed per-entity API documentation: - [default-ids-module](references/default-ids-module.md) - [denormalized-table-field](references/denormalized-table-field.md) - [emails-module](references/emails-module.md) -- [encrypted-secrets-module](references/encrypted-secrets-module.md) +- [config-secrets-user-module](references/config-secrets-user-module.md) - [invites-module](references/invites-module.md) - [events-module](references/events-module.md) - [limits-module](references/limits-module.md) @@ -146,44 +147,45 @@ See the `references/` directory for detailed per-entity API documentation: - [agent-thread](references/agent-thread.md) - [agent-message](references/agent-message.md) - [agent-task](references/agent-task.md) -- [role-type](references/role-type.md) - [identity-provider](references/identity-provider.md) - [ref](references/ref.md) - [store](references/store.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) +- [role-type](references/role-type.md) +- [migrate-file](references/migrate-file.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) -- [app-limit-cap](references/app-limit-cap.md) -- [org-limit-cap](references/org-limit-cap.md) -- [membership-type](references/membership-type.md) -- [migrate-file](references/migrate-file.md) - [devices-module](references/devices-module.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) - [node-type-registry](references/node-type-registry.md) +- [app-limit-cap](references/app-limit-cap.md) - [app-limit-default](references/app-limit-default.md) +- [org-limit-cap](references/org-limit-cap.md) - [org-limit-default](references/org-limit-default.md) -- [app-limit-warning](references/app-limit-warning.md) - [user-connected-account](references/user-connected-account.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) +- [app-limit-warning](references/app-limit-warning.md) - [commit](references/commit.md) - [pubkey-setting](references/pubkey-setting.md) - [rate-limits-module](references/rate-limits-module.md) - [usage-snapshot](references/usage-snapshot.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) +- [membership-type](references/membership-type.md) - [rls-setting](references/rls-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [rls-module](references/rls-module.md) +- [inference-log-module](references/inference-log-module.md) - [rate-limit-meters-module](references/rate-limit-meters-module.md) - [plans-module](references/plans-module.md) - [sql-action](references/sql-action.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [database-setting](references/database-setting.md) +- [org-membership-setting](references/org-membership-setting.md) - [billing-module](references/billing-module.md) -- [ast-migration](references/ast-migration.md) +- [app-membership](references/app-membership.md) - [user](references/user.md) -- [org-membership-setting](references/org-membership-setting.md) +- [ast-migration](references/ast-migration.md) - [webauthn-setting](references/webauthn-setting.md) -- [app-membership](references/app-membership.md) - [billing-provider-module](references/billing-provider-module.md) - [hierarchy-module](references/hierarchy-module.md) - [current-user-id](references/current-user-id.md) @@ -200,11 +202,11 @@ See the `references/` directory for detailed per-entity API documentation: - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) - [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [get-all-objects-from-root](references/get-all-objects-from-root.md) - [get-path-objects-from-root](references/get-path-objects-from-root.md) - [get-object-at-path](references/get-object-at-path.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [current-user](references/current-user.md) - [send-account-deletion-email](references/send-account-deletion-email.md) - [sign-out](references/sign-out.md) @@ -230,7 +232,10 @@ See the `references/` directory for detailed per-entity API documentation: - [remove-node-at-path](references/remove-node-at-path.md) - [copy-template-to-blueprint](references/copy-template-to-blueprint.md) - [provision-spatial-relation](references/provision-spatial-relation.md) +- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [bootstrap-user](references/bootstrap-user.md) +- [sign-up](references/sign-up.md) +- [sign-in](references/sign-in.md) - [set-field-order](references/set-field-order.md) - [provision-check-constraint](references/provision-check-constraint.md) - [provision-unique-constraint](references/provision-unique-constraint.md) @@ -244,14 +249,11 @@ See the `references/` directory for detailed per-entity API documentation: - [set-and-commit](references/set-and-commit.md) - [provision-relation](references/provision-relation.md) - [apply-rls](references/apply-rls.md) -- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [create-user-database](references/create-user-database.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) -- [sign-up](references/sign-up.md) - [request-cross-origin-token](references/request-cross-origin-token.md) -- [sign-in](references/sign-in.md) - [provision-table](references/provision-table.md) +- [send-verification-email](references/send-verification-email.md) +- [forgot-password](references/forgot-password.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-public/references/app-limit-event.md b/.agents/skills/hooks-public/references/app-limit-event.md index d67a98c768..76524be944 100644 --- a/.agents/skills/hooks-public/references/app-limit-event.md +++ b/.agents/skills/hooks-public/references/app-limit-event.md @@ -7,8 +7,11 @@ Append-only log of limit events for historical reporting and audit ## Usage ```typescript -useAppLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useAppLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useAppLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitEventMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitEventMutation({}) ``` ## Examples @@ -17,7 +20,7 @@ useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) ```typescript const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); ``` diff --git a/.agents/skills/hooks-public/references/billing-module.md b/.agents/skills/hooks-public/references/billing-module.md index 8501e0aa38..8a406d32eb 100644 --- a/.agents/skills/hooks-public/references/billing-module.md +++ b/.agents/skills/hooks-public/references/billing-module.md @@ -7,8 +7,8 @@ React Query hooks for BillingModule data operations ## Usage ```typescript -useBillingModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } } }) -useBillingModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } } }) +useBillingModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } } }) +useBillingModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } } }) useCreateBillingModuleMutation({ selection: { fields: { id: true } } }) useUpdateBillingModuleMutation({ selection: { fields: { id: true } } }) useDeleteBillingModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteBillingModuleMutation({}) ```typescript const { data, isLoading } = useBillingModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBillingModulesQuery({ const { mutate } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', recordUsageFunction: '', prefix: '' }); ``` diff --git a/.agents/skills/hooks-public/references/commit.md b/.agents/skills/hooks-public/references/commit.md index a6c4430011..d47f70910c 100644 --- a/.agents/skills/hooks-public/references/commit.md +++ b/.agents/skills/hooks-public/references/commit.md @@ -7,8 +7,8 @@ A commit records changes to the repository. ## Usage ```typescript -useCommitsQuery({ selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) -useCommitQuery({ id: '', selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCommitsQuery({ selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCommitQuery({ id: '', selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) useCreateCommitMutation({ selection: { fields: { id: true } } }) useUpdateCommitMutation({ selection: { fields: { id: true } } }) useDeleteCommitMutation({}) @@ -20,7 +20,7 @@ useDeleteCommitMutation({}) ```typescript const { data, isLoading } = useCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useCommitsQuery({ const { mutate } = useCreateCommitMutation({ selection: { fields: { id: true } }, }); -mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +mutate({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` diff --git a/.agents/skills/hooks-public/references/config-secrets-org-module.md b/.agents/skills/hooks-public/references/config-secrets-org-module.md new file mode 100644 index 0000000000..2ef82ecff1 --- /dev/null +++ b/.agents/skills/hooks-public/references/config-secrets-org-module.md @@ -0,0 +1,34 @@ +# configSecretsOrgModule + + + +Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + +## Usage + +```typescript +useConfigSecretsOrgModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useConfigSecretsOrgModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useCreateConfigSecretsOrgModuleMutation({ selection: { fields: { id: true } } }) +useUpdateConfigSecretsOrgModuleMutation({ selection: { fields: { id: true } } }) +useDeleteConfigSecretsOrgModuleMutation({}) +``` + +## Examples + +### List all configSecretsOrgModules + +```typescript +const { data, isLoading } = useConfigSecretsOrgModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); +``` + +### Create a configSecretsOrgModule + +```typescript +const { mutate } = useCreateConfigSecretsOrgModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` diff --git a/.agents/skills/hooks-public/references/config-secrets-user-module.md b/.agents/skills/hooks-public/references/config-secrets-user-module.md new file mode 100644 index 0000000000..7f6c855ee2 --- /dev/null +++ b/.agents/skills/hooks-public/references/config-secrets-user-module.md @@ -0,0 +1,34 @@ +# configSecretsUserModule + + + +React Query hooks for ConfigSecretsUserModule data operations + +## Usage + +```typescript +useConfigSecretsUserModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useConfigSecretsUserModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useCreateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) +useUpdateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) +useDeleteConfigSecretsUserModuleMutation({}) +``` + +## Examples + +### List all configSecretsUserModules + +```typescript +const { data, isLoading } = useConfigSecretsUserModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); +``` + +### Create a configSecretsUserModule + +```typescript +const { mutate } = useCreateConfigSecretsUserModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` diff --git a/.agents/skills/hooks-public/references/freeze-objects.md b/.agents/skills/hooks-public/references/freeze-objects.md index bbb6e628f3..2ab48606e5 100644 --- a/.agents/skills/hooks-public/references/freeze-objects.md +++ b/.agents/skills/hooks-public/references/freeze-objects.md @@ -7,7 +7,7 @@ React Query mutation hook for freezeObjects ## Usage ```typescript -const { mutate } = useFreezeObjectsMutation(); mutate({ input: { databaseId: '', id: '' } }); +const { mutate } = useFreezeObjectsMutation(); mutate({ input: { sId: '', id: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useFreezeObjectsMutation(); mutate({ input: { databaseId: '', id: '' } }); +mutate({ input: { sId: '', id: '' } }); ``` diff --git a/.agents/skills/hooks-public/references/get-all-objects-from-root.md b/.agents/skills/hooks-public/references/get-all-objects-from-root.md index 8b80aa7df4..5725c7af0a 100644 --- a/.agents/skills/hooks-public/references/get-all-objects-from-root.md +++ b/.agents/skills/hooks-public/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) +useGetAllObjectsFromRootQuery({ sId: '', id: '', first: '', offset: '', after: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', id: '', first: '', offset: '', after: '' }); +const { data, isLoading } = useGetAllObjectsFromRootQuery({ sId: '', id: '', first: '', offset: '', after: '' }); ``` diff --git a/.agents/skills/hooks-public/references/get-object-at-path.md b/.agents/skills/hooks-public/references/get-object-at-path.md index 7c01530d9d..8038eb7b3b 100644 --- a/.agents/skills/hooks-public/references/get-object-at-path.md +++ b/.agents/skills/hooks-public/references/get-object-at-path.md @@ -7,7 +7,7 @@ React Query query hook for getObjectAtPath ## Usage ```typescript -useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) +useGetObjectAtPathQuery({ sId: '', storeId: '', path: '', refname: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', r ### Use useGetObjectAtPathQuery ```typescript -const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); +const { data, isLoading } = useGetObjectAtPathQuery({ sId: '', storeId: '', path: '', refname: '' }); ``` diff --git a/.agents/skills/hooks-public/references/get-path-objects-from-root.md b/.agents/skills/hooks-public/references/get-path-objects-from-root.md index 7a0bc57eda..cefdbc17ce 100644 --- a/.agents/skills/hooks-public/references/get-path-objects-from-root.md +++ b/.agents/skills/hooks-public/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) +useGetPathObjectsFromRootQuery({ sId: '', id: '', path: '', first: '', offset: '', after: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', id: '', path: '', first: '', offset: '', after: '' }); +const { data, isLoading } = useGetPathObjectsFromRootQuery({ sId: '', id: '', path: '', first: '', offset: '', after: '' }); ``` diff --git a/.agents/skills/hooks-public/references/inference-log-module.md b/.agents/skills/hooks-public/references/inference-log-module.md new file mode 100644 index 0000000000..6762093bd8 --- /dev/null +++ b/.agents/skills/hooks-public/references/inference-log-module.md @@ -0,0 +1,34 @@ +# inferenceLogModule + + + +React Query hooks for InferenceLogModule data operations + +## Usage + +```typescript +useInferenceLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } } }) +useInferenceLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } } }) +useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) +useUpdateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) +useDeleteInferenceLogModuleMutation({}) +``` + +## Examples + +### List all inferenceLogModules + +```typescript +const { data, isLoading } = useInferenceLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } }, +}); +``` + +### Create a inferenceLogModule + +```typescript +const { mutate } = useCreateInferenceLogModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', prefix: '' }); +``` diff --git a/.agents/skills/hooks-public/references/init-empty-repo.md b/.agents/skills/hooks-public/references/init-empty-repo.md index a6c8e875b4..2886faeeb7 100644 --- a/.agents/skills/hooks-public/references/init-empty-repo.md +++ b/.agents/skills/hooks-public/references/init-empty-repo.md @@ -7,7 +7,7 @@ React Query mutation hook for initEmptyRepo ## Usage ```typescript -const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', storeId: '' } }); +const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { sId: '', storeId: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', ```typescript const { mutate, isLoading } = useInitEmptyRepoMutation(); -mutate({ input: { dbId: '', storeId: '' } }); +mutate({ input: { sId: '', storeId: '' } }); ``` diff --git a/.agents/skills/hooks-public/references/object.md b/.agents/skills/hooks-public/references/object.md index 02b80242e6..cea5abc22d 100644 --- a/.agents/skills/hooks-public/references/object.md +++ b/.agents/skills/hooks-public/references/object.md @@ -7,8 +7,8 @@ React Query hooks for Object data operations ## Usage ```typescript -useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) -useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) useCreateObjectMutation({ selection: { fields: { id: true } } }) useUpdateObjectMutation({ selection: { fields: { id: true } } }) useDeleteObjectMutation({}) @@ -20,7 +20,7 @@ useDeleteObjectMutation({}) ```typescript const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useObjectsQuery({ const { mutate } = useCreateObjectMutation({ selection: { fields: { id: true } }, }); -mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +mutate({ hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }); ``` diff --git a/.agents/skills/hooks-public/references/org-limit-event.md b/.agents/skills/hooks-public/references/org-limit-event.md index 4055f0c39e..c3bab2354e 100644 --- a/.agents/skills/hooks-public/references/org-limit-event.md +++ b/.agents/skills/hooks-public/references/org-limit-event.md @@ -7,8 +7,11 @@ Append-only log of limit events for historical reporting and audit ## Usage ```typescript -useOrgLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useOrgLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useOrgLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitEventMutation({}) ``` ## Examples @@ -17,7 +20,7 @@ useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) ```typescript const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); ``` diff --git a/.agents/skills/hooks-public/references/partition.md b/.agents/skills/hooks-public/references/partition.md index 7f32eed30d..767583706d 100644 --- a/.agents/skills/hooks-public/references/partition.md +++ b/.agents/skills/hooks-public/references/partition.md @@ -7,8 +7,8 @@ React Query hooks for Partition data operations ## Usage ```typescript -usePartitionsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } } }) -usePartitionQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } } }) +usePartitionsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } } }) +usePartitionQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } } }) useCreatePartitionMutation({ selection: { fields: { id: true } } }) useUpdatePartitionMutation({ selection: { fields: { id: true } } }) useDeletePartitionMutation({}) @@ -20,7 +20,7 @@ useDeletePartitionMutation({}) ```typescript const { data, isLoading } = usePartitionsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePartitionsQuery({ const { mutate } = useCreatePartitionMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }); +mutate({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }); ``` diff --git a/.agents/skills/hooks-public/references/ref.md b/.agents/skills/hooks-public/references/ref.md index ec187041d4..64b4e891fe 100644 --- a/.agents/skills/hooks-public/references/ref.md +++ b/.agents/skills/hooks-public/references/ref.md @@ -7,8 +7,8 @@ A ref is a data structure for pointing to a commit. ## Usage ```typescript -useRefsQuery({ selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) -useRefQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) +useRefsQuery({ selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) +useRefQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) useCreateRefMutation({ selection: { fields: { id: true } } }) useUpdateRefMutation({ selection: { fields: { id: true } } }) useDeleteRefMutation({}) @@ -20,7 +20,7 @@ useDeleteRefMutation({}) ```typescript const { data, isLoading } = useRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRefsQuery({ const { mutate } = useCreateRefMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); +mutate({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` diff --git a/.agents/skills/hooks-public/references/remove-node-at-path.md b/.agents/skills/hooks-public/references/remove-node-at-path.md index 49129cd05c..8c837ff704 100644 --- a/.agents/skills/hooks-public/references/remove-node-at-path.md +++ b/.agents/skills/hooks-public/references/remove-node-at-path.md @@ -7,7 +7,7 @@ React Query mutation hook for removeNodeAtPath ## Usage ```typescript -const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '' } }); +const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { sId: '', root: '', path: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '' } }); +mutate({ input: { sId: '', root: '', path: '' } }); ``` diff --git a/.agents/skills/hooks-public/references/rev-parse.md b/.agents/skills/hooks-public/references/rev-parse.md index eaaf37b062..75c8b24588 100644 --- a/.agents/skills/hooks-public/references/rev-parse.md +++ b/.agents/skills/hooks-public/references/rev-parse.md @@ -7,7 +7,7 @@ React Query query hook for revParse ## Usage ```typescript -useRevParseQuery({ dbId: '', storeId: '', refname: '' }) +useRevParseQuery({ sId: '', storeId: '', refname: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useRevParseQuery({ dbId: '', storeId: '', refname: '' }) ### Use useRevParseQuery ```typescript -const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); +const { data, isLoading } = useRevParseQuery({ sId: '', storeId: '', refname: '' }); ``` diff --git a/.agents/skills/hooks-public/references/set-data-at-path.md b/.agents/skills/hooks-public/references/set-data-at-path.md index e22c1a1cd5..dcb9adb0aa 100644 --- a/.agents/skills/hooks-public/references/set-data-at-path.md +++ b/.agents/skills/hooks-public/references/set-data-at-path.md @@ -7,7 +7,7 @@ React Query mutation hook for setDataAtPath ## Usage ```typescript -const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '', data: '' } }); +const { mutate } = useSetDataAtPathMutation(); mutate({ input: { sId: '', root: '', path: '', data: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', ```typescript const { mutate, isLoading } = useSetDataAtPathMutation(); -mutate({ input: { dbId: '', root: '', path: '', data: '' } }); +mutate({ input: { sId: '', root: '', path: '', data: '' } }); ``` diff --git a/.agents/skills/hooks-public/references/set-props-and-commit.md b/.agents/skills/hooks-public/references/set-props-and-commit.md index b02527816a..b71f40bcf4 100644 --- a/.agents/skills/hooks-public/references/set-props-and-commit.md +++ b/.agents/skills/hooks-public/references/set-props-and-commit.md @@ -7,7 +7,7 @@ React Query mutation hook for setPropsAndCommit ## Usage ```typescript -const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); +const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); +mutate({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }); ``` diff --git a/.agents/skills/hooks-public/references/storage-module.md b/.agents/skills/hooks-public/references/storage-module.md index 36f889c71d..de468fa9b2 100644 --- a/.agents/skills/hooks-public/references/storage-module.md +++ b/.agents/skills/hooks-public/references/storage-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageModule data operations ## Usage ```typescript -useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) +useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageModuleMutation({}) ```typescript const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageModulesQuery({ const { mutate } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); ``` diff --git a/.agents/skills/hooks-public/references/store.md b/.agents/skills/hooks-public/references/store.md index fd0c67b206..27d3b4bdbc 100644 --- a/.agents/skills/hooks-public/references/store.md +++ b/.agents/skills/hooks-public/references/store.md @@ -7,8 +7,8 @@ A store represents an isolated object repository within a database. ## Usage ```typescript -useStoresQuery({ selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) -useStoreQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) +useStoresQuery({ selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) +useStoreQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) useCreateStoreMutation({ selection: { fields: { id: true } } }) useUpdateStoreMutation({ selection: { fields: { id: true } } }) useDeleteStoreMutation({}) @@ -20,7 +20,7 @@ useDeleteStoreMutation({}) ```typescript const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStoresQuery({ const { mutate } = useCreateStoreMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', databaseId: '', hash: '' }); +mutate({ name: '', scopeId: '', hash: '' }); ``` diff --git a/.agents/skills/orm-admin/SKILL.md b/.agents/skills/orm-admin/SKILL.md index b4f5b2d280..76cc8a0542 100644 --- a/.agents/skills/orm-admin/SKILL.md +++ b/.agents/skills/orm-admin/SKILL.md @@ -46,42 +46,42 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-credit](references/app-limit-credit.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) +- [org-permission-default](references/org-permission-default.md) +- [app-membership-default](references/app-membership-default.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-membership-default](references/org-membership-default.md) +- [org-owner-grant](references/org-owner-grant.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) - [app-limit-cap](references/app-limit-cap.md) - [org-limit-cap](references/org-limit-cap.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [membership-type](references/membership-type.md) +- [org-chart-edge](references/org-chart-edge.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) - [org-limit-credit](references/org-limit-credit.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) - [app-limit-warning](references/app-limit-warning.md) -- [org-limit-warning](references/org-limit-warning.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) +- [org-limit-warning](references/org-limit-warning.md) +- [membership-type](references/membership-type.md) - [app-grant](references/app-grant.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [org-grant](references/org-grant.md) -- [org-chart-edge](references/org-chart-edge.md) - [usage-snapshot](references/usage-snapshot.md) -- [app-limit](references/app-limit.md) -- [app-invite](references/app-invite.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [org-membership-setting](references/org-membership-setting.md) -- [org-limit-aggregate](references/org-limit-aggregate.md) -- [org-limit](references/org-limit.md) - [org-member-profile](references/org-member-profile.md) - [app-membership](references/app-membership.md) -- [org-invite](references/org-invite.md) +- [app-limit](references/app-limit.md) - [org-membership](references/org-membership.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) +- [org-limit](references/org-limit.md) +- [app-invite](references/app-invite.md) +- [org-invite](references/org-invite.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) - [org-is-manager-of](references/org-is-manager-of.md) diff --git a/.agents/skills/orm-objects/references/commit.md b/.agents/skills/orm-objects/references/commit.md index b3e1b59c39..6b9ec65906 100644 --- a/.agents/skills/orm-objects/references/commit.md +++ b/.agents/skills/orm-objects/references/commit.md @@ -9,7 +9,7 @@ A commit records changes to the repository. ```typescript db.commit.findMany({ select: { id: true } }).execute() db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.commit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() db.commit.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.commit.findMany({ ```typescript const item = await db.commit.create({ - data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, + data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/freeze-objects.md b/.agents/skills/orm-objects/references/freeze-objects.md index 110be1e17b..7e943be68e 100644 --- a/.agents/skills/orm-objects/references/freeze-objects.md +++ b/.agents/skills/orm-objects/references/freeze-objects.md @@ -7,7 +7,7 @@ Execute the freezeObjects mutation ## Usage ```typescript -db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute() +db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).exe ### Run freezeObjects ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/get-all-objects-from-root.md b/.agents/skills/orm-objects/references/get-all-objects-from-root.md index b7f2f7210e..9234ed582f 100644 --- a/.agents/skills/orm-objects/references/get-all-objects-from-root.md +++ b/.agents/skills/orm-objects/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() +db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/get-object-at-path.md b/.agents/skills/orm-objects/references/get-object-at-path.md index cdf5df837b..de47977f32 100644 --- a/.agents/skills/orm-objects/references/get-object-at-path.md +++ b/.agents/skills/orm-objects/references/get-object-at-path.md @@ -7,7 +7,7 @@ Execute the getObjectAtPath query ## Usage ```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() +db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', ### Run getObjectAtPath ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/get-path-objects-from-root.md b/.agents/skills/orm-objects/references/get-path-objects-from-root.md index 663305d3fd..e7280a240a 100644 --- a/.agents/skills/orm-objects/references/get-path-objects-from-root.md +++ b/.agents/skills/orm-objects/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() +db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/init-empty-repo.md b/.agents/skills/orm-objects/references/init-empty-repo.md index 00eb301388..9134c92d86 100644 --- a/.agents/skills/orm-objects/references/init-empty-repo.md +++ b/.agents/skills/orm-objects/references/init-empty-repo.md @@ -7,7 +7,7 @@ Execute the initEmptyRepo mutation ## Usage ```typescript -db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute() +db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).exec ### Run initEmptyRepo ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/object.md b/.agents/skills/orm-objects/references/object.md index 130fc55c2f..aad69373d6 100644 --- a/.agents/skills/orm-objects/references/object.md +++ b/.agents/skills/orm-objects/references/object.md @@ -9,7 +9,7 @@ ORM operations for Object records ```typescript db.object.findMany({ select: { id: true } }).execute() db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() +db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() db.object.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.object.findMany({ ```typescript const item = await db.object.create({ - data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, + data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/ref.md b/.agents/skills/orm-objects/references/ref.md index 56499466ae..294d1f88c9 100644 --- a/.agents/skills/orm-objects/references/ref.md +++ b/.agents/skills/orm-objects/references/ref.md @@ -9,7 +9,7 @@ A ref is a data structure for pointing to a commit. ```typescript db.ref.findMany({ select: { id: true } }).execute() db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.ref.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.ref.findMany({ ```typescript const item = await db.ref.create({ - data: { name: '', databaseId: '', storeId: '', commitId: '' }, + data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/remove-node-at-path.md b/.agents/skills/orm-objects/references/remove-node-at-path.md index 84d7fdbbf2..cebd5201d4 100644 --- a/.agents/skills/orm-objects/references/remove-node-at-path.md +++ b/.agents/skills/orm-objects/references/remove-node-at-path.md @@ -7,7 +7,7 @@ Execute the removeNodeAtPath mutation ## Usage ```typescript -db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute() +db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '< ### Run removeNodeAtPath ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/rev-parse.md b/.agents/skills/orm-objects/references/rev-parse.md index 7fffc37e47..35525be0e4 100644 --- a/.agents/skills/orm-objects/references/rev-parse.md +++ b/.agents/skills/orm-objects/references/rev-parse.md @@ -7,7 +7,7 @@ Execute the revParse query ## Usage ```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() +db.query.revParse({ sId: '', storeId: '', refname: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.revParse({ dbId: '', storeId: '', refname: '' }).ex ### Run revParse ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/set-data-at-path.md b/.agents/skills/orm-objects/references/set-data-at-path.md index 6098a15a51..4176ca275b 100644 --- a/.agents/skills/orm-objects/references/set-data-at-path.md +++ b/.agents/skills/orm-objects/references/set-data-at-path.md @@ -7,7 +7,7 @@ Execute the setDataAtPath mutation ## Usage ```typescript -db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute() +db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/set-props-and-commit.md b/.agents/skills/orm-objects/references/set-props-and-commit.md index c5573289b9..9991d36029 100644 --- a/.agents/skills/orm-objects/references/set-props-and-commit.md +++ b/.agents/skills/orm-objects/references/set-props-and-commit.md @@ -7,7 +7,7 @@ Execute the setPropsAndCommit mutation ## Usage ```typescript -db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute() +db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refn ### Run setPropsAndCommit ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/store.md b/.agents/skills/orm-objects/references/store.md index 63f88e898e..8c6fb84921 100644 --- a/.agents/skills/orm-objects/references/store.md +++ b/.agents/skills/orm-objects/references/store.md @@ -9,7 +9,7 @@ A store represents an isolated object repository within a database. ```typescript db.store.findMany({ select: { id: true } }).execute() db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() +db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute() db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.store.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.store.findMany({ ```typescript const item = await db.store.create({ - data: { name: '', databaseId: '', hash: '' }, + data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/SKILL.md b/.agents/skills/orm-public/SKILL.md index 0d220c10e9..f5753d0b32 100644 --- a/.agents/skills/orm-public/SKILL.md +++ b/.agents/skills/orm-public/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-public -description: ORM client for the public API — provides typed CRUD operations for 148 tables and 69 custom operations +description: ORM client for the public API — provides typed CRUD operations for 150 tables and 69 custom operations --- # orm-public -ORM client for the public API — provides typed CRUD operations for 148 tables and 69 custom operations +ORM client for the public API — provides typed CRUD operations for 150 tables and 69 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the public API — provides typed CRUD operations for 148 tables // Import the ORM client import { db } from './orm'; -// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, getAllRecord, appPermission, orgPermission, object, database, schema, ... +// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, getAllRecord, object, appPermission, orgPermission, database, schema, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -40,9 +40,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-managers-record](references/org-get-managers-record.md) - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [get-all-record](references/get-all-record.md) +- [object](references/object.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) -- [object](references/object.md) - [database](references/database.md) - [schema](references/schema.md) - [table](references/table.md) @@ -67,6 +67,7 @@ See the `references/` directory for detailed per-entity API documentation: - [session-secrets-module](references/session-secrets-module.md) - [identity-providers-module](references/identity-providers-module.md) - [realtime-module](references/realtime-module.md) +- [config-secrets-org-module](references/config-secrets-org-module.md) - [schema-grant](references/schema-grant.md) - [default-privilege](references/default-privilege.md) - [enum](references/enum.md) @@ -91,7 +92,7 @@ See the `references/` directory for detailed per-entity API documentation: - [default-ids-module](references/default-ids-module.md) - [denormalized-table-field](references/denormalized-table-field.md) - [emails-module](references/emails-module.md) -- [encrypted-secrets-module](references/encrypted-secrets-module.md) +- [config-secrets-user-module](references/config-secrets-user-module.md) - [invites-module](references/invites-module.md) - [events-module](references/events-module.md) - [limits-module](references/limits-module.md) @@ -145,44 +146,45 @@ See the `references/` directory for detailed per-entity API documentation: - [agent-thread](references/agent-thread.md) - [agent-message](references/agent-message.md) - [agent-task](references/agent-task.md) -- [role-type](references/role-type.md) - [identity-provider](references/identity-provider.md) - [ref](references/ref.md) - [store](references/store.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) +- [role-type](references/role-type.md) +- [migrate-file](references/migrate-file.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) -- [app-limit-cap](references/app-limit-cap.md) -- [org-limit-cap](references/org-limit-cap.md) -- [membership-type](references/membership-type.md) -- [migrate-file](references/migrate-file.md) - [devices-module](references/devices-module.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) - [node-type-registry](references/node-type-registry.md) +- [app-limit-cap](references/app-limit-cap.md) - [app-limit-default](references/app-limit-default.md) +- [org-limit-cap](references/org-limit-cap.md) - [org-limit-default](references/org-limit-default.md) -- [app-limit-warning](references/app-limit-warning.md) - [user-connected-account](references/user-connected-account.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) +- [app-limit-warning](references/app-limit-warning.md) - [commit](references/commit.md) - [pubkey-setting](references/pubkey-setting.md) - [rate-limits-module](references/rate-limits-module.md) - [usage-snapshot](references/usage-snapshot.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) +- [membership-type](references/membership-type.md) - [rls-setting](references/rls-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [rls-module](references/rls-module.md) +- [inference-log-module](references/inference-log-module.md) - [rate-limit-meters-module](references/rate-limit-meters-module.md) - [plans-module](references/plans-module.md) - [sql-action](references/sql-action.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [database-setting](references/database-setting.md) +- [org-membership-setting](references/org-membership-setting.md) - [billing-module](references/billing-module.md) -- [ast-migration](references/ast-migration.md) +- [app-membership](references/app-membership.md) - [user](references/user.md) -- [org-membership-setting](references/org-membership-setting.md) +- [ast-migration](references/ast-migration.md) - [webauthn-setting](references/webauthn-setting.md) -- [app-membership](references/app-membership.md) - [billing-provider-module](references/billing-provider-module.md) - [hierarchy-module](references/hierarchy-module.md) - [current-user-id](references/current-user-id.md) @@ -199,11 +201,11 @@ See the `references/` directory for detailed per-entity API documentation: - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) - [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [get-all-objects-from-root](references/get-all-objects-from-root.md) - [get-path-objects-from-root](references/get-path-objects-from-root.md) - [get-object-at-path](references/get-object-at-path.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [current-user](references/current-user.md) - [send-account-deletion-email](references/send-account-deletion-email.md) - [sign-out](references/sign-out.md) @@ -229,7 +231,10 @@ See the `references/` directory for detailed per-entity API documentation: - [remove-node-at-path](references/remove-node-at-path.md) - [copy-template-to-blueprint](references/copy-template-to-blueprint.md) - [provision-spatial-relation](references/provision-spatial-relation.md) +- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [bootstrap-user](references/bootstrap-user.md) +- [sign-up](references/sign-up.md) +- [sign-in](references/sign-in.md) - [set-field-order](references/set-field-order.md) - [provision-check-constraint](references/provision-check-constraint.md) - [provision-unique-constraint](references/provision-unique-constraint.md) @@ -243,14 +248,11 @@ See the `references/` directory for detailed per-entity API documentation: - [set-and-commit](references/set-and-commit.md) - [provision-relation](references/provision-relation.md) - [apply-rls](references/apply-rls.md) -- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [create-user-database](references/create-user-database.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) -- [sign-up](references/sign-up.md) - [request-cross-origin-token](references/request-cross-origin-token.md) -- [sign-in](references/sign-in.md) - [provision-table](references/provision-table.md) +- [send-verification-email](references/send-verification-email.md) +- [forgot-password](references/forgot-password.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-public/references/billing-module.md b/.agents/skills/orm-public/references/billing-module.md index 564f7dcb11..c5cdc9a5fa 100644 --- a/.agents/skills/orm-public/references/billing-module.md +++ b/.agents/skills/orm-public/references/billing-module.md @@ -9,7 +9,7 @@ ORM operations for BillingModule records ```typescript db.billingModule.findMany({ select: { id: true } }).execute() db.billingModule.findOne({ id: '', select: { id: true } }).execute() -db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute() +db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute() db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.billingModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.billingModule.findMany({ ```typescript const item = await db.billingModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/commit.md b/.agents/skills/orm-public/references/commit.md index b3e1b59c39..6b9ec65906 100644 --- a/.agents/skills/orm-public/references/commit.md +++ b/.agents/skills/orm-public/references/commit.md @@ -9,7 +9,7 @@ A commit records changes to the repository. ```typescript db.commit.findMany({ select: { id: true } }).execute() db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.commit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() db.commit.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.commit.findMany({ ```typescript const item = await db.commit.create({ - data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, + data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/config-secrets-org-module.md b/.agents/skills/orm-public/references/config-secrets-org-module.md new file mode 100644 index 0000000000..b8ec2f1064 --- /dev/null +++ b/.agents/skills/orm-public/references/config-secrets-org-module.md @@ -0,0 +1,34 @@ +# configSecretsOrgModule + + + +Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + +## Usage + +```typescript +db.configSecretsOrgModule.findMany({ select: { id: true } }).execute() +db.configSecretsOrgModule.findOne({ id: '', select: { id: true } }).execute() +db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.configSecretsOrgModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all configSecretsOrgModule records + +```typescript +const items = await db.configSecretsOrgModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a configSecretsOrgModule + +```typescript +const item = await db.configSecretsOrgModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/config-secrets-user-module.md b/.agents/skills/orm-public/references/config-secrets-user-module.md new file mode 100644 index 0000000000..309152eda9 --- /dev/null +++ b/.agents/skills/orm-public/references/config-secrets-user-module.md @@ -0,0 +1,34 @@ +# configSecretsUserModule + + + +ORM operations for ConfigSecretsUserModule records + +## Usage + +```typescript +db.configSecretsUserModule.findMany({ select: { id: true } }).execute() +db.configSecretsUserModule.findOne({ id: '', select: { id: true } }).execute() +db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.configSecretsUserModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all configSecretsUserModule records + +```typescript +const items = await db.configSecretsUserModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a configSecretsUserModule + +```typescript +const item = await db.configSecretsUserModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/freeze-objects.md b/.agents/skills/orm-public/references/freeze-objects.md index 110be1e17b..7e943be68e 100644 --- a/.agents/skills/orm-public/references/freeze-objects.md +++ b/.agents/skills/orm-public/references/freeze-objects.md @@ -7,7 +7,7 @@ Execute the freezeObjects mutation ## Usage ```typescript -db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute() +db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).exe ### Run freezeObjects ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/get-all-objects-from-root.md b/.agents/skills/orm-public/references/get-all-objects-from-root.md index b7f2f7210e..9234ed582f 100644 --- a/.agents/skills/orm-public/references/get-all-objects-from-root.md +++ b/.agents/skills/orm-public/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() +db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` diff --git a/.agents/skills/orm-public/references/get-object-at-path.md b/.agents/skills/orm-public/references/get-object-at-path.md index cdf5df837b..de47977f32 100644 --- a/.agents/skills/orm-public/references/get-object-at-path.md +++ b/.agents/skills/orm-public/references/get-object-at-path.md @@ -7,7 +7,7 @@ Execute the getObjectAtPath query ## Usage ```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() +db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', ### Run getObjectAtPath ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` diff --git a/.agents/skills/orm-public/references/get-path-objects-from-root.md b/.agents/skills/orm-public/references/get-path-objects-from-root.md index 663305d3fd..e7280a240a 100644 --- a/.agents/skills/orm-public/references/get-path-objects-from-root.md +++ b/.agents/skills/orm-public/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() +db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` diff --git a/.agents/skills/orm-public/references/inference-log-module.md b/.agents/skills/orm-public/references/inference-log-module.md new file mode 100644 index 0000000000..a2f6000116 --- /dev/null +++ b/.agents/skills/orm-public/references/inference-log-module.md @@ -0,0 +1,34 @@ +# inferenceLogModule + + + +ORM operations for InferenceLogModule records + +## Usage + +```typescript +db.inferenceLogModule.findMany({ select: { id: true } }).execute() +db.inferenceLogModule.findOne({ id: '', select: { id: true } }).execute() +db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', prefix: '' }, select: { id: true } }).execute() +db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.inferenceLogModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all inferenceLogModule records + +```typescript +const items = await db.inferenceLogModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a inferenceLogModule + +```typescript +const item = await db.inferenceLogModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', prefix: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/init-empty-repo.md b/.agents/skills/orm-public/references/init-empty-repo.md index 00eb301388..9134c92d86 100644 --- a/.agents/skills/orm-public/references/init-empty-repo.md +++ b/.agents/skills/orm-public/references/init-empty-repo.md @@ -7,7 +7,7 @@ Execute the initEmptyRepo mutation ## Usage ```typescript -db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute() +db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).exec ### Run initEmptyRepo ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/object.md b/.agents/skills/orm-public/references/object.md index 130fc55c2f..aad69373d6 100644 --- a/.agents/skills/orm-public/references/object.md +++ b/.agents/skills/orm-public/references/object.md @@ -9,7 +9,7 @@ ORM operations for Object records ```typescript db.object.findMany({ select: { id: true } }).execute() db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() +db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() db.object.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.object.findMany({ ```typescript const item = await db.object.create({ - data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, + data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/partition.md b/.agents/skills/orm-public/references/partition.md index 1a19a5113f..8e11c306b6 100644 --- a/.agents/skills/orm-public/references/partition.md +++ b/.agents/skills/orm-public/references/partition.md @@ -9,7 +9,7 @@ ORM operations for Partition records ```typescript db.partition.findMany({ select: { id: true } }).execute() db.partition.findOne({ id: '', select: { id: true } }).execute() -db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }, select: { id: true } }).execute() +db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }, select: { id: true } }).execute() db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.partition.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.partition.findMany({ ```typescript const item = await db.partition.create({ - data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }, + data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/ref.md b/.agents/skills/orm-public/references/ref.md index 56499466ae..294d1f88c9 100644 --- a/.agents/skills/orm-public/references/ref.md +++ b/.agents/skills/orm-public/references/ref.md @@ -9,7 +9,7 @@ A ref is a data structure for pointing to a commit. ```typescript db.ref.findMany({ select: { id: true } }).execute() db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.ref.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.ref.findMany({ ```typescript const item = await db.ref.create({ - data: { name: '', databaseId: '', storeId: '', commitId: '' }, + data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/remove-node-at-path.md b/.agents/skills/orm-public/references/remove-node-at-path.md index 84d7fdbbf2..cebd5201d4 100644 --- a/.agents/skills/orm-public/references/remove-node-at-path.md +++ b/.agents/skills/orm-public/references/remove-node-at-path.md @@ -7,7 +7,7 @@ Execute the removeNodeAtPath mutation ## Usage ```typescript -db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute() +db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '< ### Run removeNodeAtPath ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/rev-parse.md b/.agents/skills/orm-public/references/rev-parse.md index 7fffc37e47..35525be0e4 100644 --- a/.agents/skills/orm-public/references/rev-parse.md +++ b/.agents/skills/orm-public/references/rev-parse.md @@ -7,7 +7,7 @@ Execute the revParse query ## Usage ```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() +db.query.revParse({ sId: '', storeId: '', refname: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.revParse({ dbId: '', storeId: '', refname: '' }).ex ### Run revParse ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` diff --git a/.agents/skills/orm-public/references/set-data-at-path.md b/.agents/skills/orm-public/references/set-data-at-path.md index 6098a15a51..4176ca275b 100644 --- a/.agents/skills/orm-public/references/set-data-at-path.md +++ b/.agents/skills/orm-public/references/set-data-at-path.md @@ -7,7 +7,7 @@ Execute the setDataAtPath mutation ## Usage ```typescript -db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute() +db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/set-props-and-commit.md b/.agents/skills/orm-public/references/set-props-and-commit.md index c5573289b9..9991d36029 100644 --- a/.agents/skills/orm-public/references/set-props-and-commit.md +++ b/.agents/skills/orm-public/references/set-props-and-commit.md @@ -7,7 +7,7 @@ Execute the setPropsAndCommit mutation ## Usage ```typescript -db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute() +db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refn ### Run setPropsAndCommit ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/storage-module.md b/.agents/skills/orm-public/references/storage-module.md index 77f0494965..8d992dc96a 100644 --- a/.agents/skills/orm-public/references/storage-module.md +++ b/.agents/skills/orm-public/references/storage-module.md @@ -9,7 +9,7 @@ ORM operations for StorageModule records ```typescript db.storageModule.findMany({ select: { id: true } }).execute() db.storageModule.findOne({ id: '', select: { id: true } }).execute() -db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute() +db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute() db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.storageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageModule.findMany({ ```typescript const item = await db.storageModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/store.md b/.agents/skills/orm-public/references/store.md index 63f88e898e..8c6fb84921 100644 --- a/.agents/skills/orm-public/references/store.md +++ b/.agents/skills/orm-public/references/store.md @@ -9,7 +9,7 @@ A store represents an isolated object repository within a database. ```typescript db.store.findMany({ select: { id: true } }).execute() db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() +db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute() db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.store.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.store.findMany({ ```typescript const item = await db.store.create({ - data: { name: '', databaseId: '', hash: '' }, + data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-cli/src/admin/cli/README.md b/sdk/constructive-cli/src/admin/cli/README.md index 408473a1ac..140d3769e1 100644 --- a/sdk/constructive-cli/src/admin/cli/README.md +++ b/sdk/constructive-cli/src/admin/cli/README.md @@ -35,42 +35,42 @@ csdk auth set-token | `app-limit-credit` | appLimitCredit CRUD operations | | `org-member` | orgMember CRUD operations | | `app-permission-default` | appPermissionDefault CRUD operations | -| `app-limit-credit-code` | appLimitCreditCode CRUD operations | -| `org-permission-default` | orgPermissionDefault CRUD operations | | `app-admin-grant` | appAdminGrant CRUD operations | | `app-owner-grant` | appOwnerGrant CRUD operations | +| `org-permission-default` | orgPermissionDefault CRUD operations | +| `app-membership-default` | appMembershipDefault CRUD operations | +| `org-admin-grant` | orgAdminGrant CRUD operations | +| `org-membership-default` | orgMembershipDefault CRUD operations | +| `org-owner-grant` | orgOwnerGrant CRUD operations | | `app-limit-caps-default` | appLimitCapsDefault CRUD operations | | `org-limit-caps-default` | orgLimitCapsDefault CRUD operations | | `app-limit-cap` | appLimitCap CRUD operations | | `org-limit-cap` | orgLimitCap CRUD operations | -| `org-admin-grant` | orgAdminGrant CRUD operations | -| `org-owner-grant` | orgOwnerGrant CRUD operations | -| `membership-type` | membershipType CRUD operations | +| `org-chart-edge` | orgChartEdge CRUD operations | | `app-limit-default` | appLimitDefault CRUD operations | | `org-limit-default` | orgLimitDefault CRUD operations | | `org-limit-credit` | orgLimitCredit CRUD operations | +| `app-limit-credit-code` | appLimitCreditCode CRUD operations | | `app-limit-warning` | appLimitWarning CRUD operations | -| `org-limit-warning` | orgLimitWarning CRUD operations | | `org-chart-edge-grant` | orgChartEdgeGrant CRUD operations | | `app-claimed-invite` | appClaimedInvite CRUD operations | +| `org-limit-warning` | orgLimitWarning CRUD operations | +| `membership-type` | membershipType CRUD operations | | `app-grant` | appGrant CRUD operations | -| `app-membership-default` | appMembershipDefault CRUD operations | -| `org-membership-default` | orgMembershipDefault CRUD operations | | `org-claimed-invite` | orgClaimedInvite CRUD operations | -| `app-limit-event` | appLimitEvent CRUD operations | -| `org-limit-event` | orgLimitEvent CRUD operations | | `org-grant` | orgGrant CRUD operations | -| `org-chart-edge` | orgChartEdge CRUD operations | | `usage-snapshot` | usageSnapshot CRUD operations | -| `app-limit` | appLimit CRUD operations | -| `app-invite` | appInvite CRUD operations | +| `app-limit-event` | appLimitEvent CRUD operations | +| `org-limit-event` | orgLimitEvent CRUD operations | | `org-membership-setting` | orgMembershipSetting CRUD operations | -| `org-limit-aggregate` | orgLimitAggregate CRUD operations | -| `org-limit` | orgLimit CRUD operations | | `org-member-profile` | orgMemberProfile CRUD operations | | `app-membership` | appMembership CRUD operations | -| `org-invite` | orgInvite CRUD operations | +| `app-limit` | appLimit CRUD operations | | `org-membership` | orgMembership CRUD operations | +| `org-limit-aggregate` | orgLimitAggregate CRUD operations | +| `org-limit` | orgLimit CRUD operations | +| `app-invite` | appInvite CRUD operations | +| `org-invite` | orgInvite CRUD operations | | `app-permissions-get-padded-mask` | appPermissionsGetPaddedMask | | `org-permissions-get-padded-mask` | orgPermissionsGetPaddedMask | | `org-is-manager-of` | orgIsManagerOf | @@ -345,31 +345,59 @@ CRUD operations for AppPermissionDefault records. **Optional create fields (backend defaults):** `permissions` -### `app-limit-credit-code` +### `app-admin-grant` -CRUD operations for AppLimitCreditCode records. +CRUD operations for AppAdminGrant records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitCreditCode records | -| `find-first` | Find first matching appLimitCreditCode record | -| `get` | Get a appLimitCreditCode by id | -| `create` | Create a new appLimitCreditCode | -| `update` | Update an existing appLimitCreditCode | -| `delete` | Delete a appLimitCreditCode | +| `list` | List all appAdminGrant records | +| `find-first` | Find first matching appAdminGrant record | +| `get` | Get a appAdminGrant by id | +| `create` | Create a new appAdminGrant | +| `update` | Update an existing appAdminGrant | +| `delete` | Delete a appAdminGrant | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `code` | String | -| `maxRedemptions` | Int | -| `currentRedemptions` | Int | -| `expiresAt` | Datetime | +| `isGrant` | Boolean | +| `actorId` | UUID | +| `grantorId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | -**Required create fields:** `code` -**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `isGrant`, `grantorId` + +### `app-owner-grant` + +CRUD operations for AppOwnerGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appOwnerGrant records | +| `find-first` | Find first matching appOwnerGrant record | +| `get` | Get a appOwnerGrant by id | +| `create` | Create a new appOwnerGrant | +| `update` | Update an existing appOwnerGrant | +| `delete` | Delete a appOwnerGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `isGrant` | Boolean | +| `actorId` | UUID | +| `grantorId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `isGrant`, `grantorId` ### `org-permission-default` @@ -395,18 +423,45 @@ CRUD operations for OrgPermissionDefault records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `permissions` -### `app-admin-grant` +### `app-membership-default` -CRUD operations for AppAdminGrant records. +CRUD operations for AppMembershipDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all appAdminGrant records | -| `find-first` | Find first matching appAdminGrant record | -| `get` | Get a appAdminGrant by id | -| `create` | Create a new appAdminGrant | -| `update` | Update an existing appAdminGrant | -| `delete` | Delete a appAdminGrant | +| `list` | List all appMembershipDefault records | +| `find-first` | Find first matching appMembershipDefault record | +| `get` | Get a appMembershipDefault by id | +| `create` | Create a new appMembershipDefault | +| `update` | Update an existing appMembershipDefault | +| `delete` | Delete a appMembershipDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isVerified` | Boolean | + +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` + +### `org-admin-grant` + +CRUD operations for OrgAdminGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgAdminGrant records | +| `find-first` | Find first matching orgAdminGrant record | +| `get` | Get a orgAdminGrant by id | +| `create` | Create a new orgAdminGrant | +| `update` | Update an existing orgAdminGrant | +| `delete` | Delete a orgAdminGrant | **Fields:** @@ -415,25 +470,54 @@ CRUD operations for AppAdminGrant records. | `id` | UUID | | `isGrant` | Boolean | | `actorId` | UUID | +| `entityId` | UUID | | `grantorId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `actorId` +**Required create fields:** `actorId`, `entityId` **Optional create fields (backend defaults):** `isGrant`, `grantorId` -### `app-owner-grant` +### `org-membership-default` -CRUD operations for AppOwnerGrant records. +CRUD operations for OrgMembershipDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all appOwnerGrant records | -| `find-first` | Find first matching appOwnerGrant record | -| `get` | Get a appOwnerGrant by id | -| `create` | Create a new appOwnerGrant | -| `update` | Update an existing appOwnerGrant | -| `delete` | Delete a appOwnerGrant | +| `list` | List all orgMembershipDefault records | +| `find-first` | Find first matching orgMembershipDefault record | +| `get` | Get a orgMembershipDefault by id | +| `create` | Create a new orgMembershipDefault | +| `update` | Update an existing orgMembershipDefault | +| `delete` | Delete a orgMembershipDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `entityId` | UUID | + +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` + +### `org-owner-grant` + +CRUD operations for OrgOwnerGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgOwnerGrant records | +| `find-first` | Find first matching orgOwnerGrant record | +| `get` | Get a orgOwnerGrant by id | +| `create` | Create a new orgOwnerGrant | +| `update` | Update an existing orgOwnerGrant | +| `delete` | Delete a orgOwnerGrant | **Fields:** @@ -442,11 +526,12 @@ CRUD operations for AppOwnerGrant records. | `id` | UUID | | `isGrant` | Boolean | | `actorId` | UUID | +| `entityId` | UUID | | `grantorId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `actorId` +**Required create fields:** `actorId`, `entityId` **Optional create fields (backend defaults):** `isGrant`, `grantorId` ### `app-limit-caps-default` @@ -547,126 +632,72 @@ CRUD operations for OrgLimitCap records. **Required create fields:** `name`, `entityId` **Optional create fields (backend defaults):** `max` -### `org-admin-grant` +### `org-chart-edge` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdge records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgAdminGrant records | -| `find-first` | Find first matching orgAdminGrant record | -| `get` | Get a orgAdminGrant by id | -| `create` | Create a new orgAdminGrant | -| `update` | Update an existing orgAdminGrant | -| `delete` | Delete a orgAdminGrant | +| `list` | List all orgChartEdge records | +| `find-first` | Find first matching orgChartEdge record | +| `get` | Get a orgChartEdge by id | +| `create` | Create a new orgChartEdge | +| `update` | Update an existing orgChartEdge | +| `delete` | Delete a orgChartEdge | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `entityId` | UUID | -| `grantorId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | +| `entityId` | UUID | +| `childId` | UUID | +| `parentId` | UUID | +| `positionTitle` | String | +| `positionLevel` | Int | -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` +**Required create fields:** `entityId`, `childId` +**Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel` -### `org-owner-grant` +### `app-limit-default` -CRUD operations for OrgOwnerGrant records. +CRUD operations for AppLimitDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgOwnerGrant records | -| `find-first` | Find first matching orgOwnerGrant record | -| `get` | Get a orgOwnerGrant by id | -| `create` | Create a new orgOwnerGrant | -| `update` | Update an existing orgOwnerGrant | -| `delete` | Delete a orgOwnerGrant | +| `list` | List all appLimitDefault records | +| `find-first` | Find first matching appLimitDefault record | +| `get` | Get a appLimitDefault by id | +| `create` | Create a new appLimitDefault | +| `update` | Update an existing appLimitDefault | +| `delete` | Delete a appLimitDefault | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `entityId` | UUID | -| `grantorId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | +| `name` | String | +| `max` | BigInt | +| `softMax` | BigInt | -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` +**Required create fields:** `name` +**Optional create fields (backend defaults):** `max`, `softMax` -### `membership-type` +### `org-limit-default` -CRUD operations for MembershipType records. +CRUD operations for OrgLimitDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all membershipType records | -| `find-first` | Find first matching membershipType record | -| `get` | Get a membershipType by id | -| `create` | Create a new membershipType | -| `update` | Update an existing membershipType | -| `delete` | Delete a membershipType | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | Int | -| `name` | String | -| `description` | String | -| `prefix` | String | -| `parentMembershipType` | Int | -| `hasUsersTableEntry` | Boolean | - -**Required create fields:** `name`, `description`, `prefix` -**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` - -### `app-limit-default` - -CRUD operations for AppLimitDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitDefault records | -| `find-first` | Find first matching appLimitDefault record | -| `get` | Get a appLimitDefault by id | -| `create` | Create a new appLimitDefault | -| `update` | Update an existing appLimitDefault | -| `delete` | Delete a appLimitDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `max` | BigInt | -| `softMax` | BigInt | - -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max`, `softMax` - -### `org-limit-default` - -CRUD operations for OrgLimitDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitDefault records | -| `find-first` | Find first matching orgLimitDefault record | -| `get` | Get a orgLimitDefault by id | -| `create` | Create a new orgLimitDefault | -| `update` | Update an existing orgLimitDefault | -| `delete` | Delete a orgLimitDefault | +| `list` | List all orgLimitDefault records | +| `find-first` | Find first matching orgLimitDefault record | +| `get` | Get a orgLimitDefault by id | +| `create` | Create a new orgLimitDefault | +| `update` | Update an existing orgLimitDefault | +| `delete` | Delete a orgLimitDefault | **Fields:** @@ -708,43 +739,44 @@ CRUD operations for OrgLimitCredit records. **Required create fields:** `defaultLimitId`, `amount` **Optional create fields (backend defaults):** `actorId`, `entityId`, `creditType`, `reason` -### `app-limit-warning` +### `app-limit-credit-code` -CRUD operations for AppLimitWarning records. +CRUD operations for AppLimitCreditCode records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitWarning records | -| `find-first` | Find first matching appLimitWarning record | -| `get` | Get a appLimitWarning by id | -| `create` | Create a new appLimitWarning | -| `update` | Update an existing appLimitWarning | -| `delete` | Delete a appLimitWarning | +| `list` | List all appLimitCreditCode records | +| `find-first` | Find first matching appLimitCreditCode record | +| `get` | Get a appLimitCreditCode by id | +| `create` | Create a new appLimitCreditCode | +| `update` | Update an existing appLimitCreditCode | +| `delete` | Delete a appLimitCreditCode | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `warningType` | String | -| `thresholdValue` | BigInt | -| `taskIdentifier` | String | +| `code` | String | +| `maxRedemptions` | Int | +| `currentRedemptions` | Int | +| `expiresAt` | Datetime | -**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` +**Required create fields:** `code` +**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` -### `org-limit-warning` +### `app-limit-warning` -CRUD operations for OrgLimitWarning records. +CRUD operations for AppLimitWarning records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgLimitWarning records | -| `find-first` | Find first matching orgLimitWarning record | -| `get` | Get a orgLimitWarning by id | -| `create` | Create a new orgLimitWarning | -| `update` | Update an existing orgLimitWarning | -| `delete` | Delete a orgLimitWarning | +| `list` | List all appLimitWarning records | +| `find-first` | Find first matching appLimitWarning record | +| `get` | Get a appLimitWarning by id | +| `create` | Create a new appLimitWarning | +| `update` | Update an existing appLimitWarning | +| `delete` | Delete a appLimitWarning | **Fields:** @@ -755,10 +787,8 @@ CRUD operations for OrgLimitWarning records. | `warningType` | String | | `thresholdValue` | BigInt | | `taskIdentifier` | String | -| `entityId` | UUID | **Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` -**Optional create fields (backend defaults):** `entityId` ### `org-chart-edge-grant` @@ -816,6 +846,60 @@ CRUD operations for AppClaimedInvite records. **Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` +### `org-limit-warning` + +CRUD operations for OrgLimitWarning records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitWarning records | +| `find-first` | Find first matching orgLimitWarning record | +| `get` | Get a orgLimitWarning by id | +| `create` | Create a new orgLimitWarning | +| `update` | Update an existing orgLimitWarning | +| `delete` | Delete a orgLimitWarning | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `warningType` | String | +| `thresholdValue` | BigInt | +| `taskIdentifier` | String | +| `entityId` | UUID | + +**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` +**Optional create fields (backend defaults):** `entityId` + +### `membership-type` + +CRUD operations for MembershipType records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all membershipType records | +| `find-first` | Find first matching membershipType record | +| `get` | Get a membershipType by id | +| `create` | Create a new membershipType | +| `update` | Update an existing membershipType | +| `delete` | Delete a membershipType | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | Int | +| `name` | String | +| `description` | String | +| `prefix` | String | +| `parentMembershipType` | Int | +| `hasUsersTableEntry` | Boolean | + +**Required create fields:** `name`, `description`, `prefix` +**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` + ### `app-grant` CRUD operations for AppGrant records. @@ -844,88 +928,89 @@ CRUD operations for AppGrant records. **Required create fields:** `actorId` **Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` -### `app-membership-default` +### `org-claimed-invite` -CRUD operations for AppMembershipDefault records. +CRUD operations for OrgClaimedInvite records. | Subcommand | Description | |------------|-------------| -| `list` | List all appMembershipDefault records | -| `find-first` | Find first matching appMembershipDefault record | -| `get` | Get a appMembershipDefault by id | -| `create` | Create a new appMembershipDefault | -| `update` | Update an existing appMembershipDefault | -| `delete` | Delete a appMembershipDefault | +| `list` | List all orgClaimedInvite records | +| `find-first` | Find first matching orgClaimedInvite record | +| `get` | Get a orgClaimedInvite by id | +| `create` | Create a new orgClaimedInvite | +| `update` | Update an existing orgClaimedInvite | +| `delete` | Delete a orgClaimedInvite | **Fields:** | Field | Type | |-------|------| | `id` | UUID | +| `data` | JSON | +| `senderId` | UUID | +| `receiverId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isVerified` | Boolean | +| `entityId` | UUID | -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` -### `org-membership-default` +### `org-grant` -CRUD operations for OrgMembershipDefault records. +CRUD operations for OrgGrant records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgMembershipDefault records | -| `find-first` | Find first matching orgMembershipDefault record | -| `get` | Get a orgMembershipDefault by id | -| `create` | Create a new orgMembershipDefault | -| `update` | Update an existing orgMembershipDefault | -| `delete` | Delete a orgMembershipDefault | +| `list` | List all orgGrant records | +| `find-first` | Find first matching orgGrant record | +| `get` | Get a orgGrant by id | +| `create` | Create a new orgGrant | +| `update` | Update an existing orgGrant | +| `delete` | Delete a orgGrant | **Fields:** | Field | Type | |-------|------| | `id` | UUID | +| `permissions` | BitString | +| `isGrant` | Boolean | +| `actorId` | UUID | +| `entityId` | UUID | +| `grantorId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `entityId` | UUID | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` +**Required create fields:** `actorId`, `entityId` +**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` -### `org-claimed-invite` +### `usage-snapshot` -CRUD operations for OrgClaimedInvite records. +CRUD operations for UsageSnapshot records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgClaimedInvite records | -| `find-first` | Find first matching orgClaimedInvite record | -| `get` | Get a orgClaimedInvite by id | -| `create` | Create a new orgClaimedInvite | -| `update` | Update an existing orgClaimedInvite | -| `delete` | Delete a orgClaimedInvite | +| `list` | List all usageSnapshot records | +| `find-first` | Find first matching usageSnapshot record | +| `get` | Get a usageSnapshot by id | +| `create` | Create a new usageSnapshot | +| `update` | Update an existing usageSnapshot | +| `delete` | Delete a usageSnapshot | **Fields:** | Field | Type | |-------|------| +| `databaseId` | UUID | +| `metricName` | String | +| `metricValue` | BigInt | +| `dimensions` | JSON | +| `capturedAt` | Datetime | | `id` | UUID | -| `data` | JSON | -| `senderId` | UUID | -| `receiverId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `entityId` | UUID | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` +**Required create fields:** `databaseId`, `metricName` +**Optional create fields (backend defaults):** `metricValue`, `dimensions`, `capturedAt` ### `app-limit-event` @@ -944,6 +1029,8 @@ CRUD operations for AppLimitEvent records. | Field | Type | |-------|------| +| `createdAt` | Datetime | +| `id` | UUID | | `name` | String | | `actorId` | UUID | | `entityId` | UUID | @@ -973,6 +1060,8 @@ CRUD operations for OrgLimitEvent records. | Field | Type | |-------|------| +| `createdAt` | Datetime | +| `id` | UUID | | `name` | String | | `actorId` | UUID | | `entityId` | UUID | @@ -985,47 +1074,53 @@ CRUD operations for OrgLimitEvent records. **Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` -### `org-grant` +### `org-membership-setting` -CRUD operations for OrgGrant records. +CRUD operations for OrgMembershipSetting records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgGrant records | -| `find-first` | Find first matching orgGrant record | -| `get` | Get a orgGrant by id | -| `create` | Create a new orgGrant | -| `update` | Update an existing orgGrant | -| `delete` | Delete a orgGrant | - -**Fields:** - -| Field | Type | -|-------|------| +| `list` | List all orgMembershipSetting records | +| `find-first` | Find first matching orgMembershipSetting record | +| `get` | Get a orgMembershipSetting by id | +| `create` | Create a new orgMembershipSetting | +| `update` | Update an existing orgMembershipSetting | +| `delete` | Delete a orgMembershipSetting | + +**Fields:** + +| Field | Type | +|-------|------| | `id` | UUID | -| `permissions` | BitString | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `entityId` | UUID | -| `grantorId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `entityId` | UUID | +| `deleteMemberCascadeChildren` | Boolean | +| `createChildCascadeOwners` | Boolean | +| `createChildCascadeAdmins` | Boolean | +| `createChildCascadeMembers` | Boolean | +| `allowExternalMembers` | Boolean | +| `inviteProfileAssignmentMode` | String | +| `populateMemberEmail` | Boolean | +| `limitAllocationMode` | String | -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` -### `org-chart-edge` +### `org-member-profile` -CRUD operations for OrgChartEdge records. +CRUD operations for OrgMemberProfile records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgChartEdge records | -| `find-first` | Find first matching orgChartEdge record | -| `get` | Get a orgChartEdge by id | -| `create` | Create a new orgChartEdge | -| `update` | Update an existing orgChartEdge | -| `delete` | Delete a orgChartEdge | +| `list` | List all orgMemberProfile records | +| `find-first` | Find first matching orgMemberProfile record | +| `get` | Get a orgMemberProfile by id | +| `create` | Create a new orgMemberProfile | +| `update` | Update an existing orgMemberProfile | +| `delete` | Delete a orgMemberProfile | **Fields:** @@ -1034,41 +1129,54 @@ CRUD operations for OrgChartEdge records. | `id` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | +| `membershipId` | UUID | | `entityId` | UUID | -| `childId` | UUID | -| `parentId` | UUID | -| `positionTitle` | String | -| `positionLevel` | Int | +| `actorId` | UUID | +| `displayName` | String | +| `email` | String | +| `title` | String | +| `bio` | String | +| `profilePicture` | Image | -**Required create fields:** `entityId`, `childId` -**Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel` +**Required create fields:** `membershipId`, `entityId`, `actorId` +**Optional create fields (backend defaults):** `displayName`, `email`, `title`, `bio`, `profilePicture` -### `usage-snapshot` +### `app-membership` -CRUD operations for UsageSnapshot records. +CRUD operations for AppMembership records. | Subcommand | Description | |------------|-------------| -| `list` | List all usageSnapshot records | -| `find-first` | Find first matching usageSnapshot record | -| `get` | Get a usageSnapshot by id | -| `create` | Create a new usageSnapshot | -| `update` | Update an existing usageSnapshot | -| `delete` | Delete a usageSnapshot | +| `list` | List all appMembership records | +| `find-first` | Find first matching appMembership record | +| `get` | Get a appMembership by id | +| `create` | Create a new appMembership | +| `update` | Update an existing appMembership | +| `delete` | Delete a appMembership | **Fields:** | Field | Type | |-------|------| -| `databaseId` | UUID | -| `metricName` | String | -| `metricValue` | BigInt | -| `dimensions` | JSON | -| `capturedAt` | Datetime | | `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isBanned` | Boolean | +| `isDisabled` | Boolean | +| `isVerified` | Boolean | +| `isActive` | Boolean | +| `isOwner` | Boolean | +| `isAdmin` | Boolean | +| `permissions` | BitString | +| `granted` | BitString | +| `actorId` | UUID | +| `profileId` | UUID | -**Required create fields:** `databaseId`, `metricName` -**Optional create fields (backend defaults):** `metricValue`, `dimensions`, `capturedAt` +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` ### `app-limit` @@ -1102,51 +1210,18 @@ CRUD operations for AppLimit records. **Required create fields:** `actorId` **Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits` -### `app-invite` - -CRUD operations for AppInvite records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appInvite records | -| `find-first` | Find first matching appInvite record | -| `get` | Get a appInvite by id | -| `create` | Create a new appInvite | -| `update` | Update an existing appInvite | -| `delete` | Delete a appInvite | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `email` | Email | -| `senderId` | UUID | -| `inviteToken` | String | -| `inviteValid` | Boolean | -| `inviteLimit` | Int | -| `inviteCount` | Int | -| `multiple` | Boolean | -| `data` | JSON | -| `profileId` | UUID | -| `expiresAt` | Datetime | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` - -### `org-membership-setting` +### `org-membership` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgMembership records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgMembershipSetting records | -| `find-first` | Find first matching orgMembershipSetting record | -| `get` | Get a orgMembershipSetting by id | -| `create` | Create a new orgMembershipSetting | -| `update` | Update an existing orgMembershipSetting | -| `delete` | Delete a orgMembershipSetting | +| `list` | List all orgMembership records | +| `find-first` | Find first matching orgMembership record | +| `get` | Get a orgMembership by id | +| `create` | Create a new orgMembership | +| `update` | Update an existing orgMembership | +| `delete` | Delete a orgMembership | **Fields:** @@ -1157,18 +1232,22 @@ CRUD operations for OrgMembershipSetting records. | `updatedAt` | Datetime | | `createdBy` | UUID | | `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isBanned` | Boolean | +| `isDisabled` | Boolean | +| `isActive` | Boolean | +| `isExternal` | Boolean | +| `isOwner` | Boolean | +| `isAdmin` | Boolean | +| `permissions` | BitString | +| `granted` | BitString | +| `actorId` | UUID | | `entityId` | UUID | -| `deleteMemberCascadeChildren` | Boolean | -| `createChildCascadeOwners` | Boolean | -| `createChildCascadeAdmins` | Boolean | -| `createChildCascadeMembers` | Boolean | -| `allowExternalMembers` | Boolean | -| `inviteProfileAssignmentMode` | String | -| `populateMemberEmail` | Boolean | -| `limitAllocationMode` | String | +| `isReadOnly` | Boolean | +| `profileId` | UUID | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` +**Required create fields:** `actorId`, `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isActive`, `isExternal`, `isOwner`, `isAdmin`, `permissions`, `granted`, `isReadOnly`, `profileId` ### `org-limit-aggregate` @@ -1236,74 +1315,38 @@ CRUD operations for OrgLimit records. **Required create fields:** `actorId`, `entityId` **Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits` -### `org-member-profile` - -CRUD operations for OrgMemberProfile records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgMemberProfile records | -| `find-first` | Find first matching orgMemberProfile record | -| `get` | Get a orgMemberProfile by id | -| `create` | Create a new orgMemberProfile | -| `update` | Update an existing orgMemberProfile | -| `delete` | Delete a orgMemberProfile | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `membershipId` | UUID | -| `entityId` | UUID | -| `actorId` | UUID | -| `displayName` | String | -| `email` | String | -| `title` | String | -| `bio` | String | -| `profilePicture` | Image | - -**Required create fields:** `membershipId`, `entityId`, `actorId` -**Optional create fields (backend defaults):** `displayName`, `email`, `title`, `bio`, `profilePicture` - -### `app-membership` +### `app-invite` -CRUD operations for AppMembership records. +CRUD operations for AppInvite records. | Subcommand | Description | |------------|-------------| -| `list` | List all appMembership records | -| `find-first` | Find first matching appMembership record | -| `get` | Get a appMembership by id | -| `create` | Create a new appMembership | -| `update` | Update an existing appMembership | -| `delete` | Delete a appMembership | +| `list` | List all appInvite records | +| `find-first` | Find first matching appInvite record | +| `get` | Get a appInvite by id | +| `create` | Create a new appInvite | +| `update` | Update an existing appInvite | +| `delete` | Delete a appInvite | **Fields:** | Field | Type | |-------|------| | `id` | UUID | +| `email` | Email | +| `senderId` | UUID | +| `inviteToken` | String | +| `inviteValid` | Boolean | +| `inviteLimit` | Int | +| `inviteCount` | Int | +| `multiple` | Boolean | +| `data` | JSON | +| `profileId` | UUID | +| `expiresAt` | Datetime | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isBanned` | Boolean | -| `isDisabled` | Boolean | -| `isVerified` | Boolean | -| `isActive` | Boolean | -| `isOwner` | Boolean | -| `isAdmin` | Boolean | -| `permissions` | BitString | -| `granted` | BitString | -| `actorId` | UUID | -| `profileId` | UUID | -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` +**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` ### `org-invite` @@ -1342,45 +1385,6 @@ CRUD operations for OrgInvite records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `isReadOnly`, `expiresAt` -### `org-membership` - -CRUD operations for OrgMembership records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgMembership records | -| `find-first` | Find first matching orgMembership record | -| `get` | Get a orgMembership by id | -| `create` | Create a new orgMembership | -| `update` | Update an existing orgMembership | -| `delete` | Delete a orgMembership | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isBanned` | Boolean | -| `isDisabled` | Boolean | -| `isActive` | Boolean | -| `isExternal` | Boolean | -| `isOwner` | Boolean | -| `isAdmin` | Boolean | -| `permissions` | BitString | -| `granted` | BitString | -| `actorId` | UUID | -| `entityId` | UUID | -| `isReadOnly` | Boolean | -| `profileId` | UUID | - -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isActive`, `isExternal`, `isOwner`, `isAdmin`, `permissions`, `granted`, `isReadOnly`, `profileId` - ## Custom Operations ### `app-permissions-get-padded-mask` diff --git a/sdk/constructive-cli/src/admin/cli/commands.ts b/sdk/constructive-cli/src/admin/cli/commands.ts index c21319615c..e7a4c77392 100644 --- a/sdk/constructive-cli/src/admin/cli/commands.ts +++ b/sdk/constructive-cli/src/admin/cli/commands.ts @@ -15,42 +15,42 @@ import appLimitCreditCodeItemCmd from './commands/app-limit-credit-code-item'; import appLimitCreditCmd from './commands/app-limit-credit'; import orgMemberCmd from './commands/org-member'; import appPermissionDefaultCmd from './commands/app-permission-default'; -import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; -import orgPermissionDefaultCmd from './commands/org-permission-default'; import appAdminGrantCmd from './commands/app-admin-grant'; import appOwnerGrantCmd from './commands/app-owner-grant'; +import orgPermissionDefaultCmd from './commands/org-permission-default'; +import appMembershipDefaultCmd from './commands/app-membership-default'; +import orgAdminGrantCmd from './commands/org-admin-grant'; +import orgMembershipDefaultCmd from './commands/org-membership-default'; +import orgOwnerGrantCmd from './commands/org-owner-grant'; import appLimitCapsDefaultCmd from './commands/app-limit-caps-default'; import orgLimitCapsDefaultCmd from './commands/org-limit-caps-default'; import appLimitCapCmd from './commands/app-limit-cap'; import orgLimitCapCmd from './commands/org-limit-cap'; -import orgAdminGrantCmd from './commands/org-admin-grant'; -import orgOwnerGrantCmd from './commands/org-owner-grant'; -import membershipTypeCmd from './commands/membership-type'; +import orgChartEdgeCmd from './commands/org-chart-edge'; import appLimitDefaultCmd from './commands/app-limit-default'; import orgLimitDefaultCmd from './commands/org-limit-default'; import orgLimitCreditCmd from './commands/org-limit-credit'; +import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; import appLimitWarningCmd from './commands/app-limit-warning'; -import orgLimitWarningCmd from './commands/org-limit-warning'; import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant'; import appClaimedInviteCmd from './commands/app-claimed-invite'; +import orgLimitWarningCmd from './commands/org-limit-warning'; +import membershipTypeCmd from './commands/membership-type'; import appGrantCmd from './commands/app-grant'; -import appMembershipDefaultCmd from './commands/app-membership-default'; -import orgMembershipDefaultCmd from './commands/org-membership-default'; import orgClaimedInviteCmd from './commands/org-claimed-invite'; -import appLimitEventCmd from './commands/app-limit-event'; -import orgLimitEventCmd from './commands/org-limit-event'; import orgGrantCmd from './commands/org-grant'; -import orgChartEdgeCmd from './commands/org-chart-edge'; import usageSnapshotCmd from './commands/usage-snapshot'; -import appLimitCmd from './commands/app-limit'; -import appInviteCmd from './commands/app-invite'; +import appLimitEventCmd from './commands/app-limit-event'; +import orgLimitEventCmd from './commands/org-limit-event'; import orgMembershipSettingCmd from './commands/org-membership-setting'; -import orgLimitAggregateCmd from './commands/org-limit-aggregate'; -import orgLimitCmd from './commands/org-limit'; import orgMemberProfileCmd from './commands/org-member-profile'; import appMembershipCmd from './commands/app-membership'; -import orgInviteCmd from './commands/org-invite'; +import appLimitCmd from './commands/app-limit'; import orgMembershipCmd from './commands/org-membership'; +import orgLimitAggregateCmd from './commands/org-limit-aggregate'; +import orgLimitCmd from './commands/org-limit'; +import appInviteCmd from './commands/app-invite'; +import orgInviteCmd from './commands/org-invite'; import appPermissionsGetPaddedMaskCmd from './commands/app-permissions-get-padded-mask'; import orgPermissionsGetPaddedMaskCmd from './commands/org-permissions-get-padded-mask'; import orgIsManagerOfCmd from './commands/org-is-manager-of'; @@ -82,42 +82,42 @@ const createCommandMap: () => Record< 'app-limit-credit': appLimitCreditCmd, 'org-member': orgMemberCmd, 'app-permission-default': appPermissionDefaultCmd, - 'app-limit-credit-code': appLimitCreditCodeCmd, - 'org-permission-default': orgPermissionDefaultCmd, 'app-admin-grant': appAdminGrantCmd, 'app-owner-grant': appOwnerGrantCmd, + 'org-permission-default': orgPermissionDefaultCmd, + 'app-membership-default': appMembershipDefaultCmd, + 'org-admin-grant': orgAdminGrantCmd, + 'org-membership-default': orgMembershipDefaultCmd, + 'org-owner-grant': orgOwnerGrantCmd, 'app-limit-caps-default': appLimitCapsDefaultCmd, 'org-limit-caps-default': orgLimitCapsDefaultCmd, 'app-limit-cap': appLimitCapCmd, 'org-limit-cap': orgLimitCapCmd, - 'org-admin-grant': orgAdminGrantCmd, - 'org-owner-grant': orgOwnerGrantCmd, - 'membership-type': membershipTypeCmd, + 'org-chart-edge': orgChartEdgeCmd, 'app-limit-default': appLimitDefaultCmd, 'org-limit-default': orgLimitDefaultCmd, 'org-limit-credit': orgLimitCreditCmd, + 'app-limit-credit-code': appLimitCreditCodeCmd, 'app-limit-warning': appLimitWarningCmd, - 'org-limit-warning': orgLimitWarningCmd, 'org-chart-edge-grant': orgChartEdgeGrantCmd, 'app-claimed-invite': appClaimedInviteCmd, + 'org-limit-warning': orgLimitWarningCmd, + 'membership-type': membershipTypeCmd, 'app-grant': appGrantCmd, - 'app-membership-default': appMembershipDefaultCmd, - 'org-membership-default': orgMembershipDefaultCmd, 'org-claimed-invite': orgClaimedInviteCmd, - 'app-limit-event': appLimitEventCmd, - 'org-limit-event': orgLimitEventCmd, 'org-grant': orgGrantCmd, - 'org-chart-edge': orgChartEdgeCmd, 'usage-snapshot': usageSnapshotCmd, - 'app-limit': appLimitCmd, - 'app-invite': appInviteCmd, + 'app-limit-event': appLimitEventCmd, + 'org-limit-event': orgLimitEventCmd, 'org-membership-setting': orgMembershipSettingCmd, - 'org-limit-aggregate': orgLimitAggregateCmd, - 'org-limit': orgLimitCmd, 'org-member-profile': orgMemberProfileCmd, 'app-membership': appMembershipCmd, - 'org-invite': orgInviteCmd, + 'app-limit': appLimitCmd, 'org-membership': orgMembershipCmd, + 'org-limit-aggregate': orgLimitAggregateCmd, + 'org-limit': orgLimitCmd, + 'app-invite': appInviteCmd, + 'org-invite': orgInviteCmd, 'app-permissions-get-padded-mask': appPermissionsGetPaddedMaskCmd, 'org-permissions-get-padded-mask': orgPermissionsGetPaddedMaskCmd, 'org-is-manager-of': orgIsManagerOfCmd, @@ -132,7 +132,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-limit appLimit CRUD operations\n app-invite appInvite CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-membership appMembership CRUD operations\n org-invite orgInvite CRUD operations\n org-membership orgMembership CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n membership-type membershipType CRUD operations\n app-grant appGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-grant orgGrant CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-membership appMembership CRUD operations\n app-limit appLimit CRUD operations\n org-membership orgMembership CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n app-invite appInvite CRUD operations\n org-invite orgInvite CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts b/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts index 0e8be421d2..1cec8ade46 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts @@ -16,6 +16,8 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', name: 'string', actorId: 'uuid', entityId: 'uuid', @@ -27,7 +29,7 @@ const fieldSchema: FieldSchema = { reason: 'string', }; const usage = - '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n create Create a new appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n get Get a appLimitEvent by ID\n create Create a new appLimitEvent\n update Update an existing appLimitEvent\n delete Delete a appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -44,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -61,8 +63,14 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); case 'create': return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); default: console.log(usage); process.exit(1); @@ -71,6 +79,8 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -100,6 +110,8 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -126,6 +138,44 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.appLimitEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ @@ -213,6 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In reason: cleanedData.reason, }, select: { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -234,3 +286,150 @@ async function handleCreate(argv: Partial>, prompter: In process.exit(1); } } +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitEventPatch; + const client = getClient(); + const result = await client.appLimitEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.appLimitEvent + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts b/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts index c8ef656d6e..20f8250015 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts @@ -16,6 +16,8 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', name: 'string', actorId: 'uuid', entityId: 'uuid', @@ -27,7 +29,7 @@ const fieldSchema: FieldSchema = { reason: 'string', }; const usage = - '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n create Create a new orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n get Get a orgLimitEvent by ID\n create Create a new orgLimitEvent\n update Update an existing orgLimitEvent\n delete Delete a orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -44,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -61,8 +63,14 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); case 'create': return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); default: console.log(usage); process.exit(1); @@ -71,6 +79,8 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -100,6 +110,8 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -126,6 +138,44 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.orgLimitEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ @@ -213,6 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In reason: cleanedData.reason, }, select: { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -234,3 +286,150 @@ async function handleCreate(argv: Partial>, prompter: In process.exit(1); } } +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitEventPatch; + const client = getClient(); + const result = await client.orgLimitEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.orgLimitEvent + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/README.md b/sdk/constructive-cli/src/admin/orm/README.md index 06cda7b6e2..803a02c3d0 100644 --- a/sdk/constructive-cli/src/admin/orm/README.md +++ b/sdk/constructive-cli/src/admin/orm/README.md @@ -30,42 +30,42 @@ const db = createClient({ | `appLimitCredit` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `orgOwnerGrant` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | +| `orgLimitWarning` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | | `usageSnapshot` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `orgLimitAggregate` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | -| `orgInvite` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | +| `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations @@ -355,37 +355,72 @@ const updated = await db.appPermissionDefault.update({ where: { id: '' }, const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.appAdminGrant` -CRUD operations for AppLimitCreditCode records. +CRUD operations for AppAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// List all appAdminGrant records +const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appOwnerGrant records +const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermissionDefault` @@ -419,9 +454,44 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appAdminGrant` +### `db.appMembershipDefault` -CRUD operations for AppAdminGrant records. +CRUD operations for AppMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | + +**Operations:** + +```typescript +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Get one by id +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Create +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgAdminGrant` + +CRUD operations for OrgAdminGrant records. **Fields:** @@ -430,6 +500,7 @@ CRUD operations for AppAdminGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -437,25 +508,60 @@ CRUD operations for AppAdminGrant records. **Operations:** ```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appOwnerGrant` +### `db.orgMembershipDefault` -CRUD operations for AppOwnerGrant records. +CRUD operations for OrgMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); + +// Create +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgOwnerGrant` + +CRUD operations for OrgOwnerGrant records. **Fields:** @@ -464,6 +570,7 @@ CRUD operations for AppOwnerGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -471,20 +578,20 @@ CRUD operations for AppOwnerGrant records. **Operations:** ```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgOwnerGrant records +const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -613,151 +720,83 @@ const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { n const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgChartEdge` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdge records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.appLimitDefault` -CRUD operations for OrgOwnerGrant records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.orgLimitDefault` -CRUD operations for MembershipType records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | +| `id` | UUID | No | | `name` | String | Yes | | `max` | BigInt | Yes | | `softMax` | BigInt | Yes | @@ -816,42 +855,42 @@ const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitWarning` +### `db.appLimitCreditCode` -CRUD operations for AppLimitWarning records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitWarning` +### `db.appLimitWarning` -CRUD operations for OrgLimitWarning records. +CRUD operations for AppLimitWarning records. **Fields:** @@ -862,25 +901,24 @@ CRUD operations for OrgLimitWarning records. | `warningType` | String | Yes | | `thresholdValue` | BigInt | Yes | | `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -954,6 +992,74 @@ const updated = await db.appClaimedInvite.update({ where: { id: '' }, data const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` +### `db.orgLimitWarning` + +CRUD operations for OrgLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgLimitWarning records +const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Create +const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipType` + +CRUD operations for MembershipType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | + +**Operations:** + +```typescript +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Get one by id +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Create +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +``` + ### `db.appGrant` CRUD operations for AppGrant records. @@ -989,109 +1095,109 @@ const updated = await db.appGrant.update({ where: { id: '' }, data: { perm const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.orgClaimedInvite` -CRUD operations for AppMembershipDefault records. +CRUD operations for OrgClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all orgClaimedInvite records +const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.orgGrant` -CRUD operations for OrgMembershipDefault records. +CRUD operations for OrgGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all orgGrant records +const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgClaimedInvite` +### `db.usageSnapshot` -CRUD operations for OrgClaimedInvite records. +CRUD operations for UsageSnapshot records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `databaseId` | UUID | Yes | +| `metricName` | String | Yes | +| `metricValue` | BigInt | Yes | +| `dimensions` | JSON | Yes | +| `capturedAt` | Datetime | Yes | | `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgClaimedInvite records -const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +// List all usageSnapshot records +const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); // Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); // Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitEvent` @@ -1102,6 +1208,8 @@ CRUD operations for AppLimitEvent records. | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | @@ -1116,10 +1224,10 @@ CRUD operations for AppLimitEvent records. ```typescript // List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); @@ -1139,6 +1247,8 @@ CRUD operations for OrgLimitEvent records. | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | @@ -1153,10 +1263,10 @@ CRUD operations for OrgLimitEvent records. ```typescript // List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); @@ -1168,45 +1278,51 @@ const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgGrant` +### `db.orgMembershipSetting` -CRUD operations for OrgGrant records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all orgGrant records -const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.orgChartEdge` +### `db.orgMemberProfile` -CRUD operations for OrgChartEdge records. +CRUD operations for OrgMemberProfile records. **Fields:** @@ -1215,63 +1331,76 @@ CRUD operations for OrgChartEdge records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `membershipId` | UUID | Yes | | `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | +| `actorId` | UUID | Yes | +| `displayName` | String | Yes | +| `email` | String | Yes | +| `title` | String | Yes | +| `bio` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); +// List all orgMemberProfile records +const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` -### `db.usageSnapshot` +### `db.appMembership` -CRUD operations for UsageSnapshot records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `databaseId` | UUID | Yes | -| `metricName` | String | Yes | -| `metricValue` | BigInt | Yes | -| `dimensions` | JSON | Yes | -| `capturedAt` | Datetime | Yes | | `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all usageSnapshot records -const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); +// List all appMembership records +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -1313,50 +1442,9 @@ const updated = await db.appLimit.update({ where: { id: '' }, data: { name const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.appInvite` - -CRUD operations for AppInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipSetting` +### `db.orgMembership` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgMembership records. **Fields:** @@ -1367,33 +1455,37 @@ CRUD operations for OrgMembershipSetting records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all orgMembership records +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitAggregate` @@ -1476,87 +1568,45 @@ const updated = await db.orgLimit.update({ where: { id: '' }, data: { name const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMemberProfile` - -CRUD operations for OrgMemberProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembership` +### `db.appInvite` -CRUD operations for AppMembership records. +CRUD operations for AppInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `profileId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +// List all appInvite records +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` @@ -1603,52 +1653,6 @@ const updated = await db.orgInvite.update({ where: { id: '' }, data: { ema const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.appPermissionsGetPaddedMask` diff --git a/sdk/constructive-cli/src/admin/orm/index.ts b/sdk/constructive-cli/src/admin/orm/index.ts index ceecedd2a4..516ca45219 100644 --- a/sdk/constructive-cli/src/admin/orm/index.ts +++ b/sdk/constructive-cli/src/admin/orm/index.ts @@ -14,42 +14,42 @@ import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; import { AppLimitCreditModel } from './models/appLimitCredit'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; import { AppLimitCapModel } from './models/appLimitCap'; import { OrgLimitCapModel } from './models/orgLimitCap'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { MembershipTypeModel } from './models/membershipType'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitCreditModel } from './models/orgLimitCredit'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; +import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { MembershipTypeModel } from './models/membershipType'; import { AppGrantModel } from './models/appGrant'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgGrantModel } from './models/orgGrant'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppLimitModel } from './models/appLimit'; -import { AppInviteModel } from './models/appInvite'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; -import { OrgLimitModel } from './models/orgLimit'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; import { AppMembershipModel } from './models/appMembership'; -import { OrgInviteModel } from './models/orgInvite'; +import { AppLimitModel } from './models/appLimit'; import { OrgMembershipModel } from './models/orgMembership'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; +import { OrgLimitModel } from './models/orgLimit'; +import { AppInviteModel } from './models/appInvite'; +import { OrgInviteModel } from './models/orgInvite'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -94,42 +94,42 @@ export function createClient(config: OrmClientConfig) { appLimitCredit: new AppLimitCreditModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgAdminGrant: new OrgAdminGrantModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + orgOwnerGrant: new OrgOwnerGrantModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), appLimitCap: new AppLimitCapModel(client), orgLimitCap: new OrgLimitCapModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - membershipType: new MembershipTypeModel(client), + orgChartEdge: new OrgChartEdgeModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitCredit: new OrgLimitCreditModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), appLimitWarning: new AppLimitWarningModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), + orgLimitWarning: new OrgLimitWarningModel(client), + membershipType: new MembershipTypeModel(client), appGrant: new AppGrantModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), orgGrant: new OrgGrantModel(client), - orgChartEdge: new OrgChartEdgeModel(client), usageSnapshot: new UsageSnapshotModel(client), - appLimit: new AppLimitModel(client), - appInvite: new AppInviteModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), - orgLimitAggregate: new OrgLimitAggregateModel(client), - orgLimit: new OrgLimitModel(client), orgMemberProfile: new OrgMemberProfileModel(client), appMembership: new AppMembershipModel(client), - orgInvite: new OrgInviteModel(client), + appLimit: new AppLimitModel(client), orgMembership: new OrgMembershipModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), + orgLimit: new OrgLimitModel(client), + appInvite: new AppInviteModel(client), + orgInvite: new OrgInviteModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-cli/src/admin/orm/input-types.ts b/sdk/constructive-cli/src/admin/orm/input-types.ts index 0e9e56aec5..1c919079d0 100644 --- a/sdk/constructive-cli/src/admin/orm/input-types.ts +++ b/sdk/constructive-cli/src/admin/orm/input-types.ts @@ -316,17 +316,27 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { +/** Records of admin role grants and revocations between members */ +export interface AppAdminGrant { id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Records of ownership transfers and grants between members */ +export interface AppOwnerGrant { + id: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { @@ -336,24 +346,52 @@ export interface OrgPermissionDefault { /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} /** Records of admin role grants and revocations between members */ -export interface AppAdminGrant { +export interface OrgAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} /** Records of ownership transfers and grants between members */ -export interface AppOwnerGrant { +export interface OrgOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -394,46 +432,21 @@ export interface OrgLimitCap { /** Override cap value for this entity */ max?: string | null; } -/** Records of admin role grants and revocations between members */ -export interface OrgAdminGrant { +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - /** The entity (org or group) this admin grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface OrgOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - /** The entity (org or group) this ownership grant applies to */ + /** Organization this hierarchy edge belongs to */ entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; } /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { @@ -471,20 +484,20 @@ export interface OrgLimitCredit { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string | null; } -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; } /** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { +export interface AppLimitWarning { id: string; /** Limit name this warning applies to (must match a default_limits entry) */ name?: string | null; @@ -494,8 +507,6 @@ export interface OrgLimitWarning { thresholdValue?: string | null; /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -529,6 +540,35 @@ export interface AppClaimedInvite { createdAt?: string | null; updatedAt?: string | null; } +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface OrgLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; +} /** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; @@ -542,30 +582,6 @@ export interface AppGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; @@ -579,8 +595,40 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ +export interface OrgGrant { + id: string; + /** Bitmask of permissions being granted or revoked */ + permissions?: string | null; + /** True to grant the permissions, false to revoke them */ + isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ + actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ +export interface UsageSnapshot { + /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ + databaseId?: string | null; + /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ + metricName?: string | null; + /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ + metricValue?: string | null; + /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ + dimensions?: Record | null; + /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ + capturedAt?: string | null; + id: string; +} /** Append-only log of limit events for historical reporting and audit */ export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -602,6 +650,9 @@ export interface AppLimitEvent { } /** Append-only log of limit events for historical reporting and audit */ export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -621,50 +672,82 @@ export interface OrgLimitEvent { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ -export interface OrgGrant { +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - /** The entity (org or group) this permission grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; } -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { +/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ +export interface OrgMemberProfile { id: string; createdAt?: string | null; updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ + /** References the membership this profile belongs to (1:1) */ + membershipId?: string | null; + /** References the entity this profile belongs to (used for RLS lookups) */ entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; + /** References the user who owns this profile (for self-edit RLS) */ + actorId?: string | null; + /** Display name shown to other entity members */ + displayName?: string | null; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string | null; + /** Job title or role description visible to other entity members */ + title?: string | null; + /** Short biography visible to other entity members */ + bio?: string | null; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage | null; } -/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ -export interface UsageSnapshot { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string | null; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string | null; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string | null; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: Record | null; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string | null; +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + profileId?: string | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { @@ -690,57 +773,38 @@ export interface AppLimit { /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; } -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface OrgMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; - /** References the entity these settings apply to */ + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean | null; + profileId?: string | null; } /** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ export interface OrgLimitAggregate { @@ -793,56 +857,31 @@ export interface OrgLimit { periodCredits?: string | null; entityId?: string | null; } -/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ -export interface OrgMemberProfile { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string | null; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string | null; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string | null; - /** Display name shown to other entity members */ - displayName?: string | null; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string | null; - /** Job title or role description visible to other entity members */ - title?: string | null; - /** Short biography visible to other entity members */ - bio?: string | null; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { id: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ + data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { @@ -875,39 +914,6 @@ export interface OrgInvite { updatedAt?: string | null; entityId?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface OrgMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - /** References the entity (org or group) this membership belongs to */ - entityId?: string | null; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean | null; - profileId?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -937,20 +943,18 @@ export interface AppLimitCreditRelations { } export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} +export interface OrgPermissionDefaultRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgAdminGrantRelations {} +export interface OrgMembershipDefaultRelations {} +export interface OrgOwnerGrantRelations {} export interface AppLimitCapsDefaultRelations {} export interface OrgLimitCapsDefaultRelations {} export interface AppLimitCapRelations {} export interface OrgLimitCapRelations {} -export interface OrgAdminGrantRelations {} -export interface OrgOwnerGrantRelations {} -export interface MembershipTypeRelations {} +export interface OrgChartEdgeRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; @@ -961,32 +965,34 @@ export interface OrgLimitDefaultRelations { export interface OrgLimitCreditRelations { defaultLimit?: OrgLimitDefault | null; } +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} export interface AppLimitWarningRelations {} -export interface OrgLimitWarningRelations {} export interface OrgChartEdgeGrantRelations {} export interface AppClaimedInviteRelations {} -export interface AppGrantRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations {} +export interface OrgLimitWarningRelations {} +export interface MembershipTypeRelations {} +export interface AppGrantRelations {} export interface OrgClaimedInviteRelations {} -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface OrgGrantRelations {} -export interface OrgChartEdgeRelations {} export interface UsageSnapshotRelations {} -export interface AppLimitRelations {} -export interface AppInviteRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface OrgMembershipSettingRelations {} -export interface OrgLimitAggregateRelations {} -export interface OrgLimitRelations {} export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } export interface AppMembershipRelations {} -export interface OrgInviteRelations {} +export interface AppLimitRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } +export interface OrgLimitAggregateRelations {} +export interface OrgLimitRelations {} +export interface AppInviteRelations {} +export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & OrgGetManagersRecordRelations; @@ -1002,46 +1008,46 @@ export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelatio export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; +export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & + OrgPermissionDefaultRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; +export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; +export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; -export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; +export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { userId?: boolean; @@ -1107,42 +1113,59 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { +export type AppAdminGrantSelect = { id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type AppOwnerGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type OrgPermissionDefaultSelect = { id?: boolean; permissions?: boolean; entityId?: boolean; }; -export type AppAdminGrantSelect = { +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; }; -export type AppOwnerGrantSelect = { +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; +}; +export type OrgOwnerGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1169,31 +1192,15 @@ export type OrgLimitCapSelect = { entityId?: boolean; max?: boolean; }; -export type OrgAdminGrantSelect = { +export type OrgChartEdgeSelect = { id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; -}; -export type OrgOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; }; export type AppLimitDefaultSelect = { id?: boolean; @@ -1237,20 +1244,31 @@ export type OrgLimitCreditSelect = { select: OrgLimitDefaultSelect; }; }; -export type AppLimitWarningSelect = { +export type AppLimitCreditCodeSelect = { id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; }; -export type OrgLimitWarningSelect = { +export type AppLimitWarningSelect = { id?: boolean; name?: boolean; warningType?: boolean; thresholdValue?: boolean; taskIdentifier?: boolean; - entityId?: boolean; }; export type OrgChartEdgeGrantSelect = { id?: boolean; @@ -1271,6 +1289,22 @@ export type AppClaimedInviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; + entityId?: boolean; +}; +export type MembershipTypeSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; +}; export type AppGrantSelect = { id?: boolean; permissions?: boolean; @@ -1280,34 +1314,36 @@ export type AppGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppMembershipDefaultSelect = { +export type OrgClaimedInviteSelect = { id?: boolean; + data?: boolean; + senderId?: boolean; + receiverId?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; + entityId?: boolean; }; -export type OrgMembershipDefaultSelect = { +export type OrgGrantSelect = { id?: boolean; + permissions?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; }; -export type OrgClaimedInviteSelect = { +export type UsageSnapshotSelect = { + databaseId?: boolean; + metricName?: boolean; + metricValue?: boolean; + dimensions?: boolean; + capturedAt?: boolean; id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; }; export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1319,6 +1355,8 @@ export type AppLimitEventSelect = { reason?: boolean; }; export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1329,39 +1367,61 @@ export type OrgLimitEventSelect = { maxAtEvent?: boolean; reason?: boolean; }; -export type OrgGrantSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; }; -export type OrgChartEdgeSelect = { +export type OrgMemberProfileSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; + membershipId?: boolean; entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; -}; -export type UsageSnapshotSelect = { - databaseId?: boolean; - metricName?: boolean; - metricValue?: boolean; - dimensions?: boolean; - capturedAt?: boolean; - id?: boolean; -}; -export type AppLimitSelect = { - id?: boolean; - name?: boolean; actorId?: boolean; - num?: boolean; + displayName?: boolean; + email?: boolean; + title?: boolean; + bio?: boolean; + profilePicture?: boolean; + membership?: { + select: OrgMembershipSelect; + }; +}; +export type AppMembershipSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + profileId?: boolean; +}; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; max?: boolean; softMax?: boolean; windowStart?: boolean; @@ -1370,36 +1430,28 @@ export type AppLimitSelect = { purchasedCredits?: boolean; periodCredits?: boolean; }; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type OrgMembershipSettingSelect = { +export type OrgMembershipSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; + isReadOnly?: boolean; + profileId?: boolean; + orgMemberProfileByMembershipId?: { + select: OrgMemberProfileSelect; + }; }; export type OrgLimitAggregateSelect = { id?: boolean; @@ -1429,39 +1481,20 @@ export type OrgLimitSelect = { periodCredits?: boolean; entityId?: boolean; }; -export type OrgMemberProfileSelect = { +export type AppInviteSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - membershipId?: boolean; - entityId?: boolean; - actorId?: boolean; - displayName?: boolean; email?: boolean; - title?: boolean; - bio?: boolean; - profilePicture?: boolean; - membership?: { - select: OrgMembershipSelect; - }; -}; -export type AppMembershipSelect = { - id?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -1481,29 +1514,6 @@ export type OrgInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; -export type OrgMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - entityId?: boolean; - isReadOnly?: boolean; - profileId?: boolean; - orgMemberProfileByMembershipId?: { - select: OrgMemberProfileSelect; - }; -}; // ============ Table Filter Types ============ export interface OrgGetManagersRecordFilter { userId?: UUIDFilter; @@ -1643,31 +1653,45 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { +export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; + and?: AppAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; + or?: AppAdminGrantFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; + not?: AppAdminGrantFilter; +} +export interface AppOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppOwnerGrantFilter[]; + /** Negates the expression. */ + not?: AppOwnerGrantFilter; } export interface OrgPermissionDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1683,13 +1707,37 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } -export interface AppAdminGrantFilter { +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1697,19 +1745,43 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; + and?: OrgAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; + or?: OrgAdminGrantFilter[]; /** Negates the expression. */ - not?: AppAdminGrantFilter; + not?: OrgAdminGrantFilter; } -export interface AppOwnerGrantFilter { +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} +export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1717,11 +1789,11 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; + and?: OrgOwnerGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; + or?: OrgOwnerGrantFilter[]; /** Negates the expression. */ - not?: AppOwnerGrantFilter; + not?: OrgOwnerGrantFilter; } export interface AppLimitCapsDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1783,69 +1855,29 @@ export interface OrgLimitCapFilter { /** Negates the expression. */ not?: OrgLimitCapFilter; } -export interface OrgAdminGrantFilter { +export interface OrgChartEdgeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; -} -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: OrgChartEdgeFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: OrgChartEdgeFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: OrgChartEdgeFilter; } export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1915,25 +1947,33 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } -export interface AppLimitWarningFilter { +export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; + and?: AppLimitCreditCodeFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; + or?: AppLimitCreditCodeFilter[]; /** Negates the expression. */ - not?: AppLimitWarningFilter; + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -export interface OrgLimitWarningFilter { +export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1944,14 +1984,12 @@ export interface OrgLimitWarningFilter { thresholdValue?: BigIntFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; + and?: AppLimitWarningFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; + or?: AppLimitWarningFilter[]; /** Negates the expression. */ - not?: OrgLimitWarningFilter; + not?: AppLimitWarningFilter; } export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ @@ -1997,6 +2035,46 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} export interface AppGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2019,71 +2097,75 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } -export interface AppMembershipDefaultFilter { +export interface OrgClaimedInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; + and?: OrgClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; + or?: OrgClaimedInviteFilter[]; /** Negates the expression. */ - not?: AppMembershipDefaultFilter; + not?: OrgClaimedInviteFilter; } -export interface OrgMembershipDefaultFilter { +export interface OrgGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: OrgGrantFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: OrgGrantFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; + not?: OrgGrantFilter; } -export interface OrgClaimedInviteFilter { +export interface UsageSnapshotFilter { + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `metricName` field. */ + metricName?: StringFilter; + /** Filter by the object’s `metricValue` field. */ + metricValue?: BigIntFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: JSONFilter; + /** Filter by the object’s `capturedAt` field. */ + capturedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; + and?: UsageSnapshotFilter[]; /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; + or?: UsageSnapshotFilter[]; /** Negates the expression. */ - not?: OrgClaimedInviteFilter; + not?: UsageSnapshotFilter; } export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2110,6 +2192,10 @@ export interface AppLimitEventFilter { not?: AppLimitEventFilter; } export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2135,147 +2221,17 @@ export interface OrgLimitEventFilter { /** Negates the expression. */ not?: OrgLimitEventFilter; } -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; -} -export interface OrgChartEdgeFilter { +export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; - /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; - /** Negates the expression. */ - not?: UsageSnapshotFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; -} -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; -} -export interface OrgMembershipSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `deleteMemberCascadeChildren` field. */ @@ -2301,70 +2257,6 @@ export interface OrgMembershipSettingFilter { /** Negates the expression. */ not?: OrgMembershipSettingFilter; } -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; -} -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} export interface OrgMemberProfileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2437,43 +2329,35 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } -export interface OrgInviteFilter { +export interface AppLimitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; + and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; + or?: AppLimitFilter[]; /** Negates the expression. */ - not?: OrgInviteFilter; + not?: AppLimitFilter; } export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ @@ -2523,32 +2407,166 @@ export interface OrgMembershipFilter { /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; } -// ============ OrderBy Types ============ -export type OrgGetManagersRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type OrgGetSubordinatesRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `reserved` field. */ + reserved?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} +export interface AppInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: AppInviteFilter[]; + /** Negates the expression. */ + not?: AppInviteFilter; +} +export interface OrgInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgInviteFilter[]; + /** Negates the expression. */ + not?: OrgInviteFilter; +} +// ============ OrderBy Types ============ +export type OrgGetManagersRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type OrgGetSubordinatesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type AppPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' | 'BITNUM_DESC' | 'BITSTR_ASC' | 'BITSTR_DESC' @@ -2628,20 +2646,38 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = +export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2652,7 +2688,25 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppAdminGrantOrderBy = +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2662,13 +2716,33 @@ export type AppAdminGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppOwnerGrantOrderBy = +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2678,6 +2752,8 @@ export type AppOwnerGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -2728,58 +2804,26 @@ export type OrgLimitCapOrderBy = | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type OrgAdminGrantOrderBy = +export type OrgChartEdgeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2822,21 +2866,21 @@ export type OrgLimitCreditOrderBy = | 'CREDIT_TYPE_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type AppLimitWarningOrderBy = +export type AppLimitCreditCodeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type OrgLimitWarningOrderBy = + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2849,9 +2893,7 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'TASK_IDENTIFIER_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2890,6 +2932,38 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type MembershipTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type AppGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2908,62 +2982,68 @@ export type AppGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = +export type OrgClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgClaimedInviteOrderBy = + | 'UPDATED_AT_DESC'; +export type UsageSnapshotOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'METRIC_NAME_ASC' + | 'METRIC_NAME_DESC' + | 'METRIC_VALUE_ASC' + | 'METRIC_VALUE_DESC' + | 'DIMENSIONS_ASC' + | 'DIMENSIONS_DESC' + | 'CAPTURED_AT_ASC' + | 'CAPTURED_AT_DESC' | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ID_DESC'; export type AppLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -2984,6 +3064,12 @@ export type AppLimitEventOrderBy = | 'REASON_DESC'; export type OrgLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -3002,27 +3088,39 @@ export type OrgLimitEventOrderBy = | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type OrgGrantOrderBy = +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgChartEdgeOrderBy = + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +export type OrgMemberProfileOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3032,46 +3130,72 @@ export type OrgChartEdgeOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'MEMBERSHIP_ID_ASC' + | 'MEMBERSHIP_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type UsageSnapshotOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC'; -export type AppLimitOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'BIO_ASC' + | 'BIO_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC'; +export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' @@ -3084,37 +3208,7 @@ export type AppLimitOrderBy = | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC'; -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMembershipSettingOrderBy = +export type OrgMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3128,24 +3222,32 @@ export type OrgMembershipSettingOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_EXTERNAL_ASC' + | 'IS_EXTERNAL_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgLimitAggregateOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3202,68 +3304,36 @@ export type OrgLimitOrderBy = | 'PERIOD_CREDITS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMemberProfileOrderBy = +export type AppInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; + | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3300,46 +3370,6 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; @@ -3539,31 +3569,51 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateAppAdminGrantInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + appAdminGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface AppAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + appAdminGrantPatch: AppAdminGrantPatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgPermissionDefaultInput { +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + appOwnerGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; +} +export interface DeleteAppOwnerGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgPermissionDefaultInput { clientMutationId?: string; orgPermissionDefault: { permissions?: string; @@ -3583,47 +3633,99 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppAdminGrantInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - appAdminGrant: { + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgAdminGrantInput { + clientMutationId?: string; + orgAdminGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppAdminGrantPatch { +export interface OrgAdminGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppAdminGrantInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - appAdminGrantPatch: AppAdminGrantPatch; + orgAdminGrantPatch: OrgAdminGrantPatch; } -export interface DeleteAppAdminGrantInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppOwnerGrantInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - appOwnerGrant: { + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + orgOwnerGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppOwnerGrantPatch { +export interface OrgOwnerGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppOwnerGrantInput { +export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; + orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface DeleteAppOwnerGrantInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3711,80 +3813,32 @@ export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; -} -export interface DeleteOrgAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgOwnerGrantInput { +export interface CreateOrgChartEdgeInput { clientMutationId?: string; - orgOwnerGrant: { - isGrant?: boolean; - actorId: string; + orgChartEdge: { entityId: string; - grantorId?: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; }; } -export interface OrgOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgChartEdgePatch { entityId?: string | null; - grantorId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateOrgChartEdgeInput { clientMutationId?: string; id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; + orgChartEdgePatch: OrgChartEdgePatch; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -3857,53 +3911,51 @@ export interface DeleteOrgLimitCreditInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitWarningInput { +export interface CreateAppLimitCreditCodeInput { clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; }; } -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; } -export interface UpdateAppLimitWarningInput { +export interface UpdateAppLimitCreditCodeInput { clientMutationId?: string; id: string; - appLimitWarningPatch: AppLimitWarningPatch; + appLimitCreditCodePatch: AppLimitCreditCodePatch; } -export interface DeleteAppLimitWarningInput { +export interface DeleteAppLimitCreditCodeInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitWarningInput { +export interface CreateAppLimitWarningInput { clientMutationId?: string; - orgLimitWarning: { + appLimitWarning: { name: string; warningType: string; thresholdValue: string; taskIdentifier: string; - entityId?: string; }; } -export interface OrgLimitWarningPatch { +export interface AppLimitWarningPatch { name?: string | null; warningType?: string | null; thresholdValue?: string | null; taskIdentifier?: string | null; - entityId?: string | null; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateAppLimitWarningInput { clientMutationId?: string; id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; + appLimitWarningPatch: AppLimitWarningPatch; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } @@ -3959,75 +4011,79 @@ export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAppGrantInput { +export interface CreateOrgLimitWarningInput { clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; + orgLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + entityId?: string; }; } -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; +export interface OrgLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; + entityId?: string | null; } -export interface UpdateAppGrantInput { +export interface UpdateOrgLimitWarningInput { clientMutationId?: string; id: string; - appGrantPatch: AppGrantPatch; + orgLimitWarningPatch: OrgLimitWarningPatch; } -export interface DeleteAppGrantInput { +export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; + }; } -export interface UpdateAppMembershipDefaultInput { +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; +} +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateOrgMembershipDefaultInput { +export interface CreateAppGrantInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + appGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface AppGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateAppGrantInput { clientMutationId?: string; id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + appGrantPatch: AppGrantPatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } @@ -4055,6 +4111,58 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface CreateOrgGrantInput { + clientMutationId?: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + orgGrantPatch: OrgGrantPatch; +} +export interface DeleteOrgGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateUsageSnapshotInput { + clientMutationId?: string; + usageSnapshot: { + databaseId: string; + metricName: string; + metricValue?: string; + dimensions?: Record; + capturedAt?: string; + }; +} +export interface UsageSnapshotPatch { + databaseId?: string | null; + metricName?: string | null; + metricValue?: string | null; + dimensions?: Record | null; + capturedAt?: string | null; +} +export interface UpdateUsageSnapshotInput { + clientMutationId?: string; + id: string; + usageSnapshotPatch: UsageSnapshotPatch; +} +export interface DeleteUsageSnapshotInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitEventInput { clientMutationId?: string; appLimitEvent: { @@ -4123,81 +4231,116 @@ export interface DeleteOrgLimitEventInput { clientMutationId?: string; id: string; } -export interface CreateOrgGrantInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; entityId: string; - grantorId?: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; entityId?: string | null; - grantorId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateOrgGrantInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - orgGrantPatch: OrgGrantPatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteOrgGrantInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface CreateOrgChartEdgeInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - orgChartEdge: { + orgMemberProfile: { + membershipId: string; entityId: string; - childId: string; - parentId?: string; - positionTitle?: string; - positionLevel?: number; + actorId: string; + displayName?: string; + email?: string; + title?: string; + bio?: string; + profilePicture?: ConstructiveInternalTypeImage; }; } -export interface OrgChartEdgePatch { +export interface OrgMemberProfilePatch { + membershipId?: string | null; entityId?: string | null; - childId?: string | null; - parentId?: string | null; - positionTitle?: string | null; - positionLevel?: number | null; + actorId?: string | null; + displayName?: string | null; + email?: string | null; + title?: string | null; + bio?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + profilePictureUpload?: File | null; } -export interface UpdateOrgChartEdgeInput { +export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; - orgChartEdgePatch: OrgChartEdgePatch; + orgMemberProfilePatch: OrgMemberProfilePatch; } -export interface DeleteOrgChartEdgeInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateUsageSnapshotInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - usageSnapshot: { - databaseId: string; - metricName: string; - metricValue?: string; - dimensions?: Record; - capturedAt?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface UsageSnapshotPatch { - databaseId?: string | null; - metricName?: string | null; - metricValue?: string | null; - dimensions?: Record | null; - capturedAt?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; } -export interface UpdateUsageSnapshotInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - usageSnapshotPatch: UsageSnapshotPatch; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteUsageSnapshotInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } @@ -4237,77 +4380,49 @@ export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } -export interface CreateAppInviteInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { + orgMembership: { createdBy?: string; updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; + isReadOnly?: boolean; + profileId?: string; }; } -export interface OrgMembershipSettingPatch { +export interface OrgMembershipPatch { createdBy?: string | null; updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isExternal?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; + isReadOnly?: boolean | null; + profileId?: string | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + orgMembershipPatch: OrgMembershipPatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } @@ -4387,78 +4502,39 @@ export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { +export interface CreateAppInviteInput { clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; + appInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; profileId?: string; + expiresAt?: string; }; } -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; +export interface AppInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; profileId?: string | null; + expiresAt?: string | null; } -export interface UpdateAppMembershipInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - appMembershipPatch: AppMembershipPatch; + appInvitePatch: AppInvitePatch; } -export interface DeleteAppMembershipInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } @@ -4504,58 +4580,8 @@ export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -4563,6 +4589,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, } as Record>; // ============ Custom Input Types (from schema) ============ export interface SubmitAppInviteCodeInput { @@ -4582,24 +4612,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitDefaultToManyAppLimitCreditFilter { /** Filters to entities where at least one related entity matches. */ @@ -4627,22 +4639,75 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } -/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ -export interface IntervalFilter { +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Equal to the specified value. */ - equalTo?: IntervalInput; + equalTo?: ConstructiveInternalTypeImage; /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; + notEqualTo?: ConstructiveInternalTypeImage; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: IntervalInput; + distinctFrom?: ConstructiveInternalTypeImage; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; + notDistinctFrom?: ConstructiveInternalTypeImage; /** Included in the specified list. */ - in?: IntervalInput[]; + in?: ConstructiveInternalTypeImage[]; /** Not included in the specified list. */ - notIn?: IntervalInput[]; + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; /** Less than the specified value. */ lessThan?: IntervalInput; /** Less than or equal to the specified value. */ @@ -4729,101 +4794,49 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; + and?: AppLimitCreditFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; + or?: AppLimitCreditFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; + not?: AppLimitCreditFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `creditCodeId` field. */ creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; + and?: AppLimitCreditCodeItemFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; + or?: AppLimitCreditCodeItemFilter[]; /** Negates the expression. */ - not?: AppLimitCreditFilter; + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } @@ -4852,6 +4865,23 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -4998,6 +5028,31 @@ export interface StringFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -5025,31 +5080,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ @@ -5513,64 +5543,109 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface CreateOrgPermissionDefaultPayload { +export interface CreateAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type CreateOrgPermissionDefaultPayloadSelect = { +export type CreateAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type UpdateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type DeleteAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type CreateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; export interface UpdateOrgPermissionDefaultPayload { @@ -5603,94 +5678,184 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; -export interface CreateAppAdminGrantPayload { +export interface CreateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type CreateAppAdminGrantPayloadSelect = { +export type CreateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface UpdateAppAdminGrantPayload { +export interface UpdateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type UpdateAppAdminGrantPayloadSelect = { +export type UpdateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface DeleteAppAdminGrantPayload { +export interface DeleteAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type DeleteAppAdminGrantPayloadSelect = { +export type DeleteAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface CreateAppOwnerGrantPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateAppOwnerGrantPayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateAppOwnerGrantPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateAppOwnerGrantPayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteAppOwnerGrantPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteAppOwnerGrantPayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type UpdateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type DeleteOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type CreateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type UpdateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type DeleteOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -5873,139 +6038,49 @@ export type DeleteOrgLimitCapPayloadSelect = { select: OrgLimitCapEdgeSelect; }; }; -export interface CreateOrgAdminGrantPayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type CreateOrgAdminGrantPayloadSelect = { +export type CreateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type UpdateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type DeleteOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -6143,6 +6218,51 @@ export type DeleteOrgLimitCreditPayloadSelect = { select: OrgLimitCreditEdgeSelect; }; }; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -6188,51 +6308,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; /** The `OrgChartEdgeGrant` that was created by this mutation. */ @@ -6323,139 +6398,139 @@ export type DeleteAppClaimedInvitePayloadSelect = { select: AppClaimedInviteEdgeSelect; }; }; -export interface CreateAppGrantPayload { +export interface CreateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type CreateAppGrantPayloadSelect = { +export type CreateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface UpdateAppGrantPayload { +export interface UpdateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type UpdateAppGrantPayloadSelect = { +export type UpdateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface DeleteAppGrantPayload { +export interface DeleteOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type DeleteAppGrantPayloadSelect = { +export type DeleteOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; export interface CreateOrgClaimedInvitePayload { @@ -6503,28 +6578,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -6570,51 +6623,6 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -export interface CreateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type CreateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface UpdateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type UpdateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type DeleteOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; export interface CreateUsageSnapshotPayload { clientMutationId?: string | null; /** The `UsageSnapshot` that was created by this mutation. */ @@ -6660,139 +6668,319 @@ export type DeleteUsageSnapshotPayloadSelect = { select: UsageSnapshotEdgeSelect; }; }; -export interface CreateAppLimitPayload { +export interface CreateAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type CreateAppLimitPayloadSelect = { +export type CreateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface UpdateAppLimitPayload { +export interface UpdateAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type UpdateAppLimitPayloadSelect = { +export type UpdateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface DeleteAppLimitPayload { +export interface DeleteAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type DeleteAppLimitPayloadSelect = { +export type DeleteAppLimitEventPayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface CreateAppInvitePayload { +export interface CreateOrgLimitEventPayload { clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } -export type CreateAppInvitePayloadSelect = { +export type CreateOrgLimitEventPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgLimitEvent?: { + select: OrgLimitEventSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface CreateOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} +export type CreateOrgMemberProfilePayloadSelect = { + clientMutationId?: boolean; + orgMemberProfile?: { + select: OrgMemberProfileSelect; + }; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; + }; +}; +export interface UpdateOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} +export type UpdateOrgMemberProfilePayloadSelect = { + clientMutationId?: boolean; + orgMemberProfile?: { + select: OrgMemberProfileSelect; + }; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; + }; +}; +export interface DeleteOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} +export type DeleteOrgMemberProfilePayloadSelect = { + clientMutationId?: boolean; + orgMemberProfile?: { + select: OrgMemberProfileSelect; + }; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; + }; +}; +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type CreateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; }; }; -export interface UpdateAppInvitePayload { +export interface UpdateAppLimitPayload { clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } -export type UpdateAppInvitePayloadSelect = { +export type UpdateAppLimitPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + appLimit?: { + select: AppLimitSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + appLimitEdge?: { + select: AppLimitEdgeSelect; }; }; -export interface DeleteAppInvitePayload { +export interface DeleteAppLimitPayload { clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } -export type DeleteAppInvitePayloadSelect = { +export type DeleteAppLimitPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + appLimit?: { + select: AppLimitSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + appLimitEdge?: { + select: AppLimitEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type UpdateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type DeleteOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; export interface CreateOrgLimitAggregatePayload { @@ -6885,94 +7073,49 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface CreateAppMembershipPayload { +export interface CreateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type CreateAppMembershipPayloadSelect = { +export type CreateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface UpdateAppMembershipPayload { +export interface UpdateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type UpdateAppMembershipPayloadSelect = { +export type UpdateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface DeleteAppMembershipPayload { +export interface DeleteAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type DeleteAppMembershipPayloadSelect = { +export type DeleteAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; export interface CreateOrgInvitePayload { @@ -7020,51 +7163,6 @@ export type DeleteOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -7166,16 +7264,28 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type AppAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAdminGrantSelect; + }; +}; +/** A `AppOwnerGrant` edge in the connection. */ +export interface AppOwnerGrantEdge { + cursor?: string | null; + /** The `AppOwnerGrant` at the end of the edge. */ + node?: AppOwnerGrant | null; +} +export type AppOwnerGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: AppOwnerGrantSelect; }; }; /** A `OrgPermissionDefault` edge in the connection. */ @@ -7190,28 +7300,52 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type AppAdminGrantEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppAdminGrantSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `AppOwnerGrant` edge in the connection. */ -export interface AppOwnerGrantEdge { +/** A `OrgAdminGrant` edge in the connection. */ +export interface OrgAdminGrantEdge { cursor?: string | null; - /** The `AppOwnerGrant` at the end of the edge. */ - node?: AppOwnerGrant | null; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; } -export type AppOwnerGrantEdgeSelect = { +export type OrgAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppOwnerGrantSelect; + select: OrgAdminGrantSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} +export type OrgOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgOwnerGrantSelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -7262,40 +7396,16 @@ export type OrgLimitCapEdgeSelect = { select: OrgLimitCapSelect; }; }; -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -export type OrgAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgAdminGrantSelect; - }; -}; -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { - cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; -} -export type OrgOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgOwnerGrantSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type MembershipTypeEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: OrgChartEdgeSelect; }; }; /** A `AppLimitDefault` edge in the connection. */ @@ -7334,28 +7444,28 @@ export type OrgLimitCreditEdgeSelect = { select: OrgLimitCreditSelect; }; }; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; } -export type AppLimitWarningEdgeSelect = { +export type AppLimitCreditCodeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitWarningSelect; + select: AppLimitCreditCodeSelect; }; }; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; } -export type OrgLimitWarningEdgeSelect = { +export type AppLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitWarningSelect; + select: AppLimitWarningSelect; }; }; /** A `OrgChartEdgeGrant` edge in the connection. */ @@ -7382,40 +7492,40 @@ export type AppClaimedInviteEdgeSelect = { select: AppClaimedInviteSelect; }; }; -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; } -export type AppGrantEdgeSelect = { +export type OrgLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: AppGrantSelect; + select: OrgLimitWarningSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type AppGrantEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: AppGrantSelect; }; }; /** A `OrgClaimedInvite` edge in the connection. */ @@ -7442,18 +7552,6 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -export type OrgChartEdgeEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeSelect; - }; -}; /** A `UsageSnapshot` edge in the connection. */ export interface UsageSnapshotEdge { cursor?: string | null; @@ -7466,28 +7564,28 @@ export type UsageSnapshotEdgeSelect = { select: UsageSnapshotSelect; }; }; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type AppLimitEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitSelect; + select: AppLimitEventSelect; }; }; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; } -export type AppInviteEdgeSelect = { +export type OrgLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: AppInviteSelect; + select: OrgLimitEventSelect; }; }; /** A `OrgMembershipSetting` edge in the connection. */ @@ -7502,30 +7600,6 @@ export type OrgMembershipSettingEdgeSelect = { select: OrgMembershipSettingSelect; }; }; -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { - cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; -} -export type OrgLimitAggregateEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitAggregateSelect; - }; -}; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -export type OrgLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitSelect; - }; -}; /** A `OrgMemberProfile` edge in the connection. */ export interface OrgMemberProfileEdge { cursor?: string | null; @@ -7550,16 +7624,16 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; -/** A `OrgInvite` edge in the connection. */ -export interface OrgInviteEdge { +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { cursor?: string | null; - /** The `OrgInvite` at the end of the edge. */ - node?: OrgInvite | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; } -export type OrgInviteEdgeSelect = { +export type AppLimitEdgeSelect = { cursor?: boolean; node?: { - select: OrgInviteSelect; + select: AppLimitSelect; }; }; /** A `OrgMembership` edge in the connection. */ @@ -7574,3 +7648,51 @@ export type OrgMembershipEdgeSelect = { select: OrgMembershipSelect; }; }; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +export type OrgLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitSelect; + }; +}; +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { + cursor?: string | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; +} +export type AppInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: AppInviteSelect; + }; +}; +/** A `OrgInvite` edge in the connection. */ +export interface OrgInviteEdge { + cursor?: string | null; + /** The `OrgInvite` at the end of the edge. */ + node?: OrgInvite | null; +} +export type OrgInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgInviteSelect; + }; +}; diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts +++ b/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-cli/src/admin/orm/models/index.ts b/sdk/constructive-cli/src/admin/orm/models/index.ts index 68ff613876..abea0da32f 100644 --- a/sdk/constructive-cli/src/admin/orm/models/index.ts +++ b/sdk/constructive-cli/src/admin/orm/models/index.ts @@ -12,39 +12,39 @@ export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; export { AppLimitCreditModel } from './appLimitCredit'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; export { AppLimitCapModel } from './appLimitCap'; export { OrgLimitCapModel } from './orgLimitCap'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { MembershipTypeModel } from './membershipType'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgLimitCreditModel } from './orgLimitCredit'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; export { AppLimitWarningModel } from './appLimitWarning'; -export { OrgLimitWarningModel } from './orgLimitWarning'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; +export { OrgLimitWarningModel } from './orgLimitWarning'; +export { MembershipTypeModel } from './membershipType'; export { AppGrantModel } from './appGrant'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgGrantModel } from './orgGrant'; -export { OrgChartEdgeModel } from './orgChartEdge'; export { UsageSnapshotModel } from './usageSnapshot'; -export { AppLimitModel } from './appLimit'; -export { AppInviteModel } from './appInvite'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { OrgLimitAggregateModel } from './orgLimitAggregate'; -export { OrgLimitModel } from './orgLimit'; export { OrgMemberProfileModel } from './orgMemberProfile'; export { AppMembershipModel } from './appMembership'; -export { OrgInviteModel } from './orgInvite'; +export { AppLimitModel } from './appLimit'; export { OrgMembershipModel } from './orgMembership'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; +export { OrgLimitModel } from './orgLimit'; +export { AppInviteModel } from './appInvite'; +export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-cli/src/objects/cli/README.md b/sdk/constructive-cli/src/objects/cli/README.md index 8ae072103b..9b50b7a16d 100644 --- a/sdk/constructive-cli/src/objects/cli/README.md +++ b/sdk/constructive-cli/src/objects/cli/README.md @@ -130,14 +130,14 @@ CRUD operations for Object records. |-------|------| | `hashUuid` | UUID | | `id` | UUID | -| `databaseId` | UUID | +| `scopeId` | UUID | | `kids` | UUID | | `ktree` | String | | `data` | JSON | | `frzn` | Boolean | | `createdAt` | Datetime | -**Required create fields:** `databaseId` +**Required create fields:** `scopeId` **Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` ### `ref` @@ -159,11 +159,11 @@ CRUD operations for Ref records. |-------|------| | `id` | UUID | | `name` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `storeId` | UUID | | `commitId` | UUID | -**Required create fields:** `name`, `databaseId`, `storeId` +**Required create fields:** `name`, `scopeId`, `storeId` **Optional create fields (backend defaults):** `commitId` ### `store` @@ -185,11 +185,11 @@ CRUD operations for Store records. |-------|------| | `id` | UUID | | `name` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `hash` | UUID | | `createdAt` | Datetime | -**Required create fields:** `name`, `databaseId` +**Required create fields:** `name`, `scopeId` **Optional create fields (backend defaults):** `hash` ### `commit` @@ -211,7 +211,7 @@ CRUD operations for Commit records. |-------|------| | `id` | UUID | | `message` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `storeId` | UUID | | `parentIds` | UUID | | `authorId` | UUID | @@ -219,7 +219,7 @@ CRUD operations for Commit records. | `treeId` | UUID | | `date` | Datetime | -**Required create fields:** `databaseId`, `storeId` +**Required create fields:** `scopeId`, `storeId` **Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` ## Custom Operations @@ -233,7 +233,7 @@ revParse | Argument | Type | |----------|------| - | `--dbId` | UUID | + | `--sId` | UUID | | `--storeId` | UUID | | `--refname` | String | @@ -246,7 +246,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `--databaseId` | UUID | + | `--sId` | UUID | | `--id` | UUID | | `--first` | Int | | `--offset` | Int | @@ -261,7 +261,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `--databaseId` | UUID | + | `--sId` | UUID | | `--id` | UUID | | `--path` | String | | `--first` | Int | @@ -277,7 +277,7 @@ getObjectAtPath | Argument | Type | |----------|------| - | `--dbId` | UUID | + | `--sId` | UUID | | `--storeId` | UUID | | `--path` | String | | `--refname` | String | @@ -292,7 +292,7 @@ freezeObjects | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | + | `--input.sId` | UUID | | `--input.id` | UUID | ### `init-empty-repo` @@ -305,7 +305,7 @@ initEmptyRepo | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | ### `remove-node-at-path` @@ -318,7 +318,7 @@ removeNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | @@ -332,7 +332,7 @@ setDataAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -347,7 +347,7 @@ setPropsAndCommit | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | | `--input.refname` | String | | `--input.path` | String | @@ -363,7 +363,7 @@ insertNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -380,7 +380,7 @@ updateNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -397,7 +397,7 @@ setAndCommit | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | | `--input.refname` | String | | `--input.path` | String | diff --git a/sdk/constructive-cli/src/objects/cli/commands/commit.ts b/sdk/constructive-cli/src/objects/cli/commands/commit.ts index 02b4952ada..79870a7c41 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/commit.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/commit.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', message: 'string', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', parentIds: 'uuid', authorId: 'uuid', @@ -79,7 +79,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -108,7 +108,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -149,7 +149,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -180,8 +180,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -233,7 +233,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { message: cleanedData.message, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, parentIds: cleanedData.parentIds, authorId: cleanedData.authorId, @@ -244,7 +244,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -281,8 +281,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -337,7 +337,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { message: cleanedData.message, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, parentIds: cleanedData.parentIds, authorId: cleanedData.authorId, @@ -348,7 +348,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts b/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts index 6c2bef23be..da024e0fbe 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts @@ -23,8 +23,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts b/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts index 336a7e8d57..34e7a2396c 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts @@ -21,8 +21,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'dbId', - message: 'dbId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts b/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts index 3985235808..9961e452b2 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts @@ -23,8 +23,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/objects/cli/commands/object.ts b/sdk/constructive-cli/src/objects/cli/commands/object.ts index d99526a4ed..c49a3216a7 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/object.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/object.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { hashUuid: 'uuid', id: 'uuid', - databaseId: 'uuid', + scopeId: 'uuid', kids: 'uuid', ktree: 'string', data: 'json', @@ -77,7 +77,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -104,7 +104,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -143,7 +143,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -166,8 +166,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -205,7 +205,7 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.object .create({ data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, @@ -213,7 +213,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -242,8 +242,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -284,7 +284,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, @@ -292,7 +292,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, diff --git a/sdk/constructive-cli/src/objects/cli/commands/ref.ts b/sdk/constructive-cli/src/objects/cli/commands/ref.ts index cc4ef6922f..4ff8a3a6ff 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/ref.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/ref.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', commitId: 'uuid', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }; @@ -100,7 +100,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }; @@ -137,7 +137,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -163,8 +163,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -188,14 +188,14 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, commitId: cleanedData.commitId, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -227,8 +227,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -255,14 +255,14 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, commitId: cleanedData.commitId, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, diff --git a/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts b/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts index 302b869622..32e9cfa49d 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts @@ -19,8 +19,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'dbId', - message: 'dbId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/objects/cli/commands/store.ts b/sdk/constructive-cli/src/objects/cli/commands/store.ts index eba292c2fc..04f04ed6cc 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/store.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/store.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', - databaseId: 'uuid', + scopeId: 'uuid', hash: 'uuid', createdAt: 'string', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }; @@ -100,7 +100,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }; @@ -137,7 +137,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, @@ -163,8 +163,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -182,13 +182,13 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, @@ -220,8 +220,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -242,13 +242,13 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, diff --git a/sdk/constructive-cli/src/objects/orm/README.md b/sdk/constructive-cli/src/objects/orm/README.md index 94b8dc0860..98224dbfa7 100644 --- a/sdk/constructive-cli/src/objects/orm/README.md +++ b/sdk/constructive-cli/src/objects/orm/README.md @@ -69,7 +69,7 @@ CRUD operations for Object records. |-------|------|----------| | `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `kids` | UUID | Yes | | `ktree` | String | Yes | | `data` | JSON | Yes | @@ -80,13 +80,13 @@ CRUD operations for Object records. ```typescript // List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); @@ -105,7 +105,7 @@ CRUD operations for Ref records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | @@ -113,13 +113,13 @@ CRUD operations for Ref records. ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -138,7 +138,7 @@ CRUD operations for Store records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | @@ -146,13 +146,13 @@ CRUD operations for Store records. ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -171,7 +171,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -183,13 +183,13 @@ CRUD operations for Commit records. ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); @@ -209,12 +209,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -226,14 +226,14 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -245,7 +245,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `path` | [String] | | `first` | Int | @@ -253,7 +253,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -265,13 +265,13 @@ getObjectAtPath | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `path` | [String] | | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.mutation.freezeObjects` @@ -286,7 +286,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -301,7 +301,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.removeNodeAtPath` @@ -316,7 +316,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -331,7 +331,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -346,7 +346,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` diff --git a/sdk/constructive-cli/src/objects/orm/input-types.ts b/sdk/constructive-cli/src/objects/orm/input-types.ts index 8fcc221ef8..fe16958d8e 100644 --- a/sdk/constructive-cli/src/objects/orm/input-types.ts +++ b/sdk/constructive-cli/src/objects/orm/input-types.ts @@ -238,7 +238,7 @@ export interface GetAllRecord { export interface Object { hashUuid?: string | null; id: string; - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -251,7 +251,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -261,8 +261,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -273,8 +273,8 @@ export interface Commit { id: string; /** The commit message */ message?: string | null; - /** The repository identifier */ - databaseId?: string | null; + /** The scope identifier */ + scopeId?: string | null; storeId?: string | null; /** Parent commits */ parentIds?: string[] | null; @@ -318,7 +318,7 @@ export type GetAllRecordSelect = { export type ObjectSelect = { hashUuid?: boolean; id?: boolean; - databaseId?: boolean; + scopeId?: boolean; kids?: boolean; ktree?: boolean; data?: boolean; @@ -328,21 +328,21 @@ export type ObjectSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -361,8 +361,8 @@ export interface GetAllRecordFilter { export interface ObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -385,8 +385,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -403,8 +403,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -421,8 +421,8 @@ export interface CommitFilter { id?: UUIDFilter; /** Filter by the object’s `message` field. */ message?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -457,8 +457,8 @@ export type ObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -477,8 +477,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -491,8 +491,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -505,8 +505,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -543,7 +543,7 @@ export interface DeleteGetAllRecordInput { export interface CreateObjectInput { clientMutationId?: string; object: { - databaseId: string; + scopeId: string; kids?: string[]; ktree?: string[]; data?: Record; @@ -551,7 +551,7 @@ export interface CreateObjectInput { }; } export interface ObjectPatch { - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -570,14 +570,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -594,13 +594,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -616,7 +616,7 @@ export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -627,7 +627,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -649,30 +649,30 @@ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -680,7 +680,7 @@ export interface SetPropsAndCommitInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -689,7 +689,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -698,7 +698,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; diff --git a/sdk/constructive-cli/src/objects/orm/query/index.ts b/sdk/constructive-cli/src/objects/orm/query/index.ts index ce1f8680dc..e132a1ab47 100644 --- a/sdk/constructive-cli/src/objects/orm/query/index.ts +++ b/sdk/constructive-cli/src/objects/orm/query/index.ts @@ -9,12 +9,12 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { Object, ObjectSelect, ObjectConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } export interface GetAllObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; /** Only read the first `n` values of the set. */ first?: number; @@ -27,7 +27,7 @@ export interface GetAllObjectsFromRootVariables { after?: string; } export interface GetPathObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; path?: string[]; /** Only read the first `n` values of the set. */ @@ -41,7 +41,7 @@ export interface GetPathObjectsFromRootVariables { after?: string; } export interface GetObjectAtPathVariables { - dbId?: string; + sId?: string; storeId?: string; path?: string[]; refname?: string; @@ -69,7 +69,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -106,7 +106,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -151,7 +151,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -200,7 +200,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { diff --git a/sdk/constructive-cli/src/public/README.md b/sdk/constructive-cli/src/public/README.md index ed36922cb7..8261fbd19a 100644 --- a/sdk/constructive-cli/src/public/README.md +++ b/sdk/constructive-cli/src/public/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 148 +- **Tables:** 150 - **Custom queries:** 20 - **Custom mutations:** 49 diff --git a/sdk/constructive-cli/src/public/cli/README.md b/sdk/constructive-cli/src/public/cli/README.md index a4af3750df..d43313d4dd 100644 --- a/sdk/constructive-cli/src/public/cli/README.md +++ b/sdk/constructive-cli/src/public/cli/README.md @@ -29,9 +29,9 @@ csdk auth set-token | `org-get-managers-record` | orgGetManagersRecord CRUD operations | | `org-get-subordinates-record` | orgGetSubordinatesRecord CRUD operations | | `get-all-record` | getAllRecord CRUD operations | +| `object` | object CRUD operations | | `app-permission` | appPermission CRUD operations | | `org-permission` | orgPermission CRUD operations | -| `object` | object CRUD operations | | `database` | database CRUD operations | | `schema` | schema CRUD operations | | `table` | table CRUD operations | @@ -56,6 +56,7 @@ csdk auth set-token | `session-secrets-module` | sessionSecretsModule CRUD operations | | `identity-providers-module` | identityProvidersModule CRUD operations | | `realtime-module` | realtimeModule CRUD operations | +| `config-secrets-org-module` | configSecretsOrgModule CRUD operations | | `schema-grant` | schemaGrant CRUD operations | | `default-privilege` | defaultPrivilege CRUD operations | | `enum` | enum CRUD operations | @@ -80,7 +81,7 @@ csdk auth set-token | `default-ids-module` | defaultIdsModule CRUD operations | | `denormalized-table-field` | denormalizedTableField CRUD operations | | `emails-module` | emailsModule CRUD operations | -| `encrypted-secrets-module` | encryptedSecretsModule CRUD operations | +| `config-secrets-user-module` | configSecretsUserModule CRUD operations | | `invites-module` | invitesModule CRUD operations | | `events-module` | eventsModule CRUD operations | | `limits-module` | limitsModule CRUD operations | @@ -134,44 +135,45 @@ csdk auth set-token | `agent-thread` | agentThread CRUD operations | | `agent-message` | agentMessage CRUD operations | | `agent-task` | agentTask CRUD operations | -| `role-type` | roleType CRUD operations | | `identity-provider` | identityProvider CRUD operations | | `ref` | ref CRUD operations | | `store` | store CRUD operations | | `app-permission-default` | appPermissionDefault CRUD operations | -| `app-limit-credit-code` | appLimitCreditCode CRUD operations | +| `role-type` | roleType CRUD operations | +| `migrate-file` | migrateFile CRUD operations | | `app-limit-caps-default` | appLimitCapsDefault CRUD operations | | `org-limit-caps-default` | orgLimitCapsDefault CRUD operations | -| `app-limit-cap` | appLimitCap CRUD operations | -| `org-limit-cap` | orgLimitCap CRUD operations | -| `membership-type` | membershipType CRUD operations | -| `migrate-file` | migrateFile CRUD operations | | `devices-module` | devicesModule CRUD operations | +| `app-membership-default` | appMembershipDefault CRUD operations | +| `org-membership-default` | orgMembershipDefault CRUD operations | | `node-type-registry` | nodeTypeRegistry CRUD operations | +| `app-limit-cap` | appLimitCap CRUD operations | | `app-limit-default` | appLimitDefault CRUD operations | +| `org-limit-cap` | orgLimitCap CRUD operations | | `org-limit-default` | orgLimitDefault CRUD operations | -| `app-limit-warning` | appLimitWarning CRUD operations | | `user-connected-account` | userConnectedAccount CRUD operations | +| `app-limit-credit-code` | appLimitCreditCode CRUD operations | +| `app-limit-warning` | appLimitWarning CRUD operations | | `commit` | commit CRUD operations | | `pubkey-setting` | pubkeySetting CRUD operations | | `rate-limits-module` | rateLimitsModule CRUD operations | | `usage-snapshot` | usageSnapshot CRUD operations | -| `app-membership-default` | appMembershipDefault CRUD operations | -| `org-membership-default` | orgMembershipDefault CRUD operations | +| `membership-type` | membershipType CRUD operations | | `rls-setting` | rlsSetting CRUD operations | -| `app-limit-event` | appLimitEvent CRUD operations | -| `org-limit-event` | orgLimitEvent CRUD operations | | `rls-module` | rlsModule CRUD operations | +| `inference-log-module` | inferenceLogModule CRUD operations | | `rate-limit-meters-module` | rateLimitMetersModule CRUD operations | | `plans-module` | plansModule CRUD operations | | `sql-action` | sqlAction CRUD operations | +| `app-limit-event` | appLimitEvent CRUD operations | +| `org-limit-event` | orgLimitEvent CRUD operations | | `database-setting` | databaseSetting CRUD operations | +| `org-membership-setting` | orgMembershipSetting CRUD operations | | `billing-module` | billingModule CRUD operations | -| `ast-migration` | astMigration CRUD operations | +| `app-membership` | appMembership CRUD operations | | `user` | user CRUD operations | -| `org-membership-setting` | orgMembershipSetting CRUD operations | +| `ast-migration` | astMigration CRUD operations | | `webauthn-setting` | webauthnSetting CRUD operations | -| `app-membership` | appMembership CRUD operations | | `billing-provider-module` | billingProviderModule CRUD operations | | `hierarchy-module` | hierarchyModule CRUD operations | | `current-user-id` | currentUserId | @@ -188,11 +190,11 @@ csdk auth set-token | `resolve-blueprint-table` | Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. | | `app-permissions-get-mask-by-names` | appPermissionsGetMaskByNames | | `org-permissions-get-mask-by-names` | orgPermissionsGetMaskByNames | -| `app-permissions-get-by-mask` | Reads and enables pagination through a set of `AppPermission`. | -| `org-permissions-get-by-mask` | Reads and enables pagination through a set of `OrgPermission`. | | `get-all-objects-from-root` | Reads and enables pagination through a set of `Object`. | | `get-path-objects-from-root` | Reads and enables pagination through a set of `Object`. | | `get-object-at-path` | getObjectAtPath | +| `app-permissions-get-by-mask` | Reads and enables pagination through a set of `AppPermission`. | +| `org-permissions-get-by-mask` | Reads and enables pagination through a set of `OrgPermission`. | | `current-user` | currentUser | | `send-account-deletion-email` | sendAccountDeletionEmail | | `sign-out` | signOut | @@ -218,7 +220,10 @@ csdk auth set-token | `remove-node-at-path` | removeNodeAtPath | | `copy-template-to-blueprint` | Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. | | `provision-spatial-relation` | Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. | +| `sign-in-cross-origin` | signInCrossOrigin | | `bootstrap-user` | bootstrapUser | +| `sign-up` | signUp | +| `sign-in` | signIn | | `set-field-order` | setFieldOrder | | `provision-check-constraint` | Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. | | `provision-unique-constraint` | Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. | @@ -232,7 +237,6 @@ csdk auth set-token | `set-and-commit` | setAndCommit | | `provision-relation` | Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). | | `apply-rls` | applyRls | -| `sign-in-cross-origin` | signInCrossOrigin | | `create-user-database` | Creates a new user database with all required modules, permissions, and RLS policies. Parameters: @@ -252,12 +256,10 @@ Example usage: | | `extend-token-expires` | extendTokenExpires | | `create-api-key` | createApiKey | -| `send-verification-email` | sendVerificationEmail | -| `forgot-password` | forgotPassword | -| `sign-up` | signUp | | `request-cross-origin-token` | requestCrossOriginToken | -| `sign-in` | signIn | | `provision-table` | Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). | +| `send-verification-email` | sendVerificationEmail | +| `forgot-password` | forgotPassword | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -370,6 +372,35 @@ CRUD operations for GetAllRecord records. **Required create fields:** `path`, `data` +### `object` + +CRUD operations for Object records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all object records | +| `find-first` | Find first matching object record | +| `get` | Get a object by id | +| `create` | Create a new object | +| `update` | Update an existing object | +| `delete` | Delete a object | + +**Fields:** + +| Field | Type | +|-------|------| +| `hashUuid` | UUID | +| `id` | UUID | +| `scopeId` | UUID | +| `kids` | UUID | +| `ktree` | String | +| `data` | JSON | +| `frzn` | Boolean | +| `createdAt` | Datetime | + +**Required create fields:** `scopeId` +**Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` + ### `app-permission` CRUD operations for AppPermission records. @@ -420,35 +451,6 @@ CRUD operations for OrgPermission records. **Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` -### `object` - -CRUD operations for Object records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all object records | -| `find-first` | Find first matching object record | -| `get` | Get a object by id | -| `create` | Create a new object | -| `update` | Update an existing object | -| `delete` | Delete a object | - -**Fields:** - -| Field | Type | -|-------|------| -| `hashUuid` | UUID | -| `id` | UUID | -| `databaseId` | UUID | -| `kids` | UUID | -| `ktree` | String | -| `data` | JSON | -| `frzn` | Boolean | -| `createdAt` | Datetime | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` - ### `database` CRUD operations for Database records. @@ -1275,6 +1277,32 @@ CRUD operations for RealtimeModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `subscriptionsSchemaId`, `changeLogTableId`, `listenerNodeTableId`, `sourceRegistryTableId`, `retentionHours`, `premake`, `interval`, `notifyChannel` +### `config-secrets-org-module` + +CRUD operations for ConfigSecretsOrgModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all configSecretsOrgModule records | +| `find-first` | Find first matching configSecretsOrgModule record | +| `get` | Get a configSecretsOrgModule by id | +| `create` | Create a new configSecretsOrgModule | +| `update` | Update an existing configSecretsOrgModule | +| `delete` | Delete a configSecretsOrgModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `tableId` | UUID | +| `tableName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName` + ### `schema-grant` CRUD operations for SchemaGrant records. @@ -1650,13 +1678,14 @@ CRUD operations for Partition records. | `partitionKeyId` | UUID | | `interval` | String | | `retention` | String | +| `retentionKeepTable` | Boolean | | `premake` | Int | | `namingPattern` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `databaseId`, `tableId`, `strategy`, `partitionKeyId` -**Optional create fields (backend defaults):** `interval`, `retention`, `premake`, `namingPattern` +**Optional create fields (backend defaults):** `interval`, `retention`, `retentionKeepTable`, `premake`, `namingPattern` ### `api` @@ -1957,18 +1986,18 @@ CRUD operations for EmailsModule records. **Required create fields:** `databaseId`, `tableName` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId` -### `encrypted-secrets-module` +### `config-secrets-user-module` -CRUD operations for EncryptedSecretsModule records. +CRUD operations for ConfigSecretsUserModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all encryptedSecretsModule records | -| `find-first` | Find first matching encryptedSecretsModule record | -| `get` | Get a encryptedSecretsModule by id | -| `create` | Create a new encryptedSecretsModule | -| `update` | Update an existing encryptedSecretsModule | -| `delete` | Delete a encryptedSecretsModule | +| `list` | List all configSecretsUserModule records | +| `find-first` | Find first matching configSecretsUserModule record | +| `get` | Get a configSecretsUserModule by id | +| `create` | Create a new configSecretsUserModule | +| `update` | Update an existing configSecretsUserModule | +| `delete` | Delete a configSecretsUserModule | **Fields:** @@ -2584,6 +2613,7 @@ CRUD operations for StorageModule records. | `bucketsTableName` | String | | `filesTableName` | String | | `membershipType` | Int | +| `storageKey` | String | | `policies` | JSON | | `skipDefaultPolicyTables` | String | | `entityTableId` | UUID | @@ -2610,7 +2640,7 @@ CRUD operations for StorageModule records. | `fileEventsTableId` | UUID | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `membershipType`, `policies`, `skipDefaultPolicyTables`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `hasConfirmUpload`, `confirmUploadDelay`, `fileEventsTableId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `membershipType`, `storageKey`, `policies`, `skipDefaultPolicyTables`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `hasConfirmUpload`, `confirmUploadDelay`, `fileEventsTableId` ### `entity-type-provision` @@ -3739,28 +3769,6 @@ CRUD operations for AgentTask records. **Required create fields:** `threadId`, `entityId`, `description` **Optional create fields (backend defaults):** `source`, `error`, `ownerId`, `status` -### `role-type` - -CRUD operations for RoleType records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all roleType records | -| `find-first` | Find first matching roleType record | -| `get` | Get a roleType by id | -| `create` | Create a new roleType | -| `update` | Update an existing roleType | -| `delete` | Delete a roleType | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | Int | -| `name` | String | - -**Required create fields:** `name` - ### `identity-provider` CRUD operations for IdentityProvider records. @@ -3805,11 +3813,11 @@ CRUD operations for Ref records. |-------|------| | `id` | UUID | | `name` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `storeId` | UUID | | `commitId` | UUID | -**Required create fields:** `name`, `databaseId`, `storeId` +**Required create fields:** `name`, `scopeId`, `storeId` **Optional create fields (backend defaults):** `commitId` ### `store` @@ -3831,11 +3839,11 @@ CRUD operations for Store records. |-------|------| | `id` | UUID | | `name` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `hash` | UUID | | `createdAt` | Datetime | -**Required create fields:** `name`, `databaseId` +**Required create fields:** `name`, `scopeId` **Optional create fields (backend defaults):** `hash` ### `app-permission-default` @@ -3860,31 +3868,50 @@ CRUD operations for AppPermissionDefault records. **Optional create fields (backend defaults):** `permissions` -### `app-limit-credit-code` +### `role-type` -CRUD operations for AppLimitCreditCode records. +CRUD operations for RoleType records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitCreditCode records | -| `find-first` | Find first matching appLimitCreditCode record | -| `get` | Get a appLimitCreditCode by id | -| `create` | Create a new appLimitCreditCode | -| `update` | Update an existing appLimitCreditCode | -| `delete` | Delete a appLimitCreditCode | +| `list` | List all roleType records | +| `find-first` | Find first matching roleType record | +| `get` | Get a roleType by id | +| `create` | Create a new roleType | +| `update` | Update an existing roleType | +| `delete` | Delete a roleType | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | Int | +| `name` | String | + +**Required create fields:** `name` + +### `migrate-file` + +CRUD operations for MigrateFile records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all migrateFile records | +| `find-first` | Find first matching migrateFile record | +| `get` | Get a migrateFile by id | +| `create` | Create a new migrateFile | +| `update` | Update an existing migrateFile | +| `delete` | Delete a migrateFile | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `code` | String | -| `maxRedemptions` | Int | -| `currentRedemptions` | Int | -| `expiresAt` | Datetime | +| `databaseId` | UUID | +| `upload` | Upload | -**Required create fields:** `code` -**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` +**Optional create fields (backend defaults):** `databaseId`, `upload` ### `app-limit-caps-default` @@ -3934,133 +3961,88 @@ CRUD operations for OrgLimitCapsDefault records. **Required create fields:** `name` **Optional create fields (backend defaults):** `max` -### `app-limit-cap` +### `devices-module` -CRUD operations for AppLimitCap records. +CRUD operations for DevicesModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitCap records | -| `find-first` | Find first matching appLimitCap record | -| `get` | Get a appLimitCap by id | -| `create` | Create a new appLimitCap | -| `update` | Update an existing appLimitCap | -| `delete` | Delete a appLimitCap | +| `list` | List all devicesModule records | +| `find-first` | Find first matching devicesModule record | +| `get` | Get a devicesModule by id | +| `create` | Create a new devicesModule | +| `update` | Update an existing devicesModule | +| `delete` | Delete a devicesModule | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `entityId` | UUID | -| `max` | BigInt | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `userDevicesTableId` | UUID | +| `deviceSettingsTableId` | UUID | +| `userDevicesTable` | String | +| `deviceSettingsTable` | String | -**Required create fields:** `name`, `entityId` -**Optional create fields (backend defaults):** `max` +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `userDevicesTableId`, `deviceSettingsTableId`, `userDevicesTable`, `deviceSettingsTable` -### `org-limit-cap` +### `app-membership-default` -CRUD operations for OrgLimitCap records. +CRUD operations for AppMembershipDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgLimitCap records | -| `find-first` | Find first matching orgLimitCap record | -| `get` | Get a orgLimitCap by id | -| `create` | Create a new orgLimitCap | -| `update` | Update an existing orgLimitCap | -| `delete` | Delete a orgLimitCap | +| `list` | List all appMembershipDefault records | +| `find-first` | Find first matching appMembershipDefault record | +| `get` | Get a appMembershipDefault by id | +| `create` | Create a new appMembershipDefault | +| `update` | Update an existing appMembershipDefault | +| `delete` | Delete a appMembershipDefault | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `entityId` | UUID | -| `max` | BigInt | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isVerified` | Boolean | -**Required create fields:** `name`, `entityId` -**Optional create fields (backend defaults):** `max` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` -### `membership-type` +### `org-membership-default` -CRUD operations for MembershipType records. +CRUD operations for OrgMembershipDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all membershipType records | -| `find-first` | Find first matching membershipType record | -| `get` | Get a membershipType by id | -| `create` | Create a new membershipType | -| `update` | Update an existing membershipType | -| `delete` | Delete a membershipType | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | Int | -| `name` | String | -| `description` | String | -| `prefix` | String | -| `parentMembershipType` | Int | -| `hasUsersTableEntry` | Boolean | - -**Required create fields:** `name`, `description`, `prefix` -**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` - -### `migrate-file` - -CRUD operations for MigrateFile records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all migrateFile records | -| `find-first` | Find first matching migrateFile record | -| `get` | Get a migrateFile by id | -| `create` | Create a new migrateFile | -| `update` | Update an existing migrateFile | -| `delete` | Delete a migrateFile | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `upload` | Upload | - -**Optional create fields (backend defaults):** `databaseId`, `upload` - -### `devices-module` - -CRUD operations for DevicesModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all devicesModule records | -| `find-first` | Find first matching devicesModule record | -| `get` | Get a devicesModule by id | -| `create` | Create a new devicesModule | -| `update` | Update an existing devicesModule | -| `delete` | Delete a devicesModule | +| `list` | List all orgMembershipDefault records | +| `find-first` | Find first matching orgMembershipDefault record | +| `get` | Get a orgMembershipDefault by id | +| `create` | Create a new orgMembershipDefault | +| `update` | Update an existing orgMembershipDefault | +| `delete` | Delete a orgMembershipDefault | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `userDevicesTableId` | UUID | -| `deviceSettingsTableId` | UUID | -| `userDevicesTable` | String | -| `deviceSettingsTable` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `entityId` | UUID | -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `userDevicesTableId`, `deviceSettingsTableId`, `userDevicesTable`, `deviceSettingsTable` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` ### `node-type-registry` @@ -4090,6 +4072,31 @@ CRUD operations for NodeTypeRegistry records. **Required create fields:** `slug`, `category` **Optional create fields (backend defaults):** `displayName`, `description`, `parameterSchema`, `tags` +### `app-limit-cap` + +CRUD operations for AppLimitCap records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitCap records | +| `find-first` | Find first matching appLimitCap record | +| `get` | Get a appLimitCap by id | +| `create` | Create a new appLimitCap | +| `update` | Update an existing appLimitCap | +| `delete` | Delete a appLimitCap | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `entityId` | UUID | +| `max` | BigInt | + +**Required create fields:** `name`, `entityId` +**Optional create fields (backend defaults):** `max` + ### `app-limit-default` CRUD operations for AppLimitDefault records. @@ -4115,18 +4122,18 @@ CRUD operations for AppLimitDefault records. **Required create fields:** `name` **Optional create fields (backend defaults):** `max`, `softMax` -### `org-limit-default` +### `org-limit-cap` -CRUD operations for OrgLimitDefault records. +CRUD operations for OrgLimitCap records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgLimitDefault records | -| `find-first` | Find first matching orgLimitDefault record | -| `get` | Get a orgLimitDefault by id | -| `create` | Create a new orgLimitDefault | -| `update` | Update an existing orgLimitDefault | -| `delete` | Delete a orgLimitDefault | +| `list` | List all orgLimitCap records | +| `find-first` | Find first matching orgLimitCap record | +| `get` | Get a orgLimitCap by id | +| `create` | Create a new orgLimitCap | +| `update` | Update an existing orgLimitCap | +| `delete` | Delete a orgLimitCap | **Fields:** @@ -4134,24 +4141,24 @@ CRUD operations for OrgLimitDefault records. |-------|------| | `id` | UUID | | `name` | String | +| `entityId` | UUID | | `max` | BigInt | -| `softMax` | BigInt | -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max`, `softMax` +**Required create fields:** `name`, `entityId` +**Optional create fields (backend defaults):** `max` -### `app-limit-warning` +### `org-limit-default` -CRUD operations for AppLimitWarning records. +CRUD operations for OrgLimitDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitWarning records | -| `find-first` | Find first matching appLimitWarning record | -| `get` | Get a appLimitWarning by id | -| `create` | Create a new appLimitWarning | -| `update` | Update an existing appLimitWarning | -| `delete` | Delete a appLimitWarning | +| `list` | List all orgLimitDefault records | +| `find-first` | Find first matching orgLimitDefault record | +| `get` | Get a orgLimitDefault by id | +| `create` | Create a new orgLimitDefault | +| `update` | Update an existing orgLimitDefault | +| `delete` | Delete a orgLimitDefault | **Fields:** @@ -4159,11 +4166,11 @@ CRUD operations for AppLimitWarning records. |-------|------| | `id` | UUID | | `name` | String | -| `warningType` | String | -| `thresholdValue` | BigInt | -| `taskIdentifier` | String | +| `max` | BigInt | +| `softMax` | BigInt | -**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` +**Required create fields:** `name` +**Optional create fields (backend defaults):** `max`, `softMax` ### `user-connected-account` @@ -4193,6 +4200,57 @@ CRUD operations for UserConnectedAccount records. **Optional create fields (backend defaults):** `ownerId`, `service`, `identifier`, `details`, `isVerified` +### `app-limit-credit-code` + +CRUD operations for AppLimitCreditCode records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitCreditCode records | +| `find-first` | Find first matching appLimitCreditCode record | +| `get` | Get a appLimitCreditCode by id | +| `create` | Create a new appLimitCreditCode | +| `update` | Update an existing appLimitCreditCode | +| `delete` | Delete a appLimitCreditCode | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `code` | String | +| `maxRedemptions` | Int | +| `currentRedemptions` | Int | +| `expiresAt` | Datetime | + +**Required create fields:** `code` +**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` + +### `app-limit-warning` + +CRUD operations for AppLimitWarning records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitWarning records | +| `find-first` | Find first matching appLimitWarning record | +| `get` | Get a appLimitWarning by id | +| `create` | Create a new appLimitWarning | +| `update` | Update an existing appLimitWarning | +| `delete` | Delete a appLimitWarning | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `warningType` | String | +| `thresholdValue` | BigInt | +| `taskIdentifier` | String | + +**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` + ### `commit` CRUD operations for Commit records. @@ -4212,7 +4270,7 @@ CRUD operations for Commit records. |-------|------| | `id` | UUID | | `message` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `storeId` | UUID | | `parentIds` | UUID | | `authorId` | UUID | @@ -4220,7 +4278,7 @@ CRUD operations for Commit records. | `treeId` | UUID | | `date` | Datetime | -**Required create fields:** `databaseId`, `storeId` +**Required create fields:** `scopeId`, `storeId` **Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` ### `pubkey-setting` @@ -4310,60 +4368,32 @@ CRUD operations for UsageSnapshot records. **Required create fields:** `databaseId`, `metricName` **Optional create fields (backend defaults):** `metricValue`, `dimensions`, `capturedAt` -### `app-membership-default` - -CRUD operations for AppMembershipDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appMembershipDefault records | -| `find-first` | Find first matching appMembershipDefault record | -| `get` | Get a appMembershipDefault by id | -| `create` | Create a new appMembershipDefault | -| `update` | Update an existing appMembershipDefault | -| `delete` | Delete a appMembershipDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isVerified` | Boolean | - -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` - -### `org-membership-default` +### `membership-type` -CRUD operations for OrgMembershipDefault records. +CRUD operations for MembershipType records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgMembershipDefault records | -| `find-first` | Find first matching orgMembershipDefault record | -| `get` | Get a orgMembershipDefault by id | -| `create` | Create a new orgMembershipDefault | -| `update` | Update an existing orgMembershipDefault | -| `delete` | Delete a orgMembershipDefault | +| `list` | List all membershipType records | +| `find-first` | Find first matching membershipType record | +| `get` | Get a membershipType by id | +| `create` | Create a new membershipType | +| `update` | Update an existing membershipType | +| `delete` | Delete a membershipType | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `entityId` | UUID | +| `id` | Int | +| `name` | String | +| `description` | String | +| `prefix` | String | +| `parentMembershipType` | Int | +| `hasUsersTableEntry` | Boolean | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` +**Required create fields:** `name`, `description`, `prefix` +**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` ### `rls-setting` @@ -4396,64 +4426,6 @@ CRUD operations for RlsSetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `authenticateSchemaId`, `roleSchemaId`, `authenticateFunctionId`, `authenticateStrictFunctionId`, `currentRoleFunctionId`, `currentRoleIdFunctionId`, `currentUserAgentFunctionId`, `currentIpAddressFunctionId` -### `app-limit-event` - -CRUD operations for AppLimitEvent records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitEvent records | -| `find-first` | Find first matching appLimitEvent record | -| `get` | Get a appLimitEvent by id | -| `create` | Create a new appLimitEvent | -| `update` | Update an existing appLimitEvent | -| `delete` | Delete a appLimitEvent | - -**Fields:** - -| Field | Type | -|-------|------| -| `name` | String | -| `actorId` | UUID | -| `entityId` | UUID | -| `eventType` | String | -| `delta` | BigInt | -| `numBefore` | BigInt | -| `numAfter` | BigInt | -| `maxAtEvent` | BigInt | -| `reason` | String | - -**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` - -### `org-limit-event` - -CRUD operations for OrgLimitEvent records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitEvent records | -| `find-first` | Find first matching orgLimitEvent record | -| `get` | Get a orgLimitEvent by id | -| `create` | Create a new orgLimitEvent | -| `update` | Update an existing orgLimitEvent | -| `delete` | Delete a orgLimitEvent | - -**Fields:** - -| Field | Type | -|-------|------| -| `name` | String | -| `actorId` | UUID | -| `entityId` | UUID | -| `eventType` | String | -| `delta` | BigInt | -| `numBefore` | BigInt | -| `numAfter` | BigInt | -| `maxAtEvent` | BigInt | -| `reason` | String | - -**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` - ### `rls-module` CRUD operations for RlsModule records. @@ -4486,6 +4458,39 @@ CRUD operations for RlsModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `sessionCredentialsTableId`, `sessionsTableId`, `usersTableId`, `authenticate`, `authenticateStrict`, `currentRole`, `currentRoleId` +### `inference-log-module` + +CRUD operations for InferenceLogModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all inferenceLogModule records | +| `find-first` | Find first matching inferenceLogModule record | +| `get` | Get a inferenceLogModule by id | +| `create` | Create a new inferenceLogModule | +| `update` | Update an existing inferenceLogModule | +| `delete` | Delete a inferenceLogModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `inferenceLogTableId` | UUID | +| `inferenceLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `prefix` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `inferenceLogTableId`, `inferenceLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `prefix` + ### `rate-limit-meters-module` CRUD operations for RateLimitMetersModule records. @@ -4586,6 +4591,68 @@ CRUD operations for SqlAction records. **Optional create fields (backend defaults):** `name`, `databaseId`, `deploy`, `deps`, `payload`, `content`, `revert`, `verify`, `action`, `actionId`, `actorId` +### `app-limit-event` + +CRUD operations for AppLimitEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitEvent records | +| `find-first` | Find first matching appLimitEvent record | +| `get` | Get a appLimitEvent by id | +| `create` | Create a new appLimitEvent | +| `update` | Update an existing appLimitEvent | +| `delete` | Delete a appLimitEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `name` | String | +| `actorId` | UUID | +| `entityId` | UUID | +| `eventType` | String | +| `delta` | BigInt | +| `numBefore` | BigInt | +| `numAfter` | BigInt | +| `maxAtEvent` | BigInt | +| `reason` | String | + +**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` + +### `org-limit-event` + +CRUD operations for OrgLimitEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitEvent records | +| `find-first` | Find first matching orgLimitEvent record | +| `get` | Get a orgLimitEvent by id | +| `create` | Create a new orgLimitEvent | +| `update` | Update an existing orgLimitEvent | +| `delete` | Delete a orgLimitEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `name` | String | +| `actorId` | UUID | +| `entityId` | UUID | +| `eventType` | String | +| `delta` | BigInt | +| `numBefore` | BigInt | +| `numAfter` | BigInt | +| `maxAtEvent` | BigInt | +| `reason` | String | + +**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` + ### `database-setting` CRUD operations for DatabaseSetting records. @@ -4621,6 +4688,41 @@ CRUD operations for DatabaseSetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `enableBulk`, `options` +### `org-membership-setting` + +CRUD operations for OrgMembershipSetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgMembershipSetting records | +| `find-first` | Find first matching orgMembershipSetting record | +| `get` | Get a orgMembershipSetting by id | +| `create` | Create a new orgMembershipSetting | +| `update` | Update an existing orgMembershipSetting | +| `delete` | Delete a orgMembershipSetting | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `entityId` | UUID | +| `deleteMemberCascadeChildren` | Boolean | +| `createChildCascadeOwners` | Boolean | +| `createChildCascadeAdmins` | Boolean | +| `createChildCascadeMembers` | Boolean | +| `allowExternalMembers` | Boolean | +| `inviteProfileAssignmentMode` | String | +| `populateMemberEmail` | Boolean | +| `limitAllocationMode` | String | + +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` + ### `billing-module` CRUD operations for BillingModule records. @@ -4650,44 +4752,50 @@ CRUD operations for BillingModule records. | `ledgerTableName` | String | | `balancesTableId` | UUID | | `balancesTableName` | String | +| `meterCreditsTableId` | UUID | +| `meterCreditsTableName` | String | | `recordUsageFunction` | String | | `prefix` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `recordUsageFunction`, `prefix` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `recordUsageFunction`, `prefix` -### `ast-migration` +### `app-membership` -CRUD operations for AstMigration records. +CRUD operations for AppMembership records. | Subcommand | Description | |------------|-------------| -| `list` | List all astMigration records | -| `find-first` | Find first matching astMigration record | -| `get` | Get a astMigration by id | -| `create` | Create a new astMigration | -| `update` | Update an existing astMigration | -| `delete` | Delete a astMigration | +| `list` | List all appMembership records | +| `find-first` | Find first matching appMembership record | +| `get` | Get a appMembership by id | +| `create` | Create a new appMembership | +| `update` | Update an existing appMembership | +| `delete` | Delete a appMembership | **Fields:** | Field | Type | |-------|------| -| `id` | Int | -| `databaseId` | UUID | -| `name` | String | -| `requires` | String | -| `payload` | JSON | -| `deploys` | String | -| `deploy` | JSON | -| `revert` | JSON | -| `verify` | JSON | +| `id` | UUID | | `createdAt` | Datetime | -| `action` | String | -| `actionId` | UUID | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isBanned` | Boolean | +| `isDisabled` | Boolean | +| `isVerified` | Boolean | +| `isActive` | Boolean | +| `isOwner` | Boolean | +| `isAdmin` | Boolean | +| `permissions` | BitString | +| `granted` | BitString | | `actorId` | UUID | +| `profileId` | UUID | -**Optional create fields (backend defaults):** `databaseId`, `name`, `requires`, `payload`, `deploys`, `deploy`, `revert`, `verify`, `action`, `actionId`, `actorId` +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` ### `user` @@ -4747,40 +4855,38 @@ csdk user search "query" --limit 10 --select id,title,searchScore ``` -### `org-membership-setting` +### `ast-migration` -CRUD operations for OrgMembershipSetting records. +CRUD operations for AstMigration records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgMembershipSetting records | -| `find-first` | Find first matching orgMembershipSetting record | -| `get` | Get a orgMembershipSetting by id | -| `create` | Create a new orgMembershipSetting | -| `update` | Update an existing orgMembershipSetting | -| `delete` | Delete a orgMembershipSetting | +| `list` | List all astMigration records | +| `find-first` | Find first matching astMigration record | +| `get` | Get a astMigration by id | +| `create` | Create a new astMigration | +| `update` | Update an existing astMigration | +| `delete` | Delete a astMigration | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | +| `id` | Int | +| `databaseId` | UUID | +| `name` | String | +| `requires` | String | +| `payload` | JSON | +| `deploys` | String | +| `deploy` | JSON | +| `revert` | JSON | +| `verify` | JSON | | `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `entityId` | UUID | -| `deleteMemberCascadeChildren` | Boolean | -| `createChildCascadeOwners` | Boolean | -| `createChildCascadeAdmins` | Boolean | -| `createChildCascadeMembers` | Boolean | -| `allowExternalMembers` | Boolean | -| `inviteProfileAssignmentMode` | String | -| `populateMemberEmail` | Boolean | -| `limitAllocationMode` | String | +| `action` | String | +| `actionId` | UUID | +| `actorId` | UUID | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` +**Optional create fields (backend defaults):** `databaseId`, `name`, `requires`, `payload`, `deploys`, `deploy`, `revert`, `verify`, `action`, `actionId`, `actorId` ### `webauthn-setting` @@ -4821,43 +4927,6 @@ CRUD operations for WebauthnSetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `credentialsSchemaId`, `sessionsSchemaId`, `sessionSecretsSchemaId`, `credentialsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `sessionSecretsTableId`, `userFieldId`, `rpId`, `rpName`, `originAllowlist`, `attestationType`, `requireUserVerification`, `residentKey`, `challengeExpirySeconds` -### `app-membership` - -CRUD operations for AppMembership records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appMembership records | -| `find-first` | Find first matching appMembership record | -| `get` | Get a appMembership by id | -| `create` | Create a new appMembership | -| `update` | Update an existing appMembership | -| `delete` | Delete a appMembership | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isBanned` | Boolean | -| `isDisabled` | Boolean | -| `isVerified` | Boolean | -| `isActive` | Boolean | -| `isOwner` | Boolean | -| `isAdmin` | Boolean | -| `permissions` | BitString | -| `granted` | BitString | -| `actorId` | UUID | -| `profileId` | UUID | - -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` - ### `billing-provider-module` CRUD operations for BillingProviderModule records. @@ -5005,7 +5074,7 @@ revParse | Argument | Type | |----------|------| - | `--dbId` | UUID | + | `--sId` | UUID | | `--storeId` | UUID | | `--refname` | String | @@ -5095,78 +5164,78 @@ orgPermissionsGetMaskByNames |----------|------| | `--names` | String | -### `app-permissions-get-by-mask` +### `get-all-objects-from-root` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--mask` | BitString | + | `--sId` | UUID | + | `--id` | UUID | | `--first` | Int | | `--offset` | Int | | `--after` | Cursor | -### `org-permissions-get-by-mask` +### `get-path-objects-from-root` -Reads and enables pagination through a set of `OrgPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--mask` | BitString | + | `--sId` | UUID | + | `--id` | UUID | + | `--path` | String | | `--first` | Int | | `--offset` | Int | | `--after` | Cursor | -### `get-all-objects-from-root` +### `get-object-at-path` -Reads and enables pagination through a set of `Object`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--databaseId` | UUID | - | `--id` | UUID | - | `--first` | Int | - | `--offset` | Int | - | `--after` | Cursor | + | `--sId` | UUID | + | `--storeId` | UUID | + | `--path` | String | + | `--refname` | String | -### `get-path-objects-from-root` +### `app-permissions-get-by-mask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--databaseId` | UUID | - | `--id` | UUID | - | `--path` | String | + | `--mask` | BitString | | `--first` | Int | | `--offset` | Int | | `--after` | Cursor | -### `get-object-at-path` +### `org-permissions-get-by-mask` -getObjectAtPath +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--dbId` | UUID | - | `--storeId` | UUID | - | `--path` | String | - | `--refname` | String | + | `--mask` | BitString | + | `--first` | Int | + | `--offset` | Int | + | `--after` | Cursor | ### `current-user` @@ -5378,7 +5447,7 @@ freezeObjects | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | + | `--input.sId` | UUID | | `--input.id` | UUID | ### `init-empty-repo` @@ -5391,7 +5460,7 @@ initEmptyRepo | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | ### `construct-blueprint` @@ -5444,7 +5513,7 @@ removeNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | @@ -5483,6 +5552,19 @@ Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row dec | `--input.pOperator` | String | | `--input.pParamName` | String | +### `sign-in-cross-origin` + +signInCrossOrigin + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.token` | String | + | `--input.credentialKind` | String | + ### `bootstrap-user` bootstrapUser @@ -5501,6 +5583,40 @@ bootstrapUser | `--input.displayName` | String | | `--input.returnApiKey` | Boolean | +### `sign-up` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | String | + | `--input.password` | String | + | `--input.rememberMe` | Boolean | + | `--input.credentialKind` | String | + | `--input.csrfToken` | String | + | `--input.deviceToken` | String | + +### `sign-in` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | String | + | `--input.password` | String | + | `--input.rememberMe` | Boolean | + | `--input.credentialKind` | String | + | `--input.csrfToken` | String | + | `--input.deviceToken` | String | + ### `set-field-order` setFieldOrder @@ -5579,7 +5695,7 @@ setDataAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -5594,7 +5710,7 @@ setPropsAndCommit | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | | `--input.refname` | String | | `--input.path` | String | @@ -5626,7 +5742,7 @@ insertNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -5643,7 +5759,7 @@ updateNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -5660,7 +5776,7 @@ setAndCommit | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | | `--input.refname` | String | | `--input.path` | String | @@ -5716,19 +5832,6 @@ applyRls | `--input.permissive` | Boolean | | `--input.name` | String | -### `sign-in-cross-origin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.token` | String | - | `--input.credentialKind` | String | - ### `create-user-database` Creates a new user database with all required modules, permissions, and RLS policies. @@ -5790,47 +5893,6 @@ createApiKey | `--input.mfaLevel` | String | | `--input.expiresIn` | IntervalInput | -### `send-verification-email` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | Email | - -### `forgot-password` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | Email | - -### `sign-up` - -signUp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | String | - | `--input.password` | String | - | `--input.rememberMe` | Boolean | - | `--input.credentialKind` | String | - | `--input.csrfToken` | String | - | `--input.deviceToken` | String | - ### `request-cross-origin-token` requestCrossOriginToken @@ -5846,23 +5908,6 @@ requestCrossOriginToken | `--input.origin` | Origin | | `--input.rememberMe` | Boolean | -### `sign-in` - -signIn - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | String | - | `--input.password` | String | - | `--input.rememberMe` | Boolean | - | `--input.credentialKind` | String | - | `--input.csrfToken` | String | - | `--input.deviceToken` | String | - ### `provision-table` Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). @@ -5887,6 +5932,30 @@ Composable table provisioning: creates or finds a table, then creates fields (so | `--input.uniqueConstraints` | JSON | | `--input.description` | String | +### `send-verification-email` + +sendVerificationEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | Email | + +### `forgot-password` + +forgotPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | Email | + ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/public/cli/commands.ts b/sdk/constructive-cli/src/public/cli/commands.ts index 3bbe34e6e2..235d96f8db 100644 --- a/sdk/constructive-cli/src/public/cli/commands.ts +++ b/sdk/constructive-cli/src/public/cli/commands.ts @@ -9,9 +9,9 @@ import authCmd from './commands/auth'; import orgGetManagersRecordCmd from './commands/org-get-managers-record'; import orgGetSubordinatesRecordCmd from './commands/org-get-subordinates-record'; import getAllRecordCmd from './commands/get-all-record'; +import objectCmd from './commands/object'; import appPermissionCmd from './commands/app-permission'; import orgPermissionCmd from './commands/org-permission'; -import objectCmd from './commands/object'; import databaseCmd from './commands/database'; import schemaCmd from './commands/schema'; import tableCmd from './commands/table'; @@ -36,6 +36,7 @@ import relationProvisionCmd from './commands/relation-provision'; import sessionSecretsModuleCmd from './commands/session-secrets-module'; import identityProvidersModuleCmd from './commands/identity-providers-module'; import realtimeModuleCmd from './commands/realtime-module'; +import configSecretsOrgModuleCmd from './commands/config-secrets-org-module'; import schemaGrantCmd from './commands/schema-grant'; import defaultPrivilegeCmd from './commands/default-privilege'; import enumCmd from './commands/enum'; @@ -60,7 +61,7 @@ import cryptoAuthModuleCmd from './commands/crypto-auth-module'; import defaultIdsModuleCmd from './commands/default-ids-module'; import denormalizedTableFieldCmd from './commands/denormalized-table-field'; import emailsModuleCmd from './commands/emails-module'; -import encryptedSecretsModuleCmd from './commands/encrypted-secrets-module'; +import configSecretsUserModuleCmd from './commands/config-secrets-user-module'; import invitesModuleCmd from './commands/invites-module'; import eventsModuleCmd from './commands/events-module'; import limitsModuleCmd from './commands/limits-module'; @@ -114,44 +115,45 @@ import auditLogCmd from './commands/audit-log'; import agentThreadCmd from './commands/agent-thread'; import agentMessageCmd from './commands/agent-message'; import agentTaskCmd from './commands/agent-task'; -import roleTypeCmd from './commands/role-type'; import identityProviderCmd from './commands/identity-provider'; import refCmd from './commands/ref'; import storeCmd from './commands/store'; import appPermissionDefaultCmd from './commands/app-permission-default'; -import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; +import roleTypeCmd from './commands/role-type'; +import migrateFileCmd from './commands/migrate-file'; import appLimitCapsDefaultCmd from './commands/app-limit-caps-default'; import orgLimitCapsDefaultCmd from './commands/org-limit-caps-default'; -import appLimitCapCmd from './commands/app-limit-cap'; -import orgLimitCapCmd from './commands/org-limit-cap'; -import membershipTypeCmd from './commands/membership-type'; -import migrateFileCmd from './commands/migrate-file'; import devicesModuleCmd from './commands/devices-module'; +import appMembershipDefaultCmd from './commands/app-membership-default'; +import orgMembershipDefaultCmd from './commands/org-membership-default'; import nodeTypeRegistryCmd from './commands/node-type-registry'; +import appLimitCapCmd from './commands/app-limit-cap'; import appLimitDefaultCmd from './commands/app-limit-default'; +import orgLimitCapCmd from './commands/org-limit-cap'; import orgLimitDefaultCmd from './commands/org-limit-default'; -import appLimitWarningCmd from './commands/app-limit-warning'; import userConnectedAccountCmd from './commands/user-connected-account'; +import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; +import appLimitWarningCmd from './commands/app-limit-warning'; import commitCmd from './commands/commit'; import pubkeySettingCmd from './commands/pubkey-setting'; import rateLimitsModuleCmd from './commands/rate-limits-module'; import usageSnapshotCmd from './commands/usage-snapshot'; -import appMembershipDefaultCmd from './commands/app-membership-default'; -import orgMembershipDefaultCmd from './commands/org-membership-default'; +import membershipTypeCmd from './commands/membership-type'; import rlsSettingCmd from './commands/rls-setting'; -import appLimitEventCmd from './commands/app-limit-event'; -import orgLimitEventCmd from './commands/org-limit-event'; import rlsModuleCmd from './commands/rls-module'; +import inferenceLogModuleCmd from './commands/inference-log-module'; import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module'; import plansModuleCmd from './commands/plans-module'; import sqlActionCmd from './commands/sql-action'; +import appLimitEventCmd from './commands/app-limit-event'; +import orgLimitEventCmd from './commands/org-limit-event'; import databaseSettingCmd from './commands/database-setting'; +import orgMembershipSettingCmd from './commands/org-membership-setting'; import billingModuleCmd from './commands/billing-module'; -import astMigrationCmd from './commands/ast-migration'; +import appMembershipCmd from './commands/app-membership'; import userCmd from './commands/user'; -import orgMembershipSettingCmd from './commands/org-membership-setting'; +import astMigrationCmd from './commands/ast-migration'; import webauthnSettingCmd from './commands/webauthn-setting'; -import appMembershipCmd from './commands/app-membership'; import billingProviderModuleCmd from './commands/billing-provider-module'; import hierarchyModuleCmd from './commands/hierarchy-module'; import currentUserIdCmd from './commands/current-user-id'; @@ -168,11 +170,11 @@ import orgPermissionsGetMaskCmd from './commands/org-permissions-get-mask'; import resolveBlueprintTableCmd from './commands/resolve-blueprint-table'; import appPermissionsGetMaskByNamesCmd from './commands/app-permissions-get-mask-by-names'; import orgPermissionsGetMaskByNamesCmd from './commands/org-permissions-get-mask-by-names'; -import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask'; -import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask'; import getAllObjectsFromRootCmd from './commands/get-all-objects-from-root'; import getPathObjectsFromRootCmd from './commands/get-path-objects-from-root'; import getObjectAtPathCmd from './commands/get-object-at-path'; +import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask'; +import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask'; import currentUserCmd from './commands/current-user'; import sendAccountDeletionEmailCmd from './commands/send-account-deletion-email'; import signOutCmd from './commands/sign-out'; @@ -198,7 +200,10 @@ import resetPasswordCmd from './commands/reset-password'; import removeNodeAtPathCmd from './commands/remove-node-at-path'; import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint'; import provisionSpatialRelationCmd from './commands/provision-spatial-relation'; +import signInCrossOriginCmd from './commands/sign-in-cross-origin'; import bootstrapUserCmd from './commands/bootstrap-user'; +import signUpCmd from './commands/sign-up'; +import signInCmd from './commands/sign-in'; import setFieldOrderCmd from './commands/set-field-order'; import provisionCheckConstraintCmd from './commands/provision-check-constraint'; import provisionUniqueConstraintCmd from './commands/provision-unique-constraint'; @@ -212,16 +217,13 @@ import updateNodeAtPathCmd from './commands/update-node-at-path'; import setAndCommitCmd from './commands/set-and-commit'; import provisionRelationCmd from './commands/provision-relation'; import applyRlsCmd from './commands/apply-rls'; -import signInCrossOriginCmd from './commands/sign-in-cross-origin'; import createUserDatabaseCmd from './commands/create-user-database'; import extendTokenExpiresCmd from './commands/extend-token-expires'; import createApiKeyCmd from './commands/create-api-key'; -import sendVerificationEmailCmd from './commands/send-verification-email'; -import forgotPasswordCmd from './commands/forgot-password'; -import signUpCmd from './commands/sign-up'; import requestCrossOriginTokenCmd from './commands/request-cross-origin-token'; -import signInCmd from './commands/sign-in'; import provisionTableCmd from './commands/provision-table'; +import sendVerificationEmailCmd from './commands/send-verification-email'; +import forgotPasswordCmd from './commands/forgot-password'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -236,9 +238,9 @@ const createCommandMap: () => Record< 'org-get-managers-record': orgGetManagersRecordCmd, 'org-get-subordinates-record': orgGetSubordinatesRecordCmd, 'get-all-record': getAllRecordCmd, + object: objectCmd, 'app-permission': appPermissionCmd, 'org-permission': orgPermissionCmd, - object: objectCmd, database: databaseCmd, schema: schemaCmd, table: tableCmd, @@ -263,6 +265,7 @@ const createCommandMap: () => Record< 'session-secrets-module': sessionSecretsModuleCmd, 'identity-providers-module': identityProvidersModuleCmd, 'realtime-module': realtimeModuleCmd, + 'config-secrets-org-module': configSecretsOrgModuleCmd, 'schema-grant': schemaGrantCmd, 'default-privilege': defaultPrivilegeCmd, enum: enumCmd, @@ -287,7 +290,7 @@ const createCommandMap: () => Record< 'default-ids-module': defaultIdsModuleCmd, 'denormalized-table-field': denormalizedTableFieldCmd, 'emails-module': emailsModuleCmd, - 'encrypted-secrets-module': encryptedSecretsModuleCmd, + 'config-secrets-user-module': configSecretsUserModuleCmd, 'invites-module': invitesModuleCmd, 'events-module': eventsModuleCmd, 'limits-module': limitsModuleCmd, @@ -341,44 +344,45 @@ const createCommandMap: () => Record< 'agent-thread': agentThreadCmd, 'agent-message': agentMessageCmd, 'agent-task': agentTaskCmd, - 'role-type': roleTypeCmd, 'identity-provider': identityProviderCmd, ref: refCmd, store: storeCmd, 'app-permission-default': appPermissionDefaultCmd, - 'app-limit-credit-code': appLimitCreditCodeCmd, + 'role-type': roleTypeCmd, + 'migrate-file': migrateFileCmd, 'app-limit-caps-default': appLimitCapsDefaultCmd, 'org-limit-caps-default': orgLimitCapsDefaultCmd, - 'app-limit-cap': appLimitCapCmd, - 'org-limit-cap': orgLimitCapCmd, - 'membership-type': membershipTypeCmd, - 'migrate-file': migrateFileCmd, 'devices-module': devicesModuleCmd, + 'app-membership-default': appMembershipDefaultCmd, + 'org-membership-default': orgMembershipDefaultCmd, 'node-type-registry': nodeTypeRegistryCmd, + 'app-limit-cap': appLimitCapCmd, 'app-limit-default': appLimitDefaultCmd, + 'org-limit-cap': orgLimitCapCmd, 'org-limit-default': orgLimitDefaultCmd, - 'app-limit-warning': appLimitWarningCmd, 'user-connected-account': userConnectedAccountCmd, + 'app-limit-credit-code': appLimitCreditCodeCmd, + 'app-limit-warning': appLimitWarningCmd, commit: commitCmd, 'pubkey-setting': pubkeySettingCmd, 'rate-limits-module': rateLimitsModuleCmd, 'usage-snapshot': usageSnapshotCmd, - 'app-membership-default': appMembershipDefaultCmd, - 'org-membership-default': orgMembershipDefaultCmd, + 'membership-type': membershipTypeCmd, 'rls-setting': rlsSettingCmd, - 'app-limit-event': appLimitEventCmd, - 'org-limit-event': orgLimitEventCmd, 'rls-module': rlsModuleCmd, + 'inference-log-module': inferenceLogModuleCmd, 'rate-limit-meters-module': rateLimitMetersModuleCmd, 'plans-module': plansModuleCmd, 'sql-action': sqlActionCmd, + 'app-limit-event': appLimitEventCmd, + 'org-limit-event': orgLimitEventCmd, 'database-setting': databaseSettingCmd, + 'org-membership-setting': orgMembershipSettingCmd, 'billing-module': billingModuleCmd, - 'ast-migration': astMigrationCmd, + 'app-membership': appMembershipCmd, user: userCmd, - 'org-membership-setting': orgMembershipSettingCmd, + 'ast-migration': astMigrationCmd, 'webauthn-setting': webauthnSettingCmd, - 'app-membership': appMembershipCmd, 'billing-provider-module': billingProviderModuleCmd, 'hierarchy-module': hierarchyModuleCmd, 'current-user-id': currentUserIdCmd, @@ -395,11 +399,11 @@ const createCommandMap: () => Record< 'resolve-blueprint-table': resolveBlueprintTableCmd, 'app-permissions-get-mask-by-names': appPermissionsGetMaskByNamesCmd, 'org-permissions-get-mask-by-names': orgPermissionsGetMaskByNamesCmd, - 'app-permissions-get-by-mask': appPermissionsGetByMaskCmd, - 'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd, 'get-all-objects-from-root': getAllObjectsFromRootCmd, 'get-path-objects-from-root': getPathObjectsFromRootCmd, 'get-object-at-path': getObjectAtPathCmd, + 'app-permissions-get-by-mask': appPermissionsGetByMaskCmd, + 'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd, 'current-user': currentUserCmd, 'send-account-deletion-email': sendAccountDeletionEmailCmd, 'sign-out': signOutCmd, @@ -425,7 +429,10 @@ const createCommandMap: () => Record< 'remove-node-at-path': removeNodeAtPathCmd, 'copy-template-to-blueprint': copyTemplateToBlueprintCmd, 'provision-spatial-relation': provisionSpatialRelationCmd, + 'sign-in-cross-origin': signInCrossOriginCmd, 'bootstrap-user': bootstrapUserCmd, + 'sign-up': signUpCmd, + 'sign-in': signInCmd, 'set-field-order': setFieldOrderCmd, 'provision-check-constraint': provisionCheckConstraintCmd, 'provision-unique-constraint': provisionUniqueConstraintCmd, @@ -439,20 +446,17 @@ const createCommandMap: () => Record< 'set-and-commit': setAndCommitCmd, 'provision-relation': provisionRelationCmd, 'apply-rls': applyRlsCmd, - 'sign-in-cross-origin': signInCrossOriginCmd, 'create-user-database': createUserDatabaseCmd, 'extend-token-expires': extendTokenExpiresCmd, 'create-api-key': createApiKeyCmd, - 'send-verification-email': sendVerificationEmailCmd, - 'forgot-password': forgotPasswordCmd, - 'sign-up': signUpCmd, 'request-cross-origin-token': requestCrossOriginTokenCmd, - 'sign-in': signInCmd, 'provision-table': provisionTableCmd, + 'send-verification-email': sendVerificationEmailCmd, + 'forgot-password': forgotPasswordCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n partition partition CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n events-module eventsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n user-state-module userStateModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n object object CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n partition partition CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n invites-module invitesModule CRUD operations\n events-module eventsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n user-state-module userStateModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n role-type roleType CRUD operations\n migrate-file migrateFile CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n devices-module devicesModule CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-cap appLimitCap CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n membership-type membershipType CRUD operations\n rls-setting rlsSetting CRUD operations\n rls-module rlsModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n database-setting databaseSetting CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n billing-module billingModule CRUD operations\n app-membership appMembership CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n sign-in-cross-origin signInCrossOrigin\n bootstrap-user bootstrapUser\n sign-up signUp\n sign-in signIn\n set-field-order setFieldOrder\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts index 0e8be421d2..1cec8ade46 100644 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts +++ b/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts @@ -16,6 +16,8 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', name: 'string', actorId: 'uuid', entityId: 'uuid', @@ -27,7 +29,7 @@ const fieldSchema: FieldSchema = { reason: 'string', }; const usage = - '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n create Create a new appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n get Get a appLimitEvent by ID\n create Create a new appLimitEvent\n update Update an existing appLimitEvent\n delete Delete a appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -44,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -61,8 +63,14 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); case 'create': return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); default: console.log(usage); process.exit(1); @@ -71,6 +79,8 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -100,6 +110,8 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -126,6 +138,44 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.appLimitEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ @@ -213,6 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In reason: cleanedData.reason, }, select: { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -234,3 +286,150 @@ async function handleCreate(argv: Partial>, prompter: In process.exit(1); } } +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitEventPatch; + const client = getClient(); + const result = await client.appLimitEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.appLimitEvent + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/billing-module.ts b/sdk/constructive-cli/src/public/cli/commands/billing-module.ts index 2d33a7c676..f65c9e8aa7 100644 --- a/sdk/constructive-cli/src/public/cli/commands/billing-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/billing-module.ts @@ -28,6 +28,8 @@ const fieldSchema: FieldSchema = { ledgerTableName: 'string', balancesTableId: 'uuid', balancesTableName: 'string', + meterCreditsTableId: 'uuid', + meterCreditsTableName: 'string', recordUsageFunction: 'string', prefix: 'string', }; @@ -94,6 +96,8 @@ async function handleList(argv: Partial>, _prompter: Inq ledgerTableName: true, balancesTableId: true, balancesTableName: true, + meterCreditsTableId: true, + meterCreditsTableName: true, recordUsageFunction: true, prefix: true, }; @@ -128,6 +132,8 @@ async function handleFindFirst(argv: Partial>, _prompter ledgerTableName: true, balancesTableId: true, balancesTableName: true, + meterCreditsTableId: true, + meterCreditsTableName: true, recordUsageFunction: true, prefix: true, }; @@ -174,6 +180,8 @@ async function handleGet(argv: Partial>, prompter: Inqui ledgerTableName: true, balancesTableId: true, balancesTableName: true, + meterCreditsTableId: true, + meterCreditsTableName: true, recordUsageFunction: true, prefix: true, }, @@ -267,6 +275,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'meterCreditsTableId', + message: 'meterCreditsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'meterCreditsTableName', + message: 'meterCreditsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordUsageFunction', @@ -302,6 +324,8 @@ async function handleCreate(argv: Partial>, prompter: In ledgerTableName: cleanedData.ledgerTableName, balancesTableId: cleanedData.balancesTableId, balancesTableName: cleanedData.balancesTableName, + meterCreditsTableId: cleanedData.meterCreditsTableId, + meterCreditsTableName: cleanedData.meterCreditsTableName, recordUsageFunction: cleanedData.recordUsageFunction, prefix: cleanedData.prefix, }, @@ -318,6 +342,8 @@ async function handleCreate(argv: Partial>, prompter: In ledgerTableName: true, balancesTableId: true, balancesTableName: true, + meterCreditsTableId: true, + meterCreditsTableName: true, recordUsageFunction: true, prefix: true, }, @@ -417,6 +443,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'meterCreditsTableId', + message: 'meterCreditsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'meterCreditsTableName', + message: 'meterCreditsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordUsageFunction', @@ -452,6 +492,8 @@ async function handleUpdate(argv: Partial>, prompter: In ledgerTableName: cleanedData.ledgerTableName, balancesTableId: cleanedData.balancesTableId, balancesTableName: cleanedData.balancesTableName, + meterCreditsTableId: cleanedData.meterCreditsTableId, + meterCreditsTableName: cleanedData.meterCreditsTableName, recordUsageFunction: cleanedData.recordUsageFunction, prefix: cleanedData.prefix, }, @@ -468,6 +510,8 @@ async function handleUpdate(argv: Partial>, prompter: In ledgerTableName: true, balancesTableId: true, balancesTableName: true, + meterCreditsTableId: true, + meterCreditsTableName: true, recordUsageFunction: true, prefix: true, }, diff --git a/sdk/constructive-cli/src/public/cli/commands/commit.ts b/sdk/constructive-cli/src/public/cli/commands/commit.ts index 02b4952ada..79870a7c41 100644 --- a/sdk/constructive-cli/src/public/cli/commands/commit.ts +++ b/sdk/constructive-cli/src/public/cli/commands/commit.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', message: 'string', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', parentIds: 'uuid', authorId: 'uuid', @@ -79,7 +79,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -108,7 +108,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -149,7 +149,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -180,8 +180,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -233,7 +233,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { message: cleanedData.message, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, parentIds: cleanedData.parentIds, authorId: cleanedData.authorId, @@ -244,7 +244,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -281,8 +281,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -337,7 +337,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { message: cleanedData.message, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, parentIds: cleanedData.parentIds, authorId: cleanedData.authorId, @@ -348,7 +348,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/encrypted-secrets-module.ts b/sdk/constructive-cli/src/public/cli/commands/config-secrets-org-module.ts similarity index 76% rename from sdk/constructive-cli/src/public/cli/commands/encrypted-secrets-module.ts rename to sdk/constructive-cli/src/public/cli/commands/config-secrets-org-module.ts index 653e90cd5c..eb43db4d25 100644 --- a/sdk/constructive-cli/src/public/cli/commands/encrypted-secrets-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/config-secrets-org-module.ts @@ -1,5 +1,5 @@ /** - * CLI commands for EncryptedSecretsModule + * CLI commands for ConfigSecretsOrgModule * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,11 +8,11 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateEncryptedSecretsModuleInput, - EncryptedSecretsModulePatch, - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, + CreateConfigSecretsOrgModuleInput, + ConfigSecretsOrgModulePatch, + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -23,7 +23,7 @@ const fieldSchema: FieldSchema = { tableName: 'string', }; const usage = - '\nencrypted-secrets-module \n\nCommands:\n list List encryptedSecretsModule records\n find-first Find first matching encryptedSecretsModule record\n get Get a encryptedSecretsModule by ID\n create Create a new encryptedSecretsModule\n update Update an existing encryptedSecretsModule\n delete Delete a encryptedSecretsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nconfig-secrets-org-module \n\nCommands:\n list List configSecretsOrgModule records\n find-first Find first matching configSecretsOrgModule record\n get Get a configSecretsOrgModule by ID\n create Create a new configSecretsOrgModule\n update Update an existing configSecretsOrgModule\n delete Delete a configSecretsOrgModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -81,15 +81,15 @@ async function handleList(argv: Partial>, _prompter: Inq }; const findManyArgs = parseFindManyArgs< FindManyArgs< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy > & { - select: EncryptedSecretsModuleSelect; + select: ConfigSecretsOrgModuleSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.encryptedSecretsModule.findMany(findManyArgs).execute(); + const result = await client.configSecretsOrgModule.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -110,15 +110,15 @@ async function handleFindFirst(argv: Partial>, _prompter }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy > & { - select: EncryptedSecretsModuleSelect; + select: ConfigSecretsOrgModuleSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.encryptedSecretsModule.findFirst(findFirstArgs).execute(); + const result = await client.configSecretsOrgModule.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -139,7 +139,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.encryptedSecretsModule + const result = await client.configSecretsOrgModule .findOne({ id: answers.id as string, select: { @@ -195,9 +195,9 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateEncryptedSecretsModuleInput['encryptedSecretsModule']; + ) as CreateConfigSecretsOrgModuleInput['configSecretsOrgModule']; const client = getClient(); - const result = await client.encryptedSecretsModule + const result = await client.configSecretsOrgModule .create({ data: { databaseId: cleanedData.databaseId, @@ -261,9 +261,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as EncryptedSecretsModulePatch; + const cleanedData = stripUndefined(answers, fieldSchema) as ConfigSecretsOrgModulePatch; const client = getClient(); - const result = await client.encryptedSecretsModule + const result = await client.configSecretsOrgModule .update({ where: { id: answers.id as string, @@ -304,7 +304,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.encryptedSecretsModule + const result = await client.configSecretsOrgModule .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/public/cli/commands/config-secrets-user-module.ts b/sdk/constructive-cli/src/public/cli/commands/config-secrets-user-module.ts new file mode 100644 index 0000000000..8734c109ee --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/config-secrets-user-module.ts @@ -0,0 +1,325 @@ +/** + * CLI commands for ConfigSecretsUserModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateConfigSecretsUserModuleInput, + ConfigSecretsUserModulePatch, + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + tableId: 'uuid', + tableName: 'string', +}; +const usage = + '\nconfig-secrets-user-module \n\nCommands:\n list List configSecretsUserModule records\n find-first Find first matching configSecretsUserModule record\n get Get a configSecretsUserModule by ID\n create Create a new configSecretsUserModule\n update Update an existing configSecretsUserModule\n delete Delete a configSecretsUserModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + > & { + select: ConfigSecretsUserModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.configSecretsUserModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + > & { + select: ConfigSecretsUserModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.configSecretsUserModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.configSecretsUserModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableName', + message: 'tableName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateConfigSecretsUserModuleInput['configSecretsUserModule']; + const client = getClient(); + const result = await client.configSecretsUserModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableName', + message: 'tableName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ConfigSecretsUserModulePatch; + const client = getClient(); + const result = await client.configSecretsUserModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.configSecretsUserModule + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/get-all-objects-from-root.ts b/sdk/constructive-cli/src/public/cli/commands/get-all-objects-from-root.ts index 6c2bef23be..da024e0fbe 100644 --- a/sdk/constructive-cli/src/public/cli/commands/get-all-objects-from-root.ts +++ b/sdk/constructive-cli/src/public/cli/commands/get-all-objects-from-root.ts @@ -23,8 +23,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/public/cli/commands/get-object-at-path.ts b/sdk/constructive-cli/src/public/cli/commands/get-object-at-path.ts index 336a7e8d57..34e7a2396c 100644 --- a/sdk/constructive-cli/src/public/cli/commands/get-object-at-path.ts +++ b/sdk/constructive-cli/src/public/cli/commands/get-object-at-path.ts @@ -21,8 +21,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'dbId', - message: 'dbId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/public/cli/commands/get-path-objects-from-root.ts b/sdk/constructive-cli/src/public/cli/commands/get-path-objects-from-root.ts index 3985235808..9961e452b2 100644 --- a/sdk/constructive-cli/src/public/cli/commands/get-path-objects-from-root.ts +++ b/sdk/constructive-cli/src/public/cli/commands/get-path-objects-from-root.ts @@ -23,8 +23,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/public/cli/commands/inference-log-module.ts b/sdk/constructive-cli/src/public/cli/commands/inference-log-module.ts new file mode 100644 index 0000000000..30e55baf2e --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/inference-log-module.ts @@ -0,0 +1,479 @@ +/** + * CLI commands for InferenceLogModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateInferenceLogModuleInput, + InferenceLogModulePatch, + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + inferenceLogTableId: 'uuid', + inferenceLogTableName: 'string', + usageDailyTableId: 'uuid', + usageDailyTableName: 'string', + interval: 'string', + retention: 'string', + premake: 'int', + prefix: 'string', +}; +const usage = + '\ninference-log-module \n\nCommands:\n list List inferenceLogModule records\n find-first Find first matching inferenceLogModule record\n get Get a inferenceLogModule by ID\n create Create a new inferenceLogModule\n update Update an existing inferenceLogModule\n delete Delete a inferenceLogModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + inferenceLogTableId: true, + inferenceLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + prefix: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + > & { + select: InferenceLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.inferenceLogModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + inferenceLogTableId: true, + inferenceLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + prefix: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + > & { + select: InferenceLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.inferenceLogModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.inferenceLogModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + inferenceLogTableId: true, + inferenceLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + prefix: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'inferenceLogTableId', + message: 'inferenceLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'inferenceLogTableName', + message: 'inferenceLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableId', + message: 'usageDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableName', + message: 'usageDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInferenceLogModuleInput['inferenceLogModule']; + const client = getClient(); + const result = await client.inferenceLogModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + inferenceLogTableId: cleanedData.inferenceLogTableId, + inferenceLogTableName: cleanedData.inferenceLogTableName, + usageDailyTableId: cleanedData.usageDailyTableId, + usageDailyTableName: cleanedData.usageDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + inferenceLogTableId: true, + inferenceLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + prefix: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'inferenceLogTableId', + message: 'inferenceLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'inferenceLogTableName', + message: 'inferenceLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableId', + message: 'usageDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableName', + message: 'usageDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InferenceLogModulePatch; + const client = getClient(); + const result = await client.inferenceLogModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + inferenceLogTableId: cleanedData.inferenceLogTableId, + inferenceLogTableName: cleanedData.inferenceLogTableName, + usageDailyTableId: cleanedData.usageDailyTableId, + usageDailyTableName: cleanedData.usageDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + inferenceLogTableId: true, + inferenceLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + prefix: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.inferenceLogModule + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/object.ts b/sdk/constructive-cli/src/public/cli/commands/object.ts index d99526a4ed..c49a3216a7 100644 --- a/sdk/constructive-cli/src/public/cli/commands/object.ts +++ b/sdk/constructive-cli/src/public/cli/commands/object.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { hashUuid: 'uuid', id: 'uuid', - databaseId: 'uuid', + scopeId: 'uuid', kids: 'uuid', ktree: 'string', data: 'json', @@ -77,7 +77,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -104,7 +104,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -143,7 +143,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -166,8 +166,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -205,7 +205,7 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.object .create({ data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, @@ -213,7 +213,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -242,8 +242,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -284,7 +284,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, @@ -292,7 +292,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts index c8ef656d6e..20f8250015 100644 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts +++ b/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts @@ -16,6 +16,8 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', name: 'string', actorId: 'uuid', entityId: 'uuid', @@ -27,7 +29,7 @@ const fieldSchema: FieldSchema = { reason: 'string', }; const usage = - '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n create Create a new orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n get Get a orgLimitEvent by ID\n create Create a new orgLimitEvent\n update Update an existing orgLimitEvent\n delete Delete a orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -44,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -61,8 +63,14 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); case 'create': return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); default: console.log(usage); process.exit(1); @@ -71,6 +79,8 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -100,6 +110,8 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -126,6 +138,44 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.orgLimitEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ @@ -213,6 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In reason: cleanedData.reason, }, select: { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -234,3 +286,150 @@ async function handleCreate(argv: Partial>, prompter: In process.exit(1); } } +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitEventPatch; + const client = getClient(); + const result = await client.orgLimitEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.orgLimitEvent + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/partition.ts b/sdk/constructive-cli/src/public/cli/commands/partition.ts index 56ff67198b..fbf8842273 100644 --- a/sdk/constructive-cli/src/public/cli/commands/partition.ts +++ b/sdk/constructive-cli/src/public/cli/commands/partition.ts @@ -23,6 +23,7 @@ const fieldSchema: FieldSchema = { partitionKeyId: 'uuid', interval: 'string', retention: 'string', + retentionKeepTable: 'boolean', premake: 'int', namingPattern: 'string', createdAt: 'string', @@ -86,6 +87,7 @@ async function handleList(argv: Partial>, _prompter: Inq partitionKeyId: true, interval: true, retention: true, + retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, @@ -117,6 +119,7 @@ async function handleFindFirst(argv: Partial>, _prompter partitionKeyId: true, interval: true, retention: true, + retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, @@ -160,6 +163,7 @@ async function handleGet(argv: Partial>, prompter: Inqui partitionKeyId: true, interval: true, retention: true, + retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, @@ -217,6 +221,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'retentionKeepTable', + message: 'retentionKeepTable', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'premake', @@ -244,6 +255,7 @@ async function handleCreate(argv: Partial>, prompter: In partitionKeyId: cleanedData.partitionKeyId, interval: cleanedData.interval, retention: cleanedData.retention, + retentionKeepTable: cleanedData.retentionKeepTable, premake: cleanedData.premake, namingPattern: cleanedData.namingPattern, }, @@ -255,6 +267,7 @@ async function handleCreate(argv: Partial>, prompter: In partitionKeyId: true, interval: true, retention: true, + retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, @@ -318,6 +331,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'retentionKeepTable', + message: 'retentionKeepTable', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'premake', @@ -348,6 +368,7 @@ async function handleUpdate(argv: Partial>, prompter: In partitionKeyId: cleanedData.partitionKeyId, interval: cleanedData.interval, retention: cleanedData.retention, + retentionKeepTable: cleanedData.retentionKeepTable, premake: cleanedData.premake, namingPattern: cleanedData.namingPattern, }, @@ -359,6 +380,7 @@ async function handleUpdate(argv: Partial>, prompter: In partitionKeyId: true, interval: true, retention: true, + retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/ref.ts b/sdk/constructive-cli/src/public/cli/commands/ref.ts index cc4ef6922f..4ff8a3a6ff 100644 --- a/sdk/constructive-cli/src/public/cli/commands/ref.ts +++ b/sdk/constructive-cli/src/public/cli/commands/ref.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', commitId: 'uuid', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }; @@ -100,7 +100,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }; @@ -137,7 +137,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -163,8 +163,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -188,14 +188,14 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, commitId: cleanedData.commitId, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -227,8 +227,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -255,14 +255,14 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, commitId: cleanedData.commitId, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, diff --git a/sdk/constructive-cli/src/public/cli/commands/rev-parse.ts b/sdk/constructive-cli/src/public/cli/commands/rev-parse.ts index 302b869622..32e9cfa49d 100644 --- a/sdk/constructive-cli/src/public/cli/commands/rev-parse.ts +++ b/sdk/constructive-cli/src/public/cli/commands/rev-parse.ts @@ -19,8 +19,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'dbId', - message: 'dbId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/public/cli/commands/storage-module.ts b/sdk/constructive-cli/src/public/cli/commands/storage-module.ts index 8ecc2453f6..d2a8b1b839 100644 --- a/sdk/constructive-cli/src/public/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/storage-module.ts @@ -25,6 +25,7 @@ const fieldSchema: FieldSchema = { bucketsTableName: 'string', filesTableName: 'string', membershipType: 'int', + storageKey: 'string', policies: 'json', skipDefaultPolicyTables: 'string', entityTableId: 'uuid', @@ -110,6 +111,7 @@ async function handleList(argv: Partial>, _prompter: Inq bucketsTableName: true, filesTableName: true, membershipType: true, + storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, @@ -163,6 +165,7 @@ async function handleFindFirst(argv: Partial>, _prompter bucketsTableName: true, filesTableName: true, membershipType: true, + storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, @@ -228,6 +231,7 @@ async function handleGet(argv: Partial>, prompter: Inqui bucketsTableName: true, filesTableName: true, membershipType: true, + storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, @@ -322,6 +326,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'storageKey', + message: 'storageKey', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'policies', @@ -508,6 +519,7 @@ async function handleCreate(argv: Partial>, prompter: In bucketsTableName: cleanedData.bucketsTableName, filesTableName: cleanedData.filesTableName, membershipType: cleanedData.membershipType, + storageKey: cleanedData.storageKey, policies: cleanedData.policies, skipDefaultPolicyTables: cleanedData.skipDefaultPolicyTables, entityTableId: cleanedData.entityTableId, @@ -543,6 +555,7 @@ async function handleCreate(argv: Partial>, prompter: In bucketsTableName: true, filesTableName: true, membershipType: true, + storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, @@ -643,6 +656,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'storageKey', + message: 'storageKey', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'policies', @@ -829,6 +849,7 @@ async function handleUpdate(argv: Partial>, prompter: In bucketsTableName: cleanedData.bucketsTableName, filesTableName: cleanedData.filesTableName, membershipType: cleanedData.membershipType, + storageKey: cleanedData.storageKey, policies: cleanedData.policies, skipDefaultPolicyTables: cleanedData.skipDefaultPolicyTables, entityTableId: cleanedData.entityTableId, @@ -864,6 +885,7 @@ async function handleUpdate(argv: Partial>, prompter: In bucketsTableName: true, filesTableName: true, membershipType: true, + storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/store.ts b/sdk/constructive-cli/src/public/cli/commands/store.ts index eba292c2fc..04f04ed6cc 100644 --- a/sdk/constructive-cli/src/public/cli/commands/store.ts +++ b/sdk/constructive-cli/src/public/cli/commands/store.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', - databaseId: 'uuid', + scopeId: 'uuid', hash: 'uuid', createdAt: 'string', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }; @@ -100,7 +100,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }; @@ -137,7 +137,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, @@ -163,8 +163,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -182,13 +182,13 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, @@ -220,8 +220,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -242,13 +242,13 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, diff --git a/sdk/constructive-cli/src/public/orm/README.md b/sdk/constructive-cli/src/public/orm/README.md index 4dc7b74e2e..5a1700ea75 100644 --- a/sdk/constructive-cli/src/public/orm/README.md +++ b/sdk/constructive-cli/src/public/orm/README.md @@ -24,9 +24,9 @@ const db = createClient({ | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | -| `object` | findMany, findOne, create, update, delete | | `database` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | @@ -51,6 +51,7 @@ const db = createClient({ | `sessionSecretsModule` | findMany, findOne, create, update, delete | | `identityProvidersModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | +| `configSecretsOrgModule` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | @@ -75,7 +76,7 @@ const db = createClient({ | `defaultIdsModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | -| `encryptedSecretsModule` | findMany, findOne, create, update, delete | +| `configSecretsUserModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | @@ -129,44 +130,45 @@ const db = createClient({ | `agentThread` | findMany, findOne, create, update, delete | | `agentMessage` | findMany, findOne, create, update, delete | | `agentTask` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | +| `migrateFile` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | -| `appLimitCap` | findMany, findOne, create, update, delete | -| `orgLimitCap` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | -| `migrateFile` | findMany, findOne, create, update, delete | | `devicesModule` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `appLimitCap` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitCap` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `appLimitWarning` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `appLimitWarning` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `pubkeySetting` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | | `usageSnapshot` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | +| `inferenceLogModule` | findMany, findOne, create, update, delete | | `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `databaseSetting` | findMany, findOne, create, update, delete | +| `orgMembershipSetting` | findMany, findOne, create, update, delete | | `billingModule` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, create, update, delete | | `webauthnSetting` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | @@ -262,42 +264,45 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.object` -CRUD operations for AppPermission records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` +### `db.appPermission` -CRUD operations for OrgPermission records. +CRUD operations for AppPermission records. **Fields:** @@ -312,56 +317,53 @@ CRUD operations for OrgPermission records. **Operations:** ```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all appPermission records +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.orgPermission` -CRUD operations for Object records. +CRUD operations for OrgPermission records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | **Operations:** ```typescript -// List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +// List all orgPermission records +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.database` @@ -1359,6 +1361,39 @@ const updated = await db.realtimeModule.update({ where: { id: '' }, data: const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.configSecretsOrgModule` + +CRUD operations for ConfigSecretsOrgModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all configSecretsOrgModule records +const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.schemaGrant` CRUD operations for SchemaGrant records. @@ -1821,6 +1856,7 @@ CRUD operations for Partition records. | `partitionKeyId` | UUID | Yes | | `interval` | String | Yes | | `retention` | String | Yes | +| `retentionKeepTable` | Boolean | Yes | | `premake` | Int | Yes | | `namingPattern` | String | Yes | | `createdAt` | Datetime | No | @@ -1830,13 +1866,13 @@ CRUD operations for Partition records. ```typescript // List all partition records -const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); +const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); // Update const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2215,9 +2251,9 @@ const updated = await db.emailsModule.update({ where: { id: '' }, data: { const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.encryptedSecretsModule` +### `db.configSecretsUserModule` -CRUD operations for EncryptedSecretsModule records. +CRUD operations for ConfigSecretsUserModule records. **Fields:** @@ -2232,20 +2268,20 @@ CRUD operations for EncryptedSecretsModule records. **Operations:** ```typescript -// List all encryptedSecretsModule records -const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); +// List all configSecretsUserModule records +const items = await db.configSecretsUserModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.encryptedSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); +const item = await db.configSecretsUserModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); ``` ### `db.invitesModule` @@ -2945,6 +2981,7 @@ CRUD operations for StorageModule records. | `bucketsTableName` | String | Yes | | `filesTableName` | String | Yes | | `membershipType` | Int | Yes | +| `storageKey` | String | Yes | | `policies` | JSON | Yes | | `skipDefaultPolicyTables` | String | Yes | | `entityTableId` | UUID | Yes | @@ -2974,13 +3011,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -4378,36 +4415,6 @@ const updated = await db.agentTask.update({ where: { id: '' }, data: { thr const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` - -CRUD operations for RoleType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); - -// Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); - -// Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); -``` - ### `db.identityProvider` CRUD operations for IdentityProvider records. @@ -4451,7 +4458,7 @@ CRUD operations for Ref records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | @@ -4459,13 +4466,13 @@ CRUD operations for Ref records. ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -4484,7 +4491,7 @@ CRUD operations for Store records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | @@ -4492,13 +4499,13 @@ CRUD operations for Store records. ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -4537,37 +4544,65 @@ const updated = await db.appPermissionDefault.update({ where: { id: '' }, const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.roleType` -CRUD operations for AppLimitCreditCode records. +CRUD operations for RoleType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); + +// Get one by id +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); + +// Create +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +``` + +### `db.migrateFile` + +CRUD operations for MigrateFile records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); // Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); // Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -4632,208 +4667,213 @@ const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, d const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCap` +### `db.devicesModule` -CRUD operations for AppLimitCap records. +CRUD operations for DevicesModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `userDevicesTableId` | UUID | Yes | +| `deviceSettingsTableId` | UUID | Yes | +| `userDevicesTable` | String | Yes | +| `deviceSettingsTable` | String | Yes | **Operations:** ```typescript -// List all appLimitCap records -const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); +// List all devicesModule records +const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); // Get one by id -const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); +const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); // Create -const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); +const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); +const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitCap` +### `db.appMembershipDefault` -CRUD operations for OrgLimitCap records. +CRUD operations for AppMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.orgMembershipDefault` -CRUD operations for MembershipType records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.migrateFile` +### `db.nodeTypeRegistry` -CRUD operations for MigrateFile records. +CRUD operations for NodeTypeRegistry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | **Operations:** ```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); +// List all nodeTypeRegistry records +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); -// Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); +// Get one by name +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); // Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); // Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); // Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` -### `db.devicesModule` +### `db.appLimitCap` -CRUD operations for DevicesModule records. +CRUD operations for AppLimitCap records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `userDevicesTableId` | UUID | Yes | -| `deviceSettingsTableId` | UUID | Yes | -| `userDevicesTable` | String | Yes | -| `deviceSettingsTable` | String | Yes | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `max` | BigInt | Yes | **Operations:** ```typescript -// List all devicesModule records -const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +// List all appLimitCap records +const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); // Get one by id -const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); // Create -const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.nodeTypeRegistry` +### `db.appLimitDefault` -CRUD operations for NodeTypeRegistry records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | No | -| `slug` | String | Yes | -| `category` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `parameterSchema` | JSON | Yes | -| `tags` | String | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all nodeTypeRegistry records -const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); -// Get one by name -const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); +// Get one by id +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.orgLimitCap` -CRUD operations for AppLimitDefault records. +CRUD operations for OrgLimitCap records. **Fields:** @@ -4841,26 +4881,26 @@ CRUD operations for AppLimitDefault records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | +| `entityId` | UUID | Yes | | `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); +// List all orgLimitCap records +const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); +const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitDefault` @@ -4895,73 +4935,106 @@ const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitWarning` +### `db.userConnectedAccount` -CRUD operations for AppLimitWarning records. +CRUD operations for UserConnectedAccount records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | +| `ownerId` | UUID | Yes | +| `service` | String | Yes | +| `identifier` | String | Yes | +| `details` | JSON | Yes | +| `isVerified` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +// List all userConnectedAccount records +const items = await db.userConnectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +const item = await db.userConnectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.userConnectedAccount` +### `db.appLimitCreditCode` -CRUD operations for UserConnectedAccount records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `service` | String | Yes | -| `identifier` | String | Yes | -| `details` | JSON | Yes | -| `isVerified` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all userConnectedAccount records -const items = await db.userConnectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.userConnectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitWarning` + +CRUD operations for AppLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -4974,7 +5047,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -4986,13 +5059,13 @@ CRUD operations for Commit records. ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); @@ -5109,79 +5182,43 @@ const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.membershipType` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.rlsSetting` -CRUD operations for OrgMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.rlsSetting` - -CRUD operations for RlsSetting records. +CRUD operations for RlsSetting records. **Fields:** @@ -5217,83 +5254,48 @@ const updated = await db.rlsSetting.update({ where: { id: '' }, data: { da const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` - -CRUD operations for AppLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` +### `db.rlsModule` -CRUD operations for OrgLimitEvent records. +CRUD operations for RlsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `authenticate` | String | Yes | +| `authenticateStrict` | String | Yes | +| `currentRole` | String | Yes | +| `currentRoleId` | String | Yes | **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all rlsModule records +const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.rlsModule` +### `db.inferenceLogModule` -CRUD operations for RlsModule records. +CRUD operations for InferenceLogModule records. **Fields:** @@ -5303,31 +5305,32 @@ CRUD operations for RlsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `authenticate` | String | Yes | -| `authenticateStrict` | String | Yes | -| `currentRole` | String | Yes | -| `currentRoleId` | String | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all rlsModule records -const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); +// List all inferenceLogModule records +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } }).execute(); // Get one by id -const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } }).execute(); // Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rateLimitMetersModule` @@ -5452,6 +5455,84 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.databaseSetting` CRUD operations for DatabaseSetting records. @@ -5494,6 +5575,48 @@ const updated = await db.databaseSetting.update({ where: { id: '' }, data: const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); ``` +### `db.orgMembershipSetting` + +CRUD operations for OrgMembershipSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | + +**Operations:** + +```typescript +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Get one by id +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Create +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +``` + ### `db.billingModule` CRUD operations for BillingModule records. @@ -5514,6 +5637,8 @@ CRUD operations for BillingModule records. | `ledgerTableName` | String | Yes | | `balancesTableId` | UUID | Yes | | `balancesTableName` | String | Yes | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | | `recordUsageFunction` | String | Yes | | `prefix` | String | Yes | @@ -5521,13 +5646,13 @@ CRUD operations for BillingModule records. ```typescript // List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -5536,45 +5661,48 @@ const updated = await db.billingModule.update({ where: { id: '' }, data: { const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` -### `db.astMigration` +### `db.appMembership` -CRUD operations for AstMigration records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | +| `id` | UUID | No | | `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | | `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +// List all appMembership records +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -5619,46 +5747,45 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -### `db.orgMembershipSetting` +### `db.astMigration` -CRUD operations for OrgMembershipSetting records. +CRUD operations for AstMigration records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all astMigration records +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.webauthnSetting` @@ -5707,50 +5834,6 @@ const updated = await db.webauthnSetting.update({ where: { id: '' }, data: const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembership` - -CRUD operations for AppMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); -``` - ### `db.billingProviderModule` CRUD operations for BillingProviderModule records. @@ -5936,12 +6019,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.resolveBlueprintField` @@ -6058,97 +6141,97 @@ orgPermissionsGetMaskByNames const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` -### `db.query.appPermissionsGetByMask` +### `db.query.getAllObjectsFromRoot` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` +### `db.query.getPathObjectsFromRoot` -Reads and enables pagination through a set of `OrgPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getAllObjectsFromRoot` +### `db.query.getObjectAtPath` -Reads and enables pagination through a set of `Object`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `sId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` -### `db.query.getPathObjectsFromRoot` +### `db.query.appPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getObjectAtPath` +### `db.query.orgPermissionsGetByMask` -getObjectAtPath +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.currentUser` @@ -6414,7 +6497,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -6429,7 +6512,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.constructBlueprint` @@ -6489,7 +6572,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.copyTemplateToBlueprint` @@ -6522,6 +6605,21 @@ Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row dec const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); ``` +### `db.mutation.signInCrossOrigin` + +signInCrossOrigin + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInCrossOriginInput (required) | + +```typescript +const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.bootstrapUser` bootstrapUser @@ -6537,6 +6635,36 @@ bootstrapUser const result = await db.mutation.bootstrapUser({ input: '' }).execute(); ``` +### `db.mutation.signUp` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` + +### `db.mutation.signIn` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` + ### `db.mutation.setFieldOrder` setFieldOrder @@ -6624,7 +6752,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -6639,7 +6767,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.provisionDatabaseWithUser` @@ -6732,21 +6860,6 @@ applyRls const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.signInCrossOrigin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - -```typescript -const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); -``` - ### `db.mutation.createUserDatabase` Creates a new user database with all required modules, permissions, and RLS policies. @@ -6808,94 +6921,64 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); -``` - -### `db.mutation.forgotPassword` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); -``` - -### `db.mutation.signUp` +### `db.mutation.requestCrossOriginToken` -signUp +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.requestCrossOriginToken` +### `db.mutation.provisionTable` -requestCrossOriginToken +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ProvisionTableInput (required) | ```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +const result = await db.mutation.provisionTable({ input: '' }).execute(); ``` -### `db.mutation.signIn` +### `db.mutation.sendVerificationEmail` -signIn +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.provisionTable` +### `db.mutation.forgotPassword` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-cli/src/public/orm/index.ts b/sdk/constructive-cli/src/public/orm/index.ts index a605cf0e2b..ce2ca28177 100644 --- a/sdk/constructive-cli/src/public/orm/index.ts +++ b/sdk/constructive-cli/src/public/orm/index.ts @@ -8,9 +8,9 @@ import type { OrmClientConfig } from './client'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { GetAllRecordModel } from './models/getAllRecord'; +import { ObjectModel } from './models/object'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; -import { ObjectModel } from './models/object'; import { DatabaseModel } from './models/database'; import { SchemaModel } from './models/schema'; import { TableModel } from './models/table'; @@ -35,6 +35,7 @@ import { RelationProvisionModel } from './models/relationProvision'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RealtimeModuleModel } from './models/realtimeModule'; +import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { EnumModel } from './models/enum'; @@ -59,7 +60,7 @@ import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; import { EmailsModuleModel } from './models/emailsModule'; -import { EncryptedSecretsModuleModel } from './models/encryptedSecretsModule'; +import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { InvitesModuleModel } from './models/invitesModule'; import { EventsModuleModel } from './models/eventsModule'; import { LimitsModuleModel } from './models/limitsModule'; @@ -113,44 +114,45 @@ import { AuditLogModel } from './models/auditLog'; import { AgentThreadModel } from './models/agentThread'; import { AgentMessageModel } from './models/agentMessage'; import { AgentTaskModel } from './models/agentTask'; -import { RoleTypeModel } from './models/roleType'; import { IdentityProviderModel } from './models/identityProvider'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { RoleTypeModel } from './models/roleType'; +import { MigrateFileModel } from './models/migrateFile'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; -import { AppLimitCapModel } from './models/appLimitCap'; -import { OrgLimitCapModel } from './models/orgLimitCap'; -import { MembershipTypeModel } from './models/membershipType'; -import { MigrateFileModel } from './models/migrateFile'; import { DevicesModuleModel } from './models/devicesModule'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { AppLimitCapModel } from './models/appLimitCap'; import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { OrgLimitCapModel } from './models/orgLimitCap'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { AppLimitWarningModel } from './models/appLimitWarning'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { AppLimitWarningModel } from './models/appLimitWarning'; import { CommitModel } from './models/commit'; import { PubkeySettingModel } from './models/pubkeySetting'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { RlsSettingModel } from './models/rlsSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { RlsModuleModel } from './models/rlsModule'; +import { InferenceLogModuleModel } from './models/inferenceLogModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { PlansModuleModel } from './models/plansModule'; import { SqlActionModel } from './models/sqlAction'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { DatabaseSettingModel } from './models/databaseSetting'; +import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { BillingModuleModel } from './models/billingModule'; -import { AstMigrationModel } from './models/astMigration'; +import { AppMembershipModel } from './models/appMembership'; import { UserModel } from './models/user'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; +import { AstMigrationModel } from './models/astMigration'; import { WebauthnSettingModel } from './models/webauthnSetting'; -import { AppMembershipModel } from './models/appMembership'; import { BillingProviderModuleModel } from './models/billingProviderModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; @@ -191,9 +193,9 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), + object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), - object: new ObjectModel(client), database: new DatabaseModel(client), schema: new SchemaModel(client), table: new TableModel(client), @@ -218,6 +220,7 @@ export function createClient(config: OrmClientConfig) { sessionSecretsModule: new SessionSecretsModuleModel(client), identityProvidersModule: new IdentityProvidersModuleModel(client), realtimeModule: new RealtimeModuleModel(client), + configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), enum: new EnumModel(client), @@ -242,7 +245,7 @@ export function createClient(config: OrmClientConfig) { defaultIdsModule: new DefaultIdsModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), emailsModule: new EmailsModuleModel(client), - encryptedSecretsModule: new EncryptedSecretsModuleModel(client), + configSecretsUserModule: new ConfigSecretsUserModuleModel(client), invitesModule: new InvitesModuleModel(client), eventsModule: new EventsModuleModel(client), limitsModule: new LimitsModuleModel(client), @@ -296,44 +299,45 @@ export function createClient(config: OrmClientConfig) { agentThread: new AgentThreadModel(client), agentMessage: new AgentMessageModel(client), agentTask: new AgentTaskModel(client), - roleType: new RoleTypeModel(client), identityProvider: new IdentityProviderModel(client), ref: new RefModel(client), store: new StoreModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), + roleType: new RoleTypeModel(client), + migrateFile: new MigrateFileModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), - appLimitCap: new AppLimitCapModel(client), - orgLimitCap: new OrgLimitCapModel(client), - membershipType: new MembershipTypeModel(client), - migrateFile: new MigrateFileModel(client), devicesModule: new DevicesModuleModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), + appLimitCap: new AppLimitCapModel(client), appLimitDefault: new AppLimitDefaultModel(client), + orgLimitCap: new OrgLimitCapModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - appLimitWarning: new AppLimitWarningModel(client), userConnectedAccount: new UserConnectedAccountModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), + appLimitWarning: new AppLimitWarningModel(client), commit: new CommitModel(client), pubkeySetting: new PubkeySettingModel(client), rateLimitsModule: new RateLimitsModuleModel(client), usageSnapshot: new UsageSnapshotModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), + membershipType: new MembershipTypeModel(client), rlsSetting: new RlsSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), rlsModule: new RlsModuleModel(client), + inferenceLogModule: new InferenceLogModuleModel(client), rateLimitMetersModule: new RateLimitMetersModuleModel(client), plansModule: new PlansModuleModel(client), sqlAction: new SqlActionModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), databaseSetting: new DatabaseSettingModel(client), + orgMembershipSetting: new OrgMembershipSettingModel(client), billingModule: new BillingModuleModel(client), - astMigration: new AstMigrationModel(client), + appMembership: new AppMembershipModel(client), user: new UserModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), + astMigration: new AstMigrationModel(client), webauthnSetting: new WebauthnSettingModel(client), - appMembership: new AppMembershipModel(client), billingProviderModule: new BillingProviderModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-cli/src/public/orm/input-types.ts b/sdk/constructive-cli/src/public/orm/input-types.ts index 8a39234a74..8a25843a56 100644 --- a/sdk/constructive-cli/src/public/orm/input-types.ts +++ b/sdk/constructive-cli/src/public/orm/input-types.ts @@ -254,6 +254,16 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } +export interface Object { + hashUuid?: string | null; + id: string; + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; @@ -278,16 +288,6 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} export interface Database { id: string; ownerId?: string | null; @@ -786,6 +786,14 @@ export interface RealtimeModule { interval?: string | null; notifyChannel?: string | null; } +/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ +export interface ConfigSecretsOrgModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface SchemaGrant { id: string; databaseId?: string | null; @@ -944,6 +952,7 @@ export interface Partition { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; createdAt?: string | null; @@ -1103,7 +1112,7 @@ export interface EmailsModule { ownerTableId?: string | null; tableName?: string | null; } -export interface EncryptedSecretsModule { +export interface ConfigSecretsUserModule { id: string; databaseId?: string | null; schemaId?: string | null; @@ -1456,6 +1465,7 @@ export interface StorageModule { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -1580,36 +1590,34 @@ export interface EntityTypeProvision { */ hasInviteAchievements?: boolean | null; /** - * Optional jsonb object for storage module configuration and initial bucket seeding. - * Only used when has_storage = true; ignored otherwise. NULL = use defaults. - * Recognized keys (all optional): - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this scope - * - allowed_origins (text[]) default CORS origins for all buckets in this scope - * - buckets (jsonb[]) array of initial bucket definitions to seed - * Each bucket in the buckets array recognizes: - * - name (text, required) bucket name e.g. 'documents' - * - description (text) human-readable description - * - is_public (boolean) whether files are publicly readable (default false) - * - allowed_mime_types (text[]) whitelist of MIME types (null = any) - * - max_file_size (bigint) max file size in bytes (null = use scope default) - * - allowed_origins (text[]) per-bucket CORS override - * - provisions (jsonb object) optional: customize storage tables - * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets". - * Each value uses the same shape as table_provision: - * { nodes, fields, grants, use_rls, policies }. Fanned out - * to secure_table_provision targeting the corresponding table. - * When a key includes policies[], those REPLACE the default - * storage policies for that table; tables without a key still - * get defaults. Missing "data" on policy entries is auto-populated - * with storage-specific defaults (same as table_provision). - * Example: add SearchBm25 for full-text search on files: - * {"provisions": {"files": {"nodes": [{"$type": - * "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - * Example: - * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + * Optional JSON array of storage module definitions. Each element provisions a separate + * storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + * and feature flags. Only used when has_storage = true; ignored otherwise. + * NULL = provision a single default storage module with all defaults. + * Each array element recognizes (all optional): + * - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb */ storageConfig?: Record | null; /** @@ -2323,10 +2331,6 @@ export interface AgentTask { /** Current status of this record */ status?: string | null; } -export interface RoleType { - id: number; - name?: string | null; -} export interface IdentityProvider { slug?: string | null; kind?: string | null; @@ -2340,7 +2344,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -2350,8 +2354,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -2362,17 +2366,14 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { +export interface RoleType { + id: number; + name?: string | null; +} +export interface MigrateFile { id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; } /** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ export interface AppLimitCapsDefault { @@ -2390,46 +2391,6 @@ export interface OrgLimitCapsDefault { /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ max?: string | null; } -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; -} -export interface MigrateFile { - id: string; - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} export interface DevicesModule { id: string; databaseId?: string | null; @@ -2439,6 +2400,30 @@ export interface DevicesModule { userDevicesTable?: string | null; deviceSettingsTable?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} export interface NodeTypeRegistry { name?: string | null; slug?: string | null; @@ -2448,6 +2433,16 @@ export interface NodeTypeRegistry { parameterSchema?: Record | null; tags?: string[] | null; } +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface AppLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { id: string; @@ -2458,6 +2453,16 @@ export interface AppLimitDefault { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string | null; } +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface OrgLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface OrgLimitDefault { id: string; @@ -2468,6 +2473,28 @@ export interface OrgLimitDefault { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string | null; } +export interface UserConnectedAccount { + id: string; + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { + id: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; +} /** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ export interface AppLimitWarning { id: string; @@ -2480,24 +2507,14 @@ export interface AppLimitWarning { /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier?: string | null; } -export interface UserConnectedAccount { - id: string; - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} /** A commit records changes to the repository. */ export interface Commit { /** The primary unique identifier for the commit. */ id: string; /** The commit message */ message?: string | null; - /** The repository identifier */ - databaseId?: string | null; + /** The scope identifier */ + scopeId?: string | null; storeId?: string | null; /** Parent commits */ parentIds?: string[] | null; @@ -2555,29 +2572,20 @@ export interface UsageSnapshot { capturedAt?: string | null; id: string; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; } /** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ export interface RlsSetting { @@ -2602,8 +2610,82 @@ export interface RlsSetting { /** Reference to the current_ip_address function (FK to metaschema_public.function) */ currentIpAddressFunctionId?: string | null; } +export interface RlsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; +} +export interface InferenceLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + prefix?: string | null; +} +export interface RateLimitMetersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; +} +export interface PlansModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + planPricingTableId?: string | null; + planOverridesTableId?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; + prefix?: string | null; +} +export interface SqlAction { + id: number; + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} /** Append-only log of limit events for historical reporting and audit */ export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -2625,6 +2707,9 @@ export interface AppLimitEvent { } /** Append-only log of limit events for historical reporting and audit */ export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -2644,63 +2729,6 @@ export interface OrgLimitEvent { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string | null; } -export interface RlsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - sessionCredentialsTableId?: string | null; - sessionsTableId?: string | null; - usersTableId?: string | null; - authenticate?: string | null; - authenticateStrict?: string | null; - currentRole?: string | null; - currentRoleId?: string | null; -} -export interface RateLimitMetersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; -} -export interface PlansModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - prefix?: string | null; -} -export interface SqlAction { - id: number; - name?: string | null; - databaseId?: string | null; - deploy?: string | null; - deps?: string[] | null; - payload?: Record | null; - content?: string | null; - revert?: string | null; - verify?: string | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} /** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ export interface DatabaseSetting { /** Unique identifier for this settings record */ @@ -2732,6 +2760,32 @@ export interface DatabaseSetting { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record | null; } +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; +} export interface BillingModule { id: string; databaseId?: string | null; @@ -2745,23 +2799,39 @@ export interface BillingModule { ledgerTableName?: string | null; balancesTableId?: string | null; balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; recordUsageFunction?: string | null; prefix?: string | null; } -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { + id: string; createdAt?: string | null; - action?: string | null; - actionId?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + profileId?: string | null; } export interface User { id: string; @@ -2779,31 +2849,20 @@ export interface User { /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { - id: string; +export interface AstMigration { + id: number; + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ - entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; } /** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ export interface WebauthnSetting { @@ -2844,35 +2903,6 @@ export interface WebauthnSetting { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; -} export interface BillingProviderModule { id: string; databaseId?: string | null; @@ -2933,9 +2963,9 @@ export interface PageInfo { export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} +export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} -export interface ObjectRelations {} export interface DatabaseRelations { owner?: User | null; databaseSetting?: DatabaseSetting | null; @@ -2950,6 +2980,7 @@ export interface DatabaseRelations { billingModule?: BillingModule | null; billingProviderModule?: BillingProviderModule | null; rateLimitMetersModule?: RateLimitMetersModule | null; + inferenceLogModule?: InferenceLogModule | null; schemas?: ConnectionResult; tables?: ConnectionResult; checkConstraints?: ConnectionResult; @@ -2991,7 +3022,7 @@ export interface DatabaseRelations { defaultIdsModules?: ConnectionResult; denormalizedTableFields?: ConnectionResult; emailsModules?: ConnectionResult; - encryptedSecretsModules?: ConnectionResult; + configSecretsUserModules?: ConnectionResult; invitesModules?: ConnectionResult; eventsModules?: ConnectionResult; limitsModules?: ConnectionResult; @@ -3016,6 +3047,7 @@ export interface DatabaseRelations { identityProvidersModules?: ConnectionResult; notificationsModules?: ConnectionResult; realtimeModules?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -3033,6 +3065,7 @@ export interface SchemaRelations { realtimeModulesByPrivateSchemaId?: ConnectionResult; realtimeModules?: ConnectionResult; realtimeModulesBySubscriptionsSchemaId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface TableRelations { database?: Database | null; @@ -3064,6 +3097,7 @@ export interface TableRelations { realtimeModulesByChangeLogTableId?: ConnectionResult; realtimeModulesByListenerNodeTableId?: ConnectionResult; realtimeModulesBySourceRegistryTableId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface CheckConstraintRelations { database?: Database | null; @@ -3173,6 +3207,11 @@ export interface RealtimeModuleRelations { sourceRegistryTable?: Table | null; subscriptionsSchema?: Schema | null; } +export interface ConfigSecretsOrgModuleRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} export interface SchemaGrantRelations { database?: Database | null; schema?: Schema | null; @@ -3293,7 +3332,7 @@ export interface EmailsModuleRelations { schema?: Schema | null; table?: Table | null; } -export interface EncryptedSecretsModuleRelations { +export interface ConfigSecretsUserModuleRelations { database?: Database | null; schema?: Schema | null; table?: Table | null; @@ -3613,37 +3652,40 @@ export interface AgentTaskRelations { owner?: User | null; thread?: AgentThread | null; } -export interface RoleTypeRelations {} export interface IdentityProviderRelations {} export interface RefRelations {} export interface StoreRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} +export interface RoleTypeRelations {} +export interface MigrateFileRelations {} export interface AppLimitCapsDefaultRelations {} export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface MembershipTypeRelations {} -export interface MigrateFileRelations {} export interface DevicesModuleRelations { database?: Database | null; deviceSettingsTableByDeviceSettingsTableId?: Table | null; schema?: Schema | null; userDevicesTableByUserDevicesTableId?: Table | null; } +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations { + entity?: User | null; +} export interface NodeTypeRegistryRelations {} +export interface AppLimitCapRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; } +export interface OrgLimitCapRelations {} export interface OrgLimitDefaultRelations { orgLimitCreditsByDefaultLimitId?: ConnectionResult; } -export interface AppLimitWarningRelations {} export interface UserConnectedAccountRelations {} +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} +export interface AppLimitWarningRelations {} export interface CommitRelations {} export interface PubkeySettingRelations { database?: Database | null; @@ -3661,10 +3703,7 @@ export interface RateLimitsModuleRelations { schema?: Schema | null; } export interface UsageSnapshotRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} +export interface MembershipTypeRelations {} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -3676,8 +3715,6 @@ export interface RlsSettingRelations { database?: Database | null; roleSchema?: Schema | null; } -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface RlsModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3686,6 +3723,13 @@ export interface RlsModuleRelations { sessionsTable?: Table | null; usersTable?: Table | null; } +export interface InferenceLogModuleRelations { + database?: Database | null; + inferenceLogTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usageDailyTable?: Table | null; +} export interface RateLimitMetersModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3704,19 +3748,27 @@ export interface PlansModuleRelations { schema?: Schema | null; } export interface SqlActionRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface DatabaseSettingRelations { database?: Database | null; } +export interface OrgMembershipSettingRelations { + entity?: User | null; +} export interface BillingModuleRelations { balancesTable?: Table | null; database?: Database | null; ledgerTable?: Table | null; + meterCreditsTable?: Table | null; metersTable?: Table | null; planSubscriptionsTable?: Table | null; privateSchema?: Schema | null; schema?: Schema | null; } -export interface AstMigrationRelations {} +export interface AppMembershipRelations { + actor?: User | null; +} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -3779,9 +3831,7 @@ export interface UserRelations { ownedAgentMessages?: ConnectionResult; ownedAgentTasks?: ConnectionResult; } -export interface OrgMembershipSettingRelations { - entity?: User | null; -} +export interface AstMigrationRelations {} export interface WebauthnSettingRelations { credentialsSchema?: Schema | null; credentialsTable?: Table | null; @@ -3794,9 +3844,6 @@ export interface WebauthnSettingRelations { sessionsTable?: Table | null; userField?: Field | null; } -export interface AppMembershipRelations { - actor?: User | null; -} export interface BillingProviderModuleRelations { billingCustomersTable?: Table | null; billingPricesTable?: Table | null; @@ -3826,9 +3873,9 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; +export type ObjectWithRelations = Object & ObjectRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type ObjectWithRelations = Object & ObjectRelations; export type DatabaseWithRelations = Database & DatabaseRelations; export type SchemaWithRelations = Schema & SchemaRelations; export type TableWithRelations = Table & TableRelations; @@ -3858,6 +3905,8 @@ export type SessionSecretsModuleWithRelations = SessionSecretsModule & export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & IdentityProvidersModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & + ConfigSecretsOrgModuleRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type EnumWithRelations = Enum & EnumRelations; @@ -3885,8 +3934,8 @@ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleR export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; -export type EncryptedSecretsModuleWithRelations = EncryptedSecretsModule & - EncryptedSecretsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; @@ -3947,50 +3996,51 @@ export type AuditLogWithRelations = AuditLog & AuditLogRelations; export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; -export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; -export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; -export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; +export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & UserConnectedAccountRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; export type CommitWithRelations = Commit & CommitRelations; export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; +export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type UserWithRelations = User & UserRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type UserWithRelations = User & UserRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; @@ -4007,6 +4057,16 @@ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -4021,16 +4081,6 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type DatabaseSelect = { id?: boolean; ownerId?: boolean; @@ -4079,6 +4129,9 @@ export type DatabaseSelect = { rateLimitMetersModule?: { select: RateLimitMetersModuleSelect; }; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; schemas?: { select: SchemaSelect; first?: number; @@ -4325,11 +4378,11 @@ export type DatabaseSelect = { filter?: EmailsModuleFilter; orderBy?: EmailsModuleOrderBy[]; }; - encryptedSecretsModules?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModules?: { + select: ConfigSecretsUserModuleSelect; first?: number; - filter?: EncryptedSecretsModuleFilter; - orderBy?: EncryptedSecretsModuleOrderBy[]; + filter?: ConfigSecretsUserModuleFilter; + orderBy?: ConfigSecretsUserModuleOrderBy[]; }; invitesModules?: { select: InvitesModuleSelect; @@ -4475,6 +4528,12 @@ export type DatabaseSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; databaseProvisionModules?: { select: DatabaseProvisionModuleSelect; first?: number; @@ -4578,6 +4637,12 @@ export type SchemaSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type TableSelect = { id?: boolean; @@ -4765,6 +4830,12 @@ export type TableSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type CheckConstraintSelect = { id?: boolean; @@ -5299,6 +5370,22 @@ export type RealtimeModuleSelect = { select: SchemaSelect; }; }; +export type ConfigSecretsOrgModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; export type SchemaGrantSelect = { id?: boolean; databaseId?: boolean; @@ -5494,6 +5581,7 @@ export type PartitionSelect = { partitionKeyId?: boolean; interval?: boolean; retention?: boolean; + retentionKeepTable?: boolean; premake?: boolean; namingPattern?: boolean; createdAt?: boolean; @@ -5771,7 +5859,7 @@ export type EmailsModuleSelect = { select: TableSelect; }; }; -export type EncryptedSecretsModuleSelect = { +export type ConfigSecretsUserModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; @@ -6423,6 +6511,7 @@ export type StorageModuleSelect = { bucketsTableName?: boolean; filesTableName?: boolean; membershipType?: boolean; + storageKey?: boolean; policies?: boolean; skipDefaultPolicyTables?: boolean; entityTableId?: boolean; @@ -7181,10 +7270,6 @@ export type AgentTaskSelect = { select: AgentThreadSelect; }; }; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; export type IdentityProviderSelect = { slug?: boolean; kind?: boolean; @@ -7195,14 +7280,14 @@ export type IdentityProviderSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; @@ -7210,60 +7295,25 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitCapsDefaultSelect = { +export type RoleTypeSelect = { id?: boolean; name?: boolean; - max?: boolean; }; -export type OrgLimitCapsDefaultSelect = { +export type MigrateFileSelect = { id?: boolean; - name?: boolean; - max?: boolean; + databaseId?: boolean; + upload?: boolean; }; -export type AppLimitCapSelect = { +export type AppLimitCapsDefaultSelect = { id?: boolean; name?: boolean; - entityId?: boolean; max?: boolean; }; -export type OrgLimitCapSelect = { +export type OrgLimitCapsDefaultSelect = { id?: boolean; name?: boolean; - entityId?: boolean; max?: boolean; }; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; -}; -export type MigrateFileSelect = { - id?: boolean; - databaseId?: boolean; - upload?: boolean; -}; export type DevicesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7285,6 +7335,27 @@ export type DevicesModuleSelect = { select: TableSelect; }; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; export type NodeTypeRegistrySelect = { name?: boolean; slug?: boolean; @@ -7294,6 +7365,12 @@ export type NodeTypeRegistrySelect = { parameterSchema?: boolean; tags?: boolean; }; +export type AppLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -7312,6 +7389,12 @@ export type AppLimitDefaultSelect = { orderBy?: AppLimitCreditCodeItemOrderBy[]; }; }; +export type OrgLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; export type OrgLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -7324,13 +7407,6 @@ export type OrgLimitDefaultSelect = { orderBy?: OrgLimitCreditOrderBy[]; }; }; -export type AppLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; -}; export type UserConnectedAccountSelect = { id?: boolean; ownerId?: boolean; @@ -7341,10 +7417,36 @@ export type UserConnectedAccountSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLimitCreditCodeSelect = { + id?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; +}; +export type AppLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; +}; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -7415,26 +7517,13 @@ export type UsageSnapshotSelect = { capturedAt?: boolean; id?: boolean; }; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { +export type MembershipTypeSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; export type RlsSettingSelect = { id?: boolean; @@ -7475,28 +7564,6 @@ export type RlsSettingSelect = { select: SchemaSelect; }; }; -export type AppLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7528,6 +7595,35 @@ export type RlsModuleSelect = { select: TableSelect; }; }; +export type InferenceLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + inferenceLogTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; export type RateLimitMetersModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7611,6 +7707,32 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; +export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; export type DatabaseSettingSelect = { id?: boolean; databaseId?: boolean; @@ -7630,6 +7752,25 @@ export type DatabaseSettingSelect = { select: DatabaseSelect; }; }; +export type OrgMembershipSettingSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; + entity?: { + select: UserSelect; + }; +}; export type BillingModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7643,6 +7784,8 @@ export type BillingModuleSelect = { ledgerTableName?: boolean; balancesTableId?: boolean; balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; recordUsageFunction?: boolean; prefix?: boolean; balancesTable?: { @@ -7654,6 +7797,9 @@ export type BillingModuleSelect = { ledgerTable?: { select: TableSelect; }; + meterCreditsTable?: { + select: TableSelect; + }; metersTable?: { select: TableSelect; }; @@ -7667,20 +7813,26 @@ export type BillingModuleSelect = { select: SchemaSelect; }; }; -export type AstMigrationSelect = { +export type AppMembershipSelect = { id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; createdAt?: boolean; - action?: boolean; - actionId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; actorId?: boolean; + profileId?: boolean; + actor?: { + select: UserSelect; + }; }; export type UserSelect = { id?: boolean; @@ -8043,24 +8195,20 @@ export type UserSelect = { orderBy?: AgentTaskOrderBy[]; }; }; -export type OrgMembershipSettingSelect = { +export type AstMigrationSelect = { id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; - entity?: { - select: UserSelect; - }; + action?: boolean; + actionId?: boolean; + actorId?: boolean; }; export type WebauthnSettingSelect = { id?: boolean; @@ -8112,27 +8260,6 @@ export type WebauthnSettingSelect = { select: FieldSelect; }; }; -export type AppMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; - }; -}; export type BillingProviderModuleSelect = { id?: boolean; databaseId?: boolean; @@ -8256,6 +8383,28 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8292,28 +8441,6 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface DatabaseFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8521,10 +8648,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -8653,6 +8780,14 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModule` relation. */ + inferenceLogModule?: InferenceLogModuleFilter; + /** A related `inferenceLogModule` exists. */ + inferenceLogModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -8747,6 +8882,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface TableFilter { /** Filter by the object’s `id` field. */ @@ -8913,6 +9052,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface CheckConstraintFilter { /** Filter by the object’s `id` field. */ @@ -9788,6 +9931,30 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +export interface ConfigSecretsOrgModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} export interface SchemaGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10127,6 +10294,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -10514,7 +10683,7 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -export interface EncryptedSecretsModuleFilter { +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -10526,11 +10695,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -11461,6 +11630,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -12772,18 +12943,6 @@ export interface AgentTaskFilter { /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; } -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} export interface IdentityProviderFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; @@ -12807,8 +12966,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -12825,8 +12984,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -12850,31 +13009,31 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { +export interface RoleTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RoleTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: RoleTypeFilter[]; + /** Negates the expression. */ + not?: RoleTypeFilter; +} +export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; + and?: MigrateFileFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; + or?: MigrateFileFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; + not?: MigrateFileFilter; } export interface AppLimitCapsDefaultFilter { /** Filter by the object’s `id` field. */ @@ -12904,72 +13063,6 @@ export interface OrgLimitCapsDefaultFilter { /** Negates the expression. */ not?: OrgLimitCapsDefaultFilter; } -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -export interface MigrateFileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `upload` field. */ - upload?: ConstructiveInternalTypeUploadFilter; - /** Checks for all expressions in this list. */ - and?: MigrateFileFilter[]; - /** Checks for any expressions in this list. */ - or?: MigrateFileFilter[]; - /** Negates the expression. */ - not?: MigrateFileFilter; -} export interface DevicesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13000,6 +13093,52 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface NodeTypeRegistryFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; @@ -13022,6 +13161,22 @@ export interface NodeTypeRegistryFilter { /** Negates the expression. */ not?: NodeTypeRegistryFilter; } +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13046,6 +13201,22 @@ export interface AppLimitDefaultFilter { /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; } +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13066,24 +13237,6 @@ export interface OrgLimitDefaultFilter { /** `orgLimitCreditsByDefaultLimitId` exist. */ orgLimitCreditsByDefaultLimitIdExist?: boolean; } -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} export interface UserConnectedAccountFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13108,13 +13261,57 @@ export interface UserConnectedAccountFilter { /** Negates the expression. */ not?: UserConnectedAccountFilter; } +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} +export interface AppLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitWarningFilter[]; + /** Negates the expression. */ + not?: AppLimitWarningFilter; +} export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `message` field. */ message?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -13238,51 +13435,25 @@ export interface UsageSnapshotFilter { /** Negates the expression. */ not?: UsageSnapshotFilter; } -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -export interface OrgMembershipDefaultFilter { +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: MembershipTypeFilter; } export interface RlsSettingFilter { /** Filter by the object’s `id` field. */ @@ -13346,58 +13517,6 @@ export interface RlsSettingFilter { /** A related `roleSchema` exists. */ roleSchemaExists?: boolean; } -export interface AppLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13440,6 +13559,48 @@ export interface RlsModuleFilter { /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; } +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} export interface RateLimitMetersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13572,6 +13733,66 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } +export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} export interface DatabaseSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13610,6 +13831,44 @@ export interface DatabaseSettingFilter { /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; } +export interface OrgMembershipSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipSettingFilter[]; + /** Negates the expression. */ + not?: OrgMembershipSettingFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13635,6 +13894,10 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -13651,6 +13914,8 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -13660,39 +13925,47 @@ export interface BillingModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } -export interface AstMigrationFilter { +export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; + id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; + and?: AppMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; + or?: AppMembershipFilter[]; /** Negates the expression. */ - not?: AstMigrationFilter; + not?: AppMembershipFilter; + /** Filter by the object’s `actor` relation. */ + actor?: UserFilter; } export interface UserFilter { /** Filter by the object’s `id` field. */ @@ -13967,43 +14240,39 @@ export interface UserFilter { */ unifiedSearch?: string; } -export interface OrgMembershipSettingFilter { +export interface AstMigrationFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: AstMigrationFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: AstMigrationFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: AstMigrationFilter; } export interface WebauthnSettingFilter { /** Filter by the object’s `id` field. */ @@ -14087,48 +14356,6 @@ export interface WebauthnSettingFilter { /** A related `userField` exists. */ userFieldExists?: boolean; } -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -14294,6 +14521,24 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14322,24 +14567,6 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; export type DatabaseOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15082,6 +15309,20 @@ export type RealtimeModuleOrderBy = | 'INTERVAL_DESC' | 'NOTIFY_CHANNEL_ASC' | 'NOTIFY_CHANNEL_DESC'; +export type ConfigSecretsOrgModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; export type SchemaGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15318,6 +15559,8 @@ export type PartitionOrderBy = | 'INTERVAL_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' | 'PREMAKE_ASC' | 'PREMAKE_DESC' | 'NAMING_PATTERN_ASC' @@ -15546,7 +15789,7 @@ export type EmailsModuleOrderBy = | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type EncryptedSecretsModuleOrderBy = +export type ConfigSecretsUserModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -16162,6 +16405,8 @@ export type StorageModuleOrderBy = | 'FILES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'SKIP_DEFAULT_POLICY_TABLES_ASC' @@ -17064,14 +17309,6 @@ export type AgentTaskOrderBy = | 'OWNER_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC'; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -17092,8 +17329,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -17106,8 +17343,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -17120,41 +17357,23 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitCapsDefaultOrderBy = +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = + | 'NAME_DESC'; +export type MigrateFileOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +export type AppLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17162,11 +17381,9 @@ export type AppLimitCapOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type OrgLimitCapOrderBy = +export type OrgLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17174,34 +17391,8 @@ export type OrgLimitCapOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; -export type MigrateFileOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'UPLOAD_ASC' - | 'UPLOAD_DESC'; export type DevicesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17220,6 +17411,42 @@ export type DevicesModuleOrderBy = | 'USER_DEVICES_TABLE_DESC' | 'DEVICE_SETTINGS_TABLE_ASC' | 'DEVICE_SETTINGS_TABLE_DESC'; +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type NodeTypeRegistryOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17238,6 +17465,18 @@ export type NodeTypeRegistryOrderBy = | 'PARAMETER_SCHEMA_DESC' | 'TAGS_ASC' | 'TAGS_DESC'; +export type AppLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17250,7 +17489,7 @@ export type AppLimitDefaultOrderBy = | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = +export type OrgLimitCapOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17258,11 +17497,11 @@ export type OrgLimitDefaultOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type AppLimitWarningOrderBy = + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17270,12 +17509,10 @@ export type AppLimitWarningOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; export type UserConnectedAccountOrderBy = | 'NATURAL' | 'ID_ASC' @@ -17294,6 +17531,34 @@ export type UserConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17302,8 +17567,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -17376,42 +17641,22 @@ export type UsageSnapshotOrderBy = | 'CAPTURED_AT_DESC' | 'ID_ASC' | 'ID_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type RlsSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17436,46 +17681,6 @@ export type RlsSettingOrderBy = | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17502,6 +17707,34 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type RateLimitMetersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17588,6 +17821,58 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; export type DatabaseSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17620,6 +17905,38 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; +export type OrgMembershipSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17648,38 +17965,50 @@ export type BillingModuleOrderBy = | 'BALANCES_TABLE_ID_DESC' | 'BALANCES_TABLE_NAME_ASC' | 'BALANCES_TABLE_NAME_DESC' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' | 'RECORD_USAGE_FUNCTION_ASC' | 'RECORD_USAGE_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC'; -export type AstMigrationOrderBy = +export type AppMembershipOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17706,38 +18035,34 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -export type OrgMembershipSettingOrderBy = +export type AstMigrationOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type WebauthnSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17778,42 +18103,6 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; export type BillingProviderModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17963,6 +18252,32 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } +export interface CreateObjectInput { + clientMutationId?: string; + object: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; + }; +} +export interface ObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} export interface CreateAppPermissionInput { clientMutationId?: string; appPermission: { @@ -18011,32 +18326,6 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateDatabaseInput { clientMutationId?: string; database: { @@ -18959,6 +19248,30 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + configSecretsOrgModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface ConfigSecretsOrgModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateSchemaGrantInput { clientMutationId?: string; schemaGrant: { @@ -19305,6 +19618,7 @@ export interface CreatePartitionInput { partitionKeyId: string; interval?: string; retention?: string; + retentionKeepTable?: boolean; premake?: number; namingPattern?: string; }; @@ -19316,6 +19630,7 @@ export interface PartitionPatch { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; } @@ -19653,27 +19968,27 @@ export interface DeleteEmailsModuleInput { clientMutationId?: string; id: string; } -export interface CreateEncryptedSecretsModuleInput { +export interface CreateConfigSecretsUserModuleInput { clientMutationId?: string; - encryptedSecretsModule: { + configSecretsUserModule: { databaseId: string; schemaId?: string; tableId?: string; tableName?: string; }; } -export interface EncryptedSecretsModulePatch { +export interface ConfigSecretsUserModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; } -export interface UpdateEncryptedSecretsModuleInput { +export interface UpdateConfigSecretsUserModuleInput { clientMutationId?: string; id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; } -export interface DeleteEncryptedSecretsModuleInput { +export interface DeleteConfigSecretsUserModuleInput { clientMutationId?: string; id: string; } @@ -20406,6 +20721,7 @@ export interface CreateStorageModuleInput { bucketsTableName?: string; filesTableName?: string; membershipType?: number; + storageKey?: string; policies?: Record; skipDefaultPolicyTables?: string[]; entityTableId?: string; @@ -20441,6 +20757,7 @@ export interface StorageModulePatch { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -21612,24 +21929,6 @@ export interface DeleteAgentTaskInput { clientMutationId?: string; id: string; } -export interface CreateRoleTypeInput { - clientMutationId?: string; - roleType: { - name: string; - }; -} -export interface RoleTypePatch { - name?: string | null; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - roleTypePatch: RoleTypePatch; -} -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateIdentityProviderInput { clientMutationId?: string; identityProvider: { @@ -21660,14 +21959,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -21684,13 +21983,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -21720,27 +22019,41 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + roleType: { + name: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface RoleTypePatch { + name?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + migrateFile: { + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface MigrateFilePatch { + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface UpdateMigrateFileInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + migrateFilePatch: MigrateFilePatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteMigrateFileInput { clientMutationId?: string; id: string; } @@ -21784,121 +22097,79 @@ export interface DeleteOrgLimitCapsDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCapInput { - clientMutationId?: string; - appLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface AppLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateAppLimitCapInput { - clientMutationId?: string; - id: string; - appLimitCapPatch: AppLimitCapPatch; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapInput { +export interface CreateDevicesModuleInput { clientMutationId?: string; - orgLimitCap: { - name: string; - entityId: string; - max?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; }; } -export interface OrgLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; } -export interface UpdateOrgLimitCapInput { +export interface UpdateDevicesModuleInput { clientMutationId?: string; id: string; - orgLimitCapPatch: OrgLimitCapPatch; + devicesModulePatch: DevicesModulePatch; } -export interface DeleteOrgLimitCapInput { +export interface DeleteDevicesModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateMigrateFileInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - migrateFile: { - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; }; } -export interface MigrateFilePatch { - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; } -export interface UpdateMigrateFileInput { +export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; id: string; - migrateFilePatch: MigrateFilePatch; + appMembershipDefaultPatch: AppMembershipDefaultPatch; } -export interface DeleteMigrateFileInput { +export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateDevicesModuleInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; }; } -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; } -export interface UpdateDevicesModuleInput { +export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; id: string; - devicesModulePatch: DevicesModulePatch; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; } -export interface DeleteDevicesModuleInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } @@ -21932,6 +22203,28 @@ export interface DeleteNodeTypeRegistryInput { clientMutationId?: string; name: string; } +export interface CreateAppLimitCapInput { + clientMutationId?: string; + appLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface AppLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateAppLimitCapInput { + clientMutationId?: string; + id: string; + appLimitCapPatch: AppLimitCapPatch; +} +export interface DeleteAppLimitCapInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -21954,6 +22247,28 @@ export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } +export interface CreateOrgLimitCapInput { + clientMutationId?: string; + orgLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface OrgLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateOrgLimitCapInput { + clientMutationId?: string; + id: string; + orgLimitCapPatch: OrgLimitCapPatch; +} +export interface DeleteOrgLimitCapInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgLimitDefaultInput { clientMutationId?: string; orgLimitDefault: { @@ -21976,30 +22291,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - appLimitWarningPatch: AppLimitWarningPatch; -} -export interface DeleteAppLimitWarningInput { - clientMutationId?: string; - id: string; -} export interface CreateUserConnectedAccountInput { clientMutationId?: string; userConnectedAccount: { @@ -22026,11 +22317,59 @@ export interface DeleteUserConnectedAccountInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; + }; +} +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitWarningInput { + clientMutationId?: string; + appLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + }; +} +export interface AppLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; +} +export interface UpdateAppLimitWarningInput { + clientMutationId?: string; + id: string; + appLimitWarningPatch: AppLimitWarningPatch; +} +export interface DeleteAppLimitWarningInput { + clientMutationId?: string; + id: string; +} export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -22041,7 +22380,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -22148,53 +22487,31 @@ export interface DeleteUsageSnapshotInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateRlsSettingInput { clientMutationId?: string; @@ -22230,74 +22547,6 @@ export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} export interface CreateRlsModuleInput { clientMutationId?: string; rlsModule: { @@ -22334,6 +22583,44 @@ export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + prefix?: string; + }; +} +export interface InferenceLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + prefix?: string | null; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateRateLimitMetersModuleInput { clientMutationId?: string; rateLimitMetersModule: { @@ -22450,6 +22737,74 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseSettingInput { clientMutationId?: string; databaseSetting: { @@ -22492,6 +22847,44 @@ export interface DeleteDatabaseSettingInput { clientMutationId?: string; id: string; } +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; + }; +} +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateBillingModuleInput { clientMutationId?: string; billingModule: { @@ -22506,6 +22899,8 @@ export interface CreateBillingModuleInput { ledgerTableName?: string; balancesTableId?: string; balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; recordUsageFunction?: string; prefix?: string; }; @@ -22522,6 +22917,8 @@ export interface BillingModulePatch { ledgerTableName?: string | null; balancesTableId?: string | null; balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; recordUsageFunction?: string | null; prefix?: string | null; } @@ -22534,43 +22931,47 @@ export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - astMigration: { - databaseId?: string; - name?: string; - requires?: string[]; - payload?: Record; - deploys?: string; - deploy?: Record; - revert?: Record; - verify?: Record; - action?: string; - actionId?: string; - actorId?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface AstMigrationPatch { - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - action?: string | null; - actionId?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; actorId?: string | null; + profileId?: string | null; } -export interface UpdateAstMigrationInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; - id: number; - astMigrationPatch: AstMigrationPatch; + id: string; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteAstMigrationInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; - id: number; + id: string; } export interface CreateUserInput { clientMutationId?: string; @@ -22597,43 +22998,43 @@ export interface DeleteUserInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateAstMigrationInput { clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; + astMigration: { + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + action?: string; + actionId?: string; + actorId?: string; }; } -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; +export interface AstMigrationPatch { + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateAstMigrationInput { clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + id: number; + astMigrationPatch: AstMigrationPatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteAstMigrationInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateWebauthnSettingInput { clientMutationId?: string; @@ -22685,48 +23086,6 @@ export interface DeleteWebauthnSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; - }; -} -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - appMembershipPatch: AppMembershipPatch; -} -export interface DeleteAppMembershipInput { - clientMutationId?: string; - id: string; -} export interface CreateBillingProviderModuleInput { clientMutationId?: string; billingProviderModule: { @@ -22877,7 +23236,7 @@ export const connectionFieldsMap = { defaultIdsModules: 'DefaultIdsModule', denormalizedTableFields: 'DenormalizedTableField', emailsModules: 'EmailsModule', - encryptedSecretsModules: 'EncryptedSecretsModule', + configSecretsUserModules: 'ConfigSecretsUserModule', invitesModules: 'InvitesModule', eventsModules: 'EventsModule', limitsModules: 'LimitsModule', @@ -22902,6 +23261,7 @@ export const connectionFieldsMap = { identityProvidersModules: 'IdentityProvidersModule', notificationsModules: 'NotificationsModule', realtimeModules: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { @@ -22918,6 +23278,7 @@ export const connectionFieldsMap = { realtimeModulesByPrivateSchemaId: 'RealtimeModule', realtimeModules: 'RealtimeModule', realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Table: { checkConstraints: 'CheckConstraint', @@ -22945,6 +23306,7 @@ export const connectionFieldsMap = { realtimeModulesByChangeLogTableId: 'RealtimeModule', realtimeModulesByListenerNodeTableId: 'RealtimeModule', realtimeModulesBySourceRegistryTableId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Field: { spatialRelations: 'SpatialRelation', @@ -22978,10 +23340,6 @@ export const connectionFieldsMap = { agentMessagesByThreadId: 'AgentMessage', agentTasksByThreadId: 'AgentTask', }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -22989,6 +23347,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, User: { ownedDatabases: 'Database', appAdminGrantsByActorId: 'AppAdminGrant', @@ -23116,12 +23478,12 @@ export interface VerifyEmailInput { } export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface ConstructBlueprintInput { @@ -23142,7 +23504,7 @@ export interface ResetPasswordInput { } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } @@ -23165,6 +23527,11 @@ export interface ProvisionSpatialRelationInput { pOperator?: string; pParamName?: string; } +export interface SignInCrossOriginInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} export interface BootstrapUserInput { clientMutationId?: string; targetDatabaseId?: string; @@ -23175,6 +23542,24 @@ export interface BootstrapUserInput { displayName?: string; returnApiKey?: boolean; } +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -23205,14 +23590,14 @@ export interface ProvisionIndexInput { } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23228,7 +23613,7 @@ export interface ProvisionDatabaseWithUserInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23237,7 +23622,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23246,7 +23631,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23286,11 +23671,6 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} export interface CreateUserDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -23312,23 +23692,6 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -23336,15 +23699,6 @@ export interface RequestCrossOriginTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface ProvisionTableInput { clientMutationId?: string; databaseId?: string; @@ -23361,6 +23715,14 @@ export interface ProvisionTableInput { uniqueConstraints?: Record; description?: string; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -23739,14 +24101,14 @@ export interface DatabaseToManyEmailsModuleFilter { /** Filters to entities where no related entity matches. */ none?: EmailsModuleFilter; } -/** A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEncryptedSecretsModuleFilter { +/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsUserModuleFilter { /** Filters to entities where at least one related entity matches. */ - some?: EncryptedSecretsModuleFilter; + some?: ConfigSecretsUserModuleFilter; /** Filters to entities where every related entity matches. */ - every?: EncryptedSecretsModuleFilter; + every?: ConfigSecretsUserModuleFilter; /** Filters to entities where no related entity matches. */ - none?: EncryptedSecretsModuleFilter; + none?: ConfigSecretsUserModuleFilter; } /** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyInvitesModuleFilter { @@ -23964,6 +24326,15 @@ export interface DatabaseToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseProvisionModuleFilter { /** Filters to entities where at least one related entity matches. */ @@ -24088,6 +24459,15 @@ export interface SchemaToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyCheckConstraintFilter { /** Filters to entities where at least one related entity matches. */ @@ -24259,6 +24639,15 @@ export interface TableToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ export interface FieldToManySpatialRelationFilter { /** Filters to entities where at least one related entity matches. */ @@ -24913,24 +25302,6 @@ export interface AgentThreadToManyAgentTaskFilter { /** Filters to entities where no related entity matches. */ none?: AgentTaskFilter; } -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeUploadFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -24993,6 +25364,24 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} /** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ export interface StringTrgmFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -25469,6 +25858,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ */ export interface TableFilter { @@ -25636,6 +26029,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { @@ -26494,6 +26891,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -27056,8 +27455,8 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -/** A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EncryptedSecretsModuleFilter { +/** A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -27069,11 +27468,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -28059,6 +28458,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -28469,6 +28870,31 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsOrgModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} /** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ @@ -28654,70 +29080,53 @@ export interface AgentTaskFilter { /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; } -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; + and?: AppLimitCreditFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; + or?: AppLimitCreditFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; + not?: AppLimitCreditFilter; + /** Filter by the object’s `actor` relation. */ + actor?: UserFilter; + /** A related `actor` exists. */ + actorExists?: boolean; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `creditCodeId` field. */ creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; + and?: AppLimitCreditCodeItemFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; + or?: AppLimitCreditCodeItemFilter[]; /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } @@ -28754,6 +29163,23 @@ export interface OrgLimitCreditFilter { /** A related `entity` exists. */ entityExists?: boolean; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Filter by the object’s `id` field. */ @@ -28962,10 +29388,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -29094,6 +29520,14 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModule` relation. */ + inferenceLogModule?: InferenceLogModuleFilter; + /** A related `inferenceLogModule` exists. */ + inferenceLogModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -30553,6 +30987,31 @@ export interface UserFilter { */ unifiedSearch?: string; } +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -30580,31 +31039,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ @@ -31115,6 +31549,10 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -31131,6 +31569,8 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -31266,6 +31706,49 @@ export interface RateLimitMetersModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} /** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ export interface BitStringFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -31465,8 +31948,27 @@ export interface OrgMembershipSettingFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } -/** A connection to a list of `AppPermission` values. */ +/** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; edges: AppPermissionEdge[]; @@ -31504,25 +32006,6 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; -/** A connection to a list of `Object` values. */ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; export interface SendAccountDeletionEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -31707,6 +32190,16 @@ export type ProvisionSpatialRelationPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SignInCrossOriginPayload { + clientMutationId?: string | null; + result?: SignInCrossOriginRecord | null; +} +export type SignInCrossOriginPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInCrossOriginRecordSelect; + }; +}; export interface BootstrapUserPayload { clientMutationId?: string | null; result?: BootstrapUserRecord[] | null; @@ -31717,6 +32210,26 @@ export type BootstrapUserPayloadSelect = { select: BootstrapUserRecordSelect; }; }; +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export type SignUpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpRecordSelect; + }; +}; +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} +export type SignInPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInRecordSelect; + }; +}; export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -31817,16 +32330,6 @@ export interface ApplyRlsPayload { export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} -export type SignInCrossOriginPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInCrossOriginRecordSelect; - }; -}; export interface CreateUserDatabasePayload { clientMutationId?: string | null; result?: string | null; @@ -31855,57 +32358,37 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; -export interface SendVerificationEmailPayload { +export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; - result?: boolean | null; + result?: string | null; } -export type SendVerificationEmailPayloadSelect = { +export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; -export interface SignUpPayload { +export interface ProvisionTablePayload { clientMutationId?: string | null; - result?: SignUpRecord | null; + result?: ProvisionTableRecord[] | null; } -export type SignUpPayloadSelect = { +export type ProvisionTablePayloadSelect = { clientMutationId?: boolean; result?: { - select: SignUpRecordSelect; + select: ProvisionTableRecordSelect; }; }; -export interface RequestCrossOriginTokenPayload { +export interface SendVerificationEmailPayload { clientMutationId?: string | null; - result?: string | null; + result?: boolean | null; } -export type RequestCrossOriginTokenPayloadSelect = { +export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} -export type SignInPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInRecordSelect; - }; -}; -export interface ProvisionTablePayload { +export interface ForgotPasswordPayload { clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; } -export type ProvisionTablePayloadSelect = { +export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -31929,6 +32412,51 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -32019,51 +32547,6 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateDatabasePayload { clientMutationId?: string | null; /** The `Database` that was created by this mutation. */ @@ -33144,6 +33627,51 @@ export type DeleteRealtimeModulePayloadSelect = { select: RealtimeModuleEdgeSelect; }; }; +export interface CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type CreateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type UpdateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type DeleteConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; export interface CreateSchemaGrantPayload { clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ @@ -34224,49 +34752,49 @@ export type DeleteEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; -export interface CreateEncryptedSecretsModulePayload { +export interface CreateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was created by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type CreateEncryptedSecretsModulePayloadSelect = { +export type CreateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface UpdateEncryptedSecretsModulePayload { +export interface UpdateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was updated by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type UpdateEncryptedSecretsModulePayloadSelect = { +export type UpdateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface DeleteEncryptedSecretsModulePayload { +export interface DeleteConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was deleted by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type DeleteEncryptedSecretsModulePayloadSelect = { +export type DeleteConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; export interface CreateInvitesModulePayload { @@ -36654,51 +37182,6 @@ export type DeleteAgentTaskPayloadSelect = { select: AgentTaskEdgeSelect; }; }; -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type CreateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type UpdateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type DeleteRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; export interface CreateIdentityProviderPayload { clientMutationId?: string | null; /** The `IdentityProvider` that was created by this mutation. */ @@ -36845,49 +37328,60 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -36980,195 +37474,139 @@ export type DeleteOrgLimitCapsDefaultPayloadSelect = { select: OrgLimitCapsDefaultEdgeSelect; }; }; -export interface CreateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type CreateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface UpdateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type UpdateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface DeleteAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type DeleteAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface CreateOrgLimitCapPayload { +export interface CreateDevicesModulePayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; } -export type CreateOrgLimitCapPayloadSelect = { +export type CreateDevicesModulePayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + devicesModule?: { + select: DevicesModuleSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; }; }; -export interface UpdateOrgLimitCapPayload { +export interface UpdateDevicesModulePayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; } -export type UpdateOrgLimitCapPayloadSelect = { +export type UpdateDevicesModulePayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + devicesModule?: { + select: DevicesModuleSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; }; }; -export interface DeleteOrgLimitCapPayload { +export interface DeleteDevicesModulePayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; } -export type DeleteOrgLimitCapPayloadSelect = { +export type DeleteDevicesModulePayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + devicesModule?: { + select: DevicesModuleSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; }; }; -export interface CreateMembershipTypePayload { +export interface CreateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type CreateMembershipTypePayloadSelect = { +export type CreateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; -}; -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} -export type CreateMigrateFilePayloadSelect = { - clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface CreateDevicesModulePayload { +export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type CreateDevicesModulePayloadSelect = { +export type CreateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateDevicesModulePayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateDevicesModulePayloadSelect = { +export type UpdateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteDevicesModulePayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type DeleteDevicesModulePayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; export interface CreateNodeTypeRegistryPayload { @@ -37216,6 +37654,51 @@ export type DeleteNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; +export interface CreateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was created by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type CreateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface UpdateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was updated by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type UpdateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface DeleteAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was deleted by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type DeleteAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; /** The `AppLimitDefault` that was created by this mutation. */ @@ -37261,6 +37744,51 @@ export type DeleteAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; +export interface CreateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was created by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type CreateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface UpdateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type UpdateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface DeleteOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type DeleteOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; /** The `OrgLimitDefault` that was created by this mutation. */ @@ -37306,6 +37834,62 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +export interface CreateUserConnectedAccountPayload { + clientMutationId?: string | null; + /** The `UserConnectedAccount` that was created by this mutation. */ + userConnectedAccount?: UserConnectedAccount | null; +} +export type CreateUserConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + userConnectedAccount?: { + select: UserConnectedAccountSelect; + }; +}; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -37351,17 +37935,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} -export type CreateUserConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; - }; -}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -37542,94 +38115,49 @@ export type DeleteUsageSnapshotPayloadSelect = { select: UsageSnapshotEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type CreateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type UpdateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type DeleteAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; export interface CreateRlsSettingPayload { @@ -37677,28 +38205,6 @@ export type DeleteRlsSettingPayloadSelect = { select: RlsSettingEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -37744,6 +38250,51 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type CreateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type UpdateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type DeleteInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; /** The `RateLimitMetersModule` that was created by this mutation. */ @@ -37845,6 +38396,96 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface UpdateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type UpdateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface DeleteAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type DeleteAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; export interface CreateDatabaseSettingPayload { clientMutationId?: string | null; /** The `DatabaseSetting` that was created by this mutation. */ @@ -37890,6 +38531,51 @@ export type DeleteDatabaseSettingPayloadSelect = { select: DatabaseSettingEdgeSelect; }; }; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; export interface CreateBillingModulePayload { clientMutationId?: string | null; /** The `BillingModule` that was created by this mutation. */ @@ -37935,15 +38621,49 @@ export type DeleteBillingModulePayloadSelect = { select: BillingModuleEdgeSelect; }; }; -export interface CreateAstMigrationPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type CreateAstMigrationPayloadSelect = { +export type CreateAppMembershipPayloadSelect = { clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; export interface CreateUserPayload { @@ -37991,49 +38711,15 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type CreateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type UpdateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface DeleteOrgMembershipSettingPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type CreateAstMigrationPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + astMigration?: { + select: AstMigrationSelect; }; }; export interface CreateWebauthnSettingPayload { @@ -38081,51 +38767,6 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type CreateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type UpdateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type DeleteAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; /** The `BillingProviderModule` that was created by this mutation. */ @@ -38216,16 +38857,16 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `Object` edge in the connection. */ +export interface ObjectEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; } -export type AppPermissionEdgeSelect = { +export type ObjectEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionSelect; + select: ObjectSelect; }; }; /** Information about pagination in a connection. */ @@ -38245,6 +38886,18 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} +export type AppPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionSelect; + }; +}; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -38257,17 +38910,21 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; +export interface SignInCrossOriginRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; } -export type ObjectEdgeSelect = { - cursor?: boolean; - node?: { - select: ObjectSelect; - }; +export type SignInCrossOriginRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; }; export interface BootstrapUserRecord { outUserId?: string | null; @@ -38289,6 +38946,42 @@ export type BootstrapUserRecordSelect = { outIsSudo?: boolean; outApiKey?: boolean; }; +export interface SignUpRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export type SignUpRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; +}; +export interface SignInRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + mfaRequired?: boolean | null; + mfaChallengeToken?: string | null; +} +export type SignInRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; + mfaRequired?: boolean; + mfaChallengeToken?: boolean; +}; export interface ProvisionDatabaseWithUserRecord { outDatabaseId?: string | null; outApiKey?: string | null; @@ -38309,22 +39002,6 @@ export type ProvisionRelationRecordSelect = { outSourceFieldId?: boolean; outTargetFieldId?: boolean; }; -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignInCrossOriginRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; export interface ExtendTokenExpiresRecord { id?: string | null; sessionId?: string | null; @@ -38345,42 +39022,6 @@ export type CreateApiKeyRecordSelect = { keyId?: boolean; expiresAt?: boolean; }; -export interface SignUpRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignUpRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface SignInRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; - mfaRequired?: boolean | null; - mfaChallengeToken?: string | null; -} -export type SignInRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; - mfaRequired?: boolean; - mfaChallengeToken?: boolean; -}; export interface ProvisionTableRecord { outTableId?: string | null; outFields?: string[] | null; @@ -38677,6 +39318,18 @@ export type RealtimeModuleEdgeSelect = { select: RealtimeModuleSelect; }; }; +/** A `ConfigSecretsOrgModule` edge in the connection. */ +export interface ConfigSecretsOrgModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsOrgModule` at the end of the edge. */ + node?: ConfigSecretsOrgModule | null; +} +export type ConfigSecretsOrgModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsOrgModuleSelect; + }; +}; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { cursor?: string | null; @@ -38965,16 +39618,16 @@ export type EmailsModuleEdgeSelect = { select: EmailsModuleSelect; }; }; -/** A `EncryptedSecretsModule` edge in the connection. */ -export interface EncryptedSecretsModuleEdge { +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { cursor?: string | null; - /** The `EncryptedSecretsModule` at the end of the edge. */ - node?: EncryptedSecretsModule | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; } -export type EncryptedSecretsModuleEdgeSelect = { +export type ConfigSecretsUserModuleEdgeSelect = { cursor?: boolean; node?: { - select: EncryptedSecretsModuleSelect; + select: ConfigSecretsUserModuleSelect; }; }; /** A `InvitesModule` edge in the connection. */ @@ -39613,18 +40266,6 @@ export type AgentTaskEdgeSelect = { select: AgentTaskSelect; }; }; -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { - cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; -} -export type RoleTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: RoleTypeSelect; - }; -}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -39661,16 +40302,16 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type RoleTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: RoleTypeSelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -39697,52 +40338,40 @@ export type OrgLimitCapsDefaultEdgeSelect = { select: OrgLimitCapsDefaultSelect; }; }; -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -export type AppLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapSelect; - }; -}; -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { +/** A `DevicesModule` edge in the connection. */ +export interface DevicesModuleEdge { cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; + /** The `DevicesModule` at the end of the edge. */ + node?: DevicesModule | null; } -export type OrgLimitCapEdgeSelect = { +export type DevicesModuleEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitCapSelect; + select: DevicesModuleSelect; }; }; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type MembershipTypeEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `DevicesModule` edge in the connection. */ -export interface DevicesModuleEdge { +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { cursor?: string | null; - /** The `DevicesModule` at the end of the edge. */ - node?: DevicesModule | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; } -export type DevicesModuleEdgeSelect = { +export type OrgMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: DevicesModuleSelect; + select: OrgMembershipDefaultSelect; }; }; /** A `NodeTypeRegistry` edge in the connection. */ @@ -39757,6 +40386,18 @@ export type NodeTypeRegistryEdgeSelect = { select: NodeTypeRegistrySelect; }; }; +/** A `AppLimitCap` edge in the connection. */ +export interface AppLimitCapEdge { + cursor?: string | null; + /** The `AppLimitCap` at the end of the edge. */ + node?: AppLimitCap | null; +} +export type AppLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCapSelect; + }; +}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -39769,6 +40410,18 @@ export type AppLimitDefaultEdgeSelect = { select: AppLimitDefaultSelect; }; }; +/** A `OrgLimitCap` edge in the connection. */ +export interface OrgLimitCapEdge { + cursor?: string | null; + /** The `OrgLimitCap` at the end of the edge. */ + node?: OrgLimitCap | null; +} +export type OrgLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCapSelect; + }; +}; /** A `OrgLimitDefault` edge in the connection. */ export interface OrgLimitDefaultEdge { cursor?: string | null; @@ -39781,6 +40434,18 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { + cursor?: string | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +export type AppLimitCreditCodeEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeSelect; + }; +}; /** A `AppLimitWarning` edge in the connection. */ export interface AppLimitWarningEdge { cursor?: string | null; @@ -39841,28 +40506,16 @@ export type UsageSnapshotEdgeSelect = { select: UsageSnapshotSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; /** A `RlsSetting` edge in the connection. */ @@ -39889,6 +40542,18 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +export type InferenceLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InferenceLogModuleSelect; + }; +}; /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { cursor?: string | null; @@ -39913,40 +40578,40 @@ export type PlansModuleEdgeSelect = { select: PlansModuleSelect; }; }; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type DatabaseSettingEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: DatabaseSettingSelect; + select: AppLimitEventSelect; }; }; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; } -export type BillingModuleEdgeSelect = { +export type OrgLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: BillingModuleSelect; + select: OrgLimitEventSelect; }; }; -/** A `User` edge in the connection. */ -export interface UserEdge { +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; } -export type UserEdgeSelect = { +export type DatabaseSettingEdgeSelect = { cursor?: boolean; node?: { - select: UserSelect; + select: DatabaseSettingSelect; }; }; /** A `OrgMembershipSetting` edge in the connection. */ @@ -39961,16 +40626,16 @@ export type OrgMembershipSettingEdgeSelect = { select: OrgMembershipSettingSelect; }; }; -/** A `WebauthnSetting` edge in the connection. */ -export interface WebauthnSettingEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `WebauthnSetting` at the end of the edge. */ - node?: WebauthnSetting | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type WebauthnSettingEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: WebauthnSettingSelect; + select: BillingModuleSelect; }; }; /** A `AppMembership` edge in the connection. */ @@ -39985,6 +40650,30 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; +/** A `User` edge in the connection. */ +export interface UserEdge { + cursor?: string | null; + /** The `User` at the end of the edge. */ + node?: User | null; +} +export type UserEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSelect; + }; +}; +/** A `WebauthnSetting` edge in the connection. */ +export interface WebauthnSettingEdge { + cursor?: string | null; + /** The `WebauthnSetting` at the end of the edge. */ + node?: WebauthnSetting | null; +} +export type WebauthnSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnSettingSelect; + }; +}; /** A `BillingProviderModule` edge in the connection. */ export interface BillingProviderModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts +++ b/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-cli/src/public/orm/models/configSecretsOrgModule.ts b/sdk/constructive-cli/src/public/orm/models/configSecretsOrgModule.ts new file mode 100644 index 0000000000..ef53f2d5cd --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/configSecretsOrgModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsOrgModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ConfigSecretsOrgModule, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, + CreateConfigSecretsOrgModuleInput, + UpdateConfigSecretsOrgModuleInput, + ConfigSecretsOrgModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsOrgModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsOrgModule', + 'createConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.data, + 'CreateConfigSecretsOrgModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'createConfigSecretsOrgModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsOrgModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsOrgModule', + 'updateConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsOrgModuleInput', + 'id', + 'configSecretsOrgModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'updateConfigSecretsOrgModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsOrgModule', + 'deleteConfigSecretsOrgModule', + 'configSecretsOrgModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsOrgModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'deleteConfigSecretsOrgModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/configSecretsUserModule.ts b/sdk/constructive-cli/src/public/orm/models/configSecretsUserModule.ts new file mode 100644 index 0000000000..b1b8f0cacb --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/configSecretsUserModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsUserModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ConfigSecretsUserModule, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, + CreateConfigSecretsUserModuleInput, + UpdateConfigSecretsUserModuleInput, + ConfigSecretsUserModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsUserModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsUserModule', + 'createConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.data, + 'CreateConfigSecretsUserModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'createConfigSecretsUserModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsUserModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsUserModule', + 'updateConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsUserModuleInput', + 'id', + 'configSecretsUserModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'updateConfigSecretsUserModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsUserModule', + 'deleteConfigSecretsUserModule', + 'configSecretsUserModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsUserModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'deleteConfigSecretsUserModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/encryptedSecretsModule.ts b/sdk/constructive-cli/src/public/orm/models/encryptedSecretsModule.ts deleted file mode 100644 index 754ec7e785..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/encryptedSecretsModule.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * EncryptedSecretsModule model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - EncryptedSecretsModule, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, - CreateEncryptedSecretsModuleInput, - UpdateEncryptedSecretsModuleInput, - EncryptedSecretsModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class EncryptedSecretsModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'EncryptedSecretsModule', - 'createEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.data, - 'CreateEncryptedSecretsModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'createEncryptedSecretsModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - EncryptedSecretsModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'EncryptedSecretsModule', - 'updateEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.where.id, - args.data, - 'UpdateEncryptedSecretsModuleInput', - 'id', - 'encryptedSecretsModulePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'updateEncryptedSecretsModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'EncryptedSecretsModule', - 'deleteEncryptedSecretsModule', - 'encryptedSecretsModule', - { - id: args.where.id, - }, - 'DeleteEncryptedSecretsModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'deleteEncryptedSecretsModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/index.ts b/sdk/constructive-cli/src/public/orm/models/index.ts index f32f15f0cb..e9c4a73ea2 100644 --- a/sdk/constructive-cli/src/public/orm/models/index.ts +++ b/sdk/constructive-cli/src/public/orm/models/index.ts @@ -6,9 +6,9 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; +export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; -export { ObjectModel } from './object'; export { DatabaseModel } from './database'; export { SchemaModel } from './schema'; export { TableModel } from './table'; @@ -33,6 +33,7 @@ export { RelationProvisionModel } from './relationProvision'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RealtimeModuleModel } from './realtimeModule'; +export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; export { EnumModel } from './enum'; @@ -57,7 +58,7 @@ export { CryptoAuthModuleModel } from './cryptoAuthModule'; export { DefaultIdsModuleModel } from './defaultIdsModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; export { EmailsModuleModel } from './emailsModule'; -export { EncryptedSecretsModuleModel } from './encryptedSecretsModule'; +export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { InvitesModuleModel } from './invitesModule'; export { EventsModuleModel } from './eventsModule'; export { LimitsModuleModel } from './limitsModule'; @@ -111,43 +112,44 @@ export { AuditLogModel } from './auditLog'; export { AgentThreadModel } from './agentThread'; export { AgentMessageModel } from './agentMessage'; export { AgentTaskModel } from './agentTask'; -export { RoleTypeModel } from './roleType'; export { IdentityProviderModel } from './identityProvider'; export { RefModel } from './ref'; export { StoreModel } from './store'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { RoleTypeModel } from './roleType'; +export { MigrateFileModel } from './migrateFile'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; -export { AppLimitCapModel } from './appLimitCap'; -export { OrgLimitCapModel } from './orgLimitCap'; -export { MembershipTypeModel } from './membershipType'; -export { MigrateFileModel } from './migrateFile'; export { DevicesModuleModel } from './devicesModule'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { AppLimitCapModel } from './appLimitCap'; export { AppLimitDefaultModel } from './appLimitDefault'; +export { OrgLimitCapModel } from './orgLimitCap'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { AppLimitWarningModel } from './appLimitWarning'; export { UserConnectedAccountModel } from './userConnectedAccount'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { AppLimitWarningModel } from './appLimitWarning'; export { CommitModel } from './commit'; export { PubkeySettingModel } from './pubkeySetting'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { UsageSnapshotModel } from './usageSnapshot'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { MembershipTypeModel } from './membershipType'; export { RlsSettingModel } from './rlsSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { RlsModuleModel } from './rlsModule'; +export { InferenceLogModuleModel } from './inferenceLogModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { PlansModuleModel } from './plansModule'; export { SqlActionModel } from './sqlAction'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { DatabaseSettingModel } from './databaseSetting'; +export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { BillingModuleModel } from './billingModule'; -export { AstMigrationModel } from './astMigration'; +export { AppMembershipModel } from './appMembership'; export { UserModel } from './user'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; +export { AstMigrationModel } from './astMigration'; export { WebauthnSettingModel } from './webauthnSetting'; -export { AppMembershipModel } from './appMembership'; export { BillingProviderModuleModel } from './billingProviderModule'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-cli/src/public/orm/models/inferenceLogModule.ts b/sdk/constructive-cli/src/public/orm/models/inferenceLogModule.ts new file mode 100644 index 0000000000..f6f4ab2452 --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/inferenceLogModule.ts @@ -0,0 +1,244 @@ +/** + * InferenceLogModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InferenceLogModule, + InferenceLogModuleWithRelations, + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, + CreateInferenceLogModuleInput, + UpdateInferenceLogModuleInput, + InferenceLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InferenceLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InferenceLogModule', + 'createInferenceLogModule', + 'inferenceLogModule', + args.select, + args.data, + 'CreateInferenceLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'createInferenceLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InferenceLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InferenceLogModule', + 'updateInferenceLogModule', + 'inferenceLogModule', + args.select, + args.where.id, + args.data, + 'UpdateInferenceLogModuleInput', + 'id', + 'inferenceLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'updateInferenceLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InferenceLogModule', + 'deleteInferenceLogModule', + 'inferenceLogModule', + { + id: args.where.id, + }, + 'DeleteInferenceLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'deleteInferenceLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-cli/src/public/orm/mutation/index.ts b/sdk/constructive-cli/src/public/orm/mutation/index.ts index 8d1e1cbef2..fa569f97e8 100644 --- a/sdk/constructive-cli/src/public/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/public/orm/mutation/index.ts @@ -31,7 +31,10 @@ import type { RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, + SignInCrossOriginInput, BootstrapUserInput, + SignUpInput, + SignInInput, SetFieldOrderInput, ProvisionCheckConstraintInput, ProvisionUniqueConstraintInput, @@ -45,16 +48,13 @@ import type { SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, - SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, - SendVerificationEmailInput, - ForgotPasswordInput, - SignUpInput, RequestCrossOriginTokenInput, - SignInInput, ProvisionTableInput, + SendVerificationEmailInput, + ForgotPasswordInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, @@ -80,7 +80,10 @@ import type { RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, + SignInCrossOriginPayload, BootstrapUserPayload, + SignUpPayload, + SignInPayload, SetFieldOrderPayload, ProvisionCheckConstraintPayload, ProvisionUniqueConstraintPayload, @@ -94,16 +97,13 @@ import type { SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, - SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, - SignUpPayload, RequestCrossOriginTokenPayload, - SignInPayload, ProvisionTablePayload, + SendVerificationEmailPayload, + ForgotPasswordPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, @@ -129,7 +129,10 @@ import type { RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, + SignInCrossOriginPayloadSelect, BootstrapUserPayloadSelect, + SignUpPayloadSelect, + SignInPayloadSelect, SetFieldOrderPayloadSelect, ProvisionCheckConstraintPayloadSelect, ProvisionUniqueConstraintPayloadSelect, @@ -143,16 +146,13 @@ import type { SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, - SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, - SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, - SignInPayloadSelect, ProvisionTablePayloadSelect, + SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -240,9 +240,18 @@ export interface CopyTemplateToBlueprintVariables { export interface ProvisionSpatialRelationVariables { input: ProvisionSpatialRelationInput; } +export interface SignInCrossOriginVariables { + input: SignInCrossOriginInput; +} export interface BootstrapUserVariables { input: BootstrapUserInput; } +export interface SignUpVariables { + input: SignUpInput; +} +export interface SignInVariables { + input: SignInInput; +} export interface SetFieldOrderVariables { input: SetFieldOrderInput; } @@ -302,9 +311,6 @@ export interface ProvisionRelationVariables { export interface ApplyRlsVariables { input: ApplyRlsInput; } -export interface SignInCrossOriginVariables { - input: SignInCrossOriginInput; -} /** * Variables for createUserDatabase * Creates a new user database with all required modules, permissions, and RLS policies. @@ -333,21 +339,9 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} -export interface SignUpVariables { - input: SignUpInput; -} export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } -export interface SignInVariables { - input: SignInInput; -} /** * Variables for provisionTable * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). @@ -355,6 +349,12 @@ export interface SignInVariables { export interface ProvisionTableVariables { input: ProvisionTableInput; } +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -1063,6 +1063,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionSpatialRelationPayload' ), }), + signInCrossOrigin: ( + args: SignInCrossOriginVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInCrossOrigin: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInCrossOrigin', + fieldName: 'signInCrossOrigin', + ...buildCustomDocument( + 'mutation', + 'SignInCrossOrigin', + 'signInCrossOrigin', + options.select, + args, + [ + { + name: 'input', + type: 'SignInCrossOriginInput!', + }, + ], + connectionFieldsMap, + 'SignInCrossOriginPayload' + ), + }), bootstrapUser: ( args: BootstrapUserVariables, options: { @@ -1092,6 +1121,64 @@ export function createMutationOperations(client: OrmClient) { 'BootstrapUserPayload' ), }), + signUp: ( + args: SignUpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUp', + fieldName: 'signUp', + ...buildCustomDocument( + 'mutation', + 'SignUp', + 'signUp', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpInput!', + }, + ], + connectionFieldsMap, + 'SignUpPayload' + ), + }), + signIn: ( + args: SignInVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signIn: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignIn', + fieldName: 'signIn', + ...buildCustomDocument( + 'mutation', + 'SignIn', + 'signIn', + options.select, + args, + [ + { + name: 'input', + type: 'SignInInput!', + }, + ], + connectionFieldsMap, + 'SignInPayload' + ), + }), setFieldOrder: ( args: SetFieldOrderVariables, options: { @@ -1469,35 +1556,6 @@ export function createMutationOperations(client: OrmClient) { 'ApplyRlsPayload' ), }), - signInCrossOrigin: ( - args: SignInCrossOriginVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signInCrossOrigin: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignInCrossOrigin', - fieldName: 'signInCrossOrigin', - ...buildCustomDocument( - 'mutation', - 'SignInCrossOrigin', - 'signInCrossOrigin', - options.select, - args, - [ - { - name: 'input', - type: 'SignInCrossOriginInput!', - }, - ], - connectionFieldsMap, - 'SignInCrossOriginPayload' - ), - }), createUserDatabase: ( args: CreateUserDatabaseVariables, options: { @@ -1585,178 +1643,120 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), - signUp: ( - args: SignUpVariables, + requestCrossOriginToken: ( + args: RequestCrossOriginTokenVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signUp: InferSelectResult | null; + requestCrossOriginToken: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignUp', - fieldName: 'signUp', + operationName: 'RequestCrossOriginToken', + fieldName: 'requestCrossOriginToken', ...buildCustomDocument( 'mutation', - 'SignUp', - 'signUp', + 'RequestCrossOriginToken', + 'requestCrossOriginToken', options.select, args, [ { name: 'input', - type: 'SignUpInput!', + type: 'RequestCrossOriginTokenInput!', }, ], connectionFieldsMap, - 'SignUpPayload' + 'RequestCrossOriginTokenPayload' ), }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, + provisionTable: ( + args: ProvisionTableVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; + provisionTable: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', + operationName: 'ProvisionTable', + fieldName: 'provisionTable', ...buildCustomDocument( 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', + 'ProvisionTable', + 'provisionTable', options.select, args, [ { name: 'input', - type: 'RequestCrossOriginTokenInput!', + type: 'ProvisionTableInput!', }, ], connectionFieldsMap, - 'RequestCrossOriginTokenPayload' + 'ProvisionTablePayload' ), }), - signIn: ( - args: SignInVariables, + sendVerificationEmail: ( + args: SendVerificationEmailVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signIn: InferSelectResult | null; + sendVerificationEmail: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignIn', - fieldName: 'signIn', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', ...buildCustomDocument( 'mutation', - 'SignIn', - 'signIn', + 'SendVerificationEmail', + 'sendVerificationEmail', options.select, args, [ { name: 'input', - type: 'SignInInput!', + type: 'SendVerificationEmailInput!', }, ], connectionFieldsMap, - 'SignInPayload' + 'SendVerificationEmailPayload' ), }), - provisionTable: ( - args: ProvisionTableVariables, + forgotPassword: ( + args: ForgotPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - provisionTable: InferSelectResult | null; + forgotPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', ...buildCustomDocument( 'mutation', - 'ProvisionTable', - 'provisionTable', + 'ForgotPassword', + 'forgotPassword', options.select, args, [ { name: 'input', - type: 'ProvisionTableInput!', + type: 'ForgotPasswordInput!', }, ], connectionFieldsMap, - 'ProvisionTablePayload' + 'ForgotPasswordPayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-cli/src/public/orm/query/index.ts b/sdk/constructive-cli/src/public/orm/query/index.ts index 7fc254ab13..b014f09988 100644 --- a/sdk/constructive-cli/src/public/orm/query/index.ts +++ b/sdk/constructive-cli/src/public/orm/query/index.ts @@ -11,9 +11,9 @@ import type { User, ObjectSelect, UserSelect, + ObjectConnection, AppPermissionConnection, OrgPermissionConnection, - ObjectConnection, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -26,7 +26,7 @@ export interface OrgPermissionsGetPaddedMaskVariables { mask?: string; } export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } @@ -68,8 +68,9 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -export interface AppPermissionsGetByMaskVariables { - mask?: string; +export interface GetAllObjectsFromRootVariables { + sId?: string; + id?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -80,8 +81,10 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface OrgPermissionsGetByMaskVariables { - mask?: string; +export interface GetPathObjectsFromRootVariables { + sId?: string; + id?: string; + path?: string[]; /** Only read the first `n` values of the set. */ first?: number; /** @@ -92,9 +95,14 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; +export interface GetObjectAtPathVariables { + sId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} +export interface AppPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -105,10 +113,8 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; +export interface OrgPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -119,12 +125,6 @@ export interface GetPathObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} export function createQueryOperations(client: OrmClient) { return { currentUserId: (options?: { select?: Record }) => @@ -292,7 +292,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -547,29 +547,33 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; + getAllObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', ...buildCustomDocument( 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', }, { name: 'first', @@ -588,29 +592,37 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; + getPathObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', ...buildCustomDocument( 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', }, { name: 'first', @@ -629,82 +641,70 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, - options?: { - select?: Record; - } + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect ) => new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; + getObjectAtPath: InferSelectResult | null; }>({ client, operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', ...buildCustomDocument( 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', - options?.select, + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { - name: 'id', + name: 'storeId', type: 'UUID', }, { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', + name: 'path', + type: '[String]', }, { - name: 'after', - type: 'Cursor', + name: 'refname', + type: 'String', }, ], connectionFieldsMap, - undefined + 'Object' ), }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; + appPermissionsGetByMask: AppPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -723,45 +723,45 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; + orgPermissionsGetByMask: OrgPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', + options?.select, args, [ { - name: 'dbId', - type: 'UUID', + name: 'mask', + type: 'BitString', }, { - name: 'storeId', - type: 'UUID', + name: 'first', + type: 'Int', }, { - name: 'path', - type: '[String]', + name: 'offset', + type: 'Int', }, { - name: 'refname', - type: 'String', + name: 'after', + type: 'Cursor', }, ], connectionFieldsMap, - 'Object' + undefined ), }), currentUser: ( diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index ddaf5a89f7..3abd67bd26 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -71,16 +71,6 @@ function App() { | `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useCreateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useUpdateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useDeleteOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useAppAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | | `useAppAdminGrantQuery` | Query | Records of admin role grants and revocations between members | | `useCreateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | @@ -91,6 +81,31 @@ function App() { | `useCreateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useUpdateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useDeleteAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useCreateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useUpdateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useDeleteOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | +| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | +| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useAppLimitCapsDefaultsQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | | `useAppLimitCapsDefaultQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | | `useCreateAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | @@ -111,21 +126,11 @@ function App() { | `useCreateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | | `useUpdateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | | `useDeleteOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | -| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | -| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | -| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | -| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | | `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | | `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | | `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | @@ -141,16 +146,16 @@ function App() { | `useCreateOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | | `useUpdateOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | | `useDeleteOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | +| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | +| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | +| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | | `useAppLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useAppLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useCreateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useUpdateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useDeleteAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useOrgLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useOrgLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useCreateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useUpdateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useDeleteOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useOrgChartEdgeGrantsQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | | `useOrgChartEdgeGrantQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | | `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | @@ -161,70 +166,51 @@ function App() { | `useCreateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useUpdateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useDeleteAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useOrgLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useOrgLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useCreateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useUpdateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useDeleteOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useAppGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useAppGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useCreateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useUpdateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useDeleteAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | -| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useOrgClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | | `useOrgClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | | `useCreateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useUpdateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useDeleteOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | | `useOrgGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useOrgGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useCreateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useUpdateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useDeleteOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | -| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | | `useUsageSnapshotsQuery` | Query | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | | `useUsageSnapshotQuery` | Query | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | | `useCreateUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | | `useUpdateUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | | `useDeleteUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useAppInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useAppInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useCreateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useUpdateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useDeleteAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useAppLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useUpdateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useDeleteAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useUpdateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useDeleteOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | | `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | | `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | | `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useOrgLimitAggregatesQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useOrgLimitAggregateQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useCreateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useUpdateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useDeleteOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | | `useOrgMemberProfilesQuery` | Query | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | | `useOrgMemberProfileQuery` | Query | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | | `useCreateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | @@ -235,16 +221,36 @@ function App() { | `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useOrgInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useOrgInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useCreateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useUpdateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useDeleteOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | | `useOrgMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useOrgMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useCreateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useUpdateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useDeleteOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useOrgLimitAggregatesQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useOrgLimitAggregateQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useCreateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useUpdateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useDeleteOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useAppInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useAppInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useCreateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useUpdateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useOrgInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useOrgInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useCreateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useUpdateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useAppPermissionsGetPaddedMaskQuery` | Query | appPermissionsGetPaddedMask | | `useOrgPermissionsGetPaddedMaskQuery` | Query | orgPermissionsGetPaddedMask | | `useOrgIsManagerOfQuery` | Query | orgIsManagerOf | @@ -440,48 +446,6 @@ const { mutate: create } = useCreateAppPermissionDefaultMutation({ create({ permissions: '' }); ``` -### AppLimitCreditCode - -```typescript -// List all appLimitCreditCodes -const { data, isLoading } = useAppLimitCreditCodesQuery({ - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, -}); - -// Get one appLimitCreditCode -const { data: item } = useAppLimitCreditCodeQuery({ - id: '', - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, -}); - -// Create a appLimitCreditCode -const { mutate: create } = useCreateAppLimitCreditCodeMutation({ - selection: { fields: { id: true } }, -}); -create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); -``` - -### OrgPermissionDefault - -```typescript -// List all orgPermissionDefaults -const { data, isLoading } = useOrgPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true, entityId: true } }, -}); - -// Get one orgPermissionDefault -const { data: item } = useOrgPermissionDefaultQuery({ - id: '', - selection: { fields: { id: true, permissions: true, entityId: true } }, -}); - -// Create a orgPermissionDefault -const { mutate: create } = useCreateOrgPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ permissions: '', entityId: '' }); -``` - ### AppAdminGrant ```typescript @@ -524,151 +488,214 @@ const { mutate: create } = useCreateAppOwnerGrantMutation({ create({ isGrant: '', actorId: '', grantorId: '' }); ``` -### AppLimitCapsDefault +### OrgPermissionDefault ```typescript -// List all appLimitCapsDefaults -const { data, isLoading } = useAppLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all orgPermissionDefaults +const { data, isLoading } = useOrgPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true, entityId: true } }, }); -// Get one appLimitCapsDefault -const { data: item } = useAppLimitCapsDefaultQuery({ +// Get one orgPermissionDefault +const { data: item } = useOrgPermissionDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, permissions: true, entityId: true } }, }); -// Create a appLimitCapsDefault -const { mutate: create } = useCreateAppLimitCapsDefaultMutation({ +// Create a orgPermissionDefault +const { mutate: create } = useCreateOrgPermissionDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ permissions: '', entityId: '' }); ``` -### OrgLimitCapsDefault +### AppMembershipDefault ```typescript -// List all orgLimitCapsDefaults -const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all appMembershipDefaults +const { data, isLoading } = useAppMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, }); -// Get one orgLimitCapsDefault -const { data: item } = useOrgLimitCapsDefaultQuery({ +// Get one appMembershipDefault +const { data: item } = useAppMembershipDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, }); -// Create a orgLimitCapsDefault -const { mutate: create } = useCreateOrgLimitCapsDefaultMutation({ +// Create a appMembershipDefault +const { mutate: create } = useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); ``` -### AppLimitCap +### OrgAdminGrant ```typescript -// List all appLimitCaps -const { data, isLoading } = useAppLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, +// List all orgAdminGrants +const { data, isLoading } = useOrgAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Get one appLimitCap -const { data: item } = useAppLimitCapQuery({ +// Get one orgAdminGrant +const { data: item } = useOrgAdminGrantQuery({ id: '', - selection: { fields: { id: true, name: true, entityId: true, max: true } }, + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a appLimitCap -const { mutate: create } = useCreateAppLimitCapMutation({ +// Create a orgAdminGrant +const { mutate: create } = useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } }, }); -create({ name: '', entityId: '', max: '' }); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgLimitCap +### OrgMembershipDefault ```typescript -// List all orgLimitCaps -const { data, isLoading } = useOrgLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); +// List all orgMembershipDefaults +const { data, isLoading } = useOrgMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, +}); -// Get one orgLimitCap -const { data: item } = useOrgLimitCapQuery({ +// Get one orgMembershipDefault +const { data: item } = useOrgMembershipDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, entityId: true, max: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, }); -// Create a orgLimitCap -const { mutate: create } = useCreateOrgLimitCapMutation({ +// Create a orgMembershipDefault +const { mutate: create } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', entityId: '', max: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); ``` -### OrgAdminGrant +### OrgOwnerGrant ```typescript -// List all orgAdminGrants -const { data, isLoading } = useOrgAdminGrantsQuery({ +// List all orgOwnerGrants +const { data, isLoading } = useOrgOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Get one orgAdminGrant -const { data: item } = useOrgAdminGrantQuery({ +// Get one orgOwnerGrant +const { data: item } = useOrgOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a orgAdminGrant -const { mutate: create } = useCreateOrgAdminGrantMutation({ +// Create a orgOwnerGrant +const { mutate: create } = useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } }, }); create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgOwnerGrant +### AppLimitCapsDefault ```typescript -// List all orgOwnerGrants -const { data, isLoading } = useOrgOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all appLimitCapsDefaults +const { data, isLoading } = useAppLimitCapsDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, }); -// Get one orgOwnerGrant -const { data: item } = useOrgOwnerGrantQuery({ +// Get one appLimitCapsDefault +const { data: item } = useAppLimitCapsDefaultQuery({ id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, name: true, max: true } }, }); -// Create a orgOwnerGrant -const { mutate: create } = useCreateOrgOwnerGrantMutation({ +// Create a appLimitCapsDefault +const { mutate: create } = useCreateAppLimitCapsDefaultMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ name: '', max: '' }); ``` -### MembershipType +### OrgLimitCapsDefault ```typescript -// List all membershipTypes -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, +// List all orgLimitCapsDefaults +const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, }); -// Get one membershipType -const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, +// Get one orgLimitCapsDefault +const { data: item } = useOrgLimitCapsDefaultQuery({ + id: '', + selection: { fields: { id: true, name: true, max: true } }, }); -// Create a membershipType -const { mutate: create } = useCreateMembershipTypeMutation({ +// Create a orgLimitCapsDefault +const { mutate: create } = useCreateOrgLimitCapsDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); +create({ name: '', max: '' }); +``` + +### AppLimitCap + +```typescript +// List all appLimitCaps +const { data, isLoading } = useAppLimitCapsQuery({ + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Get one appLimitCap +const { data: item } = useAppLimitCapQuery({ + id: '', + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Create a appLimitCap +const { mutate: create } = useCreateAppLimitCapMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', entityId: '', max: '' }); +``` + +### OrgLimitCap + +```typescript +// List all orgLimitCaps +const { data, isLoading } = useOrgLimitCapsQuery({ + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Get one orgLimitCap +const { data: item } = useOrgLimitCapQuery({ + id: '', + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Create a orgLimitCap +const { mutate: create } = useCreateOrgLimitCapMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', entityId: '', max: '' }); +``` + +### OrgChartEdge + +```typescript +// List all orgChartEdges +const { data, isLoading } = useOrgChartEdgesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +}); + +// Get one orgChartEdge +const { data: item } = useOrgChartEdgeQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +}); + +// Create a orgChartEdge +const { mutate: create } = useCreateOrgChartEdgeMutation({ + selection: { fields: { id: true } }, +}); +create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); ``` ### AppLimitDefault @@ -734,46 +761,46 @@ const { mutate: create } = useCreateOrgLimitCreditMutation({ create({ defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }); ``` -### AppLimitWarning +### AppLimitCreditCode ```typescript -// List all appLimitWarnings -const { data, isLoading } = useAppLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, +// List all appLimitCreditCodes +const { data, isLoading } = useAppLimitCreditCodesQuery({ + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, }); -// Get one appLimitWarning -const { data: item } = useAppLimitWarningQuery({ +// Get one appLimitCreditCode +const { data: item } = useAppLimitCreditCodeQuery({ id: '', - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, }); -// Create a appLimitWarning -const { mutate: create } = useCreateAppLimitWarningMutation({ +// Create a appLimitCreditCode +const { mutate: create } = useCreateAppLimitCreditCodeMutation({ selection: { fields: { id: true } }, }); -create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); +create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); ``` -### OrgLimitWarning +### AppLimitWarning ```typescript -// List all orgLimitWarnings -const { data, isLoading } = useOrgLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, +// List all appLimitWarnings +const { data, isLoading } = useAppLimitWarningsQuery({ + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, }); -// Get one orgLimitWarning -const { data: item } = useOrgLimitWarningQuery({ +// Get one appLimitWarning +const { data: item } = useAppLimitWarningQuery({ id: '', - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, }); -// Create a orgLimitWarning -const { mutate: create } = useCreateOrgLimitWarningMutation({ +// Create a appLimitWarning +const { mutate: create } = useCreateAppLimitWarningMutation({ selection: { fields: { id: true } }, }); -create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }); +create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); ``` ### OrgChartEdgeGrant @@ -818,6 +845,48 @@ const { mutate: create } = useCreateAppClaimedInviteMutation({ create({ data: '', senderId: '', receiverId: '' }); ``` +### OrgLimitWarning + +```typescript +// List all orgLimitWarnings +const { data, isLoading } = useOrgLimitWarningsQuery({ + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, +}); + +// Get one orgLimitWarning +const { data: item } = useOrgLimitWarningQuery({ + id: '', + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, +}); + +// Create a orgLimitWarning +const { mutate: create } = useCreateOrgLimitWarningMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }); +``` + +### MembershipType + +```typescript +// List all membershipTypes +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, +}); + +// Get one membershipType +const { data: item } = useMembershipTypeQuery({ + id: '', + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, +}); + +// Create a membershipType +const { mutate: create } = useCreateMembershipTypeMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); +``` + ### AppGrant ```typescript @@ -839,67 +908,67 @@ const { mutate: create } = useCreateAppGrantMutation({ create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); ``` -### AppMembershipDefault +### OrgClaimedInvite ```typescript -// List all appMembershipDefaults -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +// List all orgClaimedInvites +const { data, isLoading } = useOrgClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, }); -// Get one appMembershipDefault -const { data: item } = useAppMembershipDefaultQuery({ +// Get one orgClaimedInvite +const { data: item } = useOrgClaimedInviteQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, }); -// Create a appMembershipDefault -const { mutate: create } = useCreateAppMembershipDefaultMutation({ +// Create a orgClaimedInvite +const { mutate: create } = useCreateOrgClaimedInviteMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +create({ data: '', senderId: '', receiverId: '', entityId: '' }); ``` -### OrgMembershipDefault +### OrgGrant ```typescript -// List all orgMembershipDefaults -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, +// List all orgGrants +const { data, isLoading } = useOrgGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Get one orgMembershipDefault -const { data: item } = useOrgMembershipDefaultQuery({ +// Get one orgGrant +const { data: item } = useOrgGrantQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a orgMembershipDefault -const { mutate: create } = useCreateOrgMembershipDefaultMutation({ +// Create a orgGrant +const { mutate: create } = useCreateOrgGrantMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); +create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgClaimedInvite +### UsageSnapshot ```typescript -// List all orgClaimedInvites -const { data, isLoading } = useOrgClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, +// List all usageSnapshots +const { data, isLoading } = useUsageSnapshotsQuery({ + selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }, }); -// Get one orgClaimedInvite -const { data: item } = useOrgClaimedInviteQuery({ +// Get one usageSnapshot +const { data: item } = useUsageSnapshotQuery({ id: '', - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, + selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }, }); -// Create a orgClaimedInvite -const { mutate: create } = useCreateOrgClaimedInviteMutation({ +// Create a usageSnapshot +const { mutate: create } = useCreateUsageSnapshotMutation({ selection: { fields: { id: true } }, }); -create({ data: '', senderId: '', receiverId: '', entityId: '' }); +create({ databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }); ``` ### AppLimitEvent @@ -907,7 +976,13 @@ create({ data: '', senderId: '', receiverId: '', entityId: '', + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); // Create a appLimitEvent @@ -922,7 +997,13 @@ create({ name: '', actorId: '', entityId: '', eventType: '', + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); // Create a orgLimitEvent @@ -932,67 +1013,67 @@ const { mutate: create } = useCreateOrgLimitEventMutation({ create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); ``` -### OrgGrant +### OrgMembershipSetting ```typescript -// List all orgGrants -const { data, isLoading } = useOrgGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all orgMembershipSettings +const { data, isLoading } = useOrgMembershipSettingsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); -// Get one orgGrant -const { data: item } = useOrgGrantQuery({ +// Get one orgMembershipSetting +const { data: item } = useOrgMembershipSettingQuery({ id: '', - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); -// Create a orgGrant -const { mutate: create } = useCreateOrgGrantMutation({ +// Create a orgMembershipSetting +const { mutate: create } = useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); ``` -### OrgChartEdge +### OrgMemberProfile ```typescript -// List all orgChartEdges -const { data, isLoading } = useOrgChartEdgesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, +// List all orgMemberProfiles +const { data, isLoading } = useOrgMemberProfilesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, }); -// Get one orgChartEdge -const { data: item } = useOrgChartEdgeQuery({ +// Get one orgMemberProfile +const { data: item } = useOrgMemberProfileQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, }); -// Create a orgChartEdge -const { mutate: create } = useCreateOrgChartEdgeMutation({ +// Create a orgMemberProfile +const { mutate: create } = useCreateOrgMemberProfileMutation({ selection: { fields: { id: true } }, }); -create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); +create({ membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }); ``` -### UsageSnapshot +### AppMembership ```typescript -// List all usageSnapshots -const { data, isLoading } = useUsageSnapshotsQuery({ - selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }, +// List all appMemberships +const { data, isLoading } = useAppMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); -// Get one usageSnapshot -const { data: item } = useUsageSnapshotQuery({ +// Get one appMembership +const { data: item } = useAppMembershipQuery({ id: '', - selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); -// Create a usageSnapshot -const { mutate: create } = useCreateUsageSnapshotMutation({ +// Create a appMembership +const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### AppLimit @@ -1016,46 +1097,25 @@ const { mutate: create } = useCreateAppLimitMutation({ create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '' }); ``` -### AppInvite - -```typescript -// List all appInvites -const { data, isLoading } = useAppInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, -}); - -// Get one appInvite -const { data: item } = useAppInviteQuery({ - id: '', - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, -}); - -// Create a appInvite -const { mutate: create } = useCreateAppInviteMutation({ - selection: { fields: { id: true } }, -}); -create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); -``` - -### OrgMembershipSetting +### OrgMembership ```typescript -// List all orgMembershipSettings -const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, +// List all orgMemberships +const { data, isLoading } = useOrgMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, }); -// Get one orgMembershipSetting -const { data: item } = useOrgMembershipSettingQuery({ +// Get one orgMembership +const { data: item } = useOrgMembershipQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, }); -// Create a orgMembershipSetting -const { mutate: create } = useCreateOrgMembershipSettingMutation({ +// Create a orgMembership +const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }); ``` ### OrgLimitAggregate @@ -1100,46 +1160,25 @@ const { mutate: create } = useCreateOrgLimitMutation({ create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '' }); ``` -### OrgMemberProfile - -```typescript -// List all orgMemberProfiles -const { data, isLoading } = useOrgMemberProfilesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, -}); - -// Get one orgMemberProfile -const { data: item } = useOrgMemberProfileQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, -}); - -// Create a orgMemberProfile -const { mutate: create } = useCreateOrgMemberProfileMutation({ - selection: { fields: { id: true } }, -}); -create({ membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }); -``` - -### AppMembership +### AppInvite ```typescript -// List all appMemberships -const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, +// List all appInvites +const { data, isLoading } = useAppInvitesQuery({ + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); -// Get one appMembership -const { data: item } = useAppMembershipQuery({ +// Get one appInvite +const { data: item } = useAppInviteQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); -// Create a appMembership -const { mutate: create } = useCreateAppMembershipMutation({ +// Create a appInvite +const { mutate: create } = useCreateAppInviteMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); ``` ### OrgInvite @@ -1163,27 +1202,6 @@ const { mutate: create } = useCreateOrgInviteMutation({ create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }); ``` -### OrgMembership - -```typescript -// List all orgMemberships -const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, -}); - -// Get one orgMembership -const { data: item } = useOrgMembershipQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, -}); - -// Create a orgMembership -const { mutate: create } = useCreateOrgMembershipMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }); -``` - ## Custom Operation Hooks ### `useAppPermissionsGetPaddedMaskQuery` diff --git a/sdk/constructive-react/src/admin/hooks/index.ts b/sdk/constructive-react/src/admin/hooks/index.ts index 96cf31d802..971458fe7a 100644 --- a/sdk/constructive-react/src/admin/hooks/index.ts +++ b/sdk/constructive-react/src/admin/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, AppLimitCreditRedemption, AppLimitCreditCodeItem, AppLimitCredit, OrgMember, AppPermissionDefault, AppLimitCreditCode, OrgPermissionDefault, AppAdminGrant, AppOwnerGrant, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, OrgAdminGrant, OrgOwnerGrant, MembershipType, AppLimitDefault, OrgLimitDefault, OrgLimitCredit, AppLimitWarning, OrgLimitWarning, OrgChartEdgeGrant, AppClaimedInvite, AppGrant, AppMembershipDefault, OrgMembershipDefault, OrgClaimedInvite, AppLimitEvent, OrgLimitEvent, OrgGrant, OrgChartEdge, UsageSnapshot, AppLimit, AppInvite, OrgMembershipSetting, OrgLimitAggregate, OrgLimit, OrgMemberProfile, AppMembership, OrgInvite, OrgMembership + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, AppLimitCreditRedemption, AppLimitCreditCodeItem, AppLimitCredit, OrgMember, AppPermissionDefault, AppAdminGrant, AppOwnerGrant, OrgPermissionDefault, AppMembershipDefault, OrgAdminGrant, OrgMembershipDefault, OrgOwnerGrant, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, OrgChartEdge, AppLimitDefault, OrgLimitDefault, OrgLimitCredit, AppLimitCreditCode, AppLimitWarning, OrgChartEdgeGrant, AppClaimedInvite, OrgLimitWarning, MembershipType, AppGrant, OrgClaimedInvite, OrgGrant, UsageSnapshot, AppLimitEvent, OrgLimitEvent, OrgMembershipSetting, OrgMemberProfile, AppMembership, AppLimit, OrgMembership, OrgLimitAggregate, OrgLimit, AppInvite, OrgInvite * * Usage: * diff --git a/sdk/constructive-react/src/admin/hooks/invalidation.ts b/sdk/constructive-react/src/admin/hooks/invalidation.ts index 889a5d6c86..a043b94a55 100644 --- a/sdk/constructive-react/src/admin/hooks/invalidation.ts +++ b/sdk/constructive-react/src/admin/hooks/invalidation.ts @@ -24,42 +24,42 @@ import { appLimitCreditKeys, orgMemberKeys, appPermissionDefaultKeys, - appLimitCreditCodeKeys, - orgPermissionDefaultKeys, appAdminGrantKeys, appOwnerGrantKeys, + orgPermissionDefaultKeys, + appMembershipDefaultKeys, + orgAdminGrantKeys, + orgMembershipDefaultKeys, + orgOwnerGrantKeys, appLimitCapsDefaultKeys, orgLimitCapsDefaultKeys, appLimitCapKeys, orgLimitCapKeys, - orgAdminGrantKeys, - orgOwnerGrantKeys, - membershipTypeKeys, + orgChartEdgeKeys, appLimitDefaultKeys, orgLimitDefaultKeys, orgLimitCreditKeys, + appLimitCreditCodeKeys, appLimitWarningKeys, - orgLimitWarningKeys, orgChartEdgeGrantKeys, appClaimedInviteKeys, + orgLimitWarningKeys, + membershipTypeKeys, appGrantKeys, - appMembershipDefaultKeys, - orgMembershipDefaultKeys, orgClaimedInviteKeys, - appLimitEventKeys, - orgLimitEventKeys, orgGrantKeys, - orgChartEdgeKeys, usageSnapshotKeys, - appLimitKeys, - appInviteKeys, + appLimitEventKeys, + orgLimitEventKeys, orgMembershipSettingKeys, - orgLimitAggregateKeys, - orgLimitKeys, orgMemberProfileKeys, appMembershipKeys, - orgInviteKeys, + appLimitKeys, orgMembershipKeys, + orgLimitAggregateKeys, + orgLimitKeys, + appInviteKeys, + orgInviteKeys, } from './query-keys'; /** // ============================================================================ @@ -234,21 +234,38 @@ export const invalidate = { queryKey: appPermissionDefaultKeys.detail(id), }), }, - /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { - /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => + /** Invalidate appAdminGrant queries */ appAdminGrant: { + /** Invalidate all appAdminGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.all, + queryKey: appAdminGrantKeys.all, }), - /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appAdminGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.lists(), + queryKey: appAdminGrantKeys.lists(), }), - /** Invalidate a specific appLimitCreditCode */ detail: ( + /** Invalidate a specific appAdminGrant */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), + queryKey: appAdminGrantKeys.detail(id), + }), + }, + /** Invalidate appOwnerGrant queries */ appOwnerGrant: { + /** Invalidate all appOwnerGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.all, + }), + /** Invalidate appOwnerGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.lists(), + }), + /** Invalidate a specific appOwnerGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.detail(id), }), }, /** Invalidate orgPermissionDefault queries */ orgPermissionDefault: { @@ -268,38 +285,72 @@ export const invalidate = { queryKey: orgPermissionDefaultKeys.detail(id), }), }, - /** Invalidate appAdminGrant queries */ appAdminGrant: { - /** Invalidate all appAdminGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate appMembershipDefault queries */ appMembershipDefault: { + /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.all, + queryKey: appMembershipDefaultKeys.all, }), - /** Invalidate appAdminGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.lists(), + queryKey: appMembershipDefaultKeys.lists(), }), - /** Invalidate a specific appAdminGrant */ detail: ( + /** Invalidate a specific appMembershipDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.detail(id), + queryKey: appMembershipDefaultKeys.detail(id), }), }, - /** Invalidate appOwnerGrant queries */ appOwnerGrant: { - /** Invalidate all appOwnerGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate orgAdminGrant queries */ orgAdminGrant: { + /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.all, + queryKey: orgAdminGrantKeys.all, }), - /** Invalidate appOwnerGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.lists(), + queryKey: orgAdminGrantKeys.lists(), }), - /** Invalidate a specific appOwnerGrant */ detail: ( + /** Invalidate a specific orgAdminGrant */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), + }), + }, + /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { + /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.all, + }), + /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }), + /** Invalidate a specific orgMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.detail(id), + }), + }, + /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { + /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.all, + }), + /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.lists(), + }), + /** Invalidate a specific orgOwnerGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.detail(id), }), }, /** Invalidate appLimitCapsDefault queries */ appLimitCapsDefault: { @@ -370,55 +421,21 @@ export const invalidate = { queryKey: orgLimitCapKeys.detail(id), }), }, - /** Invalidate orgAdminGrant queries */ orgAdminGrant: { - /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.all, - }), - /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.lists(), - }), - /** Invalidate a specific orgAdminGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.detail(id), - }), - }, - /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { - /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.all, - }), - /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.lists(), - }), - /** Invalidate a specific orgOwnerGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.detail(id), - }), - }, - /** Invalidate membershipType queries */ membershipType: { - /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => + /** Invalidate orgChartEdge queries */ orgChartEdge: { + /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.all, + queryKey: orgChartEdgeKeys.all, }), - /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), + queryKey: orgChartEdgeKeys.lists(), }), - /** Invalidate a specific membershipType */ detail: ( + /** Invalidate a specific orgChartEdge */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgChartEdgeKeys.detail(id), }), }, /** Invalidate appLimitDefault queries */ appLimitDefault: { @@ -472,38 +489,38 @@ export const invalidate = { queryKey: orgLimitCreditKeys.detail(id), }), }, - /** Invalidate appLimitWarning queries */ appLimitWarning: { - /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { + /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.all, + queryKey: appLimitCreditCodeKeys.all, }), - /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.lists(), + queryKey: appLimitCreditCodeKeys.lists(), }), - /** Invalidate a specific appLimitWarning */ detail: ( + /** Invalidate a specific appLimitCreditCode */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.detail(id), + queryKey: appLimitCreditCodeKeys.detail(id), }), }, - /** Invalidate orgLimitWarning queries */ orgLimitWarning: { - /** Invalidate all orgLimitWarning queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitWarning queries */ appLimitWarning: { + /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.all, + queryKey: appLimitWarningKeys.all, }), - /** Invalidate orgLimitWarning list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.lists(), + queryKey: appLimitWarningKeys.lists(), }), - /** Invalidate a specific orgLimitWarning */ detail: ( + /** Invalidate a specific appLimitWarning */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.detail(id), + queryKey: appLimitWarningKeys.detail(id), }), }, /** Invalidate orgChartEdgeGrant queries */ orgChartEdgeGrant: { @@ -540,52 +557,52 @@ export const invalidate = { queryKey: appClaimedInviteKeys.detail(id), }), }, - /** Invalidate appGrant queries */ appGrant: { - /** Invalidate all appGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate orgLimitWarning queries */ orgLimitWarning: { + /** Invalidate all orgLimitWarning queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appGrantKeys.all, + queryKey: orgLimitWarningKeys.all, }), - /** Invalidate appGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgLimitWarning list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appGrantKeys.lists(), + queryKey: orgLimitWarningKeys.lists(), }), - /** Invalidate a specific appGrant */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific orgLimitWarning */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: appGrantKeys.detail(id), + queryKey: orgLimitWarningKeys.detail(id), }), }, - /** Invalidate appMembershipDefault queries */ appMembershipDefault: { - /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate membershipType queries */ membershipType: { + /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.all, + queryKey: membershipTypeKeys.all, }), - /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), + queryKey: membershipTypeKeys.lists(), }), - /** Invalidate a specific appMembershipDefault */ detail: ( + /** Invalidate a specific membershipType */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }), }, - /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { - /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate appGrant queries */ appGrant: { + /** Invalidate all appGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.all, + queryKey: appGrantKeys.all, }), - /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), + queryKey: appGrantKeys.lists(), }), - /** Invalidate a specific orgMembershipDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => + /** Invalidate a specific appGrant */ detail: (queryClient: QueryClient, id: string | number) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: appGrantKeys.detail(id), }), }, /** Invalidate orgClaimedInvite queries */ orgClaimedInvite: { @@ -605,12 +622,43 @@ export const invalidate = { queryKey: orgClaimedInviteKeys.detail(id), }), }, - /** Invalidate appLimitEvent queries */ appLimitEvent: { - /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => + /** Invalidate orgGrant queries */ orgGrant: { + /** Invalidate all orgGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.all, + queryKey: orgGrantKeys.all, }), - /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.lists(), + }), + /** Invalidate a specific orgGrant */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.detail(id), + }), + }, + /** Invalidate usageSnapshot queries */ usageSnapshot: { + /** Invalidate all usageSnapshot queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: usageSnapshotKeys.all, + }), + /** Invalidate usageSnapshot list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: usageSnapshotKeys.lists(), + }), + /** Invalidate a specific usageSnapshot */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: usageSnapshotKeys.detail(id), + }), + }, + /** Invalidate appLimitEvent queries */ appLimitEvent: { + /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.all, + }), + /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ queryKey: appLimitEventKeys.lists(), }), @@ -639,52 +687,55 @@ export const invalidate = { queryKey: orgLimitEventKeys.detail(id), }), }, - /** Invalidate orgGrant queries */ orgGrant: { - /** Invalidate all orgGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { + /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgGrantKeys.all, + queryKey: orgMembershipSettingKeys.all, }), - /** Invalidate orgGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgGrantKeys.lists(), + queryKey: orgMembershipSettingKeys.lists(), }), - /** Invalidate a specific orgGrant */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific orgMembershipSetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: orgGrantKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }), }, - /** Invalidate orgChartEdge queries */ orgChartEdge: { - /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMemberProfile queries */ orgMemberProfile: { + /** Invalidate all orgMemberProfile queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.all, + queryKey: orgMemberProfileKeys.all, }), - /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMemberProfile list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.lists(), + queryKey: orgMemberProfileKeys.lists(), }), - /** Invalidate a specific orgChartEdge */ detail: ( + /** Invalidate a specific orgMemberProfile */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.detail(id), + queryKey: orgMemberProfileKeys.detail(id), }), }, - /** Invalidate usageSnapshot queries */ usageSnapshot: { - /** Invalidate all usageSnapshot queries */ all: (queryClient: QueryClient) => + /** Invalidate appMembership queries */ appMembership: { + /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.all, + queryKey: appMembershipKeys.all, }), - /** Invalidate usageSnapshot list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.lists(), + queryKey: appMembershipKeys.lists(), }), - /** Invalidate a specific usageSnapshot */ detail: ( + /** Invalidate a specific appMembership */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.detail(id), + queryKey: appMembershipKeys.detail(id), }), }, /** Invalidate appLimit queries */ appLimit: { @@ -701,38 +752,21 @@ export const invalidate = { queryKey: appLimitKeys.detail(id), }), }, - /** Invalidate appInvite queries */ appInvite: { - /** Invalidate all appInvite queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.all, - }), - /** Invalidate appInvite list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.lists(), - }), - /** Invalidate a specific appInvite */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.detail(id), - }), - }, - /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { - /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembership queries */ orgMembership: { + /** Invalidate all orgMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.all, + queryKey: orgMembershipKeys.all, }), - /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembership list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), + queryKey: orgMembershipKeys.lists(), }), - /** Invalidate a specific orgMembershipSetting */ detail: ( + /** Invalidate a specific orgMembership */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: orgMembershipKeys.detail(id), }), }, /** Invalidate orgLimitAggregate queries */ orgLimitAggregate: { @@ -766,38 +800,21 @@ export const invalidate = { queryKey: orgLimitKeys.detail(id), }), }, - /** Invalidate orgMemberProfile queries */ orgMemberProfile: { - /** Invalidate all orgMemberProfile queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.all, - }), - /** Invalidate orgMemberProfile list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.lists(), - }), - /** Invalidate a specific orgMemberProfile */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.detail(id), - }), - }, - /** Invalidate appMembership queries */ appMembership: { - /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => + /** Invalidate appInvite queries */ appInvite: { + /** Invalidate all appInvite queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.all, + queryKey: appInviteKeys.all, }), - /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appInvite list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.lists(), + queryKey: appInviteKeys.lists(), }), - /** Invalidate a specific appMembership */ detail: ( + /** Invalidate a specific appInvite */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.detail(id), + queryKey: appInviteKeys.detail(id), }), }, /** Invalidate orgInvite queries */ orgInvite: { @@ -817,23 +834,6 @@ export const invalidate = { queryKey: orgInviteKeys.detail(id), }), }, - /** Invalidate orgMembership queries */ orgMembership: { - /** Invalidate all orgMembership queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.all, - }), - /** Invalidate orgMembership list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.lists(), - }), - /** Invalidate a specific orgMembership */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.detail(id), - }), - }, } as const; /** @@ -916,12 +916,20 @@ export const remove = { queryKey: appPermissionDefaultKeys.detail(id), }); }, - /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( + /** Remove appAdminGrant from cache */ appAdminGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), + queryKey: appAdminGrantKeys.detail(id), + }); + }, + /** Remove appOwnerGrant from cache */ appOwnerGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appOwnerGrantKeys.detail(id), }); }, /** Remove orgPermissionDefault from cache */ orgPermissionDefault: ( @@ -932,76 +940,76 @@ export const remove = { queryKey: orgPermissionDefaultKeys.detail(id), }); }, - /** Remove appAdminGrant from cache */ appAdminGrant: ( + /** Remove appMembershipDefault from cache */ appMembershipDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appAdminGrantKeys.detail(id), + queryKey: appMembershipDefaultKeys.detail(id), }); }, - /** Remove appOwnerGrant from cache */ appOwnerGrant: ( + /** Remove orgAdminGrant from cache */ orgAdminGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appOwnerGrantKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), }); }, - /** Remove appLimitCapsDefault from cache */ appLimitCapsDefault: ( + /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCapsDefaultKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }); }, - /** Remove orgLimitCapsDefault from cache */ orgLimitCapsDefault: ( + /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitCapsDefaultKeys.detail(id), + queryKey: orgOwnerGrantKeys.detail(id), }); }, - /** Remove appLimitCap from cache */ appLimitCap: ( + /** Remove appLimitCapsDefault from cache */ appLimitCapsDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCapKeys.detail(id), + queryKey: appLimitCapsDefaultKeys.detail(id), }); }, - /** Remove orgLimitCap from cache */ orgLimitCap: ( + /** Remove orgLimitCapsDefault from cache */ orgLimitCapsDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitCapKeys.detail(id), + queryKey: orgLimitCapsDefaultKeys.detail(id), }); }, - /** Remove orgAdminGrant from cache */ orgAdminGrant: ( + /** Remove appLimitCap from cache */ appLimitCap: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgAdminGrantKeys.detail(id), + queryKey: appLimitCapKeys.detail(id), }); }, - /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( + /** Remove orgLimitCap from cache */ orgLimitCap: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgOwnerGrantKeys.detail(id), + queryKey: orgLimitCapKeys.detail(id), }); }, - /** Remove membershipType from cache */ membershipType: ( + /** Remove orgChartEdge from cache */ orgChartEdge: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgChartEdgeKeys.detail(id), }); }, /** Remove appLimitDefault from cache */ appLimitDefault: ( @@ -1028,20 +1036,20 @@ export const remove = { queryKey: orgLimitCreditKeys.detail(id), }); }, - /** Remove appLimitWarning from cache */ appLimitWarning: ( + /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitWarningKeys.detail(id), + queryKey: appLimitCreditCodeKeys.detail(id), }); }, - /** Remove orgLimitWarning from cache */ orgLimitWarning: ( + /** Remove appLimitWarning from cache */ appLimitWarning: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitWarningKeys.detail(id), + queryKey: appLimitWarningKeys.detail(id), }); }, /** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: ( @@ -1060,33 +1068,46 @@ export const remove = { queryKey: appClaimedInviteKeys.detail(id), }); }, - /** Remove appGrant from cache */ appGrant: (queryClient: QueryClient, id: string | number) => { + /** Remove orgLimitWarning from cache */ orgLimitWarning: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: appGrantKeys.detail(id), + queryKey: orgLimitWarningKeys.detail(id), }); }, - /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + /** Remove membershipType from cache */ membershipType: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }); }, - /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( + /** Remove appGrant from cache */ appGrant: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appGrantKeys.detail(id), + }); + }, + /** Remove orgClaimedInvite from cache */ orgClaimedInvite: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: orgClaimedInviteKeys.detail(id), }); }, - /** Remove orgClaimedInvite from cache */ orgClaimedInvite: ( + /** Remove orgGrant from cache */ orgGrant: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgGrantKeys.detail(id), + }); + }, + /** Remove usageSnapshot from cache */ usageSnapshot: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgClaimedInviteKeys.detail(id), + queryKey: usageSnapshotKeys.detail(id), }); }, /** Remove appLimitEvent from cache */ appLimitEvent: ( @@ -1105,25 +1126,28 @@ export const remove = { queryKey: orgLimitEventKeys.detail(id), }); }, - /** Remove orgGrant from cache */ orgGrant: (queryClient: QueryClient, id: string | number) => { + /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: orgGrantKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }); }, - /** Remove orgChartEdge from cache */ orgChartEdge: ( + /** Remove orgMemberProfile from cache */ orgMemberProfile: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgChartEdgeKeys.detail(id), + queryKey: orgMemberProfileKeys.detail(id), }); }, - /** Remove usageSnapshot from cache */ usageSnapshot: ( + /** Remove appMembership from cache */ appMembership: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: usageSnapshotKeys.detail(id), + queryKey: appMembershipKeys.detail(id), }); }, /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { @@ -1131,17 +1155,12 @@ export const remove = { queryKey: appLimitKeys.detail(id), }); }, - /** Remove appInvite from cache */ appInvite: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appInviteKeys.detail(id), - }); - }, - /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( + /** Remove orgMembership from cache */ orgMembership: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: orgMembershipKeys.detail(id), }); }, /** Remove orgLimitAggregate from cache */ orgLimitAggregate: ( @@ -1157,20 +1176,9 @@ export const remove = { queryKey: orgLimitKeys.detail(id), }); }, - /** Remove orgMemberProfile from cache */ orgMemberProfile: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgMemberProfileKeys.detail(id), - }); - }, - /** Remove appMembership from cache */ appMembership: ( - queryClient: QueryClient, - id: string | number - ) => { + /** Remove appInvite from cache */ appInvite: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: appMembershipKeys.detail(id), + queryKey: appInviteKeys.detail(id), }); }, /** Remove orgInvite from cache */ orgInvite: (queryClient: QueryClient, id: string | number) => { @@ -1178,12 +1186,4 @@ export const remove = { queryKey: orgInviteKeys.detail(id), }); }, - /** Remove orgMembership from cache */ orgMembership: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgMembershipKeys.detail(id), - }); - }, } as const; diff --git a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts index ac54036239..e1f867f9e6 100644 --- a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts @@ -107,24 +107,6 @@ export const appPermissionDefaultMutationKeys = { /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => ['mutation', 'apppermissiondefault', 'delete', id] as const, } as const; -export const appLimitCreditCodeMutationKeys = { - /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, - /** Create appLimitCreditCode mutation key */ create: () => - ['mutation', 'applimitcreditcode', 'create'] as const, - /** Update appLimitCreditCode mutation key */ update: (id: string | number) => - ['mutation', 'applimitcreditcode', 'update', id] as const, - /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcreditcode', 'delete', id] as const, -} as const; -export const orgPermissionDefaultMutationKeys = { - /** All orgPermissionDefault mutation keys */ all: ['mutation', 'orgpermissiondefault'] as const, - /** Create orgPermissionDefault mutation key */ create: () => - ['mutation', 'orgpermissiondefault', 'create'] as const, - /** Update orgPermissionDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgpermissiondefault', 'update', id] as const, - /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgpermissiondefault', 'delete', id] as const, -} as const; export const appAdminGrantMutationKeys = { /** All appAdminGrant mutation keys */ all: ['mutation', 'appadmingrant'] as const, /** Create appAdminGrant mutation key */ create: () => @@ -143,6 +125,51 @@ export const appOwnerGrantMutationKeys = { /** Delete appOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'appownergrant', 'delete', id] as const, } as const; +export const orgPermissionDefaultMutationKeys = { + /** All orgPermissionDefault mutation keys */ all: ['mutation', 'orgpermissiondefault'] as const, + /** Create orgPermissionDefault mutation key */ create: () => + ['mutation', 'orgpermissiondefault', 'create'] as const, + /** Update orgPermissionDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgpermissiondefault', 'update', id] as const, + /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orgpermissiondefault', 'delete', id] as const, +} as const; +export const appMembershipDefaultMutationKeys = { + /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, + /** Create appMembershipDefault mutation key */ create: () => + ['mutation', 'appmembershipdefault', 'create'] as const, + /** Update appMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'appmembershipdefault', 'update', id] as const, + /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'appmembershipdefault', 'delete', id] as const, +} as const; +export const orgAdminGrantMutationKeys = { + /** All orgAdminGrant mutation keys */ all: ['mutation', 'orgadmingrant'] as const, + /** Create orgAdminGrant mutation key */ create: () => + ['mutation', 'orgadmingrant', 'create'] as const, + /** Update orgAdminGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgadmingrant', 'update', id] as const, + /** Delete orgAdminGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgadmingrant', 'delete', id] as const, +} as const; +export const orgMembershipDefaultMutationKeys = { + /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, + /** Create orgMembershipDefault mutation key */ create: () => + ['mutation', 'orgmembershipdefault', 'create'] as const, + /** Update orgMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'update', id] as const, + /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'delete', id] as const, +} as const; +export const orgOwnerGrantMutationKeys = { + /** All orgOwnerGrant mutation keys */ all: ['mutation', 'orgownergrant'] as const, + /** Create orgOwnerGrant mutation key */ create: () => + ['mutation', 'orgownergrant', 'create'] as const, + /** Update orgOwnerGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgownergrant', 'update', id] as const, + /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgownergrant', 'delete', id] as const, +} as const; export const appLimitCapsDefaultMutationKeys = { /** All appLimitCapsDefault mutation keys */ all: ['mutation', 'applimitcapsdefault'] as const, /** Create appLimitCapsDefault mutation key */ create: () => @@ -179,32 +206,14 @@ export const orgLimitCapMutationKeys = { /** Delete orgLimitCap mutation key */ delete: (id: string | number) => ['mutation', 'orglimitcap', 'delete', id] as const, } as const; -export const orgAdminGrantMutationKeys = { - /** All orgAdminGrant mutation keys */ all: ['mutation', 'orgadmingrant'] as const, - /** Create orgAdminGrant mutation key */ create: () => - ['mutation', 'orgadmingrant', 'create'] as const, - /** Update orgAdminGrant mutation key */ update: (id: string | number) => - ['mutation', 'orgadmingrant', 'update', id] as const, - /** Delete orgAdminGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orgadmingrant', 'delete', id] as const, -} as const; -export const orgOwnerGrantMutationKeys = { - /** All orgOwnerGrant mutation keys */ all: ['mutation', 'orgownergrant'] as const, - /** Create orgOwnerGrant mutation key */ create: () => - ['mutation', 'orgownergrant', 'create'] as const, - /** Update orgOwnerGrant mutation key */ update: (id: string | number) => - ['mutation', 'orgownergrant', 'update', id] as const, - /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orgownergrant', 'delete', id] as const, -} as const; -export const membershipTypeMutationKeys = { - /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, - /** Create membershipType mutation key */ create: () => - ['mutation', 'membershiptype', 'create'] as const, - /** Update membershipType mutation key */ update: (id: string | number) => - ['mutation', 'membershiptype', 'update', id] as const, - /** Delete membershipType mutation key */ delete: (id: string | number) => - ['mutation', 'membershiptype', 'delete', id] as const, +export const orgChartEdgeMutationKeys = { + /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, + /** Create orgChartEdge mutation key */ create: () => + ['mutation', 'orgchartedge', 'create'] as const, + /** Update orgChartEdge mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedge', 'update', id] as const, + /** Delete orgChartEdge mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedge', 'delete', id] as const, } as const; export const appLimitDefaultMutationKeys = { /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, @@ -233,6 +242,15 @@ export const orgLimitCreditMutationKeys = { /** Delete orgLimitCredit mutation key */ delete: (id: string | number) => ['mutation', 'orglimitcredit', 'delete', id] as const, } as const; +export const appLimitCreditCodeMutationKeys = { + /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, + /** Create appLimitCreditCode mutation key */ create: () => + ['mutation', 'applimitcreditcode', 'create'] as const, + /** Update appLimitCreditCode mutation key */ update: (id: string | number) => + ['mutation', 'applimitcreditcode', 'update', id] as const, + /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcreditcode', 'delete', id] as const, +} as const; export const appLimitWarningMutationKeys = { /** All appLimitWarning mutation keys */ all: ['mutation', 'applimitwarning'] as const, /** Create appLimitWarning mutation key */ create: () => @@ -242,15 +260,6 @@ export const appLimitWarningMutationKeys = { /** Delete appLimitWarning mutation key */ delete: (id: string | number) => ['mutation', 'applimitwarning', 'delete', id] as const, } as const; -export const orgLimitWarningMutationKeys = { - /** All orgLimitWarning mutation keys */ all: ['mutation', 'orglimitwarning'] as const, - /** Create orgLimitWarning mutation key */ create: () => - ['mutation', 'orglimitwarning', 'create'] as const, - /** Update orgLimitWarning mutation key */ update: (id: string | number) => - ['mutation', 'orglimitwarning', 'update', id] as const, - /** Delete orgLimitWarning mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitwarning', 'delete', id] as const, -} as const; export const orgChartEdgeGrantMutationKeys = { /** All orgChartEdgeGrant mutation keys */ all: ['mutation', 'orgchartedgegrant'] as const, /** Create orgChartEdgeGrant mutation key */ create: () => @@ -269,6 +278,24 @@ export const appClaimedInviteMutationKeys = { /** Delete appClaimedInvite mutation key */ delete: (id: string | number) => ['mutation', 'appclaimedinvite', 'delete', id] as const, } as const; +export const orgLimitWarningMutationKeys = { + /** All orgLimitWarning mutation keys */ all: ['mutation', 'orglimitwarning'] as const, + /** Create orgLimitWarning mutation key */ create: () => + ['mutation', 'orglimitwarning', 'create'] as const, + /** Update orgLimitWarning mutation key */ update: (id: string | number) => + ['mutation', 'orglimitwarning', 'update', id] as const, + /** Delete orgLimitWarning mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitwarning', 'delete', id] as const, +} as const; +export const membershipTypeMutationKeys = { + /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, + /** Create membershipType mutation key */ create: () => + ['mutation', 'membershiptype', 'create'] as const, + /** Update membershipType mutation key */ update: (id: string | number) => + ['mutation', 'membershiptype', 'update', id] as const, + /** Delete membershipType mutation key */ delete: (id: string | number) => + ['mutation', 'membershiptype', 'delete', id] as const, +} as const; export const appGrantMutationKeys = { /** All appGrant mutation keys */ all: ['mutation', 'appgrant'] as const, /** Create appGrant mutation key */ create: () => ['mutation', 'appgrant', 'create'] as const, @@ -277,24 +304,6 @@ export const appGrantMutationKeys = { /** Delete appGrant mutation key */ delete: (id: string | number) => ['mutation', 'appgrant', 'delete', id] as const, } as const; -export const appMembershipDefaultMutationKeys = { - /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, - /** Create appMembershipDefault mutation key */ create: () => - ['mutation', 'appmembershipdefault', 'create'] as const, - /** Update appMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'appmembershipdefault', 'update', id] as const, - /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'appmembershipdefault', 'delete', id] as const, -} as const; -export const orgMembershipDefaultMutationKeys = { - /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, - /** Create orgMembershipDefault mutation key */ create: () => - ['mutation', 'orgmembershipdefault', 'create'] as const, - /** Update orgMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'update', id] as const, - /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'delete', id] as const, -} as const; export const orgClaimedInviteMutationKeys = { /** All orgClaimedInvite mutation keys */ all: ['mutation', 'orgclaimedinvite'] as const, /** Create orgClaimedInvite mutation key */ create: () => @@ -304,24 +313,6 @@ export const orgClaimedInviteMutationKeys = { /** Delete orgClaimedInvite mutation key */ delete: (id: string | number) => ['mutation', 'orgclaimedinvite', 'delete', id] as const, } as const; -export const appLimitEventMutationKeys = { - /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, - /** Create appLimitEvent mutation key */ create: () => - ['mutation', 'applimitevent', 'create'] as const, - /** Update appLimitEvent mutation key */ update: (id: string | number) => - ['mutation', 'applimitevent', 'update', id] as const, - /** Delete appLimitEvent mutation key */ delete: (id: string | number) => - ['mutation', 'applimitevent', 'delete', id] as const, -} as const; -export const orgLimitEventMutationKeys = { - /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, - /** Create orgLimitEvent mutation key */ create: () => - ['mutation', 'orglimitevent', 'create'] as const, - /** Update orgLimitEvent mutation key */ update: (id: string | number) => - ['mutation', 'orglimitevent', 'update', id] as const, - /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitevent', 'delete', id] as const, -} as const; export const orgGrantMutationKeys = { /** All orgGrant mutation keys */ all: ['mutation', 'orggrant'] as const, /** Create orgGrant mutation key */ create: () => ['mutation', 'orggrant', 'create'] as const, @@ -330,15 +321,6 @@ export const orgGrantMutationKeys = { /** Delete orgGrant mutation key */ delete: (id: string | number) => ['mutation', 'orggrant', 'delete', id] as const, } as const; -export const orgChartEdgeMutationKeys = { - /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, - /** Create orgChartEdge mutation key */ create: () => - ['mutation', 'orgchartedge', 'create'] as const, - /** Update orgChartEdge mutation key */ update: (id: string | number) => - ['mutation', 'orgchartedge', 'update', id] as const, - /** Delete orgChartEdge mutation key */ delete: (id: string | number) => - ['mutation', 'orgchartedge', 'delete', id] as const, -} as const; export const usageSnapshotMutationKeys = { /** All usageSnapshot mutation keys */ all: ['mutation', 'usagesnapshot'] as const, /** Create usageSnapshot mutation key */ create: () => @@ -348,21 +330,23 @@ export const usageSnapshotMutationKeys = { /** Delete usageSnapshot mutation key */ delete: (id: string | number) => ['mutation', 'usagesnapshot', 'delete', id] as const, } as const; -export const appLimitMutationKeys = { - /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, - /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, - /** Update appLimit mutation key */ update: (id: string | number) => - ['mutation', 'applimit', 'update', id] as const, - /** Delete appLimit mutation key */ delete: (id: string | number) => - ['mutation', 'applimit', 'delete', id] as const, +export const appLimitEventMutationKeys = { + /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, + /** Create appLimitEvent mutation key */ create: () => + ['mutation', 'applimitevent', 'create'] as const, + /** Update appLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'applimitevent', 'update', id] as const, + /** Delete appLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'applimitevent', 'delete', id] as const, } as const; -export const appInviteMutationKeys = { - /** All appInvite mutation keys */ all: ['mutation', 'appinvite'] as const, - /** Create appInvite mutation key */ create: () => ['mutation', 'appinvite', 'create'] as const, - /** Update appInvite mutation key */ update: (id: string | number) => - ['mutation', 'appinvite', 'update', id] as const, - /** Delete appInvite mutation key */ delete: (id: string | number) => - ['mutation', 'appinvite', 'delete', id] as const, +export const orgLimitEventMutationKeys = { + /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, + /** Create orgLimitEvent mutation key */ create: () => + ['mutation', 'orglimitevent', 'create'] as const, + /** Update orgLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'orglimitevent', 'update', id] as const, + /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitevent', 'delete', id] as const, } as const; export const orgMembershipSettingMutationKeys = { /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, @@ -373,23 +357,6 @@ export const orgMembershipSettingMutationKeys = { /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => ['mutation', 'orgmembershipsetting', 'delete', id] as const, } as const; -export const orgLimitAggregateMutationKeys = { - /** All orgLimitAggregate mutation keys */ all: ['mutation', 'orglimitaggregate'] as const, - /** Create orgLimitAggregate mutation key */ create: () => - ['mutation', 'orglimitaggregate', 'create'] as const, - /** Update orgLimitAggregate mutation key */ update: (id: string | number) => - ['mutation', 'orglimitaggregate', 'update', id] as const, - /** Delete orgLimitAggregate mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitaggregate', 'delete', id] as const, -} as const; -export const orgLimitMutationKeys = { - /** All orgLimit mutation keys */ all: ['mutation', 'orglimit'] as const, - /** Create orgLimit mutation key */ create: () => ['mutation', 'orglimit', 'create'] as const, - /** Update orgLimit mutation key */ update: (id: string | number) => - ['mutation', 'orglimit', 'update', id] as const, - /** Delete orgLimit mutation key */ delete: (id: string | number) => - ['mutation', 'orglimit', 'delete', id] as const, -} as const; export const orgMemberProfileMutationKeys = { /** All orgMemberProfile mutation keys */ all: ['mutation', 'orgmemberprofile'] as const, /** Create orgMemberProfile mutation key */ create: () => @@ -408,13 +375,13 @@ export const appMembershipMutationKeys = { /** Delete appMembership mutation key */ delete: (id: string | number) => ['mutation', 'appmembership', 'delete', id] as const, } as const; -export const orgInviteMutationKeys = { - /** All orgInvite mutation keys */ all: ['mutation', 'orginvite'] as const, - /** Create orgInvite mutation key */ create: () => ['mutation', 'orginvite', 'create'] as const, - /** Update orgInvite mutation key */ update: (id: string | number) => - ['mutation', 'orginvite', 'update', id] as const, - /** Delete orgInvite mutation key */ delete: (id: string | number) => - ['mutation', 'orginvite', 'delete', id] as const, +export const appLimitMutationKeys = { + /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, + /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, + /** Update appLimit mutation key */ update: (id: string | number) => + ['mutation', 'applimit', 'update', id] as const, + /** Delete appLimit mutation key */ delete: (id: string | number) => + ['mutation', 'applimit', 'delete', id] as const, } as const; export const orgMembershipMutationKeys = { /** All orgMembership mutation keys */ all: ['mutation', 'orgmembership'] as const, @@ -425,6 +392,39 @@ export const orgMembershipMutationKeys = { /** Delete orgMembership mutation key */ delete: (id: string | number) => ['mutation', 'orgmembership', 'delete', id] as const, } as const; +export const orgLimitAggregateMutationKeys = { + /** All orgLimitAggregate mutation keys */ all: ['mutation', 'orglimitaggregate'] as const, + /** Create orgLimitAggregate mutation key */ create: () => + ['mutation', 'orglimitaggregate', 'create'] as const, + /** Update orgLimitAggregate mutation key */ update: (id: string | number) => + ['mutation', 'orglimitaggregate', 'update', id] as const, + /** Delete orgLimitAggregate mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitaggregate', 'delete', id] as const, +} as const; +export const orgLimitMutationKeys = { + /** All orgLimit mutation keys */ all: ['mutation', 'orglimit'] as const, + /** Create orgLimit mutation key */ create: () => ['mutation', 'orglimit', 'create'] as const, + /** Update orgLimit mutation key */ update: (id: string | number) => + ['mutation', 'orglimit', 'update', id] as const, + /** Delete orgLimit mutation key */ delete: (id: string | number) => + ['mutation', 'orglimit', 'delete', id] as const, +} as const; +export const appInviteMutationKeys = { + /** All appInvite mutation keys */ all: ['mutation', 'appinvite'] as const, + /** Create appInvite mutation key */ create: () => ['mutation', 'appinvite', 'create'] as const, + /** Update appInvite mutation key */ update: (id: string | number) => + ['mutation', 'appinvite', 'update', id] as const, + /** Delete appInvite mutation key */ delete: (id: string | number) => + ['mutation', 'appinvite', 'delete', id] as const, +} as const; +export const orgInviteMutationKeys = { + /** All orgInvite mutation keys */ all: ['mutation', 'orginvite'] as const, + /** Create orgInvite mutation key */ create: () => ['mutation', 'orginvite', 'create'] as const, + /** Update orgInvite mutation key */ update: (id: string | number) => + ['mutation', 'orginvite', 'update', id] as const, + /** Delete orgInvite mutation key */ delete: (id: string | number) => + ['mutation', 'orginvite', 'delete', id] as const, +} as const; // ============================================================================ // Custom Mutation Keys @@ -476,41 +476,41 @@ export const mutationKeys = { appLimitCredit: appLimitCreditMutationKeys, orgMember: orgMemberMutationKeys, appPermissionDefault: appPermissionDefaultMutationKeys, - appLimitCreditCode: appLimitCreditCodeMutationKeys, - orgPermissionDefault: orgPermissionDefaultMutationKeys, appAdminGrant: appAdminGrantMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, + orgPermissionDefault: orgPermissionDefaultMutationKeys, + appMembershipDefault: appMembershipDefaultMutationKeys, + orgAdminGrant: orgAdminGrantMutationKeys, + orgMembershipDefault: orgMembershipDefaultMutationKeys, + orgOwnerGrant: orgOwnerGrantMutationKeys, appLimitCapsDefault: appLimitCapsDefaultMutationKeys, orgLimitCapsDefault: orgLimitCapsDefaultMutationKeys, appLimitCap: appLimitCapMutationKeys, orgLimitCap: orgLimitCapMutationKeys, - orgAdminGrant: orgAdminGrantMutationKeys, - orgOwnerGrant: orgOwnerGrantMutationKeys, - membershipType: membershipTypeMutationKeys, + orgChartEdge: orgChartEdgeMutationKeys, appLimitDefault: appLimitDefaultMutationKeys, orgLimitDefault: orgLimitDefaultMutationKeys, orgLimitCredit: orgLimitCreditMutationKeys, + appLimitCreditCode: appLimitCreditCodeMutationKeys, appLimitWarning: appLimitWarningMutationKeys, - orgLimitWarning: orgLimitWarningMutationKeys, orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, appClaimedInvite: appClaimedInviteMutationKeys, + orgLimitWarning: orgLimitWarningMutationKeys, + membershipType: membershipTypeMutationKeys, appGrant: appGrantMutationKeys, - appMembershipDefault: appMembershipDefaultMutationKeys, - orgMembershipDefault: orgMembershipDefaultMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, - appLimitEvent: appLimitEventMutationKeys, - orgLimitEvent: orgLimitEventMutationKeys, orgGrant: orgGrantMutationKeys, - orgChartEdge: orgChartEdgeMutationKeys, usageSnapshot: usageSnapshotMutationKeys, - appLimit: appLimitMutationKeys, - appInvite: appInviteMutationKeys, + appLimitEvent: appLimitEventMutationKeys, + orgLimitEvent: orgLimitEventMutationKeys, orgMembershipSetting: orgMembershipSettingMutationKeys, - orgLimitAggregate: orgLimitAggregateMutationKeys, - orgLimit: orgLimitMutationKeys, orgMemberProfile: orgMemberProfileMutationKeys, appMembership: appMembershipMutationKeys, - orgInvite: orgInviteMutationKeys, + appLimit: appLimitMutationKeys, orgMembership: orgMembershipMutationKeys, + orgLimitAggregate: orgLimitAggregateMutationKeys, + orgLimit: orgLimitMutationKeys, + appInvite: appInviteMutationKeys, + orgInvite: orgInviteMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/index.ts b/sdk/constructive-react/src/admin/hooks/mutations/index.ts index 7997efc612..db303e6ebe 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -26,18 +26,27 @@ export * from './useDeleteOrgMemberMutation'; export * from './useCreateAppPermissionDefaultMutation'; export * from './useUpdateAppPermissionDefaultMutation'; export * from './useDeleteAppPermissionDefaultMutation'; -export * from './useCreateAppLimitCreditCodeMutation'; -export * from './useUpdateAppLimitCreditCodeMutation'; -export * from './useDeleteAppLimitCreditCodeMutation'; -export * from './useCreateOrgPermissionDefaultMutation'; -export * from './useUpdateOrgPermissionDefaultMutation'; -export * from './useDeleteOrgPermissionDefaultMutation'; export * from './useCreateAppAdminGrantMutation'; export * from './useUpdateAppAdminGrantMutation'; export * from './useDeleteAppAdminGrantMutation'; export * from './useCreateAppOwnerGrantMutation'; export * from './useUpdateAppOwnerGrantMutation'; export * from './useDeleteAppOwnerGrantMutation'; +export * from './useCreateOrgPermissionDefaultMutation'; +export * from './useUpdateOrgPermissionDefaultMutation'; +export * from './useDeleteOrgPermissionDefaultMutation'; +export * from './useCreateAppMembershipDefaultMutation'; +export * from './useUpdateAppMembershipDefaultMutation'; +export * from './useDeleteAppMembershipDefaultMutation'; +export * from './useCreateOrgAdminGrantMutation'; +export * from './useUpdateOrgAdminGrantMutation'; +export * from './useDeleteOrgAdminGrantMutation'; +export * from './useCreateOrgMembershipDefaultMutation'; +export * from './useUpdateOrgMembershipDefaultMutation'; +export * from './useDeleteOrgMembershipDefaultMutation'; +export * from './useCreateOrgOwnerGrantMutation'; +export * from './useUpdateOrgOwnerGrantMutation'; +export * from './useDeleteOrgOwnerGrantMutation'; export * from './useCreateAppLimitCapsDefaultMutation'; export * from './useUpdateAppLimitCapsDefaultMutation'; export * from './useDeleteAppLimitCapsDefaultMutation'; @@ -50,15 +59,9 @@ export * from './useDeleteAppLimitCapMutation'; export * from './useCreateOrgLimitCapMutation'; export * from './useUpdateOrgLimitCapMutation'; export * from './useDeleteOrgLimitCapMutation'; -export * from './useCreateOrgAdminGrantMutation'; -export * from './useUpdateOrgAdminGrantMutation'; -export * from './useDeleteOrgAdminGrantMutation'; -export * from './useCreateOrgOwnerGrantMutation'; -export * from './useUpdateOrgOwnerGrantMutation'; -export * from './useDeleteOrgOwnerGrantMutation'; -export * from './useCreateMembershipTypeMutation'; -export * from './useUpdateMembershipTypeMutation'; -export * from './useDeleteMembershipTypeMutation'; +export * from './useCreateOrgChartEdgeMutation'; +export * from './useUpdateOrgChartEdgeMutation'; +export * from './useDeleteOrgChartEdgeMutation'; export * from './useCreateAppLimitDefaultMutation'; export * from './useUpdateAppLimitDefaultMutation'; export * from './useDeleteAppLimitDefaultMutation'; @@ -68,68 +71,69 @@ export * from './useDeleteOrgLimitDefaultMutation'; export * from './useCreateOrgLimitCreditMutation'; export * from './useUpdateOrgLimitCreditMutation'; export * from './useDeleteOrgLimitCreditMutation'; +export * from './useCreateAppLimitCreditCodeMutation'; +export * from './useUpdateAppLimitCreditCodeMutation'; +export * from './useDeleteAppLimitCreditCodeMutation'; export * from './useCreateAppLimitWarningMutation'; export * from './useUpdateAppLimitWarningMutation'; export * from './useDeleteAppLimitWarningMutation'; -export * from './useCreateOrgLimitWarningMutation'; -export * from './useUpdateOrgLimitWarningMutation'; -export * from './useDeleteOrgLimitWarningMutation'; export * from './useCreateOrgChartEdgeGrantMutation'; export * from './useUpdateOrgChartEdgeGrantMutation'; export * from './useDeleteOrgChartEdgeGrantMutation'; export * from './useCreateAppClaimedInviteMutation'; export * from './useUpdateAppClaimedInviteMutation'; export * from './useDeleteAppClaimedInviteMutation'; +export * from './useCreateOrgLimitWarningMutation'; +export * from './useUpdateOrgLimitWarningMutation'; +export * from './useDeleteOrgLimitWarningMutation'; +export * from './useCreateMembershipTypeMutation'; +export * from './useUpdateMembershipTypeMutation'; +export * from './useDeleteMembershipTypeMutation'; export * from './useCreateAppGrantMutation'; export * from './useUpdateAppGrantMutation'; export * from './useDeleteAppGrantMutation'; -export * from './useCreateAppMembershipDefaultMutation'; -export * from './useUpdateAppMembershipDefaultMutation'; -export * from './useDeleteAppMembershipDefaultMutation'; -export * from './useCreateOrgMembershipDefaultMutation'; -export * from './useUpdateOrgMembershipDefaultMutation'; -export * from './useDeleteOrgMembershipDefaultMutation'; export * from './useCreateOrgClaimedInviteMutation'; export * from './useUpdateOrgClaimedInviteMutation'; export * from './useDeleteOrgClaimedInviteMutation'; -export * from './useCreateAppLimitEventMutation'; -export * from './useCreateOrgLimitEventMutation'; export * from './useCreateOrgGrantMutation'; export * from './useUpdateOrgGrantMutation'; export * from './useDeleteOrgGrantMutation'; -export * from './useCreateOrgChartEdgeMutation'; -export * from './useUpdateOrgChartEdgeMutation'; -export * from './useDeleteOrgChartEdgeMutation'; export * from './useCreateUsageSnapshotMutation'; export * from './useUpdateUsageSnapshotMutation'; export * from './useDeleteUsageSnapshotMutation'; -export * from './useCreateAppLimitMutation'; -export * from './useUpdateAppLimitMutation'; -export * from './useDeleteAppLimitMutation'; -export * from './useCreateAppInviteMutation'; -export * from './useUpdateAppInviteMutation'; -export * from './useDeleteAppInviteMutation'; +export * from './useCreateAppLimitEventMutation'; +export * from './useUpdateAppLimitEventMutation'; +export * from './useDeleteAppLimitEventMutation'; +export * from './useCreateOrgLimitEventMutation'; +export * from './useUpdateOrgLimitEventMutation'; +export * from './useDeleteOrgLimitEventMutation'; export * from './useCreateOrgMembershipSettingMutation'; export * from './useUpdateOrgMembershipSettingMutation'; export * from './useDeleteOrgMembershipSettingMutation'; -export * from './useCreateOrgLimitAggregateMutation'; -export * from './useUpdateOrgLimitAggregateMutation'; -export * from './useDeleteOrgLimitAggregateMutation'; -export * from './useCreateOrgLimitMutation'; -export * from './useUpdateOrgLimitMutation'; -export * from './useDeleteOrgLimitMutation'; export * from './useCreateOrgMemberProfileMutation'; export * from './useUpdateOrgMemberProfileMutation'; export * from './useDeleteOrgMemberProfileMutation'; export * from './useCreateAppMembershipMutation'; export * from './useUpdateAppMembershipMutation'; export * from './useDeleteAppMembershipMutation'; -export * from './useCreateOrgInviteMutation'; -export * from './useUpdateOrgInviteMutation'; -export * from './useDeleteOrgInviteMutation'; +export * from './useCreateAppLimitMutation'; +export * from './useUpdateAppLimitMutation'; +export * from './useDeleteAppLimitMutation'; export * from './useCreateOrgMembershipMutation'; export * from './useUpdateOrgMembershipMutation'; export * from './useDeleteOrgMembershipMutation'; +export * from './useCreateOrgLimitAggregateMutation'; +export * from './useUpdateOrgLimitAggregateMutation'; +export * from './useDeleteOrgLimitAggregateMutation'; +export * from './useCreateOrgLimitMutation'; +export * from './useUpdateOrgLimitMutation'; +export * from './useDeleteOrgLimitMutation'; +export * from './useCreateAppInviteMutation'; +export * from './useUpdateAppInviteMutation'; +export * from './useDeleteAppInviteMutation'; +export * from './useCreateOrgInviteMutation'; +export * from './useUpdateOrgInviteMutation'; +export * from './useDeleteOrgInviteMutation'; export * from './useSubmitAppInviteCodeMutation'; export * from './useSubmitOrgInviteCodeMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitEventMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitEventMutation.ts new file mode 100644 index 0000000000..2c97fe2946 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitEventMutation.ts @@ -0,0 +1,98 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { appLimitEventKeys } from '../query-keys'; +import { appLimitEventMutationKeys } from '../mutation-keys'; +import type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLimitEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLimitEventMutation( + params: { + selection: { + fields: S & AppLimitEventSelect; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitEventMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLimitEvent.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitEventMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitEventMutation.ts new file mode 100644 index 0000000000..a0a4a3b2a7 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitEventMutation.ts @@ -0,0 +1,98 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitEventKeys } from '../query-keys'; +import { orgLimitEventMutationKeys } from '../mutation-keys'; +import type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgLimitEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgLimitEventMutation( + params: { + selection: { + fields: S & OrgLimitEventSelect; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitEventMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgLimitEvent.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitEventMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitEventMutation.ts new file mode 100644 index 0000000000..7234a1d236 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { appLimitEventKeys } from '../query-keys'; +import { appLimitEventMutationKeys } from '../mutation-keys'; +import type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventPatch, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLimitEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLimitEventMutation( + params: { + selection: { + fields: S & AppLimitEventSelect; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } +>; +export function useUpdateAppLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitEventMutationKeys.all, + mutationFn: ({ + id, + appLimitEventPatch, + }: { + id: string; + appLimitEventPatch: AppLimitEventPatch; + }) => + getClient() + .appLimitEvent.update({ + where: { + id, + }, + data: appLimitEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitEventMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitEventMutation.ts new file mode 100644 index 0000000000..6809f97605 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitEventKeys } from '../query-keys'; +import { orgLimitEventMutationKeys } from '../mutation-keys'; +import type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventPatch, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgLimitEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgLimitEventMutation( + params: { + selection: { + fields: S & OrgLimitEventSelect; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } +>; +export function useUpdateOrgLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitEventMutationKeys.all, + mutationFn: ({ + id, + orgLimitEventPatch, + }: { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + }) => + getClient() + .orgLimitEvent.update({ + where: { + id, + }, + data: orgLimitEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/index.ts b/sdk/constructive-react/src/admin/hooks/queries/index.ts index 5e85250435..1bb379f58f 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/index.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/index.ts @@ -19,14 +19,20 @@ export * from './useOrgMembersQuery'; export * from './useOrgMemberQuery'; export * from './useAppPermissionDefaultsQuery'; export * from './useAppPermissionDefaultQuery'; -export * from './useAppLimitCreditCodesQuery'; -export * from './useAppLimitCreditCodeQuery'; -export * from './useOrgPermissionDefaultsQuery'; -export * from './useOrgPermissionDefaultQuery'; export * from './useAppAdminGrantsQuery'; export * from './useAppAdminGrantQuery'; export * from './useAppOwnerGrantsQuery'; export * from './useAppOwnerGrantQuery'; +export * from './useOrgPermissionDefaultsQuery'; +export * from './useOrgPermissionDefaultQuery'; +export * from './useAppMembershipDefaultsQuery'; +export * from './useAppMembershipDefaultQuery'; +export * from './useOrgAdminGrantsQuery'; +export * from './useOrgAdminGrantQuery'; +export * from './useOrgMembershipDefaultsQuery'; +export * from './useOrgMembershipDefaultQuery'; +export * from './useOrgOwnerGrantsQuery'; +export * from './useOrgOwnerGrantQuery'; export * from './useAppLimitCapsDefaultsQuery'; export * from './useAppLimitCapsDefaultQuery'; export * from './useOrgLimitCapsDefaultsQuery'; @@ -35,60 +41,56 @@ export * from './useAppLimitCapsQuery'; export * from './useAppLimitCapQuery'; export * from './useOrgLimitCapsQuery'; export * from './useOrgLimitCapQuery'; -export * from './useOrgAdminGrantsQuery'; -export * from './useOrgAdminGrantQuery'; -export * from './useOrgOwnerGrantsQuery'; -export * from './useOrgOwnerGrantQuery'; -export * from './useMembershipTypesQuery'; -export * from './useMembershipTypeQuery'; +export * from './useOrgChartEdgesQuery'; +export * from './useOrgChartEdgeQuery'; export * from './useAppLimitDefaultsQuery'; export * from './useAppLimitDefaultQuery'; export * from './useOrgLimitDefaultsQuery'; export * from './useOrgLimitDefaultQuery'; export * from './useOrgLimitCreditsQuery'; export * from './useOrgLimitCreditQuery'; +export * from './useAppLimitCreditCodesQuery'; +export * from './useAppLimitCreditCodeQuery'; export * from './useAppLimitWarningsQuery'; export * from './useAppLimitWarningQuery'; -export * from './useOrgLimitWarningsQuery'; -export * from './useOrgLimitWarningQuery'; export * from './useOrgChartEdgeGrantsQuery'; export * from './useOrgChartEdgeGrantQuery'; export * from './useAppClaimedInvitesQuery'; export * from './useAppClaimedInviteQuery'; +export * from './useOrgLimitWarningsQuery'; +export * from './useOrgLimitWarningQuery'; +export * from './useMembershipTypesQuery'; +export * from './useMembershipTypeQuery'; export * from './useAppGrantsQuery'; export * from './useAppGrantQuery'; -export * from './useAppMembershipDefaultsQuery'; -export * from './useAppMembershipDefaultQuery'; -export * from './useOrgMembershipDefaultsQuery'; -export * from './useOrgMembershipDefaultQuery'; export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; -export * from './useAppLimitEventsQuery'; -export * from './useOrgLimitEventsQuery'; export * from './useOrgGrantsQuery'; export * from './useOrgGrantQuery'; -export * from './useOrgChartEdgesQuery'; -export * from './useOrgChartEdgeQuery'; export * from './useUsageSnapshotsQuery'; export * from './useUsageSnapshotQuery'; -export * from './useAppLimitsQuery'; -export * from './useAppLimitQuery'; -export * from './useAppInvitesQuery'; -export * from './useAppInviteQuery'; +export * from './useAppLimitEventsQuery'; +export * from './useAppLimitEventQuery'; +export * from './useOrgLimitEventsQuery'; +export * from './useOrgLimitEventQuery'; export * from './useOrgMembershipSettingsQuery'; export * from './useOrgMembershipSettingQuery'; -export * from './useOrgLimitAggregatesQuery'; -export * from './useOrgLimitAggregateQuery'; -export * from './useOrgLimitsQuery'; -export * from './useOrgLimitQuery'; export * from './useOrgMemberProfilesQuery'; export * from './useOrgMemberProfileQuery'; export * from './useAppMembershipsQuery'; export * from './useAppMembershipQuery'; -export * from './useOrgInvitesQuery'; -export * from './useOrgInviteQuery'; +export * from './useAppLimitsQuery'; +export * from './useAppLimitQuery'; export * from './useOrgMembershipsQuery'; export * from './useOrgMembershipQuery'; +export * from './useOrgLimitAggregatesQuery'; +export * from './useOrgLimitAggregateQuery'; +export * from './useOrgLimitsQuery'; +export * from './useOrgLimitQuery'; +export * from './useAppInvitesQuery'; +export * from './useAppInviteQuery'; +export * from './useOrgInvitesQuery'; +export * from './useOrgInviteQuery'; export * from './useAppPermissionsGetPaddedMaskQuery'; export * from './useOrgPermissionsGetPaddedMaskQuery'; export * from './useOrgIsManagerOfQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventQuery.ts new file mode 100644 index 0000000000..3303e3895d --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { appLimitEventKeys } from '../query-keys'; +import type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitEventQueryKey = appLimitEventKeys.detail; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLimitEventQuery< + S extends AppLimitEventSelect, + TData = { + appLimitEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + appLimitEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchAppLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLimitEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; +}): Promise<{ + appLimitEvent: InferSelectResult | null; +}>; +export async function fetchAppLimitEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchAppLimitEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; + } +): Promise; +export async function prefetchAppLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventQuery.ts new file mode 100644 index 0000000000..1f471a60a7 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitEventKeys } from '../query-keys'; +import type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitEventQueryKey = orgLimitEventKeys.detail; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgLimitEventQuery< + S extends OrgLimitEventSelect, + TData = { + orgLimitEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchOrgLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgLimitEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; +}): Promise<{ + orgLimitEvent: InferSelectResult | null; +}>; +export async function fetchOrgLimitEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchOrgLimitEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; + } +): Promise; +export async function prefetchOrgLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/query-keys.ts b/sdk/constructive-react/src/admin/hooks/query-keys.ts index af275e5e23..766873286b 100644 --- a/sdk/constructive-react/src/admin/hooks/query-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/query-keys.ts @@ -100,24 +100,6 @@ export const appPermissionDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appPermissionDefaultKeys.details(), id] as const, } as const; -export const appLimitCreditCodeKeys = { - /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, - /** List query keys */ lists: () => [...appLimitCreditCodeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditCodeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditCodeKeys.details(), id] as const, -} as const; -export const orgPermissionDefaultKeys = { - /** All orgPermissionDefault queries */ all: ['orgpermissiondefault'] as const, - /** List query keys */ lists: () => [...orgPermissionDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgPermissionDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgPermissionDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgPermissionDefaultKeys.details(), id] as const, -} as const; export const appAdminGrantKeys = { /** All appAdminGrant queries */ all: ['appadmingrant'] as const, /** List query keys */ lists: () => [...appAdminGrantKeys.all, 'list'] as const, @@ -136,6 +118,51 @@ export const appOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appOwnerGrantKeys.details(), id] as const, } as const; +export const orgPermissionDefaultKeys = { + /** All orgPermissionDefault queries */ all: ['orgpermissiondefault'] as const, + /** List query keys */ lists: () => [...orgPermissionDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgPermissionDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgPermissionDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgPermissionDefaultKeys.details(), id] as const, +} as const; +export const appMembershipDefaultKeys = { + /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, + /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appMembershipDefaultKeys.details(), id] as const, +} as const; +export const orgAdminGrantKeys = { + /** All orgAdminGrant queries */ all: ['orgadmingrant'] as const, + /** List query keys */ lists: () => [...orgAdminGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgAdminGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgAdminGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgAdminGrantKeys.details(), id] as const, +} as const; +export const orgMembershipDefaultKeys = { + /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, + /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMembershipDefaultKeys.details(), id] as const, +} as const; +export const orgOwnerGrantKeys = { + /** All orgOwnerGrant queries */ all: ['orgownergrant'] as const, + /** List query keys */ lists: () => [...orgOwnerGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgOwnerGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgOwnerGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgOwnerGrantKeys.details(), id] as const, +} as const; export const appLimitCapsDefaultKeys = { /** All appLimitCapsDefault queries */ all: ['applimitcapsdefault'] as const, /** List query keys */ lists: () => [...appLimitCapsDefaultKeys.all, 'list'] as const, @@ -172,32 +199,14 @@ export const orgLimitCapKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitCapKeys.details(), id] as const, } as const; -export const orgAdminGrantKeys = { - /** All orgAdminGrant queries */ all: ['orgadmingrant'] as const, - /** List query keys */ lists: () => [...orgAdminGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgAdminGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgAdminGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgAdminGrantKeys.details(), id] as const, -} as const; -export const orgOwnerGrantKeys = { - /** All orgOwnerGrant queries */ all: ['orgownergrant'] as const, - /** List query keys */ lists: () => [...orgOwnerGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgOwnerGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgOwnerGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgOwnerGrantKeys.details(), id] as const, -} as const; -export const membershipTypeKeys = { - /** All membershipType queries */ all: ['membershiptype'] as const, - /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, +export const orgChartEdgeKeys = { + /** All orgChartEdge queries */ all: ['orgchartedge'] as const, + /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...membershipTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, + [...orgChartEdgeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipTypeKeys.details(), id] as const, + [...orgChartEdgeKeys.details(), id] as const, } as const; export const appLimitDefaultKeys = { /** All appLimitDefault queries */ all: ['applimitdefault'] as const, @@ -226,6 +235,15 @@ export const orgLimitCreditKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitCreditKeys.details(), id] as const, } as const; +export const appLimitCreditCodeKeys = { + /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, + /** List query keys */ lists: () => [...appLimitCreditCodeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCreditCodeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCreditCodeKeys.details(), id] as const, +} as const; export const appLimitWarningKeys = { /** All appLimitWarning queries */ all: ['applimitwarning'] as const, /** List query keys */ lists: () => [...appLimitWarningKeys.all, 'list'] as const, @@ -235,15 +253,6 @@ export const appLimitWarningKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appLimitWarningKeys.details(), id] as const, } as const; -export const orgLimitWarningKeys = { - /** All orgLimitWarning queries */ all: ['orglimitwarning'] as const, - /** List query keys */ lists: () => [...orgLimitWarningKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitWarningKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitWarningKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitWarningKeys.details(), id] as const, -} as const; export const orgChartEdgeGrantKeys = { /** All orgChartEdgeGrant queries */ all: ['orgchartedgegrant'] as const, /** List query keys */ lists: () => [...orgChartEdgeGrantKeys.all, 'list'] as const, @@ -262,32 +271,32 @@ export const appClaimedInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appClaimedInviteKeys.details(), id] as const, } as const; -export const appGrantKeys = { - /** All appGrant queries */ all: ['appgrant'] as const, - /** List query keys */ lists: () => [...appGrantKeys.all, 'list'] as const, +export const orgLimitWarningKeys = { + /** All orgLimitWarning queries */ all: ['orglimitwarning'] as const, + /** List query keys */ lists: () => [...orgLimitWarningKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appGrantKeys.all, 'detail'] as const, + [...orgLimitWarningKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitWarningKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appGrantKeys.details(), id] as const, + [...orgLimitWarningKeys.details(), id] as const, } as const; -export const appMembershipDefaultKeys = { - /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, - /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, +export const membershipTypeKeys = { + /** All membershipType queries */ all: ['membershiptype'] as const, + /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + [...membershipTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipDefaultKeys.details(), id] as const, + [...membershipTypeKeys.details(), id] as const, } as const; -export const orgMembershipDefaultKeys = { - /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, - /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, +export const appGrantKeys = { + /** All appGrant queries */ all: ['appgrant'] as const, + /** List query keys */ lists: () => [...appGrantKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + [...appGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appGrantKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipDefaultKeys.details(), id] as const, + [...appGrantKeys.details(), id] as const, } as const; export const orgClaimedInviteKeys = { /** All orgClaimedInvite queries */ all: ['orgclaimedinvite'] as const, @@ -298,6 +307,24 @@ export const orgClaimedInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgClaimedInviteKeys.details(), id] as const, } as const; +export const orgGrantKeys = { + /** All orgGrant queries */ all: ['orggrant'] as const, + /** List query keys */ lists: () => [...orgGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGrantKeys.details(), id] as const, +} as const; +export const usageSnapshotKeys = { + /** All usageSnapshot queries */ all: ['usagesnapshot'] as const, + /** List query keys */ lists: () => [...usageSnapshotKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...usageSnapshotKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...usageSnapshotKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...usageSnapshotKeys.details(), id] as const, +} as const; export const appLimitEventKeys = { /** All appLimitEvent queries */ all: ['applimitevent'] as const, /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, @@ -316,32 +343,32 @@ export const orgLimitEventKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitEventKeys.details(), id] as const, } as const; -export const orgGrantKeys = { - /** All orgGrant queries */ all: ['orggrant'] as const, - /** List query keys */ lists: () => [...orgGrantKeys.all, 'list'] as const, +export const orgMembershipSettingKeys = { + /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, + /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgGrantKeys.all, 'detail'] as const, + [...orgMembershipSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgGrantKeys.details(), id] as const, + [...orgMembershipSettingKeys.details(), id] as const, } as const; -export const orgChartEdgeKeys = { - /** All orgChartEdge queries */ all: ['orgchartedge'] as const, - /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, +export const orgMemberProfileKeys = { + /** All orgMemberProfile queries */ all: ['orgmemberprofile'] as const, + /** List query keys */ lists: () => [...orgMemberProfileKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgChartEdgeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, + [...orgMemberProfileKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMemberProfileKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgChartEdgeKeys.details(), id] as const, + [...orgMemberProfileKeys.details(), id] as const, } as const; -export const usageSnapshotKeys = { - /** All usageSnapshot queries */ all: ['usagesnapshot'] as const, - /** List query keys */ lists: () => [...usageSnapshotKeys.all, 'list'] as const, +export const appMembershipKeys = { + /** All appMembership queries */ all: ['appmembership'] as const, + /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...usageSnapshotKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...usageSnapshotKeys.all, 'detail'] as const, + [...appMembershipKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...usageSnapshotKeys.details(), id] as const, + [...appMembershipKeys.details(), id] as const, } as const; export const appLimitKeys = { /** All appLimit queries */ all: ['applimit'] as const, @@ -352,23 +379,14 @@ export const appLimitKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appLimitKeys.details(), id] as const, } as const; -export const appInviteKeys = { - /** All appInvite queries */ all: ['appinvite'] as const, - /** List query keys */ lists: () => [...appInviteKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appInviteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appInviteKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appInviteKeys.details(), id] as const, -} as const; -export const orgMembershipSettingKeys = { - /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, - /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, +export const orgMembershipKeys = { + /** All orgMembership queries */ all: ['orgmembership'] as const, + /** List query keys */ lists: () => [...orgMembershipKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgMembershipSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, + [...orgMembershipKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipSettingKeys.details(), id] as const, + [...orgMembershipKeys.details(), id] as const, } as const; export const orgLimitAggregateKeys = { /** All orgLimitAggregate queries */ all: ['orglimitaggregate'] as const, @@ -388,23 +406,14 @@ export const orgLimitKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitKeys.details(), id] as const, } as const; -export const orgMemberProfileKeys = { - /** All orgMemberProfile queries */ all: ['orgmemberprofile'] as const, - /** List query keys */ lists: () => [...orgMemberProfileKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMemberProfileKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMemberProfileKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMemberProfileKeys.details(), id] as const, -} as const; -export const appMembershipKeys = { - /** All appMembership queries */ all: ['appmembership'] as const, - /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, +export const appInviteKeys = { + /** All appInvite queries */ all: ['appinvite'] as const, + /** List query keys */ lists: () => [...appInviteKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appMembershipKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, + [...appInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appInviteKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipKeys.details(), id] as const, + [...appInviteKeys.details(), id] as const, } as const; export const orgInviteKeys = { /** All orgInvite queries */ all: ['orginvite'] as const, @@ -415,15 +424,6 @@ export const orgInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgInviteKeys.details(), id] as const, } as const; -export const orgMembershipKeys = { - /** All orgMembership queries */ all: ['orgmembership'] as const, - /** List query keys */ lists: () => [...orgMembershipKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMembershipKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipKeys.details(), id] as const, -} as const; // ============================================================================ // Custom Query Keys @@ -485,42 +485,42 @@ export const queryKeys = { appLimitCredit: appLimitCreditKeys, orgMember: orgMemberKeys, appPermissionDefault: appPermissionDefaultKeys, - appLimitCreditCode: appLimitCreditCodeKeys, - orgPermissionDefault: orgPermissionDefaultKeys, appAdminGrant: appAdminGrantKeys, appOwnerGrant: appOwnerGrantKeys, + orgPermissionDefault: orgPermissionDefaultKeys, + appMembershipDefault: appMembershipDefaultKeys, + orgAdminGrant: orgAdminGrantKeys, + orgMembershipDefault: orgMembershipDefaultKeys, + orgOwnerGrant: orgOwnerGrantKeys, appLimitCapsDefault: appLimitCapsDefaultKeys, orgLimitCapsDefault: orgLimitCapsDefaultKeys, appLimitCap: appLimitCapKeys, orgLimitCap: orgLimitCapKeys, - orgAdminGrant: orgAdminGrantKeys, - orgOwnerGrant: orgOwnerGrantKeys, - membershipType: membershipTypeKeys, + orgChartEdge: orgChartEdgeKeys, appLimitDefault: appLimitDefaultKeys, orgLimitDefault: orgLimitDefaultKeys, orgLimitCredit: orgLimitCreditKeys, + appLimitCreditCode: appLimitCreditCodeKeys, appLimitWarning: appLimitWarningKeys, - orgLimitWarning: orgLimitWarningKeys, orgChartEdgeGrant: orgChartEdgeGrantKeys, appClaimedInvite: appClaimedInviteKeys, + orgLimitWarning: orgLimitWarningKeys, + membershipType: membershipTypeKeys, appGrant: appGrantKeys, - appMembershipDefault: appMembershipDefaultKeys, - orgMembershipDefault: orgMembershipDefaultKeys, orgClaimedInvite: orgClaimedInviteKeys, - appLimitEvent: appLimitEventKeys, - orgLimitEvent: orgLimitEventKeys, orgGrant: orgGrantKeys, - orgChartEdge: orgChartEdgeKeys, usageSnapshot: usageSnapshotKeys, - appLimit: appLimitKeys, - appInvite: appInviteKeys, + appLimitEvent: appLimitEventKeys, + orgLimitEvent: orgLimitEventKeys, orgMembershipSetting: orgMembershipSettingKeys, - orgLimitAggregate: orgLimitAggregateKeys, - orgLimit: orgLimitKeys, orgMemberProfile: orgMemberProfileKeys, appMembership: appMembershipKeys, - orgInvite: orgInviteKeys, + appLimit: appLimitKeys, orgMembership: orgMembershipKeys, + orgLimitAggregate: orgLimitAggregateKeys, + orgLimit: orgLimitKeys, + appInvite: appInviteKeys, + orgInvite: orgInviteKeys, custom: customQueryKeys, } as const; /** Type representing all available query key scopes */ diff --git a/sdk/constructive-react/src/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md index 06cda7b6e2..803a02c3d0 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -30,42 +30,42 @@ const db = createClient({ | `appLimitCredit` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `orgOwnerGrant` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | +| `orgLimitWarning` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | | `usageSnapshot` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `orgLimitAggregate` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | -| `orgInvite` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | +| `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations @@ -355,37 +355,72 @@ const updated = await db.appPermissionDefault.update({ where: { id: '' }, const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.appAdminGrant` -CRUD operations for AppLimitCreditCode records. +CRUD operations for AppAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// List all appAdminGrant records +const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appOwnerGrant records +const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermissionDefault` @@ -419,9 +454,44 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appAdminGrant` +### `db.appMembershipDefault` -CRUD operations for AppAdminGrant records. +CRUD operations for AppMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | + +**Operations:** + +```typescript +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Get one by id +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Create +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgAdminGrant` + +CRUD operations for OrgAdminGrant records. **Fields:** @@ -430,6 +500,7 @@ CRUD operations for AppAdminGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -437,25 +508,60 @@ CRUD operations for AppAdminGrant records. **Operations:** ```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appOwnerGrant` +### `db.orgMembershipDefault` -CRUD operations for AppOwnerGrant records. +CRUD operations for OrgMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); + +// Create +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgOwnerGrant` + +CRUD operations for OrgOwnerGrant records. **Fields:** @@ -464,6 +570,7 @@ CRUD operations for AppOwnerGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -471,20 +578,20 @@ CRUD operations for AppOwnerGrant records. **Operations:** ```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgOwnerGrant records +const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -613,151 +720,83 @@ const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { n const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgChartEdge` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdge records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.appLimitDefault` -CRUD operations for OrgOwnerGrant records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.orgLimitDefault` -CRUD operations for MembershipType records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | +| `id` | UUID | No | | `name` | String | Yes | | `max` | BigInt | Yes | | `softMax` | BigInt | Yes | @@ -816,42 +855,42 @@ const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitWarning` +### `db.appLimitCreditCode` -CRUD operations for AppLimitWarning records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitWarning` +### `db.appLimitWarning` -CRUD operations for OrgLimitWarning records. +CRUD operations for AppLimitWarning records. **Fields:** @@ -862,25 +901,24 @@ CRUD operations for OrgLimitWarning records. | `warningType` | String | Yes | | `thresholdValue` | BigInt | Yes | | `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -954,6 +992,74 @@ const updated = await db.appClaimedInvite.update({ where: { id: '' }, data const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` +### `db.orgLimitWarning` + +CRUD operations for OrgLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgLimitWarning records +const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Create +const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipType` + +CRUD operations for MembershipType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | + +**Operations:** + +```typescript +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Get one by id +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Create +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +``` + ### `db.appGrant` CRUD operations for AppGrant records. @@ -989,109 +1095,109 @@ const updated = await db.appGrant.update({ where: { id: '' }, data: { perm const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.orgClaimedInvite` -CRUD operations for AppMembershipDefault records. +CRUD operations for OrgClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all orgClaimedInvite records +const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.orgGrant` -CRUD operations for OrgMembershipDefault records. +CRUD operations for OrgGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all orgGrant records +const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgClaimedInvite` +### `db.usageSnapshot` -CRUD operations for OrgClaimedInvite records. +CRUD operations for UsageSnapshot records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `databaseId` | UUID | Yes | +| `metricName` | String | Yes | +| `metricValue` | BigInt | Yes | +| `dimensions` | JSON | Yes | +| `capturedAt` | Datetime | Yes | | `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgClaimedInvite records -const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +// List all usageSnapshot records +const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); // Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); // Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitEvent` @@ -1102,6 +1208,8 @@ CRUD operations for AppLimitEvent records. | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | @@ -1116,10 +1224,10 @@ CRUD operations for AppLimitEvent records. ```typescript // List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); @@ -1139,6 +1247,8 @@ CRUD operations for OrgLimitEvent records. | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | @@ -1153,10 +1263,10 @@ CRUD operations for OrgLimitEvent records. ```typescript // List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); @@ -1168,45 +1278,51 @@ const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgGrant` +### `db.orgMembershipSetting` -CRUD operations for OrgGrant records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all orgGrant records -const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.orgChartEdge` +### `db.orgMemberProfile` -CRUD operations for OrgChartEdge records. +CRUD operations for OrgMemberProfile records. **Fields:** @@ -1215,63 +1331,76 @@ CRUD operations for OrgChartEdge records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `membershipId` | UUID | Yes | | `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | +| `actorId` | UUID | Yes | +| `displayName` | String | Yes | +| `email` | String | Yes | +| `title` | String | Yes | +| `bio` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); +// List all orgMemberProfile records +const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` -### `db.usageSnapshot` +### `db.appMembership` -CRUD operations for UsageSnapshot records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `databaseId` | UUID | Yes | -| `metricName` | String | Yes | -| `metricValue` | BigInt | Yes | -| `dimensions` | JSON | Yes | -| `capturedAt` | Datetime | Yes | | `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all usageSnapshot records -const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); +// List all appMembership records +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -1313,50 +1442,9 @@ const updated = await db.appLimit.update({ where: { id: '' }, data: { name const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.appInvite` - -CRUD operations for AppInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipSetting` +### `db.orgMembership` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgMembership records. **Fields:** @@ -1367,33 +1455,37 @@ CRUD operations for OrgMembershipSetting records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all orgMembership records +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitAggregate` @@ -1476,87 +1568,45 @@ const updated = await db.orgLimit.update({ where: { id: '' }, data: { name const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMemberProfile` - -CRUD operations for OrgMemberProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembership` +### `db.appInvite` -CRUD operations for AppMembership records. +CRUD operations for AppInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `profileId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +// List all appInvite records +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` @@ -1603,52 +1653,6 @@ const updated = await db.orgInvite.update({ where: { id: '' }, data: { ema const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.appPermissionsGetPaddedMask` diff --git a/sdk/constructive-react/src/admin/orm/index.ts b/sdk/constructive-react/src/admin/orm/index.ts index ceecedd2a4..516ca45219 100644 --- a/sdk/constructive-react/src/admin/orm/index.ts +++ b/sdk/constructive-react/src/admin/orm/index.ts @@ -14,42 +14,42 @@ import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; import { AppLimitCreditModel } from './models/appLimitCredit'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; import { AppLimitCapModel } from './models/appLimitCap'; import { OrgLimitCapModel } from './models/orgLimitCap'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { MembershipTypeModel } from './models/membershipType'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitCreditModel } from './models/orgLimitCredit'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; +import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { MembershipTypeModel } from './models/membershipType'; import { AppGrantModel } from './models/appGrant'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgGrantModel } from './models/orgGrant'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppLimitModel } from './models/appLimit'; -import { AppInviteModel } from './models/appInvite'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; -import { OrgLimitModel } from './models/orgLimit'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; import { AppMembershipModel } from './models/appMembership'; -import { OrgInviteModel } from './models/orgInvite'; +import { AppLimitModel } from './models/appLimit'; import { OrgMembershipModel } from './models/orgMembership'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; +import { OrgLimitModel } from './models/orgLimit'; +import { AppInviteModel } from './models/appInvite'; +import { OrgInviteModel } from './models/orgInvite'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -94,42 +94,42 @@ export function createClient(config: OrmClientConfig) { appLimitCredit: new AppLimitCreditModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgAdminGrant: new OrgAdminGrantModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + orgOwnerGrant: new OrgOwnerGrantModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), appLimitCap: new AppLimitCapModel(client), orgLimitCap: new OrgLimitCapModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - membershipType: new MembershipTypeModel(client), + orgChartEdge: new OrgChartEdgeModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitCredit: new OrgLimitCreditModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), appLimitWarning: new AppLimitWarningModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), + orgLimitWarning: new OrgLimitWarningModel(client), + membershipType: new MembershipTypeModel(client), appGrant: new AppGrantModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), orgGrant: new OrgGrantModel(client), - orgChartEdge: new OrgChartEdgeModel(client), usageSnapshot: new UsageSnapshotModel(client), - appLimit: new AppLimitModel(client), - appInvite: new AppInviteModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), - orgLimitAggregate: new OrgLimitAggregateModel(client), - orgLimit: new OrgLimitModel(client), orgMemberProfile: new OrgMemberProfileModel(client), appMembership: new AppMembershipModel(client), - orgInvite: new OrgInviteModel(client), + appLimit: new AppLimitModel(client), orgMembership: new OrgMembershipModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), + orgLimit: new OrgLimitModel(client), + appInvite: new AppInviteModel(client), + orgInvite: new OrgInviteModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts index 0e9e56aec5..1c919079d0 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -316,17 +316,27 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { +/** Records of admin role grants and revocations between members */ +export interface AppAdminGrant { id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Records of ownership transfers and grants between members */ +export interface AppOwnerGrant { + id: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { @@ -336,24 +346,52 @@ export interface OrgPermissionDefault { /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} /** Records of admin role grants and revocations between members */ -export interface AppAdminGrant { +export interface OrgAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} /** Records of ownership transfers and grants between members */ -export interface AppOwnerGrant { +export interface OrgOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -394,46 +432,21 @@ export interface OrgLimitCap { /** Override cap value for this entity */ max?: string | null; } -/** Records of admin role grants and revocations between members */ -export interface OrgAdminGrant { +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - /** The entity (org or group) this admin grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface OrgOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - /** The entity (org or group) this ownership grant applies to */ + /** Organization this hierarchy edge belongs to */ entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; } /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { @@ -471,20 +484,20 @@ export interface OrgLimitCredit { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string | null; } -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; } /** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { +export interface AppLimitWarning { id: string; /** Limit name this warning applies to (must match a default_limits entry) */ name?: string | null; @@ -494,8 +507,6 @@ export interface OrgLimitWarning { thresholdValue?: string | null; /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -529,6 +540,35 @@ export interface AppClaimedInvite { createdAt?: string | null; updatedAt?: string | null; } +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface OrgLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; +} /** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; @@ -542,30 +582,6 @@ export interface AppGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; @@ -579,8 +595,40 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ +export interface OrgGrant { + id: string; + /** Bitmask of permissions being granted or revoked */ + permissions?: string | null; + /** True to grant the permissions, false to revoke them */ + isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ + actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ +export interface UsageSnapshot { + /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ + databaseId?: string | null; + /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ + metricName?: string | null; + /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ + metricValue?: string | null; + /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ + dimensions?: Record | null; + /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ + capturedAt?: string | null; + id: string; +} /** Append-only log of limit events for historical reporting and audit */ export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -602,6 +650,9 @@ export interface AppLimitEvent { } /** Append-only log of limit events for historical reporting and audit */ export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -621,50 +672,82 @@ export interface OrgLimitEvent { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ -export interface OrgGrant { +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - /** The entity (org or group) this permission grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; } -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { +/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ +export interface OrgMemberProfile { id: string; createdAt?: string | null; updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ + /** References the membership this profile belongs to (1:1) */ + membershipId?: string | null; + /** References the entity this profile belongs to (used for RLS lookups) */ entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; + /** References the user who owns this profile (for self-edit RLS) */ + actorId?: string | null; + /** Display name shown to other entity members */ + displayName?: string | null; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string | null; + /** Job title or role description visible to other entity members */ + title?: string | null; + /** Short biography visible to other entity members */ + bio?: string | null; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage | null; } -/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ -export interface UsageSnapshot { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string | null; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string | null; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string | null; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: Record | null; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string | null; +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + profileId?: string | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { @@ -690,57 +773,38 @@ export interface AppLimit { /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; } -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface OrgMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; - /** References the entity these settings apply to */ + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean | null; + profileId?: string | null; } /** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ export interface OrgLimitAggregate { @@ -793,56 +857,31 @@ export interface OrgLimit { periodCredits?: string | null; entityId?: string | null; } -/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ -export interface OrgMemberProfile { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string | null; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string | null; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string | null; - /** Display name shown to other entity members */ - displayName?: string | null; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string | null; - /** Job title or role description visible to other entity members */ - title?: string | null; - /** Short biography visible to other entity members */ - bio?: string | null; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { id: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ + data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { @@ -875,39 +914,6 @@ export interface OrgInvite { updatedAt?: string | null; entityId?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface OrgMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - /** References the entity (org or group) this membership belongs to */ - entityId?: string | null; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean | null; - profileId?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -937,20 +943,18 @@ export interface AppLimitCreditRelations { } export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} +export interface OrgPermissionDefaultRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgAdminGrantRelations {} +export interface OrgMembershipDefaultRelations {} +export interface OrgOwnerGrantRelations {} export interface AppLimitCapsDefaultRelations {} export interface OrgLimitCapsDefaultRelations {} export interface AppLimitCapRelations {} export interface OrgLimitCapRelations {} -export interface OrgAdminGrantRelations {} -export interface OrgOwnerGrantRelations {} -export interface MembershipTypeRelations {} +export interface OrgChartEdgeRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; @@ -961,32 +965,34 @@ export interface OrgLimitDefaultRelations { export interface OrgLimitCreditRelations { defaultLimit?: OrgLimitDefault | null; } +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} export interface AppLimitWarningRelations {} -export interface OrgLimitWarningRelations {} export interface OrgChartEdgeGrantRelations {} export interface AppClaimedInviteRelations {} -export interface AppGrantRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations {} +export interface OrgLimitWarningRelations {} +export interface MembershipTypeRelations {} +export interface AppGrantRelations {} export interface OrgClaimedInviteRelations {} -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface OrgGrantRelations {} -export interface OrgChartEdgeRelations {} export interface UsageSnapshotRelations {} -export interface AppLimitRelations {} -export interface AppInviteRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface OrgMembershipSettingRelations {} -export interface OrgLimitAggregateRelations {} -export interface OrgLimitRelations {} export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } export interface AppMembershipRelations {} -export interface OrgInviteRelations {} +export interface AppLimitRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } +export interface OrgLimitAggregateRelations {} +export interface OrgLimitRelations {} +export interface AppInviteRelations {} +export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & OrgGetManagersRecordRelations; @@ -1002,46 +1008,46 @@ export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelatio export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; +export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & + OrgPermissionDefaultRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; +export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; +export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; -export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; +export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { userId?: boolean; @@ -1107,42 +1113,59 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { +export type AppAdminGrantSelect = { id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type AppOwnerGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type OrgPermissionDefaultSelect = { id?: boolean; permissions?: boolean; entityId?: boolean; }; -export type AppAdminGrantSelect = { +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; }; -export type AppOwnerGrantSelect = { +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; +}; +export type OrgOwnerGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1169,31 +1192,15 @@ export type OrgLimitCapSelect = { entityId?: boolean; max?: boolean; }; -export type OrgAdminGrantSelect = { +export type OrgChartEdgeSelect = { id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; -}; -export type OrgOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; }; export type AppLimitDefaultSelect = { id?: boolean; @@ -1237,20 +1244,31 @@ export type OrgLimitCreditSelect = { select: OrgLimitDefaultSelect; }; }; -export type AppLimitWarningSelect = { +export type AppLimitCreditCodeSelect = { id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; }; -export type OrgLimitWarningSelect = { +export type AppLimitWarningSelect = { id?: boolean; name?: boolean; warningType?: boolean; thresholdValue?: boolean; taskIdentifier?: boolean; - entityId?: boolean; }; export type OrgChartEdgeGrantSelect = { id?: boolean; @@ -1271,6 +1289,22 @@ export type AppClaimedInviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; + entityId?: boolean; +}; +export type MembershipTypeSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; +}; export type AppGrantSelect = { id?: boolean; permissions?: boolean; @@ -1280,34 +1314,36 @@ export type AppGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppMembershipDefaultSelect = { +export type OrgClaimedInviteSelect = { id?: boolean; + data?: boolean; + senderId?: boolean; + receiverId?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; + entityId?: boolean; }; -export type OrgMembershipDefaultSelect = { +export type OrgGrantSelect = { id?: boolean; + permissions?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; }; -export type OrgClaimedInviteSelect = { +export type UsageSnapshotSelect = { + databaseId?: boolean; + metricName?: boolean; + metricValue?: boolean; + dimensions?: boolean; + capturedAt?: boolean; id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; }; export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1319,6 +1355,8 @@ export type AppLimitEventSelect = { reason?: boolean; }; export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1329,39 +1367,61 @@ export type OrgLimitEventSelect = { maxAtEvent?: boolean; reason?: boolean; }; -export type OrgGrantSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; }; -export type OrgChartEdgeSelect = { +export type OrgMemberProfileSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; + membershipId?: boolean; entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; -}; -export type UsageSnapshotSelect = { - databaseId?: boolean; - metricName?: boolean; - metricValue?: boolean; - dimensions?: boolean; - capturedAt?: boolean; - id?: boolean; -}; -export type AppLimitSelect = { - id?: boolean; - name?: boolean; actorId?: boolean; - num?: boolean; + displayName?: boolean; + email?: boolean; + title?: boolean; + bio?: boolean; + profilePicture?: boolean; + membership?: { + select: OrgMembershipSelect; + }; +}; +export type AppMembershipSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + profileId?: boolean; +}; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; max?: boolean; softMax?: boolean; windowStart?: boolean; @@ -1370,36 +1430,28 @@ export type AppLimitSelect = { purchasedCredits?: boolean; periodCredits?: boolean; }; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type OrgMembershipSettingSelect = { +export type OrgMembershipSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; + isReadOnly?: boolean; + profileId?: boolean; + orgMemberProfileByMembershipId?: { + select: OrgMemberProfileSelect; + }; }; export type OrgLimitAggregateSelect = { id?: boolean; @@ -1429,39 +1481,20 @@ export type OrgLimitSelect = { periodCredits?: boolean; entityId?: boolean; }; -export type OrgMemberProfileSelect = { +export type AppInviteSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - membershipId?: boolean; - entityId?: boolean; - actorId?: boolean; - displayName?: boolean; email?: boolean; - title?: boolean; - bio?: boolean; - profilePicture?: boolean; - membership?: { - select: OrgMembershipSelect; - }; -}; -export type AppMembershipSelect = { - id?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -1481,29 +1514,6 @@ export type OrgInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; -export type OrgMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - entityId?: boolean; - isReadOnly?: boolean; - profileId?: boolean; - orgMemberProfileByMembershipId?: { - select: OrgMemberProfileSelect; - }; -}; // ============ Table Filter Types ============ export interface OrgGetManagersRecordFilter { userId?: UUIDFilter; @@ -1643,31 +1653,45 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { +export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; + and?: AppAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; + or?: AppAdminGrantFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; + not?: AppAdminGrantFilter; +} +export interface AppOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppOwnerGrantFilter[]; + /** Negates the expression. */ + not?: AppOwnerGrantFilter; } export interface OrgPermissionDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1683,13 +1707,37 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } -export interface AppAdminGrantFilter { +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1697,19 +1745,43 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; + and?: OrgAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; + or?: OrgAdminGrantFilter[]; /** Negates the expression. */ - not?: AppAdminGrantFilter; + not?: OrgAdminGrantFilter; } -export interface AppOwnerGrantFilter { +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} +export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1717,11 +1789,11 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; + and?: OrgOwnerGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; + or?: OrgOwnerGrantFilter[]; /** Negates the expression. */ - not?: AppOwnerGrantFilter; + not?: OrgOwnerGrantFilter; } export interface AppLimitCapsDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1783,69 +1855,29 @@ export interface OrgLimitCapFilter { /** Negates the expression. */ not?: OrgLimitCapFilter; } -export interface OrgAdminGrantFilter { +export interface OrgChartEdgeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; -} -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: OrgChartEdgeFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: OrgChartEdgeFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: OrgChartEdgeFilter; } export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1915,25 +1947,33 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } -export interface AppLimitWarningFilter { +export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; + and?: AppLimitCreditCodeFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; + or?: AppLimitCreditCodeFilter[]; /** Negates the expression. */ - not?: AppLimitWarningFilter; + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -export interface OrgLimitWarningFilter { +export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1944,14 +1984,12 @@ export interface OrgLimitWarningFilter { thresholdValue?: BigIntFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; + and?: AppLimitWarningFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; + or?: AppLimitWarningFilter[]; /** Negates the expression. */ - not?: OrgLimitWarningFilter; + not?: AppLimitWarningFilter; } export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ @@ -1997,6 +2035,46 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} export interface AppGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2019,71 +2097,75 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } -export interface AppMembershipDefaultFilter { +export interface OrgClaimedInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; + and?: OrgClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; + or?: OrgClaimedInviteFilter[]; /** Negates the expression. */ - not?: AppMembershipDefaultFilter; + not?: OrgClaimedInviteFilter; } -export interface OrgMembershipDefaultFilter { +export interface OrgGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: OrgGrantFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: OrgGrantFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; + not?: OrgGrantFilter; } -export interface OrgClaimedInviteFilter { +export interface UsageSnapshotFilter { + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `metricName` field. */ + metricName?: StringFilter; + /** Filter by the object’s `metricValue` field. */ + metricValue?: BigIntFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: JSONFilter; + /** Filter by the object’s `capturedAt` field. */ + capturedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; + and?: UsageSnapshotFilter[]; /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; + or?: UsageSnapshotFilter[]; /** Negates the expression. */ - not?: OrgClaimedInviteFilter; + not?: UsageSnapshotFilter; } export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2110,6 +2192,10 @@ export interface AppLimitEventFilter { not?: AppLimitEventFilter; } export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2135,147 +2221,17 @@ export interface OrgLimitEventFilter { /** Negates the expression. */ not?: OrgLimitEventFilter; } -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; -} -export interface OrgChartEdgeFilter { +export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; - /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; - /** Negates the expression. */ - not?: UsageSnapshotFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; -} -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; -} -export interface OrgMembershipSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `deleteMemberCascadeChildren` field. */ @@ -2301,70 +2257,6 @@ export interface OrgMembershipSettingFilter { /** Negates the expression. */ not?: OrgMembershipSettingFilter; } -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; -} -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} export interface OrgMemberProfileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2437,43 +2329,35 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } -export interface OrgInviteFilter { +export interface AppLimitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; + and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; + or?: AppLimitFilter[]; /** Negates the expression. */ - not?: OrgInviteFilter; + not?: AppLimitFilter; } export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ @@ -2523,32 +2407,166 @@ export interface OrgMembershipFilter { /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; } -// ============ OrderBy Types ============ -export type OrgGetManagersRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type OrgGetSubordinatesRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `reserved` field. */ + reserved?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} +export interface AppInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: AppInviteFilter[]; + /** Negates the expression. */ + not?: AppInviteFilter; +} +export interface OrgInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgInviteFilter[]; + /** Negates the expression. */ + not?: OrgInviteFilter; +} +// ============ OrderBy Types ============ +export type OrgGetManagersRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type OrgGetSubordinatesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type AppPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' | 'BITNUM_DESC' | 'BITSTR_ASC' | 'BITSTR_DESC' @@ -2628,20 +2646,38 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = +export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2652,7 +2688,25 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppAdminGrantOrderBy = +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2662,13 +2716,33 @@ export type AppAdminGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppOwnerGrantOrderBy = +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2678,6 +2752,8 @@ export type AppOwnerGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -2728,58 +2804,26 @@ export type OrgLimitCapOrderBy = | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type OrgAdminGrantOrderBy = +export type OrgChartEdgeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2822,21 +2866,21 @@ export type OrgLimitCreditOrderBy = | 'CREDIT_TYPE_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type AppLimitWarningOrderBy = +export type AppLimitCreditCodeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type OrgLimitWarningOrderBy = + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2849,9 +2893,7 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'TASK_IDENTIFIER_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2890,6 +2932,38 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type MembershipTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type AppGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2908,62 +2982,68 @@ export type AppGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = +export type OrgClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgClaimedInviteOrderBy = + | 'UPDATED_AT_DESC'; +export type UsageSnapshotOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'METRIC_NAME_ASC' + | 'METRIC_NAME_DESC' + | 'METRIC_VALUE_ASC' + | 'METRIC_VALUE_DESC' + | 'DIMENSIONS_ASC' + | 'DIMENSIONS_DESC' + | 'CAPTURED_AT_ASC' + | 'CAPTURED_AT_DESC' | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ID_DESC'; export type AppLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -2984,6 +3064,12 @@ export type AppLimitEventOrderBy = | 'REASON_DESC'; export type OrgLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -3002,27 +3088,39 @@ export type OrgLimitEventOrderBy = | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type OrgGrantOrderBy = +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgChartEdgeOrderBy = + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +export type OrgMemberProfileOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3032,46 +3130,72 @@ export type OrgChartEdgeOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'MEMBERSHIP_ID_ASC' + | 'MEMBERSHIP_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type UsageSnapshotOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC'; -export type AppLimitOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'BIO_ASC' + | 'BIO_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC'; +export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' @@ -3084,37 +3208,7 @@ export type AppLimitOrderBy = | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC'; -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMembershipSettingOrderBy = +export type OrgMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3128,24 +3222,32 @@ export type OrgMembershipSettingOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_EXTERNAL_ASC' + | 'IS_EXTERNAL_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgLimitAggregateOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3202,68 +3304,36 @@ export type OrgLimitOrderBy = | 'PERIOD_CREDITS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMemberProfileOrderBy = +export type AppInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; + | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3300,46 +3370,6 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; @@ -3539,31 +3569,51 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateAppAdminGrantInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + appAdminGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface AppAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + appAdminGrantPatch: AppAdminGrantPatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgPermissionDefaultInput { +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + appOwnerGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; +} +export interface DeleteAppOwnerGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgPermissionDefaultInput { clientMutationId?: string; orgPermissionDefault: { permissions?: string; @@ -3583,47 +3633,99 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppAdminGrantInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - appAdminGrant: { + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgAdminGrantInput { + clientMutationId?: string; + orgAdminGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppAdminGrantPatch { +export interface OrgAdminGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppAdminGrantInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - appAdminGrantPatch: AppAdminGrantPatch; + orgAdminGrantPatch: OrgAdminGrantPatch; } -export interface DeleteAppAdminGrantInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppOwnerGrantInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - appOwnerGrant: { + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + orgOwnerGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppOwnerGrantPatch { +export interface OrgOwnerGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppOwnerGrantInput { +export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; + orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface DeleteAppOwnerGrantInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3711,80 +3813,32 @@ export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; -} -export interface DeleteOrgAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgOwnerGrantInput { +export interface CreateOrgChartEdgeInput { clientMutationId?: string; - orgOwnerGrant: { - isGrant?: boolean; - actorId: string; + orgChartEdge: { entityId: string; - grantorId?: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; }; } -export interface OrgOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgChartEdgePatch { entityId?: string | null; - grantorId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateOrgChartEdgeInput { clientMutationId?: string; id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; + orgChartEdgePatch: OrgChartEdgePatch; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -3857,53 +3911,51 @@ export interface DeleteOrgLimitCreditInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitWarningInput { +export interface CreateAppLimitCreditCodeInput { clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; }; } -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; } -export interface UpdateAppLimitWarningInput { +export interface UpdateAppLimitCreditCodeInput { clientMutationId?: string; id: string; - appLimitWarningPatch: AppLimitWarningPatch; + appLimitCreditCodePatch: AppLimitCreditCodePatch; } -export interface DeleteAppLimitWarningInput { +export interface DeleteAppLimitCreditCodeInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitWarningInput { +export interface CreateAppLimitWarningInput { clientMutationId?: string; - orgLimitWarning: { + appLimitWarning: { name: string; warningType: string; thresholdValue: string; taskIdentifier: string; - entityId?: string; }; } -export interface OrgLimitWarningPatch { +export interface AppLimitWarningPatch { name?: string | null; warningType?: string | null; thresholdValue?: string | null; taskIdentifier?: string | null; - entityId?: string | null; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateAppLimitWarningInput { clientMutationId?: string; id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; + appLimitWarningPatch: AppLimitWarningPatch; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } @@ -3959,75 +4011,79 @@ export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAppGrantInput { +export interface CreateOrgLimitWarningInput { clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; + orgLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + entityId?: string; }; } -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; +export interface OrgLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; + entityId?: string | null; } -export interface UpdateAppGrantInput { +export interface UpdateOrgLimitWarningInput { clientMutationId?: string; id: string; - appGrantPatch: AppGrantPatch; + orgLimitWarningPatch: OrgLimitWarningPatch; } -export interface DeleteAppGrantInput { +export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; + }; } -export interface UpdateAppMembershipDefaultInput { +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; +} +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateOrgMembershipDefaultInput { +export interface CreateAppGrantInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + appGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface AppGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateAppGrantInput { clientMutationId?: string; id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + appGrantPatch: AppGrantPatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } @@ -4055,6 +4111,58 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface CreateOrgGrantInput { + clientMutationId?: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + orgGrantPatch: OrgGrantPatch; +} +export interface DeleteOrgGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateUsageSnapshotInput { + clientMutationId?: string; + usageSnapshot: { + databaseId: string; + metricName: string; + metricValue?: string; + dimensions?: Record; + capturedAt?: string; + }; +} +export interface UsageSnapshotPatch { + databaseId?: string | null; + metricName?: string | null; + metricValue?: string | null; + dimensions?: Record | null; + capturedAt?: string | null; +} +export interface UpdateUsageSnapshotInput { + clientMutationId?: string; + id: string; + usageSnapshotPatch: UsageSnapshotPatch; +} +export interface DeleteUsageSnapshotInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitEventInput { clientMutationId?: string; appLimitEvent: { @@ -4123,81 +4231,116 @@ export interface DeleteOrgLimitEventInput { clientMutationId?: string; id: string; } -export interface CreateOrgGrantInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; entityId: string; - grantorId?: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; entityId?: string | null; - grantorId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateOrgGrantInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - orgGrantPatch: OrgGrantPatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteOrgGrantInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface CreateOrgChartEdgeInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - orgChartEdge: { + orgMemberProfile: { + membershipId: string; entityId: string; - childId: string; - parentId?: string; - positionTitle?: string; - positionLevel?: number; + actorId: string; + displayName?: string; + email?: string; + title?: string; + bio?: string; + profilePicture?: ConstructiveInternalTypeImage; }; } -export interface OrgChartEdgePatch { +export interface OrgMemberProfilePatch { + membershipId?: string | null; entityId?: string | null; - childId?: string | null; - parentId?: string | null; - positionTitle?: string | null; - positionLevel?: number | null; + actorId?: string | null; + displayName?: string | null; + email?: string | null; + title?: string | null; + bio?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + profilePictureUpload?: File | null; } -export interface UpdateOrgChartEdgeInput { +export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; - orgChartEdgePatch: OrgChartEdgePatch; + orgMemberProfilePatch: OrgMemberProfilePatch; } -export interface DeleteOrgChartEdgeInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateUsageSnapshotInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - usageSnapshot: { - databaseId: string; - metricName: string; - metricValue?: string; - dimensions?: Record; - capturedAt?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface UsageSnapshotPatch { - databaseId?: string | null; - metricName?: string | null; - metricValue?: string | null; - dimensions?: Record | null; - capturedAt?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; } -export interface UpdateUsageSnapshotInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - usageSnapshotPatch: UsageSnapshotPatch; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteUsageSnapshotInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } @@ -4237,77 +4380,49 @@ export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } -export interface CreateAppInviteInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { + orgMembership: { createdBy?: string; updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; + isReadOnly?: boolean; + profileId?: string; }; } -export interface OrgMembershipSettingPatch { +export interface OrgMembershipPatch { createdBy?: string | null; updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isExternal?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; + isReadOnly?: boolean | null; + profileId?: string | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + orgMembershipPatch: OrgMembershipPatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } @@ -4387,78 +4502,39 @@ export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { +export interface CreateAppInviteInput { clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; + appInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; profileId?: string; + expiresAt?: string; }; } -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; +export interface AppInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; profileId?: string | null; + expiresAt?: string | null; } -export interface UpdateAppMembershipInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - appMembershipPatch: AppMembershipPatch; + appInvitePatch: AppInvitePatch; } -export interface DeleteAppMembershipInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } @@ -4504,58 +4580,8 @@ export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -4563,6 +4589,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, } as Record>; // ============ Custom Input Types (from schema) ============ export interface SubmitAppInviteCodeInput { @@ -4582,24 +4612,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitDefaultToManyAppLimitCreditFilter { /** Filters to entities where at least one related entity matches. */ @@ -4627,22 +4639,75 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } -/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ -export interface IntervalFilter { +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Equal to the specified value. */ - equalTo?: IntervalInput; + equalTo?: ConstructiveInternalTypeImage; /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; + notEqualTo?: ConstructiveInternalTypeImage; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: IntervalInput; + distinctFrom?: ConstructiveInternalTypeImage; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; + notDistinctFrom?: ConstructiveInternalTypeImage; /** Included in the specified list. */ - in?: IntervalInput[]; + in?: ConstructiveInternalTypeImage[]; /** Not included in the specified list. */ - notIn?: IntervalInput[]; + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; /** Less than the specified value. */ lessThan?: IntervalInput; /** Less than or equal to the specified value. */ @@ -4729,101 +4794,49 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; + and?: AppLimitCreditFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; + or?: AppLimitCreditFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; + not?: AppLimitCreditFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `creditCodeId` field. */ creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; + and?: AppLimitCreditCodeItemFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; + or?: AppLimitCreditCodeItemFilter[]; /** Negates the expression. */ - not?: AppLimitCreditFilter; + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } @@ -4852,6 +4865,23 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -4998,6 +5028,31 @@ export interface StringFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -5025,31 +5080,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ @@ -5513,64 +5543,109 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface CreateOrgPermissionDefaultPayload { +export interface CreateAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type CreateOrgPermissionDefaultPayloadSelect = { +export type CreateAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type UpdateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type DeleteAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type CreateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; export interface UpdateOrgPermissionDefaultPayload { @@ -5603,94 +5678,184 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; -export interface CreateAppAdminGrantPayload { +export interface CreateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type CreateAppAdminGrantPayloadSelect = { +export type CreateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface UpdateAppAdminGrantPayload { +export interface UpdateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type UpdateAppAdminGrantPayloadSelect = { +export type UpdateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface DeleteAppAdminGrantPayload { +export interface DeleteAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type DeleteAppAdminGrantPayloadSelect = { +export type DeleteAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface CreateAppOwnerGrantPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateAppOwnerGrantPayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateAppOwnerGrantPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateAppOwnerGrantPayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteAppOwnerGrantPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteAppOwnerGrantPayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type UpdateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type DeleteOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type CreateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type UpdateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type DeleteOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -5873,139 +6038,49 @@ export type DeleteOrgLimitCapPayloadSelect = { select: OrgLimitCapEdgeSelect; }; }; -export interface CreateOrgAdminGrantPayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type CreateOrgAdminGrantPayloadSelect = { +export type CreateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type UpdateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type DeleteOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -6143,6 +6218,51 @@ export type DeleteOrgLimitCreditPayloadSelect = { select: OrgLimitCreditEdgeSelect; }; }; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -6188,51 +6308,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; /** The `OrgChartEdgeGrant` that was created by this mutation. */ @@ -6323,139 +6398,139 @@ export type DeleteAppClaimedInvitePayloadSelect = { select: AppClaimedInviteEdgeSelect; }; }; -export interface CreateAppGrantPayload { +export interface CreateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type CreateAppGrantPayloadSelect = { +export type CreateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface UpdateAppGrantPayload { +export interface UpdateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type UpdateAppGrantPayloadSelect = { +export type UpdateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface DeleteAppGrantPayload { +export interface DeleteOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type DeleteAppGrantPayloadSelect = { +export type DeleteOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; export interface CreateOrgClaimedInvitePayload { @@ -6503,28 +6578,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -6570,51 +6623,6 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -export interface CreateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type CreateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface UpdateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type UpdateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type DeleteOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; export interface CreateUsageSnapshotPayload { clientMutationId?: string | null; /** The `UsageSnapshot` that was created by this mutation. */ @@ -6660,139 +6668,319 @@ export type DeleteUsageSnapshotPayloadSelect = { select: UsageSnapshotEdgeSelect; }; }; -export interface CreateAppLimitPayload { +export interface CreateAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type CreateAppLimitPayloadSelect = { +export type CreateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface UpdateAppLimitPayload { +export interface UpdateAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type UpdateAppLimitPayloadSelect = { +export type UpdateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface DeleteAppLimitPayload { +export interface DeleteAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type DeleteAppLimitPayloadSelect = { +export type DeleteAppLimitEventPayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface CreateAppInvitePayload { +export interface CreateOrgLimitEventPayload { clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } -export type CreateAppInvitePayloadSelect = { +export type CreateOrgLimitEventPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgLimitEvent?: { + select: OrgLimitEventSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface CreateOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} +export type CreateOrgMemberProfilePayloadSelect = { + clientMutationId?: boolean; + orgMemberProfile?: { + select: OrgMemberProfileSelect; + }; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; + }; +}; +export interface UpdateOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} +export type UpdateOrgMemberProfilePayloadSelect = { + clientMutationId?: boolean; + orgMemberProfile?: { + select: OrgMemberProfileSelect; + }; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; + }; +}; +export interface DeleteOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} +export type DeleteOrgMemberProfilePayloadSelect = { + clientMutationId?: boolean; + orgMemberProfile?: { + select: OrgMemberProfileSelect; + }; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; + }; +}; +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type CreateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; }; }; -export interface UpdateAppInvitePayload { +export interface UpdateAppLimitPayload { clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } -export type UpdateAppInvitePayloadSelect = { +export type UpdateAppLimitPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + appLimit?: { + select: AppLimitSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + appLimitEdge?: { + select: AppLimitEdgeSelect; }; }; -export interface DeleteAppInvitePayload { +export interface DeleteAppLimitPayload { clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } -export type DeleteAppInvitePayloadSelect = { +export type DeleteAppLimitPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + appLimit?: { + select: AppLimitSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + appLimitEdge?: { + select: AppLimitEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type UpdateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type DeleteOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; export interface CreateOrgLimitAggregatePayload { @@ -6885,94 +7073,49 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface CreateAppMembershipPayload { +export interface CreateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type CreateAppMembershipPayloadSelect = { +export type CreateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface UpdateAppMembershipPayload { +export interface UpdateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type UpdateAppMembershipPayloadSelect = { +export type UpdateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface DeleteAppMembershipPayload { +export interface DeleteAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type DeleteAppMembershipPayloadSelect = { +export type DeleteAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; export interface CreateOrgInvitePayload { @@ -7020,51 +7163,6 @@ export type DeleteOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -7166,16 +7264,28 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type AppAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAdminGrantSelect; + }; +}; +/** A `AppOwnerGrant` edge in the connection. */ +export interface AppOwnerGrantEdge { + cursor?: string | null; + /** The `AppOwnerGrant` at the end of the edge. */ + node?: AppOwnerGrant | null; +} +export type AppOwnerGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: AppOwnerGrantSelect; }; }; /** A `OrgPermissionDefault` edge in the connection. */ @@ -7190,28 +7300,52 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type AppAdminGrantEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppAdminGrantSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `AppOwnerGrant` edge in the connection. */ -export interface AppOwnerGrantEdge { +/** A `OrgAdminGrant` edge in the connection. */ +export interface OrgAdminGrantEdge { cursor?: string | null; - /** The `AppOwnerGrant` at the end of the edge. */ - node?: AppOwnerGrant | null; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; } -export type AppOwnerGrantEdgeSelect = { +export type OrgAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppOwnerGrantSelect; + select: OrgAdminGrantSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} +export type OrgOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgOwnerGrantSelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -7262,40 +7396,16 @@ export type OrgLimitCapEdgeSelect = { select: OrgLimitCapSelect; }; }; -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -export type OrgAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgAdminGrantSelect; - }; -}; -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { - cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; -} -export type OrgOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgOwnerGrantSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type MembershipTypeEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: OrgChartEdgeSelect; }; }; /** A `AppLimitDefault` edge in the connection. */ @@ -7334,28 +7444,28 @@ export type OrgLimitCreditEdgeSelect = { select: OrgLimitCreditSelect; }; }; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; } -export type AppLimitWarningEdgeSelect = { +export type AppLimitCreditCodeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitWarningSelect; + select: AppLimitCreditCodeSelect; }; }; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; } -export type OrgLimitWarningEdgeSelect = { +export type AppLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitWarningSelect; + select: AppLimitWarningSelect; }; }; /** A `OrgChartEdgeGrant` edge in the connection. */ @@ -7382,40 +7492,40 @@ export type AppClaimedInviteEdgeSelect = { select: AppClaimedInviteSelect; }; }; -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; } -export type AppGrantEdgeSelect = { +export type OrgLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: AppGrantSelect; + select: OrgLimitWarningSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type AppGrantEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: AppGrantSelect; }; }; /** A `OrgClaimedInvite` edge in the connection. */ @@ -7442,18 +7552,6 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -export type OrgChartEdgeEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeSelect; - }; -}; /** A `UsageSnapshot` edge in the connection. */ export interface UsageSnapshotEdge { cursor?: string | null; @@ -7466,28 +7564,28 @@ export type UsageSnapshotEdgeSelect = { select: UsageSnapshotSelect; }; }; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type AppLimitEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitSelect; + select: AppLimitEventSelect; }; }; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; } -export type AppInviteEdgeSelect = { +export type OrgLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: AppInviteSelect; + select: OrgLimitEventSelect; }; }; /** A `OrgMembershipSetting` edge in the connection. */ @@ -7502,30 +7600,6 @@ export type OrgMembershipSettingEdgeSelect = { select: OrgMembershipSettingSelect; }; }; -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { - cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; -} -export type OrgLimitAggregateEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitAggregateSelect; - }; -}; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -export type OrgLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitSelect; - }; -}; /** A `OrgMemberProfile` edge in the connection. */ export interface OrgMemberProfileEdge { cursor?: string | null; @@ -7550,16 +7624,16 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; -/** A `OrgInvite` edge in the connection. */ -export interface OrgInviteEdge { +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { cursor?: string | null; - /** The `OrgInvite` at the end of the edge. */ - node?: OrgInvite | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; } -export type OrgInviteEdgeSelect = { +export type AppLimitEdgeSelect = { cursor?: boolean; node?: { - select: OrgInviteSelect; + select: AppLimitSelect; }; }; /** A `OrgMembership` edge in the connection. */ @@ -7574,3 +7648,51 @@ export type OrgMembershipEdgeSelect = { select: OrgMembershipSelect; }; }; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +export type OrgLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitSelect; + }; +}; +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { + cursor?: string | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; +} +export type AppInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: AppInviteSelect; + }; +}; +/** A `OrgInvite` edge in the connection. */ +export interface OrgInviteEdge { + cursor?: string | null; + /** The `OrgInvite` at the end of the edge. */ + node?: OrgInvite | null; +} +export type OrgInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgInviteSelect; + }; +}; diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts +++ b/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-react/src/admin/orm/models/index.ts b/sdk/constructive-react/src/admin/orm/models/index.ts index 68ff613876..abea0da32f 100644 --- a/sdk/constructive-react/src/admin/orm/models/index.ts +++ b/sdk/constructive-react/src/admin/orm/models/index.ts @@ -12,39 +12,39 @@ export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; export { AppLimitCreditModel } from './appLimitCredit'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; export { AppLimitCapModel } from './appLimitCap'; export { OrgLimitCapModel } from './orgLimitCap'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { MembershipTypeModel } from './membershipType'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgLimitCreditModel } from './orgLimitCredit'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; export { AppLimitWarningModel } from './appLimitWarning'; -export { OrgLimitWarningModel } from './orgLimitWarning'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; +export { OrgLimitWarningModel } from './orgLimitWarning'; +export { MembershipTypeModel } from './membershipType'; export { AppGrantModel } from './appGrant'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgGrantModel } from './orgGrant'; -export { OrgChartEdgeModel } from './orgChartEdge'; export { UsageSnapshotModel } from './usageSnapshot'; -export { AppLimitModel } from './appLimit'; -export { AppInviteModel } from './appInvite'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { OrgLimitAggregateModel } from './orgLimitAggregate'; -export { OrgLimitModel } from './orgLimit'; export { OrgMemberProfileModel } from './orgMemberProfile'; export { AppMembershipModel } from './appMembership'; -export { OrgInviteModel } from './orgInvite'; +export { AppLimitModel } from './appLimit'; export { OrgMembershipModel } from './orgMembership'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; +export { OrgLimitModel } from './orgLimit'; +export { AppInviteModel } from './appInvite'; +export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index 0de2e366b8..d2bed33ebe 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -135,21 +135,40 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -/** Methods to use when ordering `AppLimitCreditCode`. */ -export type AppLimitCreditCodeOrderBy = +/** Methods to use when ordering `AppAdminGrant`. */ +export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppOwnerGrant`. */ +export type AppOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `OrgPermissionDefault`. */ export type OrgPermissionDefaultOrderBy = | 'NATURAL' @@ -161,38 +180,27 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `AppPermission`. */ -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `OrgPermission`. */ -export type OrgPermissionOrderBy = +/** Methods to use when ordering `AppMembershipDefault`. */ +export type AppMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `AppAdminGrant`. */ -export type AppAdminGrantOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +/** Methods to use when ordering `OrgAdminGrant`. */ +export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -202,14 +210,35 @@ export type AppAdminGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppOwnerGrant`. */ -export type AppOwnerGrantOrderBy = +/** Methods to use when ordering `OrgMembershipDefault`. */ +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `OrgOwnerGrant`. */ +export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -219,6 +248,8 @@ export type AppOwnerGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -273,61 +304,27 @@ export type OrgLimitCapOrderBy = | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -/** Methods to use when ordering `OrgAdminGrant`. */ -export type OrgAdminGrantOrderBy = +/** Methods to use when ordering `OrgChartEdge`. */ +export type OrgChartEdgeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgOwnerGrant`. */ -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `MembershipType`. */ -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; /** Methods to use when ordering `AppLimitDefault`. */ export type AppLimitDefaultOrderBy = | 'NATURAL' @@ -373,8 +370,8 @@ export type OrgLimitDefaultOrderBy = | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC'; -/** Methods to use when ordering `AppLimitWarning`. */ -export type AppLimitWarningOrderBy = +/** Methods to use when ordering `AppPermission`. */ +export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -382,14 +379,44 @@ export type AppLimitWarningOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -/** Methods to use when ordering `OrgLimitWarning`. */ -export type OrgLimitWarningOrderBy = + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `OrgPermission`. */ +export type OrgPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `AppLimitCreditCode`. */ +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +/** Methods to use when ordering `AppLimitWarning`. */ +export type AppLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -402,9 +429,7 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'TASK_IDENTIFIER_DESC'; /** Methods to use when ordering `OrgChartEdgeGrant`. */ export type OrgChartEdgeGrantOrderBy = | 'NATURAL' @@ -445,6 +470,40 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgLimitWarning`. */ +export type OrgLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `MembershipType`. */ +export type MembershipTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; /** Methods to use when ordering `AppGrant`. */ export type AppGrantOrderBy = | 'NATURAL' @@ -464,44 +523,6 @@ export type AppGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppMembershipDefault`. */ -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -/** Methods to use when ordering `OrgMembershipDefault`. */ -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; /** Methods to use when ordering `OrgClaimedInvite`. */ export type OrgClaimedInviteOrderBy = | 'NATURAL' @@ -521,48 +542,6 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `AppLimitEvent`. */ -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `OrgLimitEvent`. */ -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; /** Methods to use when ordering `OrgGrant`. */ export type OrgGrantOrderBy = | 'NATURAL' @@ -584,27 +563,6 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgChartEdge`. */ -export type OrgChartEdgeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; /** Methods to use when ordering `UsageSnapshot`. */ export type UsageSnapshotOrderBy = | 'NATURAL' @@ -622,64 +580,60 @@ export type UsageSnapshotOrderBy = | 'CAPTURED_AT_DESC' | 'ID_ASC' | 'ID_DESC'; -/** Methods to use when ordering `AppLimit`. */ -export type AppLimitOrderBy = +/** Methods to use when ordering `AppLimitEvent`. */ +export type AppLimitEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC'; -/** Methods to use when ordering `AppInvite`. */ -export type AppInviteOrderBy = + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +/** Methods to use when ordering `OrgLimitEvent`. */ +export type OrgLimitEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; /** Methods to use when ordering `OrgMembershipSetting`. */ export type OrgMembershipSettingOrderBy = | 'NATURAL' @@ -713,64 +667,6 @@ export type OrgMembershipSettingOrderBy = | 'POPULATE_MEMBER_EMAIL_DESC' | 'LIMIT_ALLOCATION_MODE_ASC' | 'LIMIT_ALLOCATION_MODE_DESC'; -/** Methods to use when ordering `OrgLimitAggregate`. */ -export type OrgLimitAggregateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'RESERVED_ASC' - | 'RESERVED_DESC'; -/** Methods to use when ordering `OrgLimit`. */ -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; /** Methods to use when ordering `OrgMemberProfile`. */ export type OrgMemberProfileOrderBy = | 'NATURAL' @@ -835,43 +731,33 @@ export type AppMembershipOrderBy = | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; -/** Methods to use when ordering `OrgInvite`. */ -export type OrgInviteOrderBy = +/** Methods to use when ordering `AppLimit`. */ +export type AppLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC'; /** Methods to use when ordering `OrgMembership`. */ export type OrgMembershipOrderBy = | 'NATURAL' @@ -913,6 +799,132 @@ export type OrgMembershipOrderBy = | 'IS_READ_ONLY_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; +/** Methods to use when ordering `OrgLimitAggregate`. */ +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'RESERVED_ASC' + | 'RESERVED_DESC'; +/** Methods to use when ordering `OrgLimit`. */ +export type OrgLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `AppInvite`. */ +export type AppInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgInvite`. */ +export type OrgInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -1094,59 +1106,6 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; -} -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; - /** Negates the expression. */ - not?: AppPermissionFilter; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Negates the expression. */ - not?: OrgPermissionFilter; -} /** A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ @@ -1189,69 +1148,43 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -/** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapsDefaultFilter { +/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; + and?: OrgPermissionDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; + or?: OrgPermissionDefaultFilter[]; /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; + not?: OrgPermissionDefaultFilter; } -/** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCapsDefaultFilter { +/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -/** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; + and?: AppMembershipDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; + or?: AppMembershipDefaultFilter[]; /** Negates the expression. */ - not?: OrgLimitCapFilter; + not?: AppMembershipDefaultFilter; } /** A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ export interface OrgAdminGrantFilter { @@ -1276,6 +1209,29 @@ export interface OrgAdminGrantFilter { /** Negates the expression. */ not?: OrgAdminGrantFilter; } +/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} /** A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ @@ -1299,26 +1255,94 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } -/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypeFilter { +/** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCapsDefaultFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: AppLimitCapsDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: AppLimitCapsDefaultFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: AppLimitCapsDefaultFilter; +} +/** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapsDefaultFilter; +} +/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} +/** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} +/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeFilter; } /** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitCreditFilter { @@ -1375,27 +1399,46 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } -/** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitWarningFilter { +/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; + and?: AppPermissionFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; + or?: AppPermissionFilter[]; /** Negates the expression. */ - not?: AppLimitWarningFilter; + not?: AppPermissionFilter; } -/** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitWarningFilter { +/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionFilter; +} +/** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1406,14 +1449,12 @@ export interface OrgLimitWarningFilter { thresholdValue?: BigIntFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; + and?: AppLimitWarningFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; + or?: AppLimitWarningFilter[]; /** Negates the expression. */ - not?: OrgLimitWarningFilter; + not?: AppLimitWarningFilter; } /** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ export interface OrgChartEdgeGrantFilter { @@ -1461,6 +1502,48 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } +/** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} /** A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ */ export interface AppGrantFilter { /** Filter by the object’s `id` field. */ @@ -1484,75 +1567,79 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } -/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ +/** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgClaimedInviteFilter { + /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; + and?: OrgClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; + or?: OrgClaimedInviteFilter[]; /** Negates the expression. */ - not?: AppMembershipDefaultFilter; + not?: OrgClaimedInviteFilter; } -/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipDefaultFilter { +/** A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: OrgGrantFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: OrgGrantFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; + not?: OrgGrantFilter; } -/** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgClaimedInviteFilter { +/** A filter to be used against `UsageSnapshot` object types. All fields are combined with a logical ‘and.’ */ +export interface UsageSnapshotFilter { + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `metricName` field. */ + metricName?: StringFilter; + /** Filter by the object’s `metricValue` field. */ + metricValue?: BigIntFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: JSONFilter; + /** Filter by the object’s `capturedAt` field. */ + capturedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; + and?: UsageSnapshotFilter[]; /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; + or?: UsageSnapshotFilter[]; /** Negates the expression. */ - not?: OrgClaimedInviteFilter; + not?: UsageSnapshotFilter; } /** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -1580,6 +1667,10 @@ export interface AppLimitEventFilter { } /** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -1605,142 +1696,266 @@ export interface OrgLimitEventFilter { /** Negates the expression. */ not?: OrgLimitEventFilter; } -/** A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgGrantFilter { +/** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: OrgGrantFilter; + not?: OrgMembershipSettingFilter; } -/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeFilter { +/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMemberProfileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `membershipId` field. */ + membershipId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -/** A filter to be used against `UsageSnapshot` object types. All fields are combined with a logical ‘and.’ */ -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; - /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; - /** Negates the expression. */ - not?: UsageSnapshotFilter; -} -/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `bio` field. */ + bio?: StringFilter; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; + and?: OrgMemberProfileFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; + or?: OrgMemberProfileFilter[]; /** Negates the expression. */ - not?: AppLimitFilter; + not?: OrgMemberProfileFilter; + /** Filter by the object’s `membership` relation. */ + membership?: OrgMembershipFilter; } -/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ -export interface IntervalFilter { +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Equal to the specified value. */ - equalTo?: IntervalInput; + equalTo?: ConstructiveInternalTypeImage; /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; + notEqualTo?: ConstructiveInternalTypeImage; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: IntervalInput; + distinctFrom?: ConstructiveInternalTypeImage; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; + notDistinctFrom?: ConstructiveInternalTypeImage; /** Included in the specified list. */ - in?: IntervalInput[]; + in?: ConstructiveInternalTypeImage[]; /** Not included in the specified list. */ - notIn?: IntervalInput[]; + notIn?: ConstructiveInternalTypeImage[]; /** Less than the specified value. */ - lessThan?: IntervalInput; + lessThan?: ConstructiveInternalTypeImage; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: IntervalInput; + lessThanOrEqualTo?: ConstructiveInternalTypeImage; /** Greater than the specified value. */ - greaterThan?: IntervalInput; + greaterThan?: ConstructiveInternalTypeImage; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: IntervalInput; + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; } -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of minutes. */ +/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isExternal` field. */ + isExternal?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipFilter[]; + /** Negates the expression. */ + not?: OrgMembershipFilter; + /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ + orgMemberProfileByMembershipId?: OrgMemberProfileFilter; + /** A related `orgMemberProfileByMembershipId` exists. */ + orgMemberProfileByMembershipIdExists?: boolean; +} +/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipFilter[]; + /** Negates the expression. */ + not?: AppMembershipFilter; +} +/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitFilter[]; + /** Negates the expression. */ + not?: AppLimitFilter; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ minutes?: number; /** A quantity of hours. */ hours?: number; @@ -1751,6 +1966,72 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } +/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `reserved` field. */ + reserved?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} +/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} /** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ export interface AppInviteFilter { /** Filter by the object’s `id` field. */ @@ -1861,293 +2142,32 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipSettingFilter { +/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; - /** Negates the expression. */ - not?: OrgMembershipSettingFilter; -} -/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; -} -/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} -/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberProfileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} -/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; -} -/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ @@ -2208,22 +2228,37 @@ export interface AppPermissionDefaultInput { /** Default permission bitmask applied to new members */ permissions?: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateAppAdminGrantInput { clientMutationId?: string; - /** The `AppLimitCreditCode` to be created by this mutation. */ - appLimitCreditCode: AppLimitCreditCodeInput; + /** The `AppAdminGrant` to be created by this mutation. */ + appAdminGrant: AppAdminGrantInput; } -/** An input for mutations affecting `AppLimitCreditCode` */ -export interface AppLimitCreditCodeInput { +/** An input for mutations affecting `AppAdminGrant` */ +export interface AppAdminGrantInput { id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + /** The member receiving or losing the admin grant */ + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + /** The `AppOwnerGrant` to be created by this mutation. */ + appOwnerGrant: AppOwnerGrantInput; +} +/** An input for mutations affecting `AppOwnerGrant` */ +export interface AppOwnerGrantInput { + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + /** The member receiving or losing the ownership grant */ + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; } export interface CreateOrgPermissionDefaultInput { clientMutationId?: string; @@ -2238,68 +2273,72 @@ export interface OrgPermissionDefaultInput { /** References the entity these default permissions apply to */ entityId: string; } -export interface CreateAppPermissionInput { - clientMutationId?: string; - /** The `AppPermission` to be created by this mutation. */ - appPermission: AppPermissionInput; -} -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface CreateOrgPermissionInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - /** The `OrgPermission` to be created by this mutation. */ - orgPermission: OrgPermissionInput; + /** The `AppMembershipDefault` to be created by this mutation. */ + appMembershipDefault: AppMembershipDefaultInput; } -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { +/** An input for mutations affecting `AppMembershipDefault` */ +export interface AppMembershipDefaultInput { id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; } -export interface CreateAppAdminGrantInput { +export interface CreateOrgAdminGrantInput { clientMutationId?: string; - /** The `AppAdminGrant` to be created by this mutation. */ - appAdminGrant: AppAdminGrantInput; + /** The `OrgAdminGrant` to be created by this mutation. */ + orgAdminGrant: OrgAdminGrantInput; } -/** An input for mutations affecting `AppAdminGrant` */ -export interface AppAdminGrantInput { +/** An input for mutations affecting `OrgAdminGrant` */ +export interface OrgAdminGrantInput { id?: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean; /** The member receiving or losing the admin grant */ actorId: string; + /** The entity (org or group) this admin grant applies to */ + entityId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface CreateAppOwnerGrantInput { +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + /** The `OrgMembershipDefault` to be created by this mutation. */ + orgMembershipDefault: OrgMembershipDefaultInput; +} +/** An input for mutations affecting `OrgMembershipDefault` */ +export interface OrgMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ + entityId: string; +} +export interface CreateOrgOwnerGrantInput { clientMutationId?: string; - /** The `AppOwnerGrant` to be created by this mutation. */ - appOwnerGrant: AppOwnerGrantInput; + /** The `OrgOwnerGrant` to be created by this mutation. */ + orgOwnerGrant: OrgOwnerGrantInput; } -/** An input for mutations affecting `AppOwnerGrant` */ -export interface AppOwnerGrantInput { +/** An input for mutations affecting `OrgOwnerGrant` */ +export interface OrgOwnerGrantInput { id?: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; /** The member receiving or losing the ownership grant */ actorId: string; + /** The entity (org or group) this ownership grant applies to */ + entityId: string; grantorId?: string; createdAt?: string; updatedAt?: string; @@ -2360,61 +2399,43 @@ export interface OrgLimitCapInput { /** Override cap value for this entity */ max?: string; } -export interface CreateOrgAdminGrantInput { +export interface CreateOrgChartEdgeInput { clientMutationId?: string; - /** The `OrgAdminGrant` to be created by this mutation. */ - orgAdminGrant: OrgAdminGrantInput; + /** The `OrgChartEdge` to be created by this mutation. */ + orgChartEdge: OrgChartEdgeInput; } -/** An input for mutations affecting `OrgAdminGrant` */ -export interface OrgAdminGrantInput { +/** An input for mutations affecting `OrgChartEdge` */ +export interface OrgChartEdgeInput { id?: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId: string; - /** The entity (org or group) this admin grant applies to */ - entityId: string; - grantorId?: string; createdAt?: string; updatedAt?: string; -} -export interface CreateOrgOwnerGrantInput { - clientMutationId?: string; - /** The `OrgOwnerGrant` to be created by this mutation. */ - orgOwnerGrant: OrgOwnerGrantInput; -} -/** An input for mutations affecting `OrgOwnerGrant` */ -export interface OrgOwnerGrantInput { - id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - /** The member receiving or losing the ownership grant */ - actorId: string; - /** The entity (org or group) this ownership grant applies to */ + /** Organization this hierarchy edge belongs to */ entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; } -export interface CreateMembershipTypeInput { +export interface CreateAppLimitCreditCodeItemInput { clientMutationId?: string; - /** The `MembershipType` to be created by this mutation. */ - membershipType: MembershipTypeInput; + /** The `AppLimitCreditCodeItem` to be created by this mutation. */ + appLimitCreditCodeItem: AppLimitCreditCodeItemInput; } -/** An input for mutations affecting `MembershipType` */ -export interface MembershipTypeInput { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name: string; - /** Description of what this membership type represents */ - description: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; +/** An input for mutations affecting `AppLimitCreditCodeItem` */ +export interface AppLimitCreditCodeItemInput { + id?: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId: string; + /** Number of credits this item grants per redemption */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; } export interface CreateAppLimitDefaultInput { clientMutationId?: string; @@ -2446,22 +2467,56 @@ export interface OrgLimitDefaultInput { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string; } -export interface CreateAppLimitCreditCodeItemInput { +export interface CreateAppPermissionInput { clientMutationId?: string; - /** The `AppLimitCreditCodeItem` to be created by this mutation. */ - appLimitCreditCodeItem: AppLimitCreditCodeItemInput; + /** The `AppPermission` to be created by this mutation. */ + appPermission: AppPermissionInput; } -/** An input for mutations affecting `AppLimitCreditCodeItem` */ -export interface AppLimitCreditCodeItemInput { +/** An input for mutations affecting `AppPermission` */ +export interface AppPermissionInput { id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId: string; - /** Number of credits this item grants per redemption */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + /** The `OrgPermission` to be created by this mutation. */ + orgPermission: OrgPermissionInput; +} +/** An input for mutations affecting `OrgPermission` */ +export interface OrgPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + /** The `AppLimitCreditCode` to be created by this mutation. */ + appLimitCreditCode: AppLimitCreditCodeInput; +} +/** An input for mutations affecting `AppLimitCreditCode` */ +export interface AppLimitCreditCodeInput { + id?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; } export interface CreateAppLimitWarningInput { clientMutationId?: string; @@ -2480,6 +2535,31 @@ export interface AppLimitWarningInput { /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier: string; } +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + /** The `OrgChartEdgeGrant` to be created by this mutation. */ + orgChartEdgeGrant: OrgChartEdgeGrantInput; +} +/** An input for mutations affecting `OrgChartEdgeGrant` */ +export interface OrgChartEdgeGrantInput { + id?: string; + /** Organization this grant applies to */ + entityId: string; + /** User ID of the subordinate being placed in the hierarchy */ + childId: string; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string; + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ + grantorId?: string; + /** TRUE to add/update the edge, FALSE to remove it */ + isGrant?: boolean; + /** Job title or role name being assigned in this grant */ + positionTitle?: string; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string; +} export interface CreateAppLimitCreditInput { clientMutationId?: string; /** The `AppLimitCredit` to be created by this mutation. */ @@ -2499,25 +2579,6 @@ export interface AppLimitCreditInput { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string; } -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - /** The `OrgLimitWarning` to be created by this mutation. */ - orgLimitWarning: OrgLimitWarningInput; -} -/** An input for mutations affecting `OrgLimitWarning` */ -export interface OrgLimitWarningInput { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; -} export interface CreateOrgLimitCreditInput { clientMutationId?: string; /** The `OrgLimitCredit` to be created by this mutation. */ @@ -2539,31 +2600,6 @@ export interface OrgLimitCreditInput { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string; } -export interface CreateOrgChartEdgeGrantInput { - clientMutationId?: string; - /** The `OrgChartEdgeGrant` to be created by this mutation. */ - orgChartEdgeGrant: OrgChartEdgeGrantInput; -} -/** An input for mutations affecting `OrgChartEdgeGrant` */ -export interface OrgChartEdgeGrantInput { - id?: string; - /** Organization this grant applies to */ - entityId: string; - /** User ID of the subordinate being placed in the hierarchy */ - childId: string; - /** User ID of the manager being assigned; NULL for top-level positions */ - parentId?: string; - /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ - grantorId?: string; - /** TRUE to add/update the edge, FALSE to remove it */ - isGrant?: boolean; - /** Job title or role name being assigned in this grant */ - positionTitle?: string; - /** Numeric seniority level being assigned in this grant */ - positionLevel?: number; - /** Timestamp when this grant or revocation was recorded */ - createdAt?: string; -} export interface CreateAppClaimedInviteInput { clientMutationId?: string; /** The `AppClaimedInvite` to be created by this mutation. */ @@ -2581,6 +2617,45 @@ export interface AppClaimedInviteInput { createdAt?: string; updatedAt?: string; } +export interface CreateOrgLimitWarningInput { + clientMutationId?: string; + /** The `OrgLimitWarning` to be created by this mutation. */ + orgLimitWarning: OrgLimitWarningInput; +} +/** An input for mutations affecting `OrgLimitWarning` */ +export interface OrgLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + /** The `MembershipType` to be created by this mutation. */ + membershipType: MembershipTypeInput; +} +/** An input for mutations affecting `MembershipType` */ +export interface MembershipTypeInput { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name: string; + /** Description of what this membership type represents */ + description: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; +} export interface CreateAppGrantInput { clientMutationId?: string; /** The `AppGrant` to be created by this mutation. */ @@ -2599,40 +2674,6 @@ export interface AppGrantInput { createdAt?: string; updatedAt?: string; } -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - /** The `AppMembershipDefault` to be created by this mutation. */ - appMembershipDefault: AppMembershipDefaultInput; -} -/** An input for mutations affecting `AppMembershipDefault` */ -export interface AppMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - /** The `OrgMembershipDefault` to be created by this mutation. */ - orgMembershipDefault: OrgMembershipDefaultInput; -} -/** An input for mutations affecting `OrgMembershipDefault` */ -export interface OrgMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId: string; -} export interface CreateOrgClaimedInviteInput { clientMutationId?: string; /** The `OrgClaimedInvite` to be created by this mutation. */ @@ -2651,6 +2692,45 @@ export interface OrgClaimedInviteInput { updatedAt?: string; entityId: string; } +export interface CreateOrgGrantInput { + clientMutationId?: string; + /** The `OrgGrant` to be created by this mutation. */ + orgGrant: OrgGrantInput; +} +/** An input for mutations affecting `OrgGrant` */ +export interface OrgGrantInput { + id?: string; + /** Bitmask of permissions being granted or revoked */ + permissions?: string; + /** True to grant the permissions, false to revoke them */ + isGrant?: boolean; + /** The member receiving or losing the permission grant */ + actorId: string; + /** The entity (org or group) this permission grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateUsageSnapshotInput { + clientMutationId?: string; + /** The `UsageSnapshot` to be created by this mutation. */ + usageSnapshot: UsageSnapshotInput; +} +/** An input for mutations affecting `UsageSnapshot` */ +export interface UsageSnapshotInput { + /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ + databaseId: string; + /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ + metricName: string; + /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ + metricValue?: string; + /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ + dimensions?: unknown; + /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ + capturedAt?: string; + id?: string; +} export interface CreateAppLimitEventInput { clientMutationId?: string; /** The `AppLimitEvent` to be created by this mutation. */ @@ -2658,6 +2738,9 @@ export interface CreateAppLimitEventInput { } /** An input for mutations affecting `AppLimitEvent` */ export interface AppLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; /** Limit name this event applies to */ name?: string; /** User who triggered this event; NULL for system/aggregate events */ @@ -2684,6 +2767,9 @@ export interface CreateOrgLimitEventInput { } /** An input for mutations affecting `OrgLimitEvent` */ export interface OrgLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; /** Limit name this event applies to */ name?: string; /** User who triggered this event; NULL for system/aggregate events */ @@ -2703,156 +2789,164 @@ export interface OrgLimitEventInput { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string; } -export interface CreateOrgGrantInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - /** The `OrgGrant` to be created by this mutation. */ - orgGrant: OrgGrantInput; + /** The `OrgMembershipSetting` to be created by this mutation. */ + orgMembershipSetting: OrgMembershipSettingInput; } -/** An input for mutations affecting `OrgGrant` */ -export interface OrgGrantInput { +/** An input for mutations affecting `OrgMembershipSetting` */ +export interface OrgMembershipSettingInput { id?: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean; - /** The member receiving or losing the permission grant */ - actorId: string; - /** The entity (org or group) this permission grant applies to */ - entityId: string; - grantorId?: string; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; } -export interface CreateOrgChartEdgeInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - /** The `OrgChartEdge` to be created by this mutation. */ - orgChartEdge: OrgChartEdgeInput; + /** The `OrgMemberProfile` to be created by this mutation. */ + orgMemberProfile: OrgMemberProfileInput; } -/** An input for mutations affecting `OrgChartEdge` */ -export interface OrgChartEdgeInput { +/** An input for mutations affecting `OrgMemberProfile` */ +export interface OrgMemberProfileInput { id?: string; createdAt?: string; updatedAt?: string; - /** Organization this hierarchy edge belongs to */ + /** References the membership this profile belongs to (1:1) */ + membershipId: string; + /** References the entity this profile belongs to (used for RLS lookups) */ entityId: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; + /** References the user who owns this profile (for self-edit RLS) */ + actorId: string; + /** Display name shown to other entity members */ + displayName?: string; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string; + /** Job title or role description visible to other entity members */ + title?: string; + /** Short biography visible to other entity members */ + bio?: string; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage; } -export interface CreateUsageSnapshotInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - /** The `UsageSnapshot` to be created by this mutation. */ - usageSnapshot: UsageSnapshotInput; + /** The `AppMembership` to be created by this mutation. */ + appMembership: AppMembershipInput; } -/** An input for mutations affecting `UsageSnapshot` */ -export interface UsageSnapshotInput { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId: string; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName: string; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: unknown; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string; +/** An input for mutations affecting `AppMembership` */ +export interface AppMembershipInput { id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId: string; + profileId?: string; } export interface CreateAppLimitInput { clientMutationId?: string; /** The `AppLimit` to be created by this mutation. */ - appLimit: AppLimitInput; -} -/** An input for mutations affecting `AppLimit` */ -export interface AppLimitInput { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; -} -export interface CreateAppInviteInput { - clientMutationId?: string; - /** The `AppInvite` to be created by this mutation. */ - appInvite: AppInviteInput; -} -/** An input for mutations affecting `AppInvite` */ -export interface AppInviteInput { - id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; + appLimit: AppLimitInput; } -export interface CreateOrgMembershipSettingInput { +/** An input for mutations affecting `AppLimit` */ +export interface AppLimitInput { + id?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; +} +export interface CreateOrgMembershipInput { clientMutationId?: string; - /** The `OrgMembershipSetting` to be created by this mutation. */ - orgMembershipSetting: OrgMembershipSettingInput; + /** The `OrgMembership` to be created by this mutation. */ + orgMembership: OrgMembershipInput; } -/** An input for mutations affecting `OrgMembershipSetting` */ -export interface OrgMembershipSettingInput { +/** An input for mutations affecting `OrgMembership` */ +export interface OrgMembershipInput { id?: string; createdAt?: string; updatedAt?: string; createdBy?: string; updatedBy?: string; - /** References the entity these settings apply to */ + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId: string; + /** References the entity (org or group) this membership belongs to */ entityId: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean; + profileId?: string; } export interface CreateOrgLimitAggregateInput { clientMutationId?: string; @@ -2915,66 +3009,36 @@ export interface OrgLimitInput { periodCredits?: string; entityId: string; } -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - /** The `OrgMemberProfile` to be created by this mutation. */ - orgMemberProfile: OrgMemberProfileInput; -} -/** An input for mutations affecting `OrgMemberProfile` */ -export interface OrgMemberProfileInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** References the membership this profile belongs to (1:1) */ - membershipId: string; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId: string; - /** References the user who owns this profile (for self-edit RLS) */ - actorId: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; -} -export interface CreateAppMembershipInput { +export interface CreateAppInviteInput { clientMutationId?: string; - /** The `AppMembership` to be created by this mutation. */ - appMembership: AppMembershipInput; + /** The `AppInvite` to be created by this mutation. */ + appInvite: AppInviteInput; } -/** An input for mutations affecting `AppMembership` */ -export interface AppMembershipInput { +/** An input for mutations affecting `AppInvite` */ +export interface AppInviteInput { id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId: string; - profileId?: string; } export interface CreateOrgInviteInput { clientMutationId?: string; @@ -3012,44 +3076,6 @@ export interface OrgInviteInput { updatedAt?: string; entityId: string; } -export interface CreateOrgMembershipInput { - clientMutationId?: string; - /** The `OrgMembership` to be created by this mutation. */ - orgMembership: OrgMembershipInput; -} -/** An input for mutations affecting `OrgMembership` */ -export interface OrgMembershipInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId: string; - /** References the entity (org or group) this membership belongs to */ - entityId: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; -} export interface UpdateAppLimitCreditRedemptionInput { clientMutationId?: string; id: string; @@ -3092,23 +3118,39 @@ export interface AppPermissionDefaultPatch { /** Default permission bitmask applied to new members */ permissions?: string; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ - appLimitCreditCodePatch: AppLimitCreditCodePatch; + /** An object where the defined keys will be set on the `AppAdminGrant` being updated. */ + appAdminGrantPatch: AppAdminGrantPatch; } -/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ -export interface AppLimitCreditCodePatch { +/** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ +export interface AppAdminGrantPatch { id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + /** The member receiving or losing the admin grant */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppOwnerGrant` being updated. */ + appOwnerGrantPatch: AppOwnerGrantPatch; +} +/** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ +export interface AppOwnerGrantPatch { + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + /** The member receiving or losing the ownership grant */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; } export interface UpdateOrgPermissionDefaultInput { clientMutationId?: string; @@ -3124,72 +3166,76 @@ export interface OrgPermissionDefaultPatch { /** References the entity these default permissions apply to */ entityId?: string; } -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppPermission` being updated. */ - appPermissionPatch: AppPermissionPatch; -} -/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ -export interface AppPermissionPatch { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface UpdateOrgPermissionInput { +export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgPermission` being updated. */ - orgPermissionPatch: OrgPermissionPatch; + /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ + appMembershipDefaultPatch: AppMembershipDefaultPatch; } -/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ -export interface OrgPermissionPatch { +/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ +export interface AppMembershipDefaultPatch { id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; } -export interface UpdateAppAdminGrantInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppAdminGrant` being updated. */ - appAdminGrantPatch: AppAdminGrantPatch; + /** An object where the defined keys will be set on the `OrgAdminGrant` being updated. */ + orgAdminGrantPatch: OrgAdminGrantPatch; } -/** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ -export interface AppAdminGrantPatch { +/** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ +export interface OrgAdminGrantPatch { id?: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean; /** The member receiving or losing the admin grant */ actorId?: string; + /** The entity (org or group) this admin grant applies to */ + entityId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface UpdateAppOwnerGrantInput { +export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppOwnerGrant` being updated. */ - appOwnerGrantPatch: AppOwnerGrantPatch; + /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; } -/** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ -export interface AppOwnerGrantPatch { +/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ +export interface OrgMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ + entityId?: string; +} +export interface UpdateOrgOwnerGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgOwnerGrant` being updated. */ + orgOwnerGrantPatch: OrgOwnerGrantPatch; +} +/** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ +export interface OrgOwnerGrantPatch { id?: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; /** The member receiving or losing the ownership grant */ actorId?: string; + /** The entity (org or group) this ownership grant applies to */ + entityId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; @@ -3254,65 +3300,45 @@ export interface OrgLimitCapPatch { /** Override cap value for this entity */ max?: string; } -export interface UpdateOrgAdminGrantInput { +export interface UpdateOrgChartEdgeInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgAdminGrant` being updated. */ - orgAdminGrantPatch: OrgAdminGrantPatch; + /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ + orgChartEdgePatch: OrgChartEdgePatch; } -/** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ -export interface OrgAdminGrantPatch { +/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ +export interface OrgChartEdgePatch { id?: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId?: string; - /** The entity (org or group) this admin grant applies to */ - entityId?: string; - grantorId?: string; createdAt?: string; updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId?: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateAppLimitCreditCodeItemInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgOwnerGrant` being updated. */ - orgOwnerGrantPatch: OrgOwnerGrantPatch; + /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; } -/** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ -export interface OrgOwnerGrantPatch { +/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ +export interface AppLimitCreditCodeItemPatch { id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - /** The member receiving or losing the ownership grant */ - actorId?: string; - /** The entity (org or group) this ownership grant applies to */ - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** An object where the defined keys will be set on the `MembershipType` being updated. */ - membershipTypePatch: MembershipTypePatch; -} -/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ -export interface MembershipTypePatch { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id?: number; - /** Human-readable name of the membership type */ - name?: string; - /** Description of what this membership type represents */ - description?: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId?: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId?: string; + /** Number of credits this item grants per redemption */ + amount?: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; } export interface UpdateAppLimitDefaultInput { clientMutationId?: string; @@ -3346,70 +3372,68 @@ export interface OrgLimitDefaultPatch { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string; } -export interface UpdateAppLimitCreditCodeItemInput { +export interface UpdateAppPermissionInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; + /** An object where the defined keys will be set on the `AppPermission` being updated. */ + appPermissionPatch: AppPermissionPatch; } -/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ -export interface AppLimitCreditCodeItemPatch { +/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ +export interface AppPermissionPatch { id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string; - /** Number of credits this item grants per redemption */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; } -export interface UpdateAppLimitWarningInput { +export interface UpdateOrgPermissionInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */ - appLimitWarningPatch: AppLimitWarningPatch; + /** An object where the defined keys will be set on the `OrgPermission` being updated. */ + orgPermissionPatch: OrgPermissionPatch; } -/** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */ -export interface AppLimitWarningPatch { +/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ +export interface OrgPermissionPatch { id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ + /** Human-readable permission name (e.g. read, write, manage) */ name?: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; } -export interface UpdateAppLimitCreditInput { +export interface UpdateAppLimitCreditCodeInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */ - appLimitCreditPatch: AppLimitCreditPatch; + /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ + appLimitCreditCodePatch: AppLimitCreditCodePatch; } -/** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */ -export interface AppLimitCreditPatch { +/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ +export interface AppLimitCreditCodePatch { id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateAppLimitWarningInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ - orgLimitWarningPatch: OrgLimitWarningPatch; + /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */ + appLimitWarningPatch: AppLimitWarningPatch; } -/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ -export interface OrgLimitWarningPatch { +/** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */ +export interface AppLimitWarningPatch { id?: string; /** Limit name this warning applies to (must match a default_limits entry) */ name?: string; @@ -3417,32 +3441,8 @@ export interface OrgLimitWarningPatch { warningType?: string; /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; -} -export interface UpdateOrgLimitCreditInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */ - orgLimitCreditPatch: OrgLimitCreditPatch; -} -/** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */ -export interface OrgLimitCreditPatch { - id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string; } export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; @@ -3470,6 +3470,48 @@ export interface OrgChartEdgeGrantPatch { /** Timestamp when this grant or revocation was recorded */ createdAt?: string; } +export interface UpdateAppLimitCreditInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */ + appLimitCreditPatch: AppLimitCreditPatch; +} +/** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */ +export interface AppLimitCreditPatch { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +export interface UpdateOrgLimitCreditInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */ + orgLimitCreditPatch: OrgLimitCreditPatch; +} +/** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */ +export interface OrgLimitCreditPatch { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; @@ -3488,6 +3530,48 @@ export interface AppClaimedInvitePatch { createdAt?: string; updatedAt?: string; } +export interface UpdateOrgLimitWarningInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ + orgLimitWarningPatch: OrgLimitWarningPatch; +} +/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ +export interface OrgLimitWarningPatch { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; +} +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** An object where the defined keys will be set on the `MembershipType` being updated. */ + membershipTypePatch: MembershipTypePatch; +} +/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ +export interface MembershipTypePatch { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id?: number; + /** Human-readable name of the membership type */ + name?: string; + /** Description of what this membership type represents */ + description?: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; +} export interface UpdateAppGrantInput { clientMutationId?: string; id: string; @@ -3507,42 +3591,6 @@ export interface AppGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface UpdateOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ -export interface OrgMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId?: string; -} export interface UpdateOrgClaimedInviteInput { clientMutationId?: string; id: string; @@ -3583,28 +3631,6 @@ export interface OrgGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateOrgChartEdgeInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ - orgChartEdgePatch: OrgChartEdgePatch; -} -/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ -export interface OrgChartEdgePatch { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId?: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} export interface UpdateUsageSnapshotInput { clientMutationId?: string; id: string; @@ -3625,6 +3651,167 @@ export interface UsageSnapshotPatch { capturedAt?: string; id?: string; } +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ + id: string; + /** An object where the defined keys will be set on the `AppLimitEvent` being updated. */ + appLimitEventPatch: AppLimitEventPatch; +} +/** Represents an update to a `AppLimitEvent`. Fields that are set will be updated. */ +export interface AppLimitEventPatch { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ + id: string; + /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */ + orgLimitEventPatch: OrgLimitEventPatch; +} +/** Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. */ +export interface OrgLimitEventPatch { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ +export interface OrgMembershipSettingPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId?: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; +} +export interface UpdateOrgMemberProfileInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */ + orgMemberProfilePatch: OrgMemberProfilePatch; +} +/** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */ +export interface OrgMemberProfilePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** References the membership this profile belongs to (1:1) */ + membershipId?: string; + /** References the entity this profile belongs to (used for RLS lookups) */ + entityId?: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId?: string; + /** Display name shown to other entity members */ + displayName?: string; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string; + /** Job title or role description visible to other entity members */ + title?: string; + /** Short biography visible to other entity members */ + bio?: string; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage; + /** Upload for Profile picture visible to other entity members */ + profilePictureUpload?: File; +} +export interface UpdateAppMembershipInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppMembership` being updated. */ + appMembershipPatch: AppMembershipPatch; +} +/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ +export interface AppMembershipPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId?: string; + profileId?: string; +} export interface UpdateAppLimitInput { clientMutationId?: string; id: string; @@ -3655,69 +3842,44 @@ export interface AppLimitPatch { /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; } -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppInvite` being updated. */ - appInvitePatch: AppInvitePatch; -} -/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ -export interface AppInvitePatch { - id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ - orgMembershipSettingPatch: OrgMembershipSettingPatch; + /** An object where the defined keys will be set on the `OrgMembership` being updated. */ + orgMembershipPatch: OrgMembershipPatch; } -/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ -export interface OrgMembershipSettingPatch { +/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ +export interface OrgMembershipPatch { id?: string; createdAt?: string; updatedAt?: string; createdBy?: string; updatedBy?: string; - /** References the entity these settings apply to */ + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId?: string; + /** References the entity (org or group) this membership belongs to */ entityId?: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean; + profileId?: string; } export interface UpdateOrgLimitAggregateInput { clientMutationId?: string; @@ -3782,70 +3944,37 @@ export interface OrgLimitPatch { periodCredits?: string; entityId?: string; } -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */ - orgMemberProfilePatch: OrgMemberProfilePatch; -} -/** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */ -export interface OrgMemberProfilePatch { - id?: string; - createdAt?: string; - updatedAt?: string; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; - /** Upload for Profile picture visible to other entity members */ - profilePictureUpload?: File; -} -export interface UpdateAppMembershipInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppMembership` being updated. */ - appMembershipPatch: AppMembershipPatch; + /** An object where the defined keys will be set on the `AppInvite` being updated. */ + appInvitePatch: AppInvitePatch; } -/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ -export interface AppMembershipPatch { +/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ +export interface AppInvitePatch { id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId?: string; - profileId?: string; } export interface UpdateOrgInviteInput { clientMutationId?: string; @@ -3884,45 +4013,6 @@ export interface OrgInvitePatch { updatedAt?: string; entityId?: string; } -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembership` being updated. */ - orgMembershipPatch: OrgMembershipPatch; -} -/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ -export interface OrgMembershipPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId?: string; - /** References the entity (org or group) this membership belongs to */ - entityId?: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; -} export interface DeleteAppLimitCreditRedemptionInput { clientMutationId?: string; id: string; @@ -3935,7 +4025,11 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteAppAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3943,19 +4037,19 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionInput { +export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteOrgPermissionInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppAdminGrantInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppOwnerGrantInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3975,18 +4069,13 @@ export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface DeleteOrgAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgOwnerGrantInput { +export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipTypeInput { +export interface DeleteAppLimitCreditCodeItemInput { clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; + id: string; } export interface DeleteAppLimitDefaultInput { clientMutationId?: string; @@ -3996,43 +4085,48 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditCodeItemInput { +export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitWarningInput { +export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditInput { +export interface DeleteAppLimitCreditCodeInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitCreditInput { +export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgChartEdgeGrantInput { +export interface DeleteAppLimitCreditInput { clientMutationId?: string; id: string; } -export interface DeleteAppClaimedInviteInput { +export interface DeleteOrgLimitCreditInput { clientMutationId?: string; id: string; } -export interface DeleteAppGrantInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteMembershipTypeInput { + clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; +} +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } @@ -4044,47 +4138,55 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgChartEdgeInput { +export interface DeleteUsageSnapshotInput { clientMutationId?: string; id: string; } -export interface DeleteUsageSnapshotInput { +export interface DeleteAppLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; } -export interface DeleteAppLimitInput { +export interface DeleteOrgLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; } -export interface DeleteAppInviteInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitAggregateInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitInput { +export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMemberProfileInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipInput { +export interface DeleteOrgLimitAggregateInput { clientMutationId?: string; id: string; } -export interface DeleteOrgInviteInput { +export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipInput { +export interface DeleteAppInviteInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } @@ -4146,10 +4248,17 @@ export interface AppPermissionDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCreditCode` values. */ -export interface AppLimitCreditCodeConnection { - nodes: AppLimitCreditCode[]; - edges: AppLimitCreditCodeEdge[]; +/** A connection to a list of `AppAdminGrant` values. */ +export interface AppAdminGrantConnection { + nodes: AppAdminGrant[]; + edges: AppAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppOwnerGrant` values. */ +export interface AppOwnerGrantConnection { + nodes: AppOwnerGrant[]; + edges: AppOwnerGrantEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4160,17 +4269,31 @@ export interface OrgPermissionDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppAdminGrant` values. */ -export interface AppAdminGrantConnection { - nodes: AppAdminGrant[]; - edges: AppAdminGrantEdge[]; +/** A connection to a list of `AppMembershipDefault` values. */ +export interface AppMembershipDefaultConnection { + nodes: AppMembershipDefault[]; + edges: AppMembershipDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppOwnerGrant` values. */ -export interface AppOwnerGrantConnection { - nodes: AppOwnerGrant[]; - edges: AppOwnerGrantEdge[]; +/** A connection to a list of `OrgAdminGrant` values. */ +export interface OrgAdminGrantConnection { + nodes: OrgAdminGrant[]; + edges: OrgAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgMembershipDefault` values. */ +export interface OrgMembershipDefaultConnection { + nodes: OrgMembershipDefault[]; + edges: OrgMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgOwnerGrant` values. */ +export interface OrgOwnerGrantConnection { + nodes: OrgOwnerGrant[]; + edges: OrgOwnerGrantEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4202,24 +4325,17 @@ export interface OrgLimitCapConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgAdminGrant` values. */ -export interface OrgAdminGrantConnection { - nodes: OrgAdminGrant[]; - edges: OrgAdminGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgOwnerGrant` values. */ -export interface OrgOwnerGrantConnection { - nodes: OrgOwnerGrant[]; - edges: OrgOwnerGrantEdge[]; +/** A connection to a list of `OrgChartEdge` values. */ +export interface OrgChartEdgeConnection { + nodes: OrgChartEdge[]; + edges: OrgChartEdgeEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `MembershipType` values. */ -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; +/** A connection to a list of `AppLimitCreditCodeItem` values. */ +export interface AppLimitCreditCodeItemConnection { + nodes: AppLimitCreditCodeItem[]; + edges: AppLimitCreditCodeItemEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4237,10 +4353,10 @@ export interface OrgLimitDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCreditCodeItem` values. */ -export interface AppLimitCreditCodeItemConnection { - nodes: AppLimitCreditCodeItem[]; - edges: AppLimitCreditCodeItemEdge[]; +/** A connection to a list of `AppLimitCreditCode` values. */ +export interface AppLimitCreditCodeConnection { + nodes: AppLimitCreditCode[]; + edges: AppLimitCreditCodeEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4251,6 +4367,13 @@ export interface AppLimitWarningConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdgeGrant` values. */ +export interface OrgChartEdgeGrantConnection { + nodes: OrgChartEdgeGrant[]; + edges: OrgChartEdgeGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLimitCredit` values. */ export interface AppLimitCreditConnection { nodes: AppLimitCredit[]; @@ -4258,13 +4381,6 @@ export interface AppLimitCreditConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitWarning` values. */ -export interface OrgLimitWarningConnection { - nodes: OrgLimitWarning[]; - edges: OrgLimitWarningEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgLimitCredit` values. */ export interface OrgLimitCreditConnection { nodes: OrgLimitCredit[]; @@ -4272,13 +4388,6 @@ export interface OrgLimitCreditConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgChartEdgeGrant` values. */ -export interface OrgChartEdgeGrantConnection { - nodes: OrgChartEdgeGrant[]; - edges: OrgChartEdgeGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppClaimedInvite` values. */ export interface AppClaimedInviteConnection { nodes: AppClaimedInvite[]; @@ -4286,24 +4395,24 @@ export interface AppClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppGrant` values. */ -export interface AppGrantConnection { - nodes: AppGrant[]; - edges: AppGrantEdge[]; +/** A connection to a list of `OrgLimitWarning` values. */ +export interface OrgLimitWarningConnection { + nodes: OrgLimitWarning[]; + edges: OrgLimitWarningEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppMembershipDefault` values. */ -export interface AppMembershipDefaultConnection { - nodes: AppMembershipDefault[]; - edges: AppMembershipDefaultEdge[]; +/** A connection to a list of `MembershipType` values. */ +export interface MembershipTypeConnection { + nodes: MembershipType[]; + edges: MembershipTypeEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembershipDefault` values. */ -export interface OrgMembershipDefaultConnection { - nodes: OrgMembershipDefault[]; - edges: OrgMembershipDefaultEdge[]; +/** A connection to a list of `AppGrant` values. */ +export interface AppGrantConnection { + nodes: AppGrant[]; + edges: AppGrantEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4314,6 +4423,20 @@ export interface OrgClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgGrant` values. */ +export interface OrgGrantConnection { + nodes: OrgGrant[]; + edges: OrgGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UsageSnapshot` values. */ +export interface UsageSnapshotConnection { + nodes: UsageSnapshot[]; + edges: UsageSnapshotEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLimitEvent` values. */ export interface AppLimitEventConnection { nodes: AppLimitEvent[]; @@ -4328,24 +4451,24 @@ export interface OrgLimitEventConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgGrant` values. */ -export interface OrgGrantConnection { - nodes: OrgGrant[]; - edges: OrgGrantEdge[]; +/** A connection to a list of `OrgMembershipSetting` values. */ +export interface OrgMembershipSettingConnection { + nodes: OrgMembershipSetting[]; + edges: OrgMembershipSettingEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgChartEdge` values. */ -export interface OrgChartEdgeConnection { - nodes: OrgChartEdge[]; - edges: OrgChartEdgeEdge[]; +/** A connection to a list of `OrgMemberProfile` values. */ +export interface OrgMemberProfileConnection { + nodes: OrgMemberProfile[]; + edges: OrgMemberProfileEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `UsageSnapshot` values. */ -export interface UsageSnapshotConnection { - nodes: UsageSnapshot[]; - edges: UsageSnapshotEdge[]; +/** A connection to a list of `AppMembership` values. */ +export interface AppMembershipConnection { + nodes: AppMembership[]; + edges: AppMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4356,17 +4479,10 @@ export interface AppLimitConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppInvite` values. */ -export interface AppInviteConnection { - nodes: AppInvite[]; - edges: AppInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembershipSetting` values. */ -export interface OrgMembershipSettingConnection { - nodes: OrgMembershipSetting[]; - edges: OrgMembershipSettingEdge[]; +/** A connection to a list of `OrgMembership` values. */ +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4384,31 +4500,17 @@ export interface OrgLimitConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMemberProfile` values. */ -export interface OrgMemberProfileConnection { - nodes: OrgMemberProfile[]; - edges: OrgMemberProfileEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppMembership` values. */ -export interface AppMembershipConnection { - nodes: AppMembership[]; - edges: AppMembershipEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgInvite` values. */ -export interface OrgInviteConnection { - nodes: OrgInvite[]; - edges: OrgInviteEdge[]; +/** A connection to a list of `AppInvite` values. */ +export interface AppInviteConnection { + nodes: AppInvite[]; + edges: AppInviteEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembership` values. */ -export interface OrgMembershipConnection { - nodes: OrgMembership[]; - edges: OrgMembershipEdge[]; +/** A connection to a list of `OrgInvite` values. */ +export interface OrgInviteConnection { + nodes: OrgInvite[]; + edges: OrgInviteEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4442,11 +4544,17 @@ export interface CreateAppPermissionDefaultPayload { appPermissionDefault?: AppPermissionDefault | null; appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface CreateAppLimitCreditCodePayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export interface CreateOrgPermissionDefaultPayload { clientMutationId?: string | null; @@ -4454,29 +4562,29 @@ export interface CreateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface CreateAppPermissionPayload { +export interface CreateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export interface CreateOrgPermissionPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface CreateAppAdminGrantPayload { +export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface CreateAppOwnerGrantPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export interface CreateAppLimitCapsDefaultPayload { clientMutationId?: string | null; @@ -4502,23 +4610,17 @@ export interface CreateOrgLimitCapPayload { orgLimitCap?: OrgLimitCap | null; orgLimitCapEdge?: OrgLimitCapEdge | null; } -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface CreateOrgOwnerGrantPayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface CreateMembershipTypePayload { +export interface CreateAppLimitCreditCodeItemPayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppLimitCreditCodeItem` that was created by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; } export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; @@ -4532,11 +4634,23 @@ export interface CreateOrgLimitDefaultPayload { orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface CreateAppLimitCreditCodeItemPayload { +export interface CreateAppPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; } export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; @@ -4544,53 +4658,47 @@ export interface CreateAppLimitWarningPayload { appLimitWarning?: AppLimitWarning | null; appLimitWarningEdge?: AppLimitWarningEdge | null; } +export interface CreateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface CreateAppLimitCreditPayload { clientMutationId?: string | null; /** The `AppLimitCredit` that was created by this mutation. */ appLimitCredit?: AppLimitCredit | null; appLimitCreditEdge?: AppLimitCreditEdge | null; } -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface CreateOrgLimitCreditPayload { clientMutationId?: string | null; /** The `OrgLimitCredit` that was created by this mutation. */ orgLimitCredit?: OrgLimitCredit | null; orgLimitCreditEdge?: OrgLimitCreditEdge | null; } -export interface CreateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was created by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} export interface CreateAppClaimedInvitePayload { clientMutationId?: string | null; /** The `AppClaimedInvite` that was created by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface CreateAppGrantPayload { +export interface CreateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export interface CreateOrgMembershipDefaultPayload { +export interface CreateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } export interface CreateOrgClaimedInvitePayload { clientMutationId?: string | null; @@ -4598,33 +4706,47 @@ export interface CreateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } +export interface CreateOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was created by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface CreateUsageSnapshotPayload { + clientMutationId?: string | null; + /** The `UsageSnapshot` that was created by this mutation. */ + usageSnapshot?: UsageSnapshot | null; + usageSnapshotEdge?: UsageSnapshotEdge | null; +} export interface CreateAppLimitEventPayload { clientMutationId?: string | null; /** The `AppLimitEvent` that was created by this mutation. */ appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } export interface CreateOrgLimitEventPayload { clientMutationId?: string | null; /** The `OrgLimitEvent` that was created by this mutation. */ orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } -export interface CreateOrgGrantPayload { +export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `OrgGrant` that was created by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export interface CreateOrgChartEdgePayload { +export interface CreateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export interface CreateUsageSnapshotPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was created by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } export interface CreateAppLimitPayload { clientMutationId?: string | null; @@ -4632,17 +4754,11 @@ export interface CreateAppLimitPayload { appLimit?: AppLimit | null; appLimitEdge?: AppLimitEdge | null; } -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } export interface CreateOrgLimitAggregatePayload { clientMutationId?: string | null; @@ -4656,17 +4772,11 @@ export interface CreateOrgLimitPayload { orgLimit?: OrgLimit | null; orgLimitEdge?: OrgLimitEdge | null; } -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export interface CreateAppMembershipPayload { +export interface CreateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } export interface CreateOrgInvitePayload { clientMutationId?: string | null; @@ -4674,12 +4784,6 @@ export interface CreateOrgInvitePayload { orgInvite?: OrgInvite | null; orgInviteEdge?: OrgInviteEdge | null; } -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} export interface UpdateAppLimitCreditRedemptionPayload { clientMutationId?: string | null; /** The `AppLimitCreditRedemption` that was updated by this mutation. */ @@ -4698,11 +4802,17 @@ export interface UpdateAppPermissionDefaultPayload { appPermissionDefault?: AppPermissionDefault | null; appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export interface UpdateOrgPermissionDefaultPayload { clientMutationId?: string | null; @@ -4710,29 +4820,29 @@ export interface UpdateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface UpdateAppPermissionPayload { +export interface UpdateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export interface UpdateOrgPermissionPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface UpdateAppAdminGrantPayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface UpdateAppOwnerGrantPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export interface UpdateAppLimitCapsDefaultPayload { clientMutationId?: string | null; @@ -4758,23 +4868,17 @@ export interface UpdateOrgLimitCapPayload { orgLimitCap?: OrgLimitCap | null; orgLimitCapEdge?: OrgLimitCapEdge | null; } -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface UpdateOrgOwnerGrantPayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface UpdateMembershipTypePayload { +export interface UpdateAppLimitCreditCodeItemPayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; } export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; @@ -4788,11 +4892,23 @@ export interface UpdateOrgLimitDefaultPayload { orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface UpdateAppLimitCreditCodeItemPayload { +export interface UpdateAppPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; } export interface UpdateAppLimitWarningPayload { clientMutationId?: string | null; @@ -4800,53 +4916,47 @@ export interface UpdateAppLimitWarningPayload { appLimitWarning?: AppLimitWarning | null; appLimitWarningEdge?: AppLimitWarningEdge | null; } +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface UpdateAppLimitCreditPayload { clientMutationId?: string | null; /** The `AppLimitCredit` that was updated by this mutation. */ appLimitCredit?: AppLimitCredit | null; appLimitCreditEdge?: AppLimitCreditEdge | null; } -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface UpdateOrgLimitCreditPayload { clientMutationId?: string | null; /** The `OrgLimitCredit` that was updated by this mutation. */ orgLimitCredit?: OrgLimitCredit | null; orgLimitCreditEdge?: OrgLimitCreditEdge | null; } -export interface UpdateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was updated by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} export interface UpdateAppClaimedInvitePayload { clientMutationId?: string | null; /** The `AppClaimedInvite` that was updated by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface UpdateAppGrantPayload { +export interface UpdateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } export interface UpdateOrgClaimedInvitePayload { clientMutationId?: string | null; @@ -4860,29 +4970,23 @@ export interface UpdateOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } -export interface UpdateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} export interface UpdateUsageSnapshotPayload { clientMutationId?: string | null; /** The `UsageSnapshot` that was updated by this mutation. */ usageSnapshot?: UsageSnapshot | null; usageSnapshotEdge?: UsageSnapshotEdge | null; } -export interface UpdateAppLimitPayload { +export interface UpdateAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export interface UpdateAppInvitePayload { +export interface UpdateOrgLimitEventPayload { clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } export interface UpdateOrgMembershipSettingPayload { clientMutationId?: string | null; @@ -4890,18 +4994,6 @@ export interface UpdateOrgMembershipSettingPayload { orgMembershipSetting?: OrgMembershipSetting | null; orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export interface UpdateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} export interface UpdateOrgMemberProfilePayload { clientMutationId?: string | null; /** The `OrgMemberProfile` that was updated by this mutation. */ @@ -4914,11 +5006,11 @@ export interface UpdateAppMembershipPayload { appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } -export interface UpdateOrgInvitePayload { +export interface UpdateAppLimitPayload { clientMutationId?: string | null; - /** The `OrgInvite` that was updated by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; @@ -4926,6 +5018,30 @@ export interface UpdateOrgMembershipPayload { orgMembership?: OrgMembership | null; orgMembershipEdge?: OrgMembershipEdge | null; } +export interface UpdateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface UpdateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface DeleteAppLimitCreditRedemptionPayload { clientMutationId?: string | null; /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ @@ -4944,11 +5060,17 @@ export interface DeleteAppPermissionDefaultPayload { appPermissionDefault?: AppPermissionDefault | null; appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export interface DeleteOrgPermissionDefaultPayload { clientMutationId?: string | null; @@ -4956,29 +5078,29 @@ export interface DeleteOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface DeleteAppPermissionPayload { +export interface DeleteAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export interface DeleteOrgPermissionPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface DeleteAppAdminGrantPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface DeleteAppOwnerGrantPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export interface DeleteAppLimitCapsDefaultPayload { clientMutationId?: string | null; @@ -5004,23 +5126,17 @@ export interface DeleteOrgLimitCapPayload { orgLimitCap?: OrgLimitCap | null; orgLimitCapEdge?: OrgLimitCapEdge | null; } -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface DeleteOrgOwnerGrantPayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface DeleteMembershipTypePayload { +export interface DeleteAppLimitCreditCodeItemPayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; } export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; @@ -5034,11 +5150,23 @@ export interface DeleteOrgLimitDefaultPayload { orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface DeleteAppLimitCreditCodeItemPayload { +export interface DeleteAppPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; } export interface DeleteAppLimitWarningPayload { clientMutationId?: string | null; @@ -5046,54 +5174,48 @@ export interface DeleteAppLimitWarningPayload { appLimitWarning?: AppLimitWarning | null; appLimitWarningEdge?: AppLimitWarningEdge | null; } +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface DeleteAppLimitCreditPayload { clientMutationId?: string | null; /** The `AppLimitCredit` that was deleted by this mutation. */ appLimitCredit?: AppLimitCredit | null; appLimitCreditEdge?: AppLimitCreditEdge | null; } -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface DeleteOrgLimitCreditPayload { clientMutationId?: string | null; /** The `OrgLimitCredit` that was deleted by this mutation. */ orgLimitCredit?: OrgLimitCredit | null; orgLimitCreditEdge?: OrgLimitCreditEdge | null; } -export interface DeleteOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} export interface DeleteAppClaimedInvitePayload { clientMutationId?: string | null; /** The `AppClaimedInvite` that was deleted by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } +export interface DeleteOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} export interface DeleteAppGrantPayload { clientMutationId?: string | null; /** The `AppGrant` that was deleted by this mutation. */ appGrant?: AppGrant | null; appGrantEdge?: AppGrantEdge | null; } -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} export interface DeleteOrgClaimedInvitePayload { clientMutationId?: string | null; /** The `OrgClaimedInvite` that was deleted by this mutation. */ @@ -5106,29 +5228,23 @@ export interface DeleteOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} export interface DeleteUsageSnapshotPayload { clientMutationId?: string | null; /** The `UsageSnapshot` that was deleted by this mutation. */ usageSnapshot?: UsageSnapshot | null; usageSnapshotEdge?: UsageSnapshotEdge | null; } -export interface DeleteAppLimitPayload { +export interface DeleteAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export interface DeleteAppInvitePayload { +export interface DeleteOrgLimitEventPayload { clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } export interface DeleteOrgMembershipSettingPayload { clientMutationId?: string | null; @@ -5136,18 +5252,6 @@ export interface DeleteOrgMembershipSettingPayload { orgMembershipSetting?: OrgMembershipSetting | null; orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export interface DeleteOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} export interface DeleteOrgMemberProfilePayload { clientMutationId?: string | null; /** The `OrgMemberProfile` that was deleted by this mutation. */ @@ -5160,11 +5264,11 @@ export interface DeleteAppMembershipPayload { appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } -export interface DeleteOrgInvitePayload { +export interface DeleteAppLimitPayload { clientMutationId?: string | null; - /** The `OrgInvite` that was deleted by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; @@ -5172,6 +5276,30 @@ export interface DeleteOrgMembershipPayload { orgMembership?: OrgMembership | null; orgMembershipEdge?: OrgMembershipEdge | null; } +export interface DeleteOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface DeleteAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; @@ -5239,18 +5367,6 @@ export interface AppPermissionDefaultEdge { /** The `AppPermissionDefault` at the end of the edge. */ node?: AppPermissionDefault | null; } -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { - cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; -} -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -5263,6 +5379,36 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +/** A `OrgAdminGrant` edge in the connection. */ +export interface OrgAdminGrantEdge { + cursor?: string | null; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; +} +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} /** A `AppLimitCapsDefault` edge in the connection. */ export interface AppLimitCapsDefaultEdge { cursor?: string | null; @@ -5287,23 +5433,17 @@ export interface OrgLimitCapEdge { /** The `OrgLimitCap` at the end of the edge. */ node?: OrgLimitCap | null; } -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppLimitCreditCodeItem` edge in the connection. */ +export interface AppLimitCreditCodeItemEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppLimitCreditCodeItem` at the end of the edge. */ + node?: AppLimitCreditCodeItem | null; } /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { @@ -5317,11 +5457,11 @@ export interface OrgLimitDefaultEdge { /** The `OrgLimitDefault` at the end of the edge. */ node?: OrgLimitDefault | null; } -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; } /** A `AppLimitWarning` edge in the connection. */ export interface AppLimitWarningEdge { @@ -5329,53 +5469,47 @@ export interface AppLimitWarningEdge { /** The `AppLimitWarning` at the end of the edge. */ node?: AppLimitWarning | null; } +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} /** A `AppLimitCredit` edge in the connection. */ export interface AppLimitCreditEdge { cursor?: string | null; /** The `AppLimitCredit` at the end of the edge. */ node?: AppLimitCredit | null; } -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} /** A `OrgLimitCredit` edge in the connection. */ export interface OrgLimitCreditEdge { cursor?: string | null; /** The `OrgLimitCredit` at the end of the edge. */ node?: OrgLimitCredit | null; } -/** A `OrgChartEdgeGrant` edge in the connection. */ -export interface OrgChartEdgeGrantEdge { - cursor?: string | null; - /** The `OrgChartEdgeGrant` at the end of the edge. */ - node?: OrgChartEdgeGrant | null; -} /** A `AppClaimedInvite` edge in the connection. */ export interface AppClaimedInviteEdge { cursor?: string | null; /** The `AppClaimedInvite` at the end of the edge. */ node?: AppClaimedInvite | null; } -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; } -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; } /** A `OrgClaimedInvite` edge in the connection. */ export interface OrgClaimedInviteEdge { @@ -5383,6 +5517,18 @@ export interface OrgClaimedInviteEdge { /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; } +/** A `OrgGrant` edge in the connection. */ +export interface OrgGrantEdge { + cursor?: string | null; + /** The `OrgGrant` at the end of the edge. */ + node?: OrgGrant | null; +} +/** A `UsageSnapshot` edge in the connection. */ +export interface UsageSnapshotEdge { + cursor?: string | null; + /** The `UsageSnapshot` at the end of the edge. */ + node?: UsageSnapshot | null; +} /** A `AppLimitEvent` edge in the connection. */ export interface AppLimitEventEdge { cursor?: string | null; @@ -5395,23 +5541,23 @@ export interface OrgLimitEventEdge { /** The `OrgLimitEvent` at the end of the edge. */ node?: OrgLimitEvent | null; } -/** A `OrgGrant` edge in the connection. */ -export interface OrgGrantEdge { +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { cursor?: string | null; - /** The `OrgGrant` at the end of the edge. */ - node?: OrgGrant | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; } -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { +/** A `OrgMemberProfile` edge in the connection. */ +export interface OrgMemberProfileEdge { cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; + /** The `OrgMemberProfile` at the end of the edge. */ + node?: OrgMemberProfile | null; } -/** A `UsageSnapshot` edge in the connection. */ -export interface UsageSnapshotEdge { +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { cursor?: string | null; - /** The `UsageSnapshot` at the end of the edge. */ - node?: UsageSnapshot | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; } /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { @@ -5419,17 +5565,11 @@ export interface AppLimitEdge { /** The `AppLimit` at the end of the edge. */ node?: AppLimit | null; } -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { - cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; -} -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } /** A `OrgLimitAggregate` edge in the connection. */ export interface OrgLimitAggregateEdge { @@ -5443,17 +5583,11 @@ export interface OrgLimitEdge { /** The `OrgLimit` at the end of the edge. */ node?: OrgLimit | null; } -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; } /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { @@ -5461,12 +5595,6 @@ export interface OrgInviteEdge { /** The `OrgInvite` at the end of the edge. */ node?: OrgInvite | null; } -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} /** Information about a database table */ export interface MetaTable { name: string; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index ed241455fe..65d7d187e5 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -57,30 +57,59 @@ export interface AppPermissionDefault { id: string | null; permissions: string | null; } -export interface AppLimitCreditCode { +export interface AppAdminGrant { id: string | null; - code: string | null; - maxRedemptions: number | null; - currentRedemptions: number | null; - expiresAt: string | null; + isGrant: boolean | null; + actorId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface AppOwnerGrant { + id: string | null; + isGrant: boolean | null; + actorId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; } export interface OrgPermissionDefault { id: string | null; permissions: string | null; entityId: string | null; } -export interface AppAdminGrant { +export interface AppMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isVerified: boolean | null; +} +export interface OrgAdminGrant { id: string | null; isGrant: boolean | null; actorId: string | null; + entityId: string | null; grantorId: string | null; createdAt: string | null; updatedAt: string | null; } -export interface AppOwnerGrant { +export interface OrgMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + entityId: string | null; +} +export interface OrgOwnerGrant { id: string | null; isGrant: boolean | null; actorId: string | null; + entityId: string | null; grantorId: string | null; createdAt: string | null; updatedAt: string | null; @@ -107,31 +136,15 @@ export interface OrgLimitCap { entityId: string | null; max: string | null; } -export interface OrgAdminGrant { +export interface OrgChartEdge { id: string | null; - isGrant: boolean | null; - actorId: string | null; - entityId: string | null; - grantorId: string | null; createdAt: string | null; updatedAt: string | null; -} -export interface OrgOwnerGrant { - id: string | null; - isGrant: boolean | null; - actorId: string | null; entityId: string | null; - grantorId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface MembershipType { - id: number | null; - name: string | null; - description: string | null; - prefix: string | null; - parentMembershipType: number | null; - hasUsersTableEntry: boolean | null; + childId: string | null; + parentId: string | null; + positionTitle: string | null; + positionLevel: number | null; } export interface AppLimitDefault { id: string | null; @@ -154,20 +167,19 @@ export interface OrgLimitCredit { creditType: string | null; reason: string | null; } -export interface AppLimitWarning { +export interface AppLimitCreditCode { id: string | null; - name: string | null; - warningType: string | null; - thresholdValue: string | null; - taskIdentifier: string | null; + code: string | null; + maxRedemptions: number | null; + currentRedemptions: number | null; + expiresAt: string | null; } -export interface OrgLimitWarning { +export interface AppLimitWarning { id: string | null; name: string | null; warningType: string | null; thresholdValue: string | null; taskIdentifier: string | null; - entityId: string | null; } export interface OrgChartEdgeGrant { id: string | null; @@ -188,6 +200,22 @@ export interface AppClaimedInvite { createdAt: string | null; updatedAt: string | null; } +export interface OrgLimitWarning { + id: string | null; + name: string | null; + warningType: string | null; + thresholdValue: string | null; + taskIdentifier: string | null; + entityId: string | null; +} +export interface MembershipType { + id: number | null; + name: string | null; + description: string | null; + prefix: string | null; + parentMembershipType: number | null; + hasUsersTableEntry: boolean | null; +} export interface AppGrant { id: string | null; permissions: string | null; @@ -197,34 +225,36 @@ export interface AppGrant { createdAt: string | null; updatedAt: string | null; } -export interface AppMembershipDefault { +export interface OrgClaimedInvite { id: string | null; + data: unknown | null; + senderId: string | null; + receiverId: string | null; createdAt: string | null; updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isVerified: boolean | null; + entityId: string | null; } -export interface OrgMembershipDefault { +export interface OrgGrant { id: string | null; + permissions: string | null; + isGrant: boolean | null; + actorId: string | null; + entityId: string | null; + grantorId: string | null; createdAt: string | null; updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - entityId: string | null; } -export interface OrgClaimedInvite { +export interface UsageSnapshot { + databaseId: string | null; + metricName: string | null; + metricValue: string | null; + dimensions: unknown | null; + capturedAt: string | null; id: string | null; - data: unknown | null; - senderId: string | null; - receiverId: string | null; - createdAt: string | null; - updatedAt: string | null; - entityId: string | null; } export interface AppLimitEvent { + createdAt: string | null; + id: string | null; name: string | null; actorId: string | null; entityId: string | null; @@ -236,6 +266,8 @@ export interface AppLimitEvent { reason: string | null; } export interface OrgLimitEvent { + createdAt: string | null; + id: string | null; name: string | null; actorId: string | null; entityId: string | null; @@ -246,33 +278,52 @@ export interface OrgLimitEvent { maxAtEvent: string | null; reason: string | null; } -export interface OrgGrant { +export interface OrgMembershipSetting { id: string | null; - permissions: string | null; - isGrant: boolean | null; - actorId: string | null; - entityId: string | null; - grantorId: string | null; createdAt: string | null; updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + entityId: string | null; + deleteMemberCascadeChildren: boolean | null; + createChildCascadeOwners: boolean | null; + createChildCascadeAdmins: boolean | null; + createChildCascadeMembers: boolean | null; + allowExternalMembers: boolean | null; + inviteProfileAssignmentMode: string | null; + populateMemberEmail: boolean | null; + limitAllocationMode: string | null; } -export interface OrgChartEdge { +export interface OrgMemberProfile { id: string | null; createdAt: string | null; updatedAt: string | null; + membershipId: string | null; entityId: string | null; - childId: string | null; - parentId: string | null; - positionTitle: string | null; - positionLevel: number | null; + actorId: string | null; + displayName: string | null; + email: string | null; + title: string | null; + bio: string | null; + profilePicture: ConstructiveInternalTypeImage | null; } -export interface UsageSnapshot { - databaseId: string | null; - metricName: string | null; - metricValue: string | null; - dimensions: unknown | null; - capturedAt: string | null; +export interface AppMembership { id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isBanned: boolean | null; + isDisabled: boolean | null; + isVerified: boolean | null; + isActive: boolean | null; + isOwner: boolean | null; + isAdmin: boolean | null; + permissions: string | null; + granted: string | null; + actorId: string | null; + profileId: string | null; } export interface AppLimit { id: string | null; @@ -287,36 +338,25 @@ export interface AppLimit { purchasedCredits: string | null; periodCredits: string | null; } -export interface AppInvite { - id: string | null; - email: ConstructiveInternalTypeEmail | null; - senderId: string | null; - inviteToken: string | null; - inviteValid: boolean | null; - inviteLimit: number | null; - inviteCount: number | null; - multiple: boolean | null; - data: unknown | null; - profileId: string | null; - expiresAt: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface OrgMembershipSetting { +export interface OrgMembership { id: string | null; createdAt: string | null; updatedAt: string | null; createdBy: string | null; updatedBy: string | null; + isApproved: boolean | null; + isBanned: boolean | null; + isDisabled: boolean | null; + isActive: boolean | null; + isExternal: boolean | null; + isOwner: boolean | null; + isAdmin: boolean | null; + permissions: string | null; + granted: string | null; + actorId: string | null; entityId: string | null; - deleteMemberCascadeChildren: boolean | null; - createChildCascadeOwners: boolean | null; - createChildCascadeAdmins: boolean | null; - createChildCascadeMembers: boolean | null; - allowExternalMembers: boolean | null; - inviteProfileAssignmentMode: string | null; - populateMemberEmail: boolean | null; - limitAllocationMode: string | null; + isReadOnly: boolean | null; + profileId: string | null; } export interface OrgLimitAggregate { id: string | null; @@ -346,36 +386,20 @@ export interface OrgLimit { periodCredits: string | null; entityId: string | null; } -export interface OrgMemberProfile { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - membershipId: string | null; - entityId: string | null; - actorId: string | null; - displayName: string | null; - email: string | null; - title: string | null; - bio: string | null; - profilePicture: ConstructiveInternalTypeImage | null; -} -export interface AppMembership { +export interface AppInvite { id: string | null; + email: ConstructiveInternalTypeEmail | null; + senderId: string | null; + inviteToken: string | null; + inviteValid: boolean | null; + inviteLimit: number | null; + inviteCount: number | null; + multiple: boolean | null; + data: unknown | null; + profileId: string | null; + expiresAt: string | null; createdAt: string | null; updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isBanned: boolean | null; - isDisabled: boolean | null; - isVerified: boolean | null; - isActive: boolean | null; - isOwner: boolean | null; - isAdmin: boolean | null; - permissions: string | null; - granted: string | null; - actorId: string | null; - profileId: string | null; } export interface OrgInvite { id: string | null; @@ -395,26 +419,6 @@ export interface OrgInvite { updatedAt: string | null; entityId: string | null; } -export interface OrgMembership { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isBanned: boolean | null; - isDisabled: boolean | null; - isActive: boolean | null; - isExternal: boolean | null; - isOwner: boolean | null; - isAdmin: boolean | null; - permissions: string | null; - granted: string | null; - actorId: string | null; - entityId: string | null; - isReadOnly: boolean | null; - profileId: string | null; -} export interface StringFilter { isNull?: boolean; equalTo?: string; diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md index 56cbbcb51c..c89dc37f9e 100644 --- a/sdk/constructive-react/src/objects/hooks/README.md +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -93,20 +93,20 @@ create({ path: '', data: '' }); ```typescript // List all objects const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, }); // Get one object const { data: item } = useObjectQuery({ id: '', - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, }); // Create a object const { mutate: create } = useCreateObjectMutation({ selection: { fields: { id: true } }, }); -create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +create({ hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }); ``` ### Ref @@ -114,20 +114,20 @@ create({ hashUuid: '', databaseId: '', kids: '', ktree: '', - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); // Create a ref const { mutate: create } = useCreateRefMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', storeId: '', commitId: '' }); +create({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` ### Store @@ -135,20 +135,20 @@ create({ name: '', databaseId: '', storeId: '', commitId: '< ```typescript // List all stores const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); // Get one store const { data: item } = useStoreQuery({ id: '', - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); // Create a store const { mutate: create } = useCreateStoreMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', hash: '' }); +create({ name: '', scopeId: '', hash: '' }); ``` ### Commit @@ -156,20 +156,20 @@ create({ name: '', databaseId: '', hash: '' }); ```typescript // List all commits const { data, isLoading } = useCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); // Get one commit const { data: item } = useCommitQuery({ id: '', - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); // Create a commit const { mutate: create } = useCreateCommitMutation({ selection: { fields: { id: true } }, }); -create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +create({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` ## Custom Operation Hooks @@ -183,7 +183,7 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | @@ -196,7 +196,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `first` | Int | | `offset` | Int | @@ -211,7 +211,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `path` | [String] | | `first` | Int | @@ -227,7 +227,7 @@ getObjectAtPath | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `path` | [String] | | `refname` | String | diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts index 250ee6c188..120545dba8 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts @@ -20,7 +20,7 @@ export const getAllObjectsFromRootQueryKey = customQueryKeys.getAllObjectsFromRo * * @example * ```tsx - * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { sId, id, first, offset, after } }); * * if (data?.getAllObjectsFromRoot) { * console.log(data.getAllObjectsFromRoot); @@ -77,7 +77,7 @@ export function useGetAllObjectsFromRootQuery< * * @example * ```ts - * const data = await fetchGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * const data = await fetchGetAllObjectsFromRootQuery({ variables: { sId, id, first, offset, after } }); * ``` */ export async function fetchGetAllObjectsFromRootQuery(params?: { @@ -91,7 +91,7 @@ export async function fetchGetAllObjectsFromRootQuery(params?: { * * @example * ```ts - * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { databaseId, id, first, offset, after } }); + * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { sId, id, first, offset, after } }); * ``` */ export async function prefetchGetAllObjectsFromRootQuery( diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts index f36831e832..8e441116b9 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts @@ -22,7 +22,7 @@ export const getObjectAtPathQueryKey = customQueryKeys.getObjectAtPath; * * @example * ```tsx - * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * * if (data?.getObjectAtPath) { * console.log(data.getObjectAtPath); @@ -78,7 +78,7 @@ export function useGetObjectAtPathQuery( * * @example * ```ts - * const data = await fetchGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * const data = await fetchGetObjectAtPathQuery({ variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * ``` */ export async function fetchGetObjectAtPathQuery(params: { @@ -106,7 +106,7 @@ export async function fetchGetObjectAtPathQuery(params: { * * @example * ```ts - * await prefetchGetObjectAtPathQuery(queryClient, { variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * await prefetchGetObjectAtPathQuery(queryClient, { variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * ``` */ export async function prefetchGetObjectAtPathQuery( diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts index 32bb021f83..47068094eb 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts @@ -20,7 +20,7 @@ export const getPathObjectsFromRootQueryKey = customQueryKeys.getPathObjectsFrom * * @example * ```tsx - * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { sId, id, path, first, offset, after } }); * * if (data?.getPathObjectsFromRoot) { * console.log(data.getPathObjectsFromRoot); @@ -77,7 +77,7 @@ export function useGetPathObjectsFromRootQuery< * * @example * ```ts - * const data = await fetchGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * const data = await fetchGetPathObjectsFromRootQuery({ variables: { sId, id, path, first, offset, after } }); * ``` */ export async function fetchGetPathObjectsFromRootQuery(params?: { @@ -91,7 +91,7 @@ export async function fetchGetPathObjectsFromRootQuery(params?: { * * @example * ```ts - * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { databaseId, id, path, first, offset, after } }); + * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { sId, id, path, first, offset, after } }); * ``` */ export async function prefetchGetPathObjectsFromRootQuery( diff --git a/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts index d8b6226fbc..675621528d 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts @@ -19,7 +19,7 @@ export const revParseQueryKey = customQueryKeys.revParse; * * @example * ```tsx - * const { data, isLoading } = useRevParseQuery({ variables: { dbId, storeId, refname } }); + * const { data, isLoading } = useRevParseQuery({ variables: { sId, storeId, refname } }); * * if (data?.revParse) { * console.log(data.revParse); @@ -76,7 +76,7 @@ export function useRevParseQuery< * * @example * ```ts - * const data = await fetchRevParseQuery({ variables: { dbId, storeId, refname } }); + * const data = await fetchRevParseQuery({ variables: { sId, storeId, refname } }); * ``` */ export async function fetchRevParseQuery(params?: { variables?: RevParseVariables }) { @@ -88,7 +88,7 @@ export async function fetchRevParseQuery(params?: { variables?: RevParseVariable * * @example * ```ts - * await prefetchRevParseQuery(queryClient, { variables: { dbId, storeId, refname } }); + * await prefetchRevParseQuery(queryClient, { variables: { sId, storeId, refname } }); * ``` */ export async function prefetchRevParseQuery( diff --git a/sdk/constructive-react/src/objects/orm/README.md b/sdk/constructive-react/src/objects/orm/README.md index 94b8dc0860..98224dbfa7 100644 --- a/sdk/constructive-react/src/objects/orm/README.md +++ b/sdk/constructive-react/src/objects/orm/README.md @@ -69,7 +69,7 @@ CRUD operations for Object records. |-------|------|----------| | `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `kids` | UUID | Yes | | `ktree` | String | Yes | | `data` | JSON | Yes | @@ -80,13 +80,13 @@ CRUD operations for Object records. ```typescript // List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); @@ -105,7 +105,7 @@ CRUD operations for Ref records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | @@ -113,13 +113,13 @@ CRUD operations for Ref records. ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -138,7 +138,7 @@ CRUD operations for Store records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | @@ -146,13 +146,13 @@ CRUD operations for Store records. ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -171,7 +171,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -183,13 +183,13 @@ CRUD operations for Commit records. ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); @@ -209,12 +209,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -226,14 +226,14 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -245,7 +245,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `path` | [String] | | `first` | Int | @@ -253,7 +253,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -265,13 +265,13 @@ getObjectAtPath | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `path` | [String] | | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.mutation.freezeObjects` @@ -286,7 +286,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -301,7 +301,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.removeNodeAtPath` @@ -316,7 +316,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -331,7 +331,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -346,7 +346,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` diff --git a/sdk/constructive-react/src/objects/orm/input-types.ts b/sdk/constructive-react/src/objects/orm/input-types.ts index 8fcc221ef8..fe16958d8e 100644 --- a/sdk/constructive-react/src/objects/orm/input-types.ts +++ b/sdk/constructive-react/src/objects/orm/input-types.ts @@ -238,7 +238,7 @@ export interface GetAllRecord { export interface Object { hashUuid?: string | null; id: string; - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -251,7 +251,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -261,8 +261,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -273,8 +273,8 @@ export interface Commit { id: string; /** The commit message */ message?: string | null; - /** The repository identifier */ - databaseId?: string | null; + /** The scope identifier */ + scopeId?: string | null; storeId?: string | null; /** Parent commits */ parentIds?: string[] | null; @@ -318,7 +318,7 @@ export type GetAllRecordSelect = { export type ObjectSelect = { hashUuid?: boolean; id?: boolean; - databaseId?: boolean; + scopeId?: boolean; kids?: boolean; ktree?: boolean; data?: boolean; @@ -328,21 +328,21 @@ export type ObjectSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -361,8 +361,8 @@ export interface GetAllRecordFilter { export interface ObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -385,8 +385,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -403,8 +403,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -421,8 +421,8 @@ export interface CommitFilter { id?: UUIDFilter; /** Filter by the object’s `message` field. */ message?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -457,8 +457,8 @@ export type ObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -477,8 +477,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -491,8 +491,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -505,8 +505,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -543,7 +543,7 @@ export interface DeleteGetAllRecordInput { export interface CreateObjectInput { clientMutationId?: string; object: { - databaseId: string; + scopeId: string; kids?: string[]; ktree?: string[]; data?: Record; @@ -551,7 +551,7 @@ export interface CreateObjectInput { }; } export interface ObjectPatch { - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -570,14 +570,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -594,13 +594,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -616,7 +616,7 @@ export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -627,7 +627,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -649,30 +649,30 @@ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -680,7 +680,7 @@ export interface SetPropsAndCommitInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -689,7 +689,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -698,7 +698,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; diff --git a/sdk/constructive-react/src/objects/orm/query/index.ts b/sdk/constructive-react/src/objects/orm/query/index.ts index ce1f8680dc..e132a1ab47 100644 --- a/sdk/constructive-react/src/objects/orm/query/index.ts +++ b/sdk/constructive-react/src/objects/orm/query/index.ts @@ -9,12 +9,12 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { Object, ObjectSelect, ObjectConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } export interface GetAllObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; /** Only read the first `n` values of the set. */ first?: number; @@ -27,7 +27,7 @@ export interface GetAllObjectsFromRootVariables { after?: string; } export interface GetPathObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; path?: string[]; /** Only read the first `n` values of the set. */ @@ -41,7 +41,7 @@ export interface GetPathObjectsFromRootVariables { after?: string; } export interface GetObjectAtPathVariables { - dbId?: string; + sId?: string; storeId?: string; path?: string[]; refname?: string; @@ -69,7 +69,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -106,7 +106,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -151,7 +151,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -200,7 +200,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { diff --git a/sdk/constructive-react/src/objects/schema-types.ts b/sdk/constructive-react/src/objects/schema-types.ts index d094a19a92..22b2281e87 100644 --- a/sdk/constructive-react/src/objects/schema-types.ts +++ b/sdk/constructive-react/src/objects/schema-types.ts @@ -37,8 +37,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -52,8 +52,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -67,8 +67,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -88,8 +88,8 @@ export type ObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -106,8 +106,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -125,8 +125,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -144,8 +144,8 @@ export interface CommitFilter { id?: UUIDFilter; /** Filter by the object’s `message` field. */ message?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -169,8 +169,8 @@ export interface CommitFilter { export interface ObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -190,30 +190,30 @@ export interface ObjectFilter { } export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -221,7 +221,7 @@ export interface SetPropsAndCommitInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; @@ -230,7 +230,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; @@ -239,7 +239,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -258,7 +258,7 @@ export interface RefInput { id?: string; /** The name of the ref or branch */ name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; } @@ -273,8 +273,8 @@ export interface StoreInput { id?: string; /** The name of the store (e.g., metaschema, migrations). */ name: string; - /** The database this store belongs to. */ - databaseId: string; + /** The scope this store belongs to. */ + scopeId: string; /** The current head tree_id for this store. */ hash?: string; createdAt?: string; @@ -290,8 +290,8 @@ export interface CommitInput { id?: string; /** The commit message */ message?: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; storeId: string; /** Parent commits */ parentIds?: string[]; @@ -311,7 +311,7 @@ export interface CreateObjectInput { /** An input for mutations affecting `Object` */ export interface ObjectInput { id: string; - databaseId: string; + scopeId: string; kids?: string[]; ktree?: string[]; data?: unknown; @@ -322,7 +322,7 @@ export interface UpdateRefInput { clientMutationId?: string; /** The primary unique identifier for the ref. */ id: string; - databaseId: string; + scopeId: string; /** An object where the defined keys will be set on the `Ref` being updated. */ refPatch: RefPatch; } @@ -332,7 +332,7 @@ export interface RefPatch { id?: string; /** The name of the ref or branch */ name?: string; - databaseId?: string; + scopeId?: string; storeId?: string; commitId?: string; } @@ -349,8 +349,8 @@ export interface StorePatch { id?: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string; - /** The database this store belongs to. */ - databaseId?: string; + /** The scope this store belongs to. */ + scopeId?: string; /** The current head tree_id for this store. */ hash?: string; createdAt?: string; @@ -359,8 +359,8 @@ export interface UpdateCommitInput { clientMutationId?: string; /** The primary unique identifier for the commit. */ id: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; /** An object where the defined keys will be set on the `Commit` being updated. */ commitPatch: CommitPatch; } @@ -370,8 +370,8 @@ export interface CommitPatch { id?: string; /** The commit message */ message?: string; - /** The repository identifier */ - databaseId?: string; + /** The scope identifier */ + scopeId?: string; storeId?: string; /** Parent commits */ parentIds?: string[]; @@ -386,14 +386,14 @@ export interface CommitPatch { export interface UpdateObjectInput { clientMutationId?: string; id: string; - databaseId: string; + scopeId: string; /** An object where the defined keys will be set on the `Object` being updated. */ objectPatch: ObjectPatch; } /** Represents an update to a `Object`. Fields that are set will be updated. */ export interface ObjectPatch { id?: string; - databaseId?: string; + scopeId?: string; kids?: string[]; ktree?: string[]; data?: unknown; @@ -404,7 +404,7 @@ export interface DeleteRefInput { clientMutationId?: string; /** The primary unique identifier for the ref. */ id: string; - databaseId: string; + scopeId: string; } export interface DeleteStoreInput { clientMutationId?: string; @@ -415,13 +415,13 @@ export interface DeleteCommitInput { clientMutationId?: string; /** The primary unique identifier for the commit. */ id: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; } export interface DeleteObjectInput { clientMutationId?: string; id: string; - databaseId: string; + scopeId: string; } export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ diff --git a/sdk/constructive-react/src/objects/types.ts b/sdk/constructive-react/src/objects/types.ts index 304a6206d1..95814fa3ec 100644 --- a/sdk/constructive-react/src/objects/types.ts +++ b/sdk/constructive-react/src/objects/types.ts @@ -10,7 +10,7 @@ export interface GetAllRecord { export interface Object { hashUuid: string | null; id: string | null; - databaseId: string | null; + scopeId: string | null; kids: string[] | null; ktree: string[] | null; data: unknown | null; @@ -20,21 +20,21 @@ export interface Object { export interface Ref { id: string | null; name: string | null; - databaseId: string | null; + scopeId: string | null; storeId: string | null; commitId: string | null; } export interface Store { id: string | null; name: string | null; - databaseId: string | null; + scopeId: string | null; hash: string | null; createdAt: string | null; } export interface Commit { id: string | null; message: string | null; - databaseId: string | null; + scopeId: string | null; storeId: string | null; parentIds: string[] | null; authorId: string | null; diff --git a/sdk/constructive-react/src/public/README.md b/sdk/constructive-react/src/public/README.md index e12b8f3ab3..3359f23cc3 100644 --- a/sdk/constructive-react/src/public/README.md +++ b/sdk/constructive-react/src/public/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 148 +- **Tables:** 150 - **Custom queries:** 20 - **Custom mutations:** 49 diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index 3bdb6edb3e..e6e253c61a 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -38,6 +38,11 @@ function App() { | `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | | `useGetAllQuery` | Query | List all getAll | | `useCreateGetAllRecordMutation` | Mutation | Create a getAllRecord | +| `useObjectsQuery` | Query | List all objects | +| `useObjectQuery` | Query | Get one object | +| `useCreateObjectMutation` | Mutation | Create a object | +| `useUpdateObjectMutation` | Mutation | Update a object | +| `useDeleteObjectMutation` | Mutation | Delete a object | | `useAppPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useAppPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useCreateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | @@ -48,11 +53,6 @@ function App() { | `useCreateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useUpdateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useDeleteOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useObjectsQuery` | Query | List all objects | -| `useObjectQuery` | Query | Get one object | -| `useCreateObjectMutation` | Mutation | Create a object | -| `useUpdateObjectMutation` | Mutation | Update a object | -| `useDeleteObjectMutation` | Mutation | Delete a object | | `useDatabasesQuery` | Query | List all databases | | `useDatabaseQuery` | Query | Get one database | | `useCreateDatabaseMutation` | Mutation | Create a database | @@ -208,6 +208,11 @@ function App() { | `useCreateRealtimeModuleMutation` | Mutation | Create a realtimeModule | | `useUpdateRealtimeModuleMutation` | Mutation | Update a realtimeModule | | `useDeleteRealtimeModuleMutation` | Mutation | Delete a realtimeModule | +| `useConfigSecretsOrgModulesQuery` | Query | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | +| `useConfigSecretsOrgModuleQuery` | Query | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | +| `useCreateConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | +| `useUpdateConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | +| `useDeleteConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | | `useSchemaGrantsQuery` | Query | List all schemaGrants | | `useSchemaGrantQuery` | Query | Get one schemaGrant | | `useCreateSchemaGrantMutation` | Mutation | Create a schemaGrant | @@ -328,11 +333,11 @@ function App() { | `useCreateEmailsModuleMutation` | Mutation | Create a emailsModule | | `useUpdateEmailsModuleMutation` | Mutation | Update a emailsModule | | `useDeleteEmailsModuleMutation` | Mutation | Delete a emailsModule | -| `useEncryptedSecretsModulesQuery` | Query | List all encryptedSecretsModules | -| `useEncryptedSecretsModuleQuery` | Query | Get one encryptedSecretsModule | -| `useCreateEncryptedSecretsModuleMutation` | Mutation | Create a encryptedSecretsModule | -| `useUpdateEncryptedSecretsModuleMutation` | Mutation | Update a encryptedSecretsModule | -| `useDeleteEncryptedSecretsModuleMutation` | Mutation | Delete a encryptedSecretsModule | +| `useConfigSecretsUserModulesQuery` | Query | List all configSecretsUserModules | +| `useConfigSecretsUserModuleQuery` | Query | Get one configSecretsUserModule | +| `useCreateConfigSecretsUserModuleMutation` | Mutation | Create a configSecretsUserModule | +| `useUpdateConfigSecretsUserModuleMutation` | Mutation | Update a configSecretsUserModule | +| `useDeleteConfigSecretsUserModuleMutation` | Mutation | Delete a configSecretsUserModule | | `useInvitesModulesQuery` | Query | List all invitesModules | | `useInvitesModuleQuery` | Query | Get one invitesModule | | `useCreateInvitesModuleMutation` | Mutation | Create a invitesModule | @@ -633,11 +638,6 @@ function App() { | `useCreateAgentTaskMutation` | Mutation | An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. | | `useUpdateAgentTaskMutation` | Mutation | An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. | | `useDeleteAgentTaskMutation` | Mutation | An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. | -| `useRoleTypesQuery` | Query | List all roleTypes | -| `useRoleTypeQuery` | Query | Get one roleType | -| `useCreateRoleTypeMutation` | Mutation | Create a roleType | -| `useUpdateRoleTypeMutation` | Mutation | Update a roleType | -| `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | | `useIdentityProvidersQuery` | Query | List all identityProviders | | `useCreateIdentityProviderMutation` | Mutation | Create a identityProvider | | `useRefsQuery` | Query | A ref is a data structure for pointing to a commit. | @@ -655,11 +655,16 @@ function App() { | `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useRoleTypesQuery` | Query | List all roleTypes | +| `useRoleTypeQuery` | Query | Get one roleType | +| `useCreateRoleTypeMutation` | Mutation | Create a roleType | +| `useUpdateRoleTypeMutation` | Mutation | Update a roleType | +| `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | +| `useMigrateFilesQuery` | Query | List all migrateFiles | +| `useMigrateFileQuery` | Query | Get one migrateFile | +| `useCreateMigrateFileMutation` | Mutation | Create a migrateFile | +| `useUpdateMigrateFileMutation` | Mutation | Update a migrateFile | +| `useDeleteMigrateFileMutation` | Mutation | Delete a migrateFile | | `useAppLimitCapsDefaultsQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | | `useAppLimitCapsDefaultQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | | `useCreateAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | @@ -670,56 +675,61 @@ function App() { | `useCreateOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | | `useUpdateOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | | `useDeleteOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useAppLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useAppLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useCreateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useUpdateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useDeleteAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useOrgLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useOrgLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useCreateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useUpdateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useDeleteOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useMigrateFilesQuery` | Query | List all migrateFiles | -| `useMigrateFileQuery` | Query | Get one migrateFile | -| `useCreateMigrateFileMutation` | Mutation | Create a migrateFile | -| `useUpdateMigrateFileMutation` | Mutation | Update a migrateFile | -| `useDeleteMigrateFileMutation` | Mutation | Delete a migrateFile | | `useDevicesModulesQuery` | Query | List all devicesModules | | `useDevicesModuleQuery` | Query | Get one devicesModule | | `useCreateDevicesModuleMutation` | Mutation | Create a devicesModule | | `useUpdateDevicesModuleMutation` | Mutation | Update a devicesModule | | `useDeleteDevicesModuleMutation` | Mutation | Delete a devicesModule | +| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `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 | +| `useAppLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useAppLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useCreateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useUpdateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useDeleteAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | | `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | | `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | | `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | | `useUpdateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | | `useDeleteAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useOrgLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useCreateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useUpdateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useDeleteOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | | `useOrgLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | | `useOrgLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | | `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | | `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | | `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useAppLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useAppLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useCreateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useUpdateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useDeleteAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useUserConnectedAccountsQuery` | Query | List all userConnectedAccounts | | `useUserConnectedAccountQuery` | Query | Get one userConnectedAccount | | `useCreateUserConnectedAccountMutation` | Mutation | Create a userConnectedAccount | | `useUpdateUserConnectedAccountMutation` | Mutation | Update a userConnectedAccount | | `useDeleteUserConnectedAccountMutation` | Mutation | Delete a userConnectedAccount | +| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | +| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | +| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useAppLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useAppLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useCreateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useUpdateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useDeleteAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useCommitsQuery` | Query | A commit records changes to the repository. | | `useCommitQuery` | Query | A commit records changes to the repository. | | `useCreateCommitMutation` | Mutation | A commit records changes to the repository. | @@ -740,30 +750,26 @@ function App() { | `useCreateUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | | `useUpdateUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | | `useDeleteUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useRlsSettingsQuery` | Query | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | | `useRlsSettingQuery` | Query | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | | `useCreateRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | | `useUpdateRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | | `useDeleteRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | -| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | | `useRlsModulesQuery` | Query | List all rlsModules | | `useRlsModuleQuery` | Query | Get one rlsModule | | `useCreateRlsModuleMutation` | Mutation | Create a rlsModule | | `useUpdateRlsModuleMutation` | Mutation | Update a rlsModule | | `useDeleteRlsModuleMutation` | Mutation | Delete a rlsModule | +| `useInferenceLogModulesQuery` | Query | List all inferenceLogModules | +| `useInferenceLogModuleQuery` | Query | Get one inferenceLogModule | +| `useCreateInferenceLogModuleMutation` | Mutation | Create a inferenceLogModule | +| `useUpdateInferenceLogModuleMutation` | Mutation | Update a inferenceLogModule | +| `useDeleteInferenceLogModuleMutation` | Mutation | Delete a inferenceLogModule | | `useRateLimitMetersModulesQuery` | Query | List all rateLimitMetersModules | | `useRateLimitMetersModuleQuery` | Query | Get one rateLimitMetersModule | | `useCreateRateLimitMetersModuleMutation` | Mutation | Create a rateLimitMetersModule | @@ -779,41 +785,51 @@ function App() { | `useCreateSqlActionMutation` | Mutation | Create a sqlAction | | `useUpdateSqlActionMutation` | Mutation | Update a sqlAction | | `useDeleteSqlActionMutation` | Mutation | Delete a sqlAction | +| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useAppLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useUpdateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useDeleteAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useUpdateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useDeleteOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | | `useDatabaseSettingsQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useDatabaseSettingQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useCreateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useUpdateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useDeleteDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | +| `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | +| `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | +| `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | +| `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | +| `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useBillingModulesQuery` | Query | List all billingModules | | `useBillingModuleQuery` | Query | Get one billingModule | | `useCreateBillingModuleMutation` | Mutation | Create a billingModule | | `useUpdateBillingModuleMutation` | Mutation | Update a billingModule | | `useDeleteBillingModuleMutation` | Mutation | Delete a billingModule | -| `useAstMigrationsQuery` | Query | List all astMigrations | -| `useAstMigrationQuery` | Query | Get one astMigration | -| `useCreateAstMigrationMutation` | Mutation | Create a astMigration | -| `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | -| `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | +| `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useUsersQuery` | Query | List all users | | `useUserQuery` | Query | Get one user | | `useCreateUserMutation` | Mutation | Create a user | | `useUpdateUserMutation` | Mutation | Update a user | | `useDeleteUserMutation` | Mutation | Delete a user | -| `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | -| `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | -| `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | +| `useAstMigrationsQuery` | Query | List all astMigrations | +| `useAstMigrationQuery` | Query | Get one astMigration | +| `useCreateAstMigrationMutation` | Mutation | Create a astMigration | +| `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | +| `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | | `useWebauthnSettingsQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | | `useWebauthnSettingQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | | `useCreateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | | `useUpdateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | | `useDeleteWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useBillingProviderModulesQuery` | Query | List all billingProviderModules | | `useBillingProviderModuleQuery` | Query | Get one billingProviderModule | | `useCreateBillingProviderModuleMutation` | Mutation | Create a billingProviderModule | @@ -838,11 +854,11 @@ function App() { | `useResolveBlueprintTableQuery` | Query | Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. | | `useAppPermissionsGetMaskByNamesQuery` | Query | appPermissionsGetMaskByNames | | `useOrgPermissionsGetMaskByNamesQuery` | Query | orgPermissionsGetMaskByNames | -| `useAppPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppPermission`. | -| `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | | `useGetAllObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | | `useGetPathObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | | `useGetObjectAtPathQuery` | Query | getObjectAtPath | +| `useAppPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppPermission`. | +| `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | | `useCurrentUserQuery` | Query | currentUser | | `useSendAccountDeletionEmailMutation` | Mutation | sendAccountDeletionEmail | | `useSignOutMutation` | Mutation | signOut | @@ -868,7 +884,10 @@ function App() { | `useRemoveNodeAtPathMutation` | Mutation | removeNodeAtPath | | `useCopyTemplateToBlueprintMutation` | Mutation | Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. | | `useProvisionSpatialRelationMutation` | Mutation | Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. | +| `useSignInCrossOriginMutation` | Mutation | signInCrossOrigin | | `useBootstrapUserMutation` | Mutation | bootstrapUser | +| `useSignUpMutation` | Mutation | signUp | +| `useSignInMutation` | Mutation | signIn | | `useSetFieldOrderMutation` | Mutation | setFieldOrder | | `useProvisionCheckConstraintMutation` | Mutation | Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. | | `useProvisionUniqueConstraintMutation` | Mutation | Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. | @@ -882,7 +901,6 @@ function App() { | `useSetAndCommitMutation` | Mutation | setAndCommit | | `useProvisionRelationMutation` | Mutation | Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). | | `useApplyRlsMutation` | Mutation | applyRls | -| `useSignInCrossOriginMutation` | Mutation | signInCrossOrigin | | `useCreateUserDatabaseMutation` | Mutation | Creates a new user database with all required modules, permissions, and RLS policies. Parameters: @@ -902,12 +920,10 @@ Example usage: | | `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | | `useCreateApiKeyMutation` | Mutation | createApiKey | -| `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | -| `useForgotPasswordMutation` | Mutation | forgotPassword | -| `useSignUpMutation` | Mutation | signUp | | `useRequestCrossOriginTokenMutation` | Mutation | requestCrossOriginToken | -| `useSignInMutation` | Mutation | signIn | | `useProvisionTableMutation` | Mutation | Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). | +| `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | +| `useForgotPasswordMutation` | Mutation | forgotPassword | | `useProvisionBucketMutation` | Mutation | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -960,6 +976,27 @@ const { mutate: create } = useCreateGetAllRecordMutation({ create({ path: '', data: '' }); ``` +### Object + +```typescript +// List all objects +const { data, isLoading } = useObjectsQuery({ + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); + +// Get one object +const { data: item } = useObjectQuery({ + id: '', + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); + +// Create a object +const { mutate: create } = useCreateObjectMutation({ + selection: { fields: { id: true } }, +}); +create({ hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }); +``` + ### AppPermission ```typescript @@ -1002,27 +1039,6 @@ const { mutate: create } = useCreateOrgPermissionMutation({ create({ name: '', bitnum: '', bitstr: '', description: '' }); ``` -### Object - -```typescript -// List all objects -const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); - -// Get one object -const { data: item } = useObjectQuery({ - id: '', - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); - -// Create a object -const { mutate: create } = useCreateObjectMutation({ - selection: { fields: { id: true } }, -}); -create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); -``` - ### Database ```typescript @@ -1527,6 +1543,27 @@ const { mutate: create } = useCreateRealtimeModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '' }); ``` +### ConfigSecretsOrgModule + +```typescript +// List all configSecretsOrgModules +const { data, isLoading } = useConfigSecretsOrgModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Get one configSecretsOrgModule +const { data: item } = useConfigSecretsOrgModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Create a configSecretsOrgModule +const { mutate: create } = useCreateConfigSecretsOrgModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` + ### SchemaGrant ```typescript @@ -1805,20 +1842,20 @@ create({ databaseId: '', targetOwnerId: '', sourceApproved: '', - selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }, }); // Create a partition const { mutate: create } = useCreatePartitionMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }); +create({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }); ``` ### Api @@ -2031,22 +2068,22 @@ const { mutate: create } = useCreateEmailsModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); ``` -### EncryptedSecretsModule +### ConfigSecretsUserModule ```typescript -// List all encryptedSecretsModules -const { data, isLoading } = useEncryptedSecretsModulesQuery({ +// List all configSecretsUserModules +const { data, isLoading } = useConfigSecretsUserModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, }); -// Get one encryptedSecretsModule -const { data: item } = useEncryptedSecretsModuleQuery({ +// Get one configSecretsUserModule +const { data: item } = useConfigSecretsUserModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, }); -// Create a encryptedSecretsModule -const { mutate: create } = useCreateEncryptedSecretsModuleMutation({ +// Create a configSecretsUserModule +const { mutate: create } = useCreateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); @@ -2372,20 +2409,20 @@ create({ blueprintId: '', databaseId: '', schemaId: '', status ```typescript // List all storageModules const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, }); // Get one storageModule const { data: item } = useStorageModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, }); // Create a storageModule const { mutate: create } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); ``` ### EntityTypeProvision @@ -3165,27 +3202,6 @@ const { mutate: create } = useCreateAgentTaskMutation({ create({ threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }); ``` -### RoleType - -```typescript -// List all roleTypes -const { data, isLoading } = useRoleTypesQuery({ - selection: { fields: { id: true, name: true } }, -}); - -// Get one roleType -const { data: item } = useRoleTypeQuery({ - id: '', - selection: { fields: { id: true, name: true } }, -}); - -// Create a roleType -const { mutate: create } = useCreateRoleTypeMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '' }); -``` - ### IdentityProvider ```typescript @@ -3206,20 +3222,20 @@ create({ slug: '', kind: '', displayName: '', enabled: ' ```typescript // List all refs const { data, isLoading } = useRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); // Get one ref const { data: item } = useRefQuery({ id: '', - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); // Create a ref const { mutate: create } = useCreateRefMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', storeId: '', commitId: '' }); +create({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` ### Store @@ -3227,20 +3243,20 @@ create({ name: '', databaseId: '', storeId: '', commitId: '< ```typescript // List all stores const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); // Get one store const { data: item } = useStoreQuery({ id: '', - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); // Create a store const { mutate: create } = useCreateStoreMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', hash: '' }); +create({ name: '', scopeId: '', hash: '' }); ``` ### AppPermissionDefault @@ -3264,172 +3280,151 @@ const { mutate: create } = useCreateAppPermissionDefaultMutation({ create({ permissions: '' }); ``` -### AppLimitCreditCode +### RoleType ```typescript -// List all appLimitCreditCodes -const { data, isLoading } = useAppLimitCreditCodesQuery({ - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, +// List all roleTypes +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true, name: true } }, }); -// Get one appLimitCreditCode -const { data: item } = useAppLimitCreditCodeQuery({ - id: '', - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, +// Get one roleType +const { data: item } = useRoleTypeQuery({ + id: '', + selection: { fields: { id: true, name: true } }, }); -// Create a appLimitCreditCode -const { mutate: create } = useCreateAppLimitCreditCodeMutation({ +// Create a roleType +const { mutate: create } = useCreateRoleTypeMutation({ selection: { fields: { id: true } }, }); -create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); +create({ name: '' }); ``` -### AppLimitCapsDefault +### MigrateFile ```typescript -// List all appLimitCapsDefaults -const { data, isLoading } = useAppLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all migrateFiles +const { data, isLoading } = useMigrateFilesQuery({ + selection: { fields: { id: true, databaseId: true, upload: true } }, }); -// Get one appLimitCapsDefault -const { data: item } = useAppLimitCapsDefaultQuery({ - id: '', - selection: { fields: { id: true, name: true, max: true } }, +// Get one migrateFile +const { data: item } = useMigrateFileQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, upload: true } }, }); -// Create a appLimitCapsDefault -const { mutate: create } = useCreateAppLimitCapsDefaultMutation({ +// Create a migrateFile +const { mutate: create } = useCreateMigrateFileMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ databaseId: '', upload: '' }); ``` -### OrgLimitCapsDefault +### AppLimitCapsDefault ```typescript -// List all orgLimitCapsDefaults -const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ +// List all appLimitCapsDefaults +const { data, isLoading } = useAppLimitCapsDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } }, }); -// Get one orgLimitCapsDefault -const { data: item } = useOrgLimitCapsDefaultQuery({ +// Get one appLimitCapsDefault +const { data: item } = useAppLimitCapsDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } }, }); -// Create a orgLimitCapsDefault -const { mutate: create } = useCreateOrgLimitCapsDefaultMutation({ +// Create a appLimitCapsDefault +const { mutate: create } = useCreateAppLimitCapsDefaultMutation({ selection: { fields: { id: true } }, }); create({ name: '', max: '' }); ``` -### AppLimitCap +### OrgLimitCapsDefault ```typescript -// List all appLimitCaps -const { data, isLoading } = useAppLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, +// List all orgLimitCapsDefaults +const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, }); -// Get one appLimitCap -const { data: item } = useAppLimitCapQuery({ +// Get one orgLimitCapsDefault +const { data: item } = useOrgLimitCapsDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, entityId: true, max: true } }, + selection: { fields: { id: true, name: true, max: true } }, }); -// Create a appLimitCap -const { mutate: create } = useCreateAppLimitCapMutation({ +// Create a orgLimitCapsDefault +const { mutate: create } = useCreateOrgLimitCapsDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', entityId: '', max: '' }); +create({ name: '', max: '' }); ``` -### OrgLimitCap +### DevicesModule ```typescript -// List all orgLimitCaps -const { data, isLoading } = useOrgLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, +// List all devicesModules +const { data, isLoading } = useDevicesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, }); -// Get one orgLimitCap -const { data: item } = useOrgLimitCapQuery({ +// Get one devicesModule +const { data: item } = useDevicesModuleQuery({ id: '', - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); - -// Create a orgLimitCap -const { mutate: create } = useCreateOrgLimitCapMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', entityId: '', max: '' }); -``` - -### MembershipType - -```typescript -// List all membershipTypes -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, -}); - -// Get one membershipType -const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, }); -// Create a membershipType -const { mutate: create } = useCreateMembershipTypeMutation({ +// Create a devicesModule +const { mutate: create } = useCreateDevicesModuleMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); +create({ databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }); ``` -### MigrateFile +### AppMembershipDefault ```typescript -// List all migrateFiles -const { data, isLoading } = useMigrateFilesQuery({ - selection: { fields: { id: true, databaseId: true, upload: true } }, +// List all appMembershipDefaults +const { data, isLoading } = useAppMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, }); -// Get one migrateFile -const { data: item } = useMigrateFileQuery({ +// Get one appMembershipDefault +const { data: item } = useAppMembershipDefaultQuery({ id: '', - selection: { fields: { id: true, databaseId: true, upload: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, }); -// Create a migrateFile -const { mutate: create } = useCreateMigrateFileMutation({ +// Create a appMembershipDefault +const { mutate: create } = useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', upload: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); ``` -### DevicesModule +### OrgMembershipDefault ```typescript -// List all devicesModules -const { data, isLoading } = useDevicesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, +// List all orgMembershipDefaults +const { data, isLoading } = useOrgMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, }); -// Get one devicesModule -const { data: item } = useDevicesModuleQuery({ +// Get one orgMembershipDefault +const { data: item } = useOrgMembershipDefaultQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, }); -// Create a devicesModule -const { mutate: create } = useCreateDevicesModuleMutation({ +// Create a orgMembershipDefault +const { mutate: create } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); ``` ### NodeTypeRegistry @@ -3453,6 +3448,27 @@ const { mutate: create } = useCreateNodeTypeRegistryMutation({ create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); ``` +### AppLimitCap + +```typescript +// List all appLimitCaps +const { data, isLoading } = useAppLimitCapsQuery({ + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Get one appLimitCap +const { data: item } = useAppLimitCapQuery({ + id: '', + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Create a appLimitCap +const { mutate: create } = useCreateAppLimitCapMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', entityId: '', max: '' }); +``` + ### AppLimitDefault ```typescript @@ -3474,46 +3490,46 @@ const { mutate: create } = useCreateAppLimitDefaultMutation({ create({ name: '', max: '', softMax: '' }); ``` -### OrgLimitDefault +### OrgLimitCap ```typescript -// List all orgLimitDefaults -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true, softMax: true } }, +// List all orgLimitCaps +const { data, isLoading } = useOrgLimitCapsQuery({ + selection: { fields: { id: true, name: true, entityId: true, max: true } }, }); -// Get one orgLimitDefault -const { data: item } = useOrgLimitDefaultQuery({ +// Get one orgLimitCap +const { data: item } = useOrgLimitCapQuery({ id: '', - selection: { fields: { id: true, name: true, max: true, softMax: true } }, + selection: { fields: { id: true, name: true, entityId: true, max: true } }, }); -// Create a orgLimitDefault -const { mutate: create } = useCreateOrgLimitDefaultMutation({ +// Create a orgLimitCap +const { mutate: create } = useCreateOrgLimitCapMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '', softMax: '' }); +create({ name: '', entityId: '', max: '' }); ``` -### AppLimitWarning +### OrgLimitDefault ```typescript -// List all appLimitWarnings -const { data, isLoading } = useAppLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, +// List all orgLimitDefaults +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); -// Get one appLimitWarning -const { data: item } = useAppLimitWarningQuery({ +// Get one orgLimitDefault +const { data: item } = useOrgLimitDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); -// Create a appLimitWarning -const { mutate: create } = useCreateAppLimitWarningMutation({ +// Create a orgLimitDefault +const { mutate: create } = useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); +create({ name: '', max: '', softMax: '' }); ``` ### UserConnectedAccount @@ -3537,25 +3553,67 @@ const { mutate: create } = useCreateUserConnectedAccountMutation({ create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); ``` +### AppLimitCreditCode + +```typescript +// List all appLimitCreditCodes +const { data, isLoading } = useAppLimitCreditCodesQuery({ + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, +}); + +// Get one appLimitCreditCode +const { data: item } = useAppLimitCreditCodeQuery({ + id: '', + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, +}); + +// Create a appLimitCreditCode +const { mutate: create } = useCreateAppLimitCreditCodeMutation({ + selection: { fields: { id: true } }, +}); +create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); +``` + +### AppLimitWarning + +```typescript +// List all appLimitWarnings +const { data, isLoading } = useAppLimitWarningsQuery({ + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, +}); + +// Get one appLimitWarning +const { data: item } = useAppLimitWarningQuery({ + id: '', + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, +}); + +// Create a appLimitWarning +const { mutate: create } = useCreateAppLimitWarningMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); +``` + ### Commit ```typescript // List all commits const { data, isLoading } = useCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); // Get one commit const { data: item } = useCommitQuery({ id: '', - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); // Create a commit const { mutate: create } = useCreateCommitMutation({ selection: { fields: { id: true } }, }); -create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +create({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` ### PubkeySetting @@ -3621,46 +3679,25 @@ const { mutate: create } = useCreateUsageSnapshotMutation({ create({ databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }); ``` -### AppMembershipDefault - -```typescript -// List all appMembershipDefaults -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); - -// Get one appMembershipDefault -const { data: item } = useAppMembershipDefaultQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); - -// Create a appMembershipDefault -const { mutate: create } = useCreateAppMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); -``` - -### OrgMembershipDefault +### MembershipType ```typescript -// List all orgMembershipDefaults -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, +// List all membershipTypes +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); -// Get one orgMembershipDefault -const { data: item } = useOrgMembershipDefaultQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, +// Get one membershipType +const { data: item } = useMembershipTypeQuery({ + id: '', + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); -// Create a orgMembershipDefault -const { mutate: create } = useCreateOrgMembershipDefaultMutation({ +// Create a membershipType +const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); +create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); ``` ### RlsSetting @@ -3684,36 +3721,6 @@ const { mutate: create } = useCreateRlsSettingMutation({ create({ databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }); ``` -### AppLimitEvent - -```typescript -// List all appLimitEvents -const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); - -// Create a appLimitEvent -const { mutate: create } = useCreateAppLimitEventMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); -``` - -### OrgLimitEvent - -```typescript -// List all orgLimitEvents -const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); - -// Create a orgLimitEvent -const { mutate: create } = useCreateOrgLimitEventMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); -``` - ### RlsModule ```typescript @@ -3732,7 +3739,28 @@ const { data: item } = useRlsModuleQuery({ const { mutate: create } = useCreateRlsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); +``` + +### InferenceLogModule + +```typescript +// List all inferenceLogModules +const { data, isLoading } = useInferenceLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } }, +}); + +// Get one inferenceLogModule +const { data: item } = useInferenceLogModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } }, +}); + +// Create a inferenceLogModule +const { mutate: create } = useCreateInferenceLogModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', prefix: '' }); ``` ### RateLimitMetersModule @@ -3798,6 +3826,48 @@ const { mutate: create } = useCreateSqlActionMutation({ create({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` +### AppLimitEvent + +```typescript +// List all appLimitEvents +const { data, isLoading } = useAppLimitEventsQuery({ + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Get one appLimitEvent +const { data: item } = useAppLimitEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Create a appLimitEvent +const { mutate: create } = useCreateAppLimitEventMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` + +### OrgLimitEvent + +```typescript +// List all orgLimitEvents +const { data, isLoading } = useOrgLimitEventsQuery({ + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Get one orgLimitEvent +const { data: item } = useOrgLimitEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Create a orgLimitEvent +const { mutate: create } = useCreateOrgLimitEventMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` + ### DatabaseSetting ```typescript @@ -3819,46 +3889,67 @@ const { mutate: create } = useCreateDatabaseSettingMutation({ create({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }); ``` +### OrgMembershipSetting + +```typescript +// List all orgMembershipSettings +const { data, isLoading } = useOrgMembershipSettingsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, +}); + +// Get one orgMembershipSetting +const { data: item } = useOrgMembershipSettingQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, +}); + +// Create a orgMembershipSetting +const { mutate: create } = useCreateOrgMembershipSettingMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); +``` + ### BillingModule ```typescript // List all billingModules const { data, isLoading } = useBillingModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } }, }); // Get one billingModule const { data: item } = useBillingModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } }, }); // Create a billingModule const { mutate: create } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', recordUsageFunction: '', prefix: '' }); ``` -### AstMigration +### AppMembership ```typescript -// List all astMigrations -const { data, isLoading } = useAstMigrationsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +// List all appMemberships +const { data, isLoading } = useAppMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); -// Get one astMigration -const { data: item } = useAstMigrationQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +// Get one appMembership +const { data: item } = useAppMembershipQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); -// Create a astMigration -const { mutate: create } = useCreateAstMigrationMutation({ +// Create a appMembership +const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### User @@ -3882,25 +3973,25 @@ const { mutate: create } = useCreateUserMutation({ create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }); ``` -### OrgMembershipSetting +### AstMigration ```typescript -// List all orgMembershipSettings -const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, +// List all astMigrations +const { data, isLoading } = useAstMigrationsQuery({ + selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, }); -// Get one orgMembershipSetting -const { data: item } = useOrgMembershipSettingQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, +// Get one astMigration +const { data: item } = useAstMigrationQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, }); -// Create a orgMembershipSetting -const { mutate: create } = useCreateOrgMembershipSettingMutation({ +// Create a astMigration +const { mutate: create } = useCreateAstMigrationMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); +create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` ### WebauthnSetting @@ -3924,27 +4015,6 @@ const { mutate: create } = useCreateWebauthnSettingMutation({ create({ databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }); ``` -### AppMembership - -```typescript -// List all appMemberships -const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, -}); - -// Get one appMembership -const { data: item } = useAppMembershipQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, -}); - -// Create a appMembership -const { mutate: create } = useCreateAppMembershipMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); -``` - ### BillingProviderModule ```typescript @@ -4052,7 +4122,7 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | @@ -4142,78 +4212,78 @@ orgPermissionsGetMaskByNames |----------|------| | `names` | [String] | -### `useAppPermissionsGetByMaskQuery` +### `useGetAllObjectsFromRootQuery` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | -### `useOrgPermissionsGetByMaskQuery` +### `useGetPathObjectsFromRootQuery` -Reads and enables pagination through a set of `OrgPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | -### `useGetAllObjectsFromRootQuery` +### `useGetObjectAtPathQuery` -Reads and enables pagination through a set of `Object`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `sId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | -### `useGetPathObjectsFromRootQuery` +### `useAppPermissionsGetByMaskQuery` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | -### `useGetObjectAtPathQuery` +### `useOrgPermissionsGetByMaskQuery` -getObjectAtPath +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ### `useCurrentUserQuery` @@ -4486,6 +4556,17 @@ Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row dec |----------|------| | `input` | ProvisionSpatialRelationInput (required) | +### `useSignInCrossOriginMutation` + +signInCrossOrigin + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInCrossOriginInput (required) | + ### `useBootstrapUserMutation` bootstrapUser @@ -4497,6 +4578,28 @@ bootstrapUser |----------|------| | `input` | BootstrapUserInput (required) | +### `useSignUpMutation` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +### `useSignInMutation` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + ### `useSetFieldOrderMutation` setFieldOrder @@ -4640,17 +4743,6 @@ applyRls |----------|------| | `input` | ApplyRlsInput (required) | -### `useSignInCrossOriginMutation` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - ### `useCreateUserDatabaseMutation` Creates a new user database with all required modules, permissions, and RLS policies. @@ -4700,71 +4792,49 @@ createApiKey |----------|------| | `input` | CreateApiKeyInput (required) | -### `useSendVerificationEmailMutation` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -### `useForgotPasswordMutation` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -### `useSignUpMutation` +### `useRequestCrossOriginTokenMutation` -signUp +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | -### `useRequestCrossOriginTokenMutation` +### `useProvisionTableMutation` -requestCrossOriginToken +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ProvisionTableInput (required) | -### `useSignInMutation` +### `useSendVerificationEmailMutation` -signIn +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SendVerificationEmailInput (required) | -### `useProvisionTableMutation` +### `useForgotPasswordMutation` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | ForgotPasswordInput (required) | ### `useProvisionBucketMutation` diff --git a/sdk/constructive-react/src/public/hooks/index.ts b/sdk/constructive-react/src/public/hooks/index.ts index cff418571a..8b8fec2eb1 100644 --- a/sdk/constructive-react/src/public/hooks/index.ts +++ b/sdk/constructive-react/src/public/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, DatabaseTransfer, Partition, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, EventsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, UserStateModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, OrgLimitWarning, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AgentThread, AgentMessage, AgentTask, RoleType, IdentityProvider, Ref, Store, AppPermissionDefault, AppLimitCreditCode, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, MembershipType, MigrateFile, DevicesModule, NodeTypeRegistry, AppLimitDefault, OrgLimitDefault, AppLimitWarning, UserConnectedAccount, Commit, PubkeySetting, RateLimitsModule, UsageSnapshot, AppMembershipDefault, OrgMembershipDefault, RlsSetting, AppLimitEvent, OrgLimitEvent, RlsModule, RateLimitMetersModule, PlansModule, SqlAction, DatabaseSetting, BillingModule, AstMigration, User, OrgMembershipSetting, WebauthnSetting, AppMembership, BillingProviderModule, HierarchyModule + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, Object, AppPermission, OrgPermission, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, ConfigSecretsOrgModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, DatabaseTransfer, Partition, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, ConfigSecretsUserModule, InvitesModule, EventsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, UserStateModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, OrgLimitWarning, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AgentThread, AgentMessage, AgentTask, IdentityProvider, Ref, Store, AppPermissionDefault, RoleType, MigrateFile, AppLimitCapsDefault, OrgLimitCapsDefault, DevicesModule, AppMembershipDefault, OrgMembershipDefault, NodeTypeRegistry, AppLimitCap, AppLimitDefault, OrgLimitCap, OrgLimitDefault, UserConnectedAccount, AppLimitCreditCode, AppLimitWarning, Commit, PubkeySetting, RateLimitsModule, UsageSnapshot, MembershipType, RlsSetting, RlsModule, InferenceLogModule, RateLimitMetersModule, PlansModule, SqlAction, AppLimitEvent, OrgLimitEvent, DatabaseSetting, OrgMembershipSetting, BillingModule, AppMembership, User, AstMigration, WebauthnSetting, BillingProviderModule, HierarchyModule * * Usage: * diff --git a/sdk/constructive-react/src/public/hooks/invalidation.ts b/sdk/constructive-react/src/public/hooks/invalidation.ts index 1d04bc8e65..eec04a9577 100644 --- a/sdk/constructive-react/src/public/hooks/invalidation.ts +++ b/sdk/constructive-react/src/public/hooks/invalidation.ts @@ -18,9 +18,9 @@ import { orgGetManagersRecordKeys, orgGetSubordinatesRecordKeys, getAllRecordKeys, + objectKeys, appPermissionKeys, orgPermissionKeys, - objectKeys, databaseKeys, schemaKeys, tableKeys, @@ -45,6 +45,7 @@ import { sessionSecretsModuleKeys, identityProvidersModuleKeys, realtimeModuleKeys, + configSecretsOrgModuleKeys, schemaGrantKeys, defaultPrivilegeKeys, enumKeys, @@ -69,7 +70,7 @@ import { defaultIdsModuleKeys, denormalizedTableFieldKeys, emailsModuleKeys, - encryptedSecretsModuleKeys, + configSecretsUserModuleKeys, invitesModuleKeys, eventsModuleKeys, limitsModuleKeys, @@ -123,44 +124,45 @@ import { agentThreadKeys, agentMessageKeys, agentTaskKeys, - roleTypeKeys, identityProviderKeys, refKeys, storeKeys, appPermissionDefaultKeys, - appLimitCreditCodeKeys, + roleTypeKeys, + migrateFileKeys, appLimitCapsDefaultKeys, orgLimitCapsDefaultKeys, - appLimitCapKeys, - orgLimitCapKeys, - membershipTypeKeys, - migrateFileKeys, devicesModuleKeys, + appMembershipDefaultKeys, + orgMembershipDefaultKeys, nodeTypeRegistryKeys, + appLimitCapKeys, appLimitDefaultKeys, + orgLimitCapKeys, orgLimitDefaultKeys, - appLimitWarningKeys, userConnectedAccountKeys, + appLimitCreditCodeKeys, + appLimitWarningKeys, commitKeys, pubkeySettingKeys, rateLimitsModuleKeys, usageSnapshotKeys, - appMembershipDefaultKeys, - orgMembershipDefaultKeys, + membershipTypeKeys, rlsSettingKeys, - appLimitEventKeys, - orgLimitEventKeys, rlsModuleKeys, + inferenceLogModuleKeys, rateLimitMetersModuleKeys, plansModuleKeys, sqlActionKeys, + appLimitEventKeys, + orgLimitEventKeys, databaseSettingKeys, + orgMembershipSettingKeys, billingModuleKeys, - astMigrationKeys, + appMembershipKeys, userKeys, - orgMembershipSettingKeys, + astMigrationKeys, webauthnSettingKeys, - appMembershipKeys, billingProviderModuleKeys, hierarchyModuleKeys, } from './query-keys'; @@ -235,6 +237,20 @@ export const invalidate = { queryKey: getAllRecordKeys.detail(id), }), }, + /** Invalidate object queries */ object: { + /** Invalidate all object queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.all, + }), + /** Invalidate object list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }), + /** Invalidate a specific object */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: objectKeys.detail(id), + }), + }, /** Invalidate appPermission queries */ appPermission: { /** Invalidate all appPermission queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -269,20 +285,6 @@ export const invalidate = { queryKey: orgPermissionKeys.detail(id), }), }, - /** Invalidate object queries */ object: { - /** Invalidate all object queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: objectKeys.all, - }), - /** Invalidate object list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: objectKeys.lists(), - }), - /** Invalidate a specific object */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: objectKeys.detail(id), - }), - }, /** Invalidate database queries */ database: { /** Invalidate all database queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -664,6 +666,23 @@ export const invalidate = { queryKey: realtimeModuleKeys.detail(id), }), }, + /** Invalidate configSecretsOrgModule queries */ configSecretsOrgModule: { + /** Invalidate all configSecretsOrgModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.all, + }), + /** Invalidate configSecretsOrgModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.lists(), + }), + /** Invalidate a specific configSecretsOrgModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.detail(id), + }), + }, /** Invalidate schemaGrant queries */ schemaGrant: { /** Invalidate all schemaGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1054,21 +1073,21 @@ export const invalidate = { queryKey: emailsModuleKeys.detail(id), }), }, - /** Invalidate encryptedSecretsModule queries */ encryptedSecretsModule: { - /** Invalidate all encryptedSecretsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate configSecretsUserModule queries */ configSecretsUserModule: { + /** Invalidate all configSecretsUserModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.all, + queryKey: configSecretsUserModuleKeys.all, }), - /** Invalidate encryptedSecretsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate configSecretsUserModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.lists(), + queryKey: configSecretsUserModuleKeys.lists(), }), - /** Invalidate a specific encryptedSecretsModule */ detail: ( + /** Invalidate a specific configSecretsUserModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.detail(id), + queryKey: configSecretsUserModuleKeys.detail(id), }), }, /** Invalidate invitesModule queries */ invitesModule: { @@ -1954,20 +1973,6 @@ export const invalidate = { queryKey: agentTaskKeys.detail(id), }), }, - /** Invalidate roleType queries */ roleType: { - /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: roleTypeKeys.all, - }), - /** Invalidate roleType list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: roleTypeKeys.lists(), - }), - /** Invalidate a specific roleType */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: roleTypeKeys.detail(id), - }), - }, /** Invalidate identityProvider queries */ identityProvider: { /** Invalidate all identityProvider queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -2030,21 +2035,35 @@ export const invalidate = { queryKey: appPermissionDefaultKeys.detail(id), }), }, - /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { - /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => + /** Invalidate roleType queries */ roleType: { + /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.all, + queryKey: roleTypeKeys.all, }), - /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => + /** Invalidate roleType list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.lists(), + queryKey: roleTypeKeys.lists(), }), - /** Invalidate a specific appLimitCreditCode */ detail: ( + /** Invalidate a specific roleType */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.detail(id), + }), + }, + /** Invalidate migrateFile queries */ migrateFile: { + /** Invalidate all migrateFile queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: migrateFileKeys.all, + }), + /** Invalidate migrateFile list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: migrateFileKeys.lists(), + }), + /** Invalidate a specific migrateFile */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), + queryKey: migrateFileKeys.detail(id), }), }, /** Invalidate appLimitCapsDefault queries */ appLimitCapsDefault: { @@ -2081,123 +2100,123 @@ export const invalidate = { queryKey: orgLimitCapsDefaultKeys.detail(id), }), }, - /** Invalidate appLimitCap queries */ appLimitCap: { - /** Invalidate all appLimitCap queries */ all: (queryClient: QueryClient) => + /** Invalidate devicesModule queries */ devicesModule: { + /** Invalidate all devicesModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.all, + queryKey: devicesModuleKeys.all, }), - /** Invalidate appLimitCap list queries */ lists: (queryClient: QueryClient) => + /** Invalidate devicesModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.lists(), + queryKey: devicesModuleKeys.lists(), }), - /** Invalidate a specific appLimitCap */ detail: ( + /** Invalidate a specific devicesModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.detail(id), + queryKey: devicesModuleKeys.detail(id), }), }, - /** Invalidate orgLimitCap queries */ orgLimitCap: { - /** Invalidate all orgLimitCap queries */ all: (queryClient: QueryClient) => + /** Invalidate appMembershipDefault queries */ appMembershipDefault: { + /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.all, + queryKey: appMembershipDefaultKeys.all, }), - /** Invalidate orgLimitCap list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.lists(), + queryKey: appMembershipDefaultKeys.lists(), }), - /** Invalidate a specific orgLimitCap */ detail: ( + /** Invalidate a specific appMembershipDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.detail(id), + queryKey: appMembershipDefaultKeys.detail(id), }), }, - /** Invalidate membershipType queries */ membershipType: { - /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { + /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.all, + queryKey: orgMembershipDefaultKeys.all, }), - /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), + queryKey: orgMembershipDefaultKeys.lists(), }), - /** Invalidate a specific membershipType */ detail: ( + /** Invalidate a specific orgMembershipDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }), }, - /** Invalidate migrateFile queries */ migrateFile: { - /** Invalidate all migrateFile queries */ all: (queryClient: QueryClient) => + /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: { + /** Invalidate all nodeTypeRegistry queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: migrateFileKeys.all, + queryKey: nodeTypeRegistryKeys.all, }), - /** Invalidate migrateFile list queries */ lists: (queryClient: QueryClient) => + /** Invalidate nodeTypeRegistry list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: migrateFileKeys.lists(), + queryKey: nodeTypeRegistryKeys.lists(), }), - /** Invalidate a specific migrateFile */ detail: ( + /** Invalidate a specific nodeTypeRegistry */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: migrateFileKeys.detail(id), + queryKey: nodeTypeRegistryKeys.detail(id), }), }, - /** Invalidate devicesModule queries */ devicesModule: { - /** Invalidate all devicesModule queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitCap queries */ appLimitCap: { + /** Invalidate all appLimitCap queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.all, + queryKey: appLimitCapKeys.all, }), - /** Invalidate devicesModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitCap list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.lists(), + queryKey: appLimitCapKeys.lists(), }), - /** Invalidate a specific devicesModule */ detail: ( + /** Invalidate a specific appLimitCap */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.detail(id), + queryKey: appLimitCapKeys.detail(id), }), }, - /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: { - /** Invalidate all nodeTypeRegistry queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitDefault queries */ appLimitDefault: { + /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: nodeTypeRegistryKeys.all, + queryKey: appLimitDefaultKeys.all, }), - /** Invalidate nodeTypeRegistry list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: nodeTypeRegistryKeys.lists(), + queryKey: appLimitDefaultKeys.lists(), }), - /** Invalidate a specific nodeTypeRegistry */ detail: ( + /** Invalidate a specific appLimitDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: nodeTypeRegistryKeys.detail(id), + queryKey: appLimitDefaultKeys.detail(id), }), }, - /** Invalidate appLimitDefault queries */ appLimitDefault: { - /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate orgLimitCap queries */ orgLimitCap: { + /** Invalidate all orgLimitCap queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.all, + queryKey: orgLimitCapKeys.all, }), - /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgLimitCap list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.lists(), + queryKey: orgLimitCapKeys.lists(), }), - /** Invalidate a specific appLimitDefault */ detail: ( + /** Invalidate a specific orgLimitCap */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.detail(id), + queryKey: orgLimitCapKeys.detail(id), }), }, /** Invalidate orgLimitDefault queries */ orgLimitDefault: { @@ -2217,38 +2236,55 @@ export const invalidate = { queryKey: orgLimitDefaultKeys.detail(id), }), }, - /** Invalidate appLimitWarning queries */ appLimitWarning: { - /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => + /** Invalidate userConnectedAccount queries */ userConnectedAccount: { + /** Invalidate all userConnectedAccount queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.all, + queryKey: userConnectedAccountKeys.all, }), - /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => + /** Invalidate userConnectedAccount list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.lists(), + queryKey: userConnectedAccountKeys.lists(), }), - /** Invalidate a specific appLimitWarning */ detail: ( + /** Invalidate a specific userConnectedAccount */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.detail(id), + queryKey: userConnectedAccountKeys.detail(id), }), }, - /** Invalidate userConnectedAccount queries */ userConnectedAccount: { - /** Invalidate all userConnectedAccount queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { + /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.all, + queryKey: appLimitCreditCodeKeys.all, }), - /** Invalidate userConnectedAccount list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.lists(), + queryKey: appLimitCreditCodeKeys.lists(), }), - /** Invalidate a specific userConnectedAccount */ detail: ( + /** Invalidate a specific appLimitCreditCode */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.detail(id), + queryKey: appLimitCreditCodeKeys.detail(id), + }), + }, + /** Invalidate appLimitWarning queries */ appLimitWarning: { + /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitWarningKeys.all, + }), + /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitWarningKeys.lists(), + }), + /** Invalidate a specific appLimitWarning */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitWarningKeys.detail(id), }), }, /** Invalidate commit queries */ commit: { @@ -2316,38 +2352,21 @@ export const invalidate = { queryKey: usageSnapshotKeys.detail(id), }), }, - /** Invalidate appMembershipDefault queries */ appMembershipDefault: { - /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.all, - }), - /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), - }), - /** Invalidate a specific appMembershipDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.detail(id), - }), - }, - /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { - /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate membershipType queries */ membershipType: { + /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.all, + queryKey: membershipTypeKeys.all, }), - /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), + queryKey: membershipTypeKeys.lists(), }), - /** Invalidate a specific orgMembershipDefault */ detail: ( + /** Invalidate a specific membershipType */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }), }, /** Invalidate rlsSetting queries */ rlsSetting: { @@ -2367,55 +2386,38 @@ export const invalidate = { queryKey: rlsSettingKeys.detail(id), }), }, - /** Invalidate appLimitEvent queries */ appLimitEvent: { - /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.all, - }), - /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.lists(), - }), - /** Invalidate a specific appLimitEvent */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.detail(id), - }), - }, - /** Invalidate orgLimitEvent queries */ orgLimitEvent: { - /** Invalidate all orgLimitEvent queries */ all: (queryClient: QueryClient) => + /** Invalidate rlsModule queries */ rlsModule: { + /** Invalidate all rlsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.all, + queryKey: rlsModuleKeys.all, }), - /** Invalidate orgLimitEvent list queries */ lists: (queryClient: QueryClient) => + /** Invalidate rlsModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.lists(), + queryKey: rlsModuleKeys.lists(), }), - /** Invalidate a specific orgLimitEvent */ detail: ( + /** Invalidate a specific rlsModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.detail(id), + queryKey: rlsModuleKeys.detail(id), }), }, - /** Invalidate rlsModule queries */ rlsModule: { - /** Invalidate all rlsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate inferenceLogModule queries */ inferenceLogModule: { + /** Invalidate all inferenceLogModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: rlsModuleKeys.all, + queryKey: inferenceLogModuleKeys.all, }), - /** Invalidate rlsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate inferenceLogModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: rlsModuleKeys.lists(), + queryKey: inferenceLogModuleKeys.lists(), }), - /** Invalidate a specific rlsModule */ detail: ( + /** Invalidate a specific inferenceLogModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: rlsModuleKeys.detail(id), + queryKey: inferenceLogModuleKeys.detail(id), }), }, /** Invalidate rateLimitMetersModule queries */ rateLimitMetersModule: { @@ -2469,6 +2471,40 @@ export const invalidate = { queryKey: sqlActionKeys.detail(id), }), }, + /** Invalidate appLimitEvent queries */ appLimitEvent: { + /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.all, + }), + /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }), + /** Invalidate a specific appLimitEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.detail(id), + }), + }, + /** Invalidate orgLimitEvent queries */ orgLimitEvent: { + /** Invalidate all orgLimitEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.all, + }), + /** Invalidate orgLimitEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }), + /** Invalidate a specific orgLimitEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.detail(id), + }), + }, /** Invalidate databaseSetting queries */ databaseSetting: { /** Invalidate all databaseSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -2486,6 +2522,23 @@ export const invalidate = { queryKey: databaseSettingKeys.detail(id), }), }, + /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { + /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipSettingKeys.all, + }), + /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipSettingKeys.lists(), + }), + /** Invalidate a specific orgMembershipSetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgMembershipSettingKeys.detail(id), + }), + }, /** Invalidate billingModule queries */ billingModule: { /** Invalidate all billingModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -2503,21 +2556,21 @@ export const invalidate = { queryKey: billingModuleKeys.detail(id), }), }, - /** Invalidate astMigration queries */ astMigration: { - /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => + /** Invalidate appMembership queries */ appMembership: { + /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.all, + queryKey: appMembershipKeys.all, }), - /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.lists(), + queryKey: appMembershipKeys.lists(), }), - /** Invalidate a specific astMigration */ detail: ( + /** Invalidate a specific appMembership */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.detail(id), + queryKey: appMembershipKeys.detail(id), }), }, /** Invalidate user queries */ user: { @@ -2534,21 +2587,21 @@ export const invalidate = { queryKey: userKeys.detail(id), }), }, - /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { - /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => + /** Invalidate astMigration queries */ astMigration: { + /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.all, + queryKey: astMigrationKeys.all, }), - /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => + /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), + queryKey: astMigrationKeys.lists(), }), - /** Invalidate a specific orgMembershipSetting */ detail: ( + /** Invalidate a specific astMigration */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: astMigrationKeys.detail(id), }), }, /** Invalidate webauthnSetting queries */ webauthnSetting: { @@ -2568,23 +2621,6 @@ export const invalidate = { queryKey: webauthnSettingKeys.detail(id), }), }, - /** Invalidate appMembership queries */ appMembership: { - /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipKeys.all, - }), - /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipKeys.lists(), - }), - /** Invalidate a specific appMembership */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appMembershipKeys.detail(id), - }), - }, /** Invalidate billingProviderModule queries */ billingProviderModule: { /** Invalidate all billingProviderModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -2656,6 +2692,11 @@ export const remove = { queryKey: getAllRecordKeys.detail(id), }); }, + /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: objectKeys.detail(id), + }); + }, /** Remove appPermission from cache */ appPermission: ( queryClient: QueryClient, id: string | number @@ -2672,11 +2713,6 @@ export const remove = { queryKey: orgPermissionKeys.detail(id), }); }, - /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: objectKeys.detail(id), - }); - }, /** Remove database from cache */ database: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: databaseKeys.detail(id), @@ -2836,6 +2872,14 @@ export const remove = { queryKey: realtimeModuleKeys.detail(id), }); }, + /** Remove configSecretsOrgModule from cache */ configSecretsOrgModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: configSecretsOrgModuleKeys.detail(id), + }); + }, /** Remove schemaGrant from cache */ schemaGrant: ( queryClient: QueryClient, id: string | number @@ -2998,12 +3042,12 @@ export const remove = { queryKey: emailsModuleKeys.detail(id), }); }, - /** Remove encryptedSecretsModule from cache */ encryptedSecretsModule: ( + /** Remove configSecretsUserModule from cache */ configSecretsUserModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: encryptedSecretsModuleKeys.detail(id), + queryKey: configSecretsUserModuleKeys.detail(id), }); }, /** Remove invitesModule from cache */ invitesModule: ( @@ -3397,11 +3441,6 @@ export const remove = { queryKey: agentTaskKeys.detail(id), }); }, - /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: roleTypeKeys.detail(id), - }); - }, /** Remove identityProvider from cache */ identityProvider: ( queryClient: QueryClient, id: string | number @@ -3428,12 +3467,17 @@ export const remove = { queryKey: appPermissionDefaultKeys.detail(id), }); }, - /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( + /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: roleTypeKeys.detail(id), + }); + }, + /** Remove migrateFile from cache */ migrateFile: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), + queryKey: migrateFileKeys.detail(id), }); }, /** Remove appLimitCapsDefault from cache */ appLimitCapsDefault: ( @@ -3452,60 +3496,60 @@ export const remove = { queryKey: orgLimitCapsDefaultKeys.detail(id), }); }, - /** Remove appLimitCap from cache */ appLimitCap: ( + /** Remove devicesModule from cache */ devicesModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCapKeys.detail(id), + queryKey: devicesModuleKeys.detail(id), }); }, - /** Remove orgLimitCap from cache */ orgLimitCap: ( + /** Remove appMembershipDefault from cache */ appMembershipDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitCapKeys.detail(id), + queryKey: appMembershipDefaultKeys.detail(id), }); }, - /** Remove membershipType from cache */ membershipType: ( + /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }); }, - /** Remove migrateFile from cache */ migrateFile: ( + /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: migrateFileKeys.detail(id), + queryKey: nodeTypeRegistryKeys.detail(id), }); }, - /** Remove devicesModule from cache */ devicesModule: ( + /** Remove appLimitCap from cache */ appLimitCap: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: devicesModuleKeys.detail(id), + queryKey: appLimitCapKeys.detail(id), }); }, - /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( + /** Remove appLimitDefault from cache */ appLimitDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: nodeTypeRegistryKeys.detail(id), + queryKey: appLimitDefaultKeys.detail(id), }); }, - /** Remove appLimitDefault from cache */ appLimitDefault: ( + /** Remove orgLimitCap from cache */ orgLimitCap: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitDefaultKeys.detail(id), + queryKey: orgLimitCapKeys.detail(id), }); }, /** Remove orgLimitDefault from cache */ orgLimitDefault: ( @@ -3516,20 +3560,28 @@ export const remove = { queryKey: orgLimitDefaultKeys.detail(id), }); }, - /** Remove appLimitWarning from cache */ appLimitWarning: ( + /** Remove userConnectedAccount from cache */ userConnectedAccount: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitWarningKeys.detail(id), + queryKey: userConnectedAccountKeys.detail(id), }); }, - /** Remove userConnectedAccount from cache */ userConnectedAccount: ( + /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: userConnectedAccountKeys.detail(id), + queryKey: appLimitCreditCodeKeys.detail(id), + }); + }, + /** Remove appLimitWarning from cache */ appLimitWarning: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitWarningKeys.detail(id), }); }, /** Remove commit from cache */ commit: (queryClient: QueryClient, id: string | number) => { @@ -3561,78 +3613,86 @@ export const remove = { queryKey: usageSnapshotKeys.detail(id), }); }, - /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + /** Remove membershipType from cache */ membershipType: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }); }, - /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( + /** Remove rlsSetting from cache */ rlsSetting: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: rlsSettingKeys.detail(id), }); }, - /** Remove rlsSetting from cache */ rlsSetting: ( + /** Remove rlsModule from cache */ rlsModule: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: rlsModuleKeys.detail(id), + }); + }, + /** Remove inferenceLogModule from cache */ inferenceLogModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: rlsSettingKeys.detail(id), + queryKey: inferenceLogModuleKeys.detail(id), }); }, - /** Remove appLimitEvent from cache */ appLimitEvent: ( + /** Remove rateLimitMetersModule from cache */ rateLimitMetersModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitEventKeys.detail(id), + queryKey: rateLimitMetersModuleKeys.detail(id), }); }, - /** Remove orgLimitEvent from cache */ orgLimitEvent: ( + /** Remove plansModule from cache */ plansModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitEventKeys.detail(id), + queryKey: plansModuleKeys.detail(id), }); }, - /** Remove rlsModule from cache */ rlsModule: (queryClient: QueryClient, id: string | number) => { + /** Remove sqlAction from cache */ sqlAction: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: rlsModuleKeys.detail(id), + queryKey: sqlActionKeys.detail(id), }); }, - /** Remove rateLimitMetersModule from cache */ rateLimitMetersModule: ( + /** Remove appLimitEvent from cache */ appLimitEvent: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: rateLimitMetersModuleKeys.detail(id), + queryKey: appLimitEventKeys.detail(id), }); }, - /** Remove plansModule from cache */ plansModule: ( + /** Remove orgLimitEvent from cache */ orgLimitEvent: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: plansModuleKeys.detail(id), + queryKey: orgLimitEventKeys.detail(id), }); }, - /** Remove sqlAction from cache */ sqlAction: (queryClient: QueryClient, id: string | number) => { + /** Remove databaseSetting from cache */ databaseSetting: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: sqlActionKeys.detail(id), + queryKey: databaseSettingKeys.detail(id), }); }, - /** Remove databaseSetting from cache */ databaseSetting: ( + /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: databaseSettingKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }); }, /** Remove billingModule from cache */ billingModule: ( @@ -3643,12 +3703,12 @@ export const remove = { queryKey: billingModuleKeys.detail(id), }); }, - /** Remove astMigration from cache */ astMigration: ( + /** Remove appMembership from cache */ appMembership: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: astMigrationKeys.detail(id), + queryKey: appMembershipKeys.detail(id), }); }, /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { @@ -3656,12 +3716,12 @@ export const remove = { queryKey: userKeys.detail(id), }); }, - /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( + /** Remove astMigration from cache */ astMigration: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: astMigrationKeys.detail(id), }); }, /** Remove webauthnSetting from cache */ webauthnSetting: ( @@ -3672,14 +3732,6 @@ export const remove = { queryKey: webauthnSettingKeys.detail(id), }); }, - /** Remove appMembership from cache */ appMembership: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appMembershipKeys.detail(id), - }); - }, /** Remove billingProviderModule from cache */ billingProviderModule: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/public/hooks/mutation-keys.ts b/sdk/constructive-react/src/public/hooks/mutation-keys.ts index 7b625f19d0..729d082636 100644 --- a/sdk/constructive-react/src/public/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/public/hooks/mutation-keys.ts @@ -48,6 +48,14 @@ export const getAllRecordMutationKeys = { /** Delete getAllRecord mutation key */ delete: (id: string | number) => ['mutation', 'getallrecord', 'delete', id] as const, } as const; +export const objectMutationKeys = { + /** All object mutation keys */ all: ['mutation', 'object'] as const, + /** Create object mutation key */ create: () => ['mutation', 'object', 'create'] as const, + /** Update object mutation key */ update: (id: string | number) => + ['mutation', 'object', 'update', id] as const, + /** Delete object mutation key */ delete: (id: string | number) => + ['mutation', 'object', 'delete', id] as const, +} as const; export const appPermissionMutationKeys = { /** All appPermission mutation keys */ all: ['mutation', 'apppermission'] as const, /** Create appPermission mutation key */ create: () => @@ -66,14 +74,6 @@ export const orgPermissionMutationKeys = { /** Delete orgPermission mutation key */ delete: (id: string | number) => ['mutation', 'orgpermission', 'delete', id] as const, } as const; -export const objectMutationKeys = { - /** All object mutation keys */ all: ['mutation', 'object'] as const, - /** Create object mutation key */ create: () => ['mutation', 'object', 'create'] as const, - /** Update object mutation key */ update: (id: string | number) => - ['mutation', 'object', 'update', id] as const, - /** Delete object mutation key */ delete: (id: string | number) => - ['mutation', 'object', 'delete', id] as const, -} as const; export const databaseMutationKeys = { /** All database mutation keys */ all: ['mutation', 'database'] as const, /** Create database mutation key */ create: () => ['mutation', 'database', 'create'] as const, @@ -281,6 +281,18 @@ export const realtimeModuleMutationKeys = { /** Delete realtimeModule mutation key */ delete: (id: string | number) => ['mutation', 'realtimemodule', 'delete', id] as const, } as const; +export const configSecretsOrgModuleMutationKeys = { + /** All configSecretsOrgModule mutation keys */ all: [ + 'mutation', + 'configsecretsorgmodule', + ] as const, + /** Create configSecretsOrgModule mutation key */ create: () => + ['mutation', 'configsecretsorgmodule', 'create'] as const, + /** Update configSecretsOrgModule mutation key */ update: (id: string | number) => + ['mutation', 'configsecretsorgmodule', 'update', id] as const, + /** Delete configSecretsOrgModule mutation key */ delete: (id: string | number) => + ['mutation', 'configsecretsorgmodule', 'delete', id] as const, +} as const; export const schemaGrantMutationKeys = { /** All schemaGrant mutation keys */ all: ['mutation', 'schemagrant'] as const, /** Create schemaGrant mutation key */ create: () => @@ -494,17 +506,17 @@ export const emailsModuleMutationKeys = { /** Delete emailsModule mutation key */ delete: (id: string | number) => ['mutation', 'emailsmodule', 'delete', id] as const, } as const; -export const encryptedSecretsModuleMutationKeys = { - /** All encryptedSecretsModule mutation keys */ all: [ +export const configSecretsUserModuleMutationKeys = { + /** All configSecretsUserModule mutation keys */ all: [ 'mutation', - 'encryptedsecretsmodule', + 'configsecretsusermodule', ] as const, - /** Create encryptedSecretsModule mutation key */ create: () => - ['mutation', 'encryptedsecretsmodule', 'create'] as const, - /** Update encryptedSecretsModule mutation key */ update: (id: string | number) => - ['mutation', 'encryptedsecretsmodule', 'update', id] as const, - /** Delete encryptedSecretsModule mutation key */ delete: (id: string | number) => - ['mutation', 'encryptedsecretsmodule', 'delete', id] as const, + /** Create configSecretsUserModule mutation key */ create: () => + ['mutation', 'configsecretsusermodule', 'create'] as const, + /** Update configSecretsUserModule mutation key */ update: (id: string | number) => + ['mutation', 'configsecretsusermodule', 'update', id] as const, + /** Delete configSecretsUserModule mutation key */ delete: (id: string | number) => + ['mutation', 'configsecretsusermodule', 'delete', id] as const, } as const; export const invitesModuleMutationKeys = { /** All invitesModule mutation keys */ all: ['mutation', 'invitesmodule'] as const, @@ -990,14 +1002,6 @@ export const agentTaskMutationKeys = { /** Delete agentTask mutation key */ delete: (id: string | number) => ['mutation', 'agenttask', 'delete', id] as const, } as const; -export const roleTypeMutationKeys = { - /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, - /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, - /** Update roleType mutation key */ update: (id: string | number) => - ['mutation', 'roletype', 'update', id] as const, - /** Delete roleType mutation key */ delete: (id: string | number) => - ['mutation', 'roletype', 'delete', id] as const, -} as const; export const identityProviderMutationKeys = { /** All identityProvider mutation keys */ all: ['mutation', 'identityprovider'] as const, /** Create identityProvider mutation key */ create: () => @@ -1032,14 +1036,22 @@ export const appPermissionDefaultMutationKeys = { /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => ['mutation', 'apppermissiondefault', 'delete', id] as const, } as const; -export const appLimitCreditCodeMutationKeys = { - /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, - /** Create appLimitCreditCode mutation key */ create: () => - ['mutation', 'applimitcreditcode', 'create'] as const, - /** Update appLimitCreditCode mutation key */ update: (id: string | number) => - ['mutation', 'applimitcreditcode', 'update', id] as const, - /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcreditcode', 'delete', id] as const, +export const roleTypeMutationKeys = { + /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, + /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, + /** Update roleType mutation key */ update: (id: string | number) => + ['mutation', 'roletype', 'update', id] as const, + /** Delete roleType mutation key */ delete: (id: string | number) => + ['mutation', 'roletype', 'delete', id] as const, +} as const; +export const migrateFileMutationKeys = { + /** All migrateFile mutation keys */ all: ['mutation', 'migratefile'] as const, + /** Create migrateFile mutation key */ create: () => + ['mutation', 'migratefile', 'create'] as const, + /** Update migrateFile mutation key */ update: (id: string | number) => + ['mutation', 'migratefile', 'update', id] as const, + /** Delete migrateFile mutation key */ delete: (id: string | number) => + ['mutation', 'migratefile', 'delete', id] as const, } as const; export const appLimitCapsDefaultMutationKeys = { /** All appLimitCapsDefault mutation keys */ all: ['mutation', 'applimitcapsdefault'] as const, @@ -1059,42 +1071,6 @@ export const orgLimitCapsDefaultMutationKeys = { /** Delete orgLimitCapsDefault mutation key */ delete: (id: string | number) => ['mutation', 'orglimitcapsdefault', 'delete', id] as const, } as const; -export const appLimitCapMutationKeys = { - /** All appLimitCap mutation keys */ all: ['mutation', 'applimitcap'] as const, - /** Create appLimitCap mutation key */ create: () => - ['mutation', 'applimitcap', 'create'] as const, - /** Update appLimitCap mutation key */ update: (id: string | number) => - ['mutation', 'applimitcap', 'update', id] as const, - /** Delete appLimitCap mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcap', 'delete', id] as const, -} as const; -export const orgLimitCapMutationKeys = { - /** All orgLimitCap mutation keys */ all: ['mutation', 'orglimitcap'] as const, - /** Create orgLimitCap mutation key */ create: () => - ['mutation', 'orglimitcap', 'create'] as const, - /** Update orgLimitCap mutation key */ update: (id: string | number) => - ['mutation', 'orglimitcap', 'update', id] as const, - /** Delete orgLimitCap mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitcap', 'delete', id] as const, -} as const; -export const membershipTypeMutationKeys = { - /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, - /** Create membershipType mutation key */ create: () => - ['mutation', 'membershiptype', 'create'] as const, - /** Update membershipType mutation key */ update: (id: string | number) => - ['mutation', 'membershiptype', 'update', id] as const, - /** Delete membershipType mutation key */ delete: (id: string | number) => - ['mutation', 'membershiptype', 'delete', id] as const, -} as const; -export const migrateFileMutationKeys = { - /** All migrateFile mutation keys */ all: ['mutation', 'migratefile'] as const, - /** Create migrateFile mutation key */ create: () => - ['mutation', 'migratefile', 'create'] as const, - /** Update migrateFile mutation key */ update: (id: string | number) => - ['mutation', 'migratefile', 'update', id] as const, - /** Delete migrateFile mutation key */ delete: (id: string | number) => - ['mutation', 'migratefile', 'delete', id] as const, -} as const; export const devicesModuleMutationKeys = { /** All devicesModule mutation keys */ all: ['mutation', 'devicesmodule'] as const, /** Create devicesModule mutation key */ create: () => @@ -1104,6 +1080,24 @@ export const devicesModuleMutationKeys = { /** Delete devicesModule mutation key */ delete: (id: string | number) => ['mutation', 'devicesmodule', 'delete', id] as const, } as const; +export const appMembershipDefaultMutationKeys = { + /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, + /** Create appMembershipDefault mutation key */ create: () => + ['mutation', 'appmembershipdefault', 'create'] as const, + /** Update appMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'appmembershipdefault', 'update', id] as const, + /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'appmembershipdefault', 'delete', id] as const, +} as const; +export const orgMembershipDefaultMutationKeys = { + /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, + /** Create orgMembershipDefault mutation key */ create: () => + ['mutation', 'orgmembershipdefault', 'create'] as const, + /** Update orgMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'update', id] as const, + /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'delete', id] as const, +} as const; export const nodeTypeRegistryMutationKeys = { /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'] as const, /** Create nodeTypeRegistry mutation key */ create: () => @@ -1113,6 +1107,15 @@ export const nodeTypeRegistryMutationKeys = { /** Delete nodeTypeRegistry mutation key */ delete: (id: string | number) => ['mutation', 'nodetyperegistry', 'delete', id] as const, } as const; +export const appLimitCapMutationKeys = { + /** All appLimitCap mutation keys */ all: ['mutation', 'applimitcap'] as const, + /** Create appLimitCap mutation key */ create: () => + ['mutation', 'applimitcap', 'create'] as const, + /** Update appLimitCap mutation key */ update: (id: string | number) => + ['mutation', 'applimitcap', 'update', id] as const, + /** Delete appLimitCap mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcap', 'delete', id] as const, +} as const; export const appLimitDefaultMutationKeys = { /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, /** Create appLimitDefault mutation key */ create: () => @@ -1122,6 +1125,15 @@ export const appLimitDefaultMutationKeys = { /** Delete appLimitDefault mutation key */ delete: (id: string | number) => ['mutation', 'applimitdefault', 'delete', id] as const, } as const; +export const orgLimitCapMutationKeys = { + /** All orgLimitCap mutation keys */ all: ['mutation', 'orglimitcap'] as const, + /** Create orgLimitCap mutation key */ create: () => + ['mutation', 'orglimitcap', 'create'] as const, + /** Update orgLimitCap mutation key */ update: (id: string | number) => + ['mutation', 'orglimitcap', 'update', id] as const, + /** Delete orgLimitCap mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitcap', 'delete', id] as const, +} as const; export const orgLimitDefaultMutationKeys = { /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'] as const, /** Create orgLimitDefault mutation key */ create: () => @@ -1131,15 +1143,6 @@ export const orgLimitDefaultMutationKeys = { /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => ['mutation', 'orglimitdefault', 'delete', id] as const, } as const; -export const appLimitWarningMutationKeys = { - /** All appLimitWarning mutation keys */ all: ['mutation', 'applimitwarning'] as const, - /** Create appLimitWarning mutation key */ create: () => - ['mutation', 'applimitwarning', 'create'] as const, - /** Update appLimitWarning mutation key */ update: (id: string | number) => - ['mutation', 'applimitwarning', 'update', id] as const, - /** Delete appLimitWarning mutation key */ delete: (id: string | number) => - ['mutation', 'applimitwarning', 'delete', id] as const, -} as const; export const userConnectedAccountMutationKeys = { /** All userConnectedAccount mutation keys */ all: ['mutation', 'userconnectedaccount'] as const, /** Create userConnectedAccount mutation key */ create: () => @@ -1149,6 +1152,24 @@ export const userConnectedAccountMutationKeys = { /** Delete userConnectedAccount mutation key */ delete: (id: string | number) => ['mutation', 'userconnectedaccount', 'delete', id] as const, } as const; +export const appLimitCreditCodeMutationKeys = { + /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, + /** Create appLimitCreditCode mutation key */ create: () => + ['mutation', 'applimitcreditcode', 'create'] as const, + /** Update appLimitCreditCode mutation key */ update: (id: string | number) => + ['mutation', 'applimitcreditcode', 'update', id] as const, + /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcreditcode', 'delete', id] as const, +} as const; +export const appLimitWarningMutationKeys = { + /** All appLimitWarning mutation keys */ all: ['mutation', 'applimitwarning'] as const, + /** Create appLimitWarning mutation key */ create: () => + ['mutation', 'applimitwarning', 'create'] as const, + /** Update appLimitWarning mutation key */ update: (id: string | number) => + ['mutation', 'applimitwarning', 'update', id] as const, + /** Delete appLimitWarning mutation key */ delete: (id: string | number) => + ['mutation', 'applimitwarning', 'delete', id] as const, +} as const; export const commitMutationKeys = { /** All commit mutation keys */ all: ['mutation', 'commit'] as const, /** Create commit mutation key */ create: () => ['mutation', 'commit', 'create'] as const, @@ -1184,23 +1205,14 @@ export const usageSnapshotMutationKeys = { /** Delete usageSnapshot mutation key */ delete: (id: string | number) => ['mutation', 'usagesnapshot', 'delete', id] as const, } as const; -export const appMembershipDefaultMutationKeys = { - /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, - /** Create appMembershipDefault mutation key */ create: () => - ['mutation', 'appmembershipdefault', 'create'] as const, - /** Update appMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'appmembershipdefault', 'update', id] as const, - /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'appmembershipdefault', 'delete', id] as const, -} as const; -export const orgMembershipDefaultMutationKeys = { - /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, - /** Create orgMembershipDefault mutation key */ create: () => - ['mutation', 'orgmembershipdefault', 'create'] as const, - /** Update orgMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'update', id] as const, - /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'delete', id] as const, +export const membershipTypeMutationKeys = { + /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, + /** Create membershipType mutation key */ create: () => + ['mutation', 'membershiptype', 'create'] as const, + /** Update membershipType mutation key */ update: (id: string | number) => + ['mutation', 'membershiptype', 'update', id] as const, + /** Delete membershipType mutation key */ delete: (id: string | number) => + ['mutation', 'membershiptype', 'delete', id] as const, } as const; export const rlsSettingMutationKeys = { /** All rlsSetting mutation keys */ all: ['mutation', 'rlssetting'] as const, @@ -1210,24 +1222,6 @@ export const rlsSettingMutationKeys = { /** Delete rlsSetting mutation key */ delete: (id: string | number) => ['mutation', 'rlssetting', 'delete', id] as const, } as const; -export const appLimitEventMutationKeys = { - /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, - /** Create appLimitEvent mutation key */ create: () => - ['mutation', 'applimitevent', 'create'] as const, - /** Update appLimitEvent mutation key */ update: (id: string | number) => - ['mutation', 'applimitevent', 'update', id] as const, - /** Delete appLimitEvent mutation key */ delete: (id: string | number) => - ['mutation', 'applimitevent', 'delete', id] as const, -} as const; -export const orgLimitEventMutationKeys = { - /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, - /** Create orgLimitEvent mutation key */ create: () => - ['mutation', 'orglimitevent', 'create'] as const, - /** Update orgLimitEvent mutation key */ update: (id: string | number) => - ['mutation', 'orglimitevent', 'update', id] as const, - /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitevent', 'delete', id] as const, -} as const; export const rlsModuleMutationKeys = { /** All rlsModule mutation keys */ all: ['mutation', 'rlsmodule'] as const, /** Create rlsModule mutation key */ create: () => ['mutation', 'rlsmodule', 'create'] as const, @@ -1236,6 +1230,15 @@ export const rlsModuleMutationKeys = { /** Delete rlsModule mutation key */ delete: (id: string | number) => ['mutation', 'rlsmodule', 'delete', id] as const, } as const; +export const inferenceLogModuleMutationKeys = { + /** All inferenceLogModule mutation keys */ all: ['mutation', 'inferencelogmodule'] as const, + /** Create inferenceLogModule mutation key */ create: () => + ['mutation', 'inferencelogmodule', 'create'] as const, + /** Update inferenceLogModule mutation key */ update: (id: string | number) => + ['mutation', 'inferencelogmodule', 'update', id] as const, + /** Delete inferenceLogModule mutation key */ delete: (id: string | number) => + ['mutation', 'inferencelogmodule', 'delete', id] as const, +} as const; export const rateLimitMetersModuleMutationKeys = { /** All rateLimitMetersModule mutation keys */ all: [ 'mutation', @@ -1265,6 +1268,24 @@ export const sqlActionMutationKeys = { /** Delete sqlAction mutation key */ delete: (id: string | number) => ['mutation', 'sqlaction', 'delete', id] as const, } as const; +export const appLimitEventMutationKeys = { + /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, + /** Create appLimitEvent mutation key */ create: () => + ['mutation', 'applimitevent', 'create'] as const, + /** Update appLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'applimitevent', 'update', id] as const, + /** Delete appLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'applimitevent', 'delete', id] as const, +} as const; +export const orgLimitEventMutationKeys = { + /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, + /** Create orgLimitEvent mutation key */ create: () => + ['mutation', 'orglimitevent', 'create'] as const, + /** Update orgLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'orglimitevent', 'update', id] as const, + /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitevent', 'delete', id] as const, +} as const; export const databaseSettingMutationKeys = { /** All databaseSetting mutation keys */ all: ['mutation', 'databasesetting'] as const, /** Create databaseSetting mutation key */ create: () => @@ -1274,6 +1295,15 @@ export const databaseSettingMutationKeys = { /** Delete databaseSetting mutation key */ delete: (id: string | number) => ['mutation', 'databasesetting', 'delete', id] as const, } as const; +export const orgMembershipSettingMutationKeys = { + /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, + /** Create orgMembershipSetting mutation key */ create: () => + ['mutation', 'orgmembershipsetting', 'create'] as const, + /** Update orgMembershipSetting mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipsetting', 'update', id] as const, + /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembershipsetting', 'delete', id] as const, +} as const; export const billingModuleMutationKeys = { /** All billingModule mutation keys */ all: ['mutation', 'billingmodule'] as const, /** Create billingModule mutation key */ create: () => @@ -1283,14 +1313,14 @@ export const billingModuleMutationKeys = { /** Delete billingModule mutation key */ delete: (id: string | number) => ['mutation', 'billingmodule', 'delete', id] as const, } as const; -export const astMigrationMutationKeys = { - /** All astMigration mutation keys */ all: ['mutation', 'astmigration'] as const, - /** Create astMigration mutation key */ create: () => - ['mutation', 'astmigration', 'create'] as const, - /** Update astMigration mutation key */ update: (id: string | number) => - ['mutation', 'astmigration', 'update', id] as const, - /** Delete astMigration mutation key */ delete: (id: string | number) => - ['mutation', 'astmigration', 'delete', id] as const, +export const appMembershipMutationKeys = { + /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, + /** Create appMembership mutation key */ create: () => + ['mutation', 'appmembership', 'create'] as const, + /** Update appMembership mutation key */ update: (id: string | number) => + ['mutation', 'appmembership', 'update', id] as const, + /** Delete appMembership mutation key */ delete: (id: string | number) => + ['mutation', 'appmembership', 'delete', id] as const, } as const; export const userMutationKeys = { /** All user mutation keys */ all: ['mutation', 'user'] as const, @@ -1300,14 +1330,14 @@ export const userMutationKeys = { /** Delete user mutation key */ delete: (id: string | number) => ['mutation', 'user', 'delete', id] as const, } as const; -export const orgMembershipSettingMutationKeys = { - /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, - /** Create orgMembershipSetting mutation key */ create: () => - ['mutation', 'orgmembershipsetting', 'create'] as const, - /** Update orgMembershipSetting mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'update', id] as const, - /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'delete', id] as const, +export const astMigrationMutationKeys = { + /** All astMigration mutation keys */ all: ['mutation', 'astmigration'] as const, + /** Create astMigration mutation key */ create: () => + ['mutation', 'astmigration', 'create'] as const, + /** Update astMigration mutation key */ update: (id: string | number) => + ['mutation', 'astmigration', 'update', id] as const, + /** Delete astMigration mutation key */ delete: (id: string | number) => + ['mutation', 'astmigration', 'delete', id] as const, } as const; export const webauthnSettingMutationKeys = { /** All webauthnSetting mutation keys */ all: ['mutation', 'webauthnsetting'] as const, @@ -1318,15 +1348,6 @@ export const webauthnSettingMutationKeys = { /** Delete webauthnSetting mutation key */ delete: (id: string | number) => ['mutation', 'webauthnsetting', 'delete', id] as const, } as const; -export const appMembershipMutationKeys = { - /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, - /** Create appMembership mutation key */ create: () => - ['mutation', 'appmembership', 'create'] as const, - /** Update appMembership mutation key */ update: (id: string | number) => - ['mutation', 'appmembership', 'update', id] as const, - /** Delete appMembership mutation key */ delete: (id: string | number) => - ['mutation', 'appmembership', 'delete', id] as const, -} as const; export const billingProviderModuleMutationKeys = { /** All billingProviderModule mutation keys */ all: [ 'mutation', @@ -1454,10 +1475,18 @@ export const customMutationKeys = { identifier ? (['mutation', 'provisionSpatialRelation', identifier] as const) : (['mutation', 'provisionSpatialRelation'] as const), + /** Mutation key for signInCrossOrigin */ signInCrossOrigin: (identifier?: string) => + identifier + ? (['mutation', 'signInCrossOrigin', identifier] as const) + : (['mutation', 'signInCrossOrigin'] as const), /** Mutation key for bootstrapUser */ bootstrapUser: (identifier?: string) => identifier ? (['mutation', 'bootstrapUser', identifier] as const) : (['mutation', 'bootstrapUser'] as const), + /** Mutation key for signUp */ signUp: (identifier?: string) => + identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), + /** Mutation key for signIn */ signIn: (identifier?: string) => + identifier ? (['mutation', 'signIn', identifier] as const) : (['mutation', 'signIn'] as const), /** Mutation key for setFieldOrder */ setFieldOrder: (identifier?: string) => identifier ? (['mutation', 'setFieldOrder', identifier] as const) @@ -1516,10 +1545,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'applyRls', identifier] as const) : (['mutation', 'applyRls'] as const), - /** Mutation key for signInCrossOrigin */ signInCrossOrigin: (identifier?: string) => - identifier - ? (['mutation', 'signInCrossOrigin', identifier] as const) - : (['mutation', 'signInCrossOrigin'] as const), /** Mutation key for createUserDatabase */ createUserDatabase: (identifier?: string) => identifier ? (['mutation', 'createUserDatabase', identifier] as const) @@ -1532,26 +1557,22 @@ export const customMutationKeys = { identifier ? (['mutation', 'createApiKey', identifier] as const) : (['mutation', 'createApiKey'] as const), - /** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier?: string) => - identifier - ? (['mutation', 'sendVerificationEmail', identifier] as const) - : (['mutation', 'sendVerificationEmail'] as const), - /** Mutation key for forgotPassword */ forgotPassword: (identifier?: string) => - identifier - ? (['mutation', 'forgotPassword', identifier] as const) - : (['mutation', 'forgotPassword'] as const), - /** Mutation key for signUp */ signUp: (identifier?: string) => - identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), /** Mutation key for requestCrossOriginToken */ requestCrossOriginToken: (identifier?: string) => identifier ? (['mutation', 'requestCrossOriginToken', identifier] as const) : (['mutation', 'requestCrossOriginToken'] as const), - /** Mutation key for signIn */ signIn: (identifier?: string) => - identifier ? (['mutation', 'signIn', identifier] as const) : (['mutation', 'signIn'] as const), /** Mutation key for provisionTable */ provisionTable: (identifier?: string) => identifier ? (['mutation', 'provisionTable', identifier] as const) : (['mutation', 'provisionTable'] as const), + /** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier?: string) => + identifier + ? (['mutation', 'sendVerificationEmail', identifier] as const) + : (['mutation', 'sendVerificationEmail'] as const), + /** Mutation key for forgotPassword */ forgotPassword: (identifier?: string) => + identifier + ? (['mutation', 'forgotPassword', identifier] as const) + : (['mutation', 'forgotPassword'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) @@ -1583,9 +1604,9 @@ export const mutationKeys = { orgGetManagersRecord: orgGetManagersRecordMutationKeys, orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, getAllRecord: getAllRecordMutationKeys, + object: objectMutationKeys, appPermission: appPermissionMutationKeys, orgPermission: orgPermissionMutationKeys, - object: objectMutationKeys, database: databaseMutationKeys, schema: schemaMutationKeys, table: tableMutationKeys, @@ -1610,6 +1631,7 @@ export const mutationKeys = { sessionSecretsModule: sessionSecretsModuleMutationKeys, identityProvidersModule: identityProvidersModuleMutationKeys, realtimeModule: realtimeModuleMutationKeys, + configSecretsOrgModule: configSecretsOrgModuleMutationKeys, schemaGrant: schemaGrantMutationKeys, defaultPrivilege: defaultPrivilegeMutationKeys, enum: enumMutationKeys, @@ -1634,7 +1656,7 @@ export const mutationKeys = { defaultIdsModule: defaultIdsModuleMutationKeys, denormalizedTableField: denormalizedTableFieldMutationKeys, emailsModule: emailsModuleMutationKeys, - encryptedSecretsModule: encryptedSecretsModuleMutationKeys, + configSecretsUserModule: configSecretsUserModuleMutationKeys, invitesModule: invitesModuleMutationKeys, eventsModule: eventsModuleMutationKeys, limitsModule: limitsModuleMutationKeys, @@ -1688,44 +1710,45 @@ export const mutationKeys = { agentThread: agentThreadMutationKeys, agentMessage: agentMessageMutationKeys, agentTask: agentTaskMutationKeys, - roleType: roleTypeMutationKeys, identityProvider: identityProviderMutationKeys, ref: refMutationKeys, store: storeMutationKeys, appPermissionDefault: appPermissionDefaultMutationKeys, - appLimitCreditCode: appLimitCreditCodeMutationKeys, + roleType: roleTypeMutationKeys, + migrateFile: migrateFileMutationKeys, appLimitCapsDefault: appLimitCapsDefaultMutationKeys, orgLimitCapsDefault: orgLimitCapsDefaultMutationKeys, - appLimitCap: appLimitCapMutationKeys, - orgLimitCap: orgLimitCapMutationKeys, - membershipType: membershipTypeMutationKeys, - migrateFile: migrateFileMutationKeys, devicesModule: devicesModuleMutationKeys, + appMembershipDefault: appMembershipDefaultMutationKeys, + orgMembershipDefault: orgMembershipDefaultMutationKeys, nodeTypeRegistry: nodeTypeRegistryMutationKeys, + appLimitCap: appLimitCapMutationKeys, appLimitDefault: appLimitDefaultMutationKeys, + orgLimitCap: orgLimitCapMutationKeys, orgLimitDefault: orgLimitDefaultMutationKeys, - appLimitWarning: appLimitWarningMutationKeys, userConnectedAccount: userConnectedAccountMutationKeys, + appLimitCreditCode: appLimitCreditCodeMutationKeys, + appLimitWarning: appLimitWarningMutationKeys, commit: commitMutationKeys, pubkeySetting: pubkeySettingMutationKeys, rateLimitsModule: rateLimitsModuleMutationKeys, usageSnapshot: usageSnapshotMutationKeys, - appMembershipDefault: appMembershipDefaultMutationKeys, - orgMembershipDefault: orgMembershipDefaultMutationKeys, + membershipType: membershipTypeMutationKeys, rlsSetting: rlsSettingMutationKeys, - appLimitEvent: appLimitEventMutationKeys, - orgLimitEvent: orgLimitEventMutationKeys, rlsModule: rlsModuleMutationKeys, + inferenceLogModule: inferenceLogModuleMutationKeys, rateLimitMetersModule: rateLimitMetersModuleMutationKeys, plansModule: plansModuleMutationKeys, sqlAction: sqlActionMutationKeys, + appLimitEvent: appLimitEventMutationKeys, + orgLimitEvent: orgLimitEventMutationKeys, databaseSetting: databaseSettingMutationKeys, + orgMembershipSetting: orgMembershipSettingMutationKeys, billingModule: billingModuleMutationKeys, - astMigration: astMigrationMutationKeys, + appMembership: appMembershipMutationKeys, user: userMutationKeys, - orgMembershipSetting: orgMembershipSettingMutationKeys, + astMigration: astMigrationMutationKeys, webauthnSetting: webauthnSettingMutationKeys, - appMembership: appMembershipMutationKeys, billingProviderModule: billingProviderModuleMutationKeys, hierarchyModule: hierarchyModuleMutationKeys, custom: customMutationKeys, diff --git a/sdk/constructive-react/src/public/hooks/mutations/index.ts b/sdk/constructive-react/src/public/hooks/mutations/index.ts index 850ea95670..8db315cb9b 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/index.ts @@ -6,15 +6,15 @@ export * from './useCreateOrgGetManagersRecordMutation'; export * from './useCreateOrgGetSubordinatesRecordMutation'; export * from './useCreateGetAllRecordMutation'; +export * from './useCreateObjectMutation'; +export * from './useUpdateObjectMutation'; +export * from './useDeleteObjectMutation'; export * from './useCreateAppPermissionMutation'; export * from './useUpdateAppPermissionMutation'; export * from './useDeleteAppPermissionMutation'; export * from './useCreateOrgPermissionMutation'; export * from './useUpdateOrgPermissionMutation'; export * from './useDeleteOrgPermissionMutation'; -export * from './useCreateObjectMutation'; -export * from './useUpdateObjectMutation'; -export * from './useDeleteObjectMutation'; export * from './useCreateDatabaseMutation'; export * from './useUpdateDatabaseMutation'; export * from './useDeleteDatabaseMutation'; @@ -87,6 +87,9 @@ export * from './useDeleteIdentityProvidersModuleMutation'; export * from './useCreateRealtimeModuleMutation'; export * from './useUpdateRealtimeModuleMutation'; export * from './useDeleteRealtimeModuleMutation'; +export * from './useCreateConfigSecretsOrgModuleMutation'; +export * from './useUpdateConfigSecretsOrgModuleMutation'; +export * from './useDeleteConfigSecretsOrgModuleMutation'; export * from './useCreateSchemaGrantMutation'; export * from './useUpdateSchemaGrantMutation'; export * from './useDeleteSchemaGrantMutation'; @@ -159,9 +162,9 @@ export * from './useDeleteDenormalizedTableFieldMutation'; export * from './useCreateEmailsModuleMutation'; export * from './useUpdateEmailsModuleMutation'; export * from './useDeleteEmailsModuleMutation'; -export * from './useCreateEncryptedSecretsModuleMutation'; -export * from './useUpdateEncryptedSecretsModuleMutation'; -export * from './useDeleteEncryptedSecretsModuleMutation'; +export * from './useCreateConfigSecretsUserModuleMutation'; +export * from './useUpdateConfigSecretsUserModuleMutation'; +export * from './useDeleteConfigSecretsUserModuleMutation'; export * from './useCreateInvitesModuleMutation'; export * from './useUpdateInvitesModuleMutation'; export * from './useDeleteInvitesModuleMutation'; @@ -321,9 +324,6 @@ export * from './useDeleteAgentMessageMutation'; export * from './useCreateAgentTaskMutation'; export * from './useUpdateAgentTaskMutation'; export * from './useDeleteAgentTaskMutation'; -export * from './useCreateRoleTypeMutation'; -export * from './useUpdateRoleTypeMutation'; -export * from './useDeleteRoleTypeMutation'; export * from './useCreateIdentityProviderMutation'; export * from './useCreateRefMutation'; export * from './useUpdateRefMutation'; @@ -334,41 +334,47 @@ export * from './useDeleteStoreMutation'; export * from './useCreateAppPermissionDefaultMutation'; export * from './useUpdateAppPermissionDefaultMutation'; export * from './useDeleteAppPermissionDefaultMutation'; -export * from './useCreateAppLimitCreditCodeMutation'; -export * from './useUpdateAppLimitCreditCodeMutation'; -export * from './useDeleteAppLimitCreditCodeMutation'; +export * from './useCreateRoleTypeMutation'; +export * from './useUpdateRoleTypeMutation'; +export * from './useDeleteRoleTypeMutation'; +export * from './useCreateMigrateFileMutation'; export * from './useCreateAppLimitCapsDefaultMutation'; export * from './useUpdateAppLimitCapsDefaultMutation'; export * from './useDeleteAppLimitCapsDefaultMutation'; export * from './useCreateOrgLimitCapsDefaultMutation'; export * from './useUpdateOrgLimitCapsDefaultMutation'; export * from './useDeleteOrgLimitCapsDefaultMutation'; -export * from './useCreateAppLimitCapMutation'; -export * from './useUpdateAppLimitCapMutation'; -export * from './useDeleteAppLimitCapMutation'; -export * from './useCreateOrgLimitCapMutation'; -export * from './useUpdateOrgLimitCapMutation'; -export * from './useDeleteOrgLimitCapMutation'; -export * from './useCreateMembershipTypeMutation'; -export * from './useUpdateMembershipTypeMutation'; -export * from './useDeleteMembershipTypeMutation'; -export * from './useCreateMigrateFileMutation'; export * from './useCreateDevicesModuleMutation'; export * from './useUpdateDevicesModuleMutation'; export * from './useDeleteDevicesModuleMutation'; +export * from './useCreateAppMembershipDefaultMutation'; +export * from './useUpdateAppMembershipDefaultMutation'; +export * from './useDeleteAppMembershipDefaultMutation'; +export * from './useCreateOrgMembershipDefaultMutation'; +export * from './useUpdateOrgMembershipDefaultMutation'; +export * from './useDeleteOrgMembershipDefaultMutation'; export * from './useCreateNodeTypeRegistryMutation'; export * from './useUpdateNodeTypeRegistryMutation'; export * from './useDeleteNodeTypeRegistryMutation'; +export * from './useCreateAppLimitCapMutation'; +export * from './useUpdateAppLimitCapMutation'; +export * from './useDeleteAppLimitCapMutation'; export * from './useCreateAppLimitDefaultMutation'; export * from './useUpdateAppLimitDefaultMutation'; export * from './useDeleteAppLimitDefaultMutation'; +export * from './useCreateOrgLimitCapMutation'; +export * from './useUpdateOrgLimitCapMutation'; +export * from './useDeleteOrgLimitCapMutation'; export * from './useCreateOrgLimitDefaultMutation'; export * from './useUpdateOrgLimitDefaultMutation'; export * from './useDeleteOrgLimitDefaultMutation'; +export * from './useCreateUserConnectedAccountMutation'; +export * from './useCreateAppLimitCreditCodeMutation'; +export * from './useUpdateAppLimitCreditCodeMutation'; +export * from './useDeleteAppLimitCreditCodeMutation'; export * from './useCreateAppLimitWarningMutation'; export * from './useUpdateAppLimitWarningMutation'; export * from './useDeleteAppLimitWarningMutation'; -export * from './useCreateUserConnectedAccountMutation'; export * from './useCreateCommitMutation'; export * from './useUpdateCommitMutation'; export * from './useDeleteCommitMutation'; @@ -381,20 +387,18 @@ export * from './useDeleteRateLimitsModuleMutation'; export * from './useCreateUsageSnapshotMutation'; export * from './useUpdateUsageSnapshotMutation'; export * from './useDeleteUsageSnapshotMutation'; -export * from './useCreateAppMembershipDefaultMutation'; -export * from './useUpdateAppMembershipDefaultMutation'; -export * from './useDeleteAppMembershipDefaultMutation'; -export * from './useCreateOrgMembershipDefaultMutation'; -export * from './useUpdateOrgMembershipDefaultMutation'; -export * from './useDeleteOrgMembershipDefaultMutation'; +export * from './useCreateMembershipTypeMutation'; +export * from './useUpdateMembershipTypeMutation'; +export * from './useDeleteMembershipTypeMutation'; export * from './useCreateRlsSettingMutation'; export * from './useUpdateRlsSettingMutation'; export * from './useDeleteRlsSettingMutation'; -export * from './useCreateAppLimitEventMutation'; -export * from './useCreateOrgLimitEventMutation'; export * from './useCreateRlsModuleMutation'; export * from './useUpdateRlsModuleMutation'; export * from './useDeleteRlsModuleMutation'; +export * from './useCreateInferenceLogModuleMutation'; +export * from './useUpdateInferenceLogModuleMutation'; +export * from './useDeleteInferenceLogModuleMutation'; export * from './useCreateRateLimitMetersModuleMutation'; export * from './useUpdateRateLimitMetersModuleMutation'; export * from './useDeleteRateLimitMetersModuleMutation'; @@ -402,25 +406,31 @@ export * from './useCreatePlansModuleMutation'; export * from './useUpdatePlansModuleMutation'; export * from './useDeletePlansModuleMutation'; export * from './useCreateSqlActionMutation'; +export * from './useCreateAppLimitEventMutation'; +export * from './useUpdateAppLimitEventMutation'; +export * from './useDeleteAppLimitEventMutation'; +export * from './useCreateOrgLimitEventMutation'; +export * from './useUpdateOrgLimitEventMutation'; +export * from './useDeleteOrgLimitEventMutation'; export * from './useCreateDatabaseSettingMutation'; export * from './useUpdateDatabaseSettingMutation'; export * from './useDeleteDatabaseSettingMutation'; +export * from './useCreateOrgMembershipSettingMutation'; +export * from './useUpdateOrgMembershipSettingMutation'; +export * from './useDeleteOrgMembershipSettingMutation'; export * from './useCreateBillingModuleMutation'; export * from './useUpdateBillingModuleMutation'; export * from './useDeleteBillingModuleMutation'; -export * from './useCreateAstMigrationMutation'; +export * from './useCreateAppMembershipMutation'; +export * from './useUpdateAppMembershipMutation'; +export * from './useDeleteAppMembershipMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; -export * from './useCreateOrgMembershipSettingMutation'; -export * from './useUpdateOrgMembershipSettingMutation'; -export * from './useDeleteOrgMembershipSettingMutation'; +export * from './useCreateAstMigrationMutation'; export * from './useCreateWebauthnSettingMutation'; export * from './useUpdateWebauthnSettingMutation'; export * from './useDeleteWebauthnSettingMutation'; -export * from './useCreateAppMembershipMutation'; -export * from './useUpdateAppMembershipMutation'; -export * from './useDeleteAppMembershipMutation'; export * from './useCreateBillingProviderModuleMutation'; export * from './useUpdateBillingProviderModuleMutation'; export * from './useDeleteBillingProviderModuleMutation'; @@ -451,7 +461,10 @@ export * from './useResetPasswordMutation'; export * from './useRemoveNodeAtPathMutation'; export * from './useCopyTemplateToBlueprintMutation'; export * from './useProvisionSpatialRelationMutation'; +export * from './useSignInCrossOriginMutation'; export * from './useBootstrapUserMutation'; +export * from './useSignUpMutation'; +export * from './useSignInMutation'; export * from './useSetFieldOrderMutation'; export * from './useProvisionCheckConstraintMutation'; export * from './useProvisionUniqueConstraintMutation'; @@ -465,14 +478,11 @@ export * from './useUpdateNodeAtPathMutation'; export * from './useSetAndCommitMutation'; export * from './useProvisionRelationMutation'; export * from './useApplyRlsMutation'; -export * from './useSignInCrossOriginMutation'; export * from './useCreateUserDatabaseMutation'; export * from './useExtendTokenExpiresMutation'; export * from './useCreateApiKeyMutation'; -export * from './useSendVerificationEmailMutation'; -export * from './useForgotPasswordMutation'; -export * from './useSignUpMutation'; export * from './useRequestCrossOriginTokenMutation'; -export * from './useSignInMutation'; export * from './useProvisionTableMutation'; +export * from './useSendVerificationEmailMutation'; +export * from './useForgotPasswordMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts new file mode 100644 index 0000000000..b80727d543 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configSecretsOrgModuleKeys } from '../query-keys'; +import { configSecretsOrgModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + CreateConfigSecretsOrgModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + CreateConfigSecretsOrgModuleInput, +} from '../../orm/input-types'; +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateConfigSecretsOrgModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateConfigSecretsOrgModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsOrgModuleSelect; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } & Omit< + UseMutationOptions< + { + createConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + CreateConfigSecretsOrgModuleInput['configSecretsOrgModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + CreateConfigSecretsOrgModuleInput['configSecretsOrgModule'] +>; +export function useCreateConfigSecretsOrgModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configSecretsOrgModuleMutationKeys.create(), + mutationFn: (data: CreateConfigSecretsOrgModuleInput['configSecretsOrgModule']) => + getClient() + .configSecretsOrgModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts new file mode 100644 index 0000000000..e3765bf61b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ConfigSecretsUserModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configSecretsUserModuleKeys } from '../query-keys'; +import { configSecretsUserModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + CreateConfigSecretsUserModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + CreateConfigSecretsUserModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ConfigSecretsUserModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateConfigSecretsUserModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateConfigSecretsUserModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsUserModuleSelect; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; + } & Omit< + UseMutationOptions< + { + createConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + CreateConfigSecretsUserModuleInput['configSecretsUserModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + CreateConfigSecretsUserModuleInput['configSecretsUserModule'] +>; +export function useCreateConfigSecretsUserModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configSecretsUserModuleMutationKeys.create(), + mutationFn: (data: CreateConfigSecretsUserModuleInput['configSecretsUserModule']) => + getClient() + .configSecretsUserModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts deleted file mode 100644 index c68fbc4d65..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for EncryptedSecretsModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { encryptedSecretsModuleKeys } from '../query-keys'; -import { encryptedSecretsModuleMutationKeys } from '../mutation-keys'; -import type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - CreateEncryptedSecretsModuleInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - CreateEncryptedSecretsModuleInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a EncryptedSecretsModule - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateEncryptedSecretsModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateEncryptedSecretsModuleMutation( - params: { - selection: { - fields: S & EncryptedSecretsModuleSelect; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; - } & Omit< - UseMutationOptions< - { - createEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }, - Error, - CreateEncryptedSecretsModuleInput['encryptedSecretsModule'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }, - Error, - CreateEncryptedSecretsModuleInput['encryptedSecretsModule'] ->; -export function useCreateEncryptedSecretsModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: encryptedSecretsModuleMutationKeys.create(), - mutationFn: (data: CreateEncryptedSecretsModuleInput['encryptedSecretsModule']) => - getClient() - .encryptedSecretsModule.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateInferenceLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateInferenceLogModuleMutation.ts new file mode 100644 index 0000000000..9e6544177a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateInferenceLogModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for InferenceLogModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { inferenceLogModuleKeys } from '../query-keys'; +import { inferenceLogModuleMutationKeys } from '../mutation-keys'; +import type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + CreateInferenceLogModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + CreateInferenceLogModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a InferenceLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInferenceLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInferenceLogModuleMutation( + params: { + selection: { + fields: S & InferenceLogModuleSelect; + } & HookStrictSelect, InferenceLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + createInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }, + Error, + CreateInferenceLogModuleInput['inferenceLogModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }, + Error, + CreateInferenceLogModuleInput['inferenceLogModule'] +>; +export function useCreateInferenceLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: inferenceLogModuleMutationKeys.create(), + mutationFn: (data: CreateInferenceLogModuleInput['inferenceLogModule']) => + getClient() + .inferenceLogModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitEventMutation.ts new file mode 100644 index 0000000000..2c97fe2946 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitEventMutation.ts @@ -0,0 +1,98 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { appLimitEventKeys } from '../query-keys'; +import { appLimitEventMutationKeys } from '../mutation-keys'; +import type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLimitEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLimitEventMutation( + params: { + selection: { + fields: S & AppLimitEventSelect; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitEventMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLimitEvent.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts new file mode 100644 index 0000000000..a1cb4c3f0f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configSecretsOrgModuleKeys } from '../query-keys'; +import { configSecretsOrgModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, +} from '../../orm/input-types'; +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteConfigSecretsOrgModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteConfigSecretsOrgModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsOrgModuleSelect; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteConfigSecretsOrgModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configSecretsOrgModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .configSecretsOrgModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: configSecretsOrgModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts new file mode 100644 index 0000000000..ffd64e8cfc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for ConfigSecretsUserModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configSecretsUserModuleKeys } from '../query-keys'; +import { configSecretsUserModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a ConfigSecretsUserModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteConfigSecretsUserModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteConfigSecretsUserModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsUserModuleSelect; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteConfigSecretsUserModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configSecretsUserModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .configSecretsUserModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: configSecretsUserModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInferenceLogModuleMutation.ts similarity index 53% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts rename to sdk/constructive-react/src/public/hooks/mutations/useDeleteInferenceLogModuleMutation.ts index 9177e8d372..0fbddb70fc 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInferenceLogModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for EncryptedSecretsModule + * Delete mutation hook for InferenceLogModule * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,39 +9,39 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { encryptedSecretsModuleKeys } from '../query-keys'; -import { encryptedSecretsModuleMutationKeys } from '../mutation-keys'; +import { inferenceLogModuleKeys } from '../query-keys'; +import { inferenceLogModuleMutationKeys } from '../mutation-keys'; import type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a EncryptedSecretsModule with typed selection + * Mutation hook for deleting a InferenceLogModule with typed selection * * @example * ```tsx - * const { mutate, isPending } = useDeleteEncryptedSecretsModuleMutation({ + * const { mutate, isPending } = useDeleteInferenceLogModuleMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteEncryptedSecretsModuleMutation( +export function useDeleteInferenceLogModuleMutation( params: { selection: { - fields: S & EncryptedSecretsModuleSelect; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; + fields: S & InferenceLogModuleSelect; + } & HookStrictSelect, InferenceLogModuleSelect>; } & Omit< UseMutationOptions< { - deleteEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; + deleteInferenceLogModule: { + inferenceLogModule: InferSelectResult; }; }, Error, @@ -53,8 +53,8 @@ export function useDeleteEncryptedSecretsModuleMutation ): UseMutationResult< { - deleteEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; + deleteInferenceLogModule: { + inferenceLogModule: InferSelectResult; }; }, Error, @@ -62,9 +62,9 @@ export function useDeleteEncryptedSecretsModuleMutation; -export function useDeleteEncryptedSecretsModuleMutation( +export function useDeleteInferenceLogModuleMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -76,15 +76,15 @@ export function useDeleteEncryptedSecretsModuleMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: encryptedSecretsModuleMutationKeys.all, + mutationKey: inferenceLogModuleMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .encryptedSecretsModule.delete({ + .inferenceLogModule.delete({ where: { id, }, @@ -93,10 +93,10 @@ export function useDeleteEncryptedSecretsModuleMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: encryptedSecretsModuleKeys.detail(variables.id), + queryKey: inferenceLogModuleKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.lists(), + queryKey: inferenceLogModuleKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitEventMutation.ts new file mode 100644 index 0000000000..a0a4a3b2a7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitEventMutation.ts @@ -0,0 +1,98 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitEventKeys } from '../query-keys'; +import { orgLimitEventMutationKeys } from '../mutation-keys'; +import type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgLimitEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgLimitEventMutation( + params: { + selection: { + fields: S & OrgLimitEventSelect; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitEventMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgLimitEvent.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitEventMutation.ts new file mode 100644 index 0000000000..7234a1d236 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { appLimitEventKeys } from '../query-keys'; +import { appLimitEventMutationKeys } from '../mutation-keys'; +import type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventPatch, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLimitEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLimitEventMutation( + params: { + selection: { + fields: S & AppLimitEventSelect; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } +>; +export function useUpdateAppLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitEventMutationKeys.all, + mutationFn: ({ + id, + appLimitEventPatch, + }: { + id: string; + appLimitEventPatch: AppLimitEventPatch; + }) => + getClient() + .appLimitEvent.update({ + where: { + id, + }, + data: appLimitEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts new file mode 100644 index 0000000000..6d86de1feb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configSecretsOrgModuleKeys } from '../query-keys'; +import { configSecretsOrgModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModulePatch, +} from '../../orm/input-types'; +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateConfigSecretsOrgModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', configSecretsOrgModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateConfigSecretsOrgModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsOrgModuleSelect; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + { + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + { + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + } +>; +export function useUpdateConfigSecretsOrgModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configSecretsOrgModuleMutationKeys.all, + mutationFn: ({ + id, + configSecretsOrgModulePatch, + }: { + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + }) => + getClient() + .configSecretsOrgModule.update({ + where: { + id, + }, + data: configSecretsOrgModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts new file mode 100644 index 0000000000..ab9482f3fe --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ConfigSecretsUserModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configSecretsUserModuleKeys } from '../query-keys'; +import { configSecretsUserModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ConfigSecretsUserModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateConfigSecretsUserModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', configSecretsUserModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateConfigSecretsUserModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsUserModuleSelect; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + { + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + { + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + } +>; +export function useUpdateConfigSecretsUserModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configSecretsUserModuleMutationKeys.all, + mutationFn: ({ + id, + configSecretsUserModulePatch, + }: { + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + }) => + getClient() + .configSecretsUserModule.update({ + where: { + id, + }, + data: configSecretsUserModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts deleted file mode 100644 index 9c6476ff29..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Update mutation hook for EncryptedSecretsModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { encryptedSecretsModuleKeys } from '../query-keys'; -import { encryptedSecretsModuleMutationKeys } from '../mutation-keys'; -import type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModulePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModulePatch, -} from '../../orm/input-types'; -/** - * Mutation hook for updating a EncryptedSecretsModule - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateEncryptedSecretsModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', encryptedSecretsModulePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateEncryptedSecretsModuleMutation( - params: { - selection: { - fields: S & EncryptedSecretsModuleSelect; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; - } & Omit< - UseMutationOptions< - { - updateEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }, - Error, - { - id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }, - Error, - { - id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; - } ->; -export function useUpdateEncryptedSecretsModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: encryptedSecretsModuleMutationKeys.all, - mutationFn: ({ - id, - encryptedSecretsModulePatch, - }: { - id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; - }) => - getClient() - .encryptedSecretsModule.update({ - where: { - id, - }, - data: encryptedSecretsModulePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateInferenceLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInferenceLogModuleMutation.ts new file mode 100644 index 0000000000..29d5bb0b3e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInferenceLogModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for InferenceLogModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { inferenceLogModuleKeys } from '../query-keys'; +import { inferenceLogModuleMutationKeys } from '../mutation-keys'; +import type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + InferenceLogModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + InferenceLogModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a InferenceLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInferenceLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', inferenceLogModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInferenceLogModuleMutation( + params: { + selection: { + fields: S & InferenceLogModuleSelect; + } & HookStrictSelect, InferenceLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; + } +>; +export function useUpdateInferenceLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: inferenceLogModuleMutationKeys.all, + mutationFn: ({ + id, + inferenceLogModulePatch, + }: { + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; + }) => + getClient() + .inferenceLogModule.update({ + where: { + id, + }, + data: inferenceLogModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitEventMutation.ts new file mode 100644 index 0000000000..6809f97605 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitEventKeys } from '../query-keys'; +import { orgLimitEventMutationKeys } from '../mutation-keys'; +import type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventPatch, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgLimitEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgLimitEventMutation( + params: { + selection: { + fields: S & OrgLimitEventSelect; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } +>; +export function useUpdateOrgLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitEventMutationKeys.all, + mutationFn: ({ + id, + orgLimitEventPatch, + }: { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + }) => + getClient() + .orgLimitEvent.update({ + where: { + id, + }, + data: orgLimitEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/index.ts b/sdk/constructive-react/src/public/hooks/queries/index.ts index ee62d4af5f..20f0f1a9e2 100644 --- a/sdk/constructive-react/src/public/hooks/queries/index.ts +++ b/sdk/constructive-react/src/public/hooks/queries/index.ts @@ -6,12 +6,12 @@ export * from './useOrgGetManagersQuery'; export * from './useOrgGetSubordinatesQuery'; export * from './useGetAllQuery'; +export * from './useObjectsQuery'; +export * from './useObjectQuery'; export * from './useAppPermissionsQuery'; export * from './useAppPermissionQuery'; export * from './useOrgPermissionsQuery'; export * from './useOrgPermissionQuery'; -export * from './useObjectsQuery'; -export * from './useObjectQuery'; export * from './useDatabasesQuery'; export * from './useDatabaseQuery'; export * from './useSchemasQuery'; @@ -60,6 +60,8 @@ export * from './useIdentityProvidersModulesQuery'; export * from './useIdentityProvidersModuleQuery'; export * from './useRealtimeModulesQuery'; export * from './useRealtimeModuleQuery'; +export * from './useConfigSecretsOrgModulesQuery'; +export * from './useConfigSecretsOrgModuleQuery'; export * from './useSchemaGrantsQuery'; export * from './useSchemaGrantQuery'; export * from './useDefaultPrivilegesQuery'; @@ -108,8 +110,8 @@ export * from './useDenormalizedTableFieldsQuery'; export * from './useDenormalizedTableFieldQuery'; export * from './useEmailsModulesQuery'; export * from './useEmailsModuleQuery'; -export * from './useEncryptedSecretsModulesQuery'; -export * from './useEncryptedSecretsModuleQuery'; +export * from './useConfigSecretsUserModulesQuery'; +export * from './useConfigSecretsUserModuleQuery'; export * from './useInvitesModulesQuery'; export * from './useInvitesModuleQuery'; export * from './useEventsModulesQuery'; @@ -216,8 +218,6 @@ export * from './useAgentMessagesQuery'; export * from './useAgentMessageQuery'; export * from './useAgentTasksQuery'; export * from './useAgentTaskQuery'; -export * from './useRoleTypesQuery'; -export * from './useRoleTypeQuery'; export * from './useIdentityProvidersQuery'; export * from './useRefsQuery'; export * from './useRefQuery'; @@ -225,32 +225,36 @@ export * from './useStoresQuery'; export * from './useStoreQuery'; export * from './useAppPermissionDefaultsQuery'; export * from './useAppPermissionDefaultQuery'; -export * from './useAppLimitCreditCodesQuery'; -export * from './useAppLimitCreditCodeQuery'; +export * from './useRoleTypesQuery'; +export * from './useRoleTypeQuery'; +export * from './useMigrateFilesQuery'; +export * from './useMigrateFileQuery'; export * from './useAppLimitCapsDefaultsQuery'; export * from './useAppLimitCapsDefaultQuery'; export * from './useOrgLimitCapsDefaultsQuery'; export * from './useOrgLimitCapsDefaultQuery'; -export * from './useAppLimitCapsQuery'; -export * from './useAppLimitCapQuery'; -export * from './useOrgLimitCapsQuery'; -export * from './useOrgLimitCapQuery'; -export * from './useMembershipTypesQuery'; -export * from './useMembershipTypeQuery'; -export * from './useMigrateFilesQuery'; -export * from './useMigrateFileQuery'; export * from './useDevicesModulesQuery'; export * from './useDevicesModuleQuery'; +export * from './useAppMembershipDefaultsQuery'; +export * from './useAppMembershipDefaultQuery'; +export * from './useOrgMembershipDefaultsQuery'; +export * from './useOrgMembershipDefaultQuery'; export * from './useNodeTypeRegistriesQuery'; export * from './useNodeTypeRegistryQuery'; +export * from './useAppLimitCapsQuery'; +export * from './useAppLimitCapQuery'; export * from './useAppLimitDefaultsQuery'; export * from './useAppLimitDefaultQuery'; +export * from './useOrgLimitCapsQuery'; +export * from './useOrgLimitCapQuery'; export * from './useOrgLimitDefaultsQuery'; export * from './useOrgLimitDefaultQuery'; -export * from './useAppLimitWarningsQuery'; -export * from './useAppLimitWarningQuery'; export * from './useUserConnectedAccountsQuery'; export * from './useUserConnectedAccountQuery'; +export * from './useAppLimitCreditCodesQuery'; +export * from './useAppLimitCreditCodeQuery'; +export * from './useAppLimitWarningsQuery'; +export * from './useAppLimitWarningQuery'; export * from './useCommitsQuery'; export * from './useCommitQuery'; export * from './usePubkeySettingsQuery'; @@ -259,36 +263,38 @@ export * from './useRateLimitsModulesQuery'; export * from './useRateLimitsModuleQuery'; export * from './useUsageSnapshotsQuery'; export * from './useUsageSnapshotQuery'; -export * from './useAppMembershipDefaultsQuery'; -export * from './useAppMembershipDefaultQuery'; -export * from './useOrgMembershipDefaultsQuery'; -export * from './useOrgMembershipDefaultQuery'; +export * from './useMembershipTypesQuery'; +export * from './useMembershipTypeQuery'; export * from './useRlsSettingsQuery'; export * from './useRlsSettingQuery'; -export * from './useAppLimitEventsQuery'; -export * from './useOrgLimitEventsQuery'; export * from './useRlsModulesQuery'; export * from './useRlsModuleQuery'; +export * from './useInferenceLogModulesQuery'; +export * from './useInferenceLogModuleQuery'; export * from './useRateLimitMetersModulesQuery'; export * from './useRateLimitMetersModuleQuery'; export * from './usePlansModulesQuery'; export * from './usePlansModuleQuery'; export * from './useSqlActionsQuery'; export * from './useSqlActionQuery'; +export * from './useAppLimitEventsQuery'; +export * from './useAppLimitEventQuery'; +export * from './useOrgLimitEventsQuery'; +export * from './useOrgLimitEventQuery'; export * from './useDatabaseSettingsQuery'; export * from './useDatabaseSettingQuery'; +export * from './useOrgMembershipSettingsQuery'; +export * from './useOrgMembershipSettingQuery'; export * from './useBillingModulesQuery'; export * from './useBillingModuleQuery'; -export * from './useAstMigrationsQuery'; -export * from './useAstMigrationQuery'; +export * from './useAppMembershipsQuery'; +export * from './useAppMembershipQuery'; export * from './useUsersQuery'; export * from './useUserQuery'; -export * from './useOrgMembershipSettingsQuery'; -export * from './useOrgMembershipSettingQuery'; +export * from './useAstMigrationsQuery'; +export * from './useAstMigrationQuery'; export * from './useWebauthnSettingsQuery'; export * from './useWebauthnSettingQuery'; -export * from './useAppMembershipsQuery'; -export * from './useAppMembershipQuery'; export * from './useBillingProviderModulesQuery'; export * from './useBillingProviderModuleQuery'; export * from './useHierarchyModulesQuery'; @@ -307,9 +313,9 @@ export * from './useOrgPermissionsGetMaskQuery'; export * from './useResolveBlueprintTableQuery'; export * from './useAppPermissionsGetMaskByNamesQuery'; export * from './useOrgPermissionsGetMaskByNamesQuery'; -export * from './useAppPermissionsGetByMaskQuery'; -export * from './useOrgPermissionsGetByMaskQuery'; export * from './useGetAllObjectsFromRootQuery'; export * from './useGetPathObjectsFromRootQuery'; export * from './useGetObjectAtPathQuery'; +export * from './useAppPermissionsGetByMaskQuery'; +export * from './useOrgPermissionsGetByMaskQuery'; export * from './useCurrentUserQuery'; diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventQuery.ts new file mode 100644 index 0000000000..3303e3895d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { appLimitEventKeys } from '../query-keys'; +import type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitEventQueryKey = appLimitEventKeys.detail; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLimitEventQuery< + S extends AppLimitEventSelect, + TData = { + appLimitEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + appLimitEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchAppLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLimitEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; +}): Promise<{ + appLimitEvent: InferSelectResult | null; +}>; +export async function fetchAppLimitEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchAppLimitEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; + } +): Promise; +export async function prefetchAppLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModuleQuery.ts new file mode 100644 index 0000000000..cc21bfb5a5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModuleQuery.ts @@ -0,0 +1,146 @@ +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configSecretsOrgModuleKeys } from '../query-keys'; +import type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const configSecretsOrgModuleQueryKey = configSecretsOrgModuleKeys.detail; +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```tsx + * const { data, isLoading } = useConfigSecretsOrgModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useConfigSecretsOrgModuleQuery< + S extends ConfigSecretsOrgModuleSelect, + TData = { + configSecretsOrgModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } & Omit< + UseQueryOptions< + { + configSecretsOrgModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConfigSecretsOrgModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: configSecretsOrgModuleKeys.detail(params.id), + queryFn: () => + getClient() + .configSecretsOrgModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```ts + * const data = await fetchConfigSecretsOrgModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchConfigSecretsOrgModuleQuery< + S extends ConfigSecretsOrgModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; +}): Promise<{ + configSecretsOrgModule: InferSelectResult | null; +}>; +export async function fetchConfigSecretsOrgModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .configSecretsOrgModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```ts + * await prefetchConfigSecretsOrgModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchConfigSecretsOrgModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } +): Promise; +export async function prefetchConfigSecretsOrgModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: configSecretsOrgModuleKeys.detail(params.id), + queryFn: () => + getClient() + .configSecretsOrgModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModulesQuery.ts new file mode 100644 index 0000000000..bd472158fd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModulesQuery.ts @@ -0,0 +1,180 @@ +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { configSecretsOrgModuleKeys } from '../query-keys'; +import type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const configSecretsOrgModulesQueryKey = configSecretsOrgModuleKeys.list; +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```tsx + * const { data, isLoading } = useConfigSecretsOrgModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useConfigSecretsOrgModulesQuery< + S extends ConfigSecretsOrgModuleSelect, + TData = { + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } & Omit< + UseQueryOptions< + { + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConfigSecretsOrgModulesQuery( + params: { + selection: ListSelectionConfig< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: configSecretsOrgModuleKeys.list(args), + queryFn: () => getClient().configSecretsOrgModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```ts + * const data = await fetchConfigSecretsOrgModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchConfigSecretsOrgModulesQuery< + S extends ConfigSecretsOrgModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsOrgModuleSelect>; +}): Promise<{ + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchConfigSecretsOrgModulesQuery(params: { + selection: ListSelectionConfig< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >(params.selection); + return getClient().configSecretsOrgModule.findMany(args).unwrap(); +} +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```ts + * await prefetchConfigSecretsOrgModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchConfigSecretsOrgModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } +): Promise; +export async function prefetchConfigSecretsOrgModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: configSecretsOrgModuleKeys.list(args), + queryFn: () => getClient().configSecretsOrgModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModuleQuery.ts new file mode 100644 index 0000000000..0417e18743 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModuleQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for ConfigSecretsUserModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configSecretsUserModuleKeys } from '../query-keys'; +import type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const configSecretsUserModuleQueryKey = configSecretsUserModuleKeys.detail; +/** + * Query hook for fetching a single ConfigSecretsUserModule + * + * @example + * ```tsx + * const { data, isLoading } = useConfigSecretsUserModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useConfigSecretsUserModuleQuery< + S extends ConfigSecretsUserModuleSelect, + TData = { + configSecretsUserModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; + } & Omit< + UseQueryOptions< + { + configSecretsUserModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConfigSecretsUserModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: configSecretsUserModuleKeys.detail(params.id), + queryFn: () => + getClient() + .configSecretsUserModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ConfigSecretsUserModule without React hooks + * + * @example + * ```ts + * const data = await fetchConfigSecretsUserModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchConfigSecretsUserModuleQuery< + S extends ConfigSecretsUserModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; +}): Promise<{ + configSecretsUserModule: InferSelectResult | null; +}>; +export async function fetchConfigSecretsUserModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .configSecretsUserModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ConfigSecretsUserModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchConfigSecretsUserModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchConfigSecretsUserModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; + } +): Promise; +export async function prefetchConfigSecretsUserModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: configSecretsUserModuleKeys.detail(params.id), + queryFn: () => + getClient() + .configSecretsUserModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModulesQuery.ts new file mode 100644 index 0000000000..7a13019670 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModulesQuery.ts @@ -0,0 +1,182 @@ +/** + * List query hook for ConfigSecretsUserModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { configSecretsUserModuleKeys } from '../query-keys'; +import type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const configSecretsUserModulesQueryKey = configSecretsUserModuleKeys.list; +/** + * Query hook for fetching ConfigSecretsUserModule list + * + * @example + * ```tsx + * const { data, isLoading } = useConfigSecretsUserModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useConfigSecretsUserModulesQuery< + S extends ConfigSecretsUserModuleSelect, + TData = { + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsUserModuleSelect>; + } & Omit< + UseQueryOptions< + { + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConfigSecretsUserModulesQuery( + params: { + selection: ListSelectionConfig< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: configSecretsUserModuleKeys.list(args), + queryFn: () => getClient().configSecretsUserModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ConfigSecretsUserModule list without React hooks + * + * @example + * ```ts + * const data = await fetchConfigSecretsUserModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchConfigSecretsUserModulesQuery< + S extends ConfigSecretsUserModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsUserModuleSelect>; +}): Promise<{ + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchConfigSecretsUserModulesQuery(params: { + selection: ListSelectionConfig< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >(params.selection); + return getClient().configSecretsUserModule.findMany(args).unwrap(); +} +/** + * Prefetch ConfigSecretsUserModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchConfigSecretsUserModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchConfigSecretsUserModulesQuery< + S extends ConfigSecretsUserModuleSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsUserModuleSelect>; + } +): Promise; +export async function prefetchConfigSecretsUserModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: configSecretsUserModuleKeys.list(args), + queryFn: () => getClient().configSecretsUserModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts deleted file mode 100644 index 5bc441bb7d..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Single item query hook for EncryptedSecretsModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { encryptedSecretsModuleKeys } from '../query-keys'; -import type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const encryptedSecretsModuleQueryKey = encryptedSecretsModuleKeys.detail; -/** - * Query hook for fetching a single EncryptedSecretsModule - * - * @example - * ```tsx - * const { data, isLoading } = useEncryptedSecretsModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useEncryptedSecretsModuleQuery< - S extends EncryptedSecretsModuleSelect, - TData = { - encryptedSecretsModule: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; - } & Omit< - UseQueryOptions< - { - encryptedSecretsModule: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useEncryptedSecretsModuleQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: encryptedSecretsModuleKeys.detail(params.id), - queryFn: () => - getClient() - .encryptedSecretsModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single EncryptedSecretsModule without React hooks - * - * @example - * ```ts - * const data = await fetchEncryptedSecretsModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchEncryptedSecretsModuleQuery< - S extends EncryptedSecretsModuleSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; -}): Promise<{ - encryptedSecretsModule: InferSelectResult | null; -}>; -export async function fetchEncryptedSecretsModuleQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .encryptedSecretsModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single EncryptedSecretsModule for SSR or cache warming - * - * @example - * ```ts - * await prefetchEncryptedSecretsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchEncryptedSecretsModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; - } -): Promise; -export async function prefetchEncryptedSecretsModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: encryptedSecretsModuleKeys.detail(params.id), - queryFn: () => - getClient() - .encryptedSecretsModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts deleted file mode 100644 index c1f7bab939..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * List query hook for EncryptedSecretsModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { encryptedSecretsModuleKeys } from '../query-keys'; -import type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const encryptedSecretsModulesQueryKey = encryptedSecretsModuleKeys.list; -/** - * Query hook for fetching EncryptedSecretsModule list - * - * @example - * ```tsx - * const { data, isLoading } = useEncryptedSecretsModulesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useEncryptedSecretsModulesQuery< - S extends EncryptedSecretsModuleSelect, - TData = { - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, EncryptedSecretsModuleSelect>; - } & Omit< - UseQueryOptions< - { - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useEncryptedSecretsModulesQuery( - params: { - selection: ListSelectionConfig< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: encryptedSecretsModuleKeys.list(args), - queryFn: () => getClient().encryptedSecretsModule.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch EncryptedSecretsModule list without React hooks - * - * @example - * ```ts - * const data = await fetchEncryptedSecretsModulesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchEncryptedSecretsModulesQuery< - S extends EncryptedSecretsModuleSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, EncryptedSecretsModuleSelect>; -}): Promise<{ - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchEncryptedSecretsModulesQuery(params: { - selection: ListSelectionConfig< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >; -}) { - const args = buildListSelectionArgs< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >(params.selection); - return getClient().encryptedSecretsModule.findMany(args).unwrap(); -} -/** - * Prefetch EncryptedSecretsModule list for SSR or cache warming - * - * @example - * ```ts - * await prefetchEncryptedSecretsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchEncryptedSecretsModulesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, EncryptedSecretsModuleSelect>; - } -): Promise; -export async function prefetchEncryptedSecretsModulesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: encryptedSecretsModuleKeys.list(args), - queryFn: () => getClient().encryptedSecretsModule.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts index 250ee6c188..120545dba8 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts @@ -20,7 +20,7 @@ export const getAllObjectsFromRootQueryKey = customQueryKeys.getAllObjectsFromRo * * @example * ```tsx - * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { sId, id, first, offset, after } }); * * if (data?.getAllObjectsFromRoot) { * console.log(data.getAllObjectsFromRoot); @@ -77,7 +77,7 @@ export function useGetAllObjectsFromRootQuery< * * @example * ```ts - * const data = await fetchGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * const data = await fetchGetAllObjectsFromRootQuery({ variables: { sId, id, first, offset, after } }); * ``` */ export async function fetchGetAllObjectsFromRootQuery(params?: { @@ -91,7 +91,7 @@ export async function fetchGetAllObjectsFromRootQuery(params?: { * * @example * ```ts - * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { databaseId, id, first, offset, after } }); + * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { sId, id, first, offset, after } }); * ``` */ export async function prefetchGetAllObjectsFromRootQuery( diff --git a/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts index f36831e832..8e441116b9 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts @@ -22,7 +22,7 @@ export const getObjectAtPathQueryKey = customQueryKeys.getObjectAtPath; * * @example * ```tsx - * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * * if (data?.getObjectAtPath) { * console.log(data.getObjectAtPath); @@ -78,7 +78,7 @@ export function useGetObjectAtPathQuery( * * @example * ```ts - * const data = await fetchGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * const data = await fetchGetObjectAtPathQuery({ variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * ``` */ export async function fetchGetObjectAtPathQuery(params: { @@ -106,7 +106,7 @@ export async function fetchGetObjectAtPathQuery(params: { * * @example * ```ts - * await prefetchGetObjectAtPathQuery(queryClient, { variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * await prefetchGetObjectAtPathQuery(queryClient, { variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * ``` */ export async function prefetchGetObjectAtPathQuery( diff --git a/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts index 32bb021f83..47068094eb 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts @@ -20,7 +20,7 @@ export const getPathObjectsFromRootQueryKey = customQueryKeys.getPathObjectsFrom * * @example * ```tsx - * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { sId, id, path, first, offset, after } }); * * if (data?.getPathObjectsFromRoot) { * console.log(data.getPathObjectsFromRoot); @@ -77,7 +77,7 @@ export function useGetPathObjectsFromRootQuery< * * @example * ```ts - * const data = await fetchGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * const data = await fetchGetPathObjectsFromRootQuery({ variables: { sId, id, path, first, offset, after } }); * ``` */ export async function fetchGetPathObjectsFromRootQuery(params?: { @@ -91,7 +91,7 @@ export async function fetchGetPathObjectsFromRootQuery(params?: { * * @example * ```ts - * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { databaseId, id, path, first, offset, after } }); + * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { sId, id, path, first, offset, after } }); * ``` */ export async function prefetchGetPathObjectsFromRootQuery( diff --git a/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModuleQuery.ts new file mode 100644 index 0000000000..8d2448db21 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for InferenceLogModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { inferenceLogModuleKeys } from '../query-keys'; +import type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const inferenceLogModuleQueryKey = inferenceLogModuleKeys.detail; +/** + * Query hook for fetching a single InferenceLogModule + * + * @example + * ```tsx + * const { data, isLoading } = useInferenceLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInferenceLogModuleQuery< + S extends InferenceLogModuleSelect, + TData = { + inferenceLogModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InferenceLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + inferenceLogModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInferenceLogModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: inferenceLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .inferenceLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single InferenceLogModule without React hooks + * + * @example + * ```ts + * const data = await fetchInferenceLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInferenceLogModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InferenceLogModuleSelect>; +}): Promise<{ + inferenceLogModule: InferSelectResult | null; +}>; +export async function fetchInferenceLogModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .inferenceLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single InferenceLogModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchInferenceLogModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInferenceLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InferenceLogModuleSelect>; + } +): Promise; +export async function prefetchInferenceLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: inferenceLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .inferenceLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModulesQuery.ts new file mode 100644 index 0000000000..e47aaae8b5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModulesQuery.ts @@ -0,0 +1,171 @@ +/** + * List query hook for InferenceLogModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { inferenceLogModuleKeys } from '../query-keys'; +import type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const inferenceLogModulesQueryKey = inferenceLogModuleKeys.list; +/** + * Query hook for fetching InferenceLogModule list + * + * @example + * ```tsx + * const { data, isLoading } = useInferenceLogModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInferenceLogModulesQuery< + S extends InferenceLogModuleSelect, + TData = { + inferenceLogModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InferenceLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + inferenceLogModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInferenceLogModulesQuery( + params: { + selection: ListSelectionConfig< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: inferenceLogModuleKeys.list(args), + queryFn: () => getClient().inferenceLogModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch InferenceLogModule list without React hooks + * + * @example + * ```ts + * const data = await fetchInferenceLogModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInferenceLogModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InferenceLogModuleSelect>; +}): Promise<{ + inferenceLogModules: ConnectionResult>; +}>; +export async function fetchInferenceLogModulesQuery(params: { + selection: ListSelectionConfig< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >(params.selection); + return getClient().inferenceLogModule.findMany(args).unwrap(); +} +/** + * Prefetch InferenceLogModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchInferenceLogModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInferenceLogModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InferenceLogModuleSelect>; + } +): Promise; +export async function prefetchInferenceLogModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: inferenceLogModuleKeys.list(args), + queryFn: () => getClient().inferenceLogModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventQuery.ts new file mode 100644 index 0000000000..1f471a60a7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitEventKeys } from '../query-keys'; +import type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitEventQueryKey = orgLimitEventKeys.detail; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgLimitEventQuery< + S extends OrgLimitEventSelect, + TData = { + orgLimitEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchOrgLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgLimitEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; +}): Promise<{ + orgLimitEvent: InferSelectResult | null; +}>; +export async function fetchOrgLimitEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchOrgLimitEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; + } +): Promise; +export async function prefetchOrgLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts index d8b6226fbc..675621528d 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts @@ -19,7 +19,7 @@ export const revParseQueryKey = customQueryKeys.revParse; * * @example * ```tsx - * const { data, isLoading } = useRevParseQuery({ variables: { dbId, storeId, refname } }); + * const { data, isLoading } = useRevParseQuery({ variables: { sId, storeId, refname } }); * * if (data?.revParse) { * console.log(data.revParse); @@ -76,7 +76,7 @@ export function useRevParseQuery< * * @example * ```ts - * const data = await fetchRevParseQuery({ variables: { dbId, storeId, refname } }); + * const data = await fetchRevParseQuery({ variables: { sId, storeId, refname } }); * ``` */ export async function fetchRevParseQuery(params?: { variables?: RevParseVariables }) { @@ -88,7 +88,7 @@ export async function fetchRevParseQuery(params?: { variables?: RevParseVariable * * @example * ```ts - * await prefetchRevParseQuery(queryClient, { variables: { dbId, storeId, refname } }); + * await prefetchRevParseQuery(queryClient, { variables: { sId, storeId, refname } }); * ``` */ export async function prefetchRevParseQuery( diff --git a/sdk/constructive-react/src/public/hooks/query-keys.ts b/sdk/constructive-react/src/public/hooks/query-keys.ts index 8748ca1414..59f08f61b4 100644 --- a/sdk/constructive-react/src/public/hooks/query-keys.ts +++ b/sdk/constructive-react/src/public/hooks/query-keys.ts @@ -46,6 +46,15 @@ export const getAllRecordKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...getAllRecordKeys.details(), id] as const, } as const; +export const objectKeys = { + /** All object queries */ all: ['object'] as const, + /** List query keys */ lists: () => [...objectKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...objectKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...objectKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...objectKeys.details(), id] as const, +} as const; export const appPermissionKeys = { /** All appPermission queries */ all: ['apppermission'] as const, /** List query keys */ lists: () => [...appPermissionKeys.all, 'list'] as const, @@ -64,15 +73,6 @@ export const orgPermissionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgPermissionKeys.details(), id] as const, } as const; -export const objectKeys = { - /** All object queries */ all: ['object'] as const, - /** List query keys */ lists: () => [...objectKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...objectKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...objectKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...objectKeys.details(), id] as const, -} as const; export const databaseKeys = { /** All database queries */ all: ['database'] as const, /** List query keys */ lists: () => [...databaseKeys.all, 'list'] as const, @@ -289,6 +289,15 @@ export const realtimeModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...realtimeModuleKeys.details(), id] as const, } as const; +export const configSecretsOrgModuleKeys = { + /** All configSecretsOrgModule queries */ all: ['configsecretsorgmodule'] as const, + /** List query keys */ lists: () => [...configSecretsOrgModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...configSecretsOrgModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...configSecretsOrgModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...configSecretsOrgModuleKeys.details(), id] as const, +} as const; export const schemaGrantKeys = { /** All schemaGrant queries */ all: ['schemagrant'] as const, /** List query keys */ lists: () => [...schemaGrantKeys.all, 'list'] as const, @@ -505,14 +514,14 @@ export const emailsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...emailsModuleKeys.details(), id] as const, } as const; -export const encryptedSecretsModuleKeys = { - /** All encryptedSecretsModule queries */ all: ['encryptedsecretsmodule'] as const, - /** List query keys */ lists: () => [...encryptedSecretsModuleKeys.all, 'list'] as const, +export const configSecretsUserModuleKeys = { + /** All configSecretsUserModule queries */ all: ['configsecretsusermodule'] as const, + /** List query keys */ lists: () => [...configSecretsUserModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...encryptedSecretsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...encryptedSecretsModuleKeys.all, 'detail'] as const, + [...configSecretsUserModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...configSecretsUserModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...encryptedSecretsModuleKeys.details(), id] as const, + [...configSecretsUserModuleKeys.details(), id] as const, } as const; export const invitesModuleKeys = { /** All invitesModule queries */ all: ['invitesmodule'] as const, @@ -991,15 +1000,6 @@ export const agentTaskKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...agentTaskKeys.details(), id] as const, } as const; -export const roleTypeKeys = { - /** All roleType queries */ all: ['roletype'] as const, - /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...roleTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...roleTypeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...roleTypeKeys.details(), id] as const, -} as const; export const identityProviderKeys = { /** All identityProvider queries */ all: ['identityprovider'] as const, /** List query keys */ lists: () => [...identityProviderKeys.all, 'list'] as const, @@ -1036,14 +1036,23 @@ export const appPermissionDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appPermissionDefaultKeys.details(), id] as const, } as const; -export const appLimitCreditCodeKeys = { - /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, - /** List query keys */ lists: () => [...appLimitCreditCodeKeys.all, 'list'] as const, +export const roleTypeKeys = { + /** All roleType queries */ all: ['roletype'] as const, + /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditCodeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.all, 'detail'] as const, + [...roleTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...roleTypeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditCodeKeys.details(), id] as const, + [...roleTypeKeys.details(), id] as const, +} as const; +export const migrateFileKeys = { + /** All migrateFile queries */ all: ['migratefile'] as const, + /** List query keys */ lists: () => [...migrateFileKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...migrateFileKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...migrateFileKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...migrateFileKeys.details(), id] as const, } as const; export const appLimitCapsDefaultKeys = { /** All appLimitCapsDefault queries */ all: ['applimitcapsdefault'] as const, @@ -1063,42 +1072,6 @@ export const orgLimitCapsDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitCapsDefaultKeys.details(), id] as const, } as const; -export const appLimitCapKeys = { - /** All appLimitCap queries */ all: ['applimitcap'] as const, - /** List query keys */ lists: () => [...appLimitCapKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCapKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCapKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCapKeys.details(), id] as const, -} as const; -export const orgLimitCapKeys = { - /** All orgLimitCap queries */ all: ['orglimitcap'] as const, - /** List query keys */ lists: () => [...orgLimitCapKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitCapKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitCapKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitCapKeys.details(), id] as const, -} as const; -export const membershipTypeKeys = { - /** All membershipType queries */ all: ['membershiptype'] as const, - /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...membershipTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipTypeKeys.details(), id] as const, -} as const; -export const migrateFileKeys = { - /** All migrateFile queries */ all: ['migratefile'] as const, - /** List query keys */ lists: () => [...migrateFileKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...migrateFileKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...migrateFileKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...migrateFileKeys.details(), id] as const, -} as const; export const devicesModuleKeys = { /** All devicesModule queries */ all: ['devicesmodule'] as const, /** List query keys */ lists: () => [...devicesModuleKeys.all, 'list'] as const, @@ -1108,6 +1081,24 @@ export const devicesModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...devicesModuleKeys.details(), id] as const, } as const; +export const appMembershipDefaultKeys = { + /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, + /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appMembershipDefaultKeys.details(), id] as const, +} as const; +export const orgMembershipDefaultKeys = { + /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, + /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMembershipDefaultKeys.details(), id] as const, +} as const; export const nodeTypeRegistryKeys = { /** All nodeTypeRegistry queries */ all: ['nodetyperegistry'] as const, /** List query keys */ lists: () => [...nodeTypeRegistryKeys.all, 'list'] as const, @@ -1117,6 +1108,15 @@ export const nodeTypeRegistryKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...nodeTypeRegistryKeys.details(), id] as const, } as const; +export const appLimitCapKeys = { + /** All appLimitCap queries */ all: ['applimitcap'] as const, + /** List query keys */ lists: () => [...appLimitCapKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCapKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCapKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCapKeys.details(), id] as const, +} as const; export const appLimitDefaultKeys = { /** All appLimitDefault queries */ all: ['applimitdefault'] as const, /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, @@ -1126,6 +1126,15 @@ export const appLimitDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appLimitDefaultKeys.details(), id] as const, } as const; +export const orgLimitCapKeys = { + /** All orgLimitCap queries */ all: ['orglimitcap'] as const, + /** List query keys */ lists: () => [...orgLimitCapKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitCapKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitCapKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitCapKeys.details(), id] as const, +} as const; export const orgLimitDefaultKeys = { /** All orgLimitDefault queries */ all: ['orglimitdefault'] as const, /** List query keys */ lists: () => [...orgLimitDefaultKeys.all, 'list'] as const, @@ -1135,15 +1144,6 @@ export const orgLimitDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitDefaultKeys.details(), id] as const, } as const; -export const appLimitWarningKeys = { - /** All appLimitWarning queries */ all: ['applimitwarning'] as const, - /** List query keys */ lists: () => [...appLimitWarningKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitWarningKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitWarningKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitWarningKeys.details(), id] as const, -} as const; export const userConnectedAccountKeys = { /** All userConnectedAccount queries */ all: ['userconnectedaccount'] as const, /** List query keys */ lists: () => [...userConnectedAccountKeys.all, 'list'] as const, @@ -1153,6 +1153,24 @@ export const userConnectedAccountKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userConnectedAccountKeys.details(), id] as const, } as const; +export const appLimitCreditCodeKeys = { + /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, + /** List query keys */ lists: () => [...appLimitCreditCodeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCreditCodeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCreditCodeKeys.details(), id] as const, +} as const; +export const appLimitWarningKeys = { + /** All appLimitWarning queries */ all: ['applimitwarning'] as const, + /** List query keys */ lists: () => [...appLimitWarningKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitWarningKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitWarningKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitWarningKeys.details(), id] as const, +} as const; export const commitKeys = { /** All commit queries */ all: ['commit'] as const, /** List query keys */ lists: () => [...commitKeys.all, 'list'] as const, @@ -1189,23 +1207,14 @@ export const usageSnapshotKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...usageSnapshotKeys.details(), id] as const, } as const; -export const appMembershipDefaultKeys = { - /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, - /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipDefaultKeys.details(), id] as const, -} as const; -export const orgMembershipDefaultKeys = { - /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, - /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, +export const membershipTypeKeys = { + /** All membershipType queries */ all: ['membershiptype'] as const, + /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + [...membershipTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipDefaultKeys.details(), id] as const, + [...membershipTypeKeys.details(), id] as const, } as const; export const rlsSettingKeys = { /** All rlsSetting queries */ all: ['rlssetting'] as const, @@ -1216,24 +1225,6 @@ export const rlsSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...rlsSettingKeys.details(), id] as const, } as const; -export const appLimitEventKeys = { - /** All appLimitEvent queries */ all: ['applimitevent'] as const, - /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitEventKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitEventKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitEventKeys.details(), id] as const, -} as const; -export const orgLimitEventKeys = { - /** All orgLimitEvent queries */ all: ['orglimitevent'] as const, - /** List query keys */ lists: () => [...orgLimitEventKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitEventKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitEventKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitEventKeys.details(), id] as const, -} as const; export const rlsModuleKeys = { /** All rlsModule queries */ all: ['rlsmodule'] as const, /** List query keys */ lists: () => [...rlsModuleKeys.all, 'list'] as const, @@ -1243,6 +1234,15 @@ export const rlsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...rlsModuleKeys.details(), id] as const, } as const; +export const inferenceLogModuleKeys = { + /** All inferenceLogModule queries */ all: ['inferencelogmodule'] as const, + /** List query keys */ lists: () => [...inferenceLogModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...inferenceLogModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...inferenceLogModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...inferenceLogModuleKeys.details(), id] as const, +} as const; export const rateLimitMetersModuleKeys = { /** All rateLimitMetersModule queries */ all: ['ratelimitmetersmodule'] as const, /** List query keys */ lists: () => [...rateLimitMetersModuleKeys.all, 'list'] as const, @@ -1270,6 +1270,24 @@ export const sqlActionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...sqlActionKeys.details(), id] as const, } as const; +export const appLimitEventKeys = { + /** All appLimitEvent queries */ all: ['applimitevent'] as const, + /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitEventKeys.details(), id] as const, +} as const; +export const orgLimitEventKeys = { + /** All orgLimitEvent queries */ all: ['orglimitevent'] as const, + /** List query keys */ lists: () => [...orgLimitEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitEventKeys.details(), id] as const, +} as const; export const databaseSettingKeys = { /** All databaseSetting queries */ all: ['databasesetting'] as const, /** List query keys */ lists: () => [...databaseSettingKeys.all, 'list'] as const, @@ -1279,6 +1297,15 @@ export const databaseSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...databaseSettingKeys.details(), id] as const, } as const; +export const orgMembershipSettingKeys = { + /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, + /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMembershipSettingKeys.details(), id] as const, +} as const; export const billingModuleKeys = { /** All billingModule queries */ all: ['billingmodule'] as const, /** List query keys */ lists: () => [...billingModuleKeys.all, 'list'] as const, @@ -1288,14 +1315,14 @@ export const billingModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...billingModuleKeys.details(), id] as const, } as const; -export const astMigrationKeys = { - /** All astMigration queries */ all: ['astmigration'] as const, - /** List query keys */ lists: () => [...astMigrationKeys.all, 'list'] as const, +export const appMembershipKeys = { + /** All appMembership queries */ all: ['appmembership'] as const, + /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...astMigrationKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'] as const, + [...appMembershipKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...astMigrationKeys.details(), id] as const, + [...appMembershipKeys.details(), id] as const, } as const; export const userKeys = { /** All user queries */ all: ['user'] as const, @@ -1306,14 +1333,14 @@ export const userKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userKeys.details(), id] as const, } as const; -export const orgMembershipSettingKeys = { - /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, - /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, +export const astMigrationKeys = { + /** All astMigration queries */ all: ['astmigration'] as const, + /** List query keys */ lists: () => [...astMigrationKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgMembershipSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, + [...astMigrationKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipSettingKeys.details(), id] as const, + [...astMigrationKeys.details(), id] as const, } as const; export const webauthnSettingKeys = { /** All webauthnSetting queries */ all: ['webauthnsetting'] as const, @@ -1324,15 +1351,6 @@ export const webauthnSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...webauthnSettingKeys.details(), id] as const, } as const; -export const appMembershipKeys = { - /** All appMembership queries */ all: ['appmembership'] as const, - /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appMembershipKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipKeys.details(), id] as const, -} as const; export const billingProviderModuleKeys = { /** All billingProviderModule queries */ all: ['billingprovidermodule'] as const, /** List query keys */ lists: () => [...billingProviderModuleKeys.all, 'list'] as const, @@ -1385,16 +1403,16 @@ export const customQueryKeys = { /** Query key for orgPermissionsGetMaskByNames */ orgPermissionsGetMaskByNames: ( variables?: object ) => ['orgPermissionsGetMaskByNames', variables] as const, - /** Query key for appPermissionsGetByMask */ appPermissionsGetByMask: (variables?: object) => - ['appPermissionsGetByMask', variables] as const, - /** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables?: object) => - ['orgPermissionsGetByMask', variables] as const, /** Query key for getAllObjectsFromRoot */ getAllObjectsFromRoot: (variables?: object) => ['getAllObjectsFromRoot', variables] as const, /** Query key for getPathObjectsFromRoot */ getPathObjectsFromRoot: (variables?: object) => ['getPathObjectsFromRoot', variables] as const, /** Query key for getObjectAtPath */ getObjectAtPath: (variables?: object) => ['getObjectAtPath', variables] as const, + /** Query key for appPermissionsGetByMask */ appPermissionsGetByMask: (variables?: object) => + ['appPermissionsGetByMask', variables] as const, + /** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables?: object) => + ['orgPermissionsGetByMask', variables] as const, /** Query key for currentUser */ currentUser: () => ['currentUser'] as const, } as const; /** @@ -1423,9 +1441,9 @@ export const queryKeys = { orgGetManagersRecord: orgGetManagersRecordKeys, orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, getAllRecord: getAllRecordKeys, + object: objectKeys, appPermission: appPermissionKeys, orgPermission: orgPermissionKeys, - object: objectKeys, database: databaseKeys, schema: schemaKeys, table: tableKeys, @@ -1450,6 +1468,7 @@ export const queryKeys = { sessionSecretsModule: sessionSecretsModuleKeys, identityProvidersModule: identityProvidersModuleKeys, realtimeModule: realtimeModuleKeys, + configSecretsOrgModule: configSecretsOrgModuleKeys, schemaGrant: schemaGrantKeys, defaultPrivilege: defaultPrivilegeKeys, enum: enumKeys, @@ -1474,7 +1493,7 @@ export const queryKeys = { defaultIdsModule: defaultIdsModuleKeys, denormalizedTableField: denormalizedTableFieldKeys, emailsModule: emailsModuleKeys, - encryptedSecretsModule: encryptedSecretsModuleKeys, + configSecretsUserModule: configSecretsUserModuleKeys, invitesModule: invitesModuleKeys, eventsModule: eventsModuleKeys, limitsModule: limitsModuleKeys, @@ -1528,44 +1547,45 @@ export const queryKeys = { agentThread: agentThreadKeys, agentMessage: agentMessageKeys, agentTask: agentTaskKeys, - roleType: roleTypeKeys, identityProvider: identityProviderKeys, ref: refKeys, store: storeKeys, appPermissionDefault: appPermissionDefaultKeys, - appLimitCreditCode: appLimitCreditCodeKeys, + roleType: roleTypeKeys, + migrateFile: migrateFileKeys, appLimitCapsDefault: appLimitCapsDefaultKeys, orgLimitCapsDefault: orgLimitCapsDefaultKeys, - appLimitCap: appLimitCapKeys, - orgLimitCap: orgLimitCapKeys, - membershipType: membershipTypeKeys, - migrateFile: migrateFileKeys, devicesModule: devicesModuleKeys, + appMembershipDefault: appMembershipDefaultKeys, + orgMembershipDefault: orgMembershipDefaultKeys, nodeTypeRegistry: nodeTypeRegistryKeys, + appLimitCap: appLimitCapKeys, appLimitDefault: appLimitDefaultKeys, + orgLimitCap: orgLimitCapKeys, orgLimitDefault: orgLimitDefaultKeys, - appLimitWarning: appLimitWarningKeys, userConnectedAccount: userConnectedAccountKeys, + appLimitCreditCode: appLimitCreditCodeKeys, + appLimitWarning: appLimitWarningKeys, commit: commitKeys, pubkeySetting: pubkeySettingKeys, rateLimitsModule: rateLimitsModuleKeys, usageSnapshot: usageSnapshotKeys, - appMembershipDefault: appMembershipDefaultKeys, - orgMembershipDefault: orgMembershipDefaultKeys, + membershipType: membershipTypeKeys, rlsSetting: rlsSettingKeys, - appLimitEvent: appLimitEventKeys, - orgLimitEvent: orgLimitEventKeys, rlsModule: rlsModuleKeys, + inferenceLogModule: inferenceLogModuleKeys, rateLimitMetersModule: rateLimitMetersModuleKeys, plansModule: plansModuleKeys, sqlAction: sqlActionKeys, + appLimitEvent: appLimitEventKeys, + orgLimitEvent: orgLimitEventKeys, databaseSetting: databaseSettingKeys, + orgMembershipSetting: orgMembershipSettingKeys, billingModule: billingModuleKeys, - astMigration: astMigrationKeys, + appMembership: appMembershipKeys, user: userKeys, - orgMembershipSetting: orgMembershipSettingKeys, + astMigration: astMigrationKeys, webauthnSetting: webauthnSettingKeys, - appMembership: appMembershipKeys, billingProviderModule: billingProviderModuleKeys, hierarchyModule: hierarchyModuleKeys, custom: customQueryKeys, diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md index 4dc7b74e2e..5a1700ea75 100644 --- a/sdk/constructive-react/src/public/orm/README.md +++ b/sdk/constructive-react/src/public/orm/README.md @@ -24,9 +24,9 @@ const db = createClient({ | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | -| `object` | findMany, findOne, create, update, delete | | `database` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | @@ -51,6 +51,7 @@ const db = createClient({ | `sessionSecretsModule` | findMany, findOne, create, update, delete | | `identityProvidersModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | +| `configSecretsOrgModule` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | @@ -75,7 +76,7 @@ const db = createClient({ | `defaultIdsModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | -| `encryptedSecretsModule` | findMany, findOne, create, update, delete | +| `configSecretsUserModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | @@ -129,44 +130,45 @@ const db = createClient({ | `agentThread` | findMany, findOne, create, update, delete | | `agentMessage` | findMany, findOne, create, update, delete | | `agentTask` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | +| `migrateFile` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | -| `appLimitCap` | findMany, findOne, create, update, delete | -| `orgLimitCap` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | -| `migrateFile` | findMany, findOne, create, update, delete | | `devicesModule` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `appLimitCap` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitCap` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `appLimitWarning` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `appLimitWarning` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `pubkeySetting` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | | `usageSnapshot` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | +| `inferenceLogModule` | findMany, findOne, create, update, delete | | `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `databaseSetting` | findMany, findOne, create, update, delete | +| `orgMembershipSetting` | findMany, findOne, create, update, delete | | `billingModule` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, create, update, delete | | `webauthnSetting` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | @@ -262,42 +264,45 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.object` -CRUD operations for AppPermission records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` +### `db.appPermission` -CRUD operations for OrgPermission records. +CRUD operations for AppPermission records. **Fields:** @@ -312,56 +317,53 @@ CRUD operations for OrgPermission records. **Operations:** ```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all appPermission records +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.orgPermission` -CRUD operations for Object records. +CRUD operations for OrgPermission records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | **Operations:** ```typescript -// List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +// List all orgPermission records +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.database` @@ -1359,6 +1361,39 @@ const updated = await db.realtimeModule.update({ where: { id: '' }, data: const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.configSecretsOrgModule` + +CRUD operations for ConfigSecretsOrgModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all configSecretsOrgModule records +const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.schemaGrant` CRUD operations for SchemaGrant records. @@ -1821,6 +1856,7 @@ CRUD operations for Partition records. | `partitionKeyId` | UUID | Yes | | `interval` | String | Yes | | `retention` | String | Yes | +| `retentionKeepTable` | Boolean | Yes | | `premake` | Int | Yes | | `namingPattern` | String | Yes | | `createdAt` | Datetime | No | @@ -1830,13 +1866,13 @@ CRUD operations for Partition records. ```typescript // List all partition records -const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); +const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); // Update const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2215,9 +2251,9 @@ const updated = await db.emailsModule.update({ where: { id: '' }, data: { const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.encryptedSecretsModule` +### `db.configSecretsUserModule` -CRUD operations for EncryptedSecretsModule records. +CRUD operations for ConfigSecretsUserModule records. **Fields:** @@ -2232,20 +2268,20 @@ CRUD operations for EncryptedSecretsModule records. **Operations:** ```typescript -// List all encryptedSecretsModule records -const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); +// List all configSecretsUserModule records +const items = await db.configSecretsUserModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.encryptedSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); +const item = await db.configSecretsUserModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); ``` ### `db.invitesModule` @@ -2945,6 +2981,7 @@ CRUD operations for StorageModule records. | `bucketsTableName` | String | Yes | | `filesTableName` | String | Yes | | `membershipType` | Int | Yes | +| `storageKey` | String | Yes | | `policies` | JSON | Yes | | `skipDefaultPolicyTables` | String | Yes | | `entityTableId` | UUID | Yes | @@ -2974,13 +3011,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -4378,36 +4415,6 @@ const updated = await db.agentTask.update({ where: { id: '' }, data: { thr const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` - -CRUD operations for RoleType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); - -// Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); - -// Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); -``` - ### `db.identityProvider` CRUD operations for IdentityProvider records. @@ -4451,7 +4458,7 @@ CRUD operations for Ref records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | @@ -4459,13 +4466,13 @@ CRUD operations for Ref records. ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -4484,7 +4491,7 @@ CRUD operations for Store records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | @@ -4492,13 +4499,13 @@ CRUD operations for Store records. ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -4537,37 +4544,65 @@ const updated = await db.appPermissionDefault.update({ where: { id: '' }, const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.roleType` -CRUD operations for AppLimitCreditCode records. +CRUD operations for RoleType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); + +// Get one by id +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); + +// Create +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +``` + +### `db.migrateFile` + +CRUD operations for MigrateFile records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); // Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); // Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -4632,208 +4667,213 @@ const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, d const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCap` +### `db.devicesModule` -CRUD operations for AppLimitCap records. +CRUD operations for DevicesModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `userDevicesTableId` | UUID | Yes | +| `deviceSettingsTableId` | UUID | Yes | +| `userDevicesTable` | String | Yes | +| `deviceSettingsTable` | String | Yes | **Operations:** ```typescript -// List all appLimitCap records -const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); +// List all devicesModule records +const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); // Get one by id -const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); +const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); // Create -const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); +const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); +const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitCap` +### `db.appMembershipDefault` -CRUD operations for OrgLimitCap records. +CRUD operations for AppMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.orgMembershipDefault` -CRUD operations for MembershipType records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.migrateFile` +### `db.nodeTypeRegistry` -CRUD operations for MigrateFile records. +CRUD operations for NodeTypeRegistry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | **Operations:** ```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); +// List all nodeTypeRegistry records +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); -// Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); +// Get one by name +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); // Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); // Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); // Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` -### `db.devicesModule` +### `db.appLimitCap` -CRUD operations for DevicesModule records. +CRUD operations for AppLimitCap records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `userDevicesTableId` | UUID | Yes | -| `deviceSettingsTableId` | UUID | Yes | -| `userDevicesTable` | String | Yes | -| `deviceSettingsTable` | String | Yes | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `max` | BigInt | Yes | **Operations:** ```typescript -// List all devicesModule records -const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +// List all appLimitCap records +const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); // Get one by id -const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); // Create -const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.nodeTypeRegistry` +### `db.appLimitDefault` -CRUD operations for NodeTypeRegistry records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | No | -| `slug` | String | Yes | -| `category` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `parameterSchema` | JSON | Yes | -| `tags` | String | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all nodeTypeRegistry records -const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); -// Get one by name -const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); +// Get one by id +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.orgLimitCap` -CRUD operations for AppLimitDefault records. +CRUD operations for OrgLimitCap records. **Fields:** @@ -4841,26 +4881,26 @@ CRUD operations for AppLimitDefault records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | +| `entityId` | UUID | Yes | | `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); +// List all orgLimitCap records +const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); +const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitDefault` @@ -4895,73 +4935,106 @@ const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitWarning` +### `db.userConnectedAccount` -CRUD operations for AppLimitWarning records. +CRUD operations for UserConnectedAccount records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | +| `ownerId` | UUID | Yes | +| `service` | String | Yes | +| `identifier` | String | Yes | +| `details` | JSON | Yes | +| `isVerified` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +// List all userConnectedAccount records +const items = await db.userConnectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +const item = await db.userConnectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.userConnectedAccount` +### `db.appLimitCreditCode` -CRUD operations for UserConnectedAccount records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `service` | String | Yes | -| `identifier` | String | Yes | -| `details` | JSON | Yes | -| `isVerified` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all userConnectedAccount records -const items = await db.userConnectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.userConnectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitWarning` + +CRUD operations for AppLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -4974,7 +5047,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -4986,13 +5059,13 @@ CRUD operations for Commit records. ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); @@ -5109,79 +5182,43 @@ const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.membershipType` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.rlsSetting` -CRUD operations for OrgMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.rlsSetting` - -CRUD operations for RlsSetting records. +CRUD operations for RlsSetting records. **Fields:** @@ -5217,83 +5254,48 @@ const updated = await db.rlsSetting.update({ where: { id: '' }, data: { da const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` - -CRUD operations for AppLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` +### `db.rlsModule` -CRUD operations for OrgLimitEvent records. +CRUD operations for RlsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `authenticate` | String | Yes | +| `authenticateStrict` | String | Yes | +| `currentRole` | String | Yes | +| `currentRoleId` | String | Yes | **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all rlsModule records +const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.rlsModule` +### `db.inferenceLogModule` -CRUD operations for RlsModule records. +CRUD operations for InferenceLogModule records. **Fields:** @@ -5303,31 +5305,32 @@ CRUD operations for RlsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `authenticate` | String | Yes | -| `authenticateStrict` | String | Yes | -| `currentRole` | String | Yes | -| `currentRoleId` | String | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all rlsModule records -const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); +// List all inferenceLogModule records +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } }).execute(); // Get one by id -const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } }).execute(); // Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rateLimitMetersModule` @@ -5452,6 +5455,84 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.databaseSetting` CRUD operations for DatabaseSetting records. @@ -5494,6 +5575,48 @@ const updated = await db.databaseSetting.update({ where: { id: '' }, data: const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); ``` +### `db.orgMembershipSetting` + +CRUD operations for OrgMembershipSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | + +**Operations:** + +```typescript +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Get one by id +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Create +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +``` + ### `db.billingModule` CRUD operations for BillingModule records. @@ -5514,6 +5637,8 @@ CRUD operations for BillingModule records. | `ledgerTableName` | String | Yes | | `balancesTableId` | UUID | Yes | | `balancesTableName` | String | Yes | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | | `recordUsageFunction` | String | Yes | | `prefix` | String | Yes | @@ -5521,13 +5646,13 @@ CRUD operations for BillingModule records. ```typescript // List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -5536,45 +5661,48 @@ const updated = await db.billingModule.update({ where: { id: '' }, data: { const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` -### `db.astMigration` +### `db.appMembership` -CRUD operations for AstMigration records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | +| `id` | UUID | No | | `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | | `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +// List all appMembership records +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -5619,46 +5747,45 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -### `db.orgMembershipSetting` +### `db.astMigration` -CRUD operations for OrgMembershipSetting records. +CRUD operations for AstMigration records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all astMigration records +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.webauthnSetting` @@ -5707,50 +5834,6 @@ const updated = await db.webauthnSetting.update({ where: { id: '' }, data: const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembership` - -CRUD operations for AppMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); -``` - ### `db.billingProviderModule` CRUD operations for BillingProviderModule records. @@ -5936,12 +6019,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.resolveBlueprintField` @@ -6058,97 +6141,97 @@ orgPermissionsGetMaskByNames const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` -### `db.query.appPermissionsGetByMask` +### `db.query.getAllObjectsFromRoot` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` +### `db.query.getPathObjectsFromRoot` -Reads and enables pagination through a set of `OrgPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getAllObjectsFromRoot` +### `db.query.getObjectAtPath` -Reads and enables pagination through a set of `Object`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `sId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` -### `db.query.getPathObjectsFromRoot` +### `db.query.appPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getObjectAtPath` +### `db.query.orgPermissionsGetByMask` -getObjectAtPath +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.currentUser` @@ -6414,7 +6497,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -6429,7 +6512,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.constructBlueprint` @@ -6489,7 +6572,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.copyTemplateToBlueprint` @@ -6522,6 +6605,21 @@ Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row dec const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); ``` +### `db.mutation.signInCrossOrigin` + +signInCrossOrigin + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInCrossOriginInput (required) | + +```typescript +const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.bootstrapUser` bootstrapUser @@ -6537,6 +6635,36 @@ bootstrapUser const result = await db.mutation.bootstrapUser({ input: '' }).execute(); ``` +### `db.mutation.signUp` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` + +### `db.mutation.signIn` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` + ### `db.mutation.setFieldOrder` setFieldOrder @@ -6624,7 +6752,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -6639,7 +6767,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.provisionDatabaseWithUser` @@ -6732,21 +6860,6 @@ applyRls const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.signInCrossOrigin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - -```typescript -const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); -``` - ### `db.mutation.createUserDatabase` Creates a new user database with all required modules, permissions, and RLS policies. @@ -6808,94 +6921,64 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); -``` - -### `db.mutation.forgotPassword` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); -``` - -### `db.mutation.signUp` +### `db.mutation.requestCrossOriginToken` -signUp +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.requestCrossOriginToken` +### `db.mutation.provisionTable` -requestCrossOriginToken +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ProvisionTableInput (required) | ```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +const result = await db.mutation.provisionTable({ input: '' }).execute(); ``` -### `db.mutation.signIn` +### `db.mutation.sendVerificationEmail` -signIn +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.provisionTable` +### `db.mutation.forgotPassword` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-react/src/public/orm/index.ts b/sdk/constructive-react/src/public/orm/index.ts index a605cf0e2b..ce2ca28177 100644 --- a/sdk/constructive-react/src/public/orm/index.ts +++ b/sdk/constructive-react/src/public/orm/index.ts @@ -8,9 +8,9 @@ import type { OrmClientConfig } from './client'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { GetAllRecordModel } from './models/getAllRecord'; +import { ObjectModel } from './models/object'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; -import { ObjectModel } from './models/object'; import { DatabaseModel } from './models/database'; import { SchemaModel } from './models/schema'; import { TableModel } from './models/table'; @@ -35,6 +35,7 @@ import { RelationProvisionModel } from './models/relationProvision'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RealtimeModuleModel } from './models/realtimeModule'; +import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { EnumModel } from './models/enum'; @@ -59,7 +60,7 @@ import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; import { EmailsModuleModel } from './models/emailsModule'; -import { EncryptedSecretsModuleModel } from './models/encryptedSecretsModule'; +import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { InvitesModuleModel } from './models/invitesModule'; import { EventsModuleModel } from './models/eventsModule'; import { LimitsModuleModel } from './models/limitsModule'; @@ -113,44 +114,45 @@ import { AuditLogModel } from './models/auditLog'; import { AgentThreadModel } from './models/agentThread'; import { AgentMessageModel } from './models/agentMessage'; import { AgentTaskModel } from './models/agentTask'; -import { RoleTypeModel } from './models/roleType'; import { IdentityProviderModel } from './models/identityProvider'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { RoleTypeModel } from './models/roleType'; +import { MigrateFileModel } from './models/migrateFile'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; -import { AppLimitCapModel } from './models/appLimitCap'; -import { OrgLimitCapModel } from './models/orgLimitCap'; -import { MembershipTypeModel } from './models/membershipType'; -import { MigrateFileModel } from './models/migrateFile'; import { DevicesModuleModel } from './models/devicesModule'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { AppLimitCapModel } from './models/appLimitCap'; import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { OrgLimitCapModel } from './models/orgLimitCap'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { AppLimitWarningModel } from './models/appLimitWarning'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { AppLimitWarningModel } from './models/appLimitWarning'; import { CommitModel } from './models/commit'; import { PubkeySettingModel } from './models/pubkeySetting'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { RlsSettingModel } from './models/rlsSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { RlsModuleModel } from './models/rlsModule'; +import { InferenceLogModuleModel } from './models/inferenceLogModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { PlansModuleModel } from './models/plansModule'; import { SqlActionModel } from './models/sqlAction'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { DatabaseSettingModel } from './models/databaseSetting'; +import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { BillingModuleModel } from './models/billingModule'; -import { AstMigrationModel } from './models/astMigration'; +import { AppMembershipModel } from './models/appMembership'; import { UserModel } from './models/user'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; +import { AstMigrationModel } from './models/astMigration'; import { WebauthnSettingModel } from './models/webauthnSetting'; -import { AppMembershipModel } from './models/appMembership'; import { BillingProviderModuleModel } from './models/billingProviderModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; @@ -191,9 +193,9 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), + object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), - object: new ObjectModel(client), database: new DatabaseModel(client), schema: new SchemaModel(client), table: new TableModel(client), @@ -218,6 +220,7 @@ export function createClient(config: OrmClientConfig) { sessionSecretsModule: new SessionSecretsModuleModel(client), identityProvidersModule: new IdentityProvidersModuleModel(client), realtimeModule: new RealtimeModuleModel(client), + configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), enum: new EnumModel(client), @@ -242,7 +245,7 @@ export function createClient(config: OrmClientConfig) { defaultIdsModule: new DefaultIdsModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), emailsModule: new EmailsModuleModel(client), - encryptedSecretsModule: new EncryptedSecretsModuleModel(client), + configSecretsUserModule: new ConfigSecretsUserModuleModel(client), invitesModule: new InvitesModuleModel(client), eventsModule: new EventsModuleModel(client), limitsModule: new LimitsModuleModel(client), @@ -296,44 +299,45 @@ export function createClient(config: OrmClientConfig) { agentThread: new AgentThreadModel(client), agentMessage: new AgentMessageModel(client), agentTask: new AgentTaskModel(client), - roleType: new RoleTypeModel(client), identityProvider: new IdentityProviderModel(client), ref: new RefModel(client), store: new StoreModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), + roleType: new RoleTypeModel(client), + migrateFile: new MigrateFileModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), - appLimitCap: new AppLimitCapModel(client), - orgLimitCap: new OrgLimitCapModel(client), - membershipType: new MembershipTypeModel(client), - migrateFile: new MigrateFileModel(client), devicesModule: new DevicesModuleModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), + appLimitCap: new AppLimitCapModel(client), appLimitDefault: new AppLimitDefaultModel(client), + orgLimitCap: new OrgLimitCapModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - appLimitWarning: new AppLimitWarningModel(client), userConnectedAccount: new UserConnectedAccountModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), + appLimitWarning: new AppLimitWarningModel(client), commit: new CommitModel(client), pubkeySetting: new PubkeySettingModel(client), rateLimitsModule: new RateLimitsModuleModel(client), usageSnapshot: new UsageSnapshotModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), + membershipType: new MembershipTypeModel(client), rlsSetting: new RlsSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), rlsModule: new RlsModuleModel(client), + inferenceLogModule: new InferenceLogModuleModel(client), rateLimitMetersModule: new RateLimitMetersModuleModel(client), plansModule: new PlansModuleModel(client), sqlAction: new SqlActionModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), databaseSetting: new DatabaseSettingModel(client), + orgMembershipSetting: new OrgMembershipSettingModel(client), billingModule: new BillingModuleModel(client), - astMigration: new AstMigrationModel(client), + appMembership: new AppMembershipModel(client), user: new UserModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), + astMigration: new AstMigrationModel(client), webauthnSetting: new WebauthnSettingModel(client), - appMembership: new AppMembershipModel(client), billingProviderModule: new BillingProviderModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-react/src/public/orm/input-types.ts b/sdk/constructive-react/src/public/orm/input-types.ts index 8a39234a74..8a25843a56 100644 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -254,6 +254,16 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } +export interface Object { + hashUuid?: string | null; + id: string; + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; @@ -278,16 +288,6 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} export interface Database { id: string; ownerId?: string | null; @@ -786,6 +786,14 @@ export interface RealtimeModule { interval?: string | null; notifyChannel?: string | null; } +/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ +export interface ConfigSecretsOrgModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface SchemaGrant { id: string; databaseId?: string | null; @@ -944,6 +952,7 @@ export interface Partition { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; createdAt?: string | null; @@ -1103,7 +1112,7 @@ export interface EmailsModule { ownerTableId?: string | null; tableName?: string | null; } -export interface EncryptedSecretsModule { +export interface ConfigSecretsUserModule { id: string; databaseId?: string | null; schemaId?: string | null; @@ -1456,6 +1465,7 @@ export interface StorageModule { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -1580,36 +1590,34 @@ export interface EntityTypeProvision { */ hasInviteAchievements?: boolean | null; /** - * Optional jsonb object for storage module configuration and initial bucket seeding. - * Only used when has_storage = true; ignored otherwise. NULL = use defaults. - * Recognized keys (all optional): - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this scope - * - allowed_origins (text[]) default CORS origins for all buckets in this scope - * - buckets (jsonb[]) array of initial bucket definitions to seed - * Each bucket in the buckets array recognizes: - * - name (text, required) bucket name e.g. 'documents' - * - description (text) human-readable description - * - is_public (boolean) whether files are publicly readable (default false) - * - allowed_mime_types (text[]) whitelist of MIME types (null = any) - * - max_file_size (bigint) max file size in bytes (null = use scope default) - * - allowed_origins (text[]) per-bucket CORS override - * - provisions (jsonb object) optional: customize storage tables - * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets". - * Each value uses the same shape as table_provision: - * { nodes, fields, grants, use_rls, policies }. Fanned out - * to secure_table_provision targeting the corresponding table. - * When a key includes policies[], those REPLACE the default - * storage policies for that table; tables without a key still - * get defaults. Missing "data" on policy entries is auto-populated - * with storage-specific defaults (same as table_provision). - * Example: add SearchBm25 for full-text search on files: - * {"provisions": {"files": {"nodes": [{"$type": - * "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - * Example: - * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + * Optional JSON array of storage module definitions. Each element provisions a separate + * storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + * and feature flags. Only used when has_storage = true; ignored otherwise. + * NULL = provision a single default storage module with all defaults. + * Each array element recognizes (all optional): + * - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb */ storageConfig?: Record | null; /** @@ -2323,10 +2331,6 @@ export interface AgentTask { /** Current status of this record */ status?: string | null; } -export interface RoleType { - id: number; - name?: string | null; -} export interface IdentityProvider { slug?: string | null; kind?: string | null; @@ -2340,7 +2344,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -2350,8 +2354,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -2362,17 +2366,14 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { +export interface RoleType { + id: number; + name?: string | null; +} +export interface MigrateFile { id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; } /** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ export interface AppLimitCapsDefault { @@ -2390,46 +2391,6 @@ export interface OrgLimitCapsDefault { /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ max?: string | null; } -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; -} -export interface MigrateFile { - id: string; - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} export interface DevicesModule { id: string; databaseId?: string | null; @@ -2439,6 +2400,30 @@ export interface DevicesModule { userDevicesTable?: string | null; deviceSettingsTable?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} export interface NodeTypeRegistry { name?: string | null; slug?: string | null; @@ -2448,6 +2433,16 @@ export interface NodeTypeRegistry { parameterSchema?: Record | null; tags?: string[] | null; } +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface AppLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { id: string; @@ -2458,6 +2453,16 @@ export interface AppLimitDefault { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string | null; } +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface OrgLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface OrgLimitDefault { id: string; @@ -2468,6 +2473,28 @@ export interface OrgLimitDefault { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string | null; } +export interface UserConnectedAccount { + id: string; + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { + id: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; +} /** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ export interface AppLimitWarning { id: string; @@ -2480,24 +2507,14 @@ export interface AppLimitWarning { /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier?: string | null; } -export interface UserConnectedAccount { - id: string; - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} /** A commit records changes to the repository. */ export interface Commit { /** The primary unique identifier for the commit. */ id: string; /** The commit message */ message?: string | null; - /** The repository identifier */ - databaseId?: string | null; + /** The scope identifier */ + scopeId?: string | null; storeId?: string | null; /** Parent commits */ parentIds?: string[] | null; @@ -2555,29 +2572,20 @@ export interface UsageSnapshot { capturedAt?: string | null; id: string; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; } /** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ export interface RlsSetting { @@ -2602,8 +2610,82 @@ export interface RlsSetting { /** Reference to the current_ip_address function (FK to metaschema_public.function) */ currentIpAddressFunctionId?: string | null; } +export interface RlsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; +} +export interface InferenceLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + prefix?: string | null; +} +export interface RateLimitMetersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; +} +export interface PlansModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + planPricingTableId?: string | null; + planOverridesTableId?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; + prefix?: string | null; +} +export interface SqlAction { + id: number; + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} /** Append-only log of limit events for historical reporting and audit */ export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -2625,6 +2707,9 @@ export interface AppLimitEvent { } /** Append-only log of limit events for historical reporting and audit */ export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -2644,63 +2729,6 @@ export interface OrgLimitEvent { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string | null; } -export interface RlsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - sessionCredentialsTableId?: string | null; - sessionsTableId?: string | null; - usersTableId?: string | null; - authenticate?: string | null; - authenticateStrict?: string | null; - currentRole?: string | null; - currentRoleId?: string | null; -} -export interface RateLimitMetersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; -} -export interface PlansModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - prefix?: string | null; -} -export interface SqlAction { - id: number; - name?: string | null; - databaseId?: string | null; - deploy?: string | null; - deps?: string[] | null; - payload?: Record | null; - content?: string | null; - revert?: string | null; - verify?: string | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} /** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ export interface DatabaseSetting { /** Unique identifier for this settings record */ @@ -2732,6 +2760,32 @@ export interface DatabaseSetting { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record | null; } +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; +} export interface BillingModule { id: string; databaseId?: string | null; @@ -2745,23 +2799,39 @@ export interface BillingModule { ledgerTableName?: string | null; balancesTableId?: string | null; balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; recordUsageFunction?: string | null; prefix?: string | null; } -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { + id: string; createdAt?: string | null; - action?: string | null; - actionId?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + profileId?: string | null; } export interface User { id: string; @@ -2779,31 +2849,20 @@ export interface User { /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { - id: string; +export interface AstMigration { + id: number; + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ - entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; } /** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ export interface WebauthnSetting { @@ -2844,35 +2903,6 @@ export interface WebauthnSetting { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; -} export interface BillingProviderModule { id: string; databaseId?: string | null; @@ -2933,9 +2963,9 @@ export interface PageInfo { export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} +export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} -export interface ObjectRelations {} export interface DatabaseRelations { owner?: User | null; databaseSetting?: DatabaseSetting | null; @@ -2950,6 +2980,7 @@ export interface DatabaseRelations { billingModule?: BillingModule | null; billingProviderModule?: BillingProviderModule | null; rateLimitMetersModule?: RateLimitMetersModule | null; + inferenceLogModule?: InferenceLogModule | null; schemas?: ConnectionResult; tables?: ConnectionResult
; checkConstraints?: ConnectionResult; @@ -2991,7 +3022,7 @@ export interface DatabaseRelations { defaultIdsModules?: ConnectionResult; denormalizedTableFields?: ConnectionResult; emailsModules?: ConnectionResult; - encryptedSecretsModules?: ConnectionResult; + configSecretsUserModules?: ConnectionResult; invitesModules?: ConnectionResult; eventsModules?: ConnectionResult; limitsModules?: ConnectionResult; @@ -3016,6 +3047,7 @@ export interface DatabaseRelations { identityProvidersModules?: ConnectionResult; notificationsModules?: ConnectionResult; realtimeModules?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -3033,6 +3065,7 @@ export interface SchemaRelations { realtimeModulesByPrivateSchemaId?: ConnectionResult; realtimeModules?: ConnectionResult; realtimeModulesBySubscriptionsSchemaId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface TableRelations { database?: Database | null; @@ -3064,6 +3097,7 @@ export interface TableRelations { realtimeModulesByChangeLogTableId?: ConnectionResult; realtimeModulesByListenerNodeTableId?: ConnectionResult; realtimeModulesBySourceRegistryTableId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface CheckConstraintRelations { database?: Database | null; @@ -3173,6 +3207,11 @@ export interface RealtimeModuleRelations { sourceRegistryTable?: Table | null; subscriptionsSchema?: Schema | null; } +export interface ConfigSecretsOrgModuleRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} export interface SchemaGrantRelations { database?: Database | null; schema?: Schema | null; @@ -3293,7 +3332,7 @@ export interface EmailsModuleRelations { schema?: Schema | null; table?: Table | null; } -export interface EncryptedSecretsModuleRelations { +export interface ConfigSecretsUserModuleRelations { database?: Database | null; schema?: Schema | null; table?: Table | null; @@ -3613,37 +3652,40 @@ export interface AgentTaskRelations { owner?: User | null; thread?: AgentThread | null; } -export interface RoleTypeRelations {} export interface IdentityProviderRelations {} export interface RefRelations {} export interface StoreRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} +export interface RoleTypeRelations {} +export interface MigrateFileRelations {} export interface AppLimitCapsDefaultRelations {} export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface MembershipTypeRelations {} -export interface MigrateFileRelations {} export interface DevicesModuleRelations { database?: Database | null; deviceSettingsTableByDeviceSettingsTableId?: Table | null; schema?: Schema | null; userDevicesTableByUserDevicesTableId?: Table | null; } +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations { + entity?: User | null; +} export interface NodeTypeRegistryRelations {} +export interface AppLimitCapRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; } +export interface OrgLimitCapRelations {} export interface OrgLimitDefaultRelations { orgLimitCreditsByDefaultLimitId?: ConnectionResult; } -export interface AppLimitWarningRelations {} export interface UserConnectedAccountRelations {} +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} +export interface AppLimitWarningRelations {} export interface CommitRelations {} export interface PubkeySettingRelations { database?: Database | null; @@ -3661,10 +3703,7 @@ export interface RateLimitsModuleRelations { schema?: Schema | null; } export interface UsageSnapshotRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} +export interface MembershipTypeRelations {} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -3676,8 +3715,6 @@ export interface RlsSettingRelations { database?: Database | null; roleSchema?: Schema | null; } -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface RlsModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3686,6 +3723,13 @@ export interface RlsModuleRelations { sessionsTable?: Table | null; usersTable?: Table | null; } +export interface InferenceLogModuleRelations { + database?: Database | null; + inferenceLogTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usageDailyTable?: Table | null; +} export interface RateLimitMetersModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3704,19 +3748,27 @@ export interface PlansModuleRelations { schema?: Schema | null; } export interface SqlActionRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface DatabaseSettingRelations { database?: Database | null; } +export interface OrgMembershipSettingRelations { + entity?: User | null; +} export interface BillingModuleRelations { balancesTable?: Table | null; database?: Database | null; ledgerTable?: Table | null; + meterCreditsTable?: Table | null; metersTable?: Table | null; planSubscriptionsTable?: Table | null; privateSchema?: Schema | null; schema?: Schema | null; } -export interface AstMigrationRelations {} +export interface AppMembershipRelations { + actor?: User | null; +} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -3779,9 +3831,7 @@ export interface UserRelations { ownedAgentMessages?: ConnectionResult; ownedAgentTasks?: ConnectionResult; } -export interface OrgMembershipSettingRelations { - entity?: User | null; -} +export interface AstMigrationRelations {} export interface WebauthnSettingRelations { credentialsSchema?: Schema | null; credentialsTable?: Table | null; @@ -3794,9 +3844,6 @@ export interface WebauthnSettingRelations { sessionsTable?: Table | null; userField?: Field | null; } -export interface AppMembershipRelations { - actor?: User | null; -} export interface BillingProviderModuleRelations { billingCustomersTable?: Table | null; billingPricesTable?: Table | null; @@ -3826,9 +3873,9 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; +export type ObjectWithRelations = Object & ObjectRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type ObjectWithRelations = Object & ObjectRelations; export type DatabaseWithRelations = Database & DatabaseRelations; export type SchemaWithRelations = Schema & SchemaRelations; export type TableWithRelations = Table & TableRelations; @@ -3858,6 +3905,8 @@ export type SessionSecretsModuleWithRelations = SessionSecretsModule & export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & IdentityProvidersModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & + ConfigSecretsOrgModuleRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type EnumWithRelations = Enum & EnumRelations; @@ -3885,8 +3934,8 @@ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleR export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; -export type EncryptedSecretsModuleWithRelations = EncryptedSecretsModule & - EncryptedSecretsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; @@ -3947,50 +3996,51 @@ export type AuditLogWithRelations = AuditLog & AuditLogRelations; export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; -export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; -export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; -export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; +export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & UserConnectedAccountRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; export type CommitWithRelations = Commit & CommitRelations; export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; +export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type UserWithRelations = User & UserRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type UserWithRelations = User & UserRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; @@ -4007,6 +4057,16 @@ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -4021,16 +4081,6 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type DatabaseSelect = { id?: boolean; ownerId?: boolean; @@ -4079,6 +4129,9 @@ export type DatabaseSelect = { rateLimitMetersModule?: { select: RateLimitMetersModuleSelect; }; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; schemas?: { select: SchemaSelect; first?: number; @@ -4325,11 +4378,11 @@ export type DatabaseSelect = { filter?: EmailsModuleFilter; orderBy?: EmailsModuleOrderBy[]; }; - encryptedSecretsModules?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModules?: { + select: ConfigSecretsUserModuleSelect; first?: number; - filter?: EncryptedSecretsModuleFilter; - orderBy?: EncryptedSecretsModuleOrderBy[]; + filter?: ConfigSecretsUserModuleFilter; + orderBy?: ConfigSecretsUserModuleOrderBy[]; }; invitesModules?: { select: InvitesModuleSelect; @@ -4475,6 +4528,12 @@ export type DatabaseSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; databaseProvisionModules?: { select: DatabaseProvisionModuleSelect; first?: number; @@ -4578,6 +4637,12 @@ export type SchemaSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type TableSelect = { id?: boolean; @@ -4765,6 +4830,12 @@ export type TableSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type CheckConstraintSelect = { id?: boolean; @@ -5299,6 +5370,22 @@ export type RealtimeModuleSelect = { select: SchemaSelect; }; }; +export type ConfigSecretsOrgModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; export type SchemaGrantSelect = { id?: boolean; databaseId?: boolean; @@ -5494,6 +5581,7 @@ export type PartitionSelect = { partitionKeyId?: boolean; interval?: boolean; retention?: boolean; + retentionKeepTable?: boolean; premake?: boolean; namingPattern?: boolean; createdAt?: boolean; @@ -5771,7 +5859,7 @@ export type EmailsModuleSelect = { select: TableSelect; }; }; -export type EncryptedSecretsModuleSelect = { +export type ConfigSecretsUserModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; @@ -6423,6 +6511,7 @@ export type StorageModuleSelect = { bucketsTableName?: boolean; filesTableName?: boolean; membershipType?: boolean; + storageKey?: boolean; policies?: boolean; skipDefaultPolicyTables?: boolean; entityTableId?: boolean; @@ -7181,10 +7270,6 @@ export type AgentTaskSelect = { select: AgentThreadSelect; }; }; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; export type IdentityProviderSelect = { slug?: boolean; kind?: boolean; @@ -7195,14 +7280,14 @@ export type IdentityProviderSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; @@ -7210,60 +7295,25 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitCapsDefaultSelect = { +export type RoleTypeSelect = { id?: boolean; name?: boolean; - max?: boolean; }; -export type OrgLimitCapsDefaultSelect = { +export type MigrateFileSelect = { id?: boolean; - name?: boolean; - max?: boolean; + databaseId?: boolean; + upload?: boolean; }; -export type AppLimitCapSelect = { +export type AppLimitCapsDefaultSelect = { id?: boolean; name?: boolean; - entityId?: boolean; max?: boolean; }; -export type OrgLimitCapSelect = { +export type OrgLimitCapsDefaultSelect = { id?: boolean; name?: boolean; - entityId?: boolean; max?: boolean; }; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; -}; -export type MigrateFileSelect = { - id?: boolean; - databaseId?: boolean; - upload?: boolean; -}; export type DevicesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7285,6 +7335,27 @@ export type DevicesModuleSelect = { select: TableSelect; }; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; export type NodeTypeRegistrySelect = { name?: boolean; slug?: boolean; @@ -7294,6 +7365,12 @@ export type NodeTypeRegistrySelect = { parameterSchema?: boolean; tags?: boolean; }; +export type AppLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -7312,6 +7389,12 @@ export type AppLimitDefaultSelect = { orderBy?: AppLimitCreditCodeItemOrderBy[]; }; }; +export type OrgLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; export type OrgLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -7324,13 +7407,6 @@ export type OrgLimitDefaultSelect = { orderBy?: OrgLimitCreditOrderBy[]; }; }; -export type AppLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; -}; export type UserConnectedAccountSelect = { id?: boolean; ownerId?: boolean; @@ -7341,10 +7417,36 @@ export type UserConnectedAccountSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLimitCreditCodeSelect = { + id?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; +}; +export type AppLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; +}; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -7415,26 +7517,13 @@ export type UsageSnapshotSelect = { capturedAt?: boolean; id?: boolean; }; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { +export type MembershipTypeSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; export type RlsSettingSelect = { id?: boolean; @@ -7475,28 +7564,6 @@ export type RlsSettingSelect = { select: SchemaSelect; }; }; -export type AppLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7528,6 +7595,35 @@ export type RlsModuleSelect = { select: TableSelect; }; }; +export type InferenceLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + inferenceLogTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; export type RateLimitMetersModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7611,6 +7707,32 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; +export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; export type DatabaseSettingSelect = { id?: boolean; databaseId?: boolean; @@ -7630,6 +7752,25 @@ export type DatabaseSettingSelect = { select: DatabaseSelect; }; }; +export type OrgMembershipSettingSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; + entity?: { + select: UserSelect; + }; +}; export type BillingModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7643,6 +7784,8 @@ export type BillingModuleSelect = { ledgerTableName?: boolean; balancesTableId?: boolean; balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; recordUsageFunction?: boolean; prefix?: boolean; balancesTable?: { @@ -7654,6 +7797,9 @@ export type BillingModuleSelect = { ledgerTable?: { select: TableSelect; }; + meterCreditsTable?: { + select: TableSelect; + }; metersTable?: { select: TableSelect; }; @@ -7667,20 +7813,26 @@ export type BillingModuleSelect = { select: SchemaSelect; }; }; -export type AstMigrationSelect = { +export type AppMembershipSelect = { id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; createdAt?: boolean; - action?: boolean; - actionId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; actorId?: boolean; + profileId?: boolean; + actor?: { + select: UserSelect; + }; }; export type UserSelect = { id?: boolean; @@ -8043,24 +8195,20 @@ export type UserSelect = { orderBy?: AgentTaskOrderBy[]; }; }; -export type OrgMembershipSettingSelect = { +export type AstMigrationSelect = { id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; - entity?: { - select: UserSelect; - }; + action?: boolean; + actionId?: boolean; + actorId?: boolean; }; export type WebauthnSettingSelect = { id?: boolean; @@ -8112,27 +8260,6 @@ export type WebauthnSettingSelect = { select: FieldSelect; }; }; -export type AppMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; - }; -}; export type BillingProviderModuleSelect = { id?: boolean; databaseId?: boolean; @@ -8256,6 +8383,28 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8292,28 +8441,6 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface DatabaseFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8521,10 +8648,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -8653,6 +8780,14 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModule` relation. */ + inferenceLogModule?: InferenceLogModuleFilter; + /** A related `inferenceLogModule` exists. */ + inferenceLogModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -8747,6 +8882,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface TableFilter { /** Filter by the object’s `id` field. */ @@ -8913,6 +9052,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface CheckConstraintFilter { /** Filter by the object’s `id` field. */ @@ -9788,6 +9931,30 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +export interface ConfigSecretsOrgModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} export interface SchemaGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10127,6 +10294,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -10514,7 +10683,7 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -export interface EncryptedSecretsModuleFilter { +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -10526,11 +10695,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -11461,6 +11630,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -12772,18 +12943,6 @@ export interface AgentTaskFilter { /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; } -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} export interface IdentityProviderFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; @@ -12807,8 +12966,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -12825,8 +12984,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -12850,31 +13009,31 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { +export interface RoleTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RoleTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: RoleTypeFilter[]; + /** Negates the expression. */ + not?: RoleTypeFilter; +} +export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; + and?: MigrateFileFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; + or?: MigrateFileFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; + not?: MigrateFileFilter; } export interface AppLimitCapsDefaultFilter { /** Filter by the object’s `id` field. */ @@ -12904,72 +13063,6 @@ export interface OrgLimitCapsDefaultFilter { /** Negates the expression. */ not?: OrgLimitCapsDefaultFilter; } -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -export interface MigrateFileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `upload` field. */ - upload?: ConstructiveInternalTypeUploadFilter; - /** Checks for all expressions in this list. */ - and?: MigrateFileFilter[]; - /** Checks for any expressions in this list. */ - or?: MigrateFileFilter[]; - /** Negates the expression. */ - not?: MigrateFileFilter; -} export interface DevicesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13000,6 +13093,52 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface NodeTypeRegistryFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; @@ -13022,6 +13161,22 @@ export interface NodeTypeRegistryFilter { /** Negates the expression. */ not?: NodeTypeRegistryFilter; } +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13046,6 +13201,22 @@ export interface AppLimitDefaultFilter { /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; } +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13066,24 +13237,6 @@ export interface OrgLimitDefaultFilter { /** `orgLimitCreditsByDefaultLimitId` exist. */ orgLimitCreditsByDefaultLimitIdExist?: boolean; } -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} export interface UserConnectedAccountFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13108,13 +13261,57 @@ export interface UserConnectedAccountFilter { /** Negates the expression. */ not?: UserConnectedAccountFilter; } +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} +export interface AppLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitWarningFilter[]; + /** Negates the expression. */ + not?: AppLimitWarningFilter; +} export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `message` field. */ message?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -13238,51 +13435,25 @@ export interface UsageSnapshotFilter { /** Negates the expression. */ not?: UsageSnapshotFilter; } -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -export interface OrgMembershipDefaultFilter { +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: MembershipTypeFilter; } export interface RlsSettingFilter { /** Filter by the object’s `id` field. */ @@ -13346,58 +13517,6 @@ export interface RlsSettingFilter { /** A related `roleSchema` exists. */ roleSchemaExists?: boolean; } -export interface AppLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13440,6 +13559,48 @@ export interface RlsModuleFilter { /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; } +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} export interface RateLimitMetersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13572,6 +13733,66 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } +export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} export interface DatabaseSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13610,6 +13831,44 @@ export interface DatabaseSettingFilter { /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; } +export interface OrgMembershipSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipSettingFilter[]; + /** Negates the expression. */ + not?: OrgMembershipSettingFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13635,6 +13894,10 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -13651,6 +13914,8 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -13660,39 +13925,47 @@ export interface BillingModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } -export interface AstMigrationFilter { +export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; + id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; + and?: AppMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; + or?: AppMembershipFilter[]; /** Negates the expression. */ - not?: AstMigrationFilter; + not?: AppMembershipFilter; + /** Filter by the object’s `actor` relation. */ + actor?: UserFilter; } export interface UserFilter { /** Filter by the object’s `id` field. */ @@ -13967,43 +14240,39 @@ export interface UserFilter { */ unifiedSearch?: string; } -export interface OrgMembershipSettingFilter { +export interface AstMigrationFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: AstMigrationFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: AstMigrationFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: AstMigrationFilter; } export interface WebauthnSettingFilter { /** Filter by the object’s `id` field. */ @@ -14087,48 +14356,6 @@ export interface WebauthnSettingFilter { /** A related `userField` exists. */ userFieldExists?: boolean; } -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -14294,6 +14521,24 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14322,24 +14567,6 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; export type DatabaseOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15082,6 +15309,20 @@ export type RealtimeModuleOrderBy = | 'INTERVAL_DESC' | 'NOTIFY_CHANNEL_ASC' | 'NOTIFY_CHANNEL_DESC'; +export type ConfigSecretsOrgModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; export type SchemaGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15318,6 +15559,8 @@ export type PartitionOrderBy = | 'INTERVAL_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' | 'PREMAKE_ASC' | 'PREMAKE_DESC' | 'NAMING_PATTERN_ASC' @@ -15546,7 +15789,7 @@ export type EmailsModuleOrderBy = | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type EncryptedSecretsModuleOrderBy = +export type ConfigSecretsUserModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -16162,6 +16405,8 @@ export type StorageModuleOrderBy = | 'FILES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'SKIP_DEFAULT_POLICY_TABLES_ASC' @@ -17064,14 +17309,6 @@ export type AgentTaskOrderBy = | 'OWNER_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC'; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -17092,8 +17329,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -17106,8 +17343,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -17120,41 +17357,23 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitCapsDefaultOrderBy = +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = + | 'NAME_DESC'; +export type MigrateFileOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +export type AppLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17162,11 +17381,9 @@ export type AppLimitCapOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type OrgLimitCapOrderBy = +export type OrgLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17174,34 +17391,8 @@ export type OrgLimitCapOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; -export type MigrateFileOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'UPLOAD_ASC' - | 'UPLOAD_DESC'; export type DevicesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17220,6 +17411,42 @@ export type DevicesModuleOrderBy = | 'USER_DEVICES_TABLE_DESC' | 'DEVICE_SETTINGS_TABLE_ASC' | 'DEVICE_SETTINGS_TABLE_DESC'; +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type NodeTypeRegistryOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17238,6 +17465,18 @@ export type NodeTypeRegistryOrderBy = | 'PARAMETER_SCHEMA_DESC' | 'TAGS_ASC' | 'TAGS_DESC'; +export type AppLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17250,7 +17489,7 @@ export type AppLimitDefaultOrderBy = | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = +export type OrgLimitCapOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17258,11 +17497,11 @@ export type OrgLimitDefaultOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type AppLimitWarningOrderBy = + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17270,12 +17509,10 @@ export type AppLimitWarningOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; export type UserConnectedAccountOrderBy = | 'NATURAL' | 'ID_ASC' @@ -17294,6 +17531,34 @@ export type UserConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17302,8 +17567,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -17376,42 +17641,22 @@ export type UsageSnapshotOrderBy = | 'CAPTURED_AT_DESC' | 'ID_ASC' | 'ID_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type RlsSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17436,46 +17681,6 @@ export type RlsSettingOrderBy = | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17502,6 +17707,34 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type RateLimitMetersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17588,6 +17821,58 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; export type DatabaseSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17620,6 +17905,38 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; +export type OrgMembershipSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17648,38 +17965,50 @@ export type BillingModuleOrderBy = | 'BALANCES_TABLE_ID_DESC' | 'BALANCES_TABLE_NAME_ASC' | 'BALANCES_TABLE_NAME_DESC' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' | 'RECORD_USAGE_FUNCTION_ASC' | 'RECORD_USAGE_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC'; -export type AstMigrationOrderBy = +export type AppMembershipOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17706,38 +18035,34 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -export type OrgMembershipSettingOrderBy = +export type AstMigrationOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type WebauthnSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17778,42 +18103,6 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; export type BillingProviderModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17963,6 +18252,32 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } +export interface CreateObjectInput { + clientMutationId?: string; + object: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; + }; +} +export interface ObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} export interface CreateAppPermissionInput { clientMutationId?: string; appPermission: { @@ -18011,32 +18326,6 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateDatabaseInput { clientMutationId?: string; database: { @@ -18959,6 +19248,30 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + configSecretsOrgModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface ConfigSecretsOrgModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateSchemaGrantInput { clientMutationId?: string; schemaGrant: { @@ -19305,6 +19618,7 @@ export interface CreatePartitionInput { partitionKeyId: string; interval?: string; retention?: string; + retentionKeepTable?: boolean; premake?: number; namingPattern?: string; }; @@ -19316,6 +19630,7 @@ export interface PartitionPatch { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; } @@ -19653,27 +19968,27 @@ export interface DeleteEmailsModuleInput { clientMutationId?: string; id: string; } -export interface CreateEncryptedSecretsModuleInput { +export interface CreateConfigSecretsUserModuleInput { clientMutationId?: string; - encryptedSecretsModule: { + configSecretsUserModule: { databaseId: string; schemaId?: string; tableId?: string; tableName?: string; }; } -export interface EncryptedSecretsModulePatch { +export interface ConfigSecretsUserModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; } -export interface UpdateEncryptedSecretsModuleInput { +export interface UpdateConfigSecretsUserModuleInput { clientMutationId?: string; id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; } -export interface DeleteEncryptedSecretsModuleInput { +export interface DeleteConfigSecretsUserModuleInput { clientMutationId?: string; id: string; } @@ -20406,6 +20721,7 @@ export interface CreateStorageModuleInput { bucketsTableName?: string; filesTableName?: string; membershipType?: number; + storageKey?: string; policies?: Record; skipDefaultPolicyTables?: string[]; entityTableId?: string; @@ -20441,6 +20757,7 @@ export interface StorageModulePatch { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -21612,24 +21929,6 @@ export interface DeleteAgentTaskInput { clientMutationId?: string; id: string; } -export interface CreateRoleTypeInput { - clientMutationId?: string; - roleType: { - name: string; - }; -} -export interface RoleTypePatch { - name?: string | null; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - roleTypePatch: RoleTypePatch; -} -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateIdentityProviderInput { clientMutationId?: string; identityProvider: { @@ -21660,14 +21959,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -21684,13 +21983,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -21720,27 +22019,41 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + roleType: { + name: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface RoleTypePatch { + name?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + migrateFile: { + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface MigrateFilePatch { + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface UpdateMigrateFileInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + migrateFilePatch: MigrateFilePatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteMigrateFileInput { clientMutationId?: string; id: string; } @@ -21784,121 +22097,79 @@ export interface DeleteOrgLimitCapsDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCapInput { - clientMutationId?: string; - appLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface AppLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateAppLimitCapInput { - clientMutationId?: string; - id: string; - appLimitCapPatch: AppLimitCapPatch; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapInput { +export interface CreateDevicesModuleInput { clientMutationId?: string; - orgLimitCap: { - name: string; - entityId: string; - max?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; }; } -export interface OrgLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; } -export interface UpdateOrgLimitCapInput { +export interface UpdateDevicesModuleInput { clientMutationId?: string; id: string; - orgLimitCapPatch: OrgLimitCapPatch; + devicesModulePatch: DevicesModulePatch; } -export interface DeleteOrgLimitCapInput { +export interface DeleteDevicesModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateMigrateFileInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - migrateFile: { - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; }; } -export interface MigrateFilePatch { - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; } -export interface UpdateMigrateFileInput { +export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; id: string; - migrateFilePatch: MigrateFilePatch; + appMembershipDefaultPatch: AppMembershipDefaultPatch; } -export interface DeleteMigrateFileInput { +export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateDevicesModuleInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; }; } -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; } -export interface UpdateDevicesModuleInput { +export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; id: string; - devicesModulePatch: DevicesModulePatch; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; } -export interface DeleteDevicesModuleInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } @@ -21932,6 +22203,28 @@ export interface DeleteNodeTypeRegistryInput { clientMutationId?: string; name: string; } +export interface CreateAppLimitCapInput { + clientMutationId?: string; + appLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface AppLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateAppLimitCapInput { + clientMutationId?: string; + id: string; + appLimitCapPatch: AppLimitCapPatch; +} +export interface DeleteAppLimitCapInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -21954,6 +22247,28 @@ export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } +export interface CreateOrgLimitCapInput { + clientMutationId?: string; + orgLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface OrgLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateOrgLimitCapInput { + clientMutationId?: string; + id: string; + orgLimitCapPatch: OrgLimitCapPatch; +} +export interface DeleteOrgLimitCapInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgLimitDefaultInput { clientMutationId?: string; orgLimitDefault: { @@ -21976,30 +22291,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - appLimitWarningPatch: AppLimitWarningPatch; -} -export interface DeleteAppLimitWarningInput { - clientMutationId?: string; - id: string; -} export interface CreateUserConnectedAccountInput { clientMutationId?: string; userConnectedAccount: { @@ -22026,11 +22317,59 @@ export interface DeleteUserConnectedAccountInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; + }; +} +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitWarningInput { + clientMutationId?: string; + appLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + }; +} +export interface AppLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; +} +export interface UpdateAppLimitWarningInput { + clientMutationId?: string; + id: string; + appLimitWarningPatch: AppLimitWarningPatch; +} +export interface DeleteAppLimitWarningInput { + clientMutationId?: string; + id: string; +} export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -22041,7 +22380,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -22148,53 +22487,31 @@ export interface DeleteUsageSnapshotInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateRlsSettingInput { clientMutationId?: string; @@ -22230,74 +22547,6 @@ export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} export interface CreateRlsModuleInput { clientMutationId?: string; rlsModule: { @@ -22334,6 +22583,44 @@ export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + prefix?: string; + }; +} +export interface InferenceLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + prefix?: string | null; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateRateLimitMetersModuleInput { clientMutationId?: string; rateLimitMetersModule: { @@ -22450,6 +22737,74 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseSettingInput { clientMutationId?: string; databaseSetting: { @@ -22492,6 +22847,44 @@ export interface DeleteDatabaseSettingInput { clientMutationId?: string; id: string; } +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; + }; +} +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateBillingModuleInput { clientMutationId?: string; billingModule: { @@ -22506,6 +22899,8 @@ export interface CreateBillingModuleInput { ledgerTableName?: string; balancesTableId?: string; balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; recordUsageFunction?: string; prefix?: string; }; @@ -22522,6 +22917,8 @@ export interface BillingModulePatch { ledgerTableName?: string | null; balancesTableId?: string | null; balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; recordUsageFunction?: string | null; prefix?: string | null; } @@ -22534,43 +22931,47 @@ export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - astMigration: { - databaseId?: string; - name?: string; - requires?: string[]; - payload?: Record; - deploys?: string; - deploy?: Record; - revert?: Record; - verify?: Record; - action?: string; - actionId?: string; - actorId?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface AstMigrationPatch { - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - action?: string | null; - actionId?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; actorId?: string | null; + profileId?: string | null; } -export interface UpdateAstMigrationInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; - id: number; - astMigrationPatch: AstMigrationPatch; + id: string; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteAstMigrationInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; - id: number; + id: string; } export interface CreateUserInput { clientMutationId?: string; @@ -22597,43 +22998,43 @@ export interface DeleteUserInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateAstMigrationInput { clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; + astMigration: { + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + action?: string; + actionId?: string; + actorId?: string; }; } -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; +export interface AstMigrationPatch { + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateAstMigrationInput { clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + id: number; + astMigrationPatch: AstMigrationPatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteAstMigrationInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateWebauthnSettingInput { clientMutationId?: string; @@ -22685,48 +23086,6 @@ export interface DeleteWebauthnSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; - }; -} -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - appMembershipPatch: AppMembershipPatch; -} -export interface DeleteAppMembershipInput { - clientMutationId?: string; - id: string; -} export interface CreateBillingProviderModuleInput { clientMutationId?: string; billingProviderModule: { @@ -22877,7 +23236,7 @@ export const connectionFieldsMap = { defaultIdsModules: 'DefaultIdsModule', denormalizedTableFields: 'DenormalizedTableField', emailsModules: 'EmailsModule', - encryptedSecretsModules: 'EncryptedSecretsModule', + configSecretsUserModules: 'ConfigSecretsUserModule', invitesModules: 'InvitesModule', eventsModules: 'EventsModule', limitsModules: 'LimitsModule', @@ -22902,6 +23261,7 @@ export const connectionFieldsMap = { identityProvidersModules: 'IdentityProvidersModule', notificationsModules: 'NotificationsModule', realtimeModules: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { @@ -22918,6 +23278,7 @@ export const connectionFieldsMap = { realtimeModulesByPrivateSchemaId: 'RealtimeModule', realtimeModules: 'RealtimeModule', realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Table: { checkConstraints: 'CheckConstraint', @@ -22945,6 +23306,7 @@ export const connectionFieldsMap = { realtimeModulesByChangeLogTableId: 'RealtimeModule', realtimeModulesByListenerNodeTableId: 'RealtimeModule', realtimeModulesBySourceRegistryTableId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Field: { spatialRelations: 'SpatialRelation', @@ -22978,10 +23340,6 @@ export const connectionFieldsMap = { agentMessagesByThreadId: 'AgentMessage', agentTasksByThreadId: 'AgentTask', }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -22989,6 +23347,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, User: { ownedDatabases: 'Database', appAdminGrantsByActorId: 'AppAdminGrant', @@ -23116,12 +23478,12 @@ export interface VerifyEmailInput { } export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface ConstructBlueprintInput { @@ -23142,7 +23504,7 @@ export interface ResetPasswordInput { } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } @@ -23165,6 +23527,11 @@ export interface ProvisionSpatialRelationInput { pOperator?: string; pParamName?: string; } +export interface SignInCrossOriginInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} export interface BootstrapUserInput { clientMutationId?: string; targetDatabaseId?: string; @@ -23175,6 +23542,24 @@ export interface BootstrapUserInput { displayName?: string; returnApiKey?: boolean; } +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -23205,14 +23590,14 @@ export interface ProvisionIndexInput { } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23228,7 +23613,7 @@ export interface ProvisionDatabaseWithUserInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23237,7 +23622,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23246,7 +23631,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23286,11 +23671,6 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} export interface CreateUserDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -23312,23 +23692,6 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -23336,15 +23699,6 @@ export interface RequestCrossOriginTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface ProvisionTableInput { clientMutationId?: string; databaseId?: string; @@ -23361,6 +23715,14 @@ export interface ProvisionTableInput { uniqueConstraints?: Record; description?: string; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -23739,14 +24101,14 @@ export interface DatabaseToManyEmailsModuleFilter { /** Filters to entities where no related entity matches. */ none?: EmailsModuleFilter; } -/** A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEncryptedSecretsModuleFilter { +/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsUserModuleFilter { /** Filters to entities where at least one related entity matches. */ - some?: EncryptedSecretsModuleFilter; + some?: ConfigSecretsUserModuleFilter; /** Filters to entities where every related entity matches. */ - every?: EncryptedSecretsModuleFilter; + every?: ConfigSecretsUserModuleFilter; /** Filters to entities where no related entity matches. */ - none?: EncryptedSecretsModuleFilter; + none?: ConfigSecretsUserModuleFilter; } /** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyInvitesModuleFilter { @@ -23964,6 +24326,15 @@ export interface DatabaseToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseProvisionModuleFilter { /** Filters to entities where at least one related entity matches. */ @@ -24088,6 +24459,15 @@ export interface SchemaToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyCheckConstraintFilter { /** Filters to entities where at least one related entity matches. */ @@ -24259,6 +24639,15 @@ export interface TableToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ export interface FieldToManySpatialRelationFilter { /** Filters to entities where at least one related entity matches. */ @@ -24913,24 +25302,6 @@ export interface AgentThreadToManyAgentTaskFilter { /** Filters to entities where no related entity matches. */ none?: AgentTaskFilter; } -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeUploadFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -24993,6 +25364,24 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} /** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ export interface StringTrgmFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -25469,6 +25858,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ */ export interface TableFilter { @@ -25636,6 +26029,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { @@ -26494,6 +26891,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -27056,8 +27455,8 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -/** A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EncryptedSecretsModuleFilter { +/** A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -27069,11 +27468,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -28059,6 +28458,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -28469,6 +28870,31 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsOrgModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} /** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ @@ -28654,70 +29080,53 @@ export interface AgentTaskFilter { /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; } -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; + and?: AppLimitCreditFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; + or?: AppLimitCreditFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; + not?: AppLimitCreditFilter; + /** Filter by the object’s `actor` relation. */ + actor?: UserFilter; + /** A related `actor` exists. */ + actorExists?: boolean; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `creditCodeId` field. */ creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; + and?: AppLimitCreditCodeItemFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; + or?: AppLimitCreditCodeItemFilter[]; /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } @@ -28754,6 +29163,23 @@ export interface OrgLimitCreditFilter { /** A related `entity` exists. */ entityExists?: boolean; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Filter by the object’s `id` field. */ @@ -28962,10 +29388,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -29094,6 +29520,14 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModule` relation. */ + inferenceLogModule?: InferenceLogModuleFilter; + /** A related `inferenceLogModule` exists. */ + inferenceLogModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -30553,6 +30987,31 @@ export interface UserFilter { */ unifiedSearch?: string; } +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -30580,31 +31039,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ @@ -31115,6 +31549,10 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -31131,6 +31569,8 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -31266,6 +31706,49 @@ export interface RateLimitMetersModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} /** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ export interface BitStringFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -31465,8 +31948,27 @@ export interface OrgMembershipSettingFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } -/** A connection to a list of `AppPermission` values. */ +/** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; edges: AppPermissionEdge[]; @@ -31504,25 +32006,6 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; -/** A connection to a list of `Object` values. */ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; export interface SendAccountDeletionEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -31707,6 +32190,16 @@ export type ProvisionSpatialRelationPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SignInCrossOriginPayload { + clientMutationId?: string | null; + result?: SignInCrossOriginRecord | null; +} +export type SignInCrossOriginPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInCrossOriginRecordSelect; + }; +}; export interface BootstrapUserPayload { clientMutationId?: string | null; result?: BootstrapUserRecord[] | null; @@ -31717,6 +32210,26 @@ export type BootstrapUserPayloadSelect = { select: BootstrapUserRecordSelect; }; }; +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export type SignUpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpRecordSelect; + }; +}; +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} +export type SignInPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInRecordSelect; + }; +}; export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -31817,16 +32330,6 @@ export interface ApplyRlsPayload { export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} -export type SignInCrossOriginPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInCrossOriginRecordSelect; - }; -}; export interface CreateUserDatabasePayload { clientMutationId?: string | null; result?: string | null; @@ -31855,57 +32358,37 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; -export interface SendVerificationEmailPayload { +export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; - result?: boolean | null; + result?: string | null; } -export type SendVerificationEmailPayloadSelect = { +export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; -export interface SignUpPayload { +export interface ProvisionTablePayload { clientMutationId?: string | null; - result?: SignUpRecord | null; + result?: ProvisionTableRecord[] | null; } -export type SignUpPayloadSelect = { +export type ProvisionTablePayloadSelect = { clientMutationId?: boolean; result?: { - select: SignUpRecordSelect; + select: ProvisionTableRecordSelect; }; }; -export interface RequestCrossOriginTokenPayload { +export interface SendVerificationEmailPayload { clientMutationId?: string | null; - result?: string | null; + result?: boolean | null; } -export type RequestCrossOriginTokenPayloadSelect = { +export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} -export type SignInPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInRecordSelect; - }; -}; -export interface ProvisionTablePayload { +export interface ForgotPasswordPayload { clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; } -export type ProvisionTablePayloadSelect = { +export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -31929,6 +32412,51 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -32019,51 +32547,6 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateDatabasePayload { clientMutationId?: string | null; /** The `Database` that was created by this mutation. */ @@ -33144,6 +33627,51 @@ export type DeleteRealtimeModulePayloadSelect = { select: RealtimeModuleEdgeSelect; }; }; +export interface CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type CreateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type UpdateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type DeleteConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; export interface CreateSchemaGrantPayload { clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ @@ -34224,49 +34752,49 @@ export type DeleteEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; -export interface CreateEncryptedSecretsModulePayload { +export interface CreateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was created by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type CreateEncryptedSecretsModulePayloadSelect = { +export type CreateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface UpdateEncryptedSecretsModulePayload { +export interface UpdateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was updated by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type UpdateEncryptedSecretsModulePayloadSelect = { +export type UpdateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface DeleteEncryptedSecretsModulePayload { +export interface DeleteConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was deleted by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type DeleteEncryptedSecretsModulePayloadSelect = { +export type DeleteConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; export interface CreateInvitesModulePayload { @@ -36654,51 +37182,6 @@ export type DeleteAgentTaskPayloadSelect = { select: AgentTaskEdgeSelect; }; }; -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type CreateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type UpdateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type DeleteRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; export interface CreateIdentityProviderPayload { clientMutationId?: string | null; /** The `IdentityProvider` that was created by this mutation. */ @@ -36845,49 +37328,60 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -36980,195 +37474,139 @@ export type DeleteOrgLimitCapsDefaultPayloadSelect = { select: OrgLimitCapsDefaultEdgeSelect; }; }; -export interface CreateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type CreateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface UpdateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type UpdateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface DeleteAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type DeleteAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface CreateOrgLimitCapPayload { +export interface CreateDevicesModulePayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; } -export type CreateOrgLimitCapPayloadSelect = { +export type CreateDevicesModulePayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + devicesModule?: { + select: DevicesModuleSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; }; }; -export interface UpdateOrgLimitCapPayload { +export interface UpdateDevicesModulePayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; } -export type UpdateOrgLimitCapPayloadSelect = { +export type UpdateDevicesModulePayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + devicesModule?: { + select: DevicesModuleSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; }; }; -export interface DeleteOrgLimitCapPayload { +export interface DeleteDevicesModulePayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; } -export type DeleteOrgLimitCapPayloadSelect = { +export type DeleteDevicesModulePayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + devicesModule?: { + select: DevicesModuleSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; }; }; -export interface CreateMembershipTypePayload { +export interface CreateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type CreateMembershipTypePayloadSelect = { +export type CreateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; -}; -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} -export type CreateMigrateFilePayloadSelect = { - clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface CreateDevicesModulePayload { +export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type CreateDevicesModulePayloadSelect = { +export type CreateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateDevicesModulePayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateDevicesModulePayloadSelect = { +export type UpdateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteDevicesModulePayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type DeleteDevicesModulePayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; export interface CreateNodeTypeRegistryPayload { @@ -37216,6 +37654,51 @@ export type DeleteNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; +export interface CreateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was created by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type CreateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface UpdateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was updated by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type UpdateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface DeleteAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was deleted by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type DeleteAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; /** The `AppLimitDefault` that was created by this mutation. */ @@ -37261,6 +37744,51 @@ export type DeleteAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; +export interface CreateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was created by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type CreateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface UpdateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type UpdateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface DeleteOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type DeleteOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; /** The `OrgLimitDefault` that was created by this mutation. */ @@ -37306,6 +37834,62 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +export interface CreateUserConnectedAccountPayload { + clientMutationId?: string | null; + /** The `UserConnectedAccount` that was created by this mutation. */ + userConnectedAccount?: UserConnectedAccount | null; +} +export type CreateUserConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + userConnectedAccount?: { + select: UserConnectedAccountSelect; + }; +}; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -37351,17 +37935,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} -export type CreateUserConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; - }; -}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -37542,94 +38115,49 @@ export type DeleteUsageSnapshotPayloadSelect = { select: UsageSnapshotEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type CreateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type UpdateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type DeleteAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; export interface CreateRlsSettingPayload { @@ -37677,28 +38205,6 @@ export type DeleteRlsSettingPayloadSelect = { select: RlsSettingEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -37744,6 +38250,51 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type CreateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type UpdateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type DeleteInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; /** The `RateLimitMetersModule` that was created by this mutation. */ @@ -37845,6 +38396,96 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface UpdateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type UpdateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface DeleteAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type DeleteAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; export interface CreateDatabaseSettingPayload { clientMutationId?: string | null; /** The `DatabaseSetting` that was created by this mutation. */ @@ -37890,6 +38531,51 @@ export type DeleteDatabaseSettingPayloadSelect = { select: DatabaseSettingEdgeSelect; }; }; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; export interface CreateBillingModulePayload { clientMutationId?: string | null; /** The `BillingModule` that was created by this mutation. */ @@ -37935,15 +38621,49 @@ export type DeleteBillingModulePayloadSelect = { select: BillingModuleEdgeSelect; }; }; -export interface CreateAstMigrationPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type CreateAstMigrationPayloadSelect = { +export type CreateAppMembershipPayloadSelect = { clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; export interface CreateUserPayload { @@ -37991,49 +38711,15 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type CreateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type UpdateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface DeleteOrgMembershipSettingPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type CreateAstMigrationPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + astMigration?: { + select: AstMigrationSelect; }; }; export interface CreateWebauthnSettingPayload { @@ -38081,51 +38767,6 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type CreateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type UpdateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type DeleteAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; /** The `BillingProviderModule` that was created by this mutation. */ @@ -38216,16 +38857,16 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `Object` edge in the connection. */ +export interface ObjectEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; } -export type AppPermissionEdgeSelect = { +export type ObjectEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionSelect; + select: ObjectSelect; }; }; /** Information about pagination in a connection. */ @@ -38245,6 +38886,18 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} +export type AppPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionSelect; + }; +}; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -38257,17 +38910,21 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; +export interface SignInCrossOriginRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; } -export type ObjectEdgeSelect = { - cursor?: boolean; - node?: { - select: ObjectSelect; - }; +export type SignInCrossOriginRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; }; export interface BootstrapUserRecord { outUserId?: string | null; @@ -38289,6 +38946,42 @@ export type BootstrapUserRecordSelect = { outIsSudo?: boolean; outApiKey?: boolean; }; +export interface SignUpRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export type SignUpRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; +}; +export interface SignInRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + mfaRequired?: boolean | null; + mfaChallengeToken?: string | null; +} +export type SignInRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; + mfaRequired?: boolean; + mfaChallengeToken?: boolean; +}; export interface ProvisionDatabaseWithUserRecord { outDatabaseId?: string | null; outApiKey?: string | null; @@ -38309,22 +39002,6 @@ export type ProvisionRelationRecordSelect = { outSourceFieldId?: boolean; outTargetFieldId?: boolean; }; -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignInCrossOriginRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; export interface ExtendTokenExpiresRecord { id?: string | null; sessionId?: string | null; @@ -38345,42 +39022,6 @@ export type CreateApiKeyRecordSelect = { keyId?: boolean; expiresAt?: boolean; }; -export interface SignUpRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignUpRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface SignInRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; - mfaRequired?: boolean | null; - mfaChallengeToken?: string | null; -} -export type SignInRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; - mfaRequired?: boolean; - mfaChallengeToken?: boolean; -}; export interface ProvisionTableRecord { outTableId?: string | null; outFields?: string[] | null; @@ -38677,6 +39318,18 @@ export type RealtimeModuleEdgeSelect = { select: RealtimeModuleSelect; }; }; +/** A `ConfigSecretsOrgModule` edge in the connection. */ +export interface ConfigSecretsOrgModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsOrgModule` at the end of the edge. */ + node?: ConfigSecretsOrgModule | null; +} +export type ConfigSecretsOrgModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsOrgModuleSelect; + }; +}; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { cursor?: string | null; @@ -38965,16 +39618,16 @@ export type EmailsModuleEdgeSelect = { select: EmailsModuleSelect; }; }; -/** A `EncryptedSecretsModule` edge in the connection. */ -export interface EncryptedSecretsModuleEdge { +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { cursor?: string | null; - /** The `EncryptedSecretsModule` at the end of the edge. */ - node?: EncryptedSecretsModule | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; } -export type EncryptedSecretsModuleEdgeSelect = { +export type ConfigSecretsUserModuleEdgeSelect = { cursor?: boolean; node?: { - select: EncryptedSecretsModuleSelect; + select: ConfigSecretsUserModuleSelect; }; }; /** A `InvitesModule` edge in the connection. */ @@ -39613,18 +40266,6 @@ export type AgentTaskEdgeSelect = { select: AgentTaskSelect; }; }; -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { - cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; -} -export type RoleTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: RoleTypeSelect; - }; -}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -39661,16 +40302,16 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type RoleTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: RoleTypeSelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -39697,52 +40338,40 @@ export type OrgLimitCapsDefaultEdgeSelect = { select: OrgLimitCapsDefaultSelect; }; }; -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -export type AppLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapSelect; - }; -}; -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { +/** A `DevicesModule` edge in the connection. */ +export interface DevicesModuleEdge { cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; + /** The `DevicesModule` at the end of the edge. */ + node?: DevicesModule | null; } -export type OrgLimitCapEdgeSelect = { +export type DevicesModuleEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitCapSelect; + select: DevicesModuleSelect; }; }; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type MembershipTypeEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `DevicesModule` edge in the connection. */ -export interface DevicesModuleEdge { +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { cursor?: string | null; - /** The `DevicesModule` at the end of the edge. */ - node?: DevicesModule | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; } -export type DevicesModuleEdgeSelect = { +export type OrgMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: DevicesModuleSelect; + select: OrgMembershipDefaultSelect; }; }; /** A `NodeTypeRegistry` edge in the connection. */ @@ -39757,6 +40386,18 @@ export type NodeTypeRegistryEdgeSelect = { select: NodeTypeRegistrySelect; }; }; +/** A `AppLimitCap` edge in the connection. */ +export interface AppLimitCapEdge { + cursor?: string | null; + /** The `AppLimitCap` at the end of the edge. */ + node?: AppLimitCap | null; +} +export type AppLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCapSelect; + }; +}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -39769,6 +40410,18 @@ export type AppLimitDefaultEdgeSelect = { select: AppLimitDefaultSelect; }; }; +/** A `OrgLimitCap` edge in the connection. */ +export interface OrgLimitCapEdge { + cursor?: string | null; + /** The `OrgLimitCap` at the end of the edge. */ + node?: OrgLimitCap | null; +} +export type OrgLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCapSelect; + }; +}; /** A `OrgLimitDefault` edge in the connection. */ export interface OrgLimitDefaultEdge { cursor?: string | null; @@ -39781,6 +40434,18 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { + cursor?: string | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +export type AppLimitCreditCodeEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeSelect; + }; +}; /** A `AppLimitWarning` edge in the connection. */ export interface AppLimitWarningEdge { cursor?: string | null; @@ -39841,28 +40506,16 @@ export type UsageSnapshotEdgeSelect = { select: UsageSnapshotSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; /** A `RlsSetting` edge in the connection. */ @@ -39889,6 +40542,18 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +export type InferenceLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InferenceLogModuleSelect; + }; +}; /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { cursor?: string | null; @@ -39913,40 +40578,40 @@ export type PlansModuleEdgeSelect = { select: PlansModuleSelect; }; }; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type DatabaseSettingEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: DatabaseSettingSelect; + select: AppLimitEventSelect; }; }; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; } -export type BillingModuleEdgeSelect = { +export type OrgLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: BillingModuleSelect; + select: OrgLimitEventSelect; }; }; -/** A `User` edge in the connection. */ -export interface UserEdge { +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; } -export type UserEdgeSelect = { +export type DatabaseSettingEdgeSelect = { cursor?: boolean; node?: { - select: UserSelect; + select: DatabaseSettingSelect; }; }; /** A `OrgMembershipSetting` edge in the connection. */ @@ -39961,16 +40626,16 @@ export type OrgMembershipSettingEdgeSelect = { select: OrgMembershipSettingSelect; }; }; -/** A `WebauthnSetting` edge in the connection. */ -export interface WebauthnSettingEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `WebauthnSetting` at the end of the edge. */ - node?: WebauthnSetting | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type WebauthnSettingEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: WebauthnSettingSelect; + select: BillingModuleSelect; }; }; /** A `AppMembership` edge in the connection. */ @@ -39985,6 +40650,30 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; +/** A `User` edge in the connection. */ +export interface UserEdge { + cursor?: string | null; + /** The `User` at the end of the edge. */ + node?: User | null; +} +export type UserEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSelect; + }; +}; +/** A `WebauthnSetting` edge in the connection. */ +export interface WebauthnSettingEdge { + cursor?: string | null; + /** The `WebauthnSetting` at the end of the edge. */ + node?: WebauthnSetting | null; +} +export type WebauthnSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnSettingSelect; + }; +}; /** A `BillingProviderModule` edge in the connection. */ export interface BillingProviderModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts +++ b/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-react/src/public/orm/models/configSecretsOrgModule.ts b/sdk/constructive-react/src/public/orm/models/configSecretsOrgModule.ts new file mode 100644 index 0000000000..ef53f2d5cd --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/configSecretsOrgModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsOrgModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ConfigSecretsOrgModule, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, + CreateConfigSecretsOrgModuleInput, + UpdateConfigSecretsOrgModuleInput, + ConfigSecretsOrgModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsOrgModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsOrgModule', + 'createConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.data, + 'CreateConfigSecretsOrgModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'createConfigSecretsOrgModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsOrgModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsOrgModule', + 'updateConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsOrgModuleInput', + 'id', + 'configSecretsOrgModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'updateConfigSecretsOrgModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsOrgModule', + 'deleteConfigSecretsOrgModule', + 'configSecretsOrgModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsOrgModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'deleteConfigSecretsOrgModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/configSecretsUserModule.ts b/sdk/constructive-react/src/public/orm/models/configSecretsUserModule.ts new file mode 100644 index 0000000000..b1b8f0cacb --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/configSecretsUserModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsUserModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ConfigSecretsUserModule, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, + CreateConfigSecretsUserModuleInput, + UpdateConfigSecretsUserModuleInput, + ConfigSecretsUserModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsUserModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsUserModule', + 'createConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.data, + 'CreateConfigSecretsUserModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'createConfigSecretsUserModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsUserModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsUserModule', + 'updateConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsUserModuleInput', + 'id', + 'configSecretsUserModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'updateConfigSecretsUserModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsUserModule', + 'deleteConfigSecretsUserModule', + 'configSecretsUserModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsUserModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'deleteConfigSecretsUserModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts b/sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts deleted file mode 100644 index 754ec7e785..0000000000 --- a/sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * EncryptedSecretsModule model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - EncryptedSecretsModule, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, - CreateEncryptedSecretsModuleInput, - UpdateEncryptedSecretsModuleInput, - EncryptedSecretsModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class EncryptedSecretsModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'EncryptedSecretsModule', - 'createEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.data, - 'CreateEncryptedSecretsModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'createEncryptedSecretsModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - EncryptedSecretsModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'EncryptedSecretsModule', - 'updateEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.where.id, - args.data, - 'UpdateEncryptedSecretsModuleInput', - 'id', - 'encryptedSecretsModulePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'updateEncryptedSecretsModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'EncryptedSecretsModule', - 'deleteEncryptedSecretsModule', - 'encryptedSecretsModule', - { - id: args.where.id, - }, - 'DeleteEncryptedSecretsModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'deleteEncryptedSecretsModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/index.ts b/sdk/constructive-react/src/public/orm/models/index.ts index f32f15f0cb..e9c4a73ea2 100644 --- a/sdk/constructive-react/src/public/orm/models/index.ts +++ b/sdk/constructive-react/src/public/orm/models/index.ts @@ -6,9 +6,9 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; +export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; -export { ObjectModel } from './object'; export { DatabaseModel } from './database'; export { SchemaModel } from './schema'; export { TableModel } from './table'; @@ -33,6 +33,7 @@ export { RelationProvisionModel } from './relationProvision'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RealtimeModuleModel } from './realtimeModule'; +export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; export { EnumModel } from './enum'; @@ -57,7 +58,7 @@ export { CryptoAuthModuleModel } from './cryptoAuthModule'; export { DefaultIdsModuleModel } from './defaultIdsModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; export { EmailsModuleModel } from './emailsModule'; -export { EncryptedSecretsModuleModel } from './encryptedSecretsModule'; +export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { InvitesModuleModel } from './invitesModule'; export { EventsModuleModel } from './eventsModule'; export { LimitsModuleModel } from './limitsModule'; @@ -111,43 +112,44 @@ export { AuditLogModel } from './auditLog'; export { AgentThreadModel } from './agentThread'; export { AgentMessageModel } from './agentMessage'; export { AgentTaskModel } from './agentTask'; -export { RoleTypeModel } from './roleType'; export { IdentityProviderModel } from './identityProvider'; export { RefModel } from './ref'; export { StoreModel } from './store'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { RoleTypeModel } from './roleType'; +export { MigrateFileModel } from './migrateFile'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; -export { AppLimitCapModel } from './appLimitCap'; -export { OrgLimitCapModel } from './orgLimitCap'; -export { MembershipTypeModel } from './membershipType'; -export { MigrateFileModel } from './migrateFile'; export { DevicesModuleModel } from './devicesModule'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { AppLimitCapModel } from './appLimitCap'; export { AppLimitDefaultModel } from './appLimitDefault'; +export { OrgLimitCapModel } from './orgLimitCap'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { AppLimitWarningModel } from './appLimitWarning'; export { UserConnectedAccountModel } from './userConnectedAccount'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { AppLimitWarningModel } from './appLimitWarning'; export { CommitModel } from './commit'; export { PubkeySettingModel } from './pubkeySetting'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { UsageSnapshotModel } from './usageSnapshot'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { MembershipTypeModel } from './membershipType'; export { RlsSettingModel } from './rlsSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { RlsModuleModel } from './rlsModule'; +export { InferenceLogModuleModel } from './inferenceLogModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { PlansModuleModel } from './plansModule'; export { SqlActionModel } from './sqlAction'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { DatabaseSettingModel } from './databaseSetting'; +export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { BillingModuleModel } from './billingModule'; -export { AstMigrationModel } from './astMigration'; +export { AppMembershipModel } from './appMembership'; export { UserModel } from './user'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; +export { AstMigrationModel } from './astMigration'; export { WebauthnSettingModel } from './webauthnSetting'; -export { AppMembershipModel } from './appMembership'; export { BillingProviderModuleModel } from './billingProviderModule'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-react/src/public/orm/models/inferenceLogModule.ts b/sdk/constructive-react/src/public/orm/models/inferenceLogModule.ts new file mode 100644 index 0000000000..f6f4ab2452 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/inferenceLogModule.ts @@ -0,0 +1,244 @@ +/** + * InferenceLogModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InferenceLogModule, + InferenceLogModuleWithRelations, + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, + CreateInferenceLogModuleInput, + UpdateInferenceLogModuleInput, + InferenceLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InferenceLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InferenceLogModule', + 'createInferenceLogModule', + 'inferenceLogModule', + args.select, + args.data, + 'CreateInferenceLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'createInferenceLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InferenceLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InferenceLogModule', + 'updateInferenceLogModule', + 'inferenceLogModule', + args.select, + args.where.id, + args.data, + 'UpdateInferenceLogModuleInput', + 'id', + 'inferenceLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'updateInferenceLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InferenceLogModule', + 'deleteInferenceLogModule', + 'inferenceLogModule', + { + id: args.where.id, + }, + 'DeleteInferenceLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'deleteInferenceLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-react/src/public/orm/mutation/index.ts b/sdk/constructive-react/src/public/orm/mutation/index.ts index 8d1e1cbef2..fa569f97e8 100644 --- a/sdk/constructive-react/src/public/orm/mutation/index.ts +++ b/sdk/constructive-react/src/public/orm/mutation/index.ts @@ -31,7 +31,10 @@ import type { RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, + SignInCrossOriginInput, BootstrapUserInput, + SignUpInput, + SignInInput, SetFieldOrderInput, ProvisionCheckConstraintInput, ProvisionUniqueConstraintInput, @@ -45,16 +48,13 @@ import type { SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, - SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, - SendVerificationEmailInput, - ForgotPasswordInput, - SignUpInput, RequestCrossOriginTokenInput, - SignInInput, ProvisionTableInput, + SendVerificationEmailInput, + ForgotPasswordInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, @@ -80,7 +80,10 @@ import type { RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, + SignInCrossOriginPayload, BootstrapUserPayload, + SignUpPayload, + SignInPayload, SetFieldOrderPayload, ProvisionCheckConstraintPayload, ProvisionUniqueConstraintPayload, @@ -94,16 +97,13 @@ import type { SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, - SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, - SignUpPayload, RequestCrossOriginTokenPayload, - SignInPayload, ProvisionTablePayload, + SendVerificationEmailPayload, + ForgotPasswordPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, @@ -129,7 +129,10 @@ import type { RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, + SignInCrossOriginPayloadSelect, BootstrapUserPayloadSelect, + SignUpPayloadSelect, + SignInPayloadSelect, SetFieldOrderPayloadSelect, ProvisionCheckConstraintPayloadSelect, ProvisionUniqueConstraintPayloadSelect, @@ -143,16 +146,13 @@ import type { SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, - SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, - SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, - SignInPayloadSelect, ProvisionTablePayloadSelect, + SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -240,9 +240,18 @@ export interface CopyTemplateToBlueprintVariables { export interface ProvisionSpatialRelationVariables { input: ProvisionSpatialRelationInput; } +export interface SignInCrossOriginVariables { + input: SignInCrossOriginInput; +} export interface BootstrapUserVariables { input: BootstrapUserInput; } +export interface SignUpVariables { + input: SignUpInput; +} +export interface SignInVariables { + input: SignInInput; +} export interface SetFieldOrderVariables { input: SetFieldOrderInput; } @@ -302,9 +311,6 @@ export interface ProvisionRelationVariables { export interface ApplyRlsVariables { input: ApplyRlsInput; } -export interface SignInCrossOriginVariables { - input: SignInCrossOriginInput; -} /** * Variables for createUserDatabase * Creates a new user database with all required modules, permissions, and RLS policies. @@ -333,21 +339,9 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} -export interface SignUpVariables { - input: SignUpInput; -} export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } -export interface SignInVariables { - input: SignInInput; -} /** * Variables for provisionTable * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). @@ -355,6 +349,12 @@ export interface SignInVariables { export interface ProvisionTableVariables { input: ProvisionTableInput; } +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -1063,6 +1063,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionSpatialRelationPayload' ), }), + signInCrossOrigin: ( + args: SignInCrossOriginVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInCrossOrigin: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInCrossOrigin', + fieldName: 'signInCrossOrigin', + ...buildCustomDocument( + 'mutation', + 'SignInCrossOrigin', + 'signInCrossOrigin', + options.select, + args, + [ + { + name: 'input', + type: 'SignInCrossOriginInput!', + }, + ], + connectionFieldsMap, + 'SignInCrossOriginPayload' + ), + }), bootstrapUser: ( args: BootstrapUserVariables, options: { @@ -1092,6 +1121,64 @@ export function createMutationOperations(client: OrmClient) { 'BootstrapUserPayload' ), }), + signUp: ( + args: SignUpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUp', + fieldName: 'signUp', + ...buildCustomDocument( + 'mutation', + 'SignUp', + 'signUp', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpInput!', + }, + ], + connectionFieldsMap, + 'SignUpPayload' + ), + }), + signIn: ( + args: SignInVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signIn: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignIn', + fieldName: 'signIn', + ...buildCustomDocument( + 'mutation', + 'SignIn', + 'signIn', + options.select, + args, + [ + { + name: 'input', + type: 'SignInInput!', + }, + ], + connectionFieldsMap, + 'SignInPayload' + ), + }), setFieldOrder: ( args: SetFieldOrderVariables, options: { @@ -1469,35 +1556,6 @@ export function createMutationOperations(client: OrmClient) { 'ApplyRlsPayload' ), }), - signInCrossOrigin: ( - args: SignInCrossOriginVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signInCrossOrigin: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignInCrossOrigin', - fieldName: 'signInCrossOrigin', - ...buildCustomDocument( - 'mutation', - 'SignInCrossOrigin', - 'signInCrossOrigin', - options.select, - args, - [ - { - name: 'input', - type: 'SignInCrossOriginInput!', - }, - ], - connectionFieldsMap, - 'SignInCrossOriginPayload' - ), - }), createUserDatabase: ( args: CreateUserDatabaseVariables, options: { @@ -1585,178 +1643,120 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), - signUp: ( - args: SignUpVariables, + requestCrossOriginToken: ( + args: RequestCrossOriginTokenVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signUp: InferSelectResult | null; + requestCrossOriginToken: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignUp', - fieldName: 'signUp', + operationName: 'RequestCrossOriginToken', + fieldName: 'requestCrossOriginToken', ...buildCustomDocument( 'mutation', - 'SignUp', - 'signUp', + 'RequestCrossOriginToken', + 'requestCrossOriginToken', options.select, args, [ { name: 'input', - type: 'SignUpInput!', + type: 'RequestCrossOriginTokenInput!', }, ], connectionFieldsMap, - 'SignUpPayload' + 'RequestCrossOriginTokenPayload' ), }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, + provisionTable: ( + args: ProvisionTableVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; + provisionTable: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', + operationName: 'ProvisionTable', + fieldName: 'provisionTable', ...buildCustomDocument( 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', + 'ProvisionTable', + 'provisionTable', options.select, args, [ { name: 'input', - type: 'RequestCrossOriginTokenInput!', + type: 'ProvisionTableInput!', }, ], connectionFieldsMap, - 'RequestCrossOriginTokenPayload' + 'ProvisionTablePayload' ), }), - signIn: ( - args: SignInVariables, + sendVerificationEmail: ( + args: SendVerificationEmailVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signIn: InferSelectResult | null; + sendVerificationEmail: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignIn', - fieldName: 'signIn', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', ...buildCustomDocument( 'mutation', - 'SignIn', - 'signIn', + 'SendVerificationEmail', + 'sendVerificationEmail', options.select, args, [ { name: 'input', - type: 'SignInInput!', + type: 'SendVerificationEmailInput!', }, ], connectionFieldsMap, - 'SignInPayload' + 'SendVerificationEmailPayload' ), }), - provisionTable: ( - args: ProvisionTableVariables, + forgotPassword: ( + args: ForgotPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - provisionTable: InferSelectResult | null; + forgotPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', ...buildCustomDocument( 'mutation', - 'ProvisionTable', - 'provisionTable', + 'ForgotPassword', + 'forgotPassword', options.select, args, [ { name: 'input', - type: 'ProvisionTableInput!', + type: 'ForgotPasswordInput!', }, ], connectionFieldsMap, - 'ProvisionTablePayload' + 'ForgotPasswordPayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-react/src/public/orm/query/index.ts b/sdk/constructive-react/src/public/orm/query/index.ts index 7fc254ab13..b014f09988 100644 --- a/sdk/constructive-react/src/public/orm/query/index.ts +++ b/sdk/constructive-react/src/public/orm/query/index.ts @@ -11,9 +11,9 @@ import type { User, ObjectSelect, UserSelect, + ObjectConnection, AppPermissionConnection, OrgPermissionConnection, - ObjectConnection, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -26,7 +26,7 @@ export interface OrgPermissionsGetPaddedMaskVariables { mask?: string; } export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } @@ -68,8 +68,9 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -export interface AppPermissionsGetByMaskVariables { - mask?: string; +export interface GetAllObjectsFromRootVariables { + sId?: string; + id?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -80,8 +81,10 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface OrgPermissionsGetByMaskVariables { - mask?: string; +export interface GetPathObjectsFromRootVariables { + sId?: string; + id?: string; + path?: string[]; /** Only read the first `n` values of the set. */ first?: number; /** @@ -92,9 +95,14 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; +export interface GetObjectAtPathVariables { + sId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} +export interface AppPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -105,10 +113,8 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; +export interface OrgPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -119,12 +125,6 @@ export interface GetPathObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} export function createQueryOperations(client: OrmClient) { return { currentUserId: (options?: { select?: Record }) => @@ -292,7 +292,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -547,29 +547,33 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; + getAllObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', ...buildCustomDocument( 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', }, { name: 'first', @@ -588,29 +592,37 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; + getPathObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', ...buildCustomDocument( 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', }, { name: 'first', @@ -629,82 +641,70 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, - options?: { - select?: Record; - } + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect ) => new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; + getObjectAtPath: InferSelectResult | null; }>({ client, operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', ...buildCustomDocument( 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', - options?.select, + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { - name: 'id', + name: 'storeId', type: 'UUID', }, { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', + name: 'path', + type: '[String]', }, { - name: 'after', - type: 'Cursor', + name: 'refname', + type: 'String', }, ], connectionFieldsMap, - undefined + 'Object' ), }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; + appPermissionsGetByMask: AppPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -723,45 +723,45 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; + orgPermissionsGetByMask: OrgPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', + options?.select, args, [ { - name: 'dbId', - type: 'UUID', + name: 'mask', + type: 'BitString', }, { - name: 'storeId', - type: 'UUID', + name: 'first', + type: 'Int', }, { - name: 'path', - type: '[String]', + name: 'offset', + type: 'Int', }, { - name: 'refname', - type: 'String', + name: 'after', + type: 'Cursor', }, ], connectionFieldsMap, - 'Object' + undefined ), }), currentUser: ( diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts index ac64464296..9c9a62c54d 100644 --- a/sdk/constructive-react/src/public/schema-types.ts +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -41,6 +41,8 @@ import type { BlueprintTemplate, CheckConstraint, Commit, + ConfigSecretsOrgModule, + ConfigSecretsUserModule, ConnectedAccountsModule, CorsSetting, CryptoAddress, @@ -58,7 +60,6 @@ import type { Email, EmailsModule, EmbeddingChunk, - EncryptedSecretsModule, EntityTypeProvision, Enum, EventsModule, @@ -71,6 +72,7 @@ import type { IdentityProvider, IdentityProvidersModule, Index, + InferenceLogModule, InvitesModule, LimitsModule, MembershipType, @@ -841,6 +843,21 @@ export type RealtimeModuleOrderBy = | 'INTERVAL_DESC' | 'NOTIFY_CHANNEL_ASC' | 'NOTIFY_CHANNEL_DESC'; +/** Methods to use when ordering `ConfigSecretsOrgModule`. */ +export type ConfigSecretsOrgModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; /** Methods to use when ordering `Table`. */ export type TableOrderBy = | 'NATURAL' @@ -1175,6 +1192,8 @@ export type PartitionOrderBy = | 'INTERVAL_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' | 'PREMAKE_ASC' | 'PREMAKE_DESC' | 'NAMING_PATTERN_ASC' @@ -1413,8 +1432,8 @@ export type EmailsModuleOrderBy = | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -/** Methods to use when ordering `EncryptedSecretsModule`. */ -export type EncryptedSecretsModuleOrderBy = +/** Methods to use when ordering `ConfigSecretsUserModule`. */ +export type ConfigSecretsUserModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2046,6 +2065,8 @@ export type StorageModuleOrderBy = | 'FILES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'SKIP_DEFAULT_POLICY_TABLES_ASC' @@ -3006,15 +3027,6 @@ export type AgentThreadOrderBy = | 'ENTITY_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC'; -/** Methods to use when ordering `RoleType`. */ -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; /** Methods to use when ordering `IdentityProvider`. */ export type IdentityProviderOrderBy = | 'NATURAL' @@ -3037,8 +3049,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -3052,8 +3064,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -3067,51 +3079,24 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -/** Methods to use when ordering `AppLimitCreditCode`. */ -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -/** Methods to use when ordering `AppPermission`. */ -export type AppPermissionOrderBy = +/** Methods to use when ordering `RoleType`. */ +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `OrgPermission`. */ -export type OrgPermissionOrderBy = + | 'NAME_DESC'; +/** Methods to use when ordering `MigrateFile`. */ +export type MigrateFileOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; /** Methods to use when ordering `AppLimitCapsDefault`. */ export type AppLimitCapsDefaultOrderBy = | 'NATURAL' @@ -3134,58 +3119,6 @@ export type OrgLimitCapsDefaultOrderBy = | 'NAME_DESC' | 'MAX_ASC' | 'MAX_DESC'; -/** Methods to use when ordering `AppLimitCap`. */ -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `OrgLimitCap`. */ -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `MembershipType`. */ -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; -/** Methods to use when ordering `MigrateFile`. */ -export type MigrateFileOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'UPLOAD_ASC' - | 'UPLOAD_DESC'; /** Methods to use when ordering `DevicesModule`. */ export type DevicesModuleOrderBy = | 'NATURAL' @@ -3205,6 +3138,44 @@ export type DevicesModuleOrderBy = | 'USER_DEVICES_TABLE_DESC' | 'DEVICE_SETTINGS_TABLE_ASC' | 'DEVICE_SETTINGS_TABLE_DESC'; +/** Methods to use when ordering `AppMembershipDefault`. */ +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +/** Methods to use when ordering `OrgMembershipDefault`. */ +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; /** Methods to use when ordering `NodeTypeRegistry`. */ export type NodeTypeRegistryOrderBy = | 'NATURAL' @@ -3224,6 +3195,19 @@ export type NodeTypeRegistryOrderBy = | 'PARAMETER_SCHEMA_DESC' | 'TAGS_ASC' | 'TAGS_DESC'; +/** Methods to use when ordering `AppLimitCap`. */ +export type AppLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; /** Methods to use when ordering `AppLimitDefault`. */ export type AppLimitDefaultOrderBy = | 'NATURAL' @@ -3237,8 +3221,8 @@ export type AppLimitDefaultOrderBy = | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC'; -/** Methods to use when ordering `OrgLimitDefault`. */ -export type OrgLimitDefaultOrderBy = +/** Methods to use when ordering `OrgLimitCap`. */ +export type OrgLimitCapOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3246,12 +3230,12 @@ export type OrgLimitDefaultOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -/** Methods to use when ordering `AppLimitWarning`. */ -export type AppLimitWarningOrderBy = + | 'MAX_DESC'; +/** Methods to use when ordering `OrgLimitDefault`. */ +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3259,12 +3243,10 @@ export type AppLimitWarningOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; /** Methods to use when ordering `UserConnectedAccount`. */ export type UserConnectedAccountOrderBy = | 'NATURAL' @@ -3291,8 +3273,8 @@ export type ObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -3303,60 +3285,120 @@ export type ObjectOrderBy = | 'FRZN_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -/** Methods to use when ordering `Commit`. */ -export type CommitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC'; -/** Methods to use when ordering `PubkeySetting`. */ -export type PubkeySettingOrderBy = +/** Methods to use when ordering `AppPermission`. */ +export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' - | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' - | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' - | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' - | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' - | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC'; -/** Methods to use when ordering `RateLimitsModule`. */ -export type RateLimitsModuleOrderBy = + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `OrgPermission`. */ +export type OrgPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `AppLimitCreditCode`. */ +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +/** Methods to use when ordering `AppLimitWarning`. */ +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; +/** Methods to use when ordering `Commit`. */ +export type CommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +/** Methods to use when ordering `PubkeySetting`. */ +export type PubkeySettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'USER_FIELD_ASC' + | 'USER_FIELD_DESC' + | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' + | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' + | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' + | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' + | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' + | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' + | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' + | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC'; +/** Methods to use when ordering `RateLimitsModule`. */ +export type RateLimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' @@ -3389,44 +3431,23 @@ export type UsageSnapshotOrderBy = | 'CAPTURED_AT_DESC' | 'ID_ASC' | 'ID_DESC'; -/** Methods to use when ordering `AppMembershipDefault`. */ -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -/** Methods to use when ordering `OrgMembershipDefault`. */ -export type OrgMembershipDefaultOrderBy = +/** Methods to use when ordering `MembershipType`. */ +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; /** Methods to use when ordering `RlsSetting`. */ export type RlsSettingOrderBy = | 'NATURAL' @@ -3452,48 +3473,6 @@ export type RlsSettingOrderBy = | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -/** Methods to use when ordering `AppLimitEvent`. */ -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `OrgLimitEvent`. */ -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; /** Methods to use when ordering `RlsModule`. */ export type RlsModuleOrderBy = | 'NATURAL' @@ -3521,6 +3500,35 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; +/** Methods to use when ordering `InferenceLogModule`. */ +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; /** Methods to use when ordering `RateLimitMetersModule`. */ export type RateLimitMetersModuleOrderBy = | 'NATURAL' @@ -3610,6 +3618,60 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `AppLimitEvent`. */ +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +/** Methods to use when ordering `OrgLimitEvent`. */ +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; /** Methods to use when ordering `DatabaseSetting`. */ export type DatabaseSettingOrderBy = | 'NATURAL' @@ -3643,15 +3705,48 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; -/** Methods to use when ordering `BillingModule`. */ -export type BillingModuleOrderBy = +/** Methods to use when ordering `OrgMembershipSetting`. */ +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +/** Methods to use when ordering `BillingModule`. */ +export type BillingModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -3672,39 +3767,51 @@ export type BillingModuleOrderBy = | 'BALANCES_TABLE_ID_DESC' | 'BALANCES_TABLE_NAME_ASC' | 'BALANCES_TABLE_NAME_DESC' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' | 'RECORD_USAGE_FUNCTION_ASC' | 'RECORD_USAGE_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC'; -/** Methods to use when ordering `AstMigration`. */ -export type AstMigrationOrderBy = +/** Methods to use when ordering `AppMembership`. */ +export type AppMembershipOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; /** Methods to use when ordering `User`. */ export type UserOrderBy = | 'NATURAL' @@ -3732,39 +3839,35 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -/** Methods to use when ordering `OrgMembershipSetting`. */ -export type OrgMembershipSettingOrderBy = +/** Methods to use when ordering `AstMigration`. */ +export type AstMigrationOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; /** Methods to use when ordering `WebauthnSetting`. */ export type WebauthnSettingOrderBy = | 'NATURAL' @@ -3806,43 +3909,6 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -/** Methods to use when ordering `AppMembership`. */ -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; /** Methods to use when ordering `BillingProviderModule`. */ export type BillingProviderModuleOrderBy = | 'NATURAL' @@ -4207,10 +4273,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -4339,6 +4405,14 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModule` relation. */ + inferenceLogModule?: InferenceLogModuleFilter; + /** A related `inferenceLogModule` exists. */ + inferenceLogModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -6592,6 +6666,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManyTableFilter { @@ -6768,6 +6846,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyCheckConstraintFilter { @@ -7596,6 +7678,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -7906,6 +7990,40 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} +/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsOrgModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} /** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManySchemaGrantFilter { /** Filters to entities where at least one related entity matches. */ @@ -8733,6 +8851,15 @@ export interface SchemaToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyTableFilter { /** Filters to entities where at least one related entity matches. */ @@ -9597,17 +9724,17 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -/** A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEncryptedSecretsModuleFilter { +/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsUserModuleFilter { /** Filters to entities where at least one related entity matches. */ - some?: EncryptedSecretsModuleFilter; + some?: ConfigSecretsUserModuleFilter; /** Filters to entities where every related entity matches. */ - every?: EncryptedSecretsModuleFilter; + every?: ConfigSecretsUserModuleFilter; /** Filters to entities where no related entity matches. */ - none?: EncryptedSecretsModuleFilter; + none?: ConfigSecretsUserModuleFilter; } -/** A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EncryptedSecretsModuleFilter { +/** A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -9619,11 +9746,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -10858,6 +10985,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -11364,6 +11493,10 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -11380,6 +11513,8 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -11524,6 +11659,58 @@ export interface RateLimitMetersModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} /** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseProvisionModuleFilter { /** Filters to entities where at least one related entity matches. */ @@ -11599,8 +11786,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -11618,8 +11805,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -11644,137 +11831,14 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { +/** A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ */ +export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; - /** Negates the expression. */ - not?: AppPermissionFilter; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Negates the expression. */ - not?: OrgPermissionFilter; -} -/** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -/** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -/** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -/** A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ */ -export interface MigrateFileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `upload` field. */ - upload?: ConstructiveInternalTypeUploadFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; /** Checks for all expressions in this list. */ and?: MigrateFileFilter[]; /** Checks for any expressions in this list. */ @@ -11817,6 +11881,59 @@ export interface ConstructiveInternalTypeUploadFilter { /** Contained by the specified JSON. */ containedBy?: ConstructiveInternalTypeUpload; } +/** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitCapsDefaultFilter; +} +/** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapsDefaultFilter; +} +/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} /** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ export interface NodeTypeRegistryFilter { /** Filter by the object’s `name` field. */ @@ -11840,24 +11957,39 @@ export interface NodeTypeRegistryFilter { /** Negates the expression. */ not?: NodeTypeRegistryFilter; } -/** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitWarningFilter { +/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCapFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; + and?: AppLimitCapFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; + or?: AppLimitCapFilter[]; /** Negates the expression. */ - not?: AppLimitWarningFilter; + not?: AppLimitCapFilter; +} +/** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; } /** A filter to be used against `UserConnectedAccount` object types. All fields are combined with a logical ‘and.’ */ export interface UserConnectedAccountFilter { @@ -11888,8 +12020,8 @@ export interface UserConnectedAccountFilter { export interface ObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -11907,14 +12039,71 @@ export interface ObjectFilter { /** Negates the expression. */ not?: ObjectFilter; } +/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionFilter; +} +/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionFilter; +} +/** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitWarningFilter[]; + /** Negates the expression. */ + not?: AppLimitWarningFilter; +} /** A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ */ export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `message` field. */ message?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -11955,31 +12144,66 @@ export interface UsageSnapshotFilter { /** Negates the expression. */ not?: UsageSnapshotFilter; } -/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipDefaultFilter { +/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} +/** A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ */ +export interface SqlActionFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: StringFilter; + /** Filter by the object’s `deps` field. */ + deps?: StringListFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `revert` field. */ + revert?: StringFilter; + /** Filter by the object’s `verify` field. */ + verify?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; + and?: SqlActionFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; + or?: SqlActionFilter[]; /** Negates the expression. */ - not?: AppMembershipDefaultFilter; + not?: SqlActionFilter; } /** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -12007,6 +12231,10 @@ export interface AppLimitEventFilter { } /** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -12014,56 +12242,23 @@ export interface OrgLimitEventFilter { /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} -/** A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ */ -export interface SqlActionFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: StringFilter; - /** Filter by the object’s `deps` field. */ - deps?: StringListFilter; - /** Filter by the object’s `content` field. */ - content?: StringFilter; - /** Filter by the object’s `revert` field. */ - revert?: StringFilter; - /** Filter by the object’s `verify` field. */ - verify?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: SqlActionFilter[]; + and?: OrgLimitEventFilter[]; /** Checks for any expressions in this list. */ - or?: SqlActionFilter[]; + or?: OrgLimitEventFilter[]; /** Negates the expression. */ - not?: SqlActionFilter; + not?: OrgLimitEventFilter; } /** A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ */ export interface AstMigrationFilter { @@ -12167,12 +12362,12 @@ export interface VerifyEmailInput { } export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface ConstructBlueprintInput { @@ -12193,7 +12388,7 @@ export interface ResetPasswordInput { } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } @@ -12216,6 +12411,11 @@ export interface ProvisionSpatialRelationInput { pOperator?: string; pParamName?: string; } +export interface SignInCrossOriginInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} export interface BootstrapUserInput { clientMutationId?: string; targetDatabaseId?: string; @@ -12226,6 +12426,24 @@ export interface BootstrapUserInput { displayName?: string; returnApiKey?: boolean; } +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -12256,14 +12474,14 @@ export interface ProvisionIndexInput { } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -12279,7 +12497,7 @@ export interface ProvisionDatabaseWithUserInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; @@ -12288,7 +12506,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; @@ -12297,7 +12515,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -12337,11 +12555,6 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} export interface CreateUserDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -12363,23 +12576,6 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -12387,15 +12583,6 @@ export interface RequestCrossOriginTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface ProvisionTableInput { clientMutationId?: string; databaseId?: string; @@ -12412,6 +12599,14 @@ export interface ProvisionTableInput { uniqueConstraints?: unknown; description?: string; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface CreateDefaultIdsModuleInput { clientMutationId?: string; /** The `DefaultIdsModule` to be created by this mutation. */ @@ -12422,16 +12617,6 @@ export interface DefaultIdsModuleInput { id?: string; databaseId: string; } -export interface CreateRoleTypeInput { - clientMutationId?: string; - /** The `RoleType` to be created by this mutation. */ - roleType: RoleTypeInput; -} -/** An input for mutations affecting `RoleType` */ -export interface RoleTypeInput { - id: number; - name: string; -} export interface CreateAppLimitCreditRedemptionInput { clientMutationId?: string; /** The `AppLimitCreditRedemption` to be created by this mutation. */ @@ -12556,7 +12741,7 @@ export interface RefInput { id?: string; /** The name of the ref or branch */ name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; } @@ -12571,19 +12756,32 @@ export interface StoreInput { id?: string; /** The name of the store (e.g., metaschema, migrations). */ name: string; - /** The database this store belongs to. */ - databaseId: string; + /** The scope this store belongs to. */ + scopeId: string; /** The current head tree_id for this store. */ hash?: string; createdAt?: string; } -export interface CreateEncryptedSecretsModuleInput { +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + /** The `ConfigSecretsOrgModule` to be created by this mutation. */ + configSecretsOrgModule: ConfigSecretsOrgModuleInput; +} +/** An input for mutations affecting `ConfigSecretsOrgModule` */ +export interface ConfigSecretsOrgModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface CreateConfigSecretsUserModuleInput { clientMutationId?: string; - /** The `EncryptedSecretsModule` to be created by this mutation. */ - encryptedSecretsModule: EncryptedSecretsModuleInput; + /** The `ConfigSecretsUserModule` to be created by this mutation. */ + configSecretsUserModule: ConfigSecretsUserModuleInput; } -/** An input for mutations affecting `EncryptedSecretsModule` */ -export interface EncryptedSecretsModuleInput { +/** An input for mutations affecting `ConfigSecretsUserModule` */ +export interface ConfigSecretsUserModuleInput { id?: string; databaseId: string; schemaId?: string; @@ -12663,22 +12861,15 @@ export interface SiteModuleInput { /** JSON configuration data for this module */ data: unknown; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - /** The `AppLimitCreditCode` to be created by this mutation. */ - appLimitCreditCode: AppLimitCreditCodeInput; + /** The `RoleType` to be created by this mutation. */ + roleType: RoleTypeInput; } -/** An input for mutations affecting `AppLimitCreditCode` */ -export interface AppLimitCreditCodeInput { - id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; +/** An input for mutations affecting `RoleType` */ +export interface RoleTypeInput { + id: number; + name: string; } export interface CreateSchemaGrantInput { clientMutationId?: string; @@ -12799,39 +12990,16 @@ export interface OrgPermissionDefaultInput { /** References the entity these default permissions apply to */ entityId: string; } -export interface CreateAppPermissionInput { - clientMutationId?: string; - /** The `AppPermission` to be created by this mutation. */ - appPermission: AppPermissionInput; -} -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface CreateOrgPermissionInput { +export interface CreateMigrateFileInput { clientMutationId?: string; - /** The `OrgPermission` to be created by this mutation. */ - orgPermission: OrgPermissionInput; + /** The `MigrateFile` to be created by this mutation. */ + migrateFile: MigrateFileInput; } -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { +/** An input for mutations affecting `MigrateFile` */ +export interface MigrateFileInput { id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; } export interface CreateAppLimitCapsDefaultInput { clientMutationId?: string; @@ -12859,67 +13027,6 @@ export interface OrgLimitCapsDefaultInput { /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ max?: string; } -export interface CreateAppLimitCapInput { - clientMutationId?: string; - /** The `AppLimitCap` to be created by this mutation. */ - appLimitCap: AppLimitCapInput; -} -/** An input for mutations affecting `AppLimitCap` */ -export interface AppLimitCapInput { - id?: string; - /** Name identifier of the cap being overridden */ - name: string; - /** Entity this cap override applies to */ - entityId: string; - /** Override cap value for this entity */ - max?: string; -} -export interface CreateOrgLimitCapInput { - clientMutationId?: string; - /** The `OrgLimitCap` to be created by this mutation. */ - orgLimitCap: OrgLimitCapInput; -} -/** An input for mutations affecting `OrgLimitCap` */ -export interface OrgLimitCapInput { - id?: string; - /** Name identifier of the cap being overridden */ - name: string; - /** Entity this cap override applies to */ - entityId: string; - /** Override cap value for this entity */ - max?: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - /** The `MembershipType` to be created by this mutation. */ - membershipType: MembershipTypeInput; -} -/** An input for mutations affecting `MembershipType` */ -export interface MembershipTypeInput { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name: string; - /** Description of what this membership type represents */ - description: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; -} -export interface CreateMigrateFileInput { - clientMutationId?: string; - /** The `MigrateFile` to be created by this mutation. */ - migrateFile: MigrateFileInput; -} -/** An input for mutations affecting `MigrateFile` */ -export interface MigrateFileInput { - id?: string; - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; -} export interface CreateDefaultPrivilegeInput { clientMutationId?: string; /** The `DefaultPrivilege` to be created by this mutation. */ @@ -13063,6 +13170,23 @@ export interface WebauthnCredentialsModuleInput { ownerTableId?: string; tableName?: string; } +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + /** The `AppMembershipDefault` to be created by this mutation. */ + appMembershipDefault: AppMembershipDefaultInput; +} +/** An input for mutations affecting `AppMembershipDefault` */ +export interface AppMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; +} export interface CreateOrgAdminGrantInput { clientMutationId?: string; /** The `OrgAdminGrant` to be created by this mutation. */ @@ -13077,9 +13201,26 @@ export interface OrgAdminGrantInput { actorId: string; /** The entity (org or group) this admin grant applies to */ entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + /** The `OrgMembershipDefault` to be created by this mutation. */ + orgMembershipDefault: OrgMembershipDefaultInput; +} +/** An input for mutations affecting `OrgMembershipDefault` */ +export interface OrgMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ + entityId: string; } export interface CreateOrgOwnerGrantInput { clientMutationId?: string; @@ -13114,6 +13255,38 @@ export interface NodeTypeRegistryInput { parameterSchema?: unknown; tags?: string[]; } +export interface CreateAppLimitCreditCodeItemInput { + clientMutationId?: string; + /** The `AppLimitCreditCodeItem` to be created by this mutation. */ + appLimitCreditCodeItem: AppLimitCreditCodeItemInput; +} +/** An input for mutations affecting `AppLimitCreditCodeItem` */ +export interface AppLimitCreditCodeItemInput { + id?: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId: string; + /** Number of credits this item grants per redemption */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; +} +export interface CreateAppLimitCapInput { + clientMutationId?: string; + /** The `AppLimitCap` to be created by this mutation. */ + appLimitCap: AppLimitCapInput; +} +/** An input for mutations affecting `AppLimitCap` */ +export interface AppLimitCapInput { + id?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; /** The `AppLimitDefault` to be created by this mutation. */ @@ -13129,6 +13302,21 @@ export interface AppLimitDefaultInput { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string; } +export interface CreateOrgLimitCapInput { + clientMutationId?: string; + /** The `OrgLimitCap` to be created by this mutation. */ + orgLimitCap: OrgLimitCapInput; +} +/** An input for mutations affecting `OrgLimitCap` */ +export interface OrgLimitCapInput { + id?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; +} export interface CreateOrgLimitDefaultInput { clientMutationId?: string; /** The `OrgLimitDefault` to be created by this mutation. */ @@ -13144,40 +13332,6 @@ export interface OrgLimitDefaultInput { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string; } -export interface CreateAppLimitCreditCodeItemInput { - clientMutationId?: string; - /** The `AppLimitCreditCodeItem` to be created by this mutation. */ - appLimitCreditCodeItem: AppLimitCreditCodeItemInput; -} -/** An input for mutations affecting `AppLimitCreditCodeItem` */ -export interface AppLimitCreditCodeItemInput { - id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId: string; - /** Number of credits this item grants per redemption */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - /** The `AppLimitWarning` to be created by this mutation. */ - appLimitWarning: AppLimitWarningInput; -} -/** An input for mutations affecting `AppLimitWarning` */ -export interface AppLimitWarningInput { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier: string; -} export interface CreateUserConnectedAccountInput { clientMutationId?: string; /** The `UserConnectedAccount` to be created by this mutation. */ @@ -13226,6 +13380,27 @@ export interface CryptoAddressesModuleInput { tableName: string; cryptoNetwork?: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + /** The `OrgChartEdge` to be created by this mutation. */ + orgChartEdge: OrgChartEdgeInput; +} +/** An input for mutations affecting `OrgChartEdge` */ +export interface OrgChartEdgeInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} export interface CreateCryptoAddressInput { clientMutationId?: string; /** The `CryptoAddress` to be created by this mutation. */ @@ -13288,25 +13463,6 @@ export interface AppLimitCreditInput { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string; } -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - /** The `OrgLimitWarning` to be created by this mutation. */ - orgLimitWarning: OrgLimitWarningInput; -} -/** An input for mutations affecting `OrgLimitWarning` */ -export interface OrgLimitWarningInput { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; -} export interface CreateOrgLimitCreditInput { clientMutationId?: string; /** The `OrgLimitCredit` to be created by this mutation. */ @@ -13336,32 +13492,80 @@ export interface CreateObjectInput { /** An input for mutations affecting `Object` */ export interface ObjectInput { id: string; - databaseId: string; + scopeId: string; kids?: string[]; ktree?: string[]; data?: unknown; frzn?: boolean; createdAt?: string; } -export interface CreateSiteMetadatumInput { +export interface CreateAppPermissionInput { clientMutationId?: string; - /** The `SiteMetadatum` to be created by this mutation. */ - siteMetadatum: SiteMetadatumInput; + /** The `AppPermission` to be created by this mutation. */ + appPermission: AppPermissionInput; } -/** An input for mutations affecting `SiteMetadatum` */ -export interface SiteMetadatumInput { - /** Unique identifier for this metadata record */ +/** An input for mutations affecting `AppPermission` */ +export interface AppPermissionInput { id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Site this metadata belongs to */ - siteId: string; - /** Page title for SEO (max 120 characters) */ - title?: string; - /** Meta description for SEO and social sharing (max 120 characters) */ + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; - /** Open Graph image for social media previews */ - ogImage?: ConstructiveInternalTypeImage; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + /** The `OrgPermission` to be created by this mutation. */ + orgPermission: OrgPermissionInput; +} +/** An input for mutations affecting `OrgPermission` */ +export interface OrgPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + /** The `AppLimitCreditCode` to be created by this mutation. */ + appLimitCreditCode: AppLimitCreditCodeInput; +} +/** An input for mutations affecting `AppLimitCreditCode` */ +export interface AppLimitCreditCodeInput { + id?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; +} +export interface CreateAppLimitWarningInput { + clientMutationId?: string; + /** The `AppLimitWarning` to be created by this mutation. */ + appLimitWarning: AppLimitWarningInput; +} +/** An input for mutations affecting `AppLimitWarning` */ +export interface AppLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; } export interface CreateFullTextSearchInput { clientMutationId?: string; @@ -13408,8 +13612,8 @@ export interface CommitInput { id?: string; /** The commit message */ message?: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; storeId: string; /** Parent commits */ parentIds?: string[]; @@ -13421,6 +13625,26 @@ export interface CommitInput { treeId?: string; date?: string; } +export interface CreateSiteMetadatumInput { + clientMutationId?: string; + /** The `SiteMetadatum` to be created by this mutation. */ + siteMetadatum: SiteMetadatumInput; +} +/** An input for mutations affecting `SiteMetadatum` */ +export interface SiteMetadatumInput { + /** Unique identifier for this metadata record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this metadata belongs to */ + siteId: string; + /** Page title for SEO (max 120 characters) */ + title?: string; + /** Meta description for SEO and social sharing (max 120 characters) */ + description?: string; + /** Open Graph image for social media previews */ + ogImage?: ConstructiveInternalTypeImage; +} export interface CreatePubkeySettingInput { clientMutationId?: string; /** The `PubkeySetting` to be created by this mutation. */ @@ -13540,69 +13764,51 @@ export interface AppClaimedInviteInput { id?: string; /** Optional JSON payload captured at the time the invite was claimed */ data?: unknown; - /** User ID of the original invitation sender */ - senderId?: string; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - /** The `AppMembershipDefault` to be created by this mutation. */ - appMembershipDefault: AppMembershipDefaultInput; -} -/** An input for mutations affecting `AppMembershipDefault` */ -export interface AppMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - /** The `OrgMembershipDefault` to be created by this mutation. */ - orgMembershipDefault: OrgMembershipDefaultInput; -} -/** An input for mutations affecting `OrgMembershipDefault` */ -export interface OrgMembershipDefaultInput { - id?: string; + /** User ID of the original invitation sender */ + senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ + receiverId?: string; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId: string; } -export interface CreateAuditLogInput { +export interface CreateOrgLimitWarningInput { clientMutationId?: string; - /** The `AuditLog` to be created by this mutation. */ - auditLog: AuditLogInput; + /** The `OrgLimitWarning` to be created by this mutation. */ + orgLimitWarning: OrgLimitWarningInput; } -/** An input for mutations affecting `AuditLog` */ -export interface AuditLogInput { +/** An input for mutations affecting `OrgLimitWarning` */ +export interface OrgLimitWarningInput { id?: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event: string; - /** User who performed the authentication action; NULL if user was deleted */ - actorId?: string; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin; - /** Browser or client user-agent string from the request */ - userAgent?: string; - /** IP address of the client that initiated the auth event */ - ipAddress?: string; - /** Whether the authentication attempt succeeded */ - success: boolean; - /** Timestamp when the audit event was recorded */ - createdAt?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + /** The `MembershipType` to be created by this mutation. */ + membershipType: MembershipTypeInput; +} +/** An input for mutations affecting `MembershipType` */ +export interface MembershipTypeInput { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name: string; + /** Description of what this membership type represents */ + description: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; } export interface CreateDomainInput { clientMutationId?: string; @@ -13706,26 +13912,6 @@ export interface AgentThreadInput { /** Current status of this record */ status?: string; } -export interface CreateEmailInput { - clientMutationId?: string; - /** The `Email` to be created by this mutation. */ - email: EmailInput; -} -/** An input for mutations affecting `Email` */ -export interface EmailInput { - id?: string; - ownerId?: string; - /** The email address */ - email: ConstructiveInternalTypeEmail; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean; - /** Whether this is the user's primary email address */ - isPrimary?: boolean; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} export interface CreateAppGrantInput { clientMutationId?: string; /** The `AppGrant` to be created by this mutation. */ @@ -13762,98 +13948,6 @@ export interface OrgClaimedInviteInput { updatedAt?: string; entityId: string; } -export interface CreateAppLimitEventInput { - clientMutationId?: string; - /** The `AppLimitEvent` to be created by this mutation. */ - appLimitEvent: AppLimitEventInput; -} -/** An input for mutations affecting `AppLimitEvent` */ -export interface AppLimitEventInput { - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - /** The `OrgLimitEvent` to be created by this mutation. */ - orgLimitEvent: OrgLimitEventInput; -} -/** An input for mutations affecting `OrgLimitEvent` */ -export interface OrgLimitEventInput { - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} -export interface CreateOrgChartEdgeInput { - clientMutationId?: string; - /** The `OrgChartEdge` to be created by this mutation. */ - orgChartEdge: OrgChartEdgeInput; -} -/** An input for mutations affecting `OrgChartEdge` */ -export interface OrgChartEdgeInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} -export interface CreatePartitionInput { - clientMutationId?: string; - /** The `Partition` to be created by this mutation. */ - partition: PartitionInput; -} -/** An input for mutations affecting `Partition` */ -export interface PartitionInput { - id?: string; - databaseId: string; - tableId: string; - strategy: string; - partitionKeyId: string; - interval?: string; - retention?: string; - premake?: number; - namingPattern?: string; - createdAt?: string; - updatedAt?: string; -} export interface CreateBlueprintConstructionInput { clientMutationId?: string; /** The `BlueprintConstruction` to be created by this mutation. */ @@ -13922,6 +14016,33 @@ export interface SessionsModuleInput { sessionCredentialsTable?: string; authSettingsTable?: string; } +export interface CreateOrgMemberProfileInput { + clientMutationId?: string; + /** The `OrgMemberProfile` to be created by this mutation. */ + orgMemberProfile: OrgMemberProfileInput; +} +/** An input for mutations affecting `OrgMemberProfile` */ +export interface OrgMemberProfileInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** References the membership this profile belongs to (1:1) */ + membershipId: string; + /** References the entity this profile belongs to (used for RLS lookups) */ + entityId: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId: string; + /** Display name shown to other entity members */ + displayName?: string; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string; + /** Job title or role description visible to other entity members */ + title?: string; + /** Short biography visible to other entity members */ + bio?: string; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage; +} export interface CreateOrgGrantInput { clientMutationId?: string; /** The `OrgGrant` to be created by this mutation. */ @@ -13942,6 +14063,49 @@ export interface OrgGrantInput { createdAt?: string; updatedAt?: string; } +export interface CreateAuditLogInput { + clientMutationId?: string; + /** The `AuditLog` to be created by this mutation. */ + auditLog: AuditLogInput; +} +/** An input for mutations affecting `AuditLog` */ +export interface AuditLogInput { + id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ + event: string; + /** User who performed the authentication action; NULL if user was deleted */ + actorId?: string; + /** Request origin (domain) where the auth event occurred */ + origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ + userAgent?: string; + /** IP address of the client that initiated the auth event */ + ipAddress?: string; + /** Whether the authentication attempt succeeded */ + success: boolean; + /** Timestamp when the audit event was recorded */ + createdAt?: string; +} +export interface CreatePartitionInput { + clientMutationId?: string; + /** The `Partition` to be created by this mutation. */ + partition: PartitionInput; +} +/** An input for mutations affecting `Partition` */ +export interface PartitionInput { + id?: string; + databaseId: string; + tableId: string; + strategy: string; + partitionKeyId: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateBlueprintInput { clientMutationId?: string; /** The `Blueprint` to be created by this mutation. */ @@ -13994,6 +14158,26 @@ export interface DenormalizedTableFieldInput { funcName?: string; funcOrder?: number; } +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + /** The `InferenceLogModule` to be created by this mutation. */ + inferenceLogModule: InferenceLogModuleInput; +} +/** An input for mutations affecting `InferenceLogModule` */ +export interface InferenceLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + prefix?: string; +} export interface CreateRateLimitMetersModuleInput { clientMutationId?: string; /** The `RateLimitMetersModule` to be created by this mutation. */ @@ -14055,61 +14239,25 @@ export interface PlansModuleInput { applyPlanAggregateFunction?: string; prefix?: string; } -export interface CreateAppLimitInput { +export interface CreateEmailInput { clientMutationId?: string; - /** The `AppLimit` to be created by this mutation. */ - appLimit: AppLimitInput; + /** The `Email` to be created by this mutation. */ + email: EmailInput; } -/** An input for mutations affecting `AppLimit` */ -export interface AppLimitInput { +/** An input for mutations affecting `Email` */ +export interface EmailInput { id?: string; - /** Name identifier of the limit being tracked */ + ownerId?: string; + /** The email address */ + email: ConstructiveInternalTypeEmail; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean; + /** Whether this is the user's primary email address */ + isPrimary?: boolean; + /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - /** The `OrgMemberProfile` to be created by this mutation. */ - orgMemberProfile: OrgMemberProfileInput; -} -/** An input for mutations affecting `OrgMemberProfile` */ -export interface OrgMemberProfileInput { - id?: string; createdAt?: string; updatedAt?: string; - /** References the membership this profile belongs to (1:1) */ - membershipId: string; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId: string; - /** References the user who owns this profile (for self-edit RLS) */ - actorId: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; } export interface CreateSqlActionInput { clientMutationId?: string; @@ -14132,6 +14280,64 @@ export interface SqlActionInput { actionId?: string; actorId?: string; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + /** The `AppLimitEvent` to be created by this mutation. */ + appLimitEvent: AppLimitEventInput; +} +/** An input for mutations affecting `AppLimitEvent` */ +export interface AppLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + /** The `OrgLimitEvent` to be created by this mutation. */ + orgLimitEvent: OrgLimitEventInput; +} +/** An input for mutations affecting `OrgLimitEvent` */ +export interface OrgLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} export interface CreateDatabaseTransferInput { clientMutationId?: string; /** The `DatabaseTransfer` to be created by this mutation. */ @@ -14190,28 +14396,6 @@ export interface DatabaseSettingInput { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: unknown; } -export interface CreateBillingModuleInput { - clientMutationId?: string; - /** The `BillingModule` to be created by this mutation. */ - billingModule: BillingModuleInput; -} -/** An input for mutations affecting `BillingModule` */ -export interface BillingModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - recordUsageFunction?: string; - prefix?: string; -} export interface CreateCryptoAuthModuleInput { clientMutationId?: string; /** The `CryptoAuthModule` to be created by this mutation. */ @@ -14287,6 +14471,37 @@ export interface InvitesModuleInput { membershipType: number; entityTableId?: string; } +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + /** The `OrgMembershipSetting` to be created by this mutation. */ + orgMembershipSetting: OrgMembershipSettingInput; +} +/** An input for mutations affecting `OrgMembershipSetting` */ +export interface OrgMembershipSettingInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; +} export interface CreateSecureTableProvisionInput { clientMutationId?: string; /** The `SecureTableProvision` to be created by this mutation. */ @@ -14317,44 +14532,13 @@ export interface SecureTableProvisionInput { /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[]; } -export interface CreateOrgLimitAggregateInput { - clientMutationId?: string; - /** The `OrgLimitAggregate` to be created by this mutation. */ - orgLimitAggregate: OrgLimitAggregateInput; -} -/** An input for mutations affecting `OrgLimitAggregate` */ -export interface OrgLimitAggregateInput { - id?: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string; - /** Entity (org) whose aggregate usage is being tracked */ - entityId: string; - /** Current aggregate usage count for this entity and limit */ - num?: string; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string; -} -export interface CreateOrgLimitInput { +export interface CreateAppLimitInput { clientMutationId?: string; - /** The `OrgLimit` to be created by this mutation. */ - orgLimit: OrgLimitInput; + /** The `AppLimit` to be created by this mutation. */ + appLimit: AppLimitInput; } -/** An input for mutations affecting `OrgLimit` */ -export interface OrgLimitInput { +/** An input for mutations affecting `AppLimit` */ +export interface AppLimitInput { id?: string; /** Name identifier of the limit being tracked */ name?: string; @@ -14376,28 +14560,6 @@ export interface OrgLimitInput { purchasedCredits?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - entityId: string; -} -export interface CreateAstMigrationInput { - clientMutationId?: string; - /** The `AstMigration` to be created by this mutation. */ - astMigration: AstMigrationInput; -} -/** An input for mutations affecting `AstMigration` */ -export interface AstMigrationInput { - id?: number; - databaseId?: string; - name?: string; - requires?: string[]; - payload?: unknown; - deploys?: string; - deploy?: unknown; - revert?: unknown; - verify?: unknown; - createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; } export interface CreateApiSettingInput { clientMutationId?: string; @@ -14457,20 +14619,66 @@ export interface EnumInput { scope?: number; tags?: string[]; } -export interface CreateUserInput { +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + /** The `OrgLimitAggregate` to be created by this mutation. */ + orgLimitAggregate: OrgLimitAggregateInput; +} +/** An input for mutations affecting `OrgLimitAggregate` */ +export interface OrgLimitAggregateInput { + id?: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string; + /** Entity (org) whose aggregate usage is being tracked */ + entityId: string; + /** Current aggregate usage count for this entity and limit */ + num?: string; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string; +} +export interface CreateOrgLimitInput { clientMutationId?: string; - /** The `User` to be created by this mutation. */ - user: UserInput; + /** The `OrgLimit` to be created by this mutation. */ + orgLimit: OrgLimitInput; } -/** An input for mutations affecting `User` */ -export interface UserInput { +/** An input for mutations affecting `OrgLimit` */ +export interface OrgLimitInput { id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - createdAt?: string; - updatedAt?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + entityId: string; } export interface CreateViewInput { clientMutationId?: string; @@ -14496,6 +14704,30 @@ export interface ViewInput { scope?: number; tags?: string[]; } +export interface CreateBillingModuleInput { + clientMutationId?: string; + /** The `BillingModule` to be created by this mutation. */ + billingModule: BillingModuleInput; +} +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + recordUsageFunction?: string; + prefix?: string; +} export interface CreateWebauthnAuthModuleInput { clientMutationId?: string; /** The `WebauthnAuthModule` to be created by this mutation. */ @@ -14520,67 +14752,54 @@ export interface WebauthnAuthModuleInput { residentKey?: string; challengeExpiry?: IntervalInput; } -export interface CreateAppInviteInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - /** The `AppInvite` to be created by this mutation. */ - appInvite: AppInviteInput; + /** The `AppMembership` to be created by this mutation. */ + appMembership: AppMembershipInput; } -/** An input for mutations affecting `AppInvite` */ -export interface AppInviteInput { +/** An input for mutations affecting `AppMembership` */ +export interface AppMembershipInput { id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId: string; + profileId?: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateUserInput { clientMutationId?: string; - /** The `OrgMembershipSetting` to be created by this mutation. */ - orgMembershipSetting: OrgMembershipSettingInput; + /** The `User` to be created by this mutation. */ + user: UserInput; } -/** An input for mutations affecting `OrgMembershipSetting` */ -export interface OrgMembershipSettingInput { +/** An input for mutations affecting `User` */ +export interface UserInput { id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ - entityId: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; } export interface CreateAppInput { clientMutationId?: string; @@ -14684,6 +14903,27 @@ export interface PermissionsModuleInput { getByMask?: string; getMaskByName?: string; } +export interface CreateAstMigrationInput { + clientMutationId?: string; + /** The `AstMigration` to be created by this mutation. */ + astMigration: AstMigrationInput; +} +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; + databaseId?: string; + name?: string; + requires?: string[]; + payload?: unknown; + deploys?: string; + deploy?: unknown; + revert?: unknown; + verify?: unknown; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} export interface CreateWebauthnCredentialInput { clientMutationId?: string; /** The `WebauthnCredential` to be created by this mutation. */ @@ -14894,13 +15134,13 @@ export interface WebauthnSettingInput { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string; } -export interface CreateAppMembershipInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - /** The `AppMembership` to be created by this mutation. */ - appMembership: AppMembershipInput; + /** The `OrgMembership` to be created by this mutation. */ + orgMembership: OrgMembershipInput; } -/** An input for mutations affecting `AppMembership` */ -export interface AppMembershipInput { +/** An input for mutations affecting `OrgMembership` */ +export interface OrgMembershipInput { id?: string; createdAt?: string; updatedAt?: string; @@ -14912,10 +15152,10 @@ export interface AppMembershipInput { isBanned?: boolean; /** Whether this membership is temporarily disabled */ isDisabled?: boolean; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether the actor has admin privileges on this entity */ @@ -14926,6 +15166,10 @@ export interface AppMembershipInput { granted?: string; /** References the user who holds this membership */ actorId: string; + /** References the entity (org or group) this membership belongs to */ + entityId: string; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean; profileId?: string; } export interface CreateSchemaInput { @@ -14977,20 +15221,18 @@ export interface IndexInput { createdAt?: string; updatedAt?: string; } -export interface CreateOrgInviteInput { +export interface CreateAppInviteInput { clientMutationId?: string; - /** The `OrgInvite` to be created by this mutation. */ - orgInvite: OrgInviteInput; + /** The `AppInvite` to be created by this mutation. */ + appInvite: AppInviteInput; } -/** An input for mutations affecting `OrgInvite` */ -export interface OrgInviteInput { +/** An input for mutations affecting `AppInvite` */ +export interface AppInviteInput { id?: string; /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; /** User ID of the member who sent this invitation */ senderId?: string; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string; /** Unique random hex token used to redeem this invitation */ inviteToken?: string; /** Whether this invitation is still valid and can be redeemed */ @@ -15005,13 +15247,10 @@ export interface OrgInviteInput { data?: unknown; /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ profileId?: string; - /** Whether the resulting membership should be read-only when this invite is claimed */ - isReadOnly?: boolean; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; - entityId: string; } export interface CreateBillingProviderModuleInput { clientMutationId?: string; @@ -15135,53 +15374,15 @@ export interface ProfilesModuleInput { profileGrantsTableId?: string; profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - prefix?: string; -} -export interface CreateOrgMembershipInput { - clientMutationId?: string; - /** The `OrgMembership` to be created by this mutation. */ - orgMembership: OrgMembershipInput; -} -/** An input for mutations affecting `OrgMembership` */ -export interface OrgMembershipInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId: string; - /** References the entity (org or group) this membership belongs to */ - entityId: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + membershipType: number; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + prefix?: string; } export interface CreateEmbeddingChunkInput { clientMutationId?: string; @@ -15238,6 +15439,42 @@ export interface ForeignKeyConstraintInput { createdAt?: string; updatedAt?: string; } +export interface CreateOrgInviteInput { + clientMutationId?: string; + /** The `OrgInvite` to be created by this mutation. */ + orgInvite: OrgInviteInput; +} +/** An input for mutations affecting `OrgInvite` */ +export interface OrgInviteInput { + id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Whether the resulting membership should be read-only when this invite is claimed */ + isReadOnly?: boolean; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} export interface CreateRelationProvisionInput { clientMutationId?: string; /** The `RelationProvision` to be created by this mutation. */ @@ -15462,36 +15699,34 @@ export interface EntityTypeProvisionInput { */ hasInviteAchievements?: boolean; /** - * Optional jsonb object for storage module configuration and initial bucket seeding. - * Only used when has_storage = true; ignored otherwise. NULL = use defaults. - * Recognized keys (all optional): - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this scope - * - allowed_origins (text[]) default CORS origins for all buckets in this scope - * - buckets (jsonb[]) array of initial bucket definitions to seed - * Each bucket in the buckets array recognizes: - * - name (text, required) bucket name e.g. 'documents' - * - description (text) human-readable description - * - is_public (boolean) whether files are publicly readable (default false) - * - allowed_mime_types (text[]) whitelist of MIME types (null = any) - * - max_file_size (bigint) max file size in bytes (null = use scope default) - * - allowed_origins (text[]) per-bucket CORS override - * - provisions (jsonb object) optional: customize storage tables - * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets". - * Each value uses the same shape as table_provision: - * { nodes, fields, grants, use_rls, policies }. Fanned out - * to secure_table_provision targeting the corresponding table. - * When a key includes policies[], those REPLACE the default - * storage policies for that table; tables without a key still - * get defaults. Missing "data" on policy entries is auto-populated - * with storage-specific defaults (same as table_provision). - * Example: add SearchBm25 for full-text search on files: - * {"provisions": {"files": {"nodes": [{"$type": - * "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - * Example: - * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + * Optional JSON array of storage module definitions. Each element provisions a separate + * storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + * and feature flags. Only used when has_storage = true; ignored otherwise. + * NULL = provision a single default storage module with all defaults. + * Each array element recognizes (all optional): + * - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb */ storageConfig?: unknown; /** @@ -15708,47 +15943,6 @@ export interface LimitsModuleInput { entityTableId?: string; actorTableId?: string; } -export interface CreateStorageModuleInput { - clientMutationId?: string; - /** The `StorageModule` to be created by this mutation. */ - storageModule: StorageModuleInput; -} -/** An input for mutations affecting `StorageModule` */ -export interface StorageModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - membershipType?: number; - policies?: unknown; - skipDefaultPolicyTables?: string[]; - entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; -} export interface CreateMembershipsModuleInput { clientMutationId?: string; /** The `MembershipsModule` to be created by this mutation. */ @@ -15791,6 +15985,48 @@ export interface MembershipsModuleInput { entityIdsFunction?: string; memberProfilesTableId?: string; } +export interface CreateStorageModuleInput { + clientMutationId?: string; + /** The `StorageModule` to be created by this mutation. */ + storageModule: StorageModuleInput; +} +/** An input for mutations affecting `StorageModule` */ +export interface StorageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + membershipType?: number; + storageKey?: string; + policies?: unknown; + skipDefaultPolicyTables?: string[]; + entityTableId?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; +} export interface CreateEventsModuleInput { clientMutationId?: string; /** The `EventsModule` to be created by this mutation. */ @@ -15849,17 +16085,6 @@ export interface DefaultIdsModulePatch { id?: string; databaseId?: string; } -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - /** An object where the defined keys will be set on the `RoleType` being updated. */ - roleTypePatch: RoleTypePatch; -} -/** Represents an update to a `RoleType`. Fields that are set will be updated. */ -export interface RoleTypePatch { - id?: number; - name?: string; -} export interface UpdateAppLimitCreditRedemptionInput { clientMutationId?: string; id: string; @@ -15974,7 +16199,7 @@ export interface UpdateRefInput { clientMutationId?: string; /** The primary unique identifier for the ref. */ id: string; - databaseId: string; + scopeId: string; /** An object where the defined keys will be set on the `Ref` being updated. */ refPatch: RefPatch; } @@ -15984,7 +16209,7 @@ export interface RefPatch { id?: string; /** The name of the ref or branch */ name?: string; - databaseId?: string; + scopeId?: string; storeId?: string; commitId?: string; } @@ -16001,20 +16226,34 @@ export interface StorePatch { id?: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string; - /** The database this store belongs to. */ - databaseId?: string; + /** The scope this store belongs to. */ + scopeId?: string; /** The current head tree_id for this store. */ hash?: string; createdAt?: string; } -export interface UpdateEncryptedSecretsModuleInput { +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ConfigSecretsOrgModule` being updated. */ + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +/** Represents an update to a `ConfigSecretsOrgModule`. Fields that are set will be updated. */ +export interface ConfigSecretsOrgModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface UpdateConfigSecretsUserModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `EncryptedSecretsModule` being updated. */ - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + /** An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. */ + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; } -/** Represents an update to a `EncryptedSecretsModule`. Fields that are set will be updated. */ -export interface EncryptedSecretsModulePatch { +/** Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. */ +export interface ConfigSecretsUserModulePatch { id?: string; databaseId?: string; schemaId?: string; @@ -16101,23 +16340,16 @@ export interface SiteModulePatch { /** JSON configuration data for this module */ data?: unknown; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateRoleTypeInput { clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ - appLimitCreditCodePatch: AppLimitCreditCodePatch; + id: number; + /** An object where the defined keys will be set on the `RoleType` being updated. */ + roleTypePatch: RoleTypePatch; } -/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ -export interface AppLimitCreditCodePatch { - id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; +/** Represents an update to a `RoleType`. Fields that are set will be updated. */ +export interface RoleTypePatch { + id?: number; + name?: string; } export interface UpdateSchemaGrantInput { clientMutationId?: string; @@ -16246,42 +16478,6 @@ export interface OrgPermissionDefaultPatch { /** References the entity these default permissions apply to */ entityId?: string; } -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppPermission` being updated. */ - appPermissionPatch: AppPermissionPatch; -} -/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ -export interface AppPermissionPatch { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgPermission` being updated. */ - orgPermissionPatch: OrgPermissionPatch; -} -/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ -export interface OrgPermissionPatch { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} export interface UpdateAppLimitCapsDefaultInput { clientMutationId?: string; id: string; @@ -16296,73 +16492,19 @@ export interface AppLimitCapsDefaultPatch { /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ max?: string; } -export interface UpdateOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. */ - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; -} -/** Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. */ -export interface OrgLimitCapsDefaultPatch { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface UpdateAppLimitCapInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCap` being updated. */ - appLimitCapPatch: AppLimitCapPatch; -} -/** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */ -export interface AppLimitCapPatch { - id?: string; - /** Name identifier of the cap being overridden */ - name?: string; - /** Entity this cap override applies to */ - entityId?: string; - /** Override cap value for this entity */ - max?: string; -} -export interface UpdateOrgLimitCapInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCap` being updated. */ - orgLimitCapPatch: OrgLimitCapPatch; -} -/** Represents an update to a `OrgLimitCap`. Fields that are set will be updated. */ -export interface OrgLimitCapPatch { - id?: string; - /** Name identifier of the cap being overridden */ - name?: string; - /** Entity this cap override applies to */ - entityId?: string; - /** Override cap value for this entity */ - max?: string; -} -export interface UpdateMembershipTypeInput { +export interface UpdateOrgLimitCapsDefaultInput { clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** An object where the defined keys will be set on the `MembershipType` being updated. */ - membershipTypePatch: MembershipTypePatch; + id: string; + /** An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. */ + orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; } -/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ -export interface MembershipTypePatch { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id?: number; - /** Human-readable name of the membership type */ +/** Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. */ +export interface OrgLimitCapsDefaultPatch { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ name?: string; - /** Description of what this membership type represents */ - description?: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; } export interface UpdateDefaultPrivilegeInput { clientMutationId?: string; @@ -16517,6 +16659,24 @@ export interface WebauthnCredentialsModulePatch { ownerTableId?: string; tableName?: string; } +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ +export interface AppMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; +} export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; @@ -16536,6 +16696,24 @@ export interface OrgAdminGrantPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ +export interface OrgMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ + entityId?: string; +} export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; @@ -16571,6 +16749,40 @@ export interface NodeTypeRegistryPatch { parameterSchema?: unknown; tags?: string[]; } +export interface UpdateAppLimitCreditCodeItemInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; +} +/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ +export interface AppLimitCreditCodeItemPatch { + id?: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId?: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId?: string; + /** Number of credits this item grants per redemption */ + amount?: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; +} +export interface UpdateAppLimitCapInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCap` being updated. */ + appLimitCapPatch: AppLimitCapPatch; +} +/** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */ +export interface AppLimitCapPatch { + id?: string; + /** Name identifier of the cap being overridden */ + name?: string; + /** Entity this cap override applies to */ + entityId?: string; + /** Override cap value for this entity */ + max?: string; +} export interface UpdateAppLimitDefaultInput { clientMutationId?: string; id: string; @@ -16587,6 +16799,22 @@ export interface AppLimitDefaultPatch { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string; } +export interface UpdateOrgLimitCapInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitCap` being updated. */ + orgLimitCapPatch: OrgLimitCapPatch; +} +/** Represents an update to a `OrgLimitCap`. Fields that are set will be updated. */ +export interface OrgLimitCapPatch { + id?: string; + /** Name identifier of the cap being overridden */ + name?: string; + /** Entity this cap override applies to */ + entityId?: string; + /** Override cap value for this entity */ + max?: string; +} export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; id: string; @@ -16603,42 +16831,6 @@ export interface OrgLimitDefaultPatch { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string; } -export interface UpdateAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; -} -/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ -export interface AppLimitCreditCodeItemPatch { - id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string; - /** Number of credits this item grants per redemption */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */ - appLimitWarningPatch: AppLimitWarningPatch; -} -/** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */ -export interface AppLimitWarningPatch { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; -} export interface UpdateDatabaseInput { clientMutationId?: string; id: string; @@ -16673,6 +16865,28 @@ export interface CryptoAddressesModulePatch { tableName?: string; cryptoNetwork?: string; } +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ + orgChartEdgePatch: OrgChartEdgePatch; +} +/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ +export interface OrgChartEdgePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId?: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} export interface UpdateCryptoAddressInput { clientMutationId?: string; id: string; @@ -16738,26 +16952,6 @@ export interface AppLimitCreditPatch { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string; } -export interface UpdateOrgLimitWarningInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ - orgLimitWarningPatch: OrgLimitWarningPatch; -} -/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ -export interface OrgLimitWarningPatch { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; -} export interface UpdateOrgLimitCreditInput { clientMutationId?: string; id: string; @@ -16783,43 +16977,91 @@ export interface OrgLimitCreditPatch { export interface UpdateObjectInput { clientMutationId?: string; id: string; - databaseId: string; + scopeId: string; /** An object where the defined keys will be set on the `Object` being updated. */ objectPatch: ObjectPatch; } /** Represents an update to a `Object`. Fields that are set will be updated. */ export interface ObjectPatch { id?: string; - databaseId?: string; + scopeId?: string; kids?: string[]; ktree?: string[]; data?: unknown; frzn?: boolean; createdAt?: string; } -export interface UpdateSiteMetadatumInput { +export interface UpdateAppPermissionInput { clientMutationId?: string; - /** Unique identifier for this metadata record */ id: string; - /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ - siteMetadatumPatch: SiteMetadatumPatch; + /** An object where the defined keys will be set on the `AppPermission` being updated. */ + appPermissionPatch: AppPermissionPatch; } -/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ -export interface SiteMetadatumPatch { - /** Unique identifier for this metadata record */ +/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ +export interface AppPermissionPatch { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermission` being updated. */ + orgPermissionPatch: OrgPermissionPatch; +} +/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ +export interface OrgPermissionPatch { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ +export interface AppLimitCreditCodePatch { + id?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; +} +export interface UpdateAppLimitWarningInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */ + appLimitWarningPatch: AppLimitWarningPatch; +} +/** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */ +export interface AppLimitWarningPatch { id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Site this metadata belongs to */ - siteId?: string; - /** Page title for SEO (max 120 characters) */ - title?: string; - /** Meta description for SEO and social sharing (max 120 characters) */ - description?: string; - /** Open Graph image for social media previews */ - ogImage?: ConstructiveInternalTypeImage; - /** Upload for Open Graph image for social media previews */ - ogImageUpload?: File; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string; } export interface UpdateFullTextSearchInput { clientMutationId?: string; @@ -16861,8 +17103,8 @@ export interface UpdateCommitInput { clientMutationId?: string; /** The primary unique identifier for the commit. */ id: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; /** An object where the defined keys will be set on the `Commit` being updated. */ commitPatch: CommitPatch; } @@ -16872,8 +17114,8 @@ export interface CommitPatch { id?: string; /** The commit message */ message?: string; - /** The repository identifier */ - databaseId?: string; + /** The scope identifier */ + scopeId?: string; storeId?: string; /** Parent commits */ parentIds?: string[]; @@ -16885,6 +17127,30 @@ export interface CommitPatch { treeId?: string; date?: string; } +export interface UpdateSiteMetadatumInput { + clientMutationId?: string; + /** Unique identifier for this metadata record */ + id: string; + /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ + siteMetadatumPatch: SiteMetadatumPatch; +} +/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ +export interface SiteMetadatumPatch { + /** Unique identifier for this metadata record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this metadata belongs to */ + siteId?: string; + /** Page title for SEO (max 120 characters) */ + title?: string; + /** Meta description for SEO and social sharing (max 120 characters) */ + description?: string; + /** Open Graph image for social media previews */ + ogImage?: ConstructiveInternalTypeImage; + /** Upload for Open Graph image for social media previews */ + ogImageUpload?: File; +} export interface UpdatePubkeySettingInput { clientMutationId?: string; /** Unique identifier for this pubkey settings record */ @@ -17018,65 +17284,47 @@ export interface AppClaimedInvitePatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateOrgLimitWarningInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ + orgLimitWarningPatch: OrgLimitWarningPatch; } -/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ -export interface OrgMembershipDefaultPatch { +/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ +export interface OrgLimitWarningPatch { id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string; + /** Per-entity override (NULL = scope default for all entities) */ entityId?: string; } -export interface UpdateAuditLogInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AuditLog` being updated. */ - auditLogPatch: AuditLogPatch; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** An object where the defined keys will be set on the `MembershipType` being updated. */ + membershipTypePatch: MembershipTypePatch; } -/** Represents an update to a `AuditLog`. Fields that are set will be updated. */ -export interface AuditLogPatch { - id?: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event?: string; - /** User who performed the authentication action; NULL if user was deleted */ - actorId?: string; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin; - /** Browser or client user-agent string from the request */ - userAgent?: string; - /** IP address of the client that initiated the auth event */ - ipAddress?: string; - /** Whether the authentication attempt succeeded */ - success?: boolean; - /** Timestamp when the audit event was recorded */ - createdAt?: string; +/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ +export interface MembershipTypePatch { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id?: number; + /** Human-readable name of the membership type */ + name?: string; + /** Description of what this membership type represents */ + description?: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; } export interface UpdateDomainInput { clientMutationId?: string; @@ -17186,27 +17434,6 @@ export interface AgentThreadPatch { /** Current status of this record */ status?: string; } -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Email` being updated. */ - emailPatch: EmailPatch; -} -/** Represents an update to a `Email`. Fields that are set will be updated. */ -export interface EmailPatch { - id?: string; - ownerId?: string; - /** The email address */ - email?: ConstructiveInternalTypeEmail; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean; - /** Whether this is the user's primary email address */ - isPrimary?: boolean; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} export interface UpdateAppGrantInput { clientMutationId?: string; id: string; @@ -17245,48 +17472,6 @@ export interface OrgClaimedInvitePatch { updatedAt?: string; entityId?: string; } -export interface UpdateOrgChartEdgeInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ - orgChartEdgePatch: OrgChartEdgePatch; -} -/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ -export interface OrgChartEdgePatch { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId?: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} -export interface UpdatePartitionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Partition` being updated. */ - partitionPatch: PartitionPatch; -} -/** Represents an update to a `Partition`. Fields that are set will be updated. */ -export interface PartitionPatch { - id?: string; - databaseId?: string; - tableId?: string; - strategy?: string; - partitionKeyId?: string; - interval?: string; - retention?: string; - premake?: number; - namingPattern?: string; - createdAt?: string; - updatedAt?: string; -} export interface UpdateBlueprintConstructionInput { clientMutationId?: string; /** Unique identifier for this construction attempt. */ @@ -17359,6 +17544,36 @@ export interface SessionsModulePatch { sessionCredentialsTable?: string; authSettingsTable?: string; } +export interface UpdateOrgMemberProfileInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */ + orgMemberProfilePatch: OrgMemberProfilePatch; +} +/** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */ +export interface OrgMemberProfilePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** References the membership this profile belongs to (1:1) */ + membershipId?: string; + /** References the entity this profile belongs to (used for RLS lookups) */ + entityId?: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId?: string; + /** Display name shown to other entity members */ + displayName?: string; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string; + /** Job title or role description visible to other entity members */ + title?: string; + /** Short biography visible to other entity members */ + bio?: string; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage; + /** Upload for Profile picture visible to other entity members */ + profilePictureUpload?: File; +} export interface UpdateOrgGrantInput { clientMutationId?: string; id: string; @@ -17380,6 +17595,51 @@ export interface OrgGrantPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateAuditLogInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AuditLog` being updated. */ + auditLogPatch: AuditLogPatch; +} +/** Represents an update to a `AuditLog`. Fields that are set will be updated. */ +export interface AuditLogPatch { + id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ + event?: string; + /** User who performed the authentication action; NULL if user was deleted */ + actorId?: string; + /** Request origin (domain) where the auth event occurred */ + origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ + userAgent?: string; + /** IP address of the client that initiated the auth event */ + ipAddress?: string; + /** Whether the authentication attempt succeeded */ + success?: boolean; + /** Timestamp when the audit event was recorded */ + createdAt?: string; +} +export interface UpdatePartitionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Partition` being updated. */ + partitionPatch: PartitionPatch; +} +/** Represents an update to a `Partition`. Fields that are set will be updated. */ +export interface PartitionPatch { + id?: string; + databaseId?: string; + tableId?: string; + strategy?: string; + partitionKeyId?: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + createdAt?: string; + updatedAt?: string; +} export interface UpdateBlueprintInput { clientMutationId?: string; /** Unique identifier for this blueprint. */ @@ -17435,6 +17695,27 @@ export interface DenormalizedTableFieldPatch { funcName?: string; funcOrder?: number; } +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `InferenceLogModule` being updated. */ + inferenceLogModulePatch: InferenceLogModulePatch; +} +/** Represents an update to a `InferenceLogModule`. Fields that are set will be updated. */ +export interface InferenceLogModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + prefix?: string; +} export interface UpdateRateLimitMetersModuleInput { clientMutationId?: string; id: string; @@ -17499,65 +17780,90 @@ export interface PlansModulePatch { applyPlanAggregateFunction?: string; prefix?: string; } -export interface UpdateAppLimitInput { +export interface UpdateEmailInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimit` being updated. */ - appLimitPatch: AppLimitPatch; + /** An object where the defined keys will be set on the `Email` being updated. */ + emailPatch: EmailPatch; } -/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ -export interface AppLimitPatch { +/** Represents an update to a `Email`. Fields that are set will be updated. */ +export interface EmailPatch { id?: string; - /** Name identifier of the limit being tracked */ + ownerId?: string; + /** The email address */ + email?: ConstructiveInternalTypeEmail; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean; + /** Whether this is the user's primary email address */ + isPrimary?: boolean; + /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ name?: string; - /** User whose usage is being tracked against this limit */ - actorId?: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; + createdAt?: string; + updatedAt?: string; } -export interface UpdateOrgMemberProfileInput { +export interface UpdateAppLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; - /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */ - orgMemberProfilePatch: OrgMemberProfilePatch; + /** An object where the defined keys will be set on the `AppLimitEvent` being updated. */ + appLimitEventPatch: AppLimitEventPatch; } -/** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */ -export interface OrgMemberProfilePatch { - id?: string; +/** Represents an update to a `AppLimitEvent`. Fields that are set will be updated. */ +export interface AppLimitEventPatch { createdAt?: string; - updatedAt?: string; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string; - /** References the entity this profile belongs to (used for RLS lookups) */ + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ entityId?: string; - /** References the user who owns this profile (for self-edit RLS) */ + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ + id: string; + /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */ + orgLimitEventPatch: OrgLimitEventPatch; +} +/** Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. */ +export interface OrgLimitEventPatch { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ actorId?: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; - /** Upload for Profile picture visible to other entity members */ - profilePictureUpload?: File; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; } export interface UpdateDatabaseTransferInput { clientMutationId?: string; @@ -17620,29 +17926,6 @@ export interface DatabaseSettingPatch { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: unknown; } -export interface UpdateBillingModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `BillingModule` being updated. */ - billingModulePatch: BillingModulePatch; -} -/** Represents an update to a `BillingModule`. Fields that are set will be updated. */ -export interface BillingModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - recordUsageFunction?: string; - prefix?: string; -} export interface UpdateCryptoAuthModuleInput { clientMutationId?: string; id: string; @@ -17721,6 +18004,38 @@ export interface InvitesModulePatch { membershipType?: number; entityTableId?: string; } +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ +export interface OrgMembershipSettingPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId?: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; +} export interface UpdateSecureTableProvisionInput { clientMutationId?: string; /** Unique identifier for this provision row. */ @@ -17753,46 +18068,14 @@ export interface SecureTableProvisionPatch { /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[]; } -export interface UpdateOrgLimitAggregateInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */ - orgLimitAggregatePatch: OrgLimitAggregatePatch; -} -/** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */ -export interface OrgLimitAggregatePatch { - id?: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string; - /** Entity (org) whose aggregate usage is being tracked */ - entityId?: string; - /** Current aggregate usage count for this entity and limit */ - num?: string; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string; -} -export interface UpdateOrgLimitInput { +export interface UpdateAppLimitInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimit` being updated. */ - orgLimitPatch: OrgLimitPatch; + /** An object where the defined keys will be set on the `AppLimit` being updated. */ + appLimitPatch: AppLimitPatch; } -/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ -export interface OrgLimitPatch { +/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ +export interface AppLimitPatch { id?: string; /** Name identifier of the limit being tracked */ name?: string; @@ -17814,7 +18097,6 @@ export interface OrgLimitPatch { purchasedCredits?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - entityId?: string; } export interface UpdateApiSettingInput { clientMutationId?: string; @@ -17877,23 +18159,68 @@ export interface EnumPatch { scope?: number; tags?: string[]; } -export interface UpdateUserInput { +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */ + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +/** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */ +export interface OrgLimitAggregatePatch { + id?: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string; + /** Entity (org) whose aggregate usage is being tracked */ + entityId?: string; + /** Current aggregate usage count for this entity and limit */ + num?: string; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string; +} +export interface UpdateOrgLimitInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `User` being updated. */ - userPatch: UserPatch; + /** An object where the defined keys will be set on the `OrgLimit` being updated. */ + orgLimitPatch: OrgLimitPatch; } -/** Represents an update to a `User`. Fields that are set will be updated. */ -export interface UserPatch { +/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ +export interface OrgLimitPatch { id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - createdAt?: string; - updatedAt?: string; - /** File upload for the `profilePicture` field. */ - profilePictureUpload?: File; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId?: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + entityId?: string; } export interface UpdateViewInput { clientMutationId?: string; @@ -17920,6 +18247,31 @@ export interface ViewPatch { scope?: number; tags?: string[]; } +export interface UpdateBillingModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `BillingModule` being updated. */ + billingModulePatch: BillingModulePatch; +} +/** Represents an update to a `BillingModule`. Fields that are set will be updated. */ +export interface BillingModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + recordUsageFunction?: string; + prefix?: string; +} export interface UpdateWebauthnAuthModuleInput { clientMutationId?: string; id: string; @@ -17945,69 +18297,58 @@ export interface WebauthnAuthModulePatch { residentKey?: string; challengeExpiry?: IntervalInput; } -export interface UpdateAppInviteInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppInvite` being updated. */ - appInvitePatch: AppInvitePatch; + /** An object where the defined keys will be set on the `AppMembership` being updated. */ + appMembershipPatch: AppMembershipPatch; } -/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ -export interface AppInvitePatch { +/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ +export interface AppMembershipPatch { id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId?: string; + profileId?: string; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateUserInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ - orgMembershipSettingPatch: OrgMembershipSettingPatch; + /** An object where the defined keys will be set on the `User` being updated. */ + userPatch: UserPatch; } -/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ -export interface OrgMembershipSettingPatch { +/** Represents an update to a `User`. Fields that are set will be updated. */ +export interface UserPatch { id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ - entityId?: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; + /** File upload for the `profilePicture` field. */ + profilePictureUpload?: File; } export interface UpdateAppInput { clientMutationId?: string; @@ -18346,14 +18687,14 @@ export interface WebauthnSettingPatch { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string; } -export interface UpdateAppMembershipInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppMembership` being updated. */ - appMembershipPatch: AppMembershipPatch; + /** An object where the defined keys will be set on the `OrgMembership` being updated. */ + orgMembershipPatch: OrgMembershipPatch; } -/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ -export interface AppMembershipPatch { +/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ +export interface OrgMembershipPatch { id?: string; createdAt?: string; updatedAt?: string; @@ -18365,10 +18706,10 @@ export interface AppMembershipPatch { isBanned?: boolean; /** Whether this membership is temporarily disabled */ isDisabled?: boolean; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether the actor has admin privileges on this entity */ @@ -18379,6 +18720,10 @@ export interface AppMembershipPatch { granted?: string; /** References the user who holds this membership */ actorId?: string; + /** References the entity (org or group) this membership belongs to */ + entityId?: string; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean; profileId?: string; } export interface UpdateSchemaInput { @@ -18432,21 +18777,19 @@ export interface IndexPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateOrgInviteInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgInvite` being updated. */ - orgInvitePatch: OrgInvitePatch; + /** An object where the defined keys will be set on the `AppInvite` being updated. */ + appInvitePatch: AppInvitePatch; } -/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ -export interface OrgInvitePatch { +/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ +export interface AppInvitePatch { id?: string; /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; /** User ID of the member who sent this invitation */ senderId?: string; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string; /** Unique random hex token used to redeem this invitation */ inviteToken?: string; /** Whether this invitation is still valid and can be redeemed */ @@ -18461,13 +18804,10 @@ export interface OrgInvitePatch { data?: unknown; /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ profileId?: string; - /** Whether the resulting membership should be read-only when this invite is claimed */ - isReadOnly?: boolean; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; - entityId?: string; } export interface UpdateBillingProviderModuleInput { clientMutationId?: string; @@ -18606,45 +18946,6 @@ export interface ProfilesModulePatch { membershipsTableId?: string; prefix?: string; } -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembership` being updated. */ - orgMembershipPatch: OrgMembershipPatch; -} -/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ -export interface OrgMembershipPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId?: string; - /** References the entity (org or group) this membership belongs to */ - entityId?: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; -} export interface UpdateEmbeddingChunkInput { clientMutationId?: string; id: string; @@ -18702,6 +19003,43 @@ export interface ForeignKeyConstraintPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateOrgInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgInvite` being updated. */ + orgInvitePatch: OrgInvitePatch; +} +/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ +export interface OrgInvitePatch { + id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Whether the resulting membership should be read-only when this invite is claimed */ + isReadOnly?: boolean; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} export interface UpdateRelationProvisionInput { clientMutationId?: string; /** Unique identifier for this relation provision row. */ @@ -18930,36 +19268,34 @@ export interface EntityTypeProvisionPatch { */ hasInviteAchievements?: boolean; /** - * Optional jsonb object for storage module configuration and initial bucket seeding. - * Only used when has_storage = true; ignored otherwise. NULL = use defaults. - * Recognized keys (all optional): - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this scope - * - allowed_origins (text[]) default CORS origins for all buckets in this scope - * - buckets (jsonb[]) array of initial bucket definitions to seed - * Each bucket in the buckets array recognizes: - * - name (text, required) bucket name e.g. 'documents' - * - description (text) human-readable description - * - is_public (boolean) whether files are publicly readable (default false) - * - allowed_mime_types (text[]) whitelist of MIME types (null = any) - * - max_file_size (bigint) max file size in bytes (null = use scope default) - * - allowed_origins (text[]) per-bucket CORS override - * - provisions (jsonb object) optional: customize storage tables - * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets". - * Each value uses the same shape as table_provision: - * { nodes, fields, grants, use_rls, policies }. Fanned out - * to secure_table_provision targeting the corresponding table. - * When a key includes policies[], those REPLACE the default - * storage policies for that table; tables without a key still - * get defaults. Missing "data" on policy entries is auto-populated - * with storage-specific defaults (same as table_provision). - * Example: add SearchBm25 for full-text search on files: - * {"provisions": {"files": {"nodes": [{"$type": - * "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - * Example: - * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + * Optional JSON array of storage module definitions. Each element provisions a separate + * storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + * and feature flags. Only used when has_storage = true; ignored otherwise. + * NULL = provision a single default storage module with all defaults. + * Each array element recognizes (all optional): + * - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb */ storageConfig?: unknown; /** @@ -19180,48 +19516,6 @@ export interface LimitsModulePatch { entityTableId?: string; actorTableId?: string; } -export interface UpdateStorageModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `StorageModule` being updated. */ - storageModulePatch: StorageModulePatch; -} -/** Represents an update to a `StorageModule`. Fields that are set will be updated. */ -export interface StorageModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - membershipType?: number; - policies?: unknown; - skipDefaultPolicyTables?: string[]; - entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; -} export interface UpdateMembershipsModuleInput { clientMutationId?: string; id: string; @@ -19265,6 +19559,49 @@ export interface MembershipsModulePatch { entityIdsFunction?: string; memberProfilesTableId?: string; } +export interface UpdateStorageModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `StorageModule` being updated. */ + storageModulePatch: StorageModulePatch; +} +/** Represents an update to a `StorageModule`. Fields that are set will be updated. */ +export interface StorageModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + membershipType?: number; + storageKey?: string; + policies?: unknown; + skipDefaultPolicyTables?: string[]; + entityTableId?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; +} export interface UpdateEventsModuleInput { clientMutationId?: string; id: string; @@ -19317,10 +19654,6 @@ export interface DeleteDefaultIdsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} export interface DeleteAppLimitCreditRedemptionInput { clientMutationId?: string; id: string; @@ -19356,14 +19689,18 @@ export interface DeleteRefInput { clientMutationId?: string; /** The primary unique identifier for the ref. */ id: string; - databaseId: string; + scopeId: string; } export interface DeleteStoreInput { clientMutationId?: string; /** The primary unique identifier for the store. */ id: string; } -export interface DeleteEncryptedSecretsModuleInput { +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteConfigSecretsUserModuleInput { clientMutationId?: string; id: string; } @@ -19389,9 +19726,9 @@ export interface DeleteSiteModuleInput { /** Unique identifier for this site module record */ id: string; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteRoleTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface DeleteSchemaGrantInput { clientMutationId?: string; @@ -19425,14 +19762,6 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgPermissionInput { - clientMutationId?: string; - id: string; -} export interface DeleteAppLimitCapsDefaultInput { clientMutationId?: string; id: string; @@ -19441,19 +19770,6 @@ export interface DeleteOrgLimitCapsDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; -} export interface DeleteDefaultPrivilegeInput { clientMutationId?: string; id: string; @@ -19491,10 +19807,18 @@ export interface DeleteWebauthnCredentialsModuleInput { clientMutationId?: string; id: string; } +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; @@ -19503,19 +19827,23 @@ export interface DeleteNodeTypeRegistryInput { clientMutationId?: string; name: string; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteAppLimitCreditCodeItemInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteAppLimitCapInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditCodeItemInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitWarningInput { +export interface DeleteOrgLimitCapInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } @@ -19527,6 +19855,10 @@ export interface DeleteCryptoAddressesModuleInput { clientMutationId?: string; id: string; } +export interface DeleteOrgChartEdgeInput { + clientMutationId?: string; + id: string; +} export interface DeleteCryptoAddressInput { clientMutationId?: string; id: string; @@ -19539,22 +19871,29 @@ export interface DeleteAppLimitCreditInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteOrgLimitCreditInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitCreditInput { +export interface DeleteObjectInput { clientMutationId?: string; id: string; + scopeId: string; } -export interface DeleteObjectInput { +export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; - databaseId: string; } -export interface DeleteSiteMetadatumInput { +export interface DeleteOrgPermissionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitWarningInput { clientMutationId?: string; - /** Unique identifier for this metadata record */ id: string; } export interface DeleteFullTextSearchInput { @@ -19569,8 +19908,13 @@ export interface DeleteCommitInput { clientMutationId?: string; /** The primary unique identifier for the commit. */ id: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; +} +export interface DeleteSiteMetadatumInput { + clientMutationId?: string; + /** Unique identifier for this metadata record */ + id: string; } export interface DeletePubkeySettingInput { clientMutationId?: string; @@ -19597,17 +19941,14 @@ export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface DeleteAuditLogInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; } export interface DeleteDomainInput { clientMutationId?: string; @@ -19627,40 +19968,40 @@ export interface DeleteAgentThreadInput { clientMutationId?: string; id: string; } -export interface DeleteEmailInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppGrantInput { +export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface DeleteOrgClaimedInviteInput { +export interface DeleteBlueprintConstructionInput { clientMutationId?: string; + /** Unique identifier for this construction attempt. */ id: string; } -export interface DeleteOrgChartEdgeInput { +export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } -export interface DeletePartitionInput { +export interface DeleteSessionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteBlueprintConstructionInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; - /** Unique identifier for this construction attempt. */ id: string; } -export interface DeleteRlsModuleInput { +export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } -export interface DeleteSessionsModuleInput { +export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } -export interface DeleteOrgGrantInput { +export interface DeletePartitionInput { clientMutationId?: string; id: string; } @@ -19673,6 +20014,10 @@ export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteRateLimitMetersModuleInput { clientMutationId?: string; id: string; @@ -19685,25 +20030,29 @@ export interface DeletePlansModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitInput { +export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMemberProfileInput { +export interface DeleteAppLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; } -export interface DeleteDatabaseTransferInput { +export interface DeleteOrgLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; } -export interface DeleteDatabaseSettingInput { +export interface DeleteDatabaseTransferInput { clientMutationId?: string; - /** Unique identifier for this settings record */ id: string; } -export interface DeleteBillingModuleInput { +export interface DeleteDatabaseSettingInput { clientMutationId?: string; + /** Unique identifier for this settings record */ id: string; } export interface DeleteCryptoAuthModuleInput { @@ -19718,16 +20067,16 @@ export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteSecureTableProvisionInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; - /** Unique identifier for this provision row. */ id: string; } -export interface DeleteOrgLimitAggregateInput { +export interface DeleteSecureTableProvisionInput { clientMutationId?: string; + /** Unique identifier for this provision row. */ id: string; } -export interface DeleteOrgLimitInput { +export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } @@ -19740,7 +20089,11 @@ export interface DeleteEnumInput { clientMutationId?: string; id: string; } -export interface DeleteUserInput { +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } @@ -19748,15 +20101,19 @@ export interface DeleteViewInput { clientMutationId?: string; id: string; } +export interface DeleteBillingModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAppInviteInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteUserInput { clientMutationId?: string; id: string; } @@ -19811,7 +20168,7 @@ export interface DeleteWebauthnSettingInput { /** Unique identifier for this WebAuthn settings record */ id: string; } -export interface DeleteAppMembershipInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } @@ -19823,7 +20180,7 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface DeleteOrgInviteInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } @@ -19844,15 +20201,15 @@ export interface DeleteProfilesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipInput { +export interface DeleteEmbeddingChunkInput { clientMutationId?: string; id: string; } -export interface DeleteEmbeddingChunkInput { +export interface DeleteForeignKeyConstraintInput { clientMutationId?: string; id: string; } -export interface DeleteForeignKeyConstraintInput { +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } @@ -19882,11 +20239,11 @@ export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteStorageModuleInput { +export interface DeleteMembershipsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipsModuleInput { +export interface DeleteStorageModuleInput { clientMutationId?: string; id: string; } @@ -19924,6 +20281,13 @@ export interface GetAllConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Object` values. */ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; @@ -19938,13 +20302,6 @@ export interface OrgPermissionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Object` values. */ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `DefaultIdsModule` values. */ export interface DefaultIdsModuleConnection { nodes: DefaultIdsModule[]; @@ -19952,13 +20309,6 @@ export interface DefaultIdsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RoleType` values. */ -export interface RoleTypeConnection { - nodes: RoleType[]; - edges: RoleTypeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppLimitCreditRedemption` values. */ export interface AppLimitCreditRedemptionConnection { nodes: AppLimitCreditRedemption[]; @@ -20029,10 +20379,17 @@ export interface StoreConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `EncryptedSecretsModule` values. */ -export interface EncryptedSecretsModuleConnection { - nodes: EncryptedSecretsModule[]; - edges: EncryptedSecretsModuleEdge[]; +/** A connection to a list of `ConfigSecretsOrgModule` values. */ +export interface ConfigSecretsOrgModuleConnection { + nodes: ConfigSecretsOrgModule[]; + edges: ConfigSecretsOrgModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ConfigSecretsUserModule` values. */ +export interface ConfigSecretsUserModuleConnection { + nodes: ConfigSecretsUserModule[]; + edges: ConfigSecretsUserModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20071,10 +20428,10 @@ export interface SiteModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCreditCode` values. */ -export interface AppLimitCreditCodeConnection { - nodes: AppLimitCreditCode[]; - edges: AppLimitCreditCodeEdge[]; +/** A connection to a list of `RoleType` values. */ +export interface RoleTypeConnection { + nodes: RoleType[]; + edges: RoleTypeEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20134,6 +20491,13 @@ export interface OrgPermissionDefaultConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `MigrateFile` values. */ +export interface MigrateFileConnection { + nodes: MigrateFile[]; + edges: MigrateFileEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLimitCapsDefault` values. */ export interface AppLimitCapsDefaultConnection { nodes: AppLimitCapsDefault[]; @@ -20148,34 +20512,6 @@ export interface OrgLimitCapsDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCap` values. */ -export interface AppLimitCapConnection { - nodes: AppLimitCap[]; - edges: AppLimitCapEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitCap` values. */ -export interface OrgLimitCapConnection { - nodes: OrgLimitCap[]; - edges: OrgLimitCapEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MembershipType` values. */ -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MigrateFile` values. */ -export interface MigrateFileConnection { - nodes: MigrateFile[]; - edges: MigrateFileEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `DefaultPrivilege` values. */ export interface DefaultPrivilegeConnection { nodes: DefaultPrivilege[]; @@ -20239,6 +20575,13 @@ export interface WebauthnCredentialsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppMembershipDefault` values. */ +export interface AppMembershipDefaultConnection { + nodes: AppMembershipDefault[]; + edges: AppMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgAdminGrant` values. */ export interface OrgAdminGrantConnection { nodes: OrgAdminGrant[]; @@ -20246,6 +20589,13 @@ export interface OrgAdminGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgMembershipDefault` values. */ +export interface OrgMembershipDefaultConnection { + nodes: OrgMembershipDefault[]; + edges: OrgMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgOwnerGrant` values. */ export interface OrgOwnerGrantConnection { nodes: OrgOwnerGrant[]; @@ -20260,6 +20610,20 @@ export interface NodeTypeRegistryConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppLimitCreditCodeItem` values. */ +export interface AppLimitCreditCodeItemConnection { + nodes: AppLimitCreditCodeItem[]; + edges: AppLimitCreditCodeItemEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitCap` values. */ +export interface AppLimitCapConnection { + nodes: AppLimitCap[]; + edges: AppLimitCapEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLimitDefault` values. */ export interface AppLimitDefaultConnection { nodes: AppLimitDefault[]; @@ -20267,6 +20631,13 @@ export interface AppLimitDefaultConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgLimitCap` values. */ +export interface OrgLimitCapConnection { + nodes: OrgLimitCap[]; + edges: OrgLimitCapEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgLimitDefault` values. */ export interface OrgLimitDefaultConnection { nodes: OrgLimitDefault[]; @@ -20274,20 +20645,6 @@ export interface OrgLimitDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCreditCodeItem` values. */ -export interface AppLimitCreditCodeItemConnection { - nodes: AppLimitCreditCodeItem[]; - edges: AppLimitCreditCodeItemEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitWarning` values. */ -export interface AppLimitWarningConnection { - nodes: AppLimitWarning[]; - edges: AppLimitWarningEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `UserConnectedAccount` values. */ export interface UserConnectedAccountConnection { nodes: UserConnectedAccount[]; @@ -20309,6 +20666,13 @@ export interface CryptoAddressesModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdge` values. */ +export interface OrgChartEdgeConnection { + nodes: OrgChartEdge[]; + edges: OrgChartEdgeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `CryptoAddress` values. */ export interface CryptoAddressConnection { nodes: CryptoAddress[]; @@ -20330,13 +20694,6 @@ export interface AppLimitCreditConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitWarning` values. */ -export interface OrgLimitWarningConnection { - nodes: OrgLimitWarning[]; - edges: OrgLimitWarningEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgLimitCredit` values. */ export interface OrgLimitCreditConnection { nodes: OrgLimitCredit[]; @@ -20344,10 +20701,17 @@ export interface OrgLimitCreditConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SiteMetadatum` values. */ -export interface SiteMetadatumConnection { - nodes: SiteMetadatum[]; - edges: SiteMetadatumEdge[]; +/** A connection to a list of `AppLimitCreditCode` values. */ +export interface AppLimitCreditCodeConnection { + nodes: AppLimitCreditCode[]; + edges: AppLimitCreditCodeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitWarning` values. */ +export interface AppLimitWarningConnection { + nodes: AppLimitWarning[]; + edges: AppLimitWarningEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20372,6 +20736,13 @@ export interface CommitConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `SiteMetadatum` values. */ +export interface SiteMetadatumConnection { + nodes: SiteMetadatum[]; + edges: SiteMetadatumEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PubkeySetting` values. */ export interface PubkeySettingConnection { nodes: PubkeySetting[]; @@ -20414,24 +20785,17 @@ export interface AppClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppMembershipDefault` values. */ -export interface AppMembershipDefaultConnection { - nodes: AppMembershipDefault[]; - edges: AppMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembershipDefault` values. */ -export interface OrgMembershipDefaultConnection { - nodes: OrgMembershipDefault[]; - edges: OrgMembershipDefaultEdge[]; +/** A connection to a list of `OrgLimitWarning` values. */ +export interface OrgLimitWarningConnection { + nodes: OrgLimitWarning[]; + edges: OrgLimitWarningEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AuditLog` values. */ -export interface AuditLogConnection { - nodes: AuditLog[]; - edges: AuditLogEdge[]; +/** A connection to a list of `MembershipType` values. */ +export interface MembershipTypeConnection { + nodes: MembershipType[]; + edges: MembershipTypeEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20463,13 +20827,6 @@ export interface AgentThreadConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Email` values. */ -export interface EmailConnection { - nodes: Email[]; - edges: EmailEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppGrant` values. */ export interface AppGrantConnection { nodes: AppGrant[]; @@ -20484,34 +20841,6 @@ export interface OrgClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitEvent` values. */ -export interface AppLimitEventConnection { - nodes: AppLimitEvent[]; - edges: AppLimitEventEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitEvent` values. */ -export interface OrgLimitEventConnection { - nodes: OrgLimitEvent[]; - edges: OrgLimitEventEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgChartEdge` values. */ -export interface OrgChartEdgeConnection { - nodes: OrgChartEdge[]; - edges: OrgChartEdgeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Partition` values. */ -export interface PartitionConnection { - nodes: Partition[]; - edges: PartitionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `BlueprintConstruction` values. */ export interface BlueprintConstructionConnection { nodes: BlueprintConstruction[]; @@ -20533,6 +20862,13 @@ export interface SessionsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgMemberProfile` values. */ +export interface OrgMemberProfileConnection { + nodes: OrgMemberProfile[]; + edges: OrgMemberProfileEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgGrant` values. */ export interface OrgGrantConnection { nodes: OrgGrant[]; @@ -20540,6 +20876,20 @@ export interface OrgGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AuditLog` values. */ +export interface AuditLogConnection { + nodes: AuditLog[]; + edges: AuditLogEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Partition` values. */ +export interface PartitionConnection { + nodes: Partition[]; + edges: PartitionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Blueprint` values. */ export interface BlueprintConnection { nodes: Blueprint[]; @@ -20554,6 +20904,13 @@ export interface DenormalizedTableFieldConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `InferenceLogModule` values. */ +export interface InferenceLogModuleConnection { + nodes: InferenceLogModule[]; + edges: InferenceLogModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `RateLimitMetersModule` values. */ export interface RateLimitMetersModuleConnection { nodes: RateLimitMetersModule[]; @@ -20575,17 +20932,10 @@ export interface PlansModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimit` values. */ -export interface AppLimitConnection { - nodes: AppLimit[]; - edges: AppLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMemberProfile` values. */ -export interface OrgMemberProfileConnection { - nodes: OrgMemberProfile[]; - edges: OrgMemberProfileEdge[]; +/** A connection to a list of `Email` values. */ +export interface EmailConnection { + nodes: Email[]; + edges: EmailEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20596,6 +20946,20 @@ export interface SqlActionConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppLimitEvent` values. */ +export interface AppLimitEventConnection { + nodes: AppLimitEvent[]; + edges: AppLimitEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitEvent` values. */ +export interface OrgLimitEventConnection { + nodes: OrgLimitEvent[]; + edges: OrgLimitEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `DatabaseTransfer` values. */ export interface DatabaseTransferConnection { nodes: DatabaseTransfer[]; @@ -20610,13 +20974,6 @@ export interface DatabaseSettingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `BillingModule` values. */ -export interface BillingModuleConnection { - nodes: BillingModule[]; - edges: BillingModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `CryptoAuthModule` values. */ export interface CryptoAuthModuleConnection { nodes: CryptoAuthModule[]; @@ -20638,6 +20995,13 @@ export interface InvitesModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgMembershipSetting` values. */ +export interface OrgMembershipSettingConnection { + nodes: OrgMembershipSetting[]; + edges: OrgMembershipSettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `SecureTableProvision` values. */ export interface SecureTableProvisionConnection { nodes: SecureTableProvision[]; @@ -20645,24 +21009,10 @@ export interface SecureTableProvisionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitAggregate` values. */ -export interface OrgLimitAggregateConnection { - nodes: OrgLimitAggregate[]; - edges: OrgLimitAggregateEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimit` values. */ -export interface OrgLimitConnection { - nodes: OrgLimit[]; - edges: OrgLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AstMigration` values. */ -export interface AstMigrationConnection { - nodes: AstMigration[]; - edges: AstMigrationEdge[]; +/** A connection to a list of `AppLimit` values. */ +export interface AppLimitConnection { + nodes: AppLimit[]; + edges: AppLimitEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20680,10 +21030,17 @@ export interface EnumConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `User` values. */ -export interface UserConnection { - nodes: User[]; - edges: UserEdge[]; +/** A connection to a list of `OrgLimitAggregate` values. */ +export interface OrgLimitAggregateConnection { + nodes: OrgLimitAggregate[]; + edges: OrgLimitAggregateEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimit` values. */ +export interface OrgLimitConnection { + nodes: OrgLimit[]; + edges: OrgLimitEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20694,6 +21051,13 @@ export interface ViewConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `BillingModule` values. */ +export interface BillingModuleConnection { + nodes: BillingModule[]; + edges: BillingModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `WebauthnAuthModule` values. */ export interface WebauthnAuthModuleConnection { nodes: WebauthnAuthModule[]; @@ -20701,17 +21065,17 @@ export interface WebauthnAuthModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppInvite` values. */ -export interface AppInviteConnection { - nodes: AppInvite[]; - edges: AppInviteEdge[]; +/** A connection to a list of `AppMembership` values. */ +export interface AppMembershipConnection { + nodes: AppMembership[]; + edges: AppMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembershipSetting` values. */ -export interface OrgMembershipSettingConnection { - nodes: OrgMembershipSetting[]; - edges: OrgMembershipSettingEdge[]; +/** A connection to a list of `User` values. */ +export interface UserConnection { + nodes: User[]; + edges: UserEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20743,6 +21107,13 @@ export interface PermissionsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AstMigration` values. */ +export interface AstMigrationConnection { + nodes: AstMigration[]; + edges: AstMigrationEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `WebauthnCredential` values. */ export interface WebauthnCredentialConnection { nodes: WebauthnCredential[]; @@ -20799,10 +21170,10 @@ export interface WebauthnSettingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppMembership` values. */ -export interface AppMembershipConnection { - nodes: AppMembership[]; - edges: AppMembershipEdge[]; +/** A connection to a list of `OrgMembership` values. */ +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20820,10 +21191,10 @@ export interface IndexConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgInvite` values. */ -export interface OrgInviteConnection { - nodes: OrgInvite[]; - edges: OrgInviteEdge[]; +/** A connection to a list of `AppInvite` values. */ +export interface AppInviteConnection { + nodes: AppInvite[]; + edges: AppInviteEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20855,13 +21226,6 @@ export interface ProfilesModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembership` values. */ -export interface OrgMembershipConnection { - nodes: OrgMembership[]; - edges: OrgMembershipEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `EmbeddingChunk` values. */ export interface EmbeddingChunkConnection { nodes: EmbeddingChunk[]; @@ -20876,6 +21240,13 @@ export interface ForeignKeyConstraintConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgInvite` values. */ +export interface OrgInviteConnection { + nodes: OrgInvite[]; + edges: OrgInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `RelationProvision` values. */ export interface RelationProvisionConnection { nodes: RelationProvision[]; @@ -20918,13 +21289,6 @@ export interface LimitsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `StorageModule` values. */ -export interface StorageModuleConnection { - nodes: StorageModule[]; - edges: StorageModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `MembershipsModule` values. */ export interface MembershipsModuleConnection { nodes: MembershipsModule[]; @@ -20932,6 +21296,13 @@ export interface MembershipsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `StorageModule` values. */ +export interface StorageModuleConnection { + nodes: StorageModule[]; + edges: StorageModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `EventsModule` values. */ export interface EventsModuleConnection { nodes: EventsModule[]; @@ -21035,10 +21406,22 @@ export interface ProvisionSpatialRelationPayload { clientMutationId?: string | null; result?: string | null; } +export interface SignInCrossOriginPayload { + clientMutationId?: string | null; + result?: SignInCrossOriginRecord | null; +} export interface BootstrapUserPayload { clientMutationId?: string | null; result?: BootstrapUserRecord[] | null; } +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -21087,10 +21470,6 @@ export interface ProvisionRelationPayload { export interface ApplyRlsPayload { clientMutationId?: string | null; } -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} export interface CreateUserDatabasePayload { clientMutationId?: string | null; result?: string | null; @@ -21103,41 +21482,27 @@ export interface CreateApiKeyPayload { clientMutationId?: string | null; result?: CreateApiKeyRecord | null; } -export interface SendVerificationEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export interface SignUpPayload { - clientMutationId?: string | null; - result?: SignUpRecord | null; -} export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; result?: string | null; } -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} export interface ProvisionTablePayload { clientMutationId?: string | null; result?: ProvisionTableRecord[] | null; } +export interface SendVerificationEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} export interface CreateDefaultIdsModulePayload { clientMutationId?: string | null; /** The `DefaultIdsModule` that was created by this mutation. */ defaultIdsModule?: DefaultIdsModule | null; defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} export interface CreateAppLimitCreditRedemptionPayload { clientMutationId?: string | null; /** The `AppLimitCreditRedemption` that was created by this mutation. */ @@ -21197,11 +21562,17 @@ export interface CreateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface CreateEncryptedSecretsModulePayload { +export interface CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export interface CreateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was created by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } export interface CreateMembershipTypesModulePayload { clientMutationId?: string | null; @@ -21233,11 +21604,11 @@ export interface CreateSiteModulePayload { siteModule?: SiteModule | null; siteModuleEdge?: SiteModuleEdge | null; } -export interface CreateAppLimitCreditCodePayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } export interface CreateSchemaGrantPayload { clientMutationId?: string | null; @@ -21287,17 +21658,10 @@ export interface CreateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface CreateOrgPermissionPayload { +export interface CreateMigrateFilePayload { clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; } export interface CreateAppLimitCapsDefaultPayload { clientMutationId?: string | null; @@ -21311,29 +21675,6 @@ export interface CreateOrgLimitCapsDefaultPayload { orgLimitCapsDefault?: OrgLimitCapsDefault | null; orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; } -export interface CreateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface CreateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} export interface CreateDefaultPrivilegePayload { clientMutationId?: string | null; /** The `DefaultPrivilege` that was created by this mutation. */ @@ -21388,12 +21729,24 @@ export interface CreateWebauthnCredentialsModulePayload { webauthnCredentialsModule?: WebauthnCredentialsModule | null; webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was created by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; /** The `OrgOwnerGrant` that was created by this mutation. */ @@ -21406,29 +21759,35 @@ export interface CreateNodeTypeRegistryPayload { nodeTypeRegistry?: NodeTypeRegistry | null; nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } +export interface CreateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was created by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export interface CreateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was created by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; /** The `AppLimitDefault` that was created by this mutation. */ appLimitDefault?: AppLimitDefault | null; appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export interface CreateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export interface CreateAppLimitCreditCodeItemPayload { +export interface CreateOrgLimitCapPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `OrgLimitCap` that was created by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; } -export interface CreateAppLimitWarningPayload { +export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was created by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export interface CreateUserConnectedAccountPayload { clientMutationId?: string | null; @@ -21447,6 +21806,12 @@ export interface CreateCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface CreateCryptoAddressPayload { clientMutationId?: string | null; /** The `CryptoAddress` that was created by this mutation. */ @@ -21465,12 +21830,6 @@ export interface CreateAppLimitCreditPayload { appLimitCredit?: AppLimitCredit | null; appLimitCreditEdge?: AppLimitCreditEdge | null; } -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface CreateOrgLimitCreditPayload { clientMutationId?: string | null; /** The `OrgLimitCredit` that was created by this mutation. */ @@ -21483,11 +21842,29 @@ export interface CreateObjectPayload { object?: Object | null; objectEdge?: ObjectEdge | null; } -export interface CreateSiteMetadatumPayload { +export interface CreateAppPermissionPayload { clientMutationId?: string | null; - /** The `SiteMetadatum` that was created by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export interface CreateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was created by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; } export interface CreateFullTextSearchPayload { clientMutationId?: string | null; @@ -21507,6 +21884,12 @@ export interface CreateCommitPayload { commit?: Commit | null; commitEdge?: CommitEdge | null; } +export interface CreateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was created by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} export interface CreatePubkeySettingPayload { clientMutationId?: string | null; /** The `PubkeySetting` that was created by this mutation. */ @@ -21543,23 +21926,17 @@ export interface CreateAppClaimedInvitePayload { appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface CreateOrgMembershipDefaultPayload { +export interface CreateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface CreateAuditLogPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } export interface CreateDomainPayload { clientMutationId?: string | null; @@ -21585,12 +21962,6 @@ export interface CreateAgentThreadPayload { agentThread?: AgentThread | null; agentThreadEdge?: AgentThreadEdge | null; } -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface CreateAppGrantPayload { clientMutationId?: string | null; /** The `AppGrant` that was created by this mutation. */ @@ -21603,28 +21974,6 @@ export interface CreateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export interface CreateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface CreatePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was created by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} export interface CreateBlueprintConstructionPayload { clientMutationId?: string | null; /** The `BlueprintConstruction` that was created by this mutation. */ @@ -21643,12 +21992,30 @@ export interface CreateSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } +export interface CreateOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface CreateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was created by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface CreatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was created by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} export interface CreateBlueprintPayload { clientMutationId?: string | null; /** The `Blueprint` that was created by this mutation. */ @@ -21661,6 +22028,12 @@ export interface CreateDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; /** The `RateLimitMetersModule` that was created by this mutation. */ @@ -21679,23 +22052,29 @@ export interface CreatePlansModulePayload { plansModule?: PlansModule | null; plansModuleEdge?: PlansModuleEdge | null; } -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface CreateOrgMemberProfilePayload { +export interface CreateEmailPayload { clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } export interface CreateSqlActionPayload { clientMutationId?: string | null; /** The `SqlAction` that was created by this mutation. */ sqlAction?: SqlAction | null; } +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} export interface CreateDatabaseTransferPayload { clientMutationId?: string | null; /** The `DatabaseTransfer` that was created by this mutation. */ @@ -21708,12 +22087,6 @@ export interface CreateDatabaseSettingPayload { databaseSetting?: DatabaseSetting | null; databaseSettingEdge?: DatabaseSettingEdge | null; } -export interface CreateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} export interface CreateCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was created by this mutation. */ @@ -21732,28 +22105,23 @@ export interface CreateInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was created by this mutation. */ secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface CreateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was created by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface CreateAstMigrationPayload { +export interface CreateAppLimitPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } export interface CreateApiSettingPayload { clientMutationId?: string | null; @@ -21767,11 +22135,17 @@ export interface CreateEnumPayload { enum?: Enum | null; enumEdge?: EnumEdge | null; } -export interface CreateUserPayload { +export interface CreateOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `User` that was created by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } export interface CreateViewPayload { clientMutationId?: string | null; @@ -21779,23 +22153,29 @@ export interface CreateViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } +export interface CreateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} export interface CreateWebauthnAuthModulePayload { clientMutationId?: string | null; /** The `WebauthnAuthModule` that was created by this mutation. */ webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface CreateAppInvitePayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export interface CreateOrgMembershipSettingPayload { +export interface CreateUserPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `User` that was created by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } export interface CreateAppPayload { clientMutationId?: string | null; @@ -21821,6 +22201,11 @@ export interface CreatePermissionsModulePayload { permissionsModule?: PermissionsModule | null; permissionsModuleEdge?: PermissionsModuleEdge | null; } +export interface CreateAstMigrationPayload { + clientMutationId?: string | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; +} export interface CreateWebauthnCredentialPayload { clientMutationId?: string | null; /** The `WebauthnCredential` that was created by this mutation. */ @@ -21869,11 +22254,11 @@ export interface CreateWebauthnSettingPayload { webauthnSetting?: WebauthnSetting | null; webauthnSettingEdge?: WebauthnSettingEdge | null; } -export interface CreateAppMembershipPayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } export interface CreateSchemaPayload { clientMutationId?: string | null; @@ -21887,11 +22272,11 @@ export interface CreateIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface CreateOrgInvitePayload { +export interface CreateAppInvitePayload { clientMutationId?: string | null; - /** The `OrgInvite` that was created by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; @@ -21917,12 +22302,6 @@ export interface CreateProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} export interface CreateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was created by this mutation. */ @@ -21935,6 +22314,12 @@ export interface CreateForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface CreateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was created by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface CreateRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was created by this mutation. */ @@ -21968,14 +22353,8 @@ export interface CreateTablePayload { export interface CreateLimitsModulePayload { clientMutationId?: string | null; /** The `LimitsModule` that was created by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export interface CreateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was created by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; } export interface CreateMembershipsModulePayload { clientMutationId?: string | null; @@ -21983,6 +22362,12 @@ export interface CreateMembershipsModulePayload { membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface CreateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was created by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} export interface CreateEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was created by this mutation. */ @@ -21995,12 +22380,6 @@ export interface UpdateDefaultIdsModulePayload { defaultIdsModule?: DefaultIdsModule | null; defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} export interface UpdateAppLimitCreditRedemptionPayload { clientMutationId?: string | null; /** The `AppLimitCreditRedemption` that was updated by this mutation. */ @@ -22055,11 +22434,17 @@ export interface UpdateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface UpdateEncryptedSecretsModulePayload { +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export interface UpdateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was updated by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } export interface UpdateMembershipTypesModulePayload { clientMutationId?: string | null; @@ -22091,11 +22476,11 @@ export interface UpdateSiteModulePayload { siteModule?: SiteModule | null; siteModuleEdge?: SiteModuleEdge | null; } -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } export interface UpdateSchemaGrantPayload { clientMutationId?: string | null; @@ -22145,18 +22530,6 @@ export interface UpdateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} export interface UpdateAppLimitCapsDefaultPayload { clientMutationId?: string | null; /** The `AppLimitCapsDefault` that was updated by this mutation. */ @@ -22169,24 +22542,6 @@ export interface UpdateOrgLimitCapsDefaultPayload { orgLimitCapsDefault?: OrgLimitCapsDefault | null; orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; } -export interface UpdateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface UpdateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} export interface UpdateDefaultPrivilegePayload { clientMutationId?: string | null; /** The `DefaultPrivilege` that was updated by this mutation. */ @@ -22241,12 +22596,24 @@ export interface UpdateWebauthnCredentialsModulePayload { webauthnCredentialsModule?: WebauthnCredentialsModule | null; webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was updated by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; /** The `OrgOwnerGrant` that was updated by this mutation. */ @@ -22259,30 +22626,36 @@ export interface UpdateNodeTypeRegistryPayload { nodeTypeRegistry?: NodeTypeRegistry | null; nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } +export interface UpdateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export interface UpdateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was updated by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; /** The `AppLimitDefault` that was updated by this mutation. */ appLimitDefault?: AppLimitDefault | null; appLimitDefaultEdge?: AppLimitDefaultEdge | null; } +export interface UpdateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} export interface UpdateOrgLimitDefaultPayload { clientMutationId?: string | null; /** The `OrgLimitDefault` that was updated by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface UpdateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export interface UpdateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was updated by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} export interface UpdateDatabasePayload { clientMutationId?: string | null; /** The `Database` that was updated by this mutation. */ @@ -22295,6 +22668,12 @@ export interface UpdateCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface UpdateCryptoAddressPayload { clientMutationId?: string | null; /** The `CryptoAddress` that was updated by this mutation. */ @@ -22313,12 +22692,6 @@ export interface UpdateAppLimitCreditPayload { appLimitCredit?: AppLimitCredit | null; appLimitCreditEdge?: AppLimitCreditEdge | null; } -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface UpdateOrgLimitCreditPayload { clientMutationId?: string | null; /** The `OrgLimitCredit` that was updated by this mutation. */ @@ -22331,11 +22704,29 @@ export interface UpdateObjectPayload { object?: Object | null; objectEdge?: ObjectEdge | null; } -export interface UpdateSiteMetadatumPayload { +export interface UpdateAppPermissionPayload { clientMutationId?: string | null; - /** The `SiteMetadatum` that was updated by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export interface UpdateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was updated by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; } export interface UpdateFullTextSearchPayload { clientMutationId?: string | null; @@ -22355,6 +22746,12 @@ export interface UpdateCommitPayload { commit?: Commit | null; commitEdge?: CommitEdge | null; } +export interface UpdateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was updated by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} export interface UpdatePubkeySettingPayload { clientMutationId?: string | null; /** The `PubkeySetting` that was updated by this mutation. */ @@ -22391,23 +22788,17 @@ export interface UpdateAppClaimedInvitePayload { appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface UpdateAuditLogPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } export interface UpdateDomainPayload { clientMutationId?: string | null; @@ -22433,12 +22824,6 @@ export interface UpdateAgentThreadPayload { agentThread?: AgentThread | null; agentThreadEdge?: AgentThreadEdge | null; } -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface UpdateAppGrantPayload { clientMutationId?: string | null; /** The `AppGrant` that was updated by this mutation. */ @@ -22451,18 +22836,6 @@ export interface UpdateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } -export interface UpdateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface UpdatePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was updated by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} export interface UpdateBlueprintConstructionPayload { clientMutationId?: string | null; /** The `BlueprintConstruction` that was updated by this mutation. */ @@ -22481,12 +22854,30 @@ export interface UpdateSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } +export interface UpdateOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} export interface UpdateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was updated by this mutation. */ orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was updated by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface UpdatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was updated by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} export interface UpdateBlueprintPayload { clientMutationId?: string | null; /** The `Blueprint` that was updated by this mutation. */ @@ -22499,6 +22890,12 @@ export interface UpdateDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} export interface UpdateRateLimitMetersModulePayload { clientMutationId?: string | null; /** The `RateLimitMetersModule` that was updated by this mutation. */ @@ -22517,17 +22914,23 @@ export interface UpdatePlansModulePayload { plansModule?: PlansModule | null; plansModuleEdge?: PlansModuleEdge | null; } -export interface UpdateAppLimitPayload { +export interface UpdateEmailPayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export interface UpdateOrgMemberProfilePayload { +export interface UpdateAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } export interface UpdateDatabaseTransferPayload { clientMutationId?: string | null; @@ -22541,12 +22944,6 @@ export interface UpdateDatabaseSettingPayload { databaseSetting?: DatabaseSetting | null; databaseSettingEdge?: DatabaseSettingEdge | null; } -export interface UpdateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} export interface UpdateCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was updated by this mutation. */ @@ -22565,23 +22962,23 @@ export interface UpdateInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was updated by this mutation. */ secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface UpdateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface UpdateOrgLimitPayload { +export interface UpdateAppLimitPayload { clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } export interface UpdateApiSettingPayload { clientMutationId?: string | null; @@ -22595,11 +22992,17 @@ export interface UpdateEnumPayload { enum?: Enum | null; enumEdge?: EnumEdge | null; } -export interface UpdateUserPayload { +export interface UpdateOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `User` that was updated by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } export interface UpdateViewPayload { clientMutationId?: string | null; @@ -22607,23 +23010,29 @@ export interface UpdateViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } +export interface UpdateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} export interface UpdateWebauthnAuthModulePayload { clientMutationId?: string | null; /** The `WebauthnAuthModule` that was updated by this mutation. */ webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface UpdateAppInvitePayload { +export interface UpdateAppMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateUserPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `User` that was updated by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } export interface UpdateAppPayload { clientMutationId?: string | null; @@ -22697,11 +23106,11 @@ export interface UpdateWebauthnSettingPayload { webauthnSetting?: WebauthnSetting | null; webauthnSettingEdge?: WebauthnSettingEdge | null; } -export interface UpdateAppMembershipPayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } export interface UpdateSchemaPayload { clientMutationId?: string | null; @@ -22715,11 +23124,11 @@ export interface UpdateIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface UpdateOrgInvitePayload { +export interface UpdateAppInvitePayload { clientMutationId?: string | null; - /** The `OrgInvite` that was updated by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } export interface UpdateBillingProviderModulePayload { clientMutationId?: string | null; @@ -22745,12 +23154,6 @@ export interface UpdateProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} export interface UpdateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was updated by this mutation. */ @@ -22763,6 +23166,12 @@ export interface UpdateForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface UpdateRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was updated by this mutation. */ @@ -22799,18 +23208,18 @@ export interface UpdateLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface UpdateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was updated by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} export interface UpdateMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was updated by this mutation. */ membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface UpdateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was updated by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} export interface UpdateEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was updated by this mutation. */ @@ -22823,12 +23232,6 @@ export interface DeleteDefaultIdsModulePayload { defaultIdsModule?: DefaultIdsModule | null; defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} export interface DeleteAppLimitCreditRedemptionPayload { clientMutationId?: string | null; /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ @@ -22883,11 +23286,17 @@ export interface DeleteStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface DeleteEncryptedSecretsModulePayload { +export interface DeleteConfigSecretsOrgModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was deleted by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export interface DeleteConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } export interface DeleteMembershipTypesModulePayload { clientMutationId?: string | null; @@ -22919,11 +23328,11 @@ export interface DeleteSiteModulePayload { siteModule?: SiteModule | null; siteModuleEdge?: SiteModuleEdge | null; } -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } export interface DeleteSchemaGrantPayload { clientMutationId?: string | null; @@ -22973,18 +23382,6 @@ export interface DeleteOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} export interface DeleteAppLimitCapsDefaultPayload { clientMutationId?: string | null; /** The `AppLimitCapsDefault` that was deleted by this mutation. */ @@ -22997,24 +23394,6 @@ export interface DeleteOrgLimitCapsDefaultPayload { orgLimitCapsDefault?: OrgLimitCapsDefault | null; orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; } -export interface DeleteAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface DeleteOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} export interface DeleteDefaultPrivilegePayload { clientMutationId?: string | null; /** The `DefaultPrivilege` that was deleted by this mutation. */ @@ -23069,12 +23448,24 @@ export interface DeleteWebauthnCredentialsModulePayload { webauthnCredentialsModule?: WebauthnCredentialsModule | null; webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was deleted by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; /** The `OrgOwnerGrant` that was deleted by this mutation. */ @@ -23087,30 +23478,36 @@ export interface DeleteNodeTypeRegistryPayload { nodeTypeRegistry?: NodeTypeRegistry | null; nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } +export interface DeleteAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export interface DeleteAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was deleted by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; /** The `AppLimitDefault` that was deleted by this mutation. */ appLimitDefault?: AppLimitDefault | null; appLimitDefaultEdge?: AppLimitDefaultEdge | null; } +export interface DeleteOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} export interface DeleteOrgLimitDefaultPayload { clientMutationId?: string | null; /** The `OrgLimitDefault` that was deleted by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface DeleteAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export interface DeleteAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was deleted by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} export interface DeleteDatabasePayload { clientMutationId?: string | null; /** The `Database` that was deleted by this mutation. */ @@ -23123,6 +23520,12 @@ export interface DeleteCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface DeleteCryptoAddressPayload { clientMutationId?: string | null; /** The `CryptoAddress` that was deleted by this mutation. */ @@ -23141,12 +23544,6 @@ export interface DeleteAppLimitCreditPayload { appLimitCredit?: AppLimitCredit | null; appLimitCreditEdge?: AppLimitCreditEdge | null; } -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface DeleteOrgLimitCreditPayload { clientMutationId?: string | null; /** The `OrgLimitCredit` that was deleted by this mutation. */ @@ -23159,11 +23556,29 @@ export interface DeleteObjectPayload { object?: Object | null; objectEdge?: ObjectEdge | null; } -export interface DeleteSiteMetadatumPayload { +export interface DeleteAppPermissionPayload { clientMutationId?: string | null; - /** The `SiteMetadatum` that was deleted by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export interface DeleteAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was deleted by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; } export interface DeleteFullTextSearchPayload { clientMutationId?: string | null; @@ -23183,6 +23598,12 @@ export interface DeleteCommitPayload { commit?: Commit | null; commitEdge?: CommitEdge | null; } +export interface DeleteSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was deleted by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} export interface DeletePubkeySettingPayload { clientMutationId?: string | null; /** The `PubkeySetting` that was deleted by this mutation. */ @@ -23219,23 +23640,17 @@ export interface DeleteAppClaimedInvitePayload { appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface DeleteAuditLogPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } export interface DeleteDomainPayload { clientMutationId?: string | null; @@ -23261,12 +23676,6 @@ export interface DeleteAgentThreadPayload { agentThread?: AgentThread | null; agentThreadEdge?: AgentThreadEdge | null; } -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface DeleteAppGrantPayload { clientMutationId?: string | null; /** The `AppGrant` that was deleted by this mutation. */ @@ -23279,18 +23688,6 @@ export interface DeleteOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface DeletePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was deleted by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} export interface DeleteBlueprintConstructionPayload { clientMutationId?: string | null; /** The `BlueprintConstruction` that was deleted by this mutation. */ @@ -23309,12 +23706,30 @@ export interface DeleteSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } +export interface DeleteOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} export interface DeleteOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was deleted by this mutation. */ orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was deleted by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface DeletePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was deleted by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} export interface DeleteBlueprintPayload { clientMutationId?: string | null; /** The `Blueprint` that was deleted by this mutation. */ @@ -23327,6 +23742,12 @@ export interface DeleteDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} export interface DeleteRateLimitMetersModulePayload { clientMutationId?: string | null; /** The `RateLimitMetersModule` that was deleted by this mutation. */ @@ -23345,17 +23766,23 @@ export interface DeletePlansModulePayload { plansModule?: PlansModule | null; plansModuleEdge?: PlansModuleEdge | null; } -export interface DeleteAppLimitPayload { +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export interface DeleteAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export interface DeleteOrgMemberProfilePayload { +export interface DeleteOrgLimitEventPayload { clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } export interface DeleteDatabaseTransferPayload { clientMutationId?: string | null; @@ -23369,12 +23796,6 @@ export interface DeleteDatabaseSettingPayload { databaseSetting?: DatabaseSetting | null; databaseSettingEdge?: DatabaseSettingEdge | null; } -export interface DeleteBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} export interface DeleteCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was deleted by this mutation. */ @@ -23393,23 +23814,23 @@ export interface DeleteInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was deleted by this mutation. */ secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface DeleteOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface DeleteOrgLimitPayload { +export interface DeleteAppLimitPayload { clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } export interface DeleteApiSettingPayload { clientMutationId?: string | null; @@ -23423,11 +23844,17 @@ export interface DeleteEnumPayload { enum?: Enum | null; enumEdge?: EnumEdge | null; } -export interface DeleteUserPayload { +export interface DeleteOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `User` that was deleted by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } export interface DeleteViewPayload { clientMutationId?: string | null; @@ -23435,23 +23862,29 @@ export interface DeleteViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } +export interface DeleteBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} export interface DeleteWebauthnAuthModulePayload { clientMutationId?: string | null; /** The `WebauthnAuthModule` that was deleted by this mutation. */ webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface DeleteAppInvitePayload { +export interface DeleteAppMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteUserPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `User` that was deleted by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } export interface DeleteAppPayload { clientMutationId?: string | null; @@ -23525,11 +23958,11 @@ export interface DeleteWebauthnSettingPayload { webauthnSetting?: WebauthnSetting | null; webauthnSettingEdge?: WebauthnSettingEdge | null; } -export interface DeleteAppMembershipPayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } export interface DeleteSchemaPayload { clientMutationId?: string | null; @@ -23543,11 +23976,11 @@ export interface DeleteIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface DeleteOrgInvitePayload { +export interface DeleteAppInvitePayload { clientMutationId?: string | null; - /** The `OrgInvite` that was deleted by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } export interface DeleteBillingProviderModulePayload { clientMutationId?: string | null; @@ -23573,12 +24006,6 @@ export interface DeleteProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} export interface DeleteEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was deleted by this mutation. */ @@ -23591,6 +24018,12 @@ export interface DeleteForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface DeleteRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was deleted by this mutation. */ @@ -23627,18 +24060,18 @@ export interface DeleteLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface DeleteStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was deleted by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} export interface DeleteMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was deleted by this mutation. */ membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface DeleteStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was deleted by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} export interface DeleteEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was deleted by this mutation. */ @@ -23688,6 +24121,12 @@ export interface GetAllEdge { /** The `GetAllRecord` at the end of the edge. */ node?: GetAllRecord | null; } +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -23700,24 +24139,12 @@ export interface OrgPermissionEdge { /** The `OrgPermission` at the end of the edge. */ node?: OrgPermission | null; } -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; -} /** A `DefaultIdsModule` edge in the connection. */ export interface DefaultIdsModuleEdge { cursor?: string | null; /** The `DefaultIdsModule` at the end of the edge. */ node?: DefaultIdsModule | null; } -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { - cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; -} /** A `AppLimitCreditRedemption` edge in the connection. */ export interface AppLimitCreditRedemptionEdge { cursor?: string | null; @@ -23778,11 +24205,17 @@ export interface StoreEdge { /** The `Store` at the end of the edge. */ node?: Store | null; } -/** A `EncryptedSecretsModule` edge in the connection. */ -export interface EncryptedSecretsModuleEdge { +/** A `ConfigSecretsOrgModule` edge in the connection. */ +export interface ConfigSecretsOrgModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsOrgModule` at the end of the edge. */ + node?: ConfigSecretsOrgModule | null; +} +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { cursor?: string | null; - /** The `EncryptedSecretsModule` at the end of the edge. */ - node?: EncryptedSecretsModule | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; } /** A `MembershipTypesModule` edge in the connection. */ export interface MembershipTypesModuleEdge { @@ -23814,11 +24247,11 @@ export interface SiteModuleEdge { /** The `SiteModule` at the end of the edge. */ node?: SiteModule | null; } -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; } /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { @@ -23868,6 +24301,12 @@ export interface OrgPermissionDefaultEdge { /** The `OrgPermissionDefault` at the end of the edge. */ node?: OrgPermissionDefault | null; } +/** A `MigrateFile` edge in the connection. */ +export interface MigrateFileEdge { + cursor?: string | null; + /** The `MigrateFile` at the end of the edge. */ + node?: MigrateFile | null; +} /** A `AppLimitCapsDefault` edge in the connection. */ export interface AppLimitCapsDefaultEdge { cursor?: string | null; @@ -23880,30 +24319,6 @@ export interface OrgLimitCapsDefaultEdge { /** The `OrgLimitCapsDefault` at the end of the edge. */ node?: OrgLimitCapsDefault | null; } -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { - cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; -} -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -/** A `MigrateFile` edge in the connection. */ -export interface MigrateFileEdge { - cursor?: string | null; - /** The `MigrateFile` at the end of the edge. */ - node?: MigrateFile | null; -} /** A `DefaultPrivilege` edge in the connection. */ export interface DefaultPrivilegeEdge { cursor?: string | null; @@ -23958,12 +24373,24 @@ export interface WebauthnCredentialsModuleEdge { /** The `WebauthnCredentialsModule` at the end of the edge. */ node?: WebauthnCredentialsModule | null; } +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; /** The `OrgAdminGrant` at the end of the edge. */ node?: OrgAdminGrant | null; } +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} /** A `OrgOwnerGrant` edge in the connection. */ export interface OrgOwnerGrantEdge { cursor?: string | null; @@ -23976,30 +24403,36 @@ export interface NodeTypeRegistryEdge { /** The `NodeTypeRegistry` at the end of the edge. */ node?: NodeTypeRegistry | null; } +/** A `AppLimitCreditCodeItem` edge in the connection. */ +export interface AppLimitCreditCodeItemEdge { + cursor?: string | null; + /** The `AppLimitCreditCodeItem` at the end of the edge. */ + node?: AppLimitCreditCodeItem | null; +} +/** A `AppLimitCap` edge in the connection. */ +export interface AppLimitCapEdge { + cursor?: string | null; + /** The `AppLimitCap` at the end of the edge. */ + node?: AppLimitCap | null; +} /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; /** The `AppLimitDefault` at the end of the edge. */ node?: AppLimitDefault | null; } +/** A `OrgLimitCap` edge in the connection. */ +export interface OrgLimitCapEdge { + cursor?: string | null; + /** The `OrgLimitCap` at the end of the edge. */ + node?: OrgLimitCap | null; +} /** A `OrgLimitDefault` edge in the connection. */ export interface OrgLimitDefaultEdge { cursor?: string | null; /** The `OrgLimitDefault` at the end of the edge. */ node?: OrgLimitDefault | null; } -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { - cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; -} -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { - cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; -} /** A `UserConnectedAccount` edge in the connection. */ export interface UserConnectedAccountEdge { cursor?: string | null; @@ -24018,6 +24451,12 @@ export interface CryptoAddressesModuleEdge { /** The `CryptoAddressesModule` at the end of the edge. */ node?: CryptoAddressesModule | null; } +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} /** A `CryptoAddress` edge in the connection. */ export interface CryptoAddressEdge { cursor?: string | null; @@ -24036,23 +24475,23 @@ export interface AppLimitCreditEdge { /** The `AppLimitCredit` at the end of the edge. */ node?: AppLimitCredit | null; } -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} /** A `OrgLimitCredit` edge in the connection. */ export interface OrgLimitCreditEdge { cursor?: string | null; /** The `OrgLimitCredit` at the end of the edge. */ node?: OrgLimitCredit | null; } -/** A `SiteMetadatum` edge in the connection. */ -export interface SiteMetadatumEdge { +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { cursor?: string | null; - /** The `SiteMetadatum` at the end of the edge. */ - node?: SiteMetadatum | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { + cursor?: string | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; } /** A `FullTextSearch` edge in the connection. */ export interface FullTextSearchEdge { @@ -24072,6 +24511,12 @@ export interface CommitEdge { /** The `Commit` at the end of the edge. */ node?: Commit | null; } +/** A `SiteMetadatum` edge in the connection. */ +export interface SiteMetadatumEdge { + cursor?: string | null; + /** The `SiteMetadatum` at the end of the edge. */ + node?: SiteMetadatum | null; +} /** A `PubkeySetting` edge in the connection. */ export interface PubkeySettingEdge { cursor?: string | null; @@ -24108,23 +24553,17 @@ export interface AppClaimedInviteEdge { /** The `AppClaimedInvite` at the end of the edge. */ node?: AppClaimedInvite | null; } -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; } -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } /** A `Domain` edge in the connection. */ export interface DomainEdge { @@ -24150,12 +24589,6 @@ export interface AgentThreadEdge { /** The `AgentThread` at the end of the edge. */ node?: AgentThread | null; } -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} /** A `AppGrant` edge in the connection. */ export interface AppGrantEdge { cursor?: string | null; @@ -24168,30 +24601,6 @@ export interface OrgClaimedInviteEdge { /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; } -/** A `AppLimitEvent` edge in the connection. */ -export interface AppLimitEventEdge { - cursor?: string | null; - /** The `AppLimitEvent` at the end of the edge. */ - node?: AppLimitEvent | null; -} -/** A `OrgLimitEvent` edge in the connection. */ -export interface OrgLimitEventEdge { - cursor?: string | null; - /** The `OrgLimitEvent` at the end of the edge. */ - node?: OrgLimitEvent | null; -} -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -/** A `Partition` edge in the connection. */ -export interface PartitionEdge { - cursor?: string | null; - /** The `Partition` at the end of the edge. */ - node?: Partition | null; -} /** A `BlueprintConstruction` edge in the connection. */ export interface BlueprintConstructionEdge { cursor?: string | null; @@ -24210,12 +24619,30 @@ export interface SessionsModuleEdge { /** The `SessionsModule` at the end of the edge. */ node?: SessionsModule | null; } +/** A `OrgMemberProfile` edge in the connection. */ +export interface OrgMemberProfileEdge { + cursor?: string | null; + /** The `OrgMemberProfile` at the end of the edge. */ + node?: OrgMemberProfile | null; +} /** A `OrgGrant` edge in the connection. */ export interface OrgGrantEdge { cursor?: string | null; /** The `OrgGrant` at the end of the edge. */ node?: OrgGrant | null; } +/** A `AuditLog` edge in the connection. */ +export interface AuditLogEdge { + cursor?: string | null; + /** The `AuditLog` at the end of the edge. */ + node?: AuditLog | null; +} +/** A `Partition` edge in the connection. */ +export interface PartitionEdge { + cursor?: string | null; + /** The `Partition` at the end of the edge. */ + node?: Partition | null; +} /** A `Blueprint` edge in the connection. */ export interface BlueprintEdge { cursor?: string | null; @@ -24228,6 +24655,12 @@ export interface DenormalizedTableFieldEdge { /** The `DenormalizedTableField` at the end of the edge. */ node?: DenormalizedTableField | null; } +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { cursor?: string | null; @@ -24246,17 +24679,11 @@ export interface PlansModuleEdge { /** The `PlansModule` at the end of the edge. */ node?: PlansModule | null; } -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } /** A `SqlAction` edge in the connection. */ export interface SqlActionEdge { @@ -24264,6 +24691,18 @@ export interface SqlActionEdge { /** The `SqlAction` at the end of the edge. */ node?: SqlAction | null; } +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { + cursor?: string | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; +} +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} /** A `DatabaseTransfer` edge in the connection. */ export interface DatabaseTransferEdge { cursor?: string | null; @@ -24276,12 +24715,6 @@ export interface DatabaseSettingEdge { /** The `DatabaseSetting` at the end of the edge. */ node?: DatabaseSetting | null; } -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { - cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; -} /** A `CryptoAuthModule` edge in the connection. */ export interface CryptoAuthModuleEdge { cursor?: string | null; @@ -24300,29 +24733,23 @@ export interface InvitesModuleEdge { /** The `InvitesModule` at the end of the edge. */ node?: InvitesModule | null; } +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} /** A `SecureTableProvision` edge in the connection. */ export interface SecureTableProvisionEdge { cursor?: string | null; /** The `SecureTableProvision` at the end of the edge. */ node?: SecureTableProvision | null; } -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { - cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; -} -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -/** A `AstMigration` edge in the connection. */ -export interface AstMigrationEdge { +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { cursor?: string | null; - /** The `AstMigration` at the end of the edge. */ - node?: AstMigration | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; } /** A `ApiSetting` edge in the connection. */ export interface ApiSettingEdge { @@ -24336,11 +24763,17 @@ export interface EnumEdge { /** The `Enum` at the end of the edge. */ node?: Enum | null; } -/** A `User` edge in the connection. */ -export interface UserEdge { +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; } /** A `View` edge in the connection. */ export interface ViewEdge { @@ -24348,23 +24781,29 @@ export interface ViewEdge { /** The `View` at the end of the edge. */ node?: View | null; } +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { + cursor?: string | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; +} /** A `WebauthnAuthModule` edge in the connection. */ export interface WebauthnAuthModuleEdge { cursor?: string | null; /** The `WebauthnAuthModule` at the end of the edge. */ node?: WebauthnAuthModule | null; } -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; } -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `User` edge in the connection. */ +export interface UserEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `User` at the end of the edge. */ + node?: User | null; } /** A `App` edge in the connection. */ export interface AppEdge { @@ -24390,6 +24829,12 @@ export interface PermissionsModuleEdge { /** The `PermissionsModule` at the end of the edge. */ node?: PermissionsModule | null; } +/** A `AstMigration` edge in the connection. */ +export interface AstMigrationEdge { + cursor?: string | null; + /** The `AstMigration` at the end of the edge. */ + node?: AstMigration | null; +} /** A `WebauthnCredential` edge in the connection. */ export interface WebauthnCredentialEdge { cursor?: string | null; @@ -24438,11 +24883,11 @@ export interface WebauthnSettingEdge { /** The `WebauthnSetting` at the end of the edge. */ node?: WebauthnSetting | null; } -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } /** A `Schema` edge in the connection. */ export interface SchemaEdge { @@ -24456,11 +24901,11 @@ export interface IndexEdge { /** The `Index` at the end of the edge. */ node?: Index | null; } -/** A `OrgInvite` edge in the connection. */ -export interface OrgInviteEdge { +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { cursor?: string | null; - /** The `OrgInvite` at the end of the edge. */ - node?: OrgInvite | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; } /** A `BillingProviderModule` edge in the connection. */ export interface BillingProviderModuleEdge { @@ -24486,12 +24931,6 @@ export interface ProfilesModuleEdge { /** The `ProfilesModule` at the end of the edge. */ node?: ProfilesModule | null; } -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} /** A `EmbeddingChunk` edge in the connection. */ export interface EmbeddingChunkEdge { cursor?: string | null; @@ -24504,6 +24943,12 @@ export interface ForeignKeyConstraintEdge { /** The `ForeignKeyConstraint` at the end of the edge. */ node?: ForeignKeyConstraint | null; } +/** A `OrgInvite` edge in the connection. */ +export interface OrgInviteEdge { + cursor?: string | null; + /** The `OrgInvite` at the end of the edge. */ + node?: OrgInvite | null; +} /** A `RelationProvision` edge in the connection. */ export interface RelationProvisionEdge { cursor?: string | null; @@ -24540,18 +24985,18 @@ export interface LimitsModuleEdge { /** The `LimitsModule` at the end of the edge. */ node?: LimitsModule | null; } -/** A `StorageModule` edge in the connection. */ -export interface StorageModuleEdge { - cursor?: string | null; - /** The `StorageModule` at the end of the edge. */ - node?: StorageModule | null; -} /** A `MembershipsModule` edge in the connection. */ export interface MembershipsModuleEdge { cursor?: string | null; /** The `MembershipsModule` at the end of the edge. */ node?: MembershipsModule | null; } +/** A `StorageModule` edge in the connection. */ +export interface StorageModuleEdge { + cursor?: string | null; + /** The `StorageModule` at the end of the edge. */ + node?: StorageModule | null; +} /** A `EventsModule` edge in the connection. */ export interface EventsModuleEdge { cursor?: string | null; @@ -24572,6 +25017,14 @@ export interface MetaTable { inflection: MetaInflection; query: MetaQuery; } +export interface SignInCrossOriginRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} export interface BootstrapUserRecord { outUserId?: string | null; outEmail?: string | null; @@ -24582,6 +25035,24 @@ export interface BootstrapUserRecord { outIsSudo?: boolean | null; outApiKey?: string | null; } +export interface SignUpRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export interface SignInRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + mfaRequired?: boolean | null; + mfaChallengeToken?: string | null; +} export interface ProvisionDatabaseWithUserRecord { outDatabaseId?: string | null; outApiKey?: string | null; @@ -24592,14 +25063,6 @@ export interface ProvisionRelationRecord { outSourceFieldId?: string | null; outTargetFieldId?: string | null; } -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} export interface ExtendTokenExpiresRecord { id?: string | null; sessionId?: string | null; @@ -24610,24 +25073,6 @@ export interface CreateApiKeyRecord { keyId?: string | null; expiresAt?: string | null; } -export interface SignUpRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export interface SignInRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; - mfaRequired?: boolean | null; - mfaChallengeToken?: string | null; -} export interface ProvisionTableRecord { outTableId?: string | null; outFields?: string[] | null; diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts index 9fd52432c6..25d7e818a3 100644 --- a/sdk/constructive-react/src/public/types.ts +++ b/sdk/constructive-react/src/public/types.ts @@ -24,6 +24,16 @@ export interface GetAllRecord { path: string[] | null; data: unknown | null; } +export interface Object { + hashUuid: string | null; + id: string | null; + scopeId: string | null; + kids: string[] | null; + ktree: string[] | null; + data: unknown | null; + frzn: boolean | null; + createdAt: string | null; +} export interface AppPermission { id: string | null; name: string | null; @@ -38,16 +48,6 @@ export interface OrgPermission { bitstr: string | null; description: string | null; } -export interface Object { - hashUuid: string | null; - id: string | null; - databaseId: string | null; - kids: string[] | null; - ktree: string[] | null; - data: unknown | null; - frzn: boolean | null; - createdAt: string | null; -} export interface Database { id: string | null; ownerId: string | null; @@ -419,6 +419,13 @@ export interface RealtimeModule { interval: string | null; notifyChannel: string | null; } +export interface ConfigSecretsOrgModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; +} export interface SchemaGrant { id: string | null; databaseId: string | null; @@ -536,6 +543,7 @@ export interface Partition { partitionKeyId: string | null; interval: string | null; retention: string | null; + retentionKeepTable: boolean | null; premake: number | null; namingPattern: string | null; createdAt: string | null; @@ -651,7 +659,7 @@ export interface EmailsModule { ownerTableId: string | null; tableName: string | null; } -export interface EncryptedSecretsModule { +export interface ConfigSecretsUserModule { id: string | null; databaseId: string | null; schemaId: string | null; @@ -958,6 +966,7 @@ export interface StorageModule { bucketsTableName: string | null; filesTableName: string | null; membershipType: number | null; + storageKey: string | null; policies: unknown | null; skipDefaultPolicyTables: string[] | null; entityTableId: string | null; @@ -1410,10 +1419,6 @@ export interface AgentTask { ownerId: string | null; status: string | null; } -export interface RoleType { - id: number | null; - name: string | null; -} export interface IdentityProvider { slug: string | null; kind: string | null; @@ -1424,14 +1429,14 @@ export interface IdentityProvider { export interface Ref { id: string | null; name: string | null; - databaseId: string | null; + scopeId: string | null; storeId: string | null; commitId: string | null; } export interface Store { id: string | null; name: string | null; - databaseId: string | null; + scopeId: string | null; hash: string | null; createdAt: string | null; } @@ -1439,48 +1444,25 @@ export interface AppPermissionDefault { id: string | null; permissions: string | null; } -export interface AppLimitCreditCode { - id: string | null; - code: string | null; - maxRedemptions: number | null; - currentRedemptions: number | null; - expiresAt: string | null; -} -export interface AppLimitCapsDefault { - id: string | null; +export interface RoleType { + id: number | null; name: string | null; - max: string | null; } -export interface OrgLimitCapsDefault { +export interface MigrateFile { id: string | null; - name: string | null; - max: string | null; + databaseId: string | null; + upload: ConstructiveInternalTypeUpload | null; } -export interface AppLimitCap { +export interface AppLimitCapsDefault { id: string | null; name: string | null; - entityId: string | null; max: string | null; } -export interface OrgLimitCap { +export interface OrgLimitCapsDefault { id: string | null; name: string | null; - entityId: string | null; max: string | null; } -export interface MembershipType { - id: number | null; - name: string | null; - description: string | null; - prefix: string | null; - parentMembershipType: number | null; - hasUsersTableEntry: boolean | null; -} -export interface MigrateFile { - id: string | null; - databaseId: string | null; - upload: ConstructiveInternalTypeUpload | null; -} export interface DevicesModule { id: string | null; databaseId: string | null; @@ -1490,6 +1472,24 @@ export interface DevicesModule { userDevicesTable: string | null; deviceSettingsTable: string | null; } +export interface AppMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isVerified: boolean | null; +} +export interface OrgMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + entityId: string | null; +} export interface NodeTypeRegistry { name: string | null; slug: string | null; @@ -1499,24 +1499,29 @@ export interface NodeTypeRegistry { parameterSchema: unknown | null; tags: string[] | null; } +export interface AppLimitCap { + id: string | null; + name: string | null; + entityId: string | null; + max: string | null; +} export interface AppLimitDefault { id: string | null; name: string | null; max: string | null; softMax: string | null; } -export interface OrgLimitDefault { +export interface OrgLimitCap { id: string | null; name: string | null; + entityId: string | null; max: string | null; - softMax: string | null; } -export interface AppLimitWarning { +export interface OrgLimitDefault { id: string | null; name: string | null; - warningType: string | null; - thresholdValue: string | null; - taskIdentifier: string | null; + max: string | null; + softMax: string | null; } export interface UserConnectedAccount { id: string | null; @@ -1528,10 +1533,24 @@ export interface UserConnectedAccount { createdAt: string | null; updatedAt: string | null; } +export interface AppLimitCreditCode { + id: string | null; + code: string | null; + maxRedemptions: number | null; + currentRedemptions: number | null; + expiresAt: string | null; +} +export interface AppLimitWarning { + id: string | null; + name: string | null; + warningType: string | null; + thresholdValue: string | null; + taskIdentifier: string | null; +} export interface Commit { id: string | null; message: string | null; - databaseId: string | null; + scopeId: string | null; storeId: string | null; parentIds: string[] | null; authorId: string | null; @@ -1569,23 +1588,13 @@ export interface UsageSnapshot { capturedAt: string | null; id: string | null; } -export interface AppMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isVerified: boolean | null; -} -export interface OrgMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - entityId: string | null; +export interface MembershipType { + id: number | null; + name: string | null; + description: string | null; + prefix: string | null; + parentMembershipType: number | null; + hasUsersTableEntry: boolean | null; } export interface RlsSetting { id: string | null; @@ -1599,28 +1608,6 @@ export interface RlsSetting { currentUserAgentFunctionId: string | null; currentIpAddressFunctionId: string | null; } -export interface AppLimitEvent { - name: string | null; - actorId: string | null; - entityId: string | null; - eventType: string | null; - delta: string | null; - numBefore: string | null; - numAfter: string | null; - maxAtEvent: string | null; - reason: string | null; -} -export interface OrgLimitEvent { - name: string | null; - actorId: string | null; - entityId: string | null; - eventType: string | null; - delta: string | null; - numBefore: string | null; - numAfter: string | null; - maxAtEvent: string | null; - reason: string | null; -} export interface RlsModule { id: string | null; databaseId: string | null; @@ -1634,6 +1621,20 @@ export interface RlsModule { currentRole: string | null; currentRoleId: string | null; } +export interface InferenceLogModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + inferenceLogTableId: string | null; + inferenceLogTableName: string | null; + usageDailyTableId: string | null; + usageDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + prefix: string | null; +} export interface RateLimitMetersModule { id: string | null; databaseId: string | null; @@ -1678,6 +1679,32 @@ export interface SqlAction { actionId: string | null; actorId: string | null; } +export interface AppLimitEvent { + createdAt: string | null; + id: string | null; + name: string | null; + actorId: string | null; + entityId: string | null; + eventType: string | null; + delta: string | null; + numBefore: string | null; + numAfter: string | null; + maxAtEvent: string | null; + reason: string | null; +} +export interface OrgLimitEvent { + createdAt: string | null; + id: string | null; + name: string | null; + actorId: string | null; + entityId: string | null; + eventType: string | null; + delta: string | null; + numBefore: string | null; + numAfter: string | null; + maxAtEvent: string | null; + reason: string | null; +} export interface DatabaseSetting { id: string | null; databaseId: string | null; @@ -1694,6 +1721,22 @@ export interface DatabaseSetting { enableBulk: boolean | null; options: unknown | null; } +export interface OrgMembershipSetting { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + entityId: string | null; + deleteMemberCascadeChildren: boolean | null; + createChildCascadeOwners: boolean | null; + createChildCascadeAdmins: boolean | null; + createChildCascadeMembers: boolean | null; + allowExternalMembers: boolean | null; + inviteProfileAssignmentMode: string | null; + populateMemberEmail: boolean | null; + limitAllocationMode: string | null; +} export interface BillingModule { id: string | null; databaseId: string | null; @@ -1707,23 +1750,28 @@ export interface BillingModule { ledgerTableName: string | null; balancesTableId: string | null; balancesTableName: string | null; + meterCreditsTableId: string | null; + meterCreditsTableName: string | null; recordUsageFunction: string | null; prefix: string | null; } -export interface AstMigration { - id: number | null; - databaseId: string | null; - name: string | null; - requires: string[] | null; - payload: unknown | null; - deploys: string | null; - deploy: unknown | null; - revert: unknown | null; - verify: unknown | null; +export interface AppMembership { + id: string | null; createdAt: string | null; - action: string | null; - actionId: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isBanned: boolean | null; + isDisabled: boolean | null; + isVerified: boolean | null; + isActive: boolean | null; + isOwner: boolean | null; + isAdmin: boolean | null; + permissions: string | null; + granted: string | null; actorId: string | null; + profileId: string | null; } export interface User { id: string | null; @@ -1738,21 +1786,20 @@ export interface User { displayNameTrgmSimilarity: number | null; searchScore: number | null; } -export interface OrgMembershipSetting { - id: string | null; +export interface AstMigration { + id: number | null; + databaseId: string | null; + name: string | null; + requires: string[] | null; + payload: unknown | null; + deploys: string | null; + deploy: unknown | null; + revert: unknown | null; + verify: unknown | null; createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - entityId: string | null; - deleteMemberCascadeChildren: boolean | null; - createChildCascadeOwners: boolean | null; - createChildCascadeAdmins: boolean | null; - createChildCascadeMembers: boolean | null; - allowExternalMembers: boolean | null; - inviteProfileAssignmentMode: string | null; - populateMemberEmail: boolean | null; - limitAllocationMode: string | null; + action: string | null; + actionId: string | null; + actorId: string | null; } export interface WebauthnSetting { id: string | null; @@ -1774,24 +1821,6 @@ export interface WebauthnSetting { residentKey: string | null; challengeExpirySeconds: string | null; } -export interface AppMembership { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isBanned: boolean | null; - isDisabled: boolean | null; - isVerified: boolean | null; - isActive: boolean | null; - isOwner: boolean | null; - isAdmin: boolean | null; - permissions: string | null; - granted: string | null; - actorId: string | null; - profileId: string | null; -} export interface BillingProviderModule { id: string | null; databaseId: string | null; diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql index 263d6bf043..94deaaa282 100644 --- a/sdk/constructive-sdk/schemas/admin.graphql +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -171,8 +171,8 @@ type Query { orderBy: [AppPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): AppPermissionDefaultConnection - """Reads and enables pagination through a set of `AppLimitCreditCode`.""" - appLimitCreditCodes( + """Reads and enables pagination through a set of `AppAdminGrant`.""" + appAdminGrants( """Only read the first `n` values of the set.""" first: Int @@ -194,11 +194,40 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditCodeFilter + where: AppAdminGrantFilter - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeConnection + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAdminGrantConnection + + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppOwnerGrantFilter + + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppOwnerGrantConnection """Reads and enables pagination through a set of `OrgPermissionDefault`.""" orgPermissionDefaults( @@ -229,8 +258,8 @@ type Query { orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): OrgPermissionDefaultConnection - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissions( + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -252,14 +281,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionFilter + where: AppMembershipDefaultFilter - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppPermissionConnection + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultConnection - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissions( + """Reads and enables pagination through a set of `OrgAdminGrant`.""" + orgAdminGrants( """Only read the first `n` values of the set.""" first: Int @@ -281,14 +310,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgPermissionFilter + where: OrgAdminGrantFilter - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionConnection + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgAdminGrantConnection - """Reads and enables pagination through a set of `AppAdminGrant`.""" - appAdminGrants( + """Reads and enables pagination through a set of `OrgMembershipDefault`.""" + orgMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -310,14 +339,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppAdminGrantFilter + where: OrgMembershipDefaultFilter - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppAdminGrantConnection + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultConnection - """Reads and enables pagination through a set of `AppOwnerGrant`.""" - appOwnerGrants( + """Reads and enables pagination through a set of `OrgOwnerGrant`.""" + orgOwnerGrants( """Only read the first `n` values of the set.""" first: Int @@ -339,11 +368,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppOwnerGrantFilter + where: OrgOwnerGrantFilter - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppOwnerGrantConnection + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantConnection """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" appLimitCapsDefaults( @@ -461,8 +490,8 @@ type Query { orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] ): OrgLimitCapConnection - """Reads and enables pagination through a set of `OrgAdminGrant`.""" - orgAdminGrants( + """Reads and enables pagination through a set of `OrgChartEdge`.""" + orgChartEdges( """Only read the first `n` values of the set.""" first: Int @@ -484,14 +513,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgAdminGrantFilter + where: OrgChartEdgeFilter - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgAdminGrantConnection + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeConnection - """Reads and enables pagination through a set of `OrgOwnerGrant`.""" - orgOwnerGrants( + """ + Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + """ + appLimitCreditCodeItems( """Only read the first `n` values of the set.""" first: Int @@ -513,14 +544,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgOwnerGrantFilter + where: AppLimitCreditCodeItemFilter - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantConnection + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemConnection - """Reads and enables pagination through a set of `MembershipType`.""" - membershipTypes( + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -542,14 +573,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipTypeFilter + where: AppLimitDefaultFilter - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipTypeConnection + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitDefaultConnection - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -571,14 +602,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitDefaultFilter + where: OrgLimitDefaultFilter - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitDefaultConnection + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultConnection - """Reads and enables pagination through a set of `OrgLimitDefault`.""" - orgLimitDefaults( + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissions( """Only read the first `n` values of the set.""" first: Int @@ -600,16 +631,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitDefaultFilter + where: AppPermissionFilter - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultConnection + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionConnection - """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. - """ - appLimitCreditCodeItems( + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissions( """Only read the first `n` values of the set.""" first: Int @@ -631,14 +660,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditCodeItemFilter + where: OrgPermissionFilter - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemConnection + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionConnection - """Reads and enables pagination through a set of `AppLimitWarning`.""" - appLimitWarnings( + """Reads and enables pagination through a set of `AppLimitCreditCode`.""" + appLimitCreditCodes( """Only read the first `n` values of the set.""" first: Int @@ -660,14 +689,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitWarningFilter + where: AppLimitCreditCodeFilter - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitWarningConnection + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeConnection - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCredits( + """Reads and enables pagination through a set of `AppLimitWarning`.""" + appLimitWarnings( """Only read the first `n` values of the set.""" first: Int @@ -689,14 +718,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditFilter + where: AppLimitWarningFilter - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditConnection + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitWarningConnection - """Reads and enables pagination through a set of `OrgLimitWarning`.""" - orgLimitWarnings( + """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" + orgChartEdgeGrants( """Only read the first `n` values of the set.""" first: Int @@ -718,14 +747,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitWarningFilter + where: OrgChartEdgeGrantFilter - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitWarningConnection + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantConnection - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCredits( + """Reads and enables pagination through a set of `AppLimitCredit`.""" + appLimitCredits( """Only read the first `n` values of the set.""" first: Int @@ -747,14 +776,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCreditFilter + where: AppLimitCreditFilter - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditConnection - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - orgChartEdgeGrants( + """Reads and enables pagination through a set of `OrgLimitCredit`.""" + orgLimitCredits( """Only read the first `n` values of the set.""" first: Int @@ -776,11 +805,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeGrantFilter + where: OrgLimitCreditFilter - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCreditConnection """Reads and enables pagination through a set of `AppClaimedInvite`.""" appClaimedInvites( @@ -811,8 +840,8 @@ type Query { orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] ): AppClaimedInviteConnection - """Reads and enables pagination through a set of `AppGrant`.""" - appGrants( + """Reads and enables pagination through a set of `OrgLimitWarning`.""" + orgLimitWarnings( """Only read the first `n` values of the set.""" first: Int @@ -834,14 +863,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppGrantFilter + where: OrgLimitWarningFilter - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppGrantConnection + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitWarningConnection - """Reads and enables pagination through a set of `AppMembershipDefault`.""" - appMembershipDefaults( + """Reads and enables pagination through a set of `MembershipType`.""" + membershipTypes( """Only read the first `n` values of the set.""" first: Int @@ -863,14 +892,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipDefaultFilter + where: MembershipTypeFilter - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultConnection + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypeConnection - """Reads and enables pagination through a set of `OrgMembershipDefault`.""" - orgMembershipDefaults( + """Reads and enables pagination through a set of `AppGrant`.""" + appGrants( """Only read the first `n` values of the set.""" first: Int @@ -892,11 +921,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipDefaultFilter + where: AppGrantFilter - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultConnection + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppGrantConnection """Reads and enables pagination through a set of `OrgClaimedInvite`.""" orgClaimedInvites( @@ -927,8 +956,8 @@ type Query { orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] ): OrgClaimedInviteConnection - """Reads and enables pagination through a set of `AppLimitEvent`.""" - appLimitEvents( + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrants( """Only read the first `n` values of the set.""" first: Int @@ -950,14 +979,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitEventFilter + where: OrgGrantFilter - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!] = [NATURAL] - ): AppLimitEventConnection + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection - """Reads and enables pagination through a set of `OrgLimitEvent`.""" - orgLimitEvents( + """Reads and enables pagination through a set of `UsageSnapshot`.""" + usageSnapshots( """Only read the first `n` values of the set.""" first: Int @@ -979,14 +1008,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitEventFilter + where: UsageSnapshotFilter - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!] = [NATURAL] - ): OrgLimitEventConnection + """The method to use when ordering `UsageSnapshot`.""" + orderBy: [UsageSnapshotOrderBy!] = [PRIMARY_KEY_ASC] + ): UsageSnapshotConnection - """Reads and enables pagination through a set of `OrgGrant`.""" - orgGrants( + """Reads and enables pagination through a set of `AppLimitEvent`.""" + appLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -1008,14 +1037,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgGrantFilter + where: AppLimitEventFilter - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgGrantConnection + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitEventConnection - """Reads and enables pagination through a set of `OrgChartEdge`.""" - orgChartEdges( + """Reads and enables pagination through a set of `OrgLimitEvent`.""" + orgLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -1037,14 +1066,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeFilter + where: OrgLimitEventFilter - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitEventConnection - """Reads and enables pagination through a set of `UsageSnapshot`.""" - usageSnapshots( + """Reads and enables pagination through a set of `OrgMembershipSetting`.""" + orgMembershipSettings( """Only read the first `n` values of the set.""" first: Int @@ -1066,14 +1095,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UsageSnapshotFilter + where: OrgMembershipSettingFilter - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!] = [PRIMARY_KEY_ASC] - ): UsageSnapshotConnection + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingConnection - """Reads and enables pagination through a set of `AppLimit`.""" - appLimits( + """Reads and enables pagination through a set of `OrgMemberProfile`.""" + orgMemberProfiles( """Only read the first `n` values of the set.""" first: Int @@ -1095,14 +1124,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitFilter + where: OrgMemberProfileFilter - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitConnection + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMemberProfileConnection - """Reads and enables pagination through a set of `AppInvite`.""" - appInvites( + """Reads and enables pagination through a set of `AppMembership`.""" + appMemberships( """Only read the first `n` values of the set.""" first: Int @@ -1124,14 +1153,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppInviteFilter + where: AppMembershipFilter - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppInviteConnection + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipConnection - """Reads and enables pagination through a set of `OrgMembershipSetting`.""" - orgMembershipSettings( + """Reads and enables pagination through a set of `AppLimit`.""" + appLimits( """Only read the first `n` values of the set.""" first: Int @@ -1153,14 +1182,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipSettingFilter + where: AppLimitFilter - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingConnection + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitConnection - """Reads and enables pagination through a set of `OrgLimitAggregate`.""" - orgLimitAggregates( + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMemberships( """Only read the first `n` values of the set.""" first: Int @@ -1182,14 +1211,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitAggregateFilter + where: OrgMembershipFilter - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateConnection + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection - """Reads and enables pagination through a set of `OrgLimit`.""" - orgLimits( + """Reads and enables pagination through a set of `OrgLimitAggregate`.""" + orgLimitAggregates( """Only read the first `n` values of the set.""" first: Int @@ -1211,14 +1240,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitFilter + where: OrgLimitAggregateFilter - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitConnection + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateConnection - """Reads and enables pagination through a set of `OrgMemberProfile`.""" - orgMemberProfiles( + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimits( """Only read the first `n` values of the set.""" first: Int @@ -1240,14 +1269,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMemberProfileFilter + where: OrgLimitFilter - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberProfileConnection + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitConnection - """Reads and enables pagination through a set of `AppMembership`.""" - appMemberships( + """Reads and enables pagination through a set of `AppInvite`.""" + appInvites( """Only read the first `n` values of the set.""" first: Int @@ -1269,11 +1298,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipFilter + where: AppInviteFilter - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipConnection + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppInviteConnection """Reads and enables pagination through a set of `OrgInvite`.""" orgInvites( @@ -1304,35 +1333,6 @@ type Query { orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] ): OrgInviteConnection - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMemberships( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipFilter - - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipConnection - """ Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. """ @@ -2686,269 +2686,55 @@ enum AppPermissionDefaultOrderBy { PERMISSIONS_DESC } -"""A connection to a list of `AppLimitCreditCode` values.""" -type AppLimitCreditCodeConnection { - """A list of `AppLimitCreditCode` objects.""" - nodes: [AppLimitCreditCode]! +"""A connection to a list of `AppAdminGrant` values.""" +type AppAdminGrantConnection { + """A list of `AppAdminGrant` objects.""" + nodes: [AppAdminGrant]! """ - A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. + A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. """ - edges: [AppLimitCreditCodeEdge]! + edges: [AppAdminGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppLimitCreditCode` you could get from the connection. - """ + """The count of *all* `AppAdminGrant` you could get from the connection.""" totalCount: Int! } -"""A `AppLimitCreditCode` edge in the connection.""" -type AppLimitCreditCodeEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""Records of admin role grants and revocations between members""" +type AppAdminGrant { + id: UUID! - """The `AppLimitCreditCode` at the end of the edge.""" - node: AppLimitCreditCode -} + """True to grant admin, false to revoke admin""" + isGrant: Boolean! -"""Methods to use when ordering `AppLimitCreditCode`.""" -enum AppLimitCreditCodeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CODE_ASC - CODE_DESC - MAX_REDEMPTIONS_ASC - MAX_REDEMPTIONS_DESC - CURRENT_REDEMPTIONS_ASC - CURRENT_REDEMPTIONS_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC + """The member receiving or losing the admin grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A connection to a list of `OrgPermissionDefault` values.""" -type OrgPermissionDefaultConnection { - """A list of `OrgPermissionDefault` objects.""" - nodes: [OrgPermissionDefault]! - - """ - A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. - """ - edges: [OrgPermissionDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! +"""A `AppAdminGrant` edge in the connection.""" +type AppAdminGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - The count of *all* `OrgPermissionDefault` you could get from the connection. - """ - totalCount: Int! + """The `AppAdminGrant` at the end of the edge.""" + node: AppAdminGrant } """ -Stores the default permission bitmask assigned to new members upon joining +A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ """ -type OrgPermissionDefault { - id: UUID! +input AppAdminGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Default permission bitmask applied to new members""" - permissions: BitString! - - """References the entity these default permissions apply to""" - entityId: UUID! -} - -"""A `OrgPermissionDefault` edge in the connection.""" -type OrgPermissionDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgPermissionDefault` at the end of the edge.""" - node: OrgPermissionDefault -} - -""" -A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgPermissionDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [OrgPermissionDefaultFilter!] - - """Negates the expression.""" - not: OrgPermissionDefaultFilter -} - -"""Methods to use when ordering `OrgPermissionDefault`.""" -enum OrgPermissionDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -""" -A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ -""" -input AppPermissionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter - - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Checks for all expressions in this list.""" - and: [AppPermissionFilter!] - - """Checks for any expressions in this list.""" - or: [AppPermissionFilter!] - - """Negates the expression.""" - not: AppPermissionFilter -} - -"""Methods to use when ordering `AppPermission`.""" -enum AppPermissionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC -} - -""" -A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter - - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgPermissionFilter!] - - """Checks for any expressions in this list.""" - or: [OrgPermissionFilter!] - - """Negates the expression.""" - not: OrgPermissionFilter -} - -"""Methods to use when ordering `OrgPermission`.""" -enum OrgPermissionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC -} - -"""A connection to a list of `AppAdminGrant` values.""" -type AppAdminGrantConnection { - """A list of `AppAdminGrant` objects.""" - nodes: [AppAdminGrant]! - - """ - A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. - """ - edges: [AppAdminGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppAdminGrant` you could get from the connection.""" - totalCount: Int! -} - -"""Records of admin role grants and revocations between members""" -type AppAdminGrant { - id: UUID! - - """True to grant admin, false to revoke admin""" - isGrant: Boolean! - - """The member receiving or losing the admin grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""A `AppAdminGrant` edge in the connection.""" -type AppAdminGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppAdminGrant` at the end of the edge.""" - node: AppAdminGrant -} - -""" -A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppAdminGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter """Filter by the object’s `actorId` field.""" actorId: UUIDFilter @@ -3082,332 +2868,182 @@ enum AppOwnerGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `AppLimitCapsDefault` values.""" -type AppLimitCapsDefaultConnection { - """A list of `AppLimitCapsDefault` objects.""" - nodes: [AppLimitCapsDefault]! +"""A connection to a list of `OrgPermissionDefault` values.""" +type OrgPermissionDefaultConnection { + """A list of `OrgPermissionDefault` objects.""" + nodes: [OrgPermissionDefault]! """ - A list of edges which contains the `AppLimitCapsDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. """ - edges: [AppLimitCapsDefaultEdge]! + edges: [OrgPermissionDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `AppLimitCapsDefault` you could get from the connection. + The count of *all* `OrgPermissionDefault` you could get from the connection. """ totalCount: Int! } """ -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. +Stores the default permission bitmask assigned to new members upon joining """ -type AppLimitCapsDefault { +type OrgPermissionDefault { id: UUID! - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! + """Default permission bitmask applied to new members""" + permissions: BitString! - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt! + """References the entity these default permissions apply to""" + entityId: UUID! } -"""A `AppLimitCapsDefault` edge in the connection.""" -type AppLimitCapsDefaultEdge { +"""A `OrgPermissionDefault` edge in the connection.""" +type OrgPermissionDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCapsDefault` at the end of the edge.""" - node: AppLimitCapsDefault + """The `OrgPermissionDefault` at the end of the edge.""" + node: OrgPermissionDefault } """ -A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitCapsDefaultFilter { +input OrgPermissionDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter """Checks for all expressions in this list.""" - and: [AppLimitCapsDefaultFilter!] + and: [OrgPermissionDefaultFilter!] """Checks for any expressions in this list.""" - or: [AppLimitCapsDefaultFilter!] + or: [OrgPermissionDefaultFilter!] """Negates the expression.""" - not: AppLimitCapsDefaultFilter + not: OrgPermissionDefaultFilter } -"""Methods to use when ordering `AppLimitCapsDefault`.""" -enum AppLimitCapsDefaultOrderBy { +"""Methods to use when ordering `OrgPermissionDefault`.""" +enum OrgPermissionDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC -} - -"""A connection to a list of `OrgLimitCapsDefault` values.""" -type OrgLimitCapsDefaultConnection { - """A list of `OrgLimitCapsDefault` objects.""" - nodes: [OrgLimitCapsDefault]! - - """ - A list of edges which contains the `OrgLimitCapsDefault` and cursor to aid in pagination. - """ - edges: [OrgLimitCapsDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitCapsDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. -""" -type OrgLimitCapsDefault { - id: UUID! - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt! -} - -"""A `OrgLimitCapsDefault` edge in the connection.""" -type OrgLimitCapsDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitCapsDefault` at the end of the edge.""" - node: OrgLimitCapsDefault -} - -""" -A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitCapsDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitCapsDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitCapsDefaultFilter!] - - """Negates the expression.""" - not: OrgLimitCapsDefaultFilter -} - -"""Methods to use when ordering `OrgLimitCapsDefault`.""" -enum OrgLimitCapsDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } -"""A connection to a list of `AppLimitCap` values.""" -type AppLimitCapConnection { - """A list of `AppLimitCap` objects.""" - nodes: [AppLimitCap]! +"""A connection to a list of `AppMembershipDefault` values.""" +type AppMembershipDefaultConnection { + """A list of `AppMembershipDefault` objects.""" + nodes: [AppMembershipDefault]! """ - A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. + A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. """ - edges: [AppLimitCapEdge]! + edges: [AppMembershipDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimitCap` you could get from the connection.""" + """ + The count of *all* `AppMembershipDefault` you could get from the connection. + """ totalCount: Int! } """ -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. +Default membership settings per entity, controlling initial approval and verification state for new members """ -type AppLimitCap { +type AppMembershipDefault { id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! - """Override cap value for this entity""" - max: BigInt! + """Whether new members are automatically verified upon joining""" + isVerified: Boolean! } -"""A `AppLimitCap` edge in the connection.""" -type AppLimitCapEdge { +"""A `AppMembershipDefault` edge in the connection.""" +type AppMembershipDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCap` at the end of the edge.""" - node: AppLimitCap + """The `AppMembershipDefault` at the end of the edge.""" + node: AppMembershipDefault } """ -A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitCapFilter { +input AppMembershipDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCapFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCapFilter!] - - """Negates the expression.""" - not: AppLimitCapFilter -} - -"""Methods to use when ordering `AppLimitCap`.""" -enum AppLimitCapOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - MAX_ASC - MAX_DESC -} - -"""A connection to a list of `OrgLimitCap` values.""" -type OrgLimitCapConnection { - """A list of `OrgLimitCap` objects.""" - nodes: [OrgLimitCap]! - - """ - A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. - """ - edges: [OrgLimitCapEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitCap` you could get from the connection.""" - totalCount: Int! -} - -""" -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. -""" -type OrgLimitCap { - id: UUID! - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt! -} - -"""A `OrgLimitCap` edge in the connection.""" -type OrgLimitCapEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """The `OrgLimitCap` at the end of the edge.""" - node: OrgLimitCap -} + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter -""" -A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitCapFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter """Checks for all expressions in this list.""" - and: [OrgLimitCapFilter!] + and: [AppMembershipDefaultFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitCapFilter!] + or: [AppMembershipDefaultFilter!] """Negates the expression.""" - not: OrgLimitCapFilter + not: AppMembershipDefaultFilter } -"""Methods to use when ordering `OrgLimitCap`.""" -enum OrgLimitCapOrderBy { +"""Methods to use when ordering `AppMembershipDefault`.""" +enum AppMembershipDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - MAX_ASC - MAX_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_VERIFIED_ASC + IS_VERIFIED_DESC } """A connection to a list of `OrgAdminGrant` values.""" @@ -3509,6 +3145,107 @@ enum OrgAdminGrantOrderBy { UPDATED_AT_DESC } +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! + + """ + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. + """ + edges: [OrgMembershipDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgMembershipDefault` you could get from the connection. + """ + totalCount: Int! +} + +""" +Default membership settings per entity, controlling initial approval and verification state for new members +""" +type OrgMembershipDefault { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! + + """References the entity these membership defaults apply to""" + entityId: UUID! +} + +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault +} + +""" +A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ +""" +input OrgMembershipDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [OrgMembershipDefaultFilter!] + + """Checks for any expressions in this list.""" + or: [OrgMembershipDefaultFilter!] + + """Negates the expression.""" + not: OrgMembershipDefaultFilter +} + +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum OrgMembershipDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC +} + """A connection to a list of `OrgOwnerGrant` values.""" type OrgOwnerGrantConnection { """A list of `OrgOwnerGrant` objects.""" @@ -3608,144 +3345,76 @@ enum OrgOwnerGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `MembershipType` values.""" -type MembershipTypeConnection { - """A list of `MembershipType` objects.""" - nodes: [MembershipType]! +"""A connection to a list of `AppLimitCapsDefault` values.""" +type AppLimitCapsDefaultConnection { + """A list of `AppLimitCapsDefault` objects.""" + nodes: [AppLimitCapsDefault]! """ - A list of edges which contains the `MembershipType` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCapsDefault` and cursor to aid in pagination. """ - edges: [MembershipTypeEdge]! + edges: [AppLimitCapsDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `MembershipType` you could get from the connection.""" + """ + The count of *all* `AppLimitCapsDefault` you could get from the connection. + """ totalCount: Int! } """ -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. """ -type MembershipType { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! +type AppLimitCapsDefault { + id: UUID! """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) """ - parentMembershipType: Int + name: String! """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. """ - hasUsersTableEntry: Boolean! + max: BigInt! } -"""A `MembershipType` edge in the connection.""" -type MembershipTypeEdge { +"""A `AppLimitCapsDefault` edge in the connection.""" +type AppLimitCapsDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `MembershipType` at the end of the edge.""" - node: MembershipType + """The `AppLimitCapsDefault` at the end of the edge.""" + node: AppLimitCapsDefault } """ -A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ """ -input MembershipTypeFilter { +input AppLimitCapsDefaultFilter { """Filter by the object’s `id` field.""" - id: IntFilter + id: UUIDFilter """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `parentMembershipType` field.""" - parentMembershipType: IntFilter - - """Filter by the object’s `hasUsersTableEntry` field.""" - hasUsersTableEntry: BooleanFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter """Checks for all expressions in this list.""" - and: [MembershipTypeFilter!] + and: [AppLimitCapsDefaultFilter!] """Checks for any expressions in this list.""" - or: [MembershipTypeFilter!] + or: [AppLimitCapsDefaultFilter!] """Negates the expression.""" - not: MembershipTypeFilter -} - -"""Methods to use when ordering `MembershipType`.""" -enum MembershipTypeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - PREFIX_ASC - PREFIX_DESC - PARENT_MEMBERSHIP_TYPE_ASC - PARENT_MEMBERSHIP_TYPE_DESC - HAS_USERS_TABLE_ENTRY_ASC - HAS_USERS_TABLE_ENTRY_DESC -} - -"""A connection to a list of `AppLimitDefault` values.""" -type AppLimitDefaultConnection { - """A list of `AppLimitDefault` objects.""" - nodes: [AppLimitDefault]! - - """ - A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. - """ - edges: [AppLimitDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `AppLimitDefault` edge in the connection.""" -type AppLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitDefault` at the end of the edge.""" - node: AppLimitDefault + not: AppLimitCapsDefaultFilter } -"""Methods to use when ordering `AppLimitDefault`.""" -enum AppLimitDefaultOrderBy { +"""Methods to use when ordering `AppLimitCapsDefault`.""" +enum AppLimitCapsDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -3755,248 +3424,159 @@ enum AppLimitDefaultOrderBy { NAME_DESC MAX_ASC MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC } -"""A connection to a list of `OrgLimitDefault` values.""" -type OrgLimitDefaultConnection { - """A list of `OrgLimitDefault` objects.""" - nodes: [OrgLimitDefault]! +"""A connection to a list of `OrgLimitCapsDefault` values.""" +type OrgLimitCapsDefaultConnection { + """A list of `OrgLimitCapsDefault` objects.""" + nodes: [OrgLimitCapsDefault]! """ - A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitCapsDefault` and cursor to aid in pagination. """ - edges: [OrgLimitDefaultEdge]! + edges: [OrgLimitCapsDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgLimitDefault` you could get from the connection. + The count of *all* `OrgLimitCapsDefault` you could get from the connection. """ totalCount: Int! } """ -Default maximum values for each named limit, applied when no per-actor override exists +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. """ -type OrgLimitDefault { +type OrgLimitCapsDefault { id: UUID! - """Name identifier of the limit this default applies to""" + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ name: String! - """Default maximum usage allowed for this limit""" - max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt! +} - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCreditsByDefaultLimitId( - """Only read the first `n` values of the set.""" - first: Int +"""A `OrgLimitCapsDefault` edge in the connection.""" +type OrgLimitCapsDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Only read the last `n` values of the set.""" - last: Int + """The `OrgLimitCapsDefault` at the end of the edge.""" + node: OrgLimitCapsDefault +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +""" +A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitCapsDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `name` field.""" + name: StringFilter - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `max` field.""" + max: BigIntFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgLimitCreditFilter + """Checks for all expressions in this list.""" + and: [OrgLimitCapsDefaultFilter!] - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection! + """Checks for any expressions in this list.""" + or: [OrgLimitCapsDefaultFilter!] + + """Negates the expression.""" + not: OrgLimitCapsDefaultFilter } -"""A connection to a list of `OrgLimitCredit` values.""" -type OrgLimitCreditConnection { - """A list of `OrgLimitCredit` objects.""" - nodes: [OrgLimitCredit]! +"""Methods to use when ordering `OrgLimitCapsDefault`.""" +enum OrgLimitCapsDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC +} + +"""A connection to a list of `AppLimitCap` values.""" +type AppLimitCapConnection { + """A list of `AppLimitCap` objects.""" + nodes: [AppLimitCap]! """ - A list of edges which contains the `OrgLimitCredit` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. """ - edges: [OrgLimitCreditEdge]! + edges: [AppLimitCapEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgLimitCredit` you could get from the connection.""" + """The count of *all* `AppLimitCap` you could get from the connection.""" totalCount: Int! } """ -Append-only ledger of credit grants that automatically update limit ceilings +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. """ -type OrgLimitCredit { +type AppLimitCap { id: UUID! - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String! + """Name identifier of the cap being overridden""" + name: String! - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """Entity this cap override applies to""" + entityId: UUID! - """ - Reads a single `OrgLimitDefault` that is related to this `OrgLimitCredit`. - """ - defaultLimit: OrgLimitDefault + """Override cap value for this entity""" + max: BigInt! } -"""A `OrgLimitCredit` edge in the connection.""" -type OrgLimitCreditEdge { +"""A `AppLimitCap` edge in the connection.""" +type AppLimitCapEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitCredit` at the end of the edge.""" - node: OrgLimitCredit + """The `AppLimitCap` at the end of the edge.""" + node: AppLimitCap } """ -A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitCreditFilter { +input AppLimitCapFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `amount` field.""" - amount: BigIntFilter - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitCreditFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitCreditFilter!] - - """Negates the expression.""" - not: OrgLimitCreditFilter - - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: OrgLimitDefaultFilter -} - -""" -A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - """Filter by the object’s `max` field.""" max: BigIntFilter - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - """Checks for all expressions in this list.""" - and: [OrgLimitDefaultFilter!] + and: [AppLimitCapFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitDefaultFilter!] + or: [AppLimitCapFilter!] """Negates the expression.""" - not: OrgLimitDefaultFilter - - """Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation.""" - orgLimitCreditsByDefaultLimitId: OrgLimitDefaultToManyOrgLimitCreditFilter - - """`orgLimitCreditsByDefaultLimitId` exist.""" - orgLimitCreditsByDefaultLimitIdExist: Boolean -} - -""" -A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitDefaultToManyOrgLimitCreditFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgLimitCreditFilter - - """Filters to entities where every related entity matches.""" - every: OrgLimitCreditFilter - - """Filters to entities where no related entity matches.""" - none: OrgLimitCreditFilter -} - -"""Methods to use when ordering `OrgLimitCredit`.""" -enum OrgLimitCreditOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - AMOUNT_ASC - AMOUNT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - REASON_ASC - REASON_DESC -} - -"""A `OrgLimitDefault` edge in the connection.""" -type OrgLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitDefault` at the end of the edge.""" - node: OrgLimitDefault + not: AppLimitCapFilter } -"""Methods to use when ordering `OrgLimitDefault`.""" -enum OrgLimitDefaultOrderBy { +"""Methods to use when ordering `AppLimitCap`.""" +enum AppLimitCapOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -4004,197 +3584,82 @@ enum OrgLimitDefaultOrderBy { ID_DESC NAME_ASC NAME_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC MAX_ASC MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC } -"""A connection to a list of `AppLimitWarning` values.""" -type AppLimitWarningConnection { - """A list of `AppLimitWarning` objects.""" - nodes: [AppLimitWarning]! +"""A connection to a list of `OrgLimitCap` values.""" +type OrgLimitCapConnection { + """A list of `OrgLimitCap` objects.""" + nodes: [OrgLimitCap]! """ - A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. """ - edges: [AppLimitWarningEdge]! + edges: [OrgLimitCapEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppLimitWarning` you could get from the connection. - """ + """The count of *all* `OrgLimitCap` you could get from the connection.""" totalCount: Int! } """ -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. """ -type AppLimitWarning { +type OrgLimitCap { id: UUID! - """Limit name this warning applies to (must match a default_limits entry)""" + """Name identifier of the cap being overridden""" name: String! - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! + """Entity this cap override applies to""" + entityId: UUID! - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! -} - -"""A `AppLimitWarning` edge in the connection.""" -type AppLimitWarningEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitWarning` at the end of the edge.""" - node: AppLimitWarning -} - -""" -A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitWarningFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `warningType` field.""" - warningType: StringFilter - - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter - - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitWarningFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitWarningFilter!] - - """Negates the expression.""" - not: AppLimitWarningFilter -} - -"""Methods to use when ordering `AppLimitWarning`.""" -enum AppLimitWarningOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC -} - -"""A connection to a list of `OrgLimitWarning` values.""" -type OrgLimitWarningConnection { - """A list of `OrgLimitWarning` objects.""" - nodes: [OrgLimitWarning]! - - """ - A list of edges which contains the `OrgLimitWarning` and cursor to aid in pagination. - """ - edges: [OrgLimitWarningEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitWarning` you could get from the connection. - """ - totalCount: Int! -} - -""" -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. -""" -type OrgLimitWarning { - id: UUID! - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! - - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID + """Override cap value for this entity""" + max: BigInt! } -"""A `OrgLimitWarning` edge in the connection.""" -type OrgLimitWarningEdge { +"""A `OrgLimitCap` edge in the connection.""" +type OrgLimitCapEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitWarning` at the end of the edge.""" - node: OrgLimitWarning + """The `OrgLimitCap` at the end of the edge.""" + node: OrgLimitCap } """ -A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitWarningFilter { +input OrgLimitCapFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `warningType` field.""" - warningType: StringFilter - - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter - - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter - """Filter by the object’s `entityId` field.""" entityId: UUIDFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter + """Checks for all expressions in this list.""" - and: [OrgLimitWarningFilter!] + and: [OrgLimitCapFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitWarningFilter!] + or: [OrgLimitCapFilter!] """Negates the expression.""" - not: OrgLimitWarningFilter + not: OrgLimitCapFilter } -"""Methods to use when ordering `OrgLimitWarning`.""" -enum OrgLimitWarningOrderBy { +"""Methods to use when ordering `OrgLimitCap`.""" +enum OrgLimitCapOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -4202,84 +3667,77 @@ enum OrgLimitWarningOrderBy { ID_DESC NAME_ASC NAME_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC ENTITY_ID_ASC ENTITY_ID_DESC + MAX_ASC + MAX_DESC } -"""A connection to a list of `OrgChartEdgeGrant` values.""" -type OrgChartEdgeGrantConnection { - """A list of `OrgChartEdgeGrant` objects.""" - nodes: [OrgChartEdgeGrant]! +"""A connection to a list of `OrgChartEdge` values.""" +type OrgChartEdgeConnection { + """A list of `OrgChartEdge` objects.""" + nodes: [OrgChartEdge]! """ - A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. """ - edges: [OrgChartEdgeGrantEdge]! + edges: [OrgChartEdgeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgChartEdgeGrant` you could get from the connection. - """ + """The count of *all* `OrgChartEdge` you could get from the connection.""" totalCount: Int! } """ -Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table +Organizational chart edges defining parent-child reporting relationships between members within an entity """ -type OrgChartEdgeGrant { +type OrgChartEdge { id: UUID! + createdAt: Datetime + updatedAt: Datetime - """Organization this grant applies to""" + """Organization this hierarchy edge belongs to""" entityId: UUID! - """User ID of the subordinate being placed in the hierarchy""" + """User ID of the subordinate (employee) in this reporting relationship""" childId: UUID! - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + User ID of the manager; NULL indicates a top-level position with no direct report """ - grantorId: UUID - - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean! + parentId: UUID - """Job title or role name being assigned in this grant""" + """Job title or role name for this position in the org chart""" positionTitle: String - """Numeric seniority level being assigned in this grant""" + """Numeric seniority level for this position (higher = more senior)""" positionLevel: Int - - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime! } -"""A `OrgChartEdgeGrant` edge in the connection.""" -type OrgChartEdgeGrantEdge { +"""A `OrgChartEdge` edge in the connection.""" +type OrgChartEdgeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgChartEdgeGrant` at the end of the edge.""" - node: OrgChartEdgeGrant + """The `OrgChartEdge` at the end of the edge.""" + node: OrgChartEdge } """ -A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ """ -input OrgChartEdgeGrantFilter { +input OrgChartEdgeFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + """Filter by the object’s `entityId` field.""" entityId: UUIDFilter @@ -4289,1716 +3747,1763 @@ input OrgChartEdgeGrantFilter { """Filter by the object’s `parentId` field.""" parentId: UUIDFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - """Filter by the object’s `positionTitle` field.""" positionTitle: StringFilter """Filter by the object’s `positionLevel` field.""" positionLevel: IntFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - """Checks for all expressions in this list.""" - and: [OrgChartEdgeGrantFilter!] + and: [OrgChartEdgeFilter!] """Checks for any expressions in this list.""" - or: [OrgChartEdgeGrantFilter!] + or: [OrgChartEdgeFilter!] """Negates the expression.""" - not: OrgChartEdgeGrantFilter + not: OrgChartEdgeFilter } -"""Methods to use when ordering `OrgChartEdgeGrant`.""" -enum OrgChartEdgeGrantOrderBy { +"""Methods to use when ordering `OrgChartEdge`.""" +enum OrgChartEdgeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC ENTITY_ID_ASC ENTITY_ID_DESC CHILD_ID_ASC CHILD_ID_DESC PARENT_ID_ASC PARENT_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC POSITION_TITLE_ASC POSITION_TITLE_DESC POSITION_LEVEL_ASC POSITION_LEVEL_DESC - CREATED_AT_ASC - CREATED_AT_DESC } -"""A connection to a list of `AppClaimedInvite` values.""" -type AppClaimedInviteConnection { - """A list of `AppClaimedInvite` objects.""" - nodes: [AppClaimedInvite]! +"""A connection to a list of `AppLimitDefault` values.""" +type AppLimitDefaultConnection { + """A list of `AppLimitDefault` objects.""" + nodes: [AppLimitDefault]! """ - A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. + A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. """ - edges: [AppClaimedInviteEdge]! + edges: [AppLimitDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `AppClaimedInvite` you could get from the connection. + The count of *all* `AppLimitDefault` you could get from the connection. """ totalCount: Int! } -""" -Records of successfully claimed invitations, linking senders to receivers -""" -type AppClaimedInvite { - id: UUID! - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON +"""A `AppLimitDefault` edge in the connection.""" +type AppLimitDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """User ID of the original invitation sender""" - senderId: UUID + """The `AppLimitDefault` at the end of the edge.""" + node: AppLimitDefault +} - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime +"""Methods to use when ordering `AppLimitDefault`.""" +enum AppLimitDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON +"""A connection to a list of `OrgLimitDefault` values.""" +type OrgLimitDefaultConnection { + """A list of `OrgLimitDefault` objects.""" + nodes: [OrgLimitDefault]! -"""A `AppClaimedInvite` edge in the connection.""" -type AppClaimedInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. + """ + edges: [OrgLimitDefaultEdge]! - """The `AppClaimedInvite` at the end of the edge.""" - node: AppClaimedInvite + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgLimitDefault` you could get from the connection. + """ + totalCount: Int! } """ -A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ +Default maximum values for each named limit, applied when no per-actor override exists """ -input AppClaimedInviteFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +type OrgLimitDefault { + id: UUID! - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter + """Name identifier of the limit this default applies to""" + name: String! - """Filter by the object’s `receiverId` field.""" - receiverId: UUIDFilter + """Default maximum usage allowed for this limit""" + max: BigInt - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Reads and enables pagination through a set of `OrgLimitCredit`.""" + orgLimitCreditsByDefaultLimitId( + """Only read the first `n` values of the set.""" + first: Int - """Checks for all expressions in this list.""" - and: [AppClaimedInviteFilter!] + """Only read the last `n` values of the set.""" + last: Int - """Checks for any expressions in this list.""" - or: [AppClaimedInviteFilter!] + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Negates the expression.""" - not: AppClaimedInviteFilter -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""Methods to use when ordering `AppClaimedInvite`.""" -enum AppClaimedInviteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATA_ASC - DATA_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgLimitCreditFilter + + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCreditConnection! } -"""A connection to a list of `AppGrant` values.""" -type AppGrantConnection { - """A list of `AppGrant` objects.""" - nodes: [AppGrant]! +"""A connection to a list of `OrgLimitCredit` values.""" +type OrgLimitCreditConnection { + """A list of `OrgLimitCredit` objects.""" + nodes: [OrgLimitCredit]! """ - A list of edges which contains the `AppGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitCredit` and cursor to aid in pagination. """ - edges: [AppGrantEdge]! + edges: [OrgLimitCreditEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppGrant` you could get from the connection.""" + """The count of *all* `OrgLimitCredit` you could get from the connection.""" totalCount: Int! } """ -Records of individual permission grants and revocations for members via bitmask +Append-only ledger of credit grants that automatically update limit ceilings """ -type AppGrant { +type OrgLimitCredit { id: UUID! - """Bitmask of permissions being granted or revoked""" - permissions: BitString! + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! - """True to grant the permissions, false to revoke them""" - isGrant: Boolean! + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """The member receiving or losing the permission grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String! + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String + + """ + Reads a single `OrgLimitDefault` that is related to this `OrgLimitCredit`. + """ + defaultLimit: OrgLimitDefault } -"""A `AppGrant` edge in the connection.""" -type AppGrantEdge { +"""A `OrgLimitCredit` edge in the connection.""" +type OrgLimitCreditEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppGrant` at the end of the edge.""" - node: AppGrant + """The `OrgLimitCredit` at the end of the edge.""" + node: OrgLimitCredit } """ -A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ """ -input AppGrantFilter { +input OrgLimitCreditFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Filter by the object’s `defaultLimitId` field.""" + defaultLimitId: UUIDFilter """Filter by the object’s `actorId` field.""" actorId: UUIDFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `amount` field.""" + amount: BigIntFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `creditType` field.""" + creditType: StringFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter """Checks for all expressions in this list.""" - and: [AppGrantFilter!] + and: [OrgLimitCreditFilter!] """Checks for any expressions in this list.""" - or: [AppGrantFilter!] + or: [OrgLimitCreditFilter!] """Negates the expression.""" - not: AppGrantFilter -} + not: OrgLimitCreditFilter -"""Methods to use when ordering `AppGrant`.""" -enum AppGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """Filter by the object’s `defaultLimit` relation.""" + defaultLimit: OrgLimitDefaultFilter } -"""A connection to a list of `AppMembershipDefault` values.""" -type AppMembershipDefaultConnection { - """A list of `AppMembershipDefault` objects.""" - nodes: [AppMembershipDefault]! +""" +A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. - """ - edges: [AppMembershipDefaultEdge]! + """Filter by the object’s `name` field.""" + name: StringFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `max` field.""" + max: BigIntFilter - """ - The count of *all* `AppMembershipDefault` you could get from the connection. - """ - totalCount: Int! + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitDefaultFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitDefaultFilter!] + + """Negates the expression.""" + not: OrgLimitDefaultFilter + + """Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation.""" + orgLimitCreditsByDefaultLimitId: OrgLimitDefaultToManyOrgLimitCreditFilter + + """`orgLimitCreditsByDefaultLimitId` exist.""" + orgLimitCreditsByDefaultLimitIdExist: Boolean } """ -Default membership settings per entity, controlling initial approval and verification state for new members +A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ """ -type AppMembershipDefault { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID +input OrgLimitDefaultToManyOrgLimitCreditFilter { + """Filters to entities where at least one related entity matches.""" + some: OrgLimitCreditFilter - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! + """Filters to entities where every related entity matches.""" + every: OrgLimitCreditFilter - """Whether new members are automatically verified upon joining""" - isVerified: Boolean! + """Filters to entities where no related entity matches.""" + none: OrgLimitCreditFilter } -"""A `AppMembershipDefault` edge in the connection.""" -type AppMembershipDefaultEdge { +"""Methods to use when ordering `OrgLimitCredit`.""" +enum OrgLimitCreditOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DEFAULT_LIMIT_ID_ASC + DEFAULT_LIMIT_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + AMOUNT_ASC + AMOUNT_DESC + CREDIT_TYPE_ASC + CREDIT_TYPE_DESC + REASON_ASC + REASON_DESC +} + +"""A `OrgLimitDefault` edge in the connection.""" +type OrgLimitDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppMembershipDefault` at the end of the edge.""" - node: AppMembershipDefault + """The `OrgLimitDefault` at the end of the edge.""" + node: OrgLimitDefault +} + +"""Methods to use when ordering `OrgLimitDefault`.""" +enum OrgLimitDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } """ -A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ """ -input AppMembershipDefaultFilter { +input AppPermissionFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter + """Filter by the object’s `description` field.""" + description: StringFilter """Checks for all expressions in this list.""" - and: [AppMembershipDefaultFilter!] + and: [AppPermissionFilter!] """Checks for any expressions in this list.""" - or: [AppMembershipDefaultFilter!] + or: [AppPermissionFilter!] """Negates the expression.""" - not: AppMembershipDefaultFilter + not: AppPermissionFilter } -"""Methods to use when ordering `AppMembershipDefault`.""" -enum AppMembershipDefaultOrderBy { +"""Methods to use when ordering `AppPermission`.""" +enum AppPermissionOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC -} - -"""A connection to a list of `OrgMembershipDefault` values.""" -type OrgMembershipDefaultConnection { - """A list of `OrgMembershipDefault` objects.""" - nodes: [OrgMembershipDefault]! - - """ - A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. - """ - edges: [OrgMembershipDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgMembershipDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Default membership settings per entity, controlling initial approval and verification state for new members -""" -type OrgMembershipDefault { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! - - """References the entity these membership defaults apply to""" - entityId: UUID! -} - -"""A `OrgMembershipDefault` edge in the connection.""" -type OrgMembershipDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembershipDefault` at the end of the edge.""" - node: OrgMembershipDefault + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC } """ -A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ """ -input OrgMembershipDefaultFilter { +input OrgPermissionFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `description` field.""" + description: StringFilter """Checks for all expressions in this list.""" - and: [OrgMembershipDefaultFilter!] + and: [OrgPermissionFilter!] """Checks for any expressions in this list.""" - or: [OrgMembershipDefaultFilter!] + or: [OrgPermissionFilter!] """Negates the expression.""" - not: OrgMembershipDefaultFilter + not: OrgPermissionFilter } -"""Methods to use when ordering `OrgMembershipDefault`.""" -enum OrgMembershipDefaultOrderBy { +"""Methods to use when ordering `OrgPermission`.""" +enum OrgPermissionOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC } -"""A connection to a list of `OrgClaimedInvite` values.""" -type OrgClaimedInviteConnection { - """A list of `OrgClaimedInvite` objects.""" - nodes: [OrgClaimedInvite]! +"""A connection to a list of `AppLimitCreditCode` values.""" +type AppLimitCreditCodeConnection { + """A list of `AppLimitCreditCode` objects.""" + nodes: [AppLimitCreditCode]! """ - A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. """ - edges: [OrgClaimedInviteEdge]! + edges: [AppLimitCreditCodeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgClaimedInvite` you could get from the connection. + The count of *all* `AppLimitCreditCode` you could get from the connection. + """ + totalCount: Int! +} + +"""A `AppLimitCreditCode` edge in the connection.""" +type AppLimitCreditCodeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitCreditCode` at the end of the edge.""" + node: AppLimitCreditCode +} + +"""Methods to use when ordering `AppLimitCreditCode`.""" +enum AppLimitCreditCodeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CODE_ASC + CODE_DESC + MAX_REDEMPTIONS_ASC + MAX_REDEMPTIONS_DESC + CURRENT_REDEMPTIONS_ASC + CURRENT_REDEMPTIONS_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC +} + +"""A connection to a list of `AppLimitWarning` values.""" +type AppLimitWarningConnection { + """A list of `AppLimitWarning` objects.""" + nodes: [AppLimitWarning]! + + """ + A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. + """ + edges: [AppLimitWarningEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitWarning` you could get from the connection. """ totalCount: Int! } """ -Records of successfully claimed invitations, linking senders to receivers +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. """ -type OrgClaimedInvite { +type AppLimitWarning { id: UUID! - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """User ID of the original invitation sender""" - senderId: UUID + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! } -"""A `OrgClaimedInvite` edge in the connection.""" -type OrgClaimedInviteEdge { +"""A `AppLimitWarning` edge in the connection.""" +type AppLimitWarningEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgClaimedInvite` at the end of the edge.""" - node: OrgClaimedInvite + """The `AppLimitWarning` at the end of the edge.""" + node: AppLimitWarning } """ -A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ """ -input OrgClaimedInviteFilter { +input AppLimitWarningFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `receiverId` field.""" - receiverId: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `warningType` field.""" + warningType: StringFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `thresholdValue` field.""" + thresholdValue: BigIntFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter """Checks for all expressions in this list.""" - and: [OrgClaimedInviteFilter!] + and: [AppLimitWarningFilter!] """Checks for any expressions in this list.""" - or: [OrgClaimedInviteFilter!] + or: [AppLimitWarningFilter!] """Negates the expression.""" - not: OrgClaimedInviteFilter + not: AppLimitWarningFilter } -"""Methods to use when ordering `OrgClaimedInvite`.""" -enum OrgClaimedInviteOrderBy { +"""Methods to use when ordering `AppLimitWarning`.""" +enum AppLimitWarningOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DATA_ASC - DATA_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC + NAME_ASC + NAME_DESC + WARNING_TYPE_ASC + WARNING_TYPE_DESC + THRESHOLD_VALUE_ASC + THRESHOLD_VALUE_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC } -"""A connection to a list of `AppLimitEvent` values.""" -type AppLimitEventConnection { - """A list of `AppLimitEvent` objects.""" - nodes: [AppLimitEvent]! +"""A connection to a list of `OrgChartEdgeGrant` values.""" +type OrgChartEdgeGrantConnection { + """A list of `OrgChartEdgeGrant` objects.""" + nodes: [OrgChartEdgeGrant]! """ - A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. """ - edges: [AppLimitEventEdge]! + edges: [OrgChartEdgeGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimitEvent` you could get from the connection.""" + """ + The count of *all* `OrgChartEdgeGrant` you could get from the connection. + """ totalCount: Int! } -"""Append-only log of limit events for historical reporting and audit""" -type AppLimitEvent { - """Limit name this event applies to""" - name: String +""" +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table +""" +type OrgChartEdgeGrant { + id: UUID! - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID + """Organization this grant applies to""" + entityId: UUID! - """Entity this event applies to; NULL for app-level events""" - entityId: UUID + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID - """Change amount: positive for increment, negative for decrement""" - delta: BigInt + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ + grantorId: UUID - """Usage count before this event""" - numBefore: BigInt + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean! - """Usage count after this event""" - numAfter: BigInt + """Job title or role name being assigned in this grant""" + positionTitle: String - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt + """Numeric seniority level being assigned in this grant""" + positionLevel: Int - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime! } -"""A `AppLimitEvent` edge in the connection.""" -type AppLimitEventEdge { +"""A `OrgChartEdgeGrant` edge in the connection.""" +type OrgChartEdgeGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitEvent` at the end of the edge.""" - node: AppLimitEvent + """The `OrgChartEdgeGrant` at the end of the edge.""" + node: OrgChartEdgeGrant } """ -A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitEventFilter { - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter +input OrgChartEdgeGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """Filter by the object’s `childId` field.""" + childId: UUIDFilter - """Filter by the object’s `delta` field.""" - delta: BigIntFilter + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter - """Filter by the object’s `reason` field.""" - reason: StringFilter + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppLimitEventFilter!] + and: [OrgChartEdgeGrantFilter!] """Checks for any expressions in this list.""" - or: [AppLimitEventFilter!] + or: [OrgChartEdgeGrantFilter!] """Negates the expression.""" - not: AppLimitEventFilter + not: OrgChartEdgeGrantFilter } -"""Methods to use when ordering `AppLimitEvent`.""" -enum AppLimitEventOrderBy { +"""Methods to use when ordering `OrgChartEdgeGrant`.""" +enum OrgChartEdgeGrantOrderBy { NATURAL - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC + CHILD_ID_ASC + CHILD_ID_DESC + PARENT_ID_ASC + PARENT_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + POSITION_TITLE_ASC + POSITION_TITLE_DESC + POSITION_LEVEL_ASC + POSITION_LEVEL_DESC + CREATED_AT_ASC + CREATED_AT_DESC } -"""A connection to a list of `OrgLimitEvent` values.""" -type OrgLimitEventConnection { - """A list of `OrgLimitEvent` objects.""" - nodes: [OrgLimitEvent]! +"""A connection to a list of `AppClaimedInvite` values.""" +type AppClaimedInviteConnection { + """A list of `AppClaimedInvite` objects.""" + nodes: [AppClaimedInvite]! """ - A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. + A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. """ - edges: [OrgLimitEventEdge]! + edges: [AppClaimedInviteEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgLimitEvent` you could get from the connection.""" + """ + The count of *all* `AppClaimedInvite` you could get from the connection. + """ totalCount: Int! } -"""Append-only log of limit events for historical reporting and audit""" -type OrgLimitEvent { - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt +""" +Records of successfully claimed invitations, linking senders to receivers +""" +type AppClaimedInvite { + id: UUID! - """Usage count after this event""" - numAfter: BigInt + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt + """User ID of the original invitation sender""" + senderId: UUID - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `OrgLimitEvent` edge in the connection.""" -type OrgLimitEventEdge { +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A `AppClaimedInvite` edge in the connection.""" +type AppClaimedInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitEvent` at the end of the edge.""" - node: OrgLimitEvent + """The `AppClaimedInvite` at the end of the edge.""" + node: AppClaimedInvite } """ -A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitEventFilter { - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter +input AppClaimedInviteFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `reason` field.""" - reason: StringFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [OrgLimitEventFilter!] + and: [AppClaimedInviteFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitEventFilter!] + or: [AppClaimedInviteFilter!] """Negates the expression.""" - not: OrgLimitEventFilter + not: AppClaimedInviteFilter } -"""Methods to use when ordering `OrgLimitEvent`.""" -enum OrgLimitEventOrderBy { +"""Methods to use when ordering `AppClaimedInvite`.""" +enum AppClaimedInviteOrderBy { NATURAL - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATA_ASC + DATA_DESC + SENDER_ID_ASC + SENDER_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -"""A connection to a list of `OrgGrant` values.""" -type OrgGrantConnection { - """A list of `OrgGrant` objects.""" - nodes: [OrgGrant]! +"""A connection to a list of `OrgLimitWarning` values.""" +type OrgLimitWarningConnection { + """A list of `OrgLimitWarning` objects.""" + nodes: [OrgLimitWarning]! """ - A list of edges which contains the `OrgGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitWarning` and cursor to aid in pagination. """ - edges: [OrgGrantEdge]! + edges: [OrgLimitWarningEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgGrant` you could get from the connection.""" + """ + The count of *all* `OrgLimitWarning` you could get from the connection. + """ totalCount: Int! } """ -Records of individual permission grants and revocations for members via bitmask +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. """ -type OrgGrant { +type OrgLimitWarning { id: UUID! - """Bitmask of permissions being granted or revoked""" - permissions: BitString! + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """True to grant the permissions, false to revoke them""" - isGrant: Boolean! + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! - """The member receiving or losing the permission grant""" - actorId: UUID! + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! - """The entity (org or group) this permission grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! + + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID } -"""A `OrgGrant` edge in the connection.""" -type OrgGrantEdge { +"""A `OrgLimitWarning` edge in the connection.""" +type OrgLimitWarningEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgGrant` at the end of the edge.""" - node: OrgGrant + """The `OrgLimitWarning` at the end of the edge.""" + node: OrgLimitWarning } """ -A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ """ -input OrgGrantFilter { +input OrgLimitWarningFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Filter by the object’s `warningType` field.""" + warningType: StringFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `thresholdValue` field.""" + thresholdValue: BigIntFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [OrgGrantFilter!] + """Checks for all expressions in this list.""" + and: [OrgLimitWarningFilter!] """Checks for any expressions in this list.""" - or: [OrgGrantFilter!] + or: [OrgLimitWarningFilter!] """Negates the expression.""" - not: OrgGrantFilter + not: OrgLimitWarningFilter } -"""Methods to use when ordering `OrgGrant`.""" -enum OrgGrantOrderBy { +"""Methods to use when ordering `OrgLimitWarning`.""" +enum OrgLimitWarningOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC + NAME_ASC + NAME_DESC + WARNING_TYPE_ASC + WARNING_TYPE_DESC + THRESHOLD_VALUE_ASC + THRESHOLD_VALUE_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC ENTITY_ID_ASC ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC } -"""A connection to a list of `OrgChartEdge` values.""" -type OrgChartEdgeConnection { - """A list of `OrgChartEdge` objects.""" - nodes: [OrgChartEdge]! +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! """ - A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. + A list of edges which contains the `MembershipType` and cursor to aid in pagination. """ - edges: [OrgChartEdgeEdge]! + edges: [MembershipTypeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgChartEdge` you could get from the connection.""" + """The count of *all* `MembershipType` you could get from the connection.""" totalCount: Int! } """ -Organizational chart edges defining parent-child reporting relationships between members within an entity +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) """ -type OrgChartEdge { - id: UUID! - createdAt: Datetime - updatedAt: Datetime +type MembershipType { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! - """Organization this hierarchy edge belongs to""" - entityId: UUID! + """Human-readable name of the membership type""" + name: String! - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! + """Description of what this membership type represents""" + description: String! """ - User ID of the manager; NULL indicates a top-level position with no direct report + Short prefix used to namespace tables and functions for this membership scope """ - parentId: UUID + prefix: String! - """Job title or role name for this position in the org chart""" - positionTitle: String + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean! } -"""A `OrgChartEdge` edge in the connection.""" -type OrgChartEdgeEdge { +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgChartEdge` at the end of the edge.""" - node: OrgChartEdge + """The `MembershipType` at the end of the edge.""" + node: MembershipType } """ -A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ """ -input OrgChartEdgeFilter { +input MembershipTypeFilter { """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + id: IntFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `childId` field.""" - childId: UUIDFilter + """Filter by the object’s `description` field.""" + description: StringFilter - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter + """Filter by the object’s `parentMembershipType` field.""" + parentMembershipType: IntFilter - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter + """Filter by the object’s `hasUsersTableEntry` field.""" + hasUsersTableEntry: BooleanFilter """Checks for all expressions in this list.""" - and: [OrgChartEdgeFilter!] + and: [MembershipTypeFilter!] """Checks for any expressions in this list.""" - or: [OrgChartEdgeFilter!] + or: [MembershipTypeFilter!] """Negates the expression.""" - not: OrgChartEdgeFilter + not: MembershipTypeFilter } -"""Methods to use when ordering `OrgChartEdge`.""" -enum OrgChartEdgeOrderBy { +"""Methods to use when ordering `MembershipType`.""" +enum MembershipTypeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - CHILD_ID_ASC - CHILD_ID_DESC - PARENT_ID_ASC - PARENT_ID_DESC - POSITION_TITLE_ASC - POSITION_TITLE_DESC - POSITION_LEVEL_ASC - POSITION_LEVEL_DESC + NAME_ASC + NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + PREFIX_ASC + PREFIX_DESC + PARENT_MEMBERSHIP_TYPE_ASC + PARENT_MEMBERSHIP_TYPE_DESC + HAS_USERS_TABLE_ENTRY_ASC + HAS_USERS_TABLE_ENTRY_DESC } -"""A connection to a list of `UsageSnapshot` values.""" -type UsageSnapshotConnection { - """A list of `UsageSnapshot` objects.""" - nodes: [UsageSnapshot]! +"""A connection to a list of `AppGrant` values.""" +type AppGrantConnection { + """A list of `AppGrant` objects.""" + nodes: [AppGrant]! """ - A list of edges which contains the `UsageSnapshot` and cursor to aid in pagination. + A list of edges which contains the `AppGrant` and cursor to aid in pagination. """ - edges: [UsageSnapshotEdge]! + edges: [AppGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `UsageSnapshot` you could get from the connection.""" + """The count of *all* `AppGrant` you could get from the connection.""" totalCount: Int! } """ -Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. +Records of individual permission grants and revocations for members via bitmask """ -type UsageSnapshot { - """ - The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. - """ - databaseId: UUID! - - """ - Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). - """ - metricName: String! +type AppGrant { + id: UUID! - """ - The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). - """ - metricValue: BigInt! + """Bitmask of permissions being granted or revoked""" + permissions: BitString! - """ - Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. - """ - dimensions: JSON! + """True to grant the permissions, false to revoke them""" + isGrant: Boolean! - """ - When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. - """ - capturedAt: Datetime! - id: UUID! + """The member receiving or losing the permission grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `UsageSnapshot` edge in the connection.""" -type UsageSnapshotEdge { +"""A `AppGrant` edge in the connection.""" +type AppGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `UsageSnapshot` at the end of the edge.""" - node: UsageSnapshot + """The `AppGrant` at the end of the edge.""" + node: AppGrant } """ -A filter to be used against `UsageSnapshot` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ """ -input UsageSnapshotFilter { - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter +input AppGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filter by the object’s `metricName` field.""" - metricName: StringFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter - """Filter by the object’s `metricValue` field.""" - metricValue: BigIntFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Filter by the object’s `dimensions` field.""" - dimensions: JSONFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `capturedAt` field.""" - capturedAt: DatetimeFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [UsageSnapshotFilter!] + and: [AppGrantFilter!] """Checks for any expressions in this list.""" - or: [UsageSnapshotFilter!] + or: [AppGrantFilter!] """Negates the expression.""" - not: UsageSnapshotFilter + not: AppGrantFilter } -""" -A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ -""" -input JSONFilter { +"""Methods to use when ordering `AppGrant`.""" +enum AppGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `OrgClaimedInvite` values.""" +type OrgClaimedInviteConnection { + """A list of `OrgClaimedInvite` objects.""" + nodes: [OrgClaimedInvite]! + """ - Is null (if `true` is specified) or is not null (if `false` is specified). + A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: JSON + edges: [OrgClaimedInviteEdge]! - """Not equal to the specified value.""" - notEqualTo: JSON + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Not equal to the specified value, treating null like an ordinary value. + The count of *all* `OrgClaimedInvite` you could get from the connection. """ - distinctFrom: JSON + totalCount: Int! +} - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: JSON +""" +Records of successfully claimed invitations, linking senders to receivers +""" +type OrgClaimedInvite { + id: UUID! - """Included in the specified list.""" - in: [JSON!] + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Not included in the specified list.""" - notIn: [JSON!] + """User ID of the original invitation sender""" + senderId: UUID - """Less than the specified value.""" - lessThan: JSON + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} - """Less than or equal to the specified value.""" - lessThanOrEqualTo: JSON +"""A `OrgClaimedInvite` edge in the connection.""" +type OrgClaimedInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Greater than the specified value.""" - greaterThan: JSON + """The `OrgClaimedInvite` at the end of the edge.""" + node: OrgClaimedInvite +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: JSON +""" +A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ +""" +input OrgClaimedInviteFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Contains the specified JSON.""" - contains: JSON + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter - """Contains the specified key.""" - containsKey: String + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter - """Contains all of the specified keys.""" - containsAllKeys: [String!] + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Contains any of the specified keys.""" - containsAnyKeys: [String!] + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Contained by the specified JSON.""" - containedBy: JSON + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [OrgClaimedInviteFilter!] + + """Checks for any expressions in this list.""" + or: [OrgClaimedInviteFilter!] + + """Negates the expression.""" + not: OrgClaimedInviteFilter } -"""Methods to use when ordering `UsageSnapshot`.""" -enum UsageSnapshotOrderBy { +"""Methods to use when ordering `OrgClaimedInvite`.""" +enum OrgClaimedInviteOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - METRIC_NAME_ASC - METRIC_NAME_DESC - METRIC_VALUE_ASC - METRIC_VALUE_DESC - DIMENSIONS_ASC - DIMENSIONS_DESC - CAPTURED_AT_ASC - CAPTURED_AT_DESC ID_ASC ID_DESC + DATA_ASC + DATA_DESC + SENDER_ID_ASC + SENDER_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } -"""A connection to a list of `AppLimit` values.""" -type AppLimitConnection { - """A list of `AppLimit` objects.""" - nodes: [AppLimit]! +"""A connection to a list of `OrgGrant` values.""" +type OrgGrantConnection { + """A list of `OrgGrant` objects.""" + nodes: [OrgGrant]! """ - A list of edges which contains the `AppLimit` and cursor to aid in pagination. + A list of edges which contains the `OrgGrant` and cursor to aid in pagination. """ - edges: [AppLimitEdge]! + edges: [OrgGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimit` you could get from the connection.""" + """The count of *all* `OrgGrant` you could get from the connection.""" totalCount: Int! } -"""Tracks per-actor usage counts against configurable maximum limits""" -type AppLimit { - id: UUID! - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! - - """Current usage count for this actor and limit""" - num: BigInt - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt -} - """ -An interval of time that has passed where the smallest distinct unit is a second. +Records of individual permission grants and revocations for members via bitmask """ -type Interval { - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float - - """A quantity of minutes.""" - minutes: Int +type OrgGrant { + id: UUID! - """A quantity of hours.""" - hours: Int + """Bitmask of permissions being granted or revoked""" + permissions: BitString! - """A quantity of days.""" - days: Int + """True to grant the permissions, false to revoke them""" + isGrant: Boolean! - """A quantity of months.""" - months: Int + """The member receiving or losing the permission grant""" + actorId: UUID! - """A quantity of years.""" - years: Int + """The entity (org or group) this permission grant applies to""" + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `AppLimit` edge in the connection.""" -type AppLimitEdge { +"""A `OrgGrant` edge in the connection.""" +type OrgGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimit` at the end of the edge.""" - node: AppLimit + """The `OrgGrant` at the end of the edge.""" + node: OrgGrant } """ -A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitFilter { +input OrgGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter """Filter by the object’s `actorId` field.""" actorId: UUIDFilter - """Filter by the object’s `num` field.""" - num: BigIntFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter + """Checks for all expressions in this list.""" + and: [OrgGrantFilter!] - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter + """Checks for any expressions in this list.""" + or: [OrgGrantFilter!] - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter + """Negates the expression.""" + not: OrgGrantFilter +} + +"""Methods to use when ordering `OrgGrant`.""" +enum OrgGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `UsageSnapshot` values.""" +type UsageSnapshotConnection { + """A list of `UsageSnapshot` objects.""" + nodes: [UsageSnapshot]! + + """ + A list of edges which contains the `UsageSnapshot` and cursor to aid in pagination. + """ + edges: [UsageSnapshotEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `UsageSnapshot` you could get from the connection.""" + totalCount: Int! +} + +""" +Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. +""" +type UsageSnapshot { + """ + The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. + """ + databaseId: UUID! + + """ + Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). + """ + metricName: String! + + """ + The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). + """ + metricValue: BigInt! + + """ + Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. + """ + dimensions: JSON! + + """ + When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. + """ + capturedAt: Datetime! + id: UUID! +} + +"""A `UsageSnapshot` edge in the connection.""" +type UsageSnapshotEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UsageSnapshot` at the end of the edge.""" + node: UsageSnapshot +} + +""" +A filter to be used against `UsageSnapshot` object types. All fields are combined with a logical ‘and.’ +""" +input UsageSnapshotFilter { + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `metricName` field.""" + metricName: StringFilter + + """Filter by the object’s `metricValue` field.""" + metricValue: BigIntFilter + + """Filter by the object’s `dimensions` field.""" + dimensions: JSONFilter + + """Filter by the object’s `capturedAt` field.""" + capturedAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter """Checks for all expressions in this list.""" - and: [AppLimitFilter!] + and: [UsageSnapshotFilter!] """Checks for any expressions in this list.""" - or: [AppLimitFilter!] + or: [UsageSnapshotFilter!] """Negates the expression.""" - not: AppLimitFilter + not: UsageSnapshotFilter } """ -A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ +A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ """ -input IntervalFilter { +input JSONFilter { """ Is null (if `true` is specified) or is not null (if `false` is specified). """ isNull: Boolean """Equal to the specified value.""" - equalTo: IntervalInput + equalTo: JSON """Not equal to the specified value.""" - notEqualTo: IntervalInput + notEqualTo: JSON """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: IntervalInput + distinctFrom: JSON """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: IntervalInput + notDistinctFrom: JSON """Included in the specified list.""" - in: [IntervalInput!] + in: [JSON!] """Not included in the specified list.""" - notIn: [IntervalInput!] + notIn: [JSON!] """Less than the specified value.""" - lessThan: IntervalInput + lessThan: JSON """Less than or equal to the specified value.""" - lessThanOrEqualTo: IntervalInput + lessThanOrEqualTo: JSON """Greater than the specified value.""" - greaterThan: IntervalInput + greaterThan: JSON """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: IntervalInput -} - -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -input IntervalInput { - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float + greaterThanOrEqualTo: JSON - """A quantity of minutes.""" - minutes: Int + """Contains the specified JSON.""" + contains: JSON - """A quantity of hours.""" - hours: Int + """Contains the specified key.""" + containsKey: String - """A quantity of days.""" - days: Int + """Contains all of the specified keys.""" + containsAllKeys: [String!] - """A quantity of months.""" - months: Int + """Contains any of the specified keys.""" + containsAnyKeys: [String!] - """A quantity of years.""" - years: Int + """Contained by the specified JSON.""" + containedBy: JSON } -"""Methods to use when ordering `AppLimit`.""" -enum AppLimitOrderBy { +"""Methods to use when ordering `UsageSnapshot`.""" +enum UsageSnapshotOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + METRIC_NAME_ASC + METRIC_NAME_DESC + METRIC_VALUE_ASC + METRIC_VALUE_DESC + DIMENSIONS_ASC + DIMENSIONS_DESC + CAPTURED_AT_ASC + CAPTURED_AT_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC } -"""A connection to a list of `AppInvite` values.""" -type AppInviteConnection { - """A list of `AppInvite` objects.""" - nodes: [AppInvite]! +"""A connection to a list of `AppLimitEvent` values.""" +type AppLimitEventConnection { + """A list of `AppLimitEvent` objects.""" + nodes: [AppLimitEvent]! """ - A list of edges which contains the `AppInvite` and cursor to aid in pagination. + A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. """ - edges: [AppInviteEdge]! + edges: [AppLimitEventEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppInvite` you could get from the connection.""" + """The count of *all* `AppLimitEvent` you could get from the connection.""" totalCount: Int! } -""" -Invitation records sent to prospective members via email, with token-based redemption and expiration -""" -type AppInvite { - id: UUID! +"""Append-only log of limit events for historical reporting and audit""" +type AppLimitEvent { + createdAt: Datetime! - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """Unique identifier for each limit event""" + id: UUID! - """User ID of the member who sent this invitation""" - senderId: UUID! + """Limit name this event applies to""" + name: String - """Unique random hex token used to redeem this invitation""" - inviteToken: String! + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean! + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int! + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Running count of how many times this invite has been claimed""" - inviteCount: Int! + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean! + """Usage count before this event""" + numBefore: BigInt - """Optional JSON payload of additional invite metadata""" - data: JSON + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + Optional reason or source: achievement, invite, plan_change, purchase, etc. """ - profileId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime! - createdAt: Datetime - updatedAt: Datetime + reason: String } -scalar ConstructiveInternalTypeEmail - -"""A `AppInvite` edge in the connection.""" -type AppInviteEdge { +"""A `AppLimitEvent` edge in the connection.""" +type AppLimitEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppInvite` at the end of the edge.""" - node: AppInvite + """The `AppLimitEvent` at the end of the edge.""" + node: AppLimitEvent } """ -A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ """ -input AppInviteFilter { +input AppLimitEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `inviteToken` field.""" - inviteToken: StringFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `inviteValid` field.""" - inviteValid: BooleanFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `inviteLimit` field.""" - inviteLimit: IntFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `inviteCount` field.""" - inviteCount: IntFilter + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """Filter by the object’s `multiple` field.""" - multiple: BooleanFilter + """Filter by the object’s `delta` field.""" + delta: BigIntFilter - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `reason` field.""" + reason: StringFilter """Checks for all expressions in this list.""" - and: [AppInviteFilter!] + and: [AppLimitEventFilter!] """Checks for any expressions in this list.""" - or: [AppInviteFilter!] + or: [AppLimitEventFilter!] """Negates the expression.""" - not: AppInviteFilter + not: AppLimitEventFilter } -""" -A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeEmailFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: String +"""Methods to use when ordering `AppLimitEvent`.""" +enum AppLimitEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC +} - """Not equal to the specified value.""" - notEqualTo: String +"""A connection to a list of `OrgLimitEvent` values.""" +type OrgLimitEventConnection { + """A list of `OrgLimitEvent` objects.""" + nodes: [OrgLimitEvent]! """ - Not equal to the specified value, treating null like an ordinary value. + A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. """ - distinctFrom: String + edges: [OrgLimitEventEdge]! - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: String + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Included in the specified list.""" - in: [String!] + """The count of *all* `OrgLimitEvent` you could get from the connection.""" + totalCount: Int! +} - """Not included in the specified list.""" - notIn: [String!] +"""Append-only log of limit events for historical reporting and audit""" +type OrgLimitEvent { + createdAt: Datetime! - """Less than the specified value.""" - lessThan: String + """Unique identifier for each limit event""" + id: UUID! - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String + """Limit name this event applies to""" + name: String - """Greater than the specified value.""" - greaterThan: String + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """Contains the specified string (case-sensitive).""" - includes: String + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Does not contain the specified string (case-sensitive).""" - notIncludes: String + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeEmail + """Usage count before this event""" + numBefore: BigInt - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeEmail + """Usage count after this event""" + numAfter: BigInt - """Starts with the specified string (case-sensitive).""" - startsWith: String + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeEmail +"""A `OrgLimitEvent` edge in the connection.""" +type OrgLimitEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeEmail + """The `OrgLimitEvent` at the end of the edge.""" + node: OrgLimitEvent +} - """Ends with the specified string (case-sensitive).""" - endsWith: String +""" +A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `name` field.""" + name: StringFilter - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - like: String + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """ - Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLike: String + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `delta` field.""" + delta: BigIntFilter - """ - Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLikeInsensitive: ConstructiveInternalTypeEmail - - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: ConstructiveInternalTypeEmail - - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: ConstructiveInternalTypeEmail - - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: ConstructiveInternalTypeEmail - - """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - notDistinctFromInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter - """Included in the specified list (case-insensitive).""" - inInsensitive: [ConstructiveInternalTypeEmail!] + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [ConstructiveInternalTypeEmail!] + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `reason` field.""" + reason: StringFilter - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + """Checks for all expressions in this list.""" + and: [OrgLimitEventFilter!] - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: ConstructiveInternalTypeEmail + """Checks for any expressions in this list.""" + or: [OrgLimitEventFilter!] - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + """Negates the expression.""" + not: OrgLimitEventFilter } -"""Methods to use when ordering `AppInvite`.""" -enum AppInviteOrderBy { +"""Methods to use when ordering `OrgLimitEvent`.""" +enum OrgLimitEventOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - ID_ASC - ID_DESC - EMAIL_ASC - EMAIL_DESC - SENDER_ID_ASC - SENDER_ID_DESC - INVITE_TOKEN_ASC - INVITE_TOKEN_DESC - INVITE_VALID_ASC - INVITE_VALID_DESC - INVITE_LIMIT_ASC - INVITE_LIMIT_DESC - INVITE_COUNT_ASC - INVITE_COUNT_DESC - MULTIPLE_ASC - MULTIPLE_DESC - DATA_ASC - DATA_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC CREATED_AT_ASC CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC } """A connection to a list of `OrgMembershipSetting` values.""" @@ -6172,385 +5677,368 @@ enum OrgMembershipSettingOrderBy { LIMIT_ALLOCATION_MODE_DESC } -"""A connection to a list of `OrgLimitAggregate` values.""" -type OrgLimitAggregateConnection { - """A list of `OrgLimitAggregate` objects.""" - nodes: [OrgLimitAggregate]! +"""A connection to a list of `OrgMemberProfile` values.""" +type OrgMemberProfileConnection { + """A list of `OrgMemberProfile` objects.""" + nodes: [OrgMemberProfile]! """ - A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. + A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. """ - edges: [OrgLimitAggregateEdge]! + edges: [OrgMemberProfileEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgLimitAggregate` you could get from the connection. + The count of *all* `OrgMemberProfile` you could get from the connection. """ totalCount: Int! } """ -Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) +Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) """ -type OrgLimitAggregate { +type OrgMemberProfile { id: UUID! + createdAt: Datetime + updatedAt: Datetime - """Name identifier of the aggregate limit being tracked""" - name: String + """References the membership this profile belongs to (1:1)""" + membershipId: UUID! - """Entity (org) whose aggregate usage is being tracked""" + """References the entity this profile belongs to (used for RLS lookups)""" entityId: UUID! - """Current aggregate usage count for this entity and limit""" - num: BigInt + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID! - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt + """Display name shown to other entity members""" + displayName: String - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """ + Email address visible to other entity members (auto-populated from verified primary email) + """ + email: String - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """Job title or role description visible to other entity members""" + title: String + + """Short biography visible to other entity members""" + bio: String + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. """ - windowDuration: Interval + membership: OrgMembership +} + +scalar ConstructiveInternalTypeImage + +""" +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +""" +type OrgMembership { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether this membership has been approved by an admin""" + isApproved: Boolean! + + """Whether this member has been banned from the entity""" + isBanned: Boolean! + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean! """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - planMax: BigInt + isActive: Boolean! """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. """ - purchasedCredits: BigInt + isExternal: Boolean! + + """Whether the actor is the owner of this entity""" + isOwner: Boolean! + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean! """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + Aggregated permission bitmask combining profile-based and directly granted permissions """ - periodCredits: BigInt + permissions: BitString! """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + Bitmask of permissions directly granted to this member (not from profiles) """ - reserved: BigInt + granted: BitString! + + """References the user who holds this membership""" + actorId: UUID! + + """References the entity (org or group) this membership belongs to""" + entityId: UUID! + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean! + profileId: UUID + + """ + Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. + """ + orgMemberProfileByMembershipId: OrgMemberProfile } -"""A `OrgLimitAggregate` edge in the connection.""" -type OrgLimitAggregateEdge { +"""A `OrgMemberProfile` edge in the connection.""" +type OrgMemberProfileEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitAggregate` at the end of the edge.""" - node: OrgLimitAggregate + """The `OrgMemberProfile` at the end of the edge.""" + node: OrgMemberProfile } """ -A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitAggregateFilter { +input OrgMemberProfileFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `membershipId` field.""" + membershipId: UUIDFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `num` field.""" - num: BigIntFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `displayName` field.""" + displayName: StringFilter - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter + """Filter by the object’s `email` field.""" + email: StringFilter - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter + """Filter by the object’s `title` field.""" + title: StringFilter - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter + """Filter by the object’s `bio` field.""" + bio: StringFilter - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter + """Filter by the object’s `profilePicture` field.""" + profilePicture: ConstructiveInternalTypeImageFilter - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter - - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter - - """Filter by the object’s `reserved` field.""" - reserved: BigIntFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitAggregateFilter!] + """Checks for all expressions in this list.""" + and: [OrgMemberProfileFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitAggregateFilter!] + or: [OrgMemberProfileFilter!] """Negates the expression.""" - not: OrgLimitAggregateFilter -} + not: OrgMemberProfileFilter -"""Methods to use when ordering `OrgLimitAggregate`.""" -enum OrgLimitAggregateOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - RESERVED_ASC - RESERVED_DESC + """Filter by the object’s `membership` relation.""" + membership: OrgMembershipFilter } -"""A connection to a list of `OrgLimit` values.""" -type OrgLimitConnection { - """A list of `OrgLimit` objects.""" - nodes: [OrgLimit]! - +""" +A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeImageFilter { """ - A list of edges which contains the `OrgLimit` and cursor to aid in pagination. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - edges: [OrgLimitEdge]! + isNull: Boolean - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeImage - """The count of *all* `OrgLimit` you could get from the connection.""" - totalCount: Int! -} + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeImage -"""Tracks per-actor usage counts against configurable maximum limits""" -type OrgLimit { - id: UUID! + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeImage - """Name identifier of the limit being tracked""" - name: String + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeImage - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Included in the specified list.""" + in: [ConstructiveInternalTypeImage!] - """Current usage count for this actor and limit""" - num: BigInt + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeImage!] - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeImage - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeImage - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeImage - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeImage - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt + """Contains the specified JSON.""" + contains: ConstructiveInternalTypeImage - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt + """Contains the specified key.""" + containsKey: String - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - entityId: UUID! -} + """Contains all of the specified keys.""" + containsAllKeys: [String!] -"""A `OrgLimit` edge in the connection.""" -type OrgLimitEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Contains any of the specified keys.""" + containsAnyKeys: [String!] - """The `OrgLimit` at the end of the edge.""" - node: OrgLimit + """Contained by the specified JSON.""" + containedBy: ConstructiveInternalTypeImage } """ -A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitFilter { +input OrgMembershipFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `num` field.""" - num: BigIntFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter + """Filter by the object’s `isBanned` field.""" + isBanned: BooleanFilter - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter + """Filter by the object’s `isDisabled` field.""" + isDisabled: BooleanFilter - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter + """Filter by the object’s `isExternal` field.""" + isExternal: BooleanFilter - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter + """Filter by the object’s `isOwner` field.""" + isOwner: BooleanFilter + + """Filter by the object’s `isAdmin` field.""" + isAdmin: BooleanFilter + + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Filter by the object’s `granted` field.""" + granted: BitStringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter + """Filter by the object’s `isReadOnly` field.""" + isReadOnly: BooleanFilter + + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter + """Checks for all expressions in this list.""" - and: [OrgLimitFilter!] + and: [OrgMembershipFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitFilter!] + or: [OrgMembershipFilter!] """Negates the expression.""" - not: OrgLimitFilter + not: OrgMembershipFilter + + """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" + orgMemberProfileByMembershipId: OrgMemberProfileFilter + + """A related `orgMemberProfileByMembershipId` exists.""" + orgMemberProfileByMembershipIdExists: Boolean } -"""Methods to use when ordering `OrgLimit`.""" -enum OrgLimitOrderBy { +"""Methods to use when ordering `OrgMemberProfile`.""" +enum OrgMemberProfileOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + MEMBERSHIP_ID_ASC + MEMBERSHIP_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + EMAIL_ASC + EMAIL_DESC + TITLE_ASC + TITLE_DESC + BIO_ASC + BIO_DESC + PROFILE_PICTURE_ASC + PROFILE_PICTURE_DESC } -"""A connection to a list of `OrgMemberProfile` values.""" -type OrgMemberProfileConnection { - """A list of `OrgMemberProfile` objects.""" - nodes: [OrgMemberProfile]! +"""A connection to a list of `AppMembership` values.""" +type AppMembershipConnection { + """A list of `AppMembership` objects.""" + nodes: [AppMembership]! """ - A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. + A list of edges which contains the `AppMembership` and cursor to aid in pagination. """ - edges: [OrgMemberProfileEdge]! + edges: [AppMembershipEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMemberProfile` you could get from the connection. - """ + """The count of *all* `AppMembership` you could get from the connection.""" totalCount: Int! } -""" -Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) -""" -type OrgMemberProfile { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage - - """ - Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. - """ - membership: OrgMembership -} - -scalar ConstructiveInternalTypeImage - """ Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status """ -type OrgMembership { +type AppMembership { id: UUID! createdAt: Datetime updatedAt: Datetime @@ -6566,16 +6054,14 @@ type OrgMembership { """Whether this membership is temporarily disabled""" isDisabled: Boolean! + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean! + """ Computed field indicating the membership is approved, verified, not banned, and not disabled """ isActive: Boolean! - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean! - """Whether the actor is the owner of this entity""" isOwner: Boolean! @@ -6594,140 +6080,22 @@ type OrgMembership { """References the user who holds this membership""" actorId: UUID! - - """References the entity (org or group) this membership belongs to""" - entityId: UUID! - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean! profileId: UUID - - """ - Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. - """ - orgMemberProfileByMembershipId: OrgMemberProfile } -"""A `OrgMemberProfile` edge in the connection.""" -type OrgMemberProfileEdge { +"""A `AppMembership` edge in the connection.""" +type AppMembershipEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMemberProfile` at the end of the edge.""" - node: OrgMemberProfile -} - -""" -A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMemberProfileFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `membershipId` field.""" - membershipId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - - """Filter by the object’s `email` field.""" - email: StringFilter - - """Filter by the object’s `title` field.""" - title: StringFilter - - """Filter by the object’s `bio` field.""" - bio: StringFilter - - """Filter by the object’s `profilePicture` field.""" - profilePicture: ConstructiveInternalTypeImageFilter - - """Checks for all expressions in this list.""" - and: [OrgMemberProfileFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMemberProfileFilter!] - - """Negates the expression.""" - not: OrgMemberProfileFilter - - """Filter by the object’s `membership` relation.""" - membership: OrgMembershipFilter -} - -""" -A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeImageFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeImage - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeImage - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: ConstructiveInternalTypeImage - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeImage - - """Included in the specified list.""" - in: [ConstructiveInternalTypeImage!] - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeImage!] - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeImage - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeImage - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeImage - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeImage - - """Contains the specified JSON.""" - contains: ConstructiveInternalTypeImage - - """Contains the specified key.""" - containsKey: String - - """Contains all of the specified keys.""" - containsAllKeys: [String!] - - """Contains any of the specified keys.""" - containsAnyKeys: [String!] - - """Contained by the specified JSON.""" - containedBy: ConstructiveInternalTypeImage + """The `AppMembership` at the end of the edge.""" + node: AppMembership } """ -A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ """ -input OrgMembershipFilter { +input AppMembershipFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -6752,12 +6120,12 @@ input OrgMembershipFilter { """Filter by the object’s `isDisabled` field.""" isDisabled: BooleanFilter + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter + """Filter by the object’s `isActive` field.""" isActive: BooleanFilter - """Filter by the object’s `isExternal` field.""" - isExternal: BooleanFilter - """Filter by the object’s `isOwner` field.""" isOwner: BooleanFilter @@ -6773,33 +6141,21 @@ input OrgMembershipFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter - """Filter by the object’s `profileId` field.""" profileId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgMembershipFilter!] + and: [AppMembershipFilter!] """Checks for any expressions in this list.""" - or: [OrgMembershipFilter!] + or: [AppMembershipFilter!] """Negates the expression.""" - not: OrgMembershipFilter - - """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" - orgMemberProfileByMembershipId: OrgMemberProfileFilter - - """A related `orgMemberProfileByMembershipId` exists.""" - orgMemberProfileByMembershipIdExists: Boolean + not: AppMembershipFilter } -"""Methods to use when ordering `OrgMemberProfile`.""" -enum OrgMemberProfileOrderBy { +"""Methods to use when ordering `AppMembership`.""" +enum AppMembershipOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -6809,197 +6165,944 @@ enum OrgMemberProfileOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - MEMBERSHIP_ID_ASC - MEMBERSHIP_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_BANNED_ASC + IS_BANNED_DESC + IS_DISABLED_ASC + IS_DISABLED_DESC + IS_VERIFIED_ASC + IS_VERIFIED_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_OWNER_ASC + IS_OWNER_DESC + IS_ADMIN_ASC + IS_ADMIN_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + GRANTED_ASC + GRANTED_DESC ACTOR_ID_ASC ACTOR_ID_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - EMAIL_ASC - EMAIL_DESC - TITLE_ASC - TITLE_DESC - BIO_ASC - BIO_DESC - PROFILE_PICTURE_ASC - PROFILE_PICTURE_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC +} + +"""A connection to a list of `AppLimit` values.""" +type AppLimitConnection { + """A list of `AppLimit` objects.""" + nodes: [AppLimit]! + + """ + A list of edges which contains the `AppLimit` and cursor to aid in pagination. + """ + edges: [AppLimitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLimit` you could get from the connection.""" + totalCount: Int! +} + +"""Tracks per-actor usage counts against configurable maximum limits""" +type AppLimit { + id: UUID! + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +type Interval { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""A `AppLimit` edge in the connection.""" +type AppLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimit` at the end of the edge.""" + node: AppLimit +} + +""" +A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `num` field.""" + num: BigIntFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter + + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter + + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter + + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter + + """Checks for all expressions in this list.""" + and: [AppLimitFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitFilter!] + + """Negates the expression.""" + not: AppLimitFilter +} + +""" +A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ +""" +input IntervalFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: IntervalInput + + """Not equal to the specified value.""" + notEqualTo: IntervalInput + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: IntervalInput + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: IntervalInput + + """Included in the specified list.""" + in: [IntervalInput!] + + """Not included in the specified list.""" + notIn: [IntervalInput!] + + """Less than the specified value.""" + lessThan: IntervalInput + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: IntervalInput + + """Greater than the specified value.""" + greaterThan: IntervalInput + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: IntervalInput +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""Methods to use when ordering `AppLimit`.""" +enum AppLimitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC +} + +"""A connection to a list of `OrgMembership` values.""" +type OrgMembershipConnection { + """A list of `OrgMembership` objects.""" + nodes: [OrgMembership]! + + """ + A list of edges which contains the `OrgMembership` and cursor to aid in pagination. + """ + edges: [OrgMembershipEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgMembership` you could get from the connection.""" + totalCount: Int! +} + +"""A `OrgMembership` edge in the connection.""" +type OrgMembershipEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembership` at the end of the edge.""" + node: OrgMembership +} + +"""Methods to use when ordering `OrgMembership`.""" +enum OrgMembershipOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_BANNED_ASC + IS_BANNED_DESC + IS_DISABLED_ASC + IS_DISABLED_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_EXTERNAL_ASC + IS_EXTERNAL_DESC + IS_OWNER_ASC + IS_OWNER_DESC + IS_ADMIN_ASC + IS_ADMIN_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + GRANTED_ASC + GRANTED_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + IS_READ_ONLY_ASC + IS_READ_ONLY_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC +} + +"""A connection to a list of `OrgLimitAggregate` values.""" +type OrgLimitAggregateConnection { + """A list of `OrgLimitAggregate` objects.""" + nodes: [OrgLimitAggregate]! + + """ + A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. + """ + edges: [OrgLimitAggregateEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgLimitAggregate` you could get from the connection. + """ + totalCount: Int! +} + +""" +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) +""" +type OrgLimitAggregate { + id: UUID! + + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID! + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """ + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + """ + reserved: BigInt +} + +"""A `OrgLimitAggregate` edge in the connection.""" +type OrgLimitAggregateEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitAggregate` at the end of the edge.""" + node: OrgLimitAggregate +} + +""" +A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitAggregateFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `num` field.""" + num: BigIntFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter + + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter + + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter + + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter + + """Filter by the object’s `reserved` field.""" + reserved: BigIntFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitAggregateFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitAggregateFilter!] + + """Negates the expression.""" + not: OrgLimitAggregateFilter +} + +"""Methods to use when ordering `OrgLimitAggregate`.""" +enum OrgLimitAggregateOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC + RESERVED_ASC + RESERVED_DESC +} + +"""A connection to a list of `OrgLimit` values.""" +type OrgLimitConnection { + """A list of `OrgLimit` objects.""" + nodes: [OrgLimit]! + + """ + A list of edges which contains the `OrgLimit` and cursor to aid in pagination. + """ + edges: [OrgLimitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimit` you could get from the connection.""" + totalCount: Int! +} + +"""Tracks per-actor usage counts against configurable maximum limits""" +type OrgLimit { + id: UUID! + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + entityId: UUID! +} + +"""A `OrgLimit` edge in the connection.""" +type OrgLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimit` at the end of the edge.""" + node: OrgLimit } -"""A connection to a list of `AppMembership` values.""" -type AppMembershipConnection { - """A list of `AppMembership` objects.""" - nodes: [AppMembership]! +""" +A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `num` field.""" + num: BigIntFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter + + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter + + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter + + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitFilter!] + + """Negates the expression.""" + not: OrgLimitFilter +} + +"""Methods to use when ordering `OrgLimit`.""" +enum OrgLimitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC +} + +"""A connection to a list of `AppInvite` values.""" +type AppInviteConnection { + """A list of `AppInvite` objects.""" + nodes: [AppInvite]! """ - A list of edges which contains the `AppMembership` and cursor to aid in pagination. + A list of edges which contains the `AppInvite` and cursor to aid in pagination. """ - edges: [AppMembershipEdge]! + edges: [AppInviteEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppMembership` you could get from the connection.""" + """The count of *all* `AppInvite` you could get from the connection.""" totalCount: Int! } """ -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +Invitation records sent to prospective members via email, with token-based redemption and expiration """ -type AppMembership { +type AppInvite { id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether this membership has been approved by an admin""" - isApproved: Boolean! + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail - """Whether this member has been banned from the entity""" - isBanned: Boolean! + """User ID of the member who sent this invitation""" + senderId: UUID! - """Whether this membership is temporarily disabled""" - isDisabled: Boolean! + """Unique random hex token used to redeem this invitation""" + inviteToken: String! - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean! + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean! + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int! + + """Running count of how many times this invite has been claimed""" + inviteCount: Int! + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean! + + """Optional JSON payload of additional invite metadata""" + data: JSON """ - Computed field indicating the membership is approved, verified, not banned, and not disabled + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - isActive: Boolean! + profileId: UUID - """Whether the actor is the owner of this entity""" - isOwner: Boolean! + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime! + createdAt: Datetime + updatedAt: Datetime +} - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean! +scalar ConstructiveInternalTypeEmail + +"""A `AppInvite` edge in the connection.""" +type AppInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppInvite` at the end of the edge.""" + node: AppInvite +} + +""" +A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ +""" +input AppInviteFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `email` field.""" + email: ConstructiveInternalTypeEmailFilter + + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter + + """Filter by the object’s `inviteToken` field.""" + inviteToken: StringFilter + + """Filter by the object’s `inviteValid` field.""" + inviteValid: BooleanFilter + + """Filter by the object’s `inviteLimit` field.""" + inviteLimit: IntFilter + + """Filter by the object’s `inviteCount` field.""" + inviteCount: IntFilter + + """Filter by the object’s `multiple` field.""" + multiple: BooleanFilter + + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [AppInviteFilter!] + + """Checks for any expressions in this list.""" + or: [AppInviteFilter!] + + """Negates the expression.""" + not: AppInviteFilter +} + +""" +A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeEmailFilter { """ - Aggregated permission bitmask combining profile-based and directly granted permissions + Is null (if `true` is specified) or is not null (if `false` is specified). """ - permissions: BitString! + isNull: Boolean + + """Equal to the specified value.""" + equalTo: String + + """Not equal to the specified value.""" + notEqualTo: String """ - Bitmask of permissions directly granted to this member (not from profiles) + Not equal to the specified value, treating null like an ordinary value. """ - granted: BitString! + distinctFrom: String + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: String + + """Included in the specified list.""" + in: [String!] + + """Not included in the specified list.""" + notIn: [String!] + + """Less than the specified value.""" + lessThan: String + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: String + + """Greater than the specified value.""" + greaterThan: String + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: String + + """Contains the specified string (case-sensitive).""" + includes: String + + """Does not contain the specified string (case-sensitive).""" + notIncludes: String + + """Contains the specified string (case-insensitive).""" + includesInsensitive: ConstructiveInternalTypeEmail + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: ConstructiveInternalTypeEmail - """References the user who holds this membership""" - actorId: UUID! - profileId: UUID -} + """Starts with the specified string (case-sensitive).""" + startsWith: String -"""A `AppMembership` edge in the connection.""" -type AppMembershipEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String - """The `AppMembership` at the end of the edge.""" - node: AppMembership -} + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: ConstructiveInternalTypeEmail -""" -A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ -""" -input AppMembershipFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Ends with the specified string (case-sensitive).""" + endsWith: String - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Does not end with the specified string (case-sensitive).""" + notEndsWith: String - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """ + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + like: String - """Filter by the object’s `isBanned` field.""" - isBanned: BooleanFilter + """ + Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLike: String - """Filter by the object’s `isDisabled` field.""" - isDisabled: BooleanFilter + """ + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + likeInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter + """ + Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLikeInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `granted` field.""" - granted: BitStringFilter + """Included in the specified list (case-insensitive).""" + inInsensitive: [ConstructiveInternalTypeEmail!] - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [ConstructiveInternalTypeEmail!] - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: ConstructiveInternalTypeEmail - """Checks for all expressions in this list.""" - and: [AppMembershipFilter!] + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail - """Checks for any expressions in this list.""" - or: [AppMembershipFilter!] + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: ConstructiveInternalTypeEmail - """Negates the expression.""" - not: AppMembershipFilter + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail } -"""Methods to use when ordering `AppMembership`.""" -enum AppMembershipOrderBy { +"""Methods to use when ordering `AppInvite`.""" +enum AppInviteOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC + EMAIL_ASC + EMAIL_DESC + SENDER_ID_ASC + SENDER_ID_DESC + INVITE_TOKEN_ASC + INVITE_TOKEN_DESC + INVITE_VALID_ASC + INVITE_VALID_DESC + INVITE_LIMIT_ASC + INVITE_LIMIT_DESC + INVITE_COUNT_ASC + INVITE_COUNT_DESC + MULTIPLE_ASC + MULTIPLE_DESC + DATA_ASC + DATA_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_BANNED_ASC - IS_BANNED_DESC - IS_DISABLED_ASC - IS_DISABLED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_OWNER_ASC - IS_OWNER_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - GRANTED_ASC - GRANTED_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC } """A connection to a list of `OrgInvite` values.""" @@ -7176,75 +7279,6 @@ enum OrgInviteOrderBy { ENTITY_ID_DESC } -"""A connection to a list of `OrgMembership` values.""" -type OrgMembershipConnection { - """A list of `OrgMembership` objects.""" - nodes: [OrgMembership]! - - """ - A list of edges which contains the `OrgMembership` and cursor to aid in pagination. - """ - edges: [OrgMembershipEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgMembership` you could get from the connection.""" - totalCount: Int! -} - -"""A `OrgMembership` edge in the connection.""" -type OrgMembershipEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembership` at the end of the edge.""" - node: OrgMembership -} - -"""Methods to use when ordering `OrgMembership`.""" -enum OrgMembershipOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_BANNED_ASC - IS_BANNED_DESC - IS_DISABLED_ASC - IS_DISABLED_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_EXTERNAL_ASC - IS_EXTERNAL_DESC - IS_OWNER_ASC - IS_OWNER_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - GRANTED_ASC - GRANTED_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - IS_READ_ONLY_ASC - IS_READ_ONLY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC -} - """Root meta schema type""" type MetaSchema { tables: [MetaTable!]! @@ -7436,13 +7470,21 @@ type Mutation { input: CreateAppPermissionDefaultInput! ): CreateAppPermissionDefaultPayload - """Creates a single `AppLimitCreditCode`.""" - createAppLimitCreditCode( + """Creates a single `AppAdminGrant`.""" + createAppAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditCodeInput! - ): CreateAppLimitCreditCodePayload + input: CreateAppAdminGrantInput! + ): CreateAppAdminGrantPayload + + """Creates a single `AppOwnerGrant`.""" + createAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppOwnerGrantInput! + ): CreateAppOwnerGrantPayload """Creates a single `OrgPermissionDefault`.""" createOrgPermissionDefault( @@ -7452,37 +7494,37 @@ type Mutation { input: CreateOrgPermissionDefaultInput! ): CreateOrgPermissionDefaultPayload - """Creates a single `AppPermission`.""" - createAppPermission( + """Creates a single `AppMembershipDefault`.""" + createAppMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppPermissionInput! - ): CreateAppPermissionPayload + input: CreateAppMembershipDefaultInput! + ): CreateAppMembershipDefaultPayload - """Creates a single `OrgPermission`.""" - createOrgPermission( + """Creates a single `OrgAdminGrant`.""" + createOrgAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgPermissionInput! - ): CreateOrgPermissionPayload + input: CreateOrgAdminGrantInput! + ): CreateOrgAdminGrantPayload - """Creates a single `AppAdminGrant`.""" - createAppAdminGrant( + """Creates a single `OrgMembershipDefault`.""" + createOrgMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppAdminGrantInput! - ): CreateAppAdminGrantPayload + input: CreateOrgMembershipDefaultInput! + ): CreateOrgMembershipDefaultPayload - """Creates a single `AppOwnerGrant`.""" - createAppOwnerGrant( + """Creates a single `OrgOwnerGrant`.""" + createOrgOwnerGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppOwnerGrantInput! - ): CreateAppOwnerGrantPayload + input: CreateOrgOwnerGrantInput! + ): CreateOrgOwnerGrantPayload """Creates a single `AppLimitCapsDefault`.""" createAppLimitCapsDefault( @@ -7516,29 +7558,21 @@ type Mutation { input: CreateOrgLimitCapInput! ): CreateOrgLimitCapPayload - """Creates a single `OrgAdminGrant`.""" - createOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgAdminGrantInput! - ): CreateOrgAdminGrantPayload - - """Creates a single `OrgOwnerGrant`.""" - createOrgOwnerGrant( + """Creates a single `OrgChartEdge`.""" + createOrgChartEdge( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgOwnerGrantInput! - ): CreateOrgOwnerGrantPayload + input: CreateOrgChartEdgeInput! + ): CreateOrgChartEdgePayload - """Creates a single `MembershipType`.""" - createMembershipType( + """Creates a single `AppLimitCreditCodeItem`.""" + createAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateMembershipTypeInput! - ): CreateMembershipTypePayload + input: CreateAppLimitCreditCodeItemInput! + ): CreateAppLimitCreditCodeItemPayload """Creates a single `AppLimitDefault`.""" createAppLimitDefault( @@ -7556,13 +7590,29 @@ type Mutation { input: CreateOrgLimitDefaultInput! ): CreateOrgLimitDefaultPayload - """Creates a single `AppLimitCreditCodeItem`.""" - createAppLimitCreditCodeItem( + """Creates a single `AppPermission`.""" + createAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditCodeItemInput! - ): CreateAppLimitCreditCodeItemPayload + input: CreateAppPermissionInput! + ): CreateAppPermissionPayload + + """Creates a single `OrgPermission`.""" + createOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionInput! + ): CreateOrgPermissionPayload + + """Creates a single `AppLimitCreditCode`.""" + createAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditCodeInput! + ): CreateAppLimitCreditCodePayload """Creates a single `AppLimitWarning`.""" createAppLimitWarning( @@ -7572,21 +7622,21 @@ type Mutation { input: CreateAppLimitWarningInput! ): CreateAppLimitWarningPayload - """Creates a single `AppLimitCredit`.""" - createAppLimitCredit( + """Creates a single `OrgChartEdgeGrant`.""" + createOrgChartEdgeGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditInput! - ): CreateAppLimitCreditPayload + input: CreateOrgChartEdgeGrantInput! + ): CreateOrgChartEdgeGrantPayload - """Creates a single `OrgLimitWarning`.""" - createOrgLimitWarning( + """Creates a single `AppLimitCredit`.""" + createAppLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitWarningInput! - ): CreateOrgLimitWarningPayload + input: CreateAppLimitCreditInput! + ): CreateAppLimitCreditPayload """Creates a single `OrgLimitCredit`.""" createOrgLimitCredit( @@ -7596,14 +7646,6 @@ type Mutation { input: CreateOrgLimitCreditInput! ): CreateOrgLimitCreditPayload - """Creates a single `OrgChartEdgeGrant`.""" - createOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgChartEdgeGrantInput! - ): CreateOrgChartEdgeGrantPayload - """Creates a single `AppClaimedInvite`.""" createAppClaimedInvite( """ @@ -7612,29 +7654,29 @@ type Mutation { input: CreateAppClaimedInviteInput! ): CreateAppClaimedInvitePayload - """Creates a single `AppGrant`.""" - createAppGrant( + """Creates a single `OrgLimitWarning`.""" + createOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppGrantInput! - ): CreateAppGrantPayload + input: CreateOrgLimitWarningInput! + ): CreateOrgLimitWarningPayload - """Creates a single `AppMembershipDefault`.""" - createAppMembershipDefault( + """Creates a single `MembershipType`.""" + createMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppMembershipDefaultInput! - ): CreateAppMembershipDefaultPayload + input: CreateMembershipTypeInput! + ): CreateMembershipTypePayload - """Creates a single `OrgMembershipDefault`.""" - createOrgMembershipDefault( + """Creates a single `AppGrant`.""" + createAppGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipDefaultInput! - ): CreateOrgMembershipDefaultPayload + input: CreateAppGrantInput! + ): CreateAppGrantPayload """Creates a single `OrgClaimedInvite`.""" createOrgClaimedInvite( @@ -7644,6 +7686,22 @@ type Mutation { input: CreateOrgClaimedInviteInput! ): CreateOrgClaimedInvitePayload + """Creates a single `OrgGrant`.""" + createOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgGrantInput! + ): CreateOrgGrantPayload + + """Creates a single `UsageSnapshot`.""" + createUsageSnapshot( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUsageSnapshotInput! + ): CreateUsageSnapshotPayload + """Creates a single `AppLimitEvent`.""" createAppLimitEvent( """ @@ -7660,29 +7718,29 @@ type Mutation { input: CreateOrgLimitEventInput! ): CreateOrgLimitEventPayload - """Creates a single `OrgGrant`.""" - createOrgGrant( + """Creates a single `OrgMembershipSetting`.""" + createOrgMembershipSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgGrantInput! - ): CreateOrgGrantPayload + input: CreateOrgMembershipSettingInput! + ): CreateOrgMembershipSettingPayload - """Creates a single `OrgChartEdge`.""" - createOrgChartEdge( + """Creates a single `OrgMemberProfile`.""" + createOrgMemberProfile( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgChartEdgeInput! - ): CreateOrgChartEdgePayload + input: CreateOrgMemberProfileInput! + ): CreateOrgMemberProfilePayload - """Creates a single `UsageSnapshot`.""" - createUsageSnapshot( + """Creates a single `AppMembership`.""" + createAppMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateUsageSnapshotInput! - ): CreateUsageSnapshotPayload + input: CreateAppMembershipInput! + ): CreateAppMembershipPayload """Creates a single `AppLimit`.""" createAppLimit( @@ -7692,21 +7750,13 @@ type Mutation { input: CreateAppLimitInput! ): CreateAppLimitPayload - """Creates a single `AppInvite`.""" - createAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppInviteInput! - ): CreateAppInvitePayload - - """Creates a single `OrgMembershipSetting`.""" - createOrgMembershipSetting( + """Creates a single `OrgMembership`.""" + createOrgMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipSettingInput! - ): CreateOrgMembershipSettingPayload + input: CreateOrgMembershipInput! + ): CreateOrgMembershipPayload """Creates a single `OrgLimitAggregate`.""" createOrgLimitAggregate( @@ -7724,21 +7774,13 @@ type Mutation { input: CreateOrgLimitInput! ): CreateOrgLimitPayload - """Creates a single `OrgMemberProfile`.""" - createOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMemberProfileInput! - ): CreateOrgMemberProfilePayload - - """Creates a single `AppMembership`.""" - createAppMembership( + """Creates a single `AppInvite`.""" + createAppInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppMembershipInput! - ): CreateAppMembershipPayload + input: CreateAppInviteInput! + ): CreateAppInvitePayload """Creates a single `OrgInvite`.""" createOrgInvite( @@ -7748,14 +7790,6 @@ type Mutation { input: CreateOrgInviteInput! ): CreateOrgInvitePayload - """Creates a single `OrgMembership`.""" - createOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipInput! - ): CreateOrgMembershipPayload - """ Updates a single `AppLimitCreditRedemption` using a unique key and a patch. """ @@ -7784,13 +7818,21 @@ type Mutation { input: UpdateAppPermissionDefaultInput! ): UpdateAppPermissionDefaultPayload - """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" - updateAppLimitCreditCode( + """Updates a single `AppAdminGrant` using a unique key and a patch.""" + updateAppAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditCodeInput! - ): UpdateAppLimitCreditCodePayload + input: UpdateAppAdminGrantInput! + ): UpdateAppAdminGrantPayload + + """Updates a single `AppOwnerGrant` using a unique key and a patch.""" + updateAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppOwnerGrantInput! + ): UpdateAppOwnerGrantPayload """ Updates a single `OrgPermissionDefault` using a unique key and a patch. @@ -7802,37 +7844,41 @@ type Mutation { input: UpdateOrgPermissionDefaultInput! ): UpdateOrgPermissionDefaultPayload - """Updates a single `AppPermission` using a unique key and a patch.""" - updateAppPermission( + """ + Updates a single `AppMembershipDefault` using a unique key and a patch. + """ + updateAppMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppPermissionInput! - ): UpdateAppPermissionPayload + input: UpdateAppMembershipDefaultInput! + ): UpdateAppMembershipDefaultPayload - """Updates a single `OrgPermission` using a unique key and a patch.""" - updateOrgPermission( + """Updates a single `OrgAdminGrant` using a unique key and a patch.""" + updateOrgAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgPermissionInput! - ): UpdateOrgPermissionPayload + input: UpdateOrgAdminGrantInput! + ): UpdateOrgAdminGrantPayload - """Updates a single `AppAdminGrant` using a unique key and a patch.""" - updateAppAdminGrant( + """ + Updates a single `OrgMembershipDefault` using a unique key and a patch. + """ + updateOrgMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppAdminGrantInput! - ): UpdateAppAdminGrantPayload + input: UpdateOrgMembershipDefaultInput! + ): UpdateOrgMembershipDefaultPayload - """Updates a single `AppOwnerGrant` using a unique key and a patch.""" - updateAppOwnerGrant( + """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" + updateOrgOwnerGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppOwnerGrantInput! - ): UpdateAppOwnerGrantPayload + input: UpdateOrgOwnerGrantInput! + ): UpdateOrgOwnerGrantPayload """Updates a single `AppLimitCapsDefault` using a unique key and a patch.""" updateAppLimitCapsDefault( @@ -7866,29 +7912,23 @@ type Mutation { input: UpdateOrgLimitCapInput! ): UpdateOrgLimitCapPayload - """Updates a single `OrgAdminGrant` using a unique key and a patch.""" - updateOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgAdminGrantInput! - ): UpdateOrgAdminGrantPayload - - """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" - updateOrgOwnerGrant( + """Updates a single `OrgChartEdge` using a unique key and a patch.""" + updateOrgChartEdge( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgOwnerGrantInput! - ): UpdateOrgOwnerGrantPayload + input: UpdateOrgChartEdgeInput! + ): UpdateOrgChartEdgePayload - """Updates a single `MembershipType` using a unique key and a patch.""" - updateMembershipType( + """ + Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. + """ + updateAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateMembershipTypeInput! - ): UpdateMembershipTypePayload + input: UpdateAppLimitCreditCodeItemInput! + ): UpdateAppLimitCreditCodeItemPayload """Updates a single `AppLimitDefault` using a unique key and a patch.""" updateAppLimitDefault( @@ -7906,15 +7946,29 @@ type Mutation { input: UpdateOrgLimitDefaultInput! ): UpdateOrgLimitDefaultPayload - """ - Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. - """ - updateAppLimitCreditCodeItem( + """Updates a single `AppPermission` using a unique key and a patch.""" + updateAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditCodeItemInput! - ): UpdateAppLimitCreditCodeItemPayload + input: UpdateAppPermissionInput! + ): UpdateAppPermissionPayload + + """Updates a single `OrgPermission` using a unique key and a patch.""" + updateOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionInput! + ): UpdateOrgPermissionPayload + + """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" + updateAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCreditCodeInput! + ): UpdateAppLimitCreditCodePayload """Updates a single `AppLimitWarning` using a unique key and a patch.""" updateAppLimitWarning( @@ -7924,21 +7978,21 @@ type Mutation { input: UpdateAppLimitWarningInput! ): UpdateAppLimitWarningPayload - """Updates a single `AppLimitCredit` using a unique key and a patch.""" - updateAppLimitCredit( + """Updates a single `OrgChartEdgeGrant` using a unique key and a patch.""" + updateOrgChartEdgeGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditInput! - ): UpdateAppLimitCreditPayload + input: UpdateOrgChartEdgeGrantInput! + ): UpdateOrgChartEdgeGrantPayload - """Updates a single `OrgLimitWarning` using a unique key and a patch.""" - updateOrgLimitWarning( + """Updates a single `AppLimitCredit` using a unique key and a patch.""" + updateAppLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitWarningInput! - ): UpdateOrgLimitWarningPayload + input: UpdateAppLimitCreditInput! + ): UpdateAppLimitCreditPayload """Updates a single `OrgLimitCredit` using a unique key and a patch.""" updateOrgLimitCredit( @@ -7948,14 +8002,6 @@ type Mutation { input: UpdateOrgLimitCreditInput! ): UpdateOrgLimitCreditPayload - """Updates a single `OrgChartEdgeGrant` using a unique key and a patch.""" - updateOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgChartEdgeGrantInput! - ): UpdateOrgChartEdgeGrantPayload - """Updates a single `AppClaimedInvite` using a unique key and a patch.""" updateAppClaimedInvite( """ @@ -7964,33 +8010,29 @@ type Mutation { input: UpdateAppClaimedInviteInput! ): UpdateAppClaimedInvitePayload - """Updates a single `AppGrant` using a unique key and a patch.""" - updateAppGrant( + """Updates a single `OrgLimitWarning` using a unique key and a patch.""" + updateOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppGrantInput! - ): UpdateAppGrantPayload + input: UpdateOrgLimitWarningInput! + ): UpdateOrgLimitWarningPayload - """ - Updates a single `AppMembershipDefault` using a unique key and a patch. - """ - updateAppMembershipDefault( + """Updates a single `MembershipType` using a unique key and a patch.""" + updateMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppMembershipDefaultInput! - ): UpdateAppMembershipDefaultPayload + input: UpdateMembershipTypeInput! + ): UpdateMembershipTypePayload - """ - Updates a single `OrgMembershipDefault` using a unique key and a patch. - """ - updateOrgMembershipDefault( + """Updates a single `AppGrant` using a unique key and a patch.""" + updateAppGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMembershipDefaultInput! - ): UpdateOrgMembershipDefaultPayload + input: UpdateAppGrantInput! + ): UpdateAppGrantPayload """Updates a single `OrgClaimedInvite` using a unique key and a patch.""" updateOrgClaimedInvite( @@ -8008,14 +8050,6 @@ type Mutation { input: UpdateOrgGrantInput! ): UpdateOrgGrantPayload - """Updates a single `OrgChartEdge` using a unique key and a patch.""" - updateOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgChartEdgeInput! - ): UpdateOrgChartEdgePayload - """Updates a single `UsageSnapshot` using a unique key and a patch.""" updateUsageSnapshot( """ @@ -8024,21 +8058,21 @@ type Mutation { input: UpdateUsageSnapshotInput! ): UpdateUsageSnapshotPayload - """Updates a single `AppLimit` using a unique key and a patch.""" - updateAppLimit( + """Updates a single `AppLimitEvent` using a unique key and a patch.""" + updateAppLimitEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitInput! - ): UpdateAppLimitPayload + input: UpdateAppLimitEventInput! + ): UpdateAppLimitEventPayload - """Updates a single `AppInvite` using a unique key and a patch.""" - updateAppInvite( + """Updates a single `OrgLimitEvent` using a unique key and a patch.""" + updateOrgLimitEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppInviteInput! - ): UpdateAppInvitePayload + input: UpdateOrgLimitEventInput! + ): UpdateOrgLimitEventPayload """ Updates a single `OrgMembershipSetting` using a unique key and a patch. @@ -8050,22 +8084,6 @@ type Mutation { input: UpdateOrgMembershipSettingInput! ): UpdateOrgMembershipSettingPayload - """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" - updateOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitAggregateInput! - ): UpdateOrgLimitAggregatePayload - - """Updates a single `OrgLimit` using a unique key and a patch.""" - updateOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitInput! - ): UpdateOrgLimitPayload - """Updates a single `OrgMemberProfile` using a unique key and a patch.""" updateOrgMemberProfile( """ @@ -8082,13 +8100,13 @@ type Mutation { input: UpdateAppMembershipInput! ): UpdateAppMembershipPayload - """Updates a single `OrgInvite` using a unique key and a patch.""" - updateOrgInvite( + """Updates a single `AppLimit` using a unique key and a patch.""" + updateAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgInviteInput! - ): UpdateOrgInvitePayload + input: UpdateAppLimitInput! + ): UpdateAppLimitPayload """Updates a single `OrgMembership` using a unique key and a patch.""" updateOrgMembership( @@ -8098,6 +8116,38 @@ type Mutation { input: UpdateOrgMembershipInput! ): UpdateOrgMembershipPayload + """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" + updateOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitAggregateInput! + ): UpdateOrgLimitAggregatePayload + + """Updates a single `OrgLimit` using a unique key and a patch.""" + updateOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitInput! + ): UpdateOrgLimitPayload + + """Updates a single `AppInvite` using a unique key and a patch.""" + updateAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppInviteInput! + ): UpdateAppInvitePayload + + """Updates a single `OrgInvite` using a unique key and a patch.""" + updateOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgInviteInput! + ): UpdateOrgInvitePayload + """Deletes a single `AppLimitCreditRedemption` using a unique key.""" deleteAppLimitCreditRedemption( """ @@ -8122,13 +8172,21 @@ type Mutation { input: DeleteAppPermissionDefaultInput! ): DeleteAppPermissionDefaultPayload - """Deletes a single `AppLimitCreditCode` using a unique key.""" - deleteAppLimitCreditCode( + """Deletes a single `AppAdminGrant` using a unique key.""" + deleteAppAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditCodeInput! - ): DeleteAppLimitCreditCodePayload + input: DeleteAppAdminGrantInput! + ): DeleteAppAdminGrantPayload + + """Deletes a single `AppOwnerGrant` using a unique key.""" + deleteAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppOwnerGrantInput! + ): DeleteAppOwnerGrantPayload """Deletes a single `OrgPermissionDefault` using a unique key.""" deleteOrgPermissionDefault( @@ -8138,37 +8196,37 @@ type Mutation { input: DeleteOrgPermissionDefaultInput! ): DeleteOrgPermissionDefaultPayload - """Deletes a single `AppPermission` using a unique key.""" - deleteAppPermission( + """Deletes a single `AppMembershipDefault` using a unique key.""" + deleteAppMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppPermissionInput! - ): DeleteAppPermissionPayload + input: DeleteAppMembershipDefaultInput! + ): DeleteAppMembershipDefaultPayload - """Deletes a single `OrgPermission` using a unique key.""" - deleteOrgPermission( + """Deletes a single `OrgAdminGrant` using a unique key.""" + deleteOrgAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgPermissionInput! - ): DeleteOrgPermissionPayload + input: DeleteOrgAdminGrantInput! + ): DeleteOrgAdminGrantPayload - """Deletes a single `AppAdminGrant` using a unique key.""" - deleteAppAdminGrant( + """Deletes a single `OrgMembershipDefault` using a unique key.""" + deleteOrgMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppAdminGrantInput! - ): DeleteAppAdminGrantPayload + input: DeleteOrgMembershipDefaultInput! + ): DeleteOrgMembershipDefaultPayload - """Deletes a single `AppOwnerGrant` using a unique key.""" - deleteAppOwnerGrant( + """Deletes a single `OrgOwnerGrant` using a unique key.""" + deleteOrgOwnerGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppOwnerGrantInput! - ): DeleteAppOwnerGrantPayload + input: DeleteOrgOwnerGrantInput! + ): DeleteOrgOwnerGrantPayload """Deletes a single `AppLimitCapsDefault` using a unique key.""" deleteAppLimitCapsDefault( @@ -8202,29 +8260,21 @@ type Mutation { input: DeleteOrgLimitCapInput! ): DeleteOrgLimitCapPayload - """Deletes a single `OrgAdminGrant` using a unique key.""" - deleteOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgAdminGrantInput! - ): DeleteOrgAdminGrantPayload - - """Deletes a single `OrgOwnerGrant` using a unique key.""" - deleteOrgOwnerGrant( + """Deletes a single `OrgChartEdge` using a unique key.""" + deleteOrgChartEdge( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgOwnerGrantInput! - ): DeleteOrgOwnerGrantPayload + input: DeleteOrgChartEdgeInput! + ): DeleteOrgChartEdgePayload - """Deletes a single `MembershipType` using a unique key.""" - deleteMembershipType( + """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" + deleteAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteMembershipTypeInput! - ): DeleteMembershipTypePayload + input: DeleteAppLimitCreditCodeItemInput! + ): DeleteAppLimitCreditCodeItemPayload """Deletes a single `AppLimitDefault` using a unique key.""" deleteAppLimitDefault( @@ -8242,13 +8292,29 @@ type Mutation { input: DeleteOrgLimitDefaultInput! ): DeleteOrgLimitDefaultPayload - """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" - deleteAppLimitCreditCodeItem( + """Deletes a single `AppPermission` using a unique key.""" + deleteAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionInput! + ): DeleteAppPermissionPayload + + """Deletes a single `OrgPermission` using a unique key.""" + deleteOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionInput! + ): DeleteOrgPermissionPayload + + """Deletes a single `AppLimitCreditCode` using a unique key.""" + deleteAppLimitCreditCode( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditCodeItemInput! - ): DeleteAppLimitCreditCodeItemPayload + input: DeleteAppLimitCreditCodeInput! + ): DeleteAppLimitCreditCodePayload """Deletes a single `AppLimitWarning` using a unique key.""" deleteAppLimitWarning( @@ -8258,21 +8324,21 @@ type Mutation { input: DeleteAppLimitWarningInput! ): DeleteAppLimitWarningPayload - """Deletes a single `AppLimitCredit` using a unique key.""" - deleteAppLimitCredit( + """Deletes a single `OrgChartEdgeGrant` using a unique key.""" + deleteOrgChartEdgeGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditInput! - ): DeleteAppLimitCreditPayload + input: DeleteOrgChartEdgeGrantInput! + ): DeleteOrgChartEdgeGrantPayload - """Deletes a single `OrgLimitWarning` using a unique key.""" - deleteOrgLimitWarning( + """Deletes a single `AppLimitCredit` using a unique key.""" + deleteAppLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitWarningInput! - ): DeleteOrgLimitWarningPayload + input: DeleteAppLimitCreditInput! + ): DeleteAppLimitCreditPayload """Deletes a single `OrgLimitCredit` using a unique key.""" deleteOrgLimitCredit( @@ -8282,14 +8348,6 @@ type Mutation { input: DeleteOrgLimitCreditInput! ): DeleteOrgLimitCreditPayload - """Deletes a single `OrgChartEdgeGrant` using a unique key.""" - deleteOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeGrantInput! - ): DeleteOrgChartEdgeGrantPayload - """Deletes a single `AppClaimedInvite` using a unique key.""" deleteAppClaimedInvite( """ @@ -8298,29 +8356,29 @@ type Mutation { input: DeleteAppClaimedInviteInput! ): DeleteAppClaimedInvitePayload - """Deletes a single `AppGrant` using a unique key.""" - deleteAppGrant( + """Deletes a single `OrgLimitWarning` using a unique key.""" + deleteOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppGrantInput! - ): DeleteAppGrantPayload + input: DeleteOrgLimitWarningInput! + ): DeleteOrgLimitWarningPayload - """Deletes a single `AppMembershipDefault` using a unique key.""" - deleteAppMembershipDefault( + """Deletes a single `MembershipType` using a unique key.""" + deleteMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppMembershipDefaultInput! - ): DeleteAppMembershipDefaultPayload + input: DeleteMembershipTypeInput! + ): DeleteMembershipTypePayload - """Deletes a single `OrgMembershipDefault` using a unique key.""" - deleteOrgMembershipDefault( + """Deletes a single `AppGrant` using a unique key.""" + deleteAppGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMembershipDefaultInput! - ): DeleteOrgMembershipDefaultPayload + input: DeleteAppGrantInput! + ): DeleteAppGrantPayload """Deletes a single `OrgClaimedInvite` using a unique key.""" deleteOrgClaimedInvite( @@ -8338,14 +8396,6 @@ type Mutation { input: DeleteOrgGrantInput! ): DeleteOrgGrantPayload - """Deletes a single `OrgChartEdge` using a unique key.""" - deleteOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeInput! - ): DeleteOrgChartEdgePayload - """Deletes a single `UsageSnapshot` using a unique key.""" deleteUsageSnapshot( """ @@ -8354,21 +8404,21 @@ type Mutation { input: DeleteUsageSnapshotInput! ): DeleteUsageSnapshotPayload - """Deletes a single `AppLimit` using a unique key.""" - deleteAppLimit( + """Deletes a single `AppLimitEvent` using a unique key.""" + deleteAppLimitEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitInput! - ): DeleteAppLimitPayload + input: DeleteAppLimitEventInput! + ): DeleteAppLimitEventPayload - """Deletes a single `AppInvite` using a unique key.""" - deleteAppInvite( + """Deletes a single `OrgLimitEvent` using a unique key.""" + deleteOrgLimitEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppInviteInput! - ): DeleteAppInvitePayload + input: DeleteOrgLimitEventInput! + ): DeleteOrgLimitEventPayload """Deletes a single `OrgMembershipSetting` using a unique key.""" deleteOrgMembershipSetting( @@ -8378,22 +8428,6 @@ type Mutation { input: DeleteOrgMembershipSettingInput! ): DeleteOrgMembershipSettingPayload - """Deletes a single `OrgLimitAggregate` using a unique key.""" - deleteOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitAggregateInput! - ): DeleteOrgLimitAggregatePayload - - """Deletes a single `OrgLimit` using a unique key.""" - deleteOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitInput! - ): DeleteOrgLimitPayload - """Deletes a single `OrgMemberProfile` using a unique key.""" deleteOrgMemberProfile( """ @@ -8410,13 +8444,13 @@ type Mutation { input: DeleteAppMembershipInput! ): DeleteAppMembershipPayload - """Deletes a single `OrgInvite` using a unique key.""" - deleteOrgInvite( + """Deletes a single `AppLimit` using a unique key.""" + deleteAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgInviteInput! - ): DeleteOrgInvitePayload + input: DeleteAppLimitInput! + ): DeleteAppLimitPayload """Deletes a single `OrgMembership` using a unique key.""" deleteOrgMembership( @@ -8426,6 +8460,38 @@ type Mutation { input: DeleteOrgMembershipInput! ): DeleteOrgMembershipPayload + """Deletes a single `OrgLimitAggregate` using a unique key.""" + deleteOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitAggregateInput! + ): DeleteOrgLimitAggregatePayload + + """Deletes a single `OrgLimit` using a unique key.""" + deleteOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitInput! + ): DeleteOrgLimitPayload + + """Deletes a single `AppInvite` using a unique key.""" + deleteAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppInviteInput! + ): DeleteAppInvitePayload + + """Deletes a single `OrgInvite` using a unique key.""" + deleteOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgInviteInput! + ): DeleteOrgInvitePayload + """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures @@ -8628,58 +8694,102 @@ input AppPermissionDefaultInput { permissions: BitString } -"""The output of our create `AppLimitCreditCode` mutation.""" -type CreateAppLimitCreditCodePayload { +"""The output of our create `AppAdminGrant` mutation.""" +type CreateAppAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCode` that was created by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `AppAdminGrant` that was created by this mutation.""" + appAdminGrant: AppAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge } -"""All input for the create `AppLimitCreditCode` mutation.""" -input CreateAppLimitCreditCodeInput { +"""All input for the create `AppAdminGrant` mutation.""" +input CreateAppAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLimitCreditCode` to be created by this mutation.""" - appLimitCreditCode: AppLimitCreditCodeInput! + """The `AppAdminGrant` to be created by this mutation.""" + appAdminGrant: AppAdminGrantInput! } -"""An input for mutations affecting `AppLimitCreditCode`""" -input AppLimitCreditCodeInput { +"""An input for mutations affecting `AppAdminGrant`""" +input AppAdminGrantInput { id: UUID - """Human-readable credit code (case-insensitive, unique)""" - code: String! + """True to grant admin, false to revoke admin""" + isGrant: Boolean - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int + """The member receiving or losing the admin grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our create `AppOwnerGrant` mutation.""" +type CreateAppOwnerGrantPayload { """ - Current number of redemptions (incremented by trigger on credit_redemptions) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - currentRedemptions: Int + clientMutationId: String - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime + """The `AppOwnerGrant` that was created by this mutation.""" + appOwnerGrant: AppOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge +} + +"""All input for the create `AppOwnerGrant` mutation.""" +input CreateAppOwnerGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppOwnerGrant` to be created by this mutation.""" + appOwnerGrant: AppOwnerGrantInput! +} + +"""An input for mutations affecting `AppOwnerGrant`""" +input AppOwnerGrantInput { + id: UUID + + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean + + """The member receiving or losing the ownership grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } """The output of our create `OrgPermissionDefault` mutation.""" @@ -8728,204 +8838,195 @@ input OrgPermissionDefaultInput { entityId: UUID! } -"""The output of our create `AppPermission` mutation.""" -type CreateAppPermissionPayload { +"""The output of our create `AppMembershipDefault` mutation.""" +type CreateAppMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermission` that was created by this mutation.""" - appPermission: AppPermission + """The `AppMembershipDefault` that was created by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the create `AppPermission` mutation.""" -input CreateAppPermissionInput { +"""All input for the create `AppMembershipDefault` mutation.""" +input CreateAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppPermission` to be created by this mutation.""" - appPermission: AppPermissionInput! + """The `AppMembershipDefault` to be created by this mutation.""" + appMembershipDefault: AppMembershipDefaultInput! } -"""An input for mutations affecting `AppPermission`""" -input AppPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString +"""An input for mutations affecting `AppMembershipDefault`""" +input AppMembershipDefaultInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Human-readable description of what this permission allows""" - description: String + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """Whether new members are automatically verified upon joining""" + isVerified: Boolean } -"""The output of our create `OrgPermission` mutation.""" -type CreateOrgPermissionPayload { +"""The output of our create `OrgAdminGrant` mutation.""" +type CreateOrgAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermission` that was created by this mutation.""" - orgPermission: OrgPermission + """The `OrgAdminGrant` that was created by this mutation.""" + orgAdminGrant: OrgAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge } -"""All input for the create `OrgPermission` mutation.""" -input CreateOrgPermissionInput { +"""All input for the create `OrgAdminGrant` mutation.""" +input CreateOrgAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgPermission` to be created by this mutation.""" - orgPermission: OrgPermissionInput! + """The `OrgAdminGrant` to be created by this mutation.""" + orgAdminGrant: OrgAdminGrantInput! } -"""An input for mutations affecting `OrgPermission`""" -input OrgPermissionInput { +"""An input for mutations affecting `OrgAdminGrant`""" +input OrgAdminGrantInput { id: UUID - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int + """True to grant admin, false to revoke admin""" + isGrant: Boolean - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString + """The member receiving or losing the admin grant""" + actorId: UUID! - """Human-readable description of what this permission allows""" - description: String + """The entity (org or group) this admin grant applies to""" + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `AppAdminGrant` mutation.""" -type CreateAppAdminGrantPayload { +"""The output of our create `OrgMembershipDefault` mutation.""" +type CreateOrgMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppAdminGrant` that was created by this mutation.""" - appAdminGrant: AppAdminGrant + """The `OrgMembershipDefault` that was created by this mutation.""" + orgMembershipDefault: OrgMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge } -"""All input for the create `AppAdminGrant` mutation.""" -input CreateAppAdminGrantInput { +"""All input for the create `OrgMembershipDefault` mutation.""" +input CreateOrgMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppAdminGrant` to be created by this mutation.""" - appAdminGrant: AppAdminGrantInput! + """The `OrgMembershipDefault` to be created by this mutation.""" + orgMembershipDefault: OrgMembershipDefaultInput! } -"""An input for mutations affecting `AppAdminGrant`""" -input AppAdminGrantInput { +"""An input for mutations affecting `OrgMembershipDefault`""" +input OrgMembershipDefaultInput { id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID! - grantorId: UUID createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """References the entity these membership defaults apply to""" + entityId: UUID! } -"""The output of our create `AppOwnerGrant` mutation.""" -type CreateAppOwnerGrantPayload { +"""The output of our create `OrgOwnerGrant` mutation.""" +type CreateOrgOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppOwnerGrant` that was created by this mutation.""" - appOwnerGrant: AppOwnerGrant + """The `OrgOwnerGrant` that was created by this mutation.""" + orgOwnerGrant: OrgOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge } -"""All input for the create `AppOwnerGrant` mutation.""" -input CreateAppOwnerGrantInput { +"""All input for the create `OrgOwnerGrant` mutation.""" +input CreateOrgOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppOwnerGrant` to be created by this mutation.""" - appOwnerGrant: AppOwnerGrantInput! + """The `OrgOwnerGrant` to be created by this mutation.""" + orgOwnerGrant: OrgOwnerGrantInput! } -"""An input for mutations affecting `AppOwnerGrant`""" -input AppOwnerGrantInput { +"""An input for mutations affecting `OrgOwnerGrant`""" +input OrgOwnerGrantInput { id: UUID """True to grant ownership, false to revoke ownership""" @@ -8933,6 +9034,9 @@ input AppOwnerGrantInput { """The member receiving or losing the ownership grant""" actorId: UUID! + + """The entity (org or group) this ownership grant applies to""" + entityId: UUID! grantorId: UUID createdAt: Datetime updatedAt: Datetime @@ -9136,172 +9240,117 @@ input OrgLimitCapInput { max: BigInt } -"""The output of our create `OrgAdminGrant` mutation.""" -type CreateOrgAdminGrantPayload { +"""The output of our create `OrgChartEdge` mutation.""" +type CreateOrgChartEdgePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgAdminGrant` that was created by this mutation.""" - orgAdminGrant: OrgAdminGrant + """The `OrgChartEdge` that was created by this mutation.""" + orgChartEdge: OrgChartEdge """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge } -"""All input for the create `OrgAdminGrant` mutation.""" -input CreateOrgAdminGrantInput { +"""All input for the create `OrgChartEdge` mutation.""" +input CreateOrgChartEdgeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgAdminGrant` to be created by this mutation.""" - orgAdminGrant: OrgAdminGrantInput! + """The `OrgChartEdge` to be created by this mutation.""" + orgChartEdge: OrgChartEdgeInput! } -"""An input for mutations affecting `OrgAdminGrant`""" -input OrgAdminGrantInput { +"""An input for mutations affecting `OrgChartEdge`""" +input OrgChartEdgeInput { id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID! - - """The entity (org or group) this admin grant applies to""" - entityId: UUID! - grantorId: UUID createdAt: Datetime updatedAt: Datetime -} - -"""The output of our create `OrgOwnerGrant` mutation.""" -type CreateOrgOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgOwnerGrant` that was created by this mutation.""" - orgOwnerGrant: OrgOwnerGrant - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Organization this hierarchy edge belongs to""" + entityId: UUID! - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge -} + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! -"""All input for the create `OrgOwnerGrant` mutation.""" -input CreateOrgOwnerGrantInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + User ID of the manager; NULL indicates a top-level position with no direct report """ - clientMutationId: String - - """The `OrgOwnerGrant` to be created by this mutation.""" - orgOwnerGrant: OrgOwnerGrantInput! -} - -"""An input for mutations affecting `OrgOwnerGrant`""" -input OrgOwnerGrantInput { - id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean + parentId: UUID - """The member receiving or losing the ownership grant""" - actorId: UUID! + """Job title or role name for this position in the org chart""" + positionTitle: String - """The entity (org or group) this ownership grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int } -"""The output of our create `MembershipType` mutation.""" -type CreateMembershipTypePayload { +"""The output of our create `AppLimitCreditCodeItem` mutation.""" +type CreateAppLimitCreditCodeItemPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MembershipType` that was created by this mutation.""" - membershipType: MembershipType + """The `AppLimitCreditCodeItem` that was created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge } -"""All input for the create `MembershipType` mutation.""" -input CreateMembershipTypeInput { +"""All input for the create `AppLimitCreditCodeItem` mutation.""" +input CreateAppLimitCreditCodeItemInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `MembershipType` to be created by this mutation.""" - membershipType: MembershipTypeInput! + """The `AppLimitCreditCodeItem` to be created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItemInput! } -"""An input for mutations affecting `MembershipType`""" -input MembershipTypeInput { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! +"""An input for mutations affecting `AppLimitCreditCodeItem`""" +input AppLimitCreditCodeItemInput { + id: UUID - """Description of what this membership type represents""" - description: String! + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID! - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID! - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int + """Number of credits this item grants per redemption""" + amount: BigInt! """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - hasUsersTableEntry: Boolean + creditType: String } """The output of our create `AppLimitDefault` mutation.""" @@ -9402,58 +9451,170 @@ input OrgLimitDefaultInput { softMax: BigInt } -"""The output of our create `AppLimitCreditCodeItem` mutation.""" -type CreateAppLimitCreditCodeItemPayload { +"""The output of our create `AppPermission` mutation.""" +type CreateAppPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCodeItem` that was created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `AppPermission` that was created by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the create `AppLimitCreditCodeItem` mutation.""" -input CreateAppLimitCreditCodeItemInput { +"""All input for the create `AppPermission` mutation.""" +input CreateAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLimitCreditCodeItem` to be created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItemInput! + """The `AppPermission` to be created by this mutation.""" + appPermission: AppPermissionInput! } -"""An input for mutations affecting `AppLimitCreditCodeItem`""" -input AppLimitCreditCodeItemInput { +"""An input for mutations affecting `AppPermission`""" +input AppPermissionInput { id: UUID - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID! + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID! + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int - """Number of credits this item grants per redemption""" - amount: BigInt! + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our create `OrgPermission` mutation.""" +type CreateOrgPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermission` that was created by this mutation.""" + orgPermission: OrgPermission """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Our root query field type. Allows us to run any query from our mutation payload. """ - creditType: String + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the create `OrgPermission` mutation.""" +input CreateOrgPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgPermission` to be created by this mutation.""" + orgPermission: OrgPermissionInput! +} + +"""An input for mutations affecting `OrgPermission`""" +input OrgPermissionInput { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our create `AppLimitCreditCode` mutation.""" +type CreateAppLimitCreditCodePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditCode` that was created by this mutation.""" + appLimitCreditCode: AppLimitCreditCode + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge +} + +"""All input for the create `AppLimitCreditCode` mutation.""" +input CreateAppLimitCreditCodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitCreditCode` to be created by this mutation.""" + appLimitCreditCode: AppLimitCreditCodeInput! +} + +"""An input for mutations affecting `AppLimitCreditCode`""" +input AppLimitCreditCodeInput { + id: UUID + + """Human-readable credit code (case-insensitive, unique)""" + code: String! + + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int + + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime } """The output of our create `AppLimitWarning` mutation.""" @@ -9507,9 +9668,75 @@ input AppLimitWarningInput { thresholdValue: BigInt! """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! +} + +"""The output of our create `OrgChartEdgeGrant` mutation.""" +type CreateOrgChartEdgeGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgChartEdgeGrant` that was created by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge +} + +"""All input for the create `OrgChartEdgeGrant` mutation.""" +input CreateOrgChartEdgeGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgChartEdgeGrant` to be created by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrantInput! +} + +"""An input for mutations affecting `OrgChartEdgeGrant`""" +input OrgChartEdgeGrantInput { + id: UUID + + """Organization this grant applies to""" + entityId: UUID! + + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! + + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID + + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted """ - taskIdentifier: String! + grantorId: UUID + + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean + + """Job title or role name being assigned in this grant""" + positionTitle: String + + """Numeric seniority level being assigned in this grant""" + positionLevel: Int + + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime } """The output of our create `AppLimitCredit` mutation.""" @@ -9569,65 +9796,6 @@ input AppLimitCreditInput { reason: String } -"""The output of our create `OrgLimitWarning` mutation.""" -type CreateOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was created by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge -} - -"""All input for the create `OrgLimitWarning` mutation.""" -input CreateOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitWarning` to be created by this mutation.""" - orgLimitWarning: OrgLimitWarningInput! -} - -"""An input for mutations affecting `OrgLimitWarning`""" -input OrgLimitWarningInput { - id: UUID - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! - - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID -} - """The output of our create `OrgLimitCredit` mutation.""" type CreateOrgLimitCreditPayload { """ @@ -9688,121 +9856,178 @@ input OrgLimitCreditInput { reason: String } -"""The output of our create `OrgChartEdgeGrant` mutation.""" -type CreateOrgChartEdgeGrantPayload { +"""The output of our create `AppClaimedInvite` mutation.""" +type CreateAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgChartEdgeGrant` that was created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant + """The `AppClaimedInvite` that was created by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the create `OrgChartEdgeGrant` mutation.""" -input CreateOrgChartEdgeGrantInput { +"""All input for the create `AppClaimedInvite` mutation.""" +input CreateAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgChartEdgeGrant` to be created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrantInput! + """The `AppClaimedInvite` to be created by this mutation.""" + appClaimedInvite: AppClaimedInviteInput! } -"""An input for mutations affecting `OrgChartEdgeGrant`""" -input OrgChartEdgeGrantInput { +"""An input for mutations affecting `AppClaimedInvite`""" +input AppClaimedInviteInput { id: UUID - """Organization this grant applies to""" - entityId: UUID! + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! + """User ID of the original invitation sender""" + senderId: UUID - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our create `OrgLimitWarning` mutation.""" +type CreateOrgLimitWarningPayload { """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - grantorId: UUID + clientMutationId: String - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean + """The `OrgLimitWarning` that was created by this mutation.""" + orgLimitWarning: OrgLimitWarning - """Job title or role name being assigned in this grant""" - positionTitle: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Numeric seniority level being assigned in this grant""" - positionLevel: Int + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge +} - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime +"""All input for the create `OrgLimitWarning` mutation.""" +input CreateOrgLimitWarningInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitWarning` to be created by this mutation.""" + orgLimitWarning: OrgLimitWarningInput! } -"""The output of our create `AppClaimedInvite` mutation.""" -type CreateAppClaimedInvitePayload { +"""An input for mutations affecting `OrgLimitWarning`""" +input OrgLimitWarningInput { + id: UUID + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! + + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID +} + +"""The output of our create `MembershipType` mutation.""" +type CreateMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppClaimedInvite` that was created by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `MembershipType` that was created by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the create `AppClaimedInvite` mutation.""" -input CreateAppClaimedInviteInput { +"""All input for the create `MembershipType` mutation.""" +input CreateMembershipTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppClaimedInvite` to be created by this mutation.""" - appClaimedInvite: AppClaimedInviteInput! + """The `MembershipType` to be created by this mutation.""" + membershipType: MembershipTypeInput! } -"""An input for mutations affecting `AppClaimedInvite`""" -input AppClaimedInviteInput { - id: UUID +"""An input for mutations affecting `MembershipType`""" +input MembershipTypeInput { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Human-readable name of the membership type""" + name: String! - """User ID of the original invitation sender""" - senderId: UUID + """Description of what this membership type represents""" + description: String! - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String! + + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int + + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean } """The output of our create `AppGrant` mutation.""" @@ -9857,156 +10082,175 @@ input AppGrantInput { updatedAt: Datetime } -"""The output of our create `AppMembershipDefault` mutation.""" -type CreateAppMembershipDefaultPayload { +"""The output of our create `OrgClaimedInvite` mutation.""" +type CreateOrgClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembershipDefault` that was created by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `OrgClaimedInvite` that was created by this mutation.""" + orgClaimedInvite: OrgClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge } -"""All input for the create `AppMembershipDefault` mutation.""" -input CreateAppMembershipDefaultInput { +"""All input for the create `OrgClaimedInvite` mutation.""" +input CreateOrgClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppMembershipDefault` to be created by this mutation.""" - appMembershipDefault: AppMembershipDefaultInput! + """The `OrgClaimedInvite` to be created by this mutation.""" + orgClaimedInvite: OrgClaimedInviteInput! } -"""An input for mutations affecting `AppMembershipDefault`""" -input AppMembershipDefaultInput { +"""An input for mutations affecting `OrgClaimedInvite`""" +input OrgClaimedInviteInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Whether new members are automatically verified upon joining""" - isVerified: Boolean + """User ID of the original invitation sender""" + senderId: UUID + + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! } -"""The output of our create `OrgMembershipDefault` mutation.""" -type CreateOrgMembershipDefaultPayload { +"""The output of our create `OrgGrant` mutation.""" +type CreateOrgGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipDefault` that was created by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `OrgGrant` that was created by this mutation.""" + orgGrant: OrgGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the create `OrgMembershipDefault` mutation.""" -input CreateOrgMembershipDefaultInput { +"""All input for the create `OrgGrant` mutation.""" +input CreateOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgMembershipDefault` to be created by this mutation.""" - orgMembershipDefault: OrgMembershipDefaultInput! + """The `OrgGrant` to be created by this mutation.""" + orgGrant: OrgGrantInput! } -"""An input for mutations affecting `OrgMembershipDefault`""" -input OrgMembershipDefaultInput { +"""An input for mutations affecting `OrgGrant`""" +input OrgGrantInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """References the entity these membership defaults apply to""" + """True to grant the permissions, false to revoke them""" + isGrant: Boolean + + """The member receiving or losing the permission grant""" + actorId: UUID! + + """The entity (org or group) this permission grant applies to""" entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `OrgClaimedInvite` mutation.""" -type CreateOrgClaimedInvitePayload { +"""The output of our create `UsageSnapshot` mutation.""" +type CreateUsageSnapshotPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgClaimedInvite` that was created by this mutation.""" - orgClaimedInvite: OrgClaimedInvite + """The `UsageSnapshot` that was created by this mutation.""" + usageSnapshot: UsageSnapshot """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge + """An edge for our `UsageSnapshot`. May be used by Relay 1.""" + usageSnapshotEdge( + """The method to use when ordering `UsageSnapshot`.""" + orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] + ): UsageSnapshotEdge } -"""All input for the create `OrgClaimedInvite` mutation.""" -input CreateOrgClaimedInviteInput { +"""All input for the create `UsageSnapshot` mutation.""" +input CreateUsageSnapshotInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgClaimedInvite` to be created by this mutation.""" - orgClaimedInvite: OrgClaimedInviteInput! + """The `UsageSnapshot` to be created by this mutation.""" + usageSnapshot: UsageSnapshotInput! } -"""An input for mutations affecting `OrgClaimedInvite`""" -input OrgClaimedInviteInput { - id: UUID +"""An input for mutations affecting `UsageSnapshot`""" +input UsageSnapshotInput { + """ + The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. + """ + databaseId: UUID! - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """ + Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). + """ + metricName: String! - """User ID of the original invitation sender""" - senderId: UUID + """ + The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). + """ + metricValue: BigInt - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! + """ + Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. + """ + dimensions: JSON + + """ + When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. + """ + capturedAt: Datetime + id: UUID } """The output of our create `AppLimitEvent` mutation.""" @@ -10024,6 +10268,12 @@ type CreateAppLimitEventPayload { Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge } """All input for the create `AppLimitEvent` mutation.""" @@ -10040,6 +10290,11 @@ input CreateAppLimitEventInput { """An input for mutations affecting `AppLimitEvent`""" input AppLimitEventInput { + createdAt: Datetime + + """Unique identifier for each limit event""" + id: UUID + """Limit name this event applies to""" name: String @@ -10085,6 +10340,12 @@ type CreateOrgLimitEventPayload { Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge } """All input for the create `OrgLimitEvent` mutation.""" @@ -10101,6 +10362,11 @@ input CreateOrgLimitEventInput { """An input for mutations affecting `OrgLimitEvent`""" input OrgLimitEventInput { + createdAt: Datetime + + """Unique identifier for each limit event""" + id: UUID + """Limit name this event applies to""" name: String @@ -10131,182 +10397,240 @@ input OrgLimitEventInput { reason: String } -"""The output of our create `OrgGrant` mutation.""" -type CreateOrgGrantPayload { +"""The output of our create `OrgMembershipSetting` mutation.""" +type CreateOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgGrant` that was created by this mutation.""" - orgGrant: OrgGrant + """The `OrgMembershipSetting` that was created by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the create `OrgGrant` mutation.""" -input CreateOrgGrantInput { +"""All input for the create `OrgMembershipSetting` mutation.""" +input CreateOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgGrant` to be created by this mutation.""" - orgGrant: OrgGrantInput! + """The `OrgMembershipSetting` to be created by this mutation.""" + orgMembershipSetting: OrgMembershipSettingInput! } -"""An input for mutations affecting `OrgGrant`""" -input OrgGrantInput { +"""An input for mutations affecting `OrgMembershipSetting`""" +input OrgMembershipSettingInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Bitmask of permissions being granted or revoked""" - permissions: BitString + """References the entity these settings apply to""" + entityId: UUID! - """True to grant the permissions, false to revoke them""" - isGrant: Boolean + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean - """The member receiving or losing the permission grant""" - actorId: UUID! + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean - """The entity (org or group) this permission grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + """ + createChildCascadeAdmins: Boolean + + """ + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + """ + createChildCascadeMembers: Boolean + + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean + + """ + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String + + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean + + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String } -"""The output of our create `OrgChartEdge` mutation.""" -type CreateOrgChartEdgePayload { +"""The output of our create `OrgMemberProfile` mutation.""" +type CreateOrgMemberProfilePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgChartEdge` that was created by this mutation.""" - orgChartEdge: OrgChartEdge + """The `OrgMemberProfile` that was created by this mutation.""" + orgMemberProfile: OrgMemberProfile """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge } -"""All input for the create `OrgChartEdge` mutation.""" -input CreateOrgChartEdgeInput { +"""All input for the create `OrgMemberProfile` mutation.""" +input CreateOrgMemberProfileInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgChartEdge` to be created by this mutation.""" - orgChartEdge: OrgChartEdgeInput! + """The `OrgMemberProfile` to be created by this mutation.""" + orgMemberProfile: OrgMemberProfileInput! } -"""An input for mutations affecting `OrgChartEdge`""" -input OrgChartEdgeInput { +"""An input for mutations affecting `OrgMemberProfile`""" +input OrgMemberProfileInput { id: UUID createdAt: Datetime updatedAt: Datetime - """Organization this hierarchy edge belongs to""" + """References the membership this profile belongs to (1:1)""" + membershipId: UUID! + + """References the entity this profile belongs to (used for RLS lookups)""" entityId: UUID! - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID! + + """Display name shown to other entity members""" + displayName: String """ - User ID of the manager; NULL indicates a top-level position with no direct report + Email address visible to other entity members (auto-populated from verified primary email) """ - parentId: UUID + email: String - """Job title or role name for this position in the org chart""" - positionTitle: String + """Job title or role description visible to other entity members""" + title: String - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """Short biography visible to other entity members""" + bio: String + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage } -"""The output of our create `UsageSnapshot` mutation.""" -type CreateUsageSnapshotPayload { +"""The output of our create `AppMembership` mutation.""" +type CreateAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UsageSnapshot` that was created by this mutation.""" - usageSnapshot: UsageSnapshot + """The `AppMembership` that was created by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsageSnapshot`. May be used by Relay 1.""" - usageSnapshotEdge( - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsageSnapshotEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the create `UsageSnapshot` mutation.""" -input CreateUsageSnapshotInput { +"""All input for the create `AppMembership` mutation.""" +input CreateAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `UsageSnapshot` to be created by this mutation.""" - usageSnapshot: UsageSnapshotInput! + """The `AppMembership` to be created by this mutation.""" + appMembership: AppMembershipInput! } -"""An input for mutations affecting `UsageSnapshot`""" -input UsageSnapshotInput { - """ - The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. - """ - databaseId: UUID! +"""An input for mutations affecting `AppMembership`""" +input AppMembershipInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """ - Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). - """ - metricName: String! + """Whether this membership has been approved by an admin""" + isApproved: Boolean + + """Whether this member has been banned from the entity""" + isBanned: Boolean + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean + + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean """ - The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - metricValue: BigInt + isActive: Boolean + + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean """ - Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. + Aggregated permission bitmask combining profile-based and directly granted permissions """ - dimensions: JSON + permissions: BitString """ - When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. + Bitmask of permissions directly granted to this member (not from profiles) """ - capturedAt: Datetime - id: UUID + granted: BitString + + """References the user who holds this membership""" + actorId: UUID! + profileId: UUID } """The output of our create `AppLimit` mutation.""" @@ -10391,165 +10715,93 @@ input AppLimitInput { periodCredits: BigInt } -"""The output of our create `AppInvite` mutation.""" -type CreateAppInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppInvite` that was created by this mutation.""" - appInvite: AppInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge -} - -"""All input for the create `AppInvite` mutation.""" -input CreateAppInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppInvite` to be created by this mutation.""" - appInvite: AppInviteInput! -} - -"""An input for mutations affecting `AppInvite`""" -input AppInviteInput { - id: UUID - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgMembershipSetting` mutation.""" -type CreateOrgMembershipSettingPayload { +"""The output of our create `OrgMembership` mutation.""" +type CreateOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was created by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `OrgMembership` that was created by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the create `OrgMembershipSetting` mutation.""" -input CreateOrgMembershipSettingInput { +"""All input for the create `OrgMembership` mutation.""" +input CreateOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgMembershipSetting` to be created by this mutation.""" - orgMembershipSetting: OrgMembershipSettingInput! + """The `OrgMembership` to be created by this mutation.""" + orgMembership: OrgMembershipInput! } -"""An input for mutations affecting `OrgMembershipSetting`""" -input OrgMembershipSettingInput { +"""An input for mutations affecting `OrgMembership`""" +input OrgMembershipInput { id: UUID createdAt: Datetime updatedAt: Datetime createdBy: UUID updatedBy: UUID - """References the entity these settings apply to""" - entityId: UUID! + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean + """Whether this member has been banned from the entity""" + isBanned: Boolean - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean + """Whether this membership is temporarily disabled""" + isDisabled: Boolean """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - createChildCascadeAdmins: Boolean + isActive: Boolean """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. """ - createChildCascadeMembers: Boolean + isExternal: Boolean - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + Aggregated permission bitmask combining profile-based and directly granted permissions """ - inviteProfileAssignmentMode: String + permissions: BitString """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + Bitmask of permissions directly granted to this member (not from profiles) """ - populateMemberEmail: Boolean + granted: BitString - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String + """References the user who holds this membership""" + actorId: UUID! + + """References the entity (org or group) this membership belongs to""" + entityId: UUID! + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID } """The output of our create `OrgLimitAggregate` mutation.""" @@ -10718,352 +10970,500 @@ input OrgLimitInput { entityId: UUID! } -"""The output of our create `OrgMemberProfile` mutation.""" -type CreateOrgMemberProfilePayload { +"""The output of our create `AppInvite` mutation.""" +type CreateAppInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMemberProfile` that was created by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `AppInvite` that was created by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the create `OrgMemberProfile` mutation.""" -input CreateOrgMemberProfileInput { +"""All input for the create `AppInvite` mutation.""" +input CreateAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgMemberProfile` to be created by this mutation.""" - orgMemberProfile: OrgMemberProfileInput! + """The `AppInvite` to be created by this mutation.""" + appInvite: AppInviteInput! } -"""An input for mutations affecting `OrgMemberProfile`""" -input OrgMemberProfileInput { +"""An input for mutations affecting `AppInvite`""" +input AppInviteInput { id: UUID + + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON + + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime createdAt: Datetime updatedAt: Datetime +} - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! +"""The output of our create `OrgInvite` mutation.""" +type CreateOrgInvitePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! + """The `OrgInvite` that was created by this mutation.""" + orgInvite: OrgInvite - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Display name shown to other entity members""" - displayName: String + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} +"""All input for the create `OrgInvite` mutation.""" +input CreateOrgInviteInput { """ - Email address visible to other entity members (auto-populated from verified primary email) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - email: String + clientMutationId: String - """Job title or role description visible to other entity members""" - title: String + """The `OrgInvite` to be created by this mutation.""" + orgInvite: OrgInviteInput! +} - """Short biography visible to other entity members""" - bio: String +"""An input for mutations affecting `OrgInvite`""" +input OrgInviteInput { + id: UUID - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID + + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON + + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + + """ + Whether the resulting membership should be read-only when this invite is claimed + """ + isReadOnly: Boolean + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! } -"""The output of our create `AppMembership` mutation.""" -type CreateAppMembershipPayload { +"""The output of our update `AppLimitCreditRedemption` mutation.""" +type UpdateAppLimitCreditRedemptionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembership` that was created by this mutation.""" - appMembership: AppMembership + """The `AppLimitCreditRedemption` that was updated by this mutation.""" + appLimitCreditRedemption: AppLimitCreditRedemption """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" + appLimitCreditRedemptionEdge( + """The method to use when ordering `AppLimitCreditRedemption`.""" + orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditRedemptionEdge } -"""All input for the create `AppMembership` mutation.""" -input CreateAppMembershipInput { +"""All input for the `updateAppLimitCreditRedemption` mutation.""" +input UpdateAppLimitCreditRedemptionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! - """The `AppMembership` to be created by this mutation.""" - appMembership: AppMembershipInput! + """ + An object where the defined keys will be set on the `AppLimitCreditRedemption` being updated. + """ + appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch! } -"""An input for mutations affecting `AppMembership`""" -input AppMembershipInput { +""" +Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. +""" +input AppLimitCreditRedemptionPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether this membership has been approved by an admin""" - isApproved: Boolean + """FK to credit_codes — which code is being redeemed""" + creditCodeId: UUID - """Whether this member has been banned from the entity""" - isBanned: Boolean + """Entity receiving the credits (personal org user_id or org entity_id)""" + entityId: UUID +} - """Whether this membership is temporarily disabled""" - isDisabled: Boolean +"""The output of our update `OrgMember` mutation.""" +type UpdateOrgMemberPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean + """The `OrgMember` that was updated by this mutation.""" + orgMember: OrgMember """ - Computed field indicating the membership is approved, verified, not banned, and not disabled + Our root query field type. Allows us to run any query from our mutation payload. """ - isActive: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean + query: Query - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge +} +"""All input for the `updateOrgMember` mutation.""" +input UpdateOrgMemberInput { """ - Aggregated permission bitmask combining profile-based and directly granted permissions + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - permissions: BitString + clientMutationId: String + id: UUID! """ - Bitmask of permissions directly granted to this member (not from profiles) + An object where the defined keys will be set on the `OrgMember` being updated. """ - granted: BitString + orgMemberPatch: OrgMemberPatch! +} - """References the user who holds this membership""" - actorId: UUID! - profileId: UUID +""" +Represents an update to a `OrgMember`. Fields that are set will be updated. +""" +input OrgMemberPatch { + id: UUID + + """Whether this member has admin privileges""" + isAdmin: Boolean + + """References the user who is a member""" + actorId: UUID + + """References the entity (org or group) this member belongs to""" + entityId: UUID } -"""The output of our create `OrgInvite` mutation.""" -type CreateOrgInvitePayload { +"""The output of our update `AppPermissionDefault` mutation.""" +type UpdateAppPermissionDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgInvite` that was created by this mutation.""" - orgInvite: OrgInvite + """The `AppPermissionDefault` that was updated by this mutation.""" + appPermissionDefault: AppPermissionDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge } -"""All input for the create `OrgInvite` mutation.""" -input CreateOrgInviteInput { +"""All input for the `updateAppPermissionDefault` mutation.""" +input UpdateAppPermissionDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! - """The `OrgInvite` to be created by this mutation.""" - orgInvite: OrgInviteInput! + """ + An object where the defined keys will be set on the `AppPermissionDefault` being updated. + """ + appPermissionDefaultPatch: AppPermissionDefaultPatch! } -"""An input for mutations affecting `OrgInvite`""" -input OrgInviteInput { +""" +Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. +""" +input AppPermissionDefaultPatch { id: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """Default permission bitmask applied to new members""" + permissions: BitString +} - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int +"""The output of our update `AppAdminGrant` mutation.""" +type UpdateAppAdminGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """The `AppAdminGrant` that was updated by this mutation.""" + appAdminGrant: AppAdminGrant - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Optional JSON payload of additional invite metadata""" - data: JSON + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge +} +"""All input for the `updateAppAdminGrant` mutation.""" +input UpdateAppAdminGrantInput { """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - profileId: UUID + clientMutationId: String + id: UUID! """ - Whether the resulting membership should be read-only when this invite is claimed + An object where the defined keys will be set on the `AppAdminGrant` being updated. """ - isReadOnly: Boolean + appAdminGrantPatch: AppAdminGrantPatch! +} - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime +""" +Represents an update to a `AppAdminGrant`. Fields that are set will be updated. +""" +input AppAdminGrantPatch { + id: UUID + + """True to grant admin, false to revoke admin""" + isGrant: Boolean + + """The member receiving or losing the admin grant""" + actorId: UUID + grantorId: UUID createdAt: Datetime updatedAt: Datetime - entityId: UUID! } -"""The output of our create `OrgMembership` mutation.""" -type CreateOrgMembershipPayload { +"""The output of our update `AppOwnerGrant` mutation.""" +type UpdateAppOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembership` that was created by this mutation.""" - orgMembership: OrgMembership + """The `AppOwnerGrant` that was updated by this mutation.""" + appOwnerGrant: AppOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge } -"""All input for the create `OrgMembership` mutation.""" -input CreateOrgMembershipInput { +"""All input for the `updateAppOwnerGrant` mutation.""" +input UpdateAppOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! - """The `OrgMembership` to be created by this mutation.""" - orgMembership: OrgMembershipInput! + """ + An object where the defined keys will be set on the `AppOwnerGrant` being updated. + """ + appOwnerGrantPatch: AppOwnerGrantPatch! } -"""An input for mutations affecting `OrgMembership`""" -input OrgMembershipInput { +""" +Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. +""" +input AppOwnerGrantPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - """Whether this member has been banned from the entity""" - isBanned: Boolean + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean - """Whether this membership is temporarily disabled""" - isDisabled: Boolean + """The member receiving or losing the ownership grant""" + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our update `OrgPermissionDefault` mutation.""" +type UpdateOrgPermissionDefaultPayload { """ - Computed field indicating the membership is approved, verified, not banned, and not disabled + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isActive: Boolean + clientMutationId: String + + """The `OrgPermissionDefault` that was updated by this mutation.""" + orgPermissionDefault: OrgPermissionDefault """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + Our root query field type. Allows us to run any query from our mutation payload. """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean + query: Query - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge +} +"""All input for the `updateOrgPermissionDefault` mutation.""" +input UpdateOrgPermissionDefaultInput { """ - Aggregated permission bitmask combining profile-based and directly granted permissions + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - permissions: BitString + clientMutationId: String + id: UUID! """ - Bitmask of permissions directly granted to this member (not from profiles) + An object where the defined keys will be set on the `OrgPermissionDefault` being updated. """ - granted: BitString + orgPermissionDefaultPatch: OrgPermissionDefaultPatch! +} - """References the user who holds this membership""" - actorId: UUID! +""" +Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. +""" +input OrgPermissionDefaultPatch { + id: UUID - """References the entity (org or group) this membership belongs to""" - entityId: UUID! + """Default permission bitmask applied to new members""" + permissions: BitString - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID + """References the entity these default permissions apply to""" + entityId: UUID } -"""The output of our update `AppLimitCreditRedemption` mutation.""" -type UpdateAppLimitCreditRedemptionPayload { +"""The output of our update `AppMembershipDefault` mutation.""" +type UpdateAppMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditRedemption` that was updated by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemption + """The `AppMembershipDefault` that was updated by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" - appLimitCreditRedemptionEdge( - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the `updateAppLimitCreditRedemption` mutation.""" -input UpdateAppLimitCreditRedemptionInput { +"""All input for the `updateAppMembershipDefault` mutation.""" +input UpdateAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11072,49 +11472,53 @@ input UpdateAppLimitCreditRedemptionInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCreditRedemption` being updated. + An object where the defined keys will be set on the `AppMembershipDefault` being updated. """ - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch! + appMembershipDefaultPatch: AppMembershipDefaultPatch! } """ -Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. +Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. """ -input AppLimitCreditRedemptionPatch { +input AppMembershipDefaultPatch { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """FK to credit_codes — which code is being redeemed""" - creditCodeId: UUID + """Whether new members are automatically approved upon joining""" + isApproved: Boolean - """Entity receiving the credits (personal org user_id or org entity_id)""" - entityId: UUID + """Whether new members are automatically verified upon joining""" + isVerified: Boolean } -"""The output of our update `OrgMember` mutation.""" -type UpdateOrgMemberPayload { +"""The output of our update `OrgAdminGrant` mutation.""" +type UpdateOrgAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMember` that was updated by this mutation.""" - orgMember: OrgMember + """The `OrgAdminGrant` that was updated by this mutation.""" + orgAdminGrant: OrgAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMember`. May be used by Relay 1.""" - orgMemberEdge( - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberEdge + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge } -"""All input for the `updateOrgMember` mutation.""" -input UpdateOrgMemberInput { +"""All input for the `updateOrgAdminGrant` mutation.""" +input UpdateOrgAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11123,52 +11527,55 @@ input UpdateOrgMemberInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMember` being updated. + An object where the defined keys will be set on the `OrgAdminGrant` being updated. """ - orgMemberPatch: OrgMemberPatch! + orgAdminGrantPatch: OrgAdminGrantPatch! } """ -Represents an update to a `OrgMember`. Fields that are set will be updated. +Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. """ -input OrgMemberPatch { +input OrgAdminGrantPatch { id: UUID - """Whether this member has admin privileges""" - isAdmin: Boolean + """True to grant admin, false to revoke admin""" + isGrant: Boolean - """References the user who is a member""" + """The member receiving or losing the admin grant""" actorId: UUID - """References the entity (org or group) this member belongs to""" + """The entity (org or group) this admin grant applies to""" entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `AppPermissionDefault` mutation.""" -type UpdateAppPermissionDefaultPayload { +"""The output of our update `OrgMembershipDefault` mutation.""" +type UpdateOrgMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermissionDefault` that was updated by this mutation.""" - appPermissionDefault: AppPermissionDefault + """The `OrgMembershipDefault` that was updated by this mutation.""" + orgMembershipDefault: OrgMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge } -"""All input for the `updateAppPermissionDefault` mutation.""" -input UpdateAppPermissionDefaultInput { +"""All input for the `updateOrgMembershipDefault` mutation.""" +input UpdateOrgMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11177,46 +11584,53 @@ input UpdateAppPermissionDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `AppPermissionDefault` being updated. + An object where the defined keys will be set on the `OrgMembershipDefault` being updated. """ - appPermissionDefaultPatch: AppPermissionDefaultPatch! + orgMembershipDefaultPatch: OrgMembershipDefaultPatch! } """ -Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. +Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. """ -input AppPermissionDefaultPatch { +input OrgMembershipDefaultPatch { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Default permission bitmask applied to new members""" - permissions: BitString + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """References the entity these membership defaults apply to""" + entityId: UUID } -"""The output of our update `AppLimitCreditCode` mutation.""" -type UpdateAppLimitCreditCodePayload { +"""The output of our update `OrgOwnerGrant` mutation.""" +type UpdateOrgOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCode` that was updated by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `OrgOwnerGrant` that was updated by this mutation.""" + orgOwnerGrant: OrgOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge } -"""All input for the `updateAppLimitCreditCode` mutation.""" -input UpdateAppLimitCreditCodeInput { +"""All input for the `updateOrgOwnerGrant` mutation.""" +input UpdateOrgOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11225,57 +11639,55 @@ input UpdateAppLimitCreditCodeInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCreditCode` being updated. + An object where the defined keys will be set on the `OrgOwnerGrant` being updated. """ - appLimitCreditCodePatch: AppLimitCreditCodePatch! + orgOwnerGrantPatch: OrgOwnerGrantPatch! } """ -Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. +Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. """ -input AppLimitCreditCodePatch { +input OrgOwnerGrantPatch { id: UUID - """Human-readable credit code (case-insensitive, unique)""" - code: String - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int + """The member receiving or losing the ownership grant""" + actorId: UUID - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime + """The entity (org or group) this ownership grant applies to""" + entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `OrgPermissionDefault` mutation.""" -type UpdateOrgPermissionDefaultPayload { +"""The output of our update `AppLimitCapsDefault` mutation.""" +type UpdateAppLimitCapsDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermissionDefault` that was updated by this mutation.""" - orgPermissionDefault: OrgPermissionDefault + """The `AppLimitCapsDefault` that was updated by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge + """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" + appLimitCapsDefaultEdge( + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultEdge } -"""All input for the `updateOrgPermissionDefault` mutation.""" -input UpdateOrgPermissionDefaultInput { +"""All input for the `updateAppLimitCapsDefault` mutation.""" +input UpdateAppLimitCapsDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11284,49 +11696,53 @@ input UpdateOrgPermissionDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `OrgPermissionDefault` being updated. + An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. """ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch! + appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch! } """ -Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. +Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. """ -input OrgPermissionDefaultPatch { +input AppLimitCapsDefaultPatch { id: UUID - """Default permission bitmask applied to new members""" - permissions: BitString + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String - """References the entity these default permissions apply to""" - entityId: UUID + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt } -"""The output of our update `AppPermission` mutation.""" -type UpdateAppPermissionPayload { +"""The output of our update `OrgLimitCapsDefault` mutation.""" +type UpdateOrgLimitCapsDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermission` that was updated by this mutation.""" - appPermission: AppPermission + """The `OrgLimitCapsDefault` that was updated by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" + orgLimitCapsDefaultEdge( + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultEdge } -"""All input for the `updateAppPermission` mutation.""" -input UpdateAppPermissionInput { +"""All input for the `updateOrgLimitCapsDefault` mutation.""" +input UpdateOrgLimitCapsDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11335,59 +11751,53 @@ input UpdateAppPermissionInput { id: UUID! """ - An object where the defined keys will be set on the `AppPermission` being updated. + An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. """ - appPermissionPatch: AppPermissionPatch! + orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch! } """ -Represents an update to a `AppPermission`. Fields that are set will be updated. +Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. """ -input AppPermissionPatch { +input OrgLimitCapsDefaultPatch { id: UUID - """Human-readable permission name (e.g. read, write, manage)""" - name: String - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) """ - bitnum: Int + name: String """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String + max: BigInt } -"""The output of our update `OrgPermission` mutation.""" -type UpdateOrgPermissionPayload { +"""The output of our update `AppLimitCap` mutation.""" +type UpdateAppLimitCapPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermission` that was updated by this mutation.""" - orgPermission: OrgPermission + """The `AppLimitCap` that was updated by this mutation.""" + appLimitCap: AppLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge } -"""All input for the `updateOrgPermission` mutation.""" -input UpdateOrgPermissionInput { +"""All input for the `updateAppLimitCap` mutation.""" +input UpdateAppLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11396,59 +11806,52 @@ input UpdateOrgPermissionInput { id: UUID! """ - An object where the defined keys will be set on the `OrgPermission` being updated. + An object where the defined keys will be set on the `AppLimitCap` being updated. """ - orgPermissionPatch: OrgPermissionPatch! + appLimitCapPatch: AppLimitCapPatch! } """ -Represents an update to a `OrgPermission`. Fields that are set will be updated. +Represents an update to a `AppLimitCap`. Fields that are set will be updated. """ -input OrgPermissionPatch { +input AppLimitCapPatch { id: UUID - """Human-readable permission name (e.g. read, write, manage)""" + """Name identifier of the cap being overridden""" name: String - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString + """Entity this cap override applies to""" + entityId: UUID - """Human-readable description of what this permission allows""" - description: String + """Override cap value for this entity""" + max: BigInt } -"""The output of our update `AppAdminGrant` mutation.""" -type UpdateAppAdminGrantPayload { +"""The output of our update `OrgLimitCap` mutation.""" +type UpdateOrgLimitCapPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppAdminGrant` that was updated by this mutation.""" - appAdminGrant: AppAdminGrant + """The `OrgLimitCap` that was updated by this mutation.""" + orgLimitCap: OrgLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge } -"""All input for the `updateAppAdminGrant` mutation.""" -input UpdateAppAdminGrantInput { +"""All input for the `updateOrgLimitCap` mutation.""" +input UpdateOrgLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11457,52 +11860,52 @@ input UpdateAppAdminGrantInput { id: UUID! """ - An object where the defined keys will be set on the `AppAdminGrant` being updated. + An object where the defined keys will be set on the `OrgLimitCap` being updated. """ - appAdminGrantPatch: AppAdminGrantPatch! + orgLimitCapPatch: OrgLimitCapPatch! } """ -Represents an update to a `AppAdminGrant`. Fields that are set will be updated. +Represents an update to a `OrgLimitCap`. Fields that are set will be updated. """ -input AppAdminGrantPatch { +input OrgLimitCapPatch { id: UUID - """True to grant admin, false to revoke admin""" - isGrant: Boolean + """Name identifier of the cap being overridden""" + name: String - """The member receiving or losing the admin grant""" - actorId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """Entity this cap override applies to""" + entityId: UUID + + """Override cap value for this entity""" + max: BigInt } -"""The output of our update `AppOwnerGrant` mutation.""" -type UpdateAppOwnerGrantPayload { +"""The output of our update `OrgChartEdge` mutation.""" +type UpdateOrgChartEdgePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppOwnerGrant` that was updated by this mutation.""" - appOwnerGrant: AppOwnerGrant + """The `OrgChartEdge` that was updated by this mutation.""" + orgChartEdge: OrgChartEdge """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge } -"""All input for the `updateAppOwnerGrant` mutation.""" -input UpdateAppOwnerGrantInput { +"""All input for the `updateOrgChartEdge` mutation.""" +input UpdateOrgChartEdgeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11511,52 +11914,62 @@ input UpdateAppOwnerGrantInput { id: UUID! """ - An object where the defined keys will be set on the `AppOwnerGrant` being updated. + An object where the defined keys will be set on the `OrgChartEdge` being updated. """ - appOwnerGrantPatch: AppOwnerGrantPatch! + orgChartEdgePatch: OrgChartEdgePatch! } """ -Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. +Represents an update to a `OrgChartEdge`. Fields that are set will be updated. """ -input AppOwnerGrantPatch { +input OrgChartEdgePatch { id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean - - """The member receiving or losing the ownership grant""" - actorId: UUID - grantorId: UUID createdAt: Datetime updatedAt: Datetime + + """Organization this hierarchy edge belongs to""" + entityId: UUID + + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID + + """ + User ID of the manager; NULL indicates a top-level position with no direct report + """ + parentId: UUID + + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int } -"""The output of our update `AppLimitCapsDefault` mutation.""" -type UpdateAppLimitCapsDefaultPayload { +"""The output of our update `AppLimitCreditCodeItem` mutation.""" +type UpdateAppLimitCreditCodeItemPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCapsDefault` that was updated by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault + """The `AppLimitCreditCodeItem` that was updated by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge } -"""All input for the `updateAppLimitCapsDefault` mutation.""" -input UpdateAppLimitCapsDefaultInput { +"""All input for the `updateAppLimitCreditCodeItem` mutation.""" +input UpdateAppLimitCreditCodeItemInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11565,53 +11978,57 @@ input UpdateAppLimitCapsDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. + An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. """ - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch! + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! } """ -Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. +Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. """ -input AppLimitCapsDefaultPatch { +input AppLimitCreditCodeItemPatch { id: UUID - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID + + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID + + """Number of credits this item grants per redemption""" + amount: BigInt """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - max: BigInt + creditType: String } -"""The output of our update `OrgLimitCapsDefault` mutation.""" -type UpdateOrgLimitCapsDefaultPayload { +"""The output of our update `AppLimitDefault` mutation.""" +type UpdateAppLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitCapsDefault` that was updated by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault + """The `AppLimitDefault` that was updated by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge } -"""All input for the `updateOrgLimitCapsDefault` mutation.""" -input UpdateOrgLimitCapsDefaultInput { +"""All input for the `updateAppLimitDefault` mutation.""" +input UpdateAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11620,53 +12037,52 @@ input UpdateOrgLimitCapsDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. + An object where the defined keys will be set on the `AppLimitDefault` being updated. """ - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch! + appLimitDefaultPatch: AppLimitDefaultPatch! } """ -Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. +Represents an update to a `AppLimitDefault`. Fields that are set will be updated. """ -input OrgLimitCapsDefaultPatch { +input AppLimitDefaultPatch { id: UUID - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ + """Name identifier of the limit this default applies to""" name: String - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ + """Default maximum usage allowed for this limit""" max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""The output of our update `AppLimitCap` mutation.""" -type UpdateAppLimitCapPayload { +"""The output of our update `OrgLimitDefault` mutation.""" +type UpdateOrgLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCap` that was updated by this mutation.""" - appLimitCap: AppLimitCap + """The `OrgLimitDefault` that was updated by this mutation.""" + orgLimitDefault: OrgLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the `updateAppLimitCap` mutation.""" -input UpdateAppLimitCapInput { +"""All input for the `updateOrgLimitDefault` mutation.""" +input UpdateOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11675,52 +12091,52 @@ input UpdateAppLimitCapInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCap` being updated. + An object where the defined keys will be set on the `OrgLimitDefault` being updated. """ - appLimitCapPatch: AppLimitCapPatch! + orgLimitDefaultPatch: OrgLimitDefaultPatch! } """ -Represents an update to a `AppLimitCap`. Fields that are set will be updated. +Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. """ -input AppLimitCapPatch { +input OrgLimitDefaultPatch { id: UUID - """Name identifier of the cap being overridden""" - name: String - - """Entity this cap override applies to""" - entityId: UUID + """Name identifier of the limit this default applies to""" + name: String - """Override cap value for this entity""" + """Default maximum usage allowed for this limit""" max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""The output of our update `OrgLimitCap` mutation.""" -type UpdateOrgLimitCapPayload { +"""The output of our update `AppPermission` mutation.""" +type UpdateAppPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitCap` that was updated by this mutation.""" - orgLimitCap: OrgLimitCap + """The `AppPermission` that was updated by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `updateOrgLimitCap` mutation.""" -input UpdateOrgLimitCapInput { +"""All input for the `updateAppPermission` mutation.""" +input UpdateAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11729,52 +12145,59 @@ input UpdateOrgLimitCapInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitCap` being updated. + An object where the defined keys will be set on the `AppPermission` being updated. """ - orgLimitCapPatch: OrgLimitCapPatch! + appPermissionPatch: AppPermissionPatch! } """ -Represents an update to a `OrgLimitCap`. Fields that are set will be updated. +Represents an update to a `AppPermission`. Fields that are set will be updated. """ -input OrgLimitCapPatch { +input AppPermissionPatch { id: UUID - """Name identifier of the cap being overridden""" + """Human-readable permission name (e.g. read, write, manage)""" name: String - """Entity this cap override applies to""" - entityId: UUID + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int - """Override cap value for this entity""" - max: BigInt + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String } -"""The output of our update `OrgAdminGrant` mutation.""" -type UpdateOrgAdminGrantPayload { +"""The output of our update `OrgPermission` mutation.""" +type UpdateOrgPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgAdminGrant` that was updated by this mutation.""" - orgAdminGrant: OrgAdminGrant + """The `OrgPermission` that was updated by this mutation.""" + orgPermission: OrgPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge } -"""All input for the `updateOrgAdminGrant` mutation.""" -input UpdateOrgAdminGrantInput { +"""All input for the `updateOrgPermission` mutation.""" +input UpdateOrgPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11783,55 +12206,59 @@ input UpdateOrgAdminGrantInput { id: UUID! """ - An object where the defined keys will be set on the `OrgAdminGrant` being updated. + An object where the defined keys will be set on the `OrgPermission` being updated. """ - orgAdminGrantPatch: OrgAdminGrantPatch! + orgPermissionPatch: OrgPermissionPatch! } """ -Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. +Represents an update to a `OrgPermission`. Fields that are set will be updated. """ -input OrgAdminGrantPatch { +input OrgPermissionPatch { id: UUID - """True to grant admin, false to revoke admin""" - isGrant: Boolean + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """The member receiving or losing the admin grant""" - actorId: UUID + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int - """The entity (org or group) this admin grant applies to""" - entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String } -"""The output of our update `OrgOwnerGrant` mutation.""" -type UpdateOrgOwnerGrantPayload { +"""The output of our update `AppLimitCreditCode` mutation.""" +type UpdateAppLimitCreditCodePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgOwnerGrant` that was updated by this mutation.""" - orgOwnerGrant: OrgOwnerGrant + """The `AppLimitCreditCode` that was updated by this mutation.""" + appLimitCreditCode: AppLimitCreditCode """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge } -"""All input for the `updateOrgOwnerGrant` mutation.""" -input UpdateOrgOwnerGrantInput { +"""All input for the `updateAppLimitCreditCode` mutation.""" +input UpdateAppLimitCreditCodeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11840,128 +12267,118 @@ input UpdateOrgOwnerGrantInput { id: UUID! """ - An object where the defined keys will be set on the `OrgOwnerGrant` being updated. + An object where the defined keys will be set on the `AppLimitCreditCode` being updated. """ - orgOwnerGrantPatch: OrgOwnerGrantPatch! + appLimitCreditCodePatch: AppLimitCreditCodePatch! } """ -Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. +Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. """ -input OrgOwnerGrantPatch { +input AppLimitCreditCodePatch { id: UUID - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean + """Human-readable credit code (case-insensitive, unique)""" + code: String - """The member receiving or losing the ownership grant""" - actorId: UUID + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int - """The entity (org or group) this ownership grant applies to""" - entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime } -"""The output of our update `MembershipType` mutation.""" -type UpdateMembershipTypePayload { +"""The output of our update `AppLimitWarning` mutation.""" +type UpdateAppLimitWarningPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MembershipType` that was updated by this mutation.""" - membershipType: MembershipType + """The `AppLimitWarning` that was updated by this mutation.""" + appLimitWarning: AppLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge } -"""All input for the `updateMembershipType` mutation.""" -input UpdateMembershipTypeInput { +"""All input for the `updateAppLimitWarning` mutation.""" +input UpdateAppLimitWarningInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """ - An object where the defined keys will be set on the `MembershipType` being updated. + An object where the defined keys will be set on the `AppLimitWarning` being updated. """ - membershipTypePatch: MembershipTypePatch! + appLimitWarningPatch: AppLimitWarningPatch! } """ -Represents an update to a `MembershipType`. Fields that are set will be updated. +Represents an update to a `AppLimitWarning`. Fields that are set will be updated. """ -input MembershipTypePatch { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int +input AppLimitWarningPatch { + id: UUID - """Human-readable name of the membership type""" + """Limit name this warning applies to (must match a default_limits entry)""" name: String - """Description of what this membership type represents""" - description: String - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type """ - parentMembershipType: Int + thresholdValue: BigInt """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) """ - hasUsersTableEntry: Boolean + taskIdentifier: String } -"""The output of our update `AppLimitDefault` mutation.""" -type UpdateAppLimitDefaultPayload { +"""The output of our update `OrgChartEdgeGrant` mutation.""" +type UpdateOrgChartEdgeGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was updated by this mutation.""" - appLimitDefault: AppLimitDefault + """The `OrgChartEdgeGrant` that was updated by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge } -"""All input for the `updateAppLimitDefault` mutation.""" -input UpdateAppLimitDefaultInput { +"""All input for the `updateOrgChartEdgeGrant` mutation.""" +input UpdateOrgChartEdgeGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11970,52 +12387,69 @@ input UpdateAppLimitDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitDefault` being updated. + An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. + """ + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch! +} + +""" +Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. +""" +input OrgChartEdgeGrantPatch { + id: UUID + + """Organization this grant applies to""" + entityId: UUID + + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID + + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID + + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted """ - appLimitDefaultPatch: AppLimitDefaultPatch! -} + grantorId: UUID -""" -Represents an update to a `AppLimitDefault`. Fields that are set will be updated. -""" -input AppLimitDefaultPatch { - id: UUID + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean - """Name identifier of the limit this default applies to""" - name: String + """Job title or role name being assigned in this grant""" + positionTitle: String - """Default maximum usage allowed for this limit""" - max: BigInt + """Numeric seniority level being assigned in this grant""" + positionLevel: Int - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime } -"""The output of our update `OrgLimitDefault` mutation.""" -type UpdateOrgLimitDefaultPayload { +"""The output of our update `AppLimitCredit` mutation.""" +type UpdateAppLimitCreditPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was updated by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `AppLimitCredit` that was updated by this mutation.""" + appLimitCredit: AppLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge } -"""All input for the `updateOrgLimitDefault` mutation.""" -input UpdateOrgLimitDefaultInput { +"""All input for the `updateAppLimitCredit` mutation.""" +input UpdateAppLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12024,52 +12458,60 @@ input UpdateOrgLimitDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitDefault` being updated. + An object where the defined keys will be set on the `AppLimitCredit` being updated. """ - orgLimitDefaultPatch: OrgLimitDefaultPatch! + appLimitCreditPatch: AppLimitCreditPatch! } """ -Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. +Represents an update to a `AppLimitCredit`. Fields that are set will be updated. """ -input OrgLimitDefaultPatch { +input AppLimitCreditPatch { id: UUID - """Name identifier of the limit this default applies to""" - name: String + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID - """Default maximum usage allowed for this limit""" - max: BigInt + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } -"""The output of our update `AppLimitCreditCodeItem` mutation.""" -type UpdateAppLimitCreditCodeItemPayload { +"""The output of our update `OrgLimitCredit` mutation.""" +type UpdateOrgLimitCreditPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCodeItem` that was updated by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `OrgLimitCredit` that was updated by this mutation.""" + orgLimitCredit: OrgLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" + orgLimitCreditEdge( + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCreditEdge } -"""All input for the `updateAppLimitCreditCodeItem` mutation.""" -input UpdateAppLimitCreditCodeItemInput { +"""All input for the `updateOrgLimitCredit` mutation.""" +input UpdateOrgLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12078,57 +12520,63 @@ input UpdateAppLimitCreditCodeItemInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. + An object where the defined keys will be set on the `OrgLimitCredit` being updated. """ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! + orgLimitCreditPatch: OrgLimitCreditPatch! } """ -Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. +Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. """ -input AppLimitCreditCodeItemPatch { +input OrgLimitCreditPatch { id: UUID - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID - - """FK to default_limits — which limit this item grants credits for""" + """FK to default_limits — which limit definition this credit applies to""" defaultLimitId: UUID - """Number of credits this item grants per redemption""" + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" amount: BigInt """ Credit durability: permanent (survives window reset) or period (resets on window expiry) """ creditType: String + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } -"""The output of our update `AppLimitWarning` mutation.""" -type UpdateAppLimitWarningPayload { +"""The output of our update `AppClaimedInvite` mutation.""" +type UpdateAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitWarning` that was updated by this mutation.""" - appLimitWarning: AppLimitWarning + """The `AppClaimedInvite` that was updated by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `updateAppLimitWarning` mutation.""" -input UpdateAppLimitWarningInput { +"""All input for the `updateAppClaimedInvite` mutation.""" +input UpdateAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12137,59 +12585,54 @@ input UpdateAppLimitWarningInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitWarning` being updated. + An object where the defined keys will be set on the `AppClaimedInvite` being updated. """ - appLimitWarningPatch: AppLimitWarningPatch! + appClaimedInvitePatch: AppClaimedInvitePatch! } """ -Represents an update to a `AppLimitWarning`. Fields that are set will be updated. +Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. """ -input AppLimitWarningPatch { +input AppClaimedInvitePatch { id: UUID - """Limit name this warning applies to (must match a default_limits entry)""" - name: String - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt + """User ID of the original invitation sender""" + senderId: UUID - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `AppLimitCredit` mutation.""" -type UpdateAppLimitCreditPayload { +"""The output of our update `OrgLimitWarning` mutation.""" +type UpdateOrgLimitWarningPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCredit` that was updated by this mutation.""" - appLimitCredit: AppLimitCredit + """The `OrgLimitWarning` that was updated by this mutation.""" + orgLimitWarning: OrgLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge } -"""All input for the `updateAppLimitCredit` mutation.""" -input UpdateAppLimitCreditInput { +"""All input for the `updateOrgLimitWarning` mutation.""" +input UpdateOrgLimitWarningInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12198,124 +12641,135 @@ input UpdateAppLimitCreditInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCredit` being updated. + An object where the defined keys will be set on the `OrgLimitWarning` being updated. """ - appLimitCreditPatch: AppLimitCreditPatch! + orgLimitWarningPatch: OrgLimitWarningPatch! } """ -Represents an update to a `AppLimitCredit`. Fields that are set will be updated. +Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. """ -input AppLimitCreditPatch { +input OrgLimitWarningPatch { id: UUID - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID + """Limit name this warning applies to (must match a default_limits entry)""" + name: String - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) """ - creditType: String + taskIdentifier: String - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID } -"""The output of our update `OrgLimitWarning` mutation.""" -type UpdateOrgLimitWarningPayload { +"""The output of our update `MembershipType` mutation.""" +type UpdateMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitWarning` that was updated by this mutation.""" - orgLimitWarning: OrgLimitWarning + """The `MembershipType` that was updated by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `updateOrgLimitWarning` mutation.""" -input UpdateOrgLimitWarningInput { +"""All input for the `updateMembershipType` mutation.""" +input UpdateMembershipTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! """ - An object where the defined keys will be set on the `OrgLimitWarning` being updated. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - orgLimitWarningPatch: OrgLimitWarningPatch! + id: Int! + + """ + An object where the defined keys will be set on the `MembershipType` being updated. + """ + membershipTypePatch: MembershipTypePatch! } """ -Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. +Represents an update to a `MembershipType`. Fields that are set will be updated. """ -input OrgLimitWarningPatch { - id: UUID +input MembershipTypePatch { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int - """Limit name this warning applies to (must match a default_limits entry)""" + """Human-readable name of the membership type""" name: String - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String + """Description of what this membership type represents""" + description: String """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + Short prefix used to namespace tables and functions for this membership scope """ - thresholdValue: BigInt + prefix: String """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) """ - taskIdentifier: String + parentMembershipType: Int - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean } -"""The output of our update `OrgLimitCredit` mutation.""" -type UpdateOrgLimitCreditPayload { +"""The output of our update `AppGrant` mutation.""" +type UpdateAppGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitCredit` that was updated by this mutation.""" - orgLimitCredit: OrgLimitCredit + """The `AppGrant` that was updated by this mutation.""" + appGrant: AppGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge } -"""All input for the `updateOrgLimitCredit` mutation.""" -input UpdateOrgLimitCreditInput { +"""All input for the `updateAppGrant` mutation.""" +input UpdateAppGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12324,63 +12778,55 @@ input UpdateOrgLimitCreditInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitCredit` being updated. + An object where the defined keys will be set on the `AppGrant` being updated. """ - orgLimitCreditPatch: OrgLimitCreditPatch! + appGrantPatch: AppGrantPatch! } """ -Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. +Represents an update to a `AppGrant`. Fields that are set will be updated. """ -input OrgLimitCreditPatch { +input AppGrantPatch { id: UUID - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """The member receiving or losing the permission grant""" + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `OrgChartEdgeGrant` mutation.""" -type UpdateOrgChartEdgeGrantPayload { +"""The output of our update `OrgClaimedInvite` mutation.""" +type UpdateOrgClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgChartEdgeGrant` that was updated by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant + """The `OrgClaimedInvite` that was updated by this mutation.""" + orgClaimedInvite: OrgClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge } -"""All input for the `updateOrgChartEdgeGrant` mutation.""" -input UpdateOrgChartEdgeGrantInput { +"""All input for the `updateOrgClaimedInvite` mutation.""" +input UpdateOrgClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12389,69 +12835,55 @@ input UpdateOrgChartEdgeGrantInput { id: UUID! """ - An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. + An object where the defined keys will be set on the `OrgClaimedInvite` being updated. """ - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch! + orgClaimedInvitePatch: OrgClaimedInvitePatch! } """ -Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. +Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. """ -input OrgChartEdgeGrantPatch { +input OrgClaimedInvitePatch { id: UUID - """Organization this grant applies to""" - entityId: UUID - - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID - - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID - - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID - - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean - - """Job title or role name being assigned in this grant""" - positionTitle: String + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Numeric seniority level being assigned in this grant""" - positionLevel: Int + """User ID of the original invitation sender""" + senderId: UUID - """Timestamp when this grant or revocation was recorded""" + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID createdAt: Datetime + updatedAt: Datetime + entityId: UUID } -"""The output of our update `AppClaimedInvite` mutation.""" -type UpdateAppClaimedInvitePayload { +"""The output of our update `OrgGrant` mutation.""" +type UpdateOrgGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppClaimedInvite` that was updated by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `OrgGrant` that was updated by this mutation.""" + orgGrant: OrgGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the `updateAppClaimedInvite` mutation.""" -input UpdateAppClaimedInviteInput { +"""All input for the `updateOrgGrant` mutation.""" +input UpdateOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12460,54 +12892,58 @@ input UpdateAppClaimedInviteInput { id: UUID! """ - An object where the defined keys will be set on the `AppClaimedInvite` being updated. + An object where the defined keys will be set on the `OrgGrant` being updated. """ - appClaimedInvitePatch: AppClaimedInvitePatch! + orgGrantPatch: OrgGrantPatch! } """ -Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. +Represents an update to a `OrgGrant`. Fields that are set will be updated. """ -input AppClaimedInvitePatch { +input OrgGrantPatch { id: UUID - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """User ID of the original invitation sender""" - senderId: UUID + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID + """The member receiving or losing the permission grant""" + actorId: UUID + + """The entity (org or group) this permission grant applies to""" + entityId: UUID + grantorId: UUID createdAt: Datetime updatedAt: Datetime } -"""The output of our update `AppGrant` mutation.""" -type UpdateAppGrantPayload { +"""The output of our update `UsageSnapshot` mutation.""" +type UpdateUsageSnapshotPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppGrant` that was updated by this mutation.""" - appGrant: AppGrant + """The `UsageSnapshot` that was updated by this mutation.""" + usageSnapshot: UsageSnapshot """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppGrant`. May be used by Relay 1.""" - appGrantEdge( - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppGrantEdge + """An edge for our `UsageSnapshot`. May be used by Relay 1.""" + usageSnapshotEdge( + """The method to use when ordering `UsageSnapshot`.""" + orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] + ): UsageSnapshotEdge } -"""All input for the `updateAppGrant` mutation.""" -input UpdateAppGrantInput { +"""All input for the `updateUsageSnapshot` mutation.""" +input UpdateUsageSnapshotInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12516,165 +12952,227 @@ input UpdateAppGrantInput { id: UUID! """ - An object where the defined keys will be set on the `AppGrant` being updated. + An object where the defined keys will be set on the `UsageSnapshot` being updated. """ - appGrantPatch: AppGrantPatch! + usageSnapshotPatch: UsageSnapshotPatch! } """ -Represents an update to a `AppGrant`. Fields that are set will be updated. +Represents an update to a `UsageSnapshot`. Fields that are set will be updated. """ -input AppGrantPatch { - id: UUID +input UsageSnapshotPatch { + """ + The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. + """ + databaseId: UUID - """Bitmask of permissions being granted or revoked""" - permissions: BitString + """ + Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). + """ + metricName: String - """True to grant the permissions, false to revoke them""" - isGrant: Boolean + """ + The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). + """ + metricValue: BigInt - """The member receiving or losing the permission grant""" - actorId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. + """ + dimensions: JSON + + """ + When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. + """ + capturedAt: Datetime + id: UUID } -"""The output of our update `AppMembershipDefault` mutation.""" -type UpdateAppMembershipDefaultPayload { +"""The output of our update `AppLimitEvent` mutation.""" +type UpdateAppLimitEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembershipDefault` that was updated by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `AppLimitEvent` that was updated by this mutation.""" + appLimitEvent: AppLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge } -"""All input for the `updateAppMembershipDefault` mutation.""" -input UpdateAppMembershipDefaultInput { +"""All input for the `updateAppLimitEvent` mutation.""" +input UpdateAppLimitEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! """ - An object where the defined keys will be set on the `AppMembershipDefault` being updated. + An object where the defined keys will be set on the `AppLimitEvent` being updated. """ - appMembershipDefaultPatch: AppMembershipDefaultPatch! + appLimitEventPatch: AppLimitEventPatch! } """ -Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. +Represents an update to a `AppLimitEvent`. Fields that are set will be updated. """ -input AppMembershipDefaultPatch { - id: UUID +input AppLimitEventPatch { createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Unique identifier for each limit event""" + id: UUID - """Whether new members are automatically verified upon joining""" - isVerified: Boolean + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } -"""The output of our update `OrgMembershipDefault` mutation.""" -type UpdateOrgMembershipDefaultPayload { +"""The output of our update `OrgLimitEvent` mutation.""" +type UpdateOrgLimitEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipDefault` that was updated by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `OrgLimitEvent` that was updated by this mutation.""" + orgLimitEvent: OrgLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge } -"""All input for the `updateOrgMembershipDefault` mutation.""" -input UpdateOrgMembershipDefaultInput { +"""All input for the `updateOrgLimitEvent` mutation.""" +input UpdateOrgLimitEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! """ - An object where the defined keys will be set on the `OrgMembershipDefault` being updated. + An object where the defined keys will be set on the `OrgLimitEvent` being updated. """ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch! + orgLimitEventPatch: OrgLimitEventPatch! } """ -Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. +Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. """ -input OrgMembershipDefaultPatch { - id: UUID +input OrgLimitEventPatch { createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Unique identifier for each limit event""" + id: UUID - """References the entity these membership defaults apply to""" + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } -"""The output of our update `OrgClaimedInvite` mutation.""" -type UpdateOrgClaimedInvitePayload { +"""The output of our update `OrgMembershipSetting` mutation.""" +type UpdateOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgClaimedInvite` that was updated by this mutation.""" - orgClaimedInvite: OrgClaimedInvite + """The `OrgMembershipSetting` that was updated by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the `updateOrgClaimedInvite` mutation.""" -input UpdateOrgClaimedInviteInput { +"""All input for the `updateOrgMembershipSetting` mutation.""" +input UpdateOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12683,115 +13181,90 @@ input UpdateOrgClaimedInviteInput { id: UUID! """ - An object where the defined keys will be set on the `OrgClaimedInvite` being updated. + An object where the defined keys will be set on the `OrgMembershipSetting` being updated. """ - orgClaimedInvitePatch: OrgClaimedInvitePatch! + orgMembershipSettingPatch: OrgMembershipSettingPatch! } """ -Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. +Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. """ -input OrgClaimedInvitePatch { +input OrgMembershipSettingPatch { id: UUID - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """References the entity these settings apply to""" entityId: UUID -} -"""The output of our update `OrgGrant` mutation.""" -type UpdateOrgGrantPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + When a member is deleted, whether to cascade-remove their descendant-entity memberships """ - clientMutationId: String - - """The `OrgGrant` that was updated by this mutation.""" - orgGrant: OrgGrant + deleteMemberCascadeChildren: Boolean """ - Our root query field type. Allows us to run any query from our mutation payload. + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners """ - query: Query - - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge -} + createChildCascadeOwners: Boolean -"""All input for the `updateOrgGrant` mutation.""" -input UpdateOrgGrantInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins """ - clientMutationId: String - id: UUID! + createChildCascadeAdmins: Boolean """ - An object where the defined keys will be set on the `OrgGrant` being updated. + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members """ - orgGrantPatch: OrgGrantPatch! -} - -""" -Represents an update to a `OrgGrant`. Fields that are set will be updated. -""" -input OrgGrantPatch { - id: UUID + createChildCascadeMembers: Boolean - """Bitmask of permissions being granted or revoked""" - permissions: BitString + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean - """True to grant the permissions, false to revoke them""" - isGrant: Boolean + """ + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String - """The member receiving or losing the permission grant""" - actorId: UUID + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean - """The entity (org or group) this permission grant applies to""" - entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String } -"""The output of our update `OrgChartEdge` mutation.""" -type UpdateOrgChartEdgePayload { +"""The output of our update `OrgMemberProfile` mutation.""" +type UpdateOrgMemberProfilePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgChartEdge` that was updated by this mutation.""" - orgChartEdge: OrgChartEdge + """The `OrgMemberProfile` that was updated by this mutation.""" + orgMemberProfile: OrgMemberProfile """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge } -"""All input for the `updateOrgChartEdge` mutation.""" -input UpdateOrgChartEdgeInput { +"""All input for the `updateOrgMemberProfile` mutation.""" +input UpdateOrgMemberProfileInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12800,62 +13273,77 @@ input UpdateOrgChartEdgeInput { id: UUID! """ - An object where the defined keys will be set on the `OrgChartEdge` being updated. + An object where the defined keys will be set on the `OrgMemberProfile` being updated. """ - orgChartEdgePatch: OrgChartEdgePatch! + orgMemberProfilePatch: OrgMemberProfilePatch! } """ -Represents an update to a `OrgChartEdge`. Fields that are set will be updated. +Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. """ -input OrgChartEdgePatch { +input OrgMemberProfilePatch { id: UUID createdAt: Datetime updatedAt: Datetime - """Organization this hierarchy edge belongs to""" + """References the membership this profile belongs to (1:1)""" + membershipId: UUID + + """References the entity this profile belongs to (used for RLS lookups)""" entityId: UUID - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID + + """Display name shown to other entity members""" + displayName: String """ - User ID of the manager; NULL indicates a top-level position with no direct report + Email address visible to other entity members (auto-populated from verified primary email) """ - parentId: UUID + email: String - """Job title or role name for this position in the org chart""" - positionTitle: String + """Job title or role description visible to other entity members""" + title: String - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """Short biography visible to other entity members""" + bio: String + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage + + """Upload for Profile picture visible to other entity members""" + profilePictureUpload: Upload } -"""The output of our update `UsageSnapshot` mutation.""" -type UpdateUsageSnapshotPayload { +"""The `Upload` scalar type represents a file upload.""" +scalar Upload + +"""The output of our update `AppMembership` mutation.""" +type UpdateAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UsageSnapshot` that was updated by this mutation.""" - usageSnapshot: UsageSnapshot + """The `AppMembership` that was updated by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsageSnapshot`. May be used by Relay 1.""" - usageSnapshotEdge( - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsageSnapshotEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `updateUsageSnapshot` mutation.""" -input UpdateUsageSnapshotInput { +"""All input for the `updateAppMembership` mutation.""" +input UpdateAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12864,40 +13352,57 @@ input UpdateUsageSnapshotInput { id: UUID! """ - An object where the defined keys will be set on the `UsageSnapshot` being updated. + An object where the defined keys will be set on the `AppMembership` being updated. """ - usageSnapshotPatch: UsageSnapshotPatch! + appMembershipPatch: AppMembershipPatch! } """ -Represents an update to a `UsageSnapshot`. Fields that are set will be updated. +Represents an update to a `AppMembership`. Fields that are set will be updated. """ -input UsageSnapshotPatch { - """ - The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. - """ - databaseId: UUID +input AppMembershipPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """ - Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). - """ - metricName: String + """Whether this membership has been approved by an admin""" + isApproved: Boolean + + """Whether this member has been banned from the entity""" + isBanned: Boolean + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean + + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean """ - The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - metricValue: BigInt + isActive: Boolean + + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean """ - Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. + Aggregated permission bitmask combining profile-based and directly granted permissions """ - dimensions: JSON + permissions: BitString """ - When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. + Bitmask of permissions directly granted to this member (not from profiles) """ - capturedAt: Datetime - id: UUID + granted: BitString + + """References the user who holds this membership""" + actorId: UUID + profileId: UUID } """The output of our update `AppLimit` mutation.""" @@ -12987,110 +13492,31 @@ input AppLimitPatch { periodCredits: BigInt } -"""The output of our update `AppInvite` mutation.""" -type UpdateAppInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppInvite` that was updated by this mutation.""" - appInvite: AppInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge -} - -"""All input for the `updateAppInvite` mutation.""" -input UpdateAppInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppInvite` being updated. - """ - appInvitePatch: AppInvitePatch! -} - -""" -Represents an update to a `AppInvite`. Fields that are set will be updated. -""" -input AppInvitePatch { - id: UUID - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `OrgMembershipSetting` mutation.""" -type UpdateOrgMembershipSettingPayload { +"""The output of our update `OrgMembership` mutation.""" +type UpdateOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was updated by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `OrgMembership` that was updated by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the `updateOrgMembershipSetting` mutation.""" -input UpdateOrgMembershipSettingInput { +"""All input for the `updateOrgMembership` mutation.""" +input UpdateOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13099,63 +13525,65 @@ input UpdateOrgMembershipSettingInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembershipSetting` being updated. + An object where the defined keys will be set on the `OrgMembership` being updated. """ - orgMembershipSettingPatch: OrgMembershipSettingPatch! + orgMembershipPatch: OrgMembershipPatch! } """ -Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. +Represents an update to a `OrgMembership`. Fields that are set will be updated. """ -input OrgMembershipSettingPatch { +input OrgMembershipPatch { id: UUID createdAt: Datetime updatedAt: Datetime createdBy: UUID updatedBy: UUID - """References the entity these settings apply to""" - entityId: UUID + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean + """Whether this member has been banned from the entity""" + isBanned: Boolean - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean + """Whether this membership is temporarily disabled""" + isDisabled: Boolean """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - createChildCascadeAdmins: Boolean + isActive: Boolean """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. """ - createChildCascadeMembers: Boolean + isExternal: Boolean - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + Aggregated permission bitmask combining profile-based and directly granted permissions """ - inviteProfileAssignmentMode: String + permissions: BitString """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + Bitmask of permissions directly granted to this member (not from profiles) """ - populateMemberEmail: Boolean + granted: BitString + + """References the user who holds this membership""" + actorId: UUID - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String + """References the entity (org or group) this membership belongs to""" + entityId: UUID + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID } """The output of our update `OrgLimitAggregate` mutation.""" @@ -13334,31 +13762,31 @@ input OrgLimitPatch { entityId: UUID } -"""The output of our update `OrgMemberProfile` mutation.""" -type UpdateOrgMemberProfilePayload { +"""The output of our update `AppInvite` mutation.""" +type UpdateAppInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMemberProfile` that was updated by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `AppInvite` that was updated by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `updateOrgMemberProfile` mutation.""" -input UpdateOrgMemberProfileInput { +"""All input for the `updateAppInvite` mutation.""" +input UpdateAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13367,136 +13795,50 @@ input UpdateOrgMemberProfileInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMemberProfile` being updated. + An object where the defined keys will be set on the `AppInvite` being updated. """ - orgMemberProfilePatch: OrgMemberProfilePatch! + appInvitePatch: AppInvitePatch! } """ -Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. +Represents an update to a `AppInvite`. Fields that are set will be updated. """ -input OrgMemberProfilePatch { +input AppInvitePatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload -} + """User ID of the member who sent this invitation""" + senderId: UUID -"""The `Upload` scalar type represents a file upload.""" -scalar Upload + """Unique random hex token used to redeem this invitation""" + inviteToken: String -"""The output of our update `AppMembership` mutation.""" -type UpdateAppMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean - """The `AppMembership` that was updated by this mutation.""" - appMembership: AppMembership + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Running count of how many times this invite has been claimed""" + inviteCount: Int - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge -} + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean -"""All input for the `updateAppMembership` mutation.""" -input UpdateAppMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! + """Optional JSON payload of additional invite metadata""" + data: JSON """ - An object where the defined keys will be set on the `AppMembership` being updated. + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - appMembershipPatch: AppMembershipPatch! -} + profileId: UUID -""" -Represents an update to a `AppMembership`. Fields that are set will be updated. -""" -input AppMembershipPatch { - id: UUID + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID - profileId: UUID } """The output of our update `OrgInvite` mutation.""" @@ -13567,118 +13909,24 @@ input OrgInvitePatch { """Whether this invite can be claimed by multiple recipients""" multiple: Boolean - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime - entityId: UUID -} - -"""The output of our update `OrgMembership` mutation.""" -type UpdateOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembership` that was updated by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the `updateOrgMembership` mutation.""" -input UpdateOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgMembership` being updated. - """ - orgMembershipPatch: OrgMembershipPatch! -} - -""" -Represents an update to a `OrgMembership`. Fields that are set will be updated. -""" -input OrgMembershipPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean + """Optional JSON payload of additional invite metadata""" + data: JSON """ - Aggregated permission bitmask combining profile-based and directly granted permissions + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - permissions: BitString + profileId: UUID """ - Bitmask of permissions directly granted to this member (not from profiles) + Whether the resulting membership should be read-only when this invite is claimed """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID + isReadOnly: Boolean - """References the entity (org or group) this membership belongs to""" + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime entityId: UUID - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID } """The output of our delete `AppLimitCreditRedemption` mutation.""" @@ -13780,31 +14028,64 @@ input DeleteAppPermissionDefaultInput { id: UUID! } -"""The output of our delete `AppLimitCreditCode` mutation.""" -type DeleteAppLimitCreditCodePayload { +"""The output of our delete `AppAdminGrant` mutation.""" +type DeleteAppAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCode` that was deleted by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `AppAdminGrant` that was deleted by this mutation.""" + appAdminGrant: AppAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge } -"""All input for the `deleteAppLimitCreditCode` mutation.""" -input DeleteAppLimitCreditCodeInput { +"""All input for the `deleteAppAdminGrant` mutation.""" +input DeleteAppAdminGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppOwnerGrant` mutation.""" +type DeleteAppOwnerGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppOwnerGrant` that was deleted by this mutation.""" + appOwnerGrant: AppOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge +} + +"""All input for the `deleteAppOwnerGrant` mutation.""" +input DeleteAppOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13846,31 +14127,31 @@ input DeleteOrgPermissionDefaultInput { id: UUID! } -"""The output of our delete `AppPermission` mutation.""" -type DeleteAppPermissionPayload { +"""The output of our delete `AppMembershipDefault` mutation.""" +type DeleteAppMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermission` that was deleted by this mutation.""" - appPermission: AppPermission + """The `AppMembershipDefault` that was deleted by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the `deleteAppPermission` mutation.""" -input DeleteAppPermissionInput { +"""All input for the `deleteAppMembershipDefault` mutation.""" +input DeleteAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13879,31 +14160,31 @@ input DeleteAppPermissionInput { id: UUID! } -"""The output of our delete `OrgPermission` mutation.""" -type DeleteOrgPermissionPayload { +"""The output of our delete `OrgAdminGrant` mutation.""" +type DeleteOrgAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermission` that was deleted by this mutation.""" - orgPermission: OrgPermission + """The `OrgAdminGrant` that was deleted by this mutation.""" + orgAdminGrant: OrgAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge } -"""All input for the `deleteOrgPermission` mutation.""" -input DeleteOrgPermissionInput { +"""All input for the `deleteOrgAdminGrant` mutation.""" +input DeleteOrgAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13912,31 +14193,31 @@ input DeleteOrgPermissionInput { id: UUID! } -"""The output of our delete `AppAdminGrant` mutation.""" -type DeleteAppAdminGrantPayload { +"""The output of our delete `OrgMembershipDefault` mutation.""" +type DeleteOrgMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppAdminGrant` that was deleted by this mutation.""" - appAdminGrant: AppAdminGrant + """The `OrgMembershipDefault` that was deleted by this mutation.""" + orgMembershipDefault: OrgMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge } -"""All input for the `deleteAppAdminGrant` mutation.""" -input DeleteAppAdminGrantInput { +"""All input for the `deleteOrgMembershipDefault` mutation.""" +input DeleteOrgMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13945,31 +14226,31 @@ input DeleteAppAdminGrantInput { id: UUID! } -"""The output of our delete `AppOwnerGrant` mutation.""" -type DeleteAppOwnerGrantPayload { +"""The output of our delete `OrgOwnerGrant` mutation.""" +type DeleteOrgOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppOwnerGrant` that was deleted by this mutation.""" - appOwnerGrant: AppOwnerGrant + """The `OrgOwnerGrant` that was deleted by this mutation.""" + orgOwnerGrant: OrgOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge } -"""All input for the `deleteAppOwnerGrant` mutation.""" -input DeleteAppOwnerGrantInput { +"""All input for the `deleteOrgOwnerGrant` mutation.""" +input DeleteOrgOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14110,31 +14391,31 @@ input DeleteOrgLimitCapInput { id: UUID! } -"""The output of our delete `OrgAdminGrant` mutation.""" -type DeleteOrgAdminGrantPayload { +"""The output of our delete `OrgChartEdge` mutation.""" +type DeleteOrgChartEdgePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgAdminGrant` that was deleted by this mutation.""" - orgAdminGrant: OrgAdminGrant + """The `OrgChartEdge` that was deleted by this mutation.""" + orgChartEdge: OrgChartEdge """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge } -"""All input for the `deleteOrgAdminGrant` mutation.""" -input DeleteOrgAdminGrantInput { +"""All input for the `deleteOrgChartEdge` mutation.""" +input DeleteOrgChartEdgeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14143,31 +14424,31 @@ input DeleteOrgAdminGrantInput { id: UUID! } -"""The output of our delete `OrgOwnerGrant` mutation.""" -type DeleteOrgOwnerGrantPayload { +"""The output of our delete `AppLimitCreditCodeItem` mutation.""" +type DeleteAppLimitCreditCodeItemPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgOwnerGrant` that was deleted by this mutation.""" - orgOwnerGrant: OrgOwnerGrant + """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge } -"""All input for the `deleteOrgOwnerGrant` mutation.""" -input DeleteOrgOwnerGrantInput { +"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" +input DeleteAppLimitCreditCodeItemInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14176,68 +14457,97 @@ input DeleteOrgOwnerGrantInput { id: UUID! } -"""The output of our delete `MembershipType` mutation.""" -type DeleteMembershipTypePayload { +"""The output of our delete `AppLimitDefault` mutation.""" +type DeleteAppLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MembershipType` that was deleted by this mutation.""" - membershipType: MembershipType + """The `AppLimitDefault` that was deleted by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the `deleteAppLimitDefault` mutation.""" +input DeleteAppLimitDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimitDefault` mutation.""" +type DeleteOrgLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitDefault` that was deleted by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the `deleteMembershipType` mutation.""" -input DeleteMembershipTypeInput { +"""All input for the `deleteOrgLimitDefault` mutation.""" +input DeleteOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! + id: UUID! } -"""The output of our delete `AppLimitDefault` mutation.""" -type DeleteAppLimitDefaultPayload { +"""The output of our delete `AppPermission` mutation.""" +type DeleteAppPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was deleted by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppPermission` that was deleted by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `deleteAppLimitDefault` mutation.""" -input DeleteAppLimitDefaultInput { +"""All input for the `deleteAppPermission` mutation.""" +input DeleteAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14246,31 +14556,31 @@ input DeleteAppLimitDefaultInput { id: UUID! } -"""The output of our delete `OrgLimitDefault` mutation.""" -type DeleteOrgLimitDefaultPayload { +"""The output of our delete `OrgPermission` mutation.""" +type DeleteOrgPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was deleted by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `OrgPermission` that was deleted by this mutation.""" + orgPermission: OrgPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge } -"""All input for the `deleteOrgLimitDefault` mutation.""" -input DeleteOrgLimitDefaultInput { +"""All input for the `deleteOrgPermission` mutation.""" +input DeleteOrgPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14279,31 +14589,31 @@ input DeleteOrgLimitDefaultInput { id: UUID! } -"""The output of our delete `AppLimitCreditCodeItem` mutation.""" -type DeleteAppLimitCreditCodeItemPayload { +"""The output of our delete `AppLimitCreditCode` mutation.""" +type DeleteAppLimitCreditCodePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `AppLimitCreditCode` that was deleted by this mutation.""" + appLimitCreditCode: AppLimitCreditCode """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge } -"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" -input DeleteAppLimitCreditCodeItemInput { +"""All input for the `deleteAppLimitCreditCode` mutation.""" +input DeleteAppLimitCreditCodeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14345,31 +14655,31 @@ input DeleteAppLimitWarningInput { id: UUID! } -"""The output of our delete `AppLimitCredit` mutation.""" -type DeleteAppLimitCreditPayload { +"""The output of our delete `OrgChartEdgeGrant` mutation.""" +type DeleteOrgChartEdgeGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCredit` that was deleted by this mutation.""" - appLimitCredit: AppLimitCredit + """The `OrgChartEdgeGrant` that was deleted by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge } -"""All input for the `deleteAppLimitCredit` mutation.""" -input DeleteAppLimitCreditInput { +"""All input for the `deleteOrgChartEdgeGrant` mutation.""" +input DeleteOrgChartEdgeGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14378,31 +14688,31 @@ input DeleteAppLimitCreditInput { id: UUID! } -"""The output of our delete `OrgLimitWarning` mutation.""" -type DeleteOrgLimitWarningPayload { +"""The output of our delete `AppLimitCredit` mutation.""" +type DeleteAppLimitCreditPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitWarning` that was deleted by this mutation.""" - orgLimitWarning: OrgLimitWarning + """The `AppLimitCredit` that was deleted by this mutation.""" + appLimitCredit: AppLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge } -"""All input for the `deleteOrgLimitWarning` mutation.""" -input DeleteOrgLimitWarningInput { +"""All input for the `deleteAppLimitCredit` mutation.""" +input DeleteAppLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14444,31 +14754,31 @@ input DeleteOrgLimitCreditInput { id: UUID! } -"""The output of our delete `OrgChartEdgeGrant` mutation.""" -type DeleteOrgChartEdgeGrantPayload { +"""The output of our delete `AppClaimedInvite` mutation.""" +type DeleteAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgChartEdgeGrant` that was deleted by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant + """The `AppClaimedInvite` that was deleted by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `deleteOrgChartEdgeGrant` mutation.""" -input DeleteOrgChartEdgeGrantInput { +"""All input for the `deleteAppClaimedInvite` mutation.""" +input DeleteAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14477,31 +14787,31 @@ input DeleteOrgChartEdgeGrantInput { id: UUID! } -"""The output of our delete `AppClaimedInvite` mutation.""" -type DeleteAppClaimedInvitePayload { +"""The output of our delete `OrgLimitWarning` mutation.""" +type DeleteOrgLimitWarningPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppClaimedInvite` that was deleted by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `OrgLimitWarning` that was deleted by this mutation.""" + orgLimitWarning: OrgLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge } -"""All input for the `deleteAppClaimedInvite` mutation.""" -input DeleteAppClaimedInviteInput { +"""All input for the `deleteOrgLimitWarning` mutation.""" +input DeleteOrgLimitWarningInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14510,6 +14820,43 @@ input DeleteAppClaimedInviteInput { id: UUID! } +"""The output of our delete `MembershipType` mutation.""" +type DeleteMembershipTypePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MembershipType` that was deleted by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge +} + +"""All input for the `deleteMembershipType` mutation.""" +input DeleteMembershipTypeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! +} + """The output of our delete `AppGrant` mutation.""" type DeleteAppGrantPayload { """ @@ -14543,31 +14890,64 @@ input DeleteAppGrantInput { id: UUID! } -"""The output of our delete `AppMembershipDefault` mutation.""" -type DeleteAppMembershipDefaultPayload { +"""The output of our delete `OrgClaimedInvite` mutation.""" +type DeleteOrgClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembershipDefault` that was deleted by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `OrgClaimedInvite` that was deleted by this mutation.""" + orgClaimedInvite: OrgClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge +} + +"""All input for the `deleteOrgClaimedInvite` mutation.""" +input DeleteOrgClaimedInviteInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgGrant` mutation.""" +type DeleteOrgGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgGrant` that was deleted by this mutation.""" + orgGrant: OrgGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the `deleteAppMembershipDefault` mutation.""" -input DeleteAppMembershipDefaultInput { +"""All input for the `deleteOrgGrant` mutation.""" +input DeleteOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14576,31 +14956,31 @@ input DeleteAppMembershipDefaultInput { id: UUID! } -"""The output of our delete `OrgMembershipDefault` mutation.""" -type DeleteOrgMembershipDefaultPayload { +"""The output of our delete `UsageSnapshot` mutation.""" +type DeleteUsageSnapshotPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipDefault` that was deleted by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `UsageSnapshot` that was deleted by this mutation.""" + usageSnapshot: UsageSnapshot """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `UsageSnapshot`. May be used by Relay 1.""" + usageSnapshotEdge( + """The method to use when ordering `UsageSnapshot`.""" + orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] + ): UsageSnapshotEdge } -"""All input for the `deleteOrgMembershipDefault` mutation.""" -input DeleteOrgMembershipDefaultInput { +"""All input for the `deleteUsageSnapshot` mutation.""" +input DeleteUsageSnapshotInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14609,97 +14989,103 @@ input DeleteOrgMembershipDefaultInput { id: UUID! } -"""The output of our delete `OrgClaimedInvite` mutation.""" -type DeleteOrgClaimedInvitePayload { +"""The output of our delete `AppLimitEvent` mutation.""" +type DeleteAppLimitEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgClaimedInvite` that was deleted by this mutation.""" - orgClaimedInvite: OrgClaimedInvite + """The `AppLimitEvent` that was deleted by this mutation.""" + appLimitEvent: AppLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge } -"""All input for the `deleteOrgClaimedInvite` mutation.""" -input DeleteOrgClaimedInviteInput { +"""All input for the `deleteAppLimitEvent` mutation.""" +input DeleteAppLimitEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! } -"""The output of our delete `OrgGrant` mutation.""" -type DeleteOrgGrantPayload { +"""The output of our delete `OrgLimitEvent` mutation.""" +type DeleteOrgLimitEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgGrant` that was deleted by this mutation.""" - orgGrant: OrgGrant + """The `OrgLimitEvent` that was deleted by this mutation.""" + orgLimitEvent: OrgLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge } -"""All input for the `deleteOrgGrant` mutation.""" -input DeleteOrgGrantInput { +"""All input for the `deleteOrgLimitEvent` mutation.""" +input DeleteOrgLimitEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! } -"""The output of our delete `OrgChartEdge` mutation.""" -type DeleteOrgChartEdgePayload { +"""The output of our delete `OrgMembershipSetting` mutation.""" +type DeleteOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgChartEdge` that was deleted by this mutation.""" - orgChartEdge: OrgChartEdge + """The `OrgMembershipSetting` that was deleted by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the `deleteOrgChartEdge` mutation.""" -input DeleteOrgChartEdgeInput { +"""All input for the `deleteOrgMembershipSetting` mutation.""" +input DeleteOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14708,31 +15094,31 @@ input DeleteOrgChartEdgeInput { id: UUID! } -"""The output of our delete `UsageSnapshot` mutation.""" -type DeleteUsageSnapshotPayload { +"""The output of our delete `OrgMemberProfile` mutation.""" +type DeleteOrgMemberProfilePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UsageSnapshot` that was deleted by this mutation.""" - usageSnapshot: UsageSnapshot + """The `OrgMemberProfile` that was deleted by this mutation.""" + orgMemberProfile: OrgMemberProfile """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsageSnapshot`. May be used by Relay 1.""" - usageSnapshotEdge( - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsageSnapshotEdge + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge } -"""All input for the `deleteUsageSnapshot` mutation.""" -input DeleteUsageSnapshotInput { +"""All input for the `deleteOrgMemberProfile` mutation.""" +input DeleteOrgMemberProfileInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14741,31 +15127,31 @@ input DeleteUsageSnapshotInput { id: UUID! } -"""The output of our delete `AppLimit` mutation.""" -type DeleteAppLimitPayload { +"""The output of our delete `AppMembership` mutation.""" +type DeleteAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimit` that was deleted by this mutation.""" - appLimit: AppLimit + """The `AppMembership` that was deleted by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `deleteAppLimit` mutation.""" -input DeleteAppLimitInput { +"""All input for the `deleteAppMembership` mutation.""" +input DeleteAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14774,31 +15160,31 @@ input DeleteAppLimitInput { id: UUID! } -"""The output of our delete `AppInvite` mutation.""" -type DeleteAppInvitePayload { +"""The output of our delete `AppLimit` mutation.""" +type DeleteAppLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppInvite` that was deleted by this mutation.""" - appInvite: AppInvite + """The `AppLimit` that was deleted by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the `deleteAppInvite` mutation.""" -input DeleteAppInviteInput { +"""All input for the `deleteAppLimit` mutation.""" +input DeleteAppLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14807,31 +15193,31 @@ input DeleteAppInviteInput { id: UUID! } -"""The output of our delete `OrgMembershipSetting` mutation.""" -type DeleteOrgMembershipSettingPayload { +"""The output of our delete `OrgMembership` mutation.""" +type DeleteOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was deleted by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `OrgMembership` that was deleted by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the `deleteOrgMembershipSetting` mutation.""" -input DeleteOrgMembershipSettingInput { +"""All input for the `deleteOrgMembership` mutation.""" +input DeleteOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14906,64 +15292,31 @@ input DeleteOrgLimitInput { id: UUID! } -"""The output of our delete `OrgMemberProfile` mutation.""" -type DeleteOrgMemberProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMemberProfile` that was deleted by this mutation.""" - orgMemberProfile: OrgMemberProfile - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge -} - -"""All input for the `deleteOrgMemberProfile` mutation.""" -input DeleteOrgMemberProfileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppMembership` mutation.""" -type DeleteAppMembershipPayload { +"""The output of our delete `AppInvite` mutation.""" +type DeleteAppInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembership` that was deleted by this mutation.""" - appMembership: AppMembership + """The `AppInvite` that was deleted by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `deleteAppMembership` mutation.""" -input DeleteAppMembershipInput { +"""All input for the `deleteAppInvite` mutation.""" +input DeleteAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -15005,39 +15358,6 @@ input DeleteOrgInviteInput { id: UUID! } -"""The output of our delete `OrgMembership` mutation.""" -type DeleteOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembership` that was deleted by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the `deleteOrgMembership` mutation.""" -input DeleteOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - input ProvisionBucketInput { """The logical bucket key (e.g., "public", "private")""" bucketKey: String! diff --git a/sdk/constructive-sdk/schemas/objects.graphql b/sdk/constructive-sdk/schemas/objects.graphql index 5678d585ed..89c6baf684 100644 --- a/sdk/constructive-sdk/schemas/objects.graphql +++ b/sdk/constructive-sdk/schemas/objects.graphql @@ -1,10 +1,10 @@ """The root query type which gives access points into the data universe.""" type Query { - revParse(dbId: UUID, storeId: UUID, refname: String): UUID + revParse(sId: UUID, storeId: UUID, refname: String): UUID """Reads and enables pagination through a set of `GetAllRecord`.""" getAll( - databaseId: UUID + sId: UUID id: UUID """Only read the first `n` values of the set.""" @@ -22,7 +22,7 @@ type Query { """Reads and enables pagination through a set of `Object`.""" getAllObjectsFromRoot( - databaseId: UUID + sId: UUID id: UUID """Only read the first `n` values of the set.""" @@ -37,11 +37,11 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor ): ObjectConnection - getNodeAtPath(databaseId: UUID, id: UUID, path: [String]): Object + getNodeAtPath(sId: UUID, id: UUID, path: [String]): Object """Reads and enables pagination through a set of `Object`.""" getPathObjectsFromRoot( - databaseId: UUID + sId: UUID id: UUID path: [String] @@ -57,7 +57,7 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor ): ObjectConnection - getObjectAtPath(dbId: UUID, storeId: UUID, path: [String], refname: String): Object + getObjectAtPath(sId: UUID, storeId: UUID, path: [String], refname: String): Object """Reads and enables pagination through a set of `Ref`.""" refs( @@ -260,7 +260,7 @@ type ObjectConnection { type Object { hashUuid: UUID id: UUID! - databaseId: UUID! + scopeId: UUID! kids: [UUID] ktree: [String] data: JSON @@ -310,7 +310,7 @@ type Ref { """The name of the ref or branch""" name: String! - databaseId: UUID! + scopeId: UUID! storeId: UUID! commitId: UUID } @@ -334,8 +334,8 @@ input RefFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `storeId` field.""" storeId: UUIDFilter @@ -536,8 +536,8 @@ enum RefOrderBy { ID_DESC NAME_ASC NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC STORE_ID_ASC STORE_ID_DESC COMMIT_ID_ASC @@ -569,8 +569,8 @@ type Store { """The name of the store (e.g., metaschema, migrations).""" name: String! - """The database this store belongs to.""" - databaseId: UUID! + """The scope this store belongs to.""" + scopeId: UUID! """The current head tree_id for this store.""" hash: UUID @@ -596,8 +596,8 @@ input StoreFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `hash` field.""" hash: UUIDFilter @@ -666,8 +666,8 @@ enum StoreOrderBy { ID_DESC NAME_ASC NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC HASH_ASC HASH_DESC CREATED_AT_ASC @@ -699,8 +699,8 @@ type Commit { """The commit message""" message: String - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! storeId: UUID! """Parent commits""" @@ -736,8 +736,8 @@ input CommitFilter { """Filter by the object’s `message` field.""" message: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `storeId` field.""" storeId: UUIDFilter @@ -839,8 +839,8 @@ enum CommitOrderBy { ID_DESC MESSAGE_ASC MESSAGE_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC STORE_ID_ASC STORE_ID_DESC PARENT_IDS_ASC @@ -862,8 +862,8 @@ input ObjectFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `kids` field.""" kids: UUIDListFilter @@ -1059,8 +1059,8 @@ enum ObjectOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC KIDS_ASC KIDS_DESC KTREE_ASC @@ -1407,7 +1407,7 @@ input FreezeObjectsInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - databaseId: UUID + sId: UUID id: UUID } @@ -1432,7 +1432,7 @@ input InitEmptyRepoInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID } @@ -1458,7 +1458,7 @@ input RemoveNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] } @@ -1485,7 +1485,7 @@ input SetDataAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -1513,7 +1513,7 @@ input SetPropsAndCommitInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID refname: String path: [String] @@ -1542,7 +1542,7 @@ input InsertNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -1572,7 +1572,7 @@ input UpdateNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -1602,7 +1602,7 @@ input SetAndCommitInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID refname: String path: [String] @@ -1653,7 +1653,7 @@ input RefInput { """The name of the ref or branch""" name: String! - databaseId: UUID! + scopeId: UUID! storeId: UUID! commitId: UUID } @@ -1701,8 +1701,8 @@ input StoreInput { """The name of the store (e.g., metaschema, migrations).""" name: String! - """The database this store belongs to.""" - databaseId: UUID! + """The scope this store belongs to.""" + scopeId: UUID! """The current head tree_id for this store.""" hash: UUID @@ -1752,8 +1752,8 @@ input CommitInput { """The commit message""" message: String - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! storeId: UUID! """Parent commits""" @@ -1808,7 +1808,7 @@ input CreateObjectInput { """An input for mutations affecting `Object`""" input ObjectInput { id: UUID! - databaseId: UUID! + scopeId: UUID! kids: [UUID] ktree: [String] data: JSON @@ -1849,7 +1849,7 @@ input UpdateRefInput { """The primary unique identifier for the ref.""" id: UUID! - databaseId: UUID! + scopeId: UUID! """ An object where the defined keys will be set on the `Ref` being updated. @@ -1864,7 +1864,7 @@ input RefPatch { """The name of the ref or branch""" name: String - databaseId: UUID + scopeId: UUID storeId: UUID commitId: UUID } @@ -1919,8 +1919,8 @@ input StorePatch { """The name of the store (e.g., metaschema, migrations).""" name: String - """The database this store belongs to.""" - databaseId: UUID + """The scope this store belongs to.""" + scopeId: UUID """The current head tree_id for this store.""" hash: UUID @@ -1961,8 +1961,8 @@ input UpdateCommitInput { """The primary unique identifier for the commit.""" id: UUID! - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! """ An object where the defined keys will be set on the `Commit` being updated. @@ -1980,8 +1980,8 @@ input CommitPatch { """The commit message""" message: String - """The repository identifier""" - databaseId: UUID + """The scope identifier""" + scopeId: UUID storeId: UUID """Parent commits""" @@ -2029,7 +2029,7 @@ input UpdateObjectInput { """ clientMutationId: String id: UUID! - databaseId: UUID! + scopeId: UUID! """ An object where the defined keys will be set on the `Object` being updated. @@ -2042,7 +2042,7 @@ Represents an update to a `Object`. Fields that are set will be updated. """ input ObjectPatch { id: UUID - databaseId: UUID + scopeId: UUID kids: [UUID] ktree: [String] data: JSON @@ -2083,7 +2083,7 @@ input DeleteRefInput { """The primary unique identifier for the ref.""" id: UUID! - databaseId: UUID! + scopeId: UUID! } """The output of our delete `Store` mutation.""" @@ -2155,8 +2155,8 @@ input DeleteCommitInput { """The primary unique identifier for the commit.""" id: UUID! - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! } """The output of our delete `Object` mutation.""" @@ -2190,7 +2190,7 @@ input DeleteObjectInput { """ clientMutationId: String id: UUID! - databaseId: UUID! + scopeId: UUID! } input ProvisionBucketInput { diff --git a/sdk/constructive-sdk/schemas/public.graphql b/sdk/constructive-sdk/schemas/public.graphql index 1bc6e40d0d..19a5d038a0 100644 --- a/sdk/constructive-sdk/schemas/public.graphql +++ b/sdk/constructive-sdk/schemas/public.graphql @@ -6,7 +6,7 @@ type Query { requireStepUp(stepUpType: String): Boolean appPermissionsGetPaddedMask(mask: BitString): BitString orgPermissionsGetPaddedMask(mask: BitString): BitString - revParse(dbId: UUID, storeId: UUID, refname: String): UUID + revParse(sId: UUID, storeId: UUID, refname: String): UUID """ Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. @@ -63,7 +63,7 @@ type Query { """Reads and enables pagination through a set of `GetAllRecord`.""" getAll( - databaseId: UUID + sId: UUID id: UUID """Only read the first `n` values of the set.""" @@ -81,9 +81,10 @@ type Query { appPermissionsGetMaskByNames(names: [String]): BitString orgPermissionsGetMaskByNames(names: [String]): BitString - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissionsGetByMask( - mask: BitString + """Reads and enables pagination through a set of `Object`.""" + getAllObjectsFromRoot( + sId: UUID + id: UUID """Only read the first `n` values of the set.""" first: Int @@ -96,11 +97,14 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor - ): AppPermissionConnection + ): ObjectConnection + getNodeAtPath(sId: UUID, id: UUID, path: [String]): Object - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissionsGetByMask( - mask: BitString + """Reads and enables pagination through a set of `Object`.""" + getPathObjectsFromRoot( + sId: UUID + id: UUID + path: [String] """Only read the first `n` values of the set.""" first: Int @@ -113,12 +117,12 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor - ): OrgPermissionConnection + ): ObjectConnection + getObjectAtPath(sId: UUID, storeId: UUID, path: [String], refname: String): Object - """Reads and enables pagination through a set of `Object`.""" - getAllObjectsFromRoot( - databaseId: UUID - id: UUID + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissionsGetByMask( + mask: BitString """Only read the first `n` values of the set.""" first: Int @@ -131,14 +135,11 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor - ): ObjectConnection - getNodeAtPath(databaseId: UUID, id: UUID, path: [String]): Object + ): AppPermissionConnection - """Reads and enables pagination through a set of `Object`.""" - getPathObjectsFromRoot( - databaseId: UUID - id: UUID - path: [String] + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissionsGetByMask( + mask: BitString """Only read the first `n` values of the set.""" first: Int @@ -151,8 +152,7 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor - ): ObjectConnection - getObjectAtPath(dbId: UUID, storeId: UUID, path: [String], refname: String): Object + ): OrgPermissionConnection currentUser: User """Reads and enables pagination through a set of `DefaultIdsModule`.""" @@ -184,35 +184,6 @@ type Query { orderBy: [DefaultIdsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): DefaultIdsModuleConnection - """Reads and enables pagination through a set of `RoleType`.""" - roleTypes( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: RoleTypeFilter - - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): RoleTypeConnection - """ Reads and enables pagination through a set of `AppLimitCreditRedemption`. """ @@ -506,9 +477,9 @@ type Query { ): StoreConnection """ - Reads and enables pagination through a set of `EncryptedSecretsModule`. + Reads and enables pagination through a set of `ConfigSecretsOrgModule`. """ - encryptedSecretsModules( + configSecretsOrgModules( """Only read the first `n` values of the set.""" first: Int @@ -530,11 +501,42 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EncryptedSecretsModuleFilter + where: ConfigSecretsOrgModuleFilter - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleConnection + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleConnection + + """ + Reads and enables pagination through a set of `ConfigSecretsUserModule`. + """ + configSecretsUserModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ConfigSecretsUserModuleFilter + + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleConnection """Reads and enables pagination through a set of `MembershipTypesModule`.""" membershipTypesModules( @@ -681,8 +683,8 @@ type Query { orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] ): SiteModuleConnection - """Reads and enables pagination through a set of `AppLimitCreditCode`.""" - appLimitCreditCodes( + """Reads and enables pagination through a set of `RoleType`.""" + roleTypes( """Only read the first `n` values of the set.""" first: Int @@ -704,11 +706,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditCodeFilter + where: RoleTypeFilter - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeConnection + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): RoleTypeConnection """Reads and enables pagination through a set of `SchemaGrant`.""" schemaGrants( @@ -944,37 +946,8 @@ type Query { orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): OrgPermissionDefaultConnection - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppPermissionFilter - - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppPermissionConnection - - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissions( + """Reads and enables pagination through a set of `MigrateFile`.""" + migrateFiles( """Only read the first `n` values of the set.""" first: Int @@ -996,11 +969,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgPermissionFilter + where: MigrateFileFilter - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionConnection + """The method to use when ordering `MigrateFile`.""" + orderBy: [MigrateFileOrderBy!] = [NATURAL] + ): MigrateFileConnection """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" appLimitCapsDefaults( @@ -1060,122 +1033,6 @@ type Query { orderBy: [OrgLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): OrgLimitCapsDefaultConnection - """Reads and enables pagination through a set of `AppLimitCap`.""" - appLimitCaps( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCapFilter - - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCapConnection - - """Reads and enables pagination through a set of `OrgLimitCap`.""" - orgLimitCaps( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgLimitCapFilter - - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCapConnection - - """Reads and enables pagination through a set of `MembershipType`.""" - membershipTypes( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: MembershipTypeFilter - - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipTypeConnection - - """Reads and enables pagination through a set of `MigrateFile`.""" - migrateFiles( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: MigrateFileFilter - - """The method to use when ordering `MigrateFile`.""" - orderBy: [MigrateFileOrderBy!] = [NATURAL] - ): MigrateFileConnection - """Reads and enables pagination through a set of `DefaultPrivilege`.""" defaultPrivileges( """Only read the first `n` values of the set.""" @@ -1441,6 +1298,35 @@ type Query { orderBy: [WebauthnCredentialsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): WebauthnCredentialsModuleConnection + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppMembershipDefaultFilter + + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultConnection + """Reads and enables pagination through a set of `OrgAdminGrant`.""" orgAdminGrants( """Only read the first `n` values of the set.""" @@ -1470,6 +1356,35 @@ type Query { orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] ): OrgAdminGrantConnection + """Reads and enables pagination through a set of `OrgMembershipDefault`.""" + orgMembershipDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgMembershipDefaultFilter + + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultConnection + """Reads and enables pagination through a set of `OrgOwnerGrant`.""" orgOwnerGrants( """Only read the first `n` values of the set.""" @@ -1528,8 +1443,10 @@ type Query { orderBy: [NodeTypeRegistryOrderBy!] = [PRIMARY_KEY_ASC] ): NodeTypeRegistryConnection - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( + """ + Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + """ + appLimitCreditCodeItems( """Only read the first `n` values of the set.""" first: Int @@ -1551,14 +1468,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitDefaultFilter + where: AppLimitCreditCodeItemFilter - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitDefaultConnection + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemConnection - """Reads and enables pagination through a set of `OrgLimitDefault`.""" - orgLimitDefaults( + """Reads and enables pagination through a set of `AppLimitCap`.""" + appLimitCaps( """Only read the first `n` values of the set.""" first: Int @@ -1580,16 +1497,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitDefaultFilter + where: AppLimitCapFilter - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultConnection + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCapConnection - """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. - """ - appLimitCreditCodeItems( + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -1611,14 +1526,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditCodeItemFilter + where: AppLimitDefaultFilter - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemConnection + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitDefaultConnection - """Reads and enables pagination through a set of `AppLimitWarning`.""" - appLimitWarnings( + """Reads and enables pagination through a set of `OrgLimitCap`.""" + orgLimitCaps( """Only read the first `n` values of the set.""" first: Int @@ -1640,11 +1555,40 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitWarningFilter + where: OrgLimitCapFilter - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitWarningConnection + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCapConnection + + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgLimitDefaultFilter + + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultConnection """Reads and enables pagination through a set of `UserConnectedAccount`.""" userConnectedAccounts( @@ -1733,8 +1677,8 @@ type Query { orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] ): CryptoAddressesModuleConnection - """Reads and enables pagination through a set of `CryptoAddress`.""" - cryptoAddresses( + """Reads and enables pagination through a set of `OrgChartEdge`.""" + orgChartEdges( """Only read the first `n` values of the set.""" first: Int @@ -1756,14 +1700,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CryptoAddressFilter + where: OrgChartEdgeFilter - """The method to use when ordering `CryptoAddress`.""" - orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressConnection + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeConnection - """Reads and enables pagination through a set of `AgentMessage`.""" - agentMessages( + """Reads and enables pagination through a set of `CryptoAddress`.""" + cryptoAddresses( """Only read the first `n` values of the set.""" first: Int @@ -1785,14 +1729,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentMessageFilter + where: CryptoAddressFilter - """The method to use when ordering `AgentMessage`.""" - orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentMessageConnection + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressConnection - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCredits( + """Reads and enables pagination through a set of `AgentMessage`.""" + agentMessages( """Only read the first `n` values of the set.""" first: Int @@ -1814,14 +1758,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditFilter + where: AgentMessageFilter - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditConnection + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentMessageConnection - """Reads and enables pagination through a set of `OrgLimitWarning`.""" - orgLimitWarnings( + """Reads and enables pagination through a set of `AppLimitCredit`.""" + appLimitCredits( """Only read the first `n` values of the set.""" first: Int @@ -1843,11 +1787,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitWarningFilter + where: AppLimitCreditFilter - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitWarningConnection + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditConnection """Reads and enables pagination through a set of `OrgLimitCredit`.""" orgLimitCredits( @@ -1907,8 +1851,8 @@ type Query { orderBy: [ObjectOrderBy!] = [PRIMARY_KEY_ASC] ): ObjectConnection - """Reads and enables pagination through a set of `SiteMetadatum`.""" - siteMetadata( + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissions( """Only read the first `n` values of the set.""" first: Int @@ -1930,14 +1874,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SiteMetadatumFilter + where: AppPermissionFilter - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteMetadatumConnection + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionConnection - """Reads and enables pagination through a set of `FullTextSearch`.""" - fullTextSearches( + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissions( """Only read the first `n` values of the set.""" first: Int @@ -1959,14 +1903,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FullTextSearchFilter + where: OrgPermissionFilter - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] - ): FullTextSearchConnection + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionConnection - """Reads and enables pagination through a set of `TableGrant`.""" - tableGrants( + """Reads and enables pagination through a set of `AppLimitCreditCode`.""" + appLimitCreditCodes( """Only read the first `n` values of the set.""" first: Int @@ -1988,14 +1932,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: TableGrantFilter + where: AppLimitCreditCodeFilter - """The method to use when ordering `TableGrant`.""" - orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): TableGrantConnection + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeConnection - """Reads and enables pagination through a set of `Commit`.""" - commits( + """Reads and enables pagination through a set of `AppLimitWarning`.""" + appLimitWarnings( """Only read the first `n` values of the set.""" first: Int @@ -2017,14 +1961,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CommitFilter + where: AppLimitWarningFilter - """The method to use when ordering `Commit`.""" - orderBy: [CommitOrderBy!] = [PRIMARY_KEY_ASC] - ): CommitConnection + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitWarningConnection - """Reads and enables pagination through a set of `PubkeySetting`.""" - pubkeySettings( + """Reads and enables pagination through a set of `FullTextSearch`.""" + fullTextSearches( """Only read the first `n` values of the set.""" first: Int @@ -2046,14 +1990,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PubkeySettingFilter + where: FullTextSearchFilter - """The method to use when ordering `PubkeySetting`.""" - orderBy: [PubkeySettingOrderBy!] = [PRIMARY_KEY_ASC] - ): PubkeySettingConnection + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] + ): FullTextSearchConnection - """Reads and enables pagination through a set of `RateLimitsModule`.""" - rateLimitsModules( + """Reads and enables pagination through a set of `TableGrant`.""" + tableGrants( """Only read the first `n` values of the set.""" first: Int @@ -2075,14 +2019,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: RateLimitsModuleFilter + where: TableGrantFilter - """The method to use when ordering `RateLimitsModule`.""" - orderBy: [RateLimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RateLimitsModuleConnection + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): TableGrantConnection - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - orgChartEdgeGrants( + """Reads and enables pagination through a set of `Commit`.""" + commits( """Only read the first `n` values of the set.""" first: Int @@ -2104,14 +2048,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeGrantFilter + where: CommitFilter - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!] = [PRIMARY_KEY_ASC] + ): CommitConnection - """Reads and enables pagination through a set of `PhoneNumber`.""" - phoneNumbers( + """Reads and enables pagination through a set of `SiteMetadatum`.""" + siteMetadata( """Only read the first `n` values of the set.""" first: Int @@ -2133,14 +2077,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PhoneNumberFilter + where: SiteMetadatumFilter - """The method to use when ordering `PhoneNumber`.""" - orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] - ): PhoneNumberConnection + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteMetadatumConnection - """Reads and enables pagination through a set of `UsageSnapshot`.""" - usageSnapshots( + """Reads and enables pagination through a set of `PubkeySetting`.""" + pubkeySettings( """Only read the first `n` values of the set.""" first: Int @@ -2162,14 +2106,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UsageSnapshotFilter + where: PubkeySettingFilter - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!] = [PRIMARY_KEY_ASC] - ): UsageSnapshotConnection + """The method to use when ordering `PubkeySetting`.""" + orderBy: [PubkeySettingOrderBy!] = [PRIMARY_KEY_ASC] + ): PubkeySettingConnection - """Reads and enables pagination through a set of `AppClaimedInvite`.""" - appClaimedInvites( + """Reads and enables pagination through a set of `RateLimitsModule`.""" + rateLimitsModules( """Only read the first `n` values of the set.""" first: Int @@ -2191,14 +2135,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppClaimedInviteFilter + where: RateLimitsModuleFilter - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppClaimedInviteConnection + """The method to use when ordering `RateLimitsModule`.""" + orderBy: [RateLimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RateLimitsModuleConnection - """Reads and enables pagination through a set of `AppMembershipDefault`.""" - appMembershipDefaults( + """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" + orgChartEdgeGrants( """Only read the first `n` values of the set.""" first: Int @@ -2220,14 +2164,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipDefaultFilter + where: OrgChartEdgeGrantFilter - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultConnection + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantConnection - """Reads and enables pagination through a set of `OrgMembershipDefault`.""" - orgMembershipDefaults( + """Reads and enables pagination through a set of `PhoneNumber`.""" + phoneNumbers( """Only read the first `n` values of the set.""" first: Int @@ -2249,14 +2193,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipDefaultFilter + where: PhoneNumberFilter - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultConnection + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumberConnection - """Reads and enables pagination through a set of `AuditLog`.""" - auditLogs( + """Reads and enables pagination through a set of `UsageSnapshot`.""" + usageSnapshots( """Only read the first `n` values of the set.""" first: Int @@ -2278,11 +2222,98 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AuditLogFilter + where: UsageSnapshotFilter - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] - ): AuditLogConnection + """The method to use when ordering `UsageSnapshot`.""" + orderBy: [UsageSnapshotOrderBy!] = [PRIMARY_KEY_ASC] + ): UsageSnapshotConnection + + """Reads and enables pagination through a set of `AppClaimedInvite`.""" + appClaimedInvites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppClaimedInviteFilter + + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppClaimedInviteConnection + + """Reads and enables pagination through a set of `OrgLimitWarning`.""" + orgLimitWarnings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgLimitWarningFilter + + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitWarningConnection + + """Reads and enables pagination through a set of `MembershipType`.""" + membershipTypes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: MembershipTypeFilter + + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypeConnection """Reads and enables pagination through a set of `Domain`.""" domains( @@ -2400,35 +2431,6 @@ type Query { orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] ): AgentThreadConnection - """Reads and enables pagination through a set of `Email`.""" - emails( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: EmailFilter - - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] - ): EmailConnection - """Reads and enables pagination through a set of `AppGrant`.""" appGrants( """Only read the first `n` values of the set.""" @@ -2487,8 +2489,8 @@ type Query { orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] ): OrgClaimedInviteConnection - """Reads and enables pagination through a set of `AppLimitEvent`.""" - appLimitEvents( + """Reads and enables pagination through a set of `BlueprintConstruction`.""" + blueprintConstructions( """Only read the first `n` values of the set.""" first: Int @@ -2510,14 +2512,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitEventFilter + where: BlueprintConstructionFilter - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!] = [NATURAL] - ): AppLimitEventConnection + """The method to use when ordering `BlueprintConstruction`.""" + orderBy: [BlueprintConstructionOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintConstructionConnection - """Reads and enables pagination through a set of `OrgLimitEvent`.""" - orgLimitEvents( + """Reads and enables pagination through a set of `RlsModule`.""" + rlsModules( """Only read the first `n` values of the set.""" first: Int @@ -2539,14 +2541,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitEventFilter + where: RlsModuleFilter - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!] = [NATURAL] - ): OrgLimitEventConnection + """The method to use when ordering `RlsModule`.""" + orderBy: [RlsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RlsModuleConnection - """Reads and enables pagination through a set of `OrgChartEdge`.""" - orgChartEdges( + """Reads and enables pagination through a set of `SessionsModule`.""" + sessionsModules( """Only read the first `n` values of the set.""" first: Int @@ -2568,14 +2570,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeFilter + where: SessionsModuleFilter - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SessionsModuleConnection - """Reads and enables pagination through a set of `Partition`.""" - partitions( + """Reads and enables pagination through a set of `OrgMemberProfile`.""" + orgMemberProfiles( """Only read the first `n` values of the set.""" first: Int @@ -2597,14 +2599,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PartitionFilter + where: OrgMemberProfileFilter - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] - ): PartitionConnection + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMemberProfileConnection - """Reads and enables pagination through a set of `BlueprintConstruction`.""" - blueprintConstructions( + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrants( """Only read the first `n` values of the set.""" first: Int @@ -2626,14 +2628,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: BlueprintConstructionFilter + where: OrgGrantFilter - """The method to use when ordering `BlueprintConstruction`.""" - orderBy: [BlueprintConstructionOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintConstructionConnection + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection - """Reads and enables pagination through a set of `RlsModule`.""" - rlsModules( + """Reads and enables pagination through a set of `AuditLog`.""" + auditLogs( """Only read the first `n` values of the set.""" first: Int @@ -2655,14 +2657,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: RlsModuleFilter + where: AuditLogFilter - """The method to use when ordering `RlsModule`.""" - orderBy: [RlsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RlsModuleConnection + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogConnection - """Reads and enables pagination through a set of `SessionsModule`.""" - sessionsModules( + """Reads and enables pagination through a set of `Partition`.""" + partitions( """Only read the first `n` values of the set.""" first: Int @@ -2684,14 +2686,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SessionsModuleFilter + where: PartitionFilter - """The method to use when ordering `SessionsModule`.""" - orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SessionsModuleConnection + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] + ): PartitionConnection - """Reads and enables pagination through a set of `OrgGrant`.""" - orgGrants( + """Reads and enables pagination through a set of `Blueprint`.""" + blueprints( """Only read the first `n` values of the set.""" first: Int @@ -2713,14 +2715,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgGrantFilter + where: BlueprintFilter - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgGrantConnection + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintConnection - """Reads and enables pagination through a set of `Blueprint`.""" - blueprints( + """ + Reads and enables pagination through a set of `DenormalizedTableField`. + """ + denormalizedTableFields( """Only read the first `n` values of the set.""" first: Int @@ -2742,16 +2746,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: BlueprintFilter + where: DenormalizedTableFieldFilter - """The method to use when ordering `Blueprint`.""" - orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintConnection + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldConnection - """ - Reads and enables pagination through a set of `DenormalizedTableField`. - """ - denormalizedTableFields( + """Reads and enables pagination through a set of `InferenceLogModule`.""" + inferenceLogModules( """Only read the first `n` values of the set.""" first: Int @@ -2773,11 +2775,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DenormalizedTableFieldFilter + where: InferenceLogModuleFilter - """The method to use when ordering `DenormalizedTableField`.""" - orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] - ): DenormalizedTableFieldConnection + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InferenceLogModuleConnection """Reads and enables pagination through a set of `RateLimitMetersModule`.""" rateLimitMetersModules( @@ -2866,8 +2868,8 @@ type Query { orderBy: [PlansModuleOrderBy!] = [PRIMARY_KEY_ASC] ): PlansModuleConnection - """Reads and enables pagination through a set of `AppLimit`.""" - appLimits( + """Reads and enables pagination through a set of `Email`.""" + emails( """Only read the first `n` values of the set.""" first: Int @@ -2889,14 +2891,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitFilter + where: EmailFilter - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitConnection + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailConnection - """Reads and enables pagination through a set of `OrgMemberProfile`.""" - orgMemberProfiles( + """Reads and enables pagination through a set of `SqlAction`.""" + sqlActions( """Only read the first `n` values of the set.""" first: Int @@ -2918,14 +2920,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMemberProfileFilter + where: SqlActionFilter - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberProfileConnection + """The method to use when ordering `SqlAction`.""" + orderBy: [SqlActionOrderBy!] = [NATURAL] + ): SqlActionConnection - """Reads and enables pagination through a set of `SqlAction`.""" - sqlActions( + """Reads and enables pagination through a set of `AppLimitEvent`.""" + appLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -2947,14 +2949,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SqlActionFilter + where: AppLimitEventFilter - """The method to use when ordering `SqlAction`.""" - orderBy: [SqlActionOrderBy!] = [NATURAL] - ): SqlActionConnection + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitEventConnection - """Reads and enables pagination through a set of `DatabaseTransfer`.""" - databaseTransfers( + """Reads and enables pagination through a set of `OrgLimitEvent`.""" + orgLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -2976,14 +2978,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseTransferFilter + where: OrgLimitEventFilter - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseTransferConnection + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitEventConnection - """Reads and enables pagination through a set of `DatabaseSetting`.""" - databaseSettings( + """Reads and enables pagination through a set of `DatabaseTransfer`.""" + databaseTransfers( """Only read the first `n` values of the set.""" first: Int @@ -3005,14 +3007,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseSettingFilter + where: DatabaseTransferFilter - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseSettingConnection + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseTransferConnection - """Reads and enables pagination through a set of `BillingModule`.""" - billingModules( + """Reads and enables pagination through a set of `DatabaseSetting`.""" + databaseSettings( """Only read the first `n` values of the set.""" first: Int @@ -3034,11 +3036,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: BillingModuleFilter + where: DatabaseSettingFilter - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): BillingModuleConnection + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseSettingConnection """Reads and enables pagination through a set of `CryptoAuthModule`.""" cryptoAuthModules( @@ -3129,8 +3131,8 @@ type Query { orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] ): InvitesModuleConnection - """Reads and enables pagination through a set of `SecureTableProvision`.""" - secureTableProvisions( + """Reads and enables pagination through a set of `OrgMembershipSetting`.""" + orgMembershipSettings( """Only read the first `n` values of the set.""" first: Int @@ -3152,14 +3154,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SecureTableProvisionFilter + where: OrgMembershipSettingFilter - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): SecureTableProvisionConnection + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingConnection - """Reads and enables pagination through a set of `OrgLimitAggregate`.""" - orgLimitAggregates( + """Reads and enables pagination through a set of `SecureTableProvision`.""" + secureTableProvisions( """Only read the first `n` values of the set.""" first: Int @@ -3181,14 +3183,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitAggregateFilter + where: SecureTableProvisionFilter - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateConnection + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): SecureTableProvisionConnection - """Reads and enables pagination through a set of `OrgLimit`.""" - orgLimits( + """Reads and enables pagination through a set of `AppLimit`.""" + appLimits( """Only read the first `n` values of the set.""" first: Int @@ -3210,14 +3212,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitFilter + where: AppLimitFilter - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitConnection + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitConnection - """Reads and enables pagination through a set of `AstMigration`.""" - astMigrations( + """Reads and enables pagination through a set of `ApiSetting`.""" + apiSettings( """Only read the first `n` values of the set.""" first: Int @@ -3239,14 +3241,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AstMigrationFilter + where: ApiSettingFilter - """The method to use when ordering `AstMigration`.""" - orderBy: [AstMigrationOrderBy!] = [NATURAL] - ): AstMigrationConnection + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSettingConnection - """Reads and enables pagination through a set of `ApiSetting`.""" - apiSettings( + """Reads and enables pagination through a set of `Enum`.""" + enums( """Only read the first `n` values of the set.""" first: Int @@ -3268,14 +3270,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiSettingFilter + where: EnumFilter - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSettingConnection + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] + ): EnumConnection - """Reads and enables pagination through a set of `Enum`.""" - enums( + """Reads and enables pagination through a set of `OrgLimitAggregate`.""" + orgLimitAggregates( """Only read the first `n` values of the set.""" first: Int @@ -3297,14 +3299,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EnumFilter + where: OrgLimitAggregateFilter - """The method to use when ordering `Enum`.""" - orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] - ): EnumConnection + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateConnection - """Reads and enables pagination through a set of `User`.""" - users( + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimits( """Only read the first `n` values of the set.""" first: Int @@ -3326,11 +3328,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UserFilter + where: OrgLimitFilter - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!] = [PRIMARY_KEY_ASC] - ): UserConnection + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitConnection """Reads and enables pagination through a set of `View`.""" views( @@ -3361,8 +3363,8 @@ type Query { orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] ): ViewConnection - """Reads and enables pagination through a set of `WebauthnAuthModule`.""" - webauthnAuthModules( + """Reads and enables pagination through a set of `BillingModule`.""" + billingModules( """Only read the first `n` values of the set.""" first: Int @@ -3384,14 +3386,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: WebauthnAuthModuleFilter + where: BillingModuleFilter - """The method to use when ordering `WebauthnAuthModule`.""" - orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnAuthModuleConnection + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): BillingModuleConnection - """Reads and enables pagination through a set of `AppInvite`.""" - appInvites( + """Reads and enables pagination through a set of `WebauthnAuthModule`.""" + webauthnAuthModules( """Only read the first `n` values of the set.""" first: Int @@ -3413,14 +3415,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppInviteFilter + where: WebauthnAuthModuleFilter - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppInviteConnection + """The method to use when ordering `WebauthnAuthModule`.""" + orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): WebauthnAuthModuleConnection - """Reads and enables pagination through a set of `OrgMembershipSetting`.""" - orgMembershipSettings( + """Reads and enables pagination through a set of `AppMembership`.""" + appMemberships( """Only read the first `n` values of the set.""" first: Int @@ -3442,14 +3444,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipSettingFilter + where: AppMembershipFilter - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingConnection + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipConnection - """Reads and enables pagination through a set of `App`.""" - apps( + """Reads and enables pagination through a set of `User`.""" + users( """Only read the first `n` values of the set.""" first: Int @@ -3471,14 +3473,43 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppFilter + where: UserFilter - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] - ): AppConnection + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!] = [PRIMARY_KEY_ASC] + ): UserConnection - """Reads and enables pagination through a set of `Site`.""" - sites( + """Reads and enables pagination through a set of `App`.""" + apps( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppFilter + + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] + ): AppConnection + + """Reads and enables pagination through a set of `Site`.""" + sites( """Only read the first `n` values of the set.""" first: Int @@ -3564,6 +3595,35 @@ type Query { orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): PermissionsModuleConnection + """Reads and enables pagination through a set of `AstMigration`.""" + astMigrations( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AstMigrationFilter + + """The method to use when ordering `AstMigration`.""" + orderBy: [AstMigrationOrderBy!] = [NATURAL] + ): AstMigrationConnection + """Reads and enables pagination through a set of `WebauthnCredential`.""" webauthnCredentials( """Only read the first `n` values of the set.""" @@ -3796,8 +3856,8 @@ type Query { orderBy: [WebauthnSettingOrderBy!] = [PRIMARY_KEY_ASC] ): WebauthnSettingConnection - """Reads and enables pagination through a set of `AppMembership`.""" - appMemberships( + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMemberships( """Only read the first `n` values of the set.""" first: Int @@ -3819,11 +3879,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipFilter + where: OrgMembershipFilter - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipConnection + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection """Reads and enables pagination through a set of `Schema`.""" schemas( @@ -3883,8 +3943,8 @@ type Query { orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] ): IndexConnection - """Reads and enables pagination through a set of `OrgInvite`.""" - orgInvites( + """Reads and enables pagination through a set of `AppInvite`.""" + appInvites( """Only read the first `n` values of the set.""" first: Int @@ -3906,11 +3966,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgInviteFilter + where: AppInviteFilter - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgInviteConnection + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppInviteConnection """Reads and enables pagination through a set of `BillingProviderModule`.""" billingProviderModules( @@ -4028,8 +4088,8 @@ type Query { orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] ): ProfilesModuleConnection - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMemberships( + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( """Only read the first `n` values of the set.""" first: Int @@ -4051,14 +4111,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipFilter + where: EmbeddingChunkFilter - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipConnection + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunks( + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( """Only read the first `n` values of the set.""" first: Int @@ -4080,14 +4140,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EmbeddingChunkFilter + where: ForeignKeyConstraintFilter - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - ): EmbeddingChunkConnection + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection - """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" - foreignKeyConstraints( + """Reads and enables pagination through a set of `OrgInvite`.""" + orgInvites( """Only read the first `n` values of the set.""" first: Int @@ -4109,11 +4169,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ForeignKeyConstraintFilter + where: OrgInviteFilter - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintConnection + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgInviteConnection """Reads and enables pagination through a set of `RelationProvision`.""" relationProvisions( @@ -4289,8 +4349,8 @@ type Query { orderBy: [LimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): LimitsModuleConnection - """Reads and enables pagination through a set of `StorageModule`.""" - storageModules( + """Reads and enables pagination through a set of `MembershipsModule`.""" + membershipsModules( """Only read the first `n` values of the set.""" first: Int @@ -4312,14 +4372,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: StorageModuleFilter + where: MembershipsModuleFilter - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): StorageModuleConnection + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipsModuleConnection - """Reads and enables pagination through a set of `MembershipsModule`.""" - membershipsModules( + """Reads and enables pagination through a set of `StorageModule`.""" + storageModules( """Only read the first `n` values of the set.""" first: Int @@ -4341,11 +4401,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipsModuleFilter + where: StorageModuleFilter - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipsModuleConnection + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): StorageModuleConnection """Reads and enables pagination through a set of `EventsModule`.""" eventsModules( @@ -4513,6 +4573,52 @@ type GetAllEdge { node: GetAllRecord } +"""A connection to a list of `Object` values.""" +type ObjectConnection { + """A list of `Object` objects.""" + nodes: [Object]! + + """ + A list of edges which contains the `Object` and cursor to aid in pagination. + """ + edges: [ObjectEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Object` you could get from the connection.""" + totalCount: Int! +} + +type Object { + hashUuid: UUID + id: UUID! + scopeId: UUID! + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime +} + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +"""A `Object` edge in the connection.""" +type ObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Object` at the end of the edge.""" + node: Object +} + """A connection to a list of `AppPermission` values.""" type AppPermissionConnection { """A list of `AppPermission` objects.""" @@ -4611,52 +4717,6 @@ type OrgPermissionEdge { node: OrgPermission } -"""A connection to a list of `Object` values.""" -type ObjectConnection { - """A list of `Object` objects.""" - nodes: [Object]! - - """ - A list of edges which contains the `Object` and cursor to aid in pagination. - """ - edges: [ObjectEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Object` you could get from the connection.""" - totalCount: Int! -} - -type Object { - hashUuid: UUID - id: UUID! - databaseId: UUID! - kids: [UUID] - ktree: [String] - data: JSON - frzn: Boolean - createdAt: Datetime -} - -""" -A point in time as described by the [ISO -8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC -3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values -that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead -to unexpected results. -""" -scalar Datetime - -"""A `Object` edge in the connection.""" -type ObjectEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Object` at the end of the edge.""" - node: Object -} - type User { id: UUID! username: String @@ -7565,9 +7625,9 @@ type Database { ): EmailsModuleConnection! """ - Reads and enables pagination through a set of `EncryptedSecretsModule`. + Reads and enables pagination through a set of `ConfigSecretsUserModule`. """ - encryptedSecretsModules( + configSecretsUserModules( """Only read the first `n` values of the set.""" first: Int @@ -7589,11 +7649,11 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: EncryptedSecretsModuleFilter + where: ConfigSecretsUserModuleFilter - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleConnection! + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleConnection! """Reads and enables pagination through a set of `InvitesModule`.""" invitesModules( @@ -8323,6 +8383,42 @@ type Database { """ rateLimitMetersModule: RateLimitMetersModule + """ + Reads and enables pagination through a set of `ConfigSecretsOrgModule`. + """ + configSecretsOrgModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ConfigSecretsOrgModuleFilter + + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleConnection! + + """ + Reads a single `InferenceLogModule` that is related to this `Database`. + """ + inferenceLogModule: InferenceLogModule + """ Reads and enables pagination through a set of `DatabaseProvisionModule`. """ @@ -8771,6 +8867,37 @@ type Schema { """The method to use when ordering `RealtimeModule`.""" orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] ): RealtimeModuleConnection! + + """ + Reads and enables pagination through a set of `ConfigSecretsOrgModule`. + """ + configSecretsOrgModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ConfigSecretsOrgModuleFilter + + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleConnection! } enum ObjectCategory { @@ -9559,6 +9686,37 @@ type Table { """The method to use when ordering `RealtimeModule`.""" orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] ): RealtimeModuleConnection! + + """ + Reads and enables pagination through a set of `ConfigSecretsOrgModule`. + """ + configSecretsOrgModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ConfigSecretsOrgModuleFilter + + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleConnection! } """A connection to a list of `CheckConstraint` values.""" @@ -10470,11 +10628,11 @@ input DatabaseFilter { """`emailsModules` exist.""" emailsModulesExist: Boolean - """Filter by the object’s `encryptedSecretsModules` relation.""" - encryptedSecretsModules: DatabaseToManyEncryptedSecretsModuleFilter + """Filter by the object’s `configSecretsUserModules` relation.""" + configSecretsUserModules: DatabaseToManyConfigSecretsUserModuleFilter - """`encryptedSecretsModules` exist.""" - encryptedSecretsModulesExist: Boolean + """`configSecretsUserModules` exist.""" + configSecretsUserModulesExist: Boolean """Filter by the object’s `invitesModules` relation.""" invitesModules: DatabaseToManyInvitesModuleFilter @@ -10668,6 +10826,18 @@ input DatabaseFilter { """A related `rateLimitMetersModule` exists.""" rateLimitMetersModuleExists: Boolean + """Filter by the object’s `configSecretsOrgModules` relation.""" + configSecretsOrgModules: DatabaseToManyConfigSecretsOrgModuleFilter + + """`configSecretsOrgModules` exist.""" + configSecretsOrgModulesExist: Boolean + + """Filter by the object’s `inferenceLogModule` relation.""" + inferenceLogModule: InferenceLogModuleFilter + + """A related `inferenceLogModule` exists.""" + inferenceLogModuleExists: Boolean + """Filter by the object’s `databaseProvisionModules` relation.""" databaseProvisionModules: DatabaseToManyDatabaseProvisionModuleFilter @@ -14392,6 +14562,12 @@ input SchemaFilter { """`realtimeModulesBySubscriptionsSchemaId` exist.""" realtimeModulesBySubscriptionsSchemaIdExist: Boolean + + """Filter by the object’s `configSecretsOrgModules` relation.""" + configSecretsOrgModules: SchemaToManyConfigSecretsOrgModuleFilter + + """`configSecretsOrgModules` exist.""" + configSecretsOrgModulesExist: Boolean } """ @@ -14663,6 +14839,12 @@ input TableFilter { """`realtimeModulesBySourceRegistryTableId` exist.""" realtimeModulesBySourceRegistryTableIdExist: Boolean + + """Filter by the object’s `configSecretsOrgModules` relation.""" + configSecretsOrgModules: TableToManyConfigSecretsOrgModuleFilter + + """`configSecretsOrgModules` exist.""" + configSecretsOrgModulesExist: Boolean } """ @@ -15965,6 +16147,9 @@ input PartitionFilter { """Filter by the object’s `retention` field.""" retention: StringFilter + """Filter by the object’s `retentionKeepTable` field.""" + retentionKeepTable: BooleanFilter + """Filter by the object’s `premake` field.""" premake: IntFilter @@ -16439,6 +16624,58 @@ input RealtimeModuleFilter { subscriptionsSchema: SchemaFilter } +""" +A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyConfigSecretsOrgModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ConfigSecretsOrgModuleFilter + + """Filters to entities where every related entity matches.""" + every: ConfigSecretsOrgModuleFilter + + """Filters to entities where no related entity matches.""" + none: ConfigSecretsOrgModuleFilter +} + +""" +A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ +""" +input ConfigSecretsOrgModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `tableName` field.""" + tableName: StringFilter + + """Checks for all expressions in this list.""" + and: [ConfigSecretsOrgModuleFilter!] + + """Checks for any expressions in this list.""" + or: [ConfigSecretsOrgModuleFilter!] + + """Negates the expression.""" + not: ConfigSecretsOrgModuleFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + """ A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ """ @@ -17751,6 +17988,20 @@ input SchemaToManyRealtimeModuleFilter { none: RealtimeModuleFilter } +""" +A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManyConfigSecretsOrgModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ConfigSecretsOrgModuleFilter + + """Filters to entities where every related entity matches.""" + every: ConfigSecretsOrgModuleFilter + + """Filters to entities where no related entity matches.""" + none: ConfigSecretsOrgModuleFilter +} + """ A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ """ @@ -19074,23 +19325,23 @@ input EmailsModuleFilter { } """ -A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ """ -input DatabaseToManyEncryptedSecretsModuleFilter { +input DatabaseToManyConfigSecretsUserModuleFilter { """Filters to entities where at least one related entity matches.""" - some: EncryptedSecretsModuleFilter + some: ConfigSecretsUserModuleFilter """Filters to entities where every related entity matches.""" - every: EncryptedSecretsModuleFilter + every: ConfigSecretsUserModuleFilter """Filters to entities where no related entity matches.""" - none: EncryptedSecretsModuleFilter + none: ConfigSecretsUserModuleFilter } """ -A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ """ -input EncryptedSecretsModuleFilter { +input ConfigSecretsUserModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -19107,13 +19358,13 @@ input EncryptedSecretsModuleFilter { tableName: StringFilter """Checks for all expressions in this list.""" - and: [EncryptedSecretsModuleFilter!] + and: [ConfigSecretsUserModuleFilter!] """Checks for any expressions in this list.""" - or: [EncryptedSecretsModuleFilter!] + or: [ConfigSecretsUserModuleFilter!] """Negates the expression.""" - not: EncryptedSecretsModuleFilter + not: ConfigSecretsUserModuleFilter """Filter by the object’s `database` relation.""" database: DatabaseFilter @@ -20989,6 +21240,9 @@ input StorageModuleFilter { """Filter by the object’s `membershipType` field.""" membershipType: IntFilter + """Filter by the object’s `storageKey` field.""" + storageKey: StringFilter + """Filter by the object’s `policies` field.""" policies: JSONFilter @@ -21775,6 +22029,12 @@ input BillingModuleFilter { """Filter by the object’s `balancesTableName` field.""" balancesTableName: StringFilter + """Filter by the object’s `meterCreditsTableId` field.""" + meterCreditsTableId: UUIDFilter + + """Filter by the object’s `meterCreditsTableName` field.""" + meterCreditsTableName: StringFilter + """Filter by the object’s `recordUsageFunction` field.""" recordUsageFunction: StringFilter @@ -21799,6 +22059,9 @@ input BillingModuleFilter { """Filter by the object’s `ledgerTable` relation.""" ledgerTable: TableFilter + """Filter by the object’s `meterCreditsTable` relation.""" + meterCreditsTable: TableFilter + """Filter by the object’s `metersTable` relation.""" metersTable: TableFilter @@ -22022,6 +22285,85 @@ input RateLimitMetersModuleFilter { schema: SchemaFilter } +""" +A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyConfigSecretsOrgModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ConfigSecretsOrgModuleFilter + + """Filters to entities where every related entity matches.""" + every: ConfigSecretsOrgModuleFilter + + """Filters to entities where no related entity matches.""" + none: ConfigSecretsOrgModuleFilter +} + +""" +A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input InferenceLogModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `inferenceLogTableId` field.""" + inferenceLogTableId: UUIDFilter + + """Filter by the object’s `inferenceLogTableName` field.""" + inferenceLogTableName: StringFilter + + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter + + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Checks for all expressions in this list.""" + and: [InferenceLogModuleFilter!] + + """Checks for any expressions in this list.""" + or: [InferenceLogModuleFilter!] + + """Negates the expression.""" + not: InferenceLogModuleFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `inferenceLogTable` relation.""" + inferenceLogTable: TableFilter + + """Filter by the object’s `privateSchema` relation.""" + privateSchema: SchemaFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `usageDailyTable` relation.""" + usageDailyTable: TableFilter +} + """ A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ """ @@ -23484,7 +23826,7 @@ type EmbeddingChunk { chunkOverlap: Int! chunkStrategy: String! metadataFields: JSON - searchIndexes: JSON! + searchIndexes: JSON enqueueChunkingJob: Boolean! chunkingTaskName: String! embeddingModel: String @@ -23575,6 +23917,7 @@ type Partition { partitionKeyId: UUID! interval: String retention: String + retentionKeepTable: Boolean! premake: Int! namingPattern: String! createdAt: Datetime! @@ -24242,6 +24585,77 @@ enum RealtimeModuleOrderBy { NOTIFY_CHANNEL_DESC } +"""A connection to a list of `ConfigSecretsOrgModule` values.""" +type ConfigSecretsOrgModuleConnection { + """A list of `ConfigSecretsOrgModule` objects.""" + nodes: [ConfigSecretsOrgModule]! + + """ + A list of edges which contains the `ConfigSecretsOrgModule` and cursor to aid in pagination. + """ + edges: [ConfigSecretsOrgModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ConfigSecretsOrgModule` you could get from the connection. + """ + totalCount: Int! +} + +""" +Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. +""" +type ConfigSecretsOrgModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! + + """ + Reads a single `Database` that is related to this `ConfigSecretsOrgModule`. + """ + database: Database + + """ + Reads a single `Schema` that is related to this `ConfigSecretsOrgModule`. + """ + schema: Schema + + """ + Reads a single `Table` that is related to this `ConfigSecretsOrgModule`. + """ + table: Table +} + +"""A `ConfigSecretsOrgModule` edge in the connection.""" +type ConfigSecretsOrgModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ConfigSecretsOrgModule` at the end of the edge.""" + node: ConfigSecretsOrgModule +} + +"""Methods to use when ordering `ConfigSecretsOrgModule`.""" +enum ConfigSecretsOrgModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC +} + """A `Table` edge in the connection.""" type TableEdge { """A cursor for use in pagination.""" @@ -25700,6 +26114,8 @@ enum PartitionOrderBy { INTERVAL_DESC RETENTION_ASC RETENTION_DESC + RETENTION_KEEP_TABLE_ASC + RETENTION_KEEP_TABLE_DESC PREMAKE_ASC PREMAKE_DESC NAMING_PATTERN_ASC @@ -26704,26 +27120,26 @@ enum EmailsModuleOrderBy { TABLE_NAME_DESC } -"""A connection to a list of `EncryptedSecretsModule` values.""" -type EncryptedSecretsModuleConnection { - """A list of `EncryptedSecretsModule` objects.""" - nodes: [EncryptedSecretsModule]! +"""A connection to a list of `ConfigSecretsUserModule` values.""" +type ConfigSecretsUserModuleConnection { + """A list of `ConfigSecretsUserModule` objects.""" + nodes: [ConfigSecretsUserModule]! """ - A list of edges which contains the `EncryptedSecretsModule` and cursor to aid in pagination. + A list of edges which contains the `ConfigSecretsUserModule` and cursor to aid in pagination. """ - edges: [EncryptedSecretsModuleEdge]! + edges: [ConfigSecretsUserModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `EncryptedSecretsModule` you could get from the connection. + The count of *all* `ConfigSecretsUserModule` you could get from the connection. """ totalCount: Int! } -type EncryptedSecretsModule { +type ConfigSecretsUserModule { id: UUID! databaseId: UUID! schemaId: UUID! @@ -26731,32 +27147,32 @@ type EncryptedSecretsModule { tableName: String! """ - Reads a single `Database` that is related to this `EncryptedSecretsModule`. + Reads a single `Database` that is related to this `ConfigSecretsUserModule`. """ database: Database """ - Reads a single `Schema` that is related to this `EncryptedSecretsModule`. + Reads a single `Schema` that is related to this `ConfigSecretsUserModule`. """ schema: Schema """ - Reads a single `Table` that is related to this `EncryptedSecretsModule`. + Reads a single `Table` that is related to this `ConfigSecretsUserModule`. """ table: Table } -"""A `EncryptedSecretsModule` edge in the connection.""" -type EncryptedSecretsModuleEdge { +"""A `ConfigSecretsUserModule` edge in the connection.""" +type ConfigSecretsUserModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `EncryptedSecretsModule` at the end of the edge.""" - node: EncryptedSecretsModule + """The `ConfigSecretsUserModule` at the end of the edge.""" + node: ConfigSecretsUserModule } -"""Methods to use when ordering `EncryptedSecretsModule`.""" -enum EncryptedSecretsModuleOrderBy { +"""Methods to use when ordering `ConfigSecretsUserModule`.""" +enum ConfigSecretsUserModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -28800,6 +29216,7 @@ type StorageModule { bucketsTableName: String! filesTableName: String! membershipType: Int + storageKey: String! policies: JSON skipDefaultPolicyTables: [String]! entityTableId: UUID @@ -28882,6 +29299,8 @@ enum StorageModuleOrderBy { FILES_TABLE_NAME_DESC MEMBERSHIP_TYPE_ASC MEMBERSHIP_TYPE_DESC + STORAGE_KEY_ASC + STORAGE_KEY_DESC POLICIES_ASC POLICIES_DESC SKIP_DEFAULT_POLICY_TABLES_ASC @@ -29066,36 +29485,34 @@ type EntityTypeProvision { hasInviteAchievements: Boolean! """ - Optional jsonb object for storage module configuration and initial bucket seeding. - Only used when has_storage = true; ignored otherwise. NULL = use defaults. - Recognized keys (all optional): - - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - - download_url_expiry_seconds (integer) presigned GET URL expiry override - - default_max_file_size (bigint) global max file size in bytes for this scope - - allowed_origins (text[]) default CORS origins for all buckets in this scope - - buckets (jsonb[]) array of initial bucket definitions to seed - Each bucket in the buckets array recognizes: - - name (text, required) bucket name e.g. 'documents' - - description (text) human-readable description - - is_public (boolean) whether files are publicly readable (default false) - - allowed_mime_types (text[]) whitelist of MIME types (null = any) - - max_file_size (bigint) max file size in bytes (null = use scope default) - - allowed_origins (text[]) per-bucket CORS override - - provisions (jsonb object) optional: customize storage tables - with additional nodes, fields, grants, and policies. - Keyed by table role: "files", "buckets". - Each value uses the same shape as table_provision: - { nodes, fields, grants, use_rls, policies }. Fanned out - to secure_table_provision targeting the corresponding table. - When a key includes policies[], those REPLACE the default - storage policies for that table; tables without a key still - get defaults. Missing "data" on policy entries is auto-populated - with storage-specific defaults (same as table_provision). - Example: add SearchBm25 for full-text search on files: - {"provisions": {"files": {"nodes": [{"$type": - "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - Example: - storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + Optional JSON array of storage module definitions. Each element provisions a separate + storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + and feature flags. Only used when has_storage = true; ignored otherwise. + NULL = provision a single default storage module with all defaults. + Each array element recognizes (all optional): + - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + Defaults to 'default' (omitted from table names). + Non-default keys become infixes: {prefix}_{key}_buckets. + - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + - download_url_expiry_seconds (integer) presigned GET URL expiry override + - default_max_file_size (bigint) global max file size in bytes for this module + - allowed_origins (text[]) default CORS origins for all buckets in this module + - restrict_reads (boolean) require read_files permission for SELECT on files + - has_path_shares (boolean) enable virtual filesystem + path share policies + - has_versioning (boolean) enable file version chains + - has_content_hash (boolean) enable content hash for dedup + - has_custom_keys (boolean) allow client-provided S3 keys + - has_audit_log (boolean) enable file events audit table + - has_confirm_upload (boolean) enable HeadObject confirmation flow + - confirm_upload_delay (interval) delay before first confirmation attempt + - buckets (jsonb[]) array of initial bucket definitions to seed. + Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + Each value: { nodes, fields, grants, use_rls, policies }. + Example (single module, backward compat): + storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + Example (multi-module): + storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb """ storageConfig: JSON @@ -29693,6 +30110,8 @@ type BillingModule { ledgerTableName: String! balancesTableId: UUID! balancesTableName: String! + meterCreditsTableId: UUID! + meterCreditsTableName: String! recordUsageFunction: String! prefix: String @@ -29705,6 +30124,9 @@ type BillingModule { """Reads a single `Table` that is related to this `BillingModule`.""" ledgerTable: Table + """Reads a single `Table` that is related to this `BillingModule`.""" + meterCreditsTable: Table + """Reads a single `Table` that is related to this `BillingModule`.""" metersTable: Table @@ -29841,6 +30263,38 @@ type RateLimitMetersModule { schema: Schema } +type InferenceLogModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + inferenceLogTableId: UUID! + inferenceLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String + premake: Int! + prefix: String + + """ + Reads a single `Database` that is related to this `InferenceLogModule`. + """ + database: Database + + """Reads a single `Table` that is related to this `InferenceLogModule`.""" + inferenceLogTable: Table + + """Reads a single `Schema` that is related to this `InferenceLogModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `InferenceLogModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `InferenceLogModule`.""" + usageDailyTable: Table +} + """A connection to a list of `DatabaseProvisionModule` values.""" type DatabaseProvisionModuleConnection { """A list of `DatabaseProvisionModule` objects.""" @@ -33139,43 +33593,6 @@ enum AgentThreadOrderBy { STATUS_DESC } -"""A connection to a list of `RoleType` values.""" -type RoleTypeConnection { - """A list of `RoleType` objects.""" - nodes: [RoleType]! - - """ - A list of edges which contains the `RoleType` and cursor to aid in pagination. - """ - edges: [RoleTypeEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `RoleType` you could get from the connection.""" - totalCount: Int! -} - -"""A `RoleType` edge in the connection.""" -type RoleTypeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RoleType` at the end of the edge.""" - node: RoleType -} - -"""Methods to use when ordering `RoleType`.""" -enum RoleTypeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC -} - """A connection to a list of `IdentityProvider` values.""" type IdentityProviderConnection { """A list of `IdentityProvider` objects.""" @@ -33280,7 +33697,7 @@ type Ref { """The name of the ref or branch""" name: String! - databaseId: UUID! + scopeId: UUID! storeId: UUID! commitId: UUID } @@ -33304,8 +33721,8 @@ input RefFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `storeId` field.""" storeId: UUIDFilter @@ -33332,8 +33749,8 @@ enum RefOrderBy { ID_DESC NAME_ASC NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC STORE_ID_ASC STORE_ID_DESC COMMIT_ID_ASC @@ -33365,8 +33782,8 @@ type Store { """The name of the store (e.g., metaschema, migrations).""" name: String! - """The database this store belongs to.""" - databaseId: UUID! + """The scope this store belongs to.""" + scopeId: UUID! """The current head tree_id for this store.""" hash: UUID @@ -33392,8 +33809,8 @@ input StoreFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `hash` field.""" hash: UUIDFilter @@ -33420,8 +33837,8 @@ enum StoreOrderBy { ID_DESC NAME_ASC NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC HASH_ASC HASH_DESC CREATED_AT_ASC @@ -33497,141 +33914,166 @@ enum AppPermissionDefaultOrderBy { PERMISSIONS_DESC } -"""A connection to a list of `AppLimitCreditCode` values.""" -type AppLimitCreditCodeConnection { - """A list of `AppLimitCreditCode` objects.""" - nodes: [AppLimitCreditCode]! +"""A connection to a list of `RoleType` values.""" +type RoleTypeConnection { + """A list of `RoleType` objects.""" + nodes: [RoleType]! """ - A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. + A list of edges which contains the `RoleType` and cursor to aid in pagination. """ - edges: [AppLimitCreditCodeEdge]! + edges: [RoleTypeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppLimitCreditCode` you could get from the connection. - """ + """The count of *all* `RoleType` you could get from the connection.""" totalCount: Int! } -"""A `AppLimitCreditCode` edge in the connection.""" -type AppLimitCreditCodeEdge { +"""A `RoleType` edge in the connection.""" +type RoleTypeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCreditCode` at the end of the edge.""" - node: AppLimitCreditCode + """The `RoleType` at the end of the edge.""" + node: RoleType } -"""Methods to use when ordering `AppLimitCreditCode`.""" -enum AppLimitCreditCodeOrderBy { +"""Methods to use when ordering `RoleType`.""" +enum RoleTypeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CODE_ASC - CODE_DESC - MAX_REDEMPTIONS_ASC - MAX_REDEMPTIONS_DESC - CURRENT_REDEMPTIONS_ASC - CURRENT_REDEMPTIONS_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `MigrateFile` values.""" +type MigrateFileConnection { + """A list of `MigrateFile` objects.""" + nodes: [MigrateFile]! + + """ + A list of edges which contains the `MigrateFile` and cursor to aid in pagination. + """ + edges: [MigrateFileEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `MigrateFile` you could get from the connection.""" + totalCount: Int! +} + +type MigrateFile { + id: UUID + databaseId: UUID + upload: ConstructiveInternalTypeUpload +} + +scalar ConstructiveInternalTypeUpload + +"""A `MigrateFile` edge in the connection.""" +type MigrateFileEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MigrateFile` at the end of the edge.""" + node: MigrateFile } """ -A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ """ -input AppPermissionFilter { +input MigrateFileFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter - - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `upload` field.""" + upload: ConstructiveInternalTypeUploadFilter """Checks for all expressions in this list.""" - and: [AppPermissionFilter!] + and: [MigrateFileFilter!] """Checks for any expressions in this list.""" - or: [AppPermissionFilter!] + or: [MigrateFileFilter!] """Negates the expression.""" - not: AppPermissionFilter -} - -"""Methods to use when ordering `AppPermission`.""" -enum AppPermissionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + not: MigrateFileFilter } """ -A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ +A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ """ -input OrgPermissionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +input ConstructiveInternalTypeUploadFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Filter by the object’s `name` field.""" - name: StringFilter + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeUpload - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeUpload - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeUpload - """Filter by the object’s `description` field.""" - description: StringFilter + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeUpload - """Checks for all expressions in this list.""" - and: [OrgPermissionFilter!] + """Included in the specified list.""" + in: [ConstructiveInternalTypeUpload!] - """Checks for any expressions in this list.""" - or: [OrgPermissionFilter!] + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeUpload!] - """Negates the expression.""" - not: OrgPermissionFilter + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeUpload + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeUpload + + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeUpload + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeUpload + + """Contains the specified JSON.""" + contains: ConstructiveInternalTypeUpload + + """Contains the specified key.""" + containsKey: String + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contained by the specified JSON.""" + containedBy: ConstructiveInternalTypeUpload } -"""Methods to use when ordering `OrgPermission`.""" -enum OrgPermissionOrderBy { +"""Methods to use when ordering `MigrateFile`.""" +enum MigrateFileOrderBy { NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + UPLOAD_ASC + UPLOAD_DESC } """A connection to a list of `AppLimitCapsDefault` values.""" @@ -33796,576 +34238,493 @@ enum OrgLimitCapsDefaultOrderBy { MAX_DESC } -"""A connection to a list of `AppLimitCap` values.""" -type AppLimitCapConnection { - """A list of `AppLimitCap` objects.""" - nodes: [AppLimitCap]! +"""A connection to a list of `DevicesModule` values.""" +type DevicesModuleConnection { + """A list of `DevicesModule` objects.""" + nodes: [DevicesModule]! """ - A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. + A list of edges which contains the `DevicesModule` and cursor to aid in pagination. """ - edges: [AppLimitCapEdge]! + edges: [DevicesModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimitCap` you could get from the connection.""" + """The count of *all* `DevicesModule` you could get from the connection.""" totalCount: Int! } -""" -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. -""" -type AppLimitCap { - id: UUID! - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt! -} - -"""A `AppLimitCap` edge in the connection.""" -type AppLimitCapEdge { +"""A `DevicesModule` edge in the connection.""" +type DevicesModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCap` at the end of the edge.""" - node: AppLimitCap -} - -""" -A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCapFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCapFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCapFilter!] - - """Negates the expression.""" - not: AppLimitCapFilter + """The `DevicesModule` at the end of the edge.""" + node: DevicesModule } -"""Methods to use when ordering `AppLimitCap`.""" -enum AppLimitCapOrderBy { +"""Methods to use when ordering `DevicesModule`.""" +enum DevicesModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - MAX_ASC - MAX_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + USER_DEVICES_TABLE_ID_ASC + USER_DEVICES_TABLE_ID_DESC + DEVICE_SETTINGS_TABLE_ID_ASC + DEVICE_SETTINGS_TABLE_ID_DESC + USER_DEVICES_TABLE_ASC + USER_DEVICES_TABLE_DESC + DEVICE_SETTINGS_TABLE_ASC + DEVICE_SETTINGS_TABLE_DESC } -"""A connection to a list of `OrgLimitCap` values.""" -type OrgLimitCapConnection { - """A list of `OrgLimitCap` objects.""" - nodes: [OrgLimitCap]! +"""A connection to a list of `AppMembershipDefault` values.""" +type AppMembershipDefaultConnection { + """A list of `AppMembershipDefault` objects.""" + nodes: [AppMembershipDefault]! """ - A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. + A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. """ - edges: [OrgLimitCapEdge]! + edges: [AppMembershipDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgLimitCap` you could get from the connection.""" + """ + The count of *all* `AppMembershipDefault` you could get from the connection. + """ totalCount: Int! } """ -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. +Default membership settings per entity, controlling initial approval and verification state for new members """ -type OrgLimitCap { +type AppMembershipDefault { id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! - """Override cap value for this entity""" - max: BigInt! + """Whether new members are automatically verified upon joining""" + isVerified: Boolean! } -"""A `OrgLimitCap` edge in the connection.""" -type OrgLimitCapEdge { +"""A `AppMembershipDefault` edge in the connection.""" +type AppMembershipDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitCap` at the end of the edge.""" - node: OrgLimitCap + """The `AppMembershipDefault` at the end of the edge.""" + node: AppMembershipDefault } """ -A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitCapFilter { +input AppMembershipDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter + + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter """Checks for all expressions in this list.""" - and: [OrgLimitCapFilter!] + and: [AppMembershipDefaultFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitCapFilter!] + or: [AppMembershipDefaultFilter!] """Negates the expression.""" - not: OrgLimitCapFilter + not: AppMembershipDefaultFilter } -"""Methods to use when ordering `OrgLimitCap`.""" -enum OrgLimitCapOrderBy { +"""Methods to use when ordering `AppMembershipDefault`.""" +enum AppMembershipDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - MAX_ASC - MAX_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_VERIFIED_ASC + IS_VERIFIED_DESC } -"""A connection to a list of `MembershipType` values.""" -type MembershipTypeConnection { - """A list of `MembershipType` objects.""" - nodes: [MembershipType]! +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! """ - A list of edges which contains the `MembershipType` and cursor to aid in pagination. + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. """ - edges: [MembershipTypeEdge]! + edges: [OrgMembershipDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `MembershipType` you could get from the connection.""" + """ + The count of *all* `OrgMembershipDefault` you could get from the connection. + """ totalCount: Int! } -""" -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) -""" -type MembershipType { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Human-readable name of the membership type""" - name: String! + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault +} - """Description of what this membership type represents""" - description: String! +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum OrgMembershipDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC +} - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! +"""A connection to a list of `NodeTypeRegistry` values.""" +type NodeTypeRegistryConnection { + """A list of `NodeTypeRegistry` objects.""" + nodes: [NodeTypeRegistry]! """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. """ - parentMembershipType: Int + edges: [NodeTypeRegistryEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + The count of *all* `NodeTypeRegistry` you could get from the connection. """ - hasUsersTableEntry: Boolean! + totalCount: Int! } -"""A `MembershipType` edge in the connection.""" -type MembershipTypeEdge { +type NodeTypeRegistry { + name: String! + slug: String! + category: String! + displayName: String + description: String + parameterSchema: JSON! + tags: [String]! +} + +"""A `NodeTypeRegistry` edge in the connection.""" +type NodeTypeRegistryEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `MembershipType` at the end of the edge.""" - node: MembershipType + """The `NodeTypeRegistry` at the end of the edge.""" + node: NodeTypeRegistry } """ -A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ """ -input MembershipTypeFilter { - """Filter by the object’s `id` field.""" - id: IntFilter - +input NodeTypeRegistryFilter { """Filter by the object’s `name` field.""" name: StringFilter + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `category` field.""" + category: StringFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + """Filter by the object’s `description` field.""" description: StringFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `parentMembershipType` field.""" - parentMembershipType: IntFilter + """Filter by the object’s `parameterSchema` field.""" + parameterSchema: JSONFilter - """Filter by the object’s `hasUsersTableEntry` field.""" - hasUsersTableEntry: BooleanFilter + """Filter by the object’s `tags` field.""" + tags: StringListFilter """Checks for all expressions in this list.""" - and: [MembershipTypeFilter!] + and: [NodeTypeRegistryFilter!] """Checks for any expressions in this list.""" - or: [MembershipTypeFilter!] + or: [NodeTypeRegistryFilter!] """Negates the expression.""" - not: MembershipTypeFilter + not: NodeTypeRegistryFilter } -"""Methods to use when ordering `MembershipType`.""" -enum MembershipTypeOrderBy { +"""Methods to use when ordering `NodeTypeRegistry`.""" +enum NodeTypeRegistryOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - ID_ASC - ID_DESC NAME_ASC NAME_DESC + SLUG_ASC + SLUG_DESC + CATEGORY_ASC + CATEGORY_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC DESCRIPTION_ASC DESCRIPTION_DESC - PREFIX_ASC - PREFIX_DESC - PARENT_MEMBERSHIP_TYPE_ASC - PARENT_MEMBERSHIP_TYPE_DESC - HAS_USERS_TABLE_ENTRY_ASC - HAS_USERS_TABLE_ENTRY_DESC + PARAMETER_SCHEMA_ASC + PARAMETER_SCHEMA_DESC + TAGS_ASC + TAGS_DESC } -"""A connection to a list of `MigrateFile` values.""" -type MigrateFileConnection { - """A list of `MigrateFile` objects.""" - nodes: [MigrateFile]! +"""A connection to a list of `AppLimitCap` values.""" +type AppLimitCapConnection { + """A list of `AppLimitCap` objects.""" + nodes: [AppLimitCap]! """ - A list of edges which contains the `MigrateFile` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. """ - edges: [MigrateFileEdge]! + edges: [AppLimitCapEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `MigrateFile` you could get from the connection.""" + """The count of *all* `AppLimitCap` you could get from the connection.""" totalCount: Int! } -type MigrateFile { - id: UUID - databaseId: UUID - upload: ConstructiveInternalTypeUpload -} +""" +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. +""" +type AppLimitCap { + id: UUID! -scalar ConstructiveInternalTypeUpload + """Name identifier of the cap being overridden""" + name: String! -"""A `MigrateFile` edge in the connection.""" -type MigrateFileEdge { + """Entity this cap override applies to""" + entityId: UUID! + + """Override cap value for this entity""" + max: BigInt! +} + +"""A `AppLimitCap` edge in the connection.""" +type AppLimitCapEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `MigrateFile` at the end of the edge.""" - node: MigrateFile + """The `AppLimitCap` at the end of the edge.""" + node: AppLimitCap } """ -A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ """ -input MigrateFileFilter { +input AppLimitCapFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `upload` field.""" - upload: ConstructiveInternalTypeUploadFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter """Checks for all expressions in this list.""" - and: [MigrateFileFilter!] + and: [AppLimitCapFilter!] """Checks for any expressions in this list.""" - or: [MigrateFileFilter!] + or: [AppLimitCapFilter!] """Negates the expression.""" - not: MigrateFileFilter -} - -""" -A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeUploadFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeUpload - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeUpload - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: ConstructiveInternalTypeUpload - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeUpload - - """Included in the specified list.""" - in: [ConstructiveInternalTypeUpload!] - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeUpload!] - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeUpload - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeUpload - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeUpload - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeUpload - - """Contains the specified JSON.""" - contains: ConstructiveInternalTypeUpload - - """Contains the specified key.""" - containsKey: String - - """Contains all of the specified keys.""" - containsAllKeys: [String!] - - """Contains any of the specified keys.""" - containsAnyKeys: [String!] - - """Contained by the specified JSON.""" - containedBy: ConstructiveInternalTypeUpload + not: AppLimitCapFilter } -"""Methods to use when ordering `MigrateFile`.""" -enum MigrateFileOrderBy { +"""Methods to use when ordering `AppLimitCap`.""" +enum AppLimitCapOrderBy { NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - UPLOAD_ASC - UPLOAD_DESC + NAME_ASC + NAME_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + MAX_ASC + MAX_DESC } -"""A connection to a list of `DevicesModule` values.""" -type DevicesModuleConnection { - """A list of `DevicesModule` objects.""" - nodes: [DevicesModule]! +"""A connection to a list of `AppLimitDefault` values.""" +type AppLimitDefaultConnection { + """A list of `AppLimitDefault` objects.""" + nodes: [AppLimitDefault]! """ - A list of edges which contains the `DevicesModule` and cursor to aid in pagination. + A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. """ - edges: [DevicesModuleEdge]! + edges: [AppLimitDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `DevicesModule` you could get from the connection.""" + """ + The count of *all* `AppLimitDefault` you could get from the connection. + """ totalCount: Int! } -"""A `DevicesModule` edge in the connection.""" -type DevicesModuleEdge { +"""A `AppLimitDefault` edge in the connection.""" +type AppLimitDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `DevicesModule` at the end of the edge.""" - node: DevicesModule + """The `AppLimitDefault` at the end of the edge.""" + node: AppLimitDefault } -"""Methods to use when ordering `DevicesModule`.""" -enum DevicesModuleOrderBy { +"""Methods to use when ordering `AppLimitDefault`.""" +enum AppLimitDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - USER_DEVICES_TABLE_ID_ASC - USER_DEVICES_TABLE_ID_DESC - DEVICE_SETTINGS_TABLE_ID_ASC - DEVICE_SETTINGS_TABLE_ID_DESC - USER_DEVICES_TABLE_ASC - USER_DEVICES_TABLE_DESC - DEVICE_SETTINGS_TABLE_ASC - DEVICE_SETTINGS_TABLE_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } -"""A connection to a list of `NodeTypeRegistry` values.""" -type NodeTypeRegistryConnection { - """A list of `NodeTypeRegistry` objects.""" - nodes: [NodeTypeRegistry]! +"""A connection to a list of `OrgLimitCap` values.""" +type OrgLimitCapConnection { + """A list of `OrgLimitCap` objects.""" + nodes: [OrgLimitCap]! """ - A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. """ - edges: [NodeTypeRegistryEdge]! + edges: [OrgLimitCapEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `NodeTypeRegistry` you could get from the connection. - """ + """The count of *all* `OrgLimitCap` you could get from the connection.""" totalCount: Int! } -type NodeTypeRegistry { +""" +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. +""" +type OrgLimitCap { + id: UUID! + + """Name identifier of the cap being overridden""" name: String! - slug: String! - category: String! - displayName: String - description: String - parameterSchema: JSON! - tags: [String]! + + """Entity this cap override applies to""" + entityId: UUID! + + """Override cap value for this entity""" + max: BigInt! } -"""A `NodeTypeRegistry` edge in the connection.""" -type NodeTypeRegistryEdge { +"""A `OrgLimitCap` edge in the connection.""" +type OrgLimitCapEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `NodeTypeRegistry` at the end of the edge.""" - node: NodeTypeRegistry + """The `OrgLimitCap` at the end of the edge.""" + node: OrgLimitCap } """ -A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ """ -input NodeTypeRegistryFilter { +input OrgLimitCapFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `slug` field.""" - slug: StringFilter - - """Filter by the object’s `category` field.""" - category: StringFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `parameterSchema` field.""" - parameterSchema: JSONFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `tags` field.""" - tags: StringListFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter """Checks for all expressions in this list.""" - and: [NodeTypeRegistryFilter!] + and: [OrgLimitCapFilter!] """Checks for any expressions in this list.""" - or: [NodeTypeRegistryFilter!] + or: [OrgLimitCapFilter!] """Negates the expression.""" - not: NodeTypeRegistryFilter -} - -"""Methods to use when ordering `NodeTypeRegistry`.""" -enum NodeTypeRegistryOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - NAME_ASC - NAME_DESC - SLUG_ASC - SLUG_DESC - CATEGORY_ASC - CATEGORY_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - PARAMETER_SCHEMA_ASC - PARAMETER_SCHEMA_DESC - TAGS_ASC - TAGS_DESC -} - -"""A connection to a list of `AppLimitDefault` values.""" -type AppLimitDefaultConnection { - """A list of `AppLimitDefault` objects.""" - nodes: [AppLimitDefault]! - - """ - A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. - """ - edges: [AppLimitDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `AppLimitDefault` edge in the connection.""" -type AppLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitDefault` at the end of the edge.""" - node: AppLimitDefault + not: OrgLimitCapFilter } -"""Methods to use when ordering `AppLimitDefault`.""" -enum AppLimitDefaultOrderBy { +"""Methods to use when ordering `OrgLimitCap`.""" +enum OrgLimitCapOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -34373,10 +34732,10 @@ enum AppLimitDefaultOrderBy { ID_DESC NAME_ASC NAME_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC MAX_ASC MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC } """A connection to a list of `OrgLimitDefault` values.""" @@ -34422,103 +34781,6 @@ enum OrgLimitDefaultOrderBy { SOFT_MAX_DESC } -"""A connection to a list of `AppLimitWarning` values.""" -type AppLimitWarningConnection { - """A list of `AppLimitWarning` objects.""" - nodes: [AppLimitWarning]! - - """ - A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. - """ - edges: [AppLimitWarningEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitWarning` you could get from the connection. - """ - totalCount: Int! -} - -""" -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. -""" -type AppLimitWarning { - id: UUID! - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! -} - -"""A `AppLimitWarning` edge in the connection.""" -type AppLimitWarningEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitWarning` at the end of the edge.""" - node: AppLimitWarning -} - -""" -A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitWarningFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `warningType` field.""" - warningType: StringFilter - - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter - - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitWarningFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitWarningFilter!] - - """Negates the expression.""" - not: AppLimitWarningFilter -} - -"""Methods to use when ordering `AppLimitWarning`.""" -enum AppLimitWarningOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC -} - """A connection to a list of `UserConnectedAccount` values.""" type UserConnectedAccountConnection { """A list of `UserConnectedAccount` objects.""" @@ -34624,8 +34886,8 @@ input ObjectFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `kids` field.""" kids: UUIDListFilter @@ -34659,8 +34921,8 @@ enum ObjectOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC KIDS_ASC KIDS_DESC KTREE_ASC @@ -34673,53 +34935,287 @@ enum ObjectOrderBy { CREATED_AT_DESC } -"""A connection to a list of `Commit` values.""" -type CommitConnection { - """A list of `Commit` objects.""" - nodes: [Commit]! - - """ - A list of edges which contains the `Commit` and cursor to aid in pagination. - """ - edges: [CommitEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Commit` you could get from the connection.""" - totalCount: Int! -} +""" +A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ +""" +input AppPermissionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter -"""A commit records changes to the repository.""" -type Commit { - """The primary unique identifier for the commit.""" - id: UUID! + """Filter by the object’s `name` field.""" + name: StringFilter - """The commit message""" - message: String + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter - """The repository identifier""" - databaseId: UUID! - storeId: UUID! + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter - """Parent commits""" - parentIds: [UUID] + """Filter by the object’s `description` field.""" + description: StringFilter - """The author of the commit""" - authorId: UUID + """Checks for all expressions in this list.""" + and: [AppPermissionFilter!] - """The committer of the commit""" - committerId: UUID + """Checks for any expressions in this list.""" + or: [AppPermissionFilter!] - """The root of the tree""" - treeId: UUID - date: Datetime! + """Negates the expression.""" + not: AppPermissionFilter } -"""A `Commit` edge in the connection.""" -type CommitEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""Methods to use when ordering `AppPermission`.""" +enum AppPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC +} + +""" +A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ +""" +input OrgPermissionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter + + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Checks for all expressions in this list.""" + and: [OrgPermissionFilter!] + + """Checks for any expressions in this list.""" + or: [OrgPermissionFilter!] + + """Negates the expression.""" + not: OrgPermissionFilter +} + +"""Methods to use when ordering `OrgPermission`.""" +enum OrgPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC +} + +"""A connection to a list of `AppLimitCreditCode` values.""" +type AppLimitCreditCodeConnection { + """A list of `AppLimitCreditCode` objects.""" + nodes: [AppLimitCreditCode]! + + """ + A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. + """ + edges: [AppLimitCreditCodeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitCreditCode` you could get from the connection. + """ + totalCount: Int! +} + +"""A `AppLimitCreditCode` edge in the connection.""" +type AppLimitCreditCodeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitCreditCode` at the end of the edge.""" + node: AppLimitCreditCode +} + +"""Methods to use when ordering `AppLimitCreditCode`.""" +enum AppLimitCreditCodeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CODE_ASC + CODE_DESC + MAX_REDEMPTIONS_ASC + MAX_REDEMPTIONS_DESC + CURRENT_REDEMPTIONS_ASC + CURRENT_REDEMPTIONS_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC +} + +"""A connection to a list of `AppLimitWarning` values.""" +type AppLimitWarningConnection { + """A list of `AppLimitWarning` objects.""" + nodes: [AppLimitWarning]! + + """ + A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. + """ + edges: [AppLimitWarningEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitWarning` you could get from the connection. + """ + totalCount: Int! +} + +""" +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. +""" +type AppLimitWarning { + id: UUID! + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! +} + +"""A `AppLimitWarning` edge in the connection.""" +type AppLimitWarningEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitWarning` at the end of the edge.""" + node: AppLimitWarning +} + +""" +A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitWarningFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `warningType` field.""" + warningType: StringFilter + + """Filter by the object’s `thresholdValue` field.""" + thresholdValue: BigIntFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter + + """Checks for all expressions in this list.""" + and: [AppLimitWarningFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitWarningFilter!] + + """Negates the expression.""" + not: AppLimitWarningFilter +} + +"""Methods to use when ordering `AppLimitWarning`.""" +enum AppLimitWarningOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + WARNING_TYPE_ASC + WARNING_TYPE_DESC + THRESHOLD_VALUE_ASC + THRESHOLD_VALUE_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC +} + +"""A connection to a list of `Commit` values.""" +type CommitConnection { + """A list of `Commit` objects.""" + nodes: [Commit]! + + """ + A list of edges which contains the `Commit` and cursor to aid in pagination. + """ + edges: [CommitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Commit` you could get from the connection.""" + totalCount: Int! +} + +"""A commit records changes to the repository.""" +type Commit { + """The primary unique identifier for the commit.""" + id: UUID! + + """The commit message""" + message: String + + """The scope identifier""" + scopeId: UUID! + storeId: UUID! + + """Parent commits""" + parentIds: [UUID] + + """The author of the commit""" + authorId: UUID + + """The committer of the commit""" + committerId: UUID + + """The root of the tree""" + treeId: UUID + date: Datetime! +} + +"""A `Commit` edge in the connection.""" +type CommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor """The `Commit` at the end of the edge.""" node: Commit @@ -34735,8 +35231,8 @@ input CommitFilter { """Filter by the object’s `message` field.""" message: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `storeId` field.""" storeId: UUIDFilter @@ -34775,8 +35271,8 @@ enum CommitOrderBy { ID_DESC MESSAGE_ASC MESSAGE_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC STORE_ID_ASC STORE_ID_DESC PARENT_IDS_ASC @@ -35003,154 +35499,112 @@ enum UsageSnapshotOrderBy { ID_DESC } -"""A connection to a list of `AppMembershipDefault` values.""" -type AppMembershipDefaultConnection { - """A list of `AppMembershipDefault` objects.""" - nodes: [AppMembershipDefault]! +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! """ - A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. + A list of edges which contains the `MembershipType` and cursor to aid in pagination. """ - edges: [AppMembershipDefaultEdge]! + edges: [MembershipTypeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppMembershipDefault` you could get from the connection. - """ + """The count of *all* `MembershipType` you could get from the connection.""" totalCount: Int! } """ -Default membership settings per entity, controlling initial approval and verification state for new members +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) """ -type AppMembershipDefault { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID +type MembershipType { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! + """Human-readable name of the membership type""" + name: String! - """Whether new members are automatically verified upon joining""" - isVerified: Boolean! + """Description of what this membership type represents""" + description: String! + + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String! + + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int + + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean! } -"""A `AppMembershipDefault` edge in the connection.""" -type AppMembershipDefaultEdge { +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppMembershipDefault` at the end of the edge.""" - node: AppMembershipDefault + """The `MembershipType` at the end of the edge.""" + node: MembershipType } """ -A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ """ -input AppMembershipDefaultFilter { +input MembershipTypeFilter { """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + id: IntFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Filter by the object’s `description` field.""" + description: StringFilter - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """Filter by the object’s `parentMembershipType` field.""" + parentMembershipType: IntFilter - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter + """Filter by the object’s `hasUsersTableEntry` field.""" + hasUsersTableEntry: BooleanFilter """Checks for all expressions in this list.""" - and: [AppMembershipDefaultFilter!] + and: [MembershipTypeFilter!] """Checks for any expressions in this list.""" - or: [AppMembershipDefaultFilter!] + or: [MembershipTypeFilter!] """Negates the expression.""" - not: AppMembershipDefaultFilter -} - -"""Methods to use when ordering `AppMembershipDefault`.""" -enum AppMembershipDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC -} - -"""A connection to a list of `OrgMembershipDefault` values.""" -type OrgMembershipDefaultConnection { - """A list of `OrgMembershipDefault` objects.""" - nodes: [OrgMembershipDefault]! - - """ - A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. - """ - edges: [OrgMembershipDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgMembershipDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgMembershipDefault` edge in the connection.""" -type OrgMembershipDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembershipDefault` at the end of the edge.""" - node: OrgMembershipDefault + not: MembershipTypeFilter } -"""Methods to use when ordering `OrgMembershipDefault`.""" -enum OrgMembershipDefaultOrderBy { +"""Methods to use when ordering `MembershipType`.""" +enum MembershipTypeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC + NAME_ASC + NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + PREFIX_ASC + PREFIX_DESC + PARENT_MEMBERSHIP_TYPE_ASC + PARENT_MEMBERSHIP_TYPE_DESC + HAS_USERS_TABLE_ENTRY_ASC + HAS_USERS_TABLE_ENTRY_DESC } """A connection to a list of `RlsSetting` values.""" @@ -35206,278 +35660,91 @@ enum RlsSettingOrderBy { CURRENT_IP_ADDRESS_FUNCTION_ID_DESC } -"""A connection to a list of `AppLimitEvent` values.""" -type AppLimitEventConnection { - """A list of `AppLimitEvent` objects.""" - nodes: [AppLimitEvent]! +"""A connection to a list of `RlsModule` values.""" +type RlsModuleConnection { + """A list of `RlsModule` objects.""" + nodes: [RlsModule]! """ - A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. + A list of edges which contains the `RlsModule` and cursor to aid in pagination. """ - edges: [AppLimitEventEdge]! + edges: [RlsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimitEvent` you could get from the connection.""" + """The count of *all* `RlsModule` you could get from the connection.""" totalCount: Int! } -"""Append-only log of limit events for historical reporting and audit""" -type AppLimitEvent { - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID +"""A `RlsModule` edge in the connection.""" +type RlsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String + """The `RlsModule` at the end of the edge.""" + node: RlsModule +} - """Change amount: positive for increment, negative for decrement""" - delta: BigInt +"""Methods to use when ordering `RlsModule`.""" +enum RlsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + SESSION_CREDENTIALS_TABLE_ID_ASC + SESSION_CREDENTIALS_TABLE_ID_DESC + SESSIONS_TABLE_ID_ASC + SESSIONS_TABLE_ID_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + AUTHENTICATE_ASC + AUTHENTICATE_DESC + AUTHENTICATE_STRICT_ASC + AUTHENTICATE_STRICT_DESC + CURRENT_ROLE_ASC + CURRENT_ROLE_DESC + CURRENT_ROLE_ID_ASC + CURRENT_ROLE_ID_DESC +} - """Usage count before this event""" - numBefore: BigInt +"""A connection to a list of `InferenceLogModule` values.""" +type InferenceLogModuleConnection { + """A list of `InferenceLogModule` objects.""" + nodes: [InferenceLogModule]! - """Usage count after this event""" - numAfter: BigInt + """ + A list of edges which contains the `InferenceLogModule` and cursor to aid in pagination. + """ + edges: [InferenceLogModuleEdge]! - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. + The count of *all* `InferenceLogModule` you could get from the connection. """ - reason: String + totalCount: Int! } -"""A `AppLimitEvent` edge in the connection.""" -type AppLimitEventEdge { +"""A `InferenceLogModule` edge in the connection.""" +type InferenceLogModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitEvent` at the end of the edge.""" - node: AppLimitEvent + """The `InferenceLogModule` at the end of the edge.""" + node: InferenceLogModule } -""" -A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitEventFilter { - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter - - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter - - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter - - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitEventFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitEventFilter!] - - """Negates the expression.""" - not: AppLimitEventFilter -} - -"""Methods to use when ordering `AppLimitEvent`.""" -enum AppLimitEventOrderBy { - NATURAL - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC -} - -"""A connection to a list of `OrgLimitEvent` values.""" -type OrgLimitEventConnection { - """A list of `OrgLimitEvent` objects.""" - nodes: [OrgLimitEvent]! - - """ - A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. - """ - edges: [OrgLimitEventEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitEvent` you could get from the connection.""" - totalCount: Int! -} - -"""Append-only log of limit events for historical reporting and audit""" -type OrgLimitEvent { - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""A `OrgLimitEvent` edge in the connection.""" -type OrgLimitEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitEvent` at the end of the edge.""" - node: OrgLimitEvent -} - -""" -A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitEventFilter { - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter - - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter - - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter - - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitEventFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitEventFilter!] - - """Negates the expression.""" - not: OrgLimitEventFilter -} - -"""Methods to use when ordering `OrgLimitEvent`.""" -enum OrgLimitEventOrderBy { - NATURAL - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC -} - -"""A connection to a list of `RlsModule` values.""" -type RlsModuleConnection { - """A list of `RlsModule` objects.""" - nodes: [RlsModule]! - - """ - A list of edges which contains the `RlsModule` and cursor to aid in pagination. - """ - edges: [RlsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `RlsModule` you could get from the connection.""" - totalCount: Int! -} - -"""A `RlsModule` edge in the connection.""" -type RlsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RlsModule` at the end of the edge.""" - node: RlsModule -} - -"""Methods to use when ordering `RlsModule`.""" -enum RlsModuleOrderBy { +"""Methods to use when ordering `InferenceLogModule`.""" +enum InferenceLogModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -35489,20 +35756,22 @@ enum RlsModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - SESSION_CREDENTIALS_TABLE_ID_ASC - SESSION_CREDENTIALS_TABLE_ID_DESC - SESSIONS_TABLE_ID_ASC - SESSIONS_TABLE_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC - AUTHENTICATE_ASC - AUTHENTICATE_DESC - AUTHENTICATE_STRICT_ASC - AUTHENTICATE_STRICT_DESC - CURRENT_ROLE_ASC - CURRENT_ROLE_DESC - CURRENT_ROLE_ID_ASC - CURRENT_ROLE_ID_DESC + INFERENCE_LOG_TABLE_ID_ASC + INFERENCE_LOG_TABLE_ID_DESC + INFERENCE_LOG_TABLE_NAME_ASC + INFERENCE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + PREFIX_ASC + PREFIX_DESC } """A connection to a list of `RateLimitMetersModule` values.""" @@ -35746,6 +36015,284 @@ enum SqlActionOrderBy { ACTOR_ID_DESC } +"""A connection to a list of `AppLimitEvent` values.""" +type AppLimitEventConnection { + """A list of `AppLimitEvent` objects.""" + nodes: [AppLimitEvent]! + + """ + A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. + """ + edges: [AppLimitEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLimitEvent` you could get from the connection.""" + totalCount: Int! +} + +"""Append-only log of limit events for historical reporting and audit""" +type AppLimitEvent { + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""A `AppLimitEvent` edge in the connection.""" +type AppLimitEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitEvent` at the end of the edge.""" + node: AppLimitEvent +} + +""" +A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `delta` field.""" + delta: BigIntFilter + + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter + + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter + + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter + + """Checks for all expressions in this list.""" + and: [AppLimitEventFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitEventFilter!] + + """Negates the expression.""" + not: AppLimitEventFilter +} + +"""Methods to use when ordering `AppLimitEvent`.""" +enum AppLimitEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC +} + +"""A connection to a list of `OrgLimitEvent` values.""" +type OrgLimitEventConnection { + """A list of `OrgLimitEvent` objects.""" + nodes: [OrgLimitEvent]! + + """ + A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. + """ + edges: [OrgLimitEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimitEvent` you could get from the connection.""" + totalCount: Int! +} + +"""Append-only log of limit events for historical reporting and audit""" +type OrgLimitEvent { + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""A `OrgLimitEvent` edge in the connection.""" +type OrgLimitEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitEvent` at the end of the edge.""" + node: OrgLimitEvent +} + +""" +A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `delta` field.""" + delta: BigIntFilter + + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter + + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter + + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitEventFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitEventFilter!] + + """Negates the expression.""" + not: OrgLimitEventFilter +} + +"""Methods to use when ordering `OrgLimitEvent`.""" +enum OrgLimitEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC +} + """A connection to a list of `DatabaseSetting` values.""" type DatabaseSettingConnection { """A list of `DatabaseSetting` objects.""" @@ -35809,6 +36356,69 @@ enum DatabaseSettingOrderBy { OPTIONS_DESC } +"""A connection to a list of `OrgMembershipSetting` values.""" +type OrgMembershipSettingConnection { + """A list of `OrgMembershipSetting` objects.""" + nodes: [OrgMembershipSetting]! + + """ + A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. + """ + edges: [OrgMembershipSettingEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgMembershipSetting` you could get from the connection. + """ + totalCount: Int! +} + +"""A `OrgMembershipSetting` edge in the connection.""" +type OrgMembershipSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembershipSetting` at the end of the edge.""" + node: OrgMembershipSetting +} + +"""Methods to use when ordering `OrgMembershipSetting`.""" +enum OrgMembershipSettingOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + DELETE_MEMBER_CASCADE_CHILDREN_ASC + DELETE_MEMBER_CASCADE_CHILDREN_DESC + CREATE_CHILD_CASCADE_OWNERS_ASC + CREATE_CHILD_CASCADE_OWNERS_DESC + CREATE_CHILD_CASCADE_ADMINS_ASC + CREATE_CHILD_CASCADE_ADMINS_DESC + CREATE_CHILD_CASCADE_MEMBERS_ASC + CREATE_CHILD_CASCADE_MEMBERS_DESC + ALLOW_EXTERNAL_MEMBERS_ASC + ALLOW_EXTERNAL_MEMBERS_DESC + INVITE_PROFILE_ASSIGNMENT_MODE_ASC + INVITE_PROFILE_ASSIGNMENT_MODE_DESC + POPULATE_MEMBER_EMAIL_ASC + POPULATE_MEMBER_EMAIL_DESC + LIMIT_ALLOCATION_MODE_ASC + LIMIT_ALLOCATION_MODE_DESC +} + """A connection to a list of `BillingModule` values.""" type BillingModuleConnection { """A list of `BillingModule` objects.""" @@ -35864,12 +36474,136 @@ enum BillingModuleOrderBy { BALANCES_TABLE_ID_DESC BALANCES_TABLE_NAME_ASC BALANCES_TABLE_NAME_DESC + METER_CREDITS_TABLE_ID_ASC + METER_CREDITS_TABLE_ID_DESC + METER_CREDITS_TABLE_NAME_ASC + METER_CREDITS_TABLE_NAME_DESC RECORD_USAGE_FUNCTION_ASC RECORD_USAGE_FUNCTION_DESC PREFIX_ASC PREFIX_DESC } +"""A connection to a list of `AppMembership` values.""" +type AppMembershipConnection { + """A list of `AppMembership` objects.""" + nodes: [AppMembership]! + + """ + A list of edges which contains the `AppMembership` and cursor to aid in pagination. + """ + edges: [AppMembershipEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppMembership` you could get from the connection.""" + totalCount: Int! +} + +"""A `AppMembership` edge in the connection.""" +type AppMembershipEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppMembership` at the end of the edge.""" + node: AppMembership +} + +"""Methods to use when ordering `AppMembership`.""" +enum AppMembershipOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_BANNED_ASC + IS_BANNED_DESC + IS_DISABLED_ASC + IS_DISABLED_DESC + IS_VERIFIED_ASC + IS_VERIFIED_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_OWNER_ASC + IS_OWNER_DESC + IS_ADMIN_ASC + IS_ADMIN_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + GRANTED_ASC + GRANTED_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC +} + +"""A connection to a list of `User` values.""" +type UserConnection { + """A list of `User` objects.""" + nodes: [User]! + + """ + A list of edges which contains the `User` and cursor to aid in pagination. + """ + edges: [UserEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `User` you could get from the connection.""" + totalCount: Int! +} + +"""A `User` edge in the connection.""" +type UserEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `User` at the end of the edge.""" + node: User +} + +"""Methods to use when ordering `User`.""" +enum UserOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + USERNAME_ASC + USERNAME_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + PROFILE_PICTURE_ASC + PROFILE_PICTURE_DESC + SEARCH_TSV_ASC + SEARCH_TSV_DESC + TYPE_ASC + TYPE_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + DISPLAY_NAME_TRGM_SIMILARITY_ASC + DISPLAY_NAME_TRGM_SIMILARITY_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC +} + """A connection to a list of `AstMigration` values.""" type AstMigrationConnection { """A list of `AstMigration` objects.""" @@ -35996,124 +36730,6 @@ enum AstMigrationOrderBy { ACTOR_ID_DESC } -"""A connection to a list of `User` values.""" -type UserConnection { - """A list of `User` objects.""" - nodes: [User]! - - """ - A list of edges which contains the `User` and cursor to aid in pagination. - """ - edges: [UserEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `User` you could get from the connection.""" - totalCount: Int! -} - -"""A `User` edge in the connection.""" -type UserEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `User` at the end of the edge.""" - node: User -} - -"""Methods to use when ordering `User`.""" -enum UserOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - USERNAME_ASC - USERNAME_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - PROFILE_PICTURE_ASC - PROFILE_PICTURE_DESC - SEARCH_TSV_ASC - SEARCH_TSV_DESC - TYPE_ASC - TYPE_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - SEARCH_TSV_RANK_ASC - SEARCH_TSV_RANK_DESC - DISPLAY_NAME_TRGM_SIMILARITY_ASC - DISPLAY_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `OrgMembershipSetting` values.""" -type OrgMembershipSettingConnection { - """A list of `OrgMembershipSetting` objects.""" - nodes: [OrgMembershipSetting]! - - """ - A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. - """ - edges: [OrgMembershipSettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgMembershipSetting` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgMembershipSetting` edge in the connection.""" -type OrgMembershipSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembershipSetting` at the end of the edge.""" - node: OrgMembershipSetting -} - -"""Methods to use when ordering `OrgMembershipSetting`.""" -enum OrgMembershipSettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - DELETE_MEMBER_CASCADE_CHILDREN_ASC - DELETE_MEMBER_CASCADE_CHILDREN_DESC - CREATE_CHILD_CASCADE_OWNERS_ASC - CREATE_CHILD_CASCADE_OWNERS_DESC - CREATE_CHILD_CASCADE_ADMINS_ASC - CREATE_CHILD_CASCADE_ADMINS_DESC - CREATE_CHILD_CASCADE_MEMBERS_ASC - CREATE_CHILD_CASCADE_MEMBERS_DESC - ALLOW_EXTERNAL_MEMBERS_ASC - ALLOW_EXTERNAL_MEMBERS_DESC - INVITE_PROFILE_ASSIGNMENT_MODE_ASC - INVITE_PROFILE_ASSIGNMENT_MODE_DESC - POPULATE_MEMBER_EMAIL_ASC - POPULATE_MEMBER_EMAIL_DESC - LIMIT_ALLOCATION_MODE_ASC - LIMIT_ALLOCATION_MODE_DESC -} - """A connection to a list of `WebauthnSetting` values.""" type WebauthnSettingConnection { """A list of `WebauthnSetting` objects.""" @@ -36185,71 +36801,6 @@ enum WebauthnSettingOrderBy { CHALLENGE_EXPIRY_SECONDS_DESC } -"""A connection to a list of `AppMembership` values.""" -type AppMembershipConnection { - """A list of `AppMembership` objects.""" - nodes: [AppMembership]! - - """ - A list of edges which contains the `AppMembership` and cursor to aid in pagination. - """ - edges: [AppMembershipEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppMembership` you could get from the connection.""" - totalCount: Int! -} - -"""A `AppMembership` edge in the connection.""" -type AppMembershipEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppMembership` at the end of the edge.""" - node: AppMembership -} - -"""Methods to use when ordering `AppMembership`.""" -enum AppMembershipOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_BANNED_ASC - IS_BANNED_DESC - IS_DISABLED_ASC - IS_DISABLED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_OWNER_ASC - IS_OWNER_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - GRANTED_ASC - GRANTED_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC -} - """A connection to a list of `BillingProviderModule` values.""" type BillingProviderModuleConnection { """A list of `BillingProviderModule` objects.""" @@ -36710,12 +37261,30 @@ type Mutation { """ input: ProvisionSpatialRelationInput! ): ProvisionSpatialRelationPayload + signInCrossOrigin( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignInCrossOriginInput! + ): SignInCrossOriginPayload bootstrapUser( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: BootstrapUserInput! ): BootstrapUserPayload + signUp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignUpInput! + ): SignUpPayload + signIn( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignInInput! + ): SignInPayload setFieldOrder( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -36814,12 +37383,6 @@ type Mutation { """ input: ApplyRlsInput! ): ApplyRlsPayload - signInCrossOrigin( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SignInCrossOriginInput! - ): SignInCrossOriginPayload "Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n" createUserDatabase( @@ -36840,36 +37403,12 @@ type Mutation { """ input: CreateApiKeyInput! ): CreateApiKeyPayload - sendVerificationEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SendVerificationEmailInput! - ): SendVerificationEmailPayload - forgotPassword( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ForgotPasswordInput! - ): ForgotPasswordPayload - signUp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SignUpInput! - ): SignUpPayload requestCrossOriginToken( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: RequestCrossOriginTokenInput! ): RequestCrossOriginTokenPayload - signIn( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SignInInput! - ): SignInPayload """ Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). @@ -36880,6 +37419,18 @@ type Mutation { """ input: ProvisionTableInput! ): ProvisionTablePayload + sendVerificationEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SendVerificationEmailInput! + ): SendVerificationEmailPayload + forgotPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ForgotPasswordInput! + ): ForgotPasswordPayload """Creates a single `DefaultIdsModule`.""" createDefaultIdsModule( @@ -36889,14 +37440,6 @@ type Mutation { input: CreateDefaultIdsModuleInput! ): CreateDefaultIdsModulePayload - """Creates a single `RoleType`.""" - createRoleType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRoleTypeInput! - ): CreateRoleTypePayload - """Creates a single `AppLimitCreditRedemption`.""" createAppLimitCreditRedemption( """ @@ -36977,13 +37520,21 @@ type Mutation { input: CreateStoreInput! ): CreateStorePayload - """Creates a single `EncryptedSecretsModule`.""" - createEncryptedSecretsModule( + """Creates a single `ConfigSecretsOrgModule`.""" + createConfigSecretsOrgModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateConfigSecretsOrgModuleInput! + ): CreateConfigSecretsOrgModulePayload + + """Creates a single `ConfigSecretsUserModule`.""" + createConfigSecretsUserModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateEncryptedSecretsModuleInput! - ): CreateEncryptedSecretsModulePayload + input: CreateConfigSecretsUserModuleInput! + ): CreateConfigSecretsUserModulePayload """Creates a single `MembershipTypesModule`.""" createMembershipTypesModule( @@ -37025,13 +37576,13 @@ type Mutation { input: CreateSiteModuleInput! ): CreateSiteModulePayload - """Creates a single `AppLimitCreditCode`.""" - createAppLimitCreditCode( + """Creates a single `RoleType`.""" + createRoleType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditCodeInput! - ): CreateAppLimitCreditCodePayload + input: CreateRoleTypeInput! + ): CreateRoleTypePayload """Creates a single `SchemaGrant`.""" createSchemaGrant( @@ -37097,21 +37648,13 @@ type Mutation { input: CreateOrgPermissionDefaultInput! ): CreateOrgPermissionDefaultPayload - """Creates a single `AppPermission`.""" - createAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionInput! - ): CreateAppPermissionPayload - - """Creates a single `OrgPermission`.""" - createOrgPermission( + """Creates a single `MigrateFile`.""" + createMigrateFile( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgPermissionInput! - ): CreateOrgPermissionPayload + input: CreateMigrateFileInput! + ): CreateMigrateFilePayload """Creates a single `AppLimitCapsDefault`.""" createAppLimitCapsDefault( @@ -37129,38 +37672,6 @@ type Mutation { input: CreateOrgLimitCapsDefaultInput! ): CreateOrgLimitCapsDefaultPayload - """Creates a single `AppLimitCap`.""" - createAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCapInput! - ): CreateAppLimitCapPayload - - """Creates a single `OrgLimitCap`.""" - createOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCapInput! - ): CreateOrgLimitCapPayload - - """Creates a single `MembershipType`.""" - createMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMembershipTypeInput! - ): CreateMembershipTypePayload - - """Creates a single `MigrateFile`.""" - createMigrateFile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMigrateFileInput! - ): CreateMigrateFilePayload - """Creates a single `DefaultPrivilege`.""" createDefaultPrivilege( """ @@ -37233,6 +37744,14 @@ type Mutation { input: CreateWebauthnCredentialsModuleInput! ): CreateWebauthnCredentialsModulePayload + """Creates a single `AppMembershipDefault`.""" + createAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppMembershipDefaultInput! + ): CreateAppMembershipDefaultPayload + """Creates a single `OrgAdminGrant`.""" createOrgAdminGrant( """ @@ -37241,6 +37760,14 @@ type Mutation { input: CreateOrgAdminGrantInput! ): CreateOrgAdminGrantPayload + """Creates a single `OrgMembershipDefault`.""" + createOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipDefaultInput! + ): CreateOrgMembershipDefaultPayload + """Creates a single `OrgOwnerGrant`.""" createOrgOwnerGrant( """ @@ -37257,37 +37784,45 @@ type Mutation { input: CreateNodeTypeRegistryInput! ): CreateNodeTypeRegistryPayload - """Creates a single `AppLimitDefault`.""" - createAppLimitDefault( + """Creates a single `AppLimitCreditCodeItem`.""" + createAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitDefaultInput! - ): CreateAppLimitDefaultPayload + input: CreateAppLimitCreditCodeItemInput! + ): CreateAppLimitCreditCodeItemPayload - """Creates a single `OrgLimitDefault`.""" - createOrgLimitDefault( + """Creates a single `AppLimitCap`.""" + createAppLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitDefaultInput! - ): CreateOrgLimitDefaultPayload + input: CreateAppLimitCapInput! + ): CreateAppLimitCapPayload - """Creates a single `AppLimitCreditCodeItem`.""" - createAppLimitCreditCodeItem( + """Creates a single `AppLimitDefault`.""" + createAppLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditCodeItemInput! - ): CreateAppLimitCreditCodeItemPayload + input: CreateAppLimitDefaultInput! + ): CreateAppLimitDefaultPayload - """Creates a single `AppLimitWarning`.""" - createAppLimitWarning( + """Creates a single `OrgLimitCap`.""" + createOrgLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitWarningInput! - ): CreateAppLimitWarningPayload + input: CreateOrgLimitCapInput! + ): CreateOrgLimitCapPayload + + """Creates a single `OrgLimitDefault`.""" + createOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitDefaultInput! + ): CreateOrgLimitDefaultPayload """Creates a single `UserConnectedAccount`.""" createUserConnectedAccount( @@ -37313,6 +37848,14 @@ type Mutation { input: CreateCryptoAddressesModuleInput! ): CreateCryptoAddressesModulePayload + """Creates a single `OrgChartEdge`.""" + createOrgChartEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgChartEdgeInput! + ): CreateOrgChartEdgePayload + """Creates a single `CryptoAddress`.""" createCryptoAddress( """ @@ -37337,14 +37880,6 @@ type Mutation { input: CreateAppLimitCreditInput! ): CreateAppLimitCreditPayload - """Creates a single `OrgLimitWarning`.""" - createOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitWarningInput! - ): CreateOrgLimitWarningPayload - """Creates a single `OrgLimitCredit`.""" createOrgLimitCredit( """ @@ -37361,13 +37896,37 @@ type Mutation { input: CreateObjectInput! ): CreateObjectPayload - """Creates a single `SiteMetadatum`.""" - createSiteMetadatum( + """Creates a single `AppPermission`.""" + createAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateSiteMetadatumInput! - ): CreateSiteMetadatumPayload + input: CreateAppPermissionInput! + ): CreateAppPermissionPayload + + """Creates a single `OrgPermission`.""" + createOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionInput! + ): CreateOrgPermissionPayload + + """Creates a single `AppLimitCreditCode`.""" + createAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditCodeInput! + ): CreateAppLimitCreditCodePayload + + """Creates a single `AppLimitWarning`.""" + createAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitWarningInput! + ): CreateAppLimitWarningPayload """Creates a single `FullTextSearch`.""" createFullTextSearch( @@ -37393,6 +37952,14 @@ type Mutation { input: CreateCommitInput! ): CreateCommitPayload + """Creates a single `SiteMetadatum`.""" + createSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteMetadatumInput! + ): CreateSiteMetadatumPayload + """Creates a single `PubkeySetting`.""" createPubkeySetting( """ @@ -37441,29 +38008,21 @@ type Mutation { input: CreateAppClaimedInviteInput! ): CreateAppClaimedInvitePayload - """Creates a single `AppMembershipDefault`.""" - createAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppMembershipDefaultInput! - ): CreateAppMembershipDefaultPayload - - """Creates a single `OrgMembershipDefault`.""" - createOrgMembershipDefault( + """Creates a single `OrgLimitWarning`.""" + createOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipDefaultInput! - ): CreateOrgMembershipDefaultPayload + input: CreateOrgLimitWarningInput! + ): CreateOrgLimitWarningPayload - """Creates a single `AuditLog`.""" - createAuditLog( + """Creates a single `MembershipType`.""" + createMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAuditLogInput! - ): CreateAuditLogPayload + input: CreateMembershipTypeInput! + ): CreateMembershipTypePayload """Creates a single `Domain`.""" createDomain( @@ -37497,14 +38056,6 @@ type Mutation { input: CreateAgentThreadInput! ): CreateAgentThreadPayload - """Creates a single `Email`.""" - createEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEmailInput! - ): CreateEmailPayload - """Creates a single `AppGrant`.""" createAppGrant( """ @@ -37521,38 +38072,6 @@ type Mutation { input: CreateOrgClaimedInviteInput! ): CreateOrgClaimedInvitePayload - """Creates a single `AppLimitEvent`.""" - createAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitEventInput! - ): CreateAppLimitEventPayload - - """Creates a single `OrgLimitEvent`.""" - createOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitEventInput! - ): CreateOrgLimitEventPayload - - """Creates a single `OrgChartEdge`.""" - createOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgChartEdgeInput! - ): CreateOrgChartEdgePayload - - """Creates a single `Partition`.""" - createPartition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePartitionInput! - ): CreatePartitionPayload - """Creates a single `BlueprintConstruction`.""" createBlueprintConstruction( """ @@ -37577,6 +38096,14 @@ type Mutation { input: CreateSessionsModuleInput! ): CreateSessionsModulePayload + """Creates a single `OrgMemberProfile`.""" + createOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMemberProfileInput! + ): CreateOrgMemberProfilePayload + """Creates a single `OrgGrant`.""" createOrgGrant( """ @@ -37585,6 +38112,22 @@ type Mutation { input: CreateOrgGrantInput! ): CreateOrgGrantPayload + """Creates a single `AuditLog`.""" + createAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAuditLogInput! + ): CreateAuditLogPayload + + """Creates a single `Partition`.""" + createPartition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePartitionInput! + ): CreatePartitionPayload + """Creates a single `Blueprint`.""" createBlueprint( """ @@ -37601,6 +38144,14 @@ type Mutation { input: CreateDenormalizedTableFieldInput! ): CreateDenormalizedTableFieldPayload + """Creates a single `InferenceLogModule`.""" + createInferenceLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInferenceLogModuleInput! + ): CreateInferenceLogModulePayload + """Creates a single `RateLimitMetersModule`.""" createRateLimitMetersModule( """ @@ -37625,21 +38176,13 @@ type Mutation { input: CreatePlansModuleInput! ): CreatePlansModulePayload - """Creates a single `AppLimit`.""" - createAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitInput! - ): CreateAppLimitPayload - - """Creates a single `OrgMemberProfile`.""" - createOrgMemberProfile( + """Creates a single `Email`.""" + createEmail( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMemberProfileInput! - ): CreateOrgMemberProfilePayload + input: CreateEmailInput! + ): CreateEmailPayload """Creates a single `SqlAction`.""" createSqlAction( @@ -37649,6 +38192,22 @@ type Mutation { input: CreateSqlActionInput! ): CreateSqlActionPayload + """Creates a single `AppLimitEvent`.""" + createAppLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitEventInput! + ): CreateAppLimitEventPayload + + """Creates a single `OrgLimitEvent`.""" + createOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitEventInput! + ): CreateOrgLimitEventPayload + """Creates a single `DatabaseTransfer`.""" createDatabaseTransfer( """ @@ -37665,14 +38224,6 @@ type Mutation { input: CreateDatabaseSettingInput! ): CreateDatabaseSettingPayload - """Creates a single `BillingModule`.""" - createBillingModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateBillingModuleInput! - ): CreateBillingModulePayload - """Creates a single `CryptoAuthModule`.""" createCryptoAuthModule( """ @@ -37697,37 +38248,29 @@ type Mutation { input: CreateInvitesModuleInput! ): CreateInvitesModulePayload - """Creates a single `SecureTableProvision`.""" - createSecureTableProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSecureTableProvisionInput! - ): CreateSecureTableProvisionPayload - - """Creates a single `OrgLimitAggregate`.""" - createOrgLimitAggregate( + """Creates a single `OrgMembershipSetting`.""" + createOrgMembershipSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitAggregateInput! - ): CreateOrgLimitAggregatePayload + input: CreateOrgMembershipSettingInput! + ): CreateOrgMembershipSettingPayload - """Creates a single `OrgLimit`.""" - createOrgLimit( + """Creates a single `SecureTableProvision`.""" + createSecureTableProvision( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitInput! - ): CreateOrgLimitPayload + input: CreateSecureTableProvisionInput! + ): CreateSecureTableProvisionPayload - """Creates a single `AstMigration`.""" - createAstMigration( + """Creates a single `AppLimit`.""" + createAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAstMigrationInput! - ): CreateAstMigrationPayload + input: CreateAppLimitInput! + ): CreateAppLimitPayload """Creates a single `ApiSetting`.""" createApiSetting( @@ -37745,13 +38288,21 @@ type Mutation { input: CreateEnumInput! ): CreateEnumPayload - """Creates a single `User`.""" - createUser( + """Creates a single `OrgLimitAggregate`.""" + createOrgLimitAggregate( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateUserInput! - ): CreateUserPayload + input: CreateOrgLimitAggregateInput! + ): CreateOrgLimitAggregatePayload + + """Creates a single `OrgLimit`.""" + createOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitInput! + ): CreateOrgLimitPayload """Creates a single `View`.""" createView( @@ -37761,6 +38312,14 @@ type Mutation { input: CreateViewInput! ): CreateViewPayload + """Creates a single `BillingModule`.""" + createBillingModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBillingModuleInput! + ): CreateBillingModulePayload + """Creates a single `WebauthnAuthModule`.""" createWebauthnAuthModule( """ @@ -37769,21 +38328,21 @@ type Mutation { input: CreateWebauthnAuthModuleInput! ): CreateWebauthnAuthModulePayload - """Creates a single `AppInvite`.""" - createAppInvite( + """Creates a single `AppMembership`.""" + createAppMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppInviteInput! - ): CreateAppInvitePayload + input: CreateAppMembershipInput! + ): CreateAppMembershipPayload - """Creates a single `OrgMembershipSetting`.""" - createOrgMembershipSetting( + """Creates a single `User`.""" + createUser( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipSettingInput! - ): CreateOrgMembershipSettingPayload + input: CreateUserInput! + ): CreateUserPayload """Creates a single `App`.""" createApp( @@ -37817,6 +38376,14 @@ type Mutation { input: CreatePermissionsModuleInput! ): CreatePermissionsModulePayload + """Creates a single `AstMigration`.""" + createAstMigration( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAstMigrationInput! + ): CreateAstMigrationPayload + """Creates a single `WebauthnCredential`.""" createWebauthnCredential( """ @@ -37881,13 +38448,13 @@ type Mutation { input: CreateWebauthnSettingInput! ): CreateWebauthnSettingPayload - """Creates a single `AppMembership`.""" - createAppMembership( + """Creates a single `OrgMembership`.""" + createOrgMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppMembershipInput! - ): CreateAppMembershipPayload + input: CreateOrgMembershipInput! + ): CreateOrgMembershipPayload """Creates a single `Schema`.""" createSchema( @@ -37905,13 +38472,13 @@ type Mutation { input: CreateIndexInput! ): CreateIndexPayload - """Creates a single `OrgInvite`.""" - createOrgInvite( + """Creates a single `AppInvite`.""" + createAppInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgInviteInput! - ): CreateOrgInvitePayload + input: CreateAppInviteInput! + ): CreateAppInvitePayload """Creates a single `BillingProviderModule`.""" createBillingProviderModule( @@ -37945,14 +38512,6 @@ type Mutation { input: CreateProfilesModuleInput! ): CreateProfilesModulePayload - """Creates a single `OrgMembership`.""" - createOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipInput! - ): CreateOrgMembershipPayload - """Creates a single `EmbeddingChunk`.""" createEmbeddingChunk( """ @@ -37969,6 +38528,14 @@ type Mutation { input: CreateForeignKeyConstraintInput! ): CreateForeignKeyConstraintPayload + """Creates a single `OrgInvite`.""" + createOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgInviteInput! + ): CreateOrgInvitePayload + """Creates a single `RelationProvision`.""" createRelationProvision( """ @@ -38017,14 +38584,6 @@ type Mutation { input: CreateLimitsModuleInput! ): CreateLimitsModulePayload - """Creates a single `StorageModule`.""" - createStorageModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateStorageModuleInput! - ): CreateStorageModulePayload - """Creates a single `MembershipsModule`.""" createMembershipsModule( """ @@ -38033,6 +38592,14 @@ type Mutation { input: CreateMembershipsModuleInput! ): CreateMembershipsModulePayload + """Creates a single `StorageModule`.""" + createStorageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateStorageModuleInput! + ): CreateStorageModulePayload + """Creates a single `EventsModule`.""" createEventsModule( """ @@ -38049,14 +38616,6 @@ type Mutation { input: UpdateDefaultIdsModuleInput! ): UpdateDefaultIdsModulePayload - """Updates a single `RoleType` using a unique key and a patch.""" - updateRoleType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRoleTypeInput! - ): UpdateRoleTypePayload - """ Updates a single `AppLimitCreditRedemption` using a unique key and a patch. """ @@ -38132,14 +38691,24 @@ type Mutation { ): UpdateStorePayload """ - Updates a single `EncryptedSecretsModule` using a unique key and a patch. + Updates a single `ConfigSecretsOrgModule` using a unique key and a patch. """ - updateEncryptedSecretsModule( + updateConfigSecretsOrgModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateEncryptedSecretsModuleInput! - ): UpdateEncryptedSecretsModulePayload + input: UpdateConfigSecretsOrgModuleInput! + ): UpdateConfigSecretsOrgModulePayload + + """ + Updates a single `ConfigSecretsUserModule` using a unique key and a patch. + """ + updateConfigSecretsUserModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateConfigSecretsUserModuleInput! + ): UpdateConfigSecretsUserModulePayload """ Updates a single `MembershipTypesModule` using a unique key and a patch. @@ -38185,13 +38754,13 @@ type Mutation { input: UpdateSiteModuleInput! ): UpdateSiteModulePayload - """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" - updateAppLimitCreditCode( + """Updates a single `RoleType` using a unique key and a patch.""" + updateRoleType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditCodeInput! - ): UpdateAppLimitCreditCodePayload + input: UpdateRoleTypeInput! + ): UpdateRoleTypePayload """Updates a single `SchemaGrant` using a unique key and a patch.""" updateSchemaGrant( @@ -38263,22 +38832,6 @@ type Mutation { input: UpdateOrgPermissionDefaultInput! ): UpdateOrgPermissionDefaultPayload - """Updates a single `AppPermission` using a unique key and a patch.""" - updateAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppPermissionInput! - ): UpdateAppPermissionPayload - - """Updates a single `OrgPermission` using a unique key and a patch.""" - updateOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionInput! - ): UpdateOrgPermissionPayload - """Updates a single `AppLimitCapsDefault` using a unique key and a patch.""" updateAppLimitCapsDefault( """ @@ -38295,30 +38848,6 @@ type Mutation { input: UpdateOrgLimitCapsDefaultInput! ): UpdateOrgLimitCapsDefaultPayload - """Updates a single `AppLimitCap` using a unique key and a patch.""" - updateAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCapInput! - ): UpdateAppLimitCapPayload - - """Updates a single `OrgLimitCap` using a unique key and a patch.""" - updateOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCapInput! - ): UpdateOrgLimitCapPayload - - """Updates a single `MembershipType` using a unique key and a patch.""" - updateMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateMembershipTypeInput! - ): UpdateMembershipTypePayload - """Updates a single `DefaultPrivilege` using a unique key and a patch.""" updateDefaultPrivilege( """ @@ -38395,6 +38924,16 @@ type Mutation { input: UpdateWebauthnCredentialsModuleInput! ): UpdateWebauthnCredentialsModulePayload + """ + Updates a single `AppMembershipDefault` using a unique key and a patch. + """ + updateAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppMembershipDefaultInput! + ): UpdateAppMembershipDefaultPayload + """Updates a single `OrgAdminGrant` using a unique key and a patch.""" updateOrgAdminGrant( """ @@ -38403,6 +38942,16 @@ type Mutation { input: UpdateOrgAdminGrantInput! ): UpdateOrgAdminGrantPayload + """ + Updates a single `OrgMembershipDefault` using a unique key and a patch. + """ + updateOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipDefaultInput! + ): UpdateOrgMembershipDefaultPayload + """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" updateOrgOwnerGrant( """ @@ -38419,39 +38968,47 @@ type Mutation { input: UpdateNodeTypeRegistryInput! ): UpdateNodeTypeRegistryPayload - """Updates a single `AppLimitDefault` using a unique key and a patch.""" - updateAppLimitDefault( + """ + Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. + """ + updateAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitDefaultInput! - ): UpdateAppLimitDefaultPayload + input: UpdateAppLimitCreditCodeItemInput! + ): UpdateAppLimitCreditCodeItemPayload - """Updates a single `OrgLimitDefault` using a unique key and a patch.""" - updateOrgLimitDefault( + """Updates a single `AppLimitCap` using a unique key and a patch.""" + updateAppLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitDefaultInput! - ): UpdateOrgLimitDefaultPayload + input: UpdateAppLimitCapInput! + ): UpdateAppLimitCapPayload - """ - Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. - """ - updateAppLimitCreditCodeItem( + """Updates a single `AppLimitDefault` using a unique key and a patch.""" + updateAppLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditCodeItemInput! - ): UpdateAppLimitCreditCodeItemPayload + input: UpdateAppLimitDefaultInput! + ): UpdateAppLimitDefaultPayload - """Updates a single `AppLimitWarning` using a unique key and a patch.""" - updateAppLimitWarning( + """Updates a single `OrgLimitCap` using a unique key and a patch.""" + updateOrgLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitWarningInput! - ): UpdateAppLimitWarningPayload + input: UpdateOrgLimitCapInput! + ): UpdateOrgLimitCapPayload + + """Updates a single `OrgLimitDefault` using a unique key and a patch.""" + updateOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitDefaultInput! + ): UpdateOrgLimitDefaultPayload """Updates a single `Database` using a unique key and a patch.""" updateDatabase( @@ -38471,6 +39028,14 @@ type Mutation { input: UpdateCryptoAddressesModuleInput! ): UpdateCryptoAddressesModulePayload + """Updates a single `OrgChartEdge` using a unique key and a patch.""" + updateOrgChartEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgChartEdgeInput! + ): UpdateOrgChartEdgePayload + """Updates a single `CryptoAddress` using a unique key and a patch.""" updateCryptoAddress( """ @@ -38495,14 +39060,6 @@ type Mutation { input: UpdateAppLimitCreditInput! ): UpdateAppLimitCreditPayload - """Updates a single `OrgLimitWarning` using a unique key and a patch.""" - updateOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitWarningInput! - ): UpdateOrgLimitWarningPayload - """Updates a single `OrgLimitCredit` using a unique key and a patch.""" updateOrgLimitCredit( """ @@ -38519,13 +39076,37 @@ type Mutation { input: UpdateObjectInput! ): UpdateObjectPayload - """Updates a single `SiteMetadatum` using a unique key and a patch.""" - updateSiteMetadatum( + """Updates a single `AppPermission` using a unique key and a patch.""" + updateAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateSiteMetadatumInput! - ): UpdateSiteMetadatumPayload + input: UpdateAppPermissionInput! + ): UpdateAppPermissionPayload + + """Updates a single `OrgPermission` using a unique key and a patch.""" + updateOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionInput! + ): UpdateOrgPermissionPayload + + """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" + updateAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCreditCodeInput! + ): UpdateAppLimitCreditCodePayload + + """Updates a single `AppLimitWarning` using a unique key and a patch.""" + updateAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitWarningInput! + ): UpdateAppLimitWarningPayload """Updates a single `FullTextSearch` using a unique key and a patch.""" updateFullTextSearch( @@ -38551,6 +39132,14 @@ type Mutation { input: UpdateCommitInput! ): UpdateCommitPayload + """Updates a single `SiteMetadatum` using a unique key and a patch.""" + updateSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteMetadatumInput! + ): UpdateSiteMetadatumPayload + """Updates a single `PubkeySetting` using a unique key and a patch.""" updatePubkeySetting( """ @@ -38599,33 +39188,21 @@ type Mutation { input: UpdateAppClaimedInviteInput! ): UpdateAppClaimedInvitePayload - """ - Updates a single `AppMembershipDefault` using a unique key and a patch. - """ - updateAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppMembershipDefaultInput! - ): UpdateAppMembershipDefaultPayload - - """ - Updates a single `OrgMembershipDefault` using a unique key and a patch. - """ - updateOrgMembershipDefault( + """Updates a single `OrgLimitWarning` using a unique key and a patch.""" + updateOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMembershipDefaultInput! - ): UpdateOrgMembershipDefaultPayload + input: UpdateOrgLimitWarningInput! + ): UpdateOrgLimitWarningPayload - """Updates a single `AuditLog` using a unique key and a patch.""" - updateAuditLog( + """Updates a single `MembershipType` using a unique key and a patch.""" + updateMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAuditLogInput! - ): UpdateAuditLogPayload + input: UpdateMembershipTypeInput! + ): UpdateMembershipTypePayload """Updates a single `Domain` using a unique key and a patch.""" updateDomain( @@ -38659,14 +39236,6 @@ type Mutation { input: UpdateAgentThreadInput! ): UpdateAgentThreadPayload - """Updates a single `Email` using a unique key and a patch.""" - updateEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEmailInput! - ): UpdateEmailPayload - """Updates a single `AppGrant` using a unique key and a patch.""" updateAppGrant( """ @@ -38683,22 +39252,6 @@ type Mutation { input: UpdateOrgClaimedInviteInput! ): UpdateOrgClaimedInvitePayload - """Updates a single `OrgChartEdge` using a unique key and a patch.""" - updateOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgChartEdgeInput! - ): UpdateOrgChartEdgePayload - - """Updates a single `Partition` using a unique key and a patch.""" - updatePartition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePartitionInput! - ): UpdatePartitionPayload - """ Updates a single `BlueprintConstruction` using a unique key and a patch. """ @@ -38725,6 +39278,14 @@ type Mutation { input: UpdateSessionsModuleInput! ): UpdateSessionsModulePayload + """Updates a single `OrgMemberProfile` using a unique key and a patch.""" + updateOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMemberProfileInput! + ): UpdateOrgMemberProfilePayload + """Updates a single `OrgGrant` using a unique key and a patch.""" updateOrgGrant( """ @@ -38733,6 +39294,22 @@ type Mutation { input: UpdateOrgGrantInput! ): UpdateOrgGrantPayload + """Updates a single `AuditLog` using a unique key and a patch.""" + updateAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAuditLogInput! + ): UpdateAuditLogPayload + + """Updates a single `Partition` using a unique key and a patch.""" + updatePartition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePartitionInput! + ): UpdatePartitionPayload + """Updates a single `Blueprint` using a unique key and a patch.""" updateBlueprint( """ @@ -38751,6 +39328,14 @@ type Mutation { input: UpdateDenormalizedTableFieldInput! ): UpdateDenormalizedTableFieldPayload + """Updates a single `InferenceLogModule` using a unique key and a patch.""" + updateInferenceLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInferenceLogModuleInput! + ): UpdateInferenceLogModulePayload + """ Updates a single `RateLimitMetersModule` using a unique key and a patch. """ @@ -38777,21 +39362,29 @@ type Mutation { input: UpdatePlansModuleInput! ): UpdatePlansModulePayload - """Updates a single `AppLimit` using a unique key and a patch.""" - updateAppLimit( + """Updates a single `Email` using a unique key and a patch.""" + updateEmail( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitInput! - ): UpdateAppLimitPayload + input: UpdateEmailInput! + ): UpdateEmailPayload - """Updates a single `OrgMemberProfile` using a unique key and a patch.""" - updateOrgMemberProfile( + """Updates a single `AppLimitEvent` using a unique key and a patch.""" + updateAppLimitEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMemberProfileInput! - ): UpdateOrgMemberProfilePayload + input: UpdateAppLimitEventInput! + ): UpdateAppLimitEventPayload + + """Updates a single `OrgLimitEvent` using a unique key and a patch.""" + updateOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitEventInput! + ): UpdateOrgLimitEventPayload """Updates a single `DatabaseTransfer` using a unique key and a patch.""" updateDatabaseTransfer( @@ -38809,14 +39402,6 @@ type Mutation { input: UpdateDatabaseSettingInput! ): UpdateDatabaseSettingPayload - """Updates a single `BillingModule` using a unique key and a patch.""" - updateBillingModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateBillingModuleInput! - ): UpdateBillingModulePayload - """Updates a single `CryptoAuthModule` using a unique key and a patch.""" updateCryptoAuthModule( """ @@ -38844,30 +39429,32 @@ type Mutation { ): UpdateInvitesModulePayload """ - Updates a single `SecureTableProvision` using a unique key and a patch. + Updates a single `OrgMembershipSetting` using a unique key and a patch. """ - updateSecureTableProvision( + updateOrgMembershipSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateSecureTableProvisionInput! - ): UpdateSecureTableProvisionPayload + input: UpdateOrgMembershipSettingInput! + ): UpdateOrgMembershipSettingPayload - """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" - updateOrgLimitAggregate( + """ + Updates a single `SecureTableProvision` using a unique key and a patch. + """ + updateSecureTableProvision( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitAggregateInput! - ): UpdateOrgLimitAggregatePayload + input: UpdateSecureTableProvisionInput! + ): UpdateSecureTableProvisionPayload - """Updates a single `OrgLimit` using a unique key and a patch.""" - updateOrgLimit( + """Updates a single `AppLimit` using a unique key and a patch.""" + updateAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitInput! - ): UpdateOrgLimitPayload + input: UpdateAppLimitInput! + ): UpdateAppLimitPayload """Updates a single `ApiSetting` using a unique key and a patch.""" updateApiSetting( @@ -38885,13 +39472,21 @@ type Mutation { input: UpdateEnumInput! ): UpdateEnumPayload - """Updates a single `User` using a unique key and a patch.""" - updateUser( + """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" + updateOrgLimitAggregate( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateUserInput! - ): UpdateUserPayload + input: UpdateOrgLimitAggregateInput! + ): UpdateOrgLimitAggregatePayload + + """Updates a single `OrgLimit` using a unique key and a patch.""" + updateOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitInput! + ): UpdateOrgLimitPayload """Updates a single `View` using a unique key and a patch.""" updateView( @@ -38901,6 +39496,14 @@ type Mutation { input: UpdateViewInput! ): UpdateViewPayload + """Updates a single `BillingModule` using a unique key and a patch.""" + updateBillingModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBillingModuleInput! + ): UpdateBillingModulePayload + """Updates a single `WebauthnAuthModule` using a unique key and a patch.""" updateWebauthnAuthModule( """ @@ -38909,23 +39512,21 @@ type Mutation { input: UpdateWebauthnAuthModuleInput! ): UpdateWebauthnAuthModulePayload - """Updates a single `AppInvite` using a unique key and a patch.""" - updateAppInvite( + """Updates a single `AppMembership` using a unique key and a patch.""" + updateAppMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppInviteInput! - ): UpdateAppInvitePayload + input: UpdateAppMembershipInput! + ): UpdateAppMembershipPayload - """ - Updates a single `OrgMembershipSetting` using a unique key and a patch. - """ - updateOrgMembershipSetting( + """Updates a single `User` using a unique key and a patch.""" + updateUser( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMembershipSettingInput! - ): UpdateOrgMembershipSettingPayload + input: UpdateUserInput! + ): UpdateUserPayload """Updates a single `App` using a unique key and a patch.""" updateApp( @@ -39025,13 +39626,13 @@ type Mutation { input: UpdateWebauthnSettingInput! ): UpdateWebauthnSettingPayload - """Updates a single `AppMembership` using a unique key and a patch.""" - updateAppMembership( + """Updates a single `OrgMembership` using a unique key and a patch.""" + updateOrgMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppMembershipInput! - ): UpdateAppMembershipPayload + input: UpdateOrgMembershipInput! + ): UpdateOrgMembershipPayload """Updates a single `Schema` using a unique key and a patch.""" updateSchema( @@ -39049,13 +39650,13 @@ type Mutation { input: UpdateIndexInput! ): UpdateIndexPayload - """Updates a single `OrgInvite` using a unique key and a patch.""" - updateOrgInvite( + """Updates a single `AppInvite` using a unique key and a patch.""" + updateAppInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgInviteInput! - ): UpdateOrgInvitePayload + input: UpdateAppInviteInput! + ): UpdateAppInvitePayload """ Updates a single `BillingProviderModule` using a unique key and a patch. @@ -39091,14 +39692,6 @@ type Mutation { input: UpdateProfilesModuleInput! ): UpdateProfilesModulePayload - """Updates a single `OrgMembership` using a unique key and a patch.""" - updateOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipInput! - ): UpdateOrgMembershipPayload - """Updates a single `EmbeddingChunk` using a unique key and a patch.""" updateEmbeddingChunk( """ @@ -39117,6 +39710,14 @@ type Mutation { input: UpdateForeignKeyConstraintInput! ): UpdateForeignKeyConstraintPayload + """Updates a single `OrgInvite` using a unique key and a patch.""" + updateOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgInviteInput! + ): UpdateOrgInvitePayload + """Updates a single `RelationProvision` using a unique key and a patch.""" updateRelationProvision( """ @@ -39165,14 +39766,6 @@ type Mutation { input: UpdateLimitsModuleInput! ): UpdateLimitsModulePayload - """Updates a single `StorageModule` using a unique key and a patch.""" - updateStorageModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateStorageModuleInput! - ): UpdateStorageModulePayload - """Updates a single `MembershipsModule` using a unique key and a patch.""" updateMembershipsModule( """ @@ -39181,6 +39774,14 @@ type Mutation { input: UpdateMembershipsModuleInput! ): UpdateMembershipsModulePayload + """Updates a single `StorageModule` using a unique key and a patch.""" + updateStorageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateStorageModuleInput! + ): UpdateStorageModulePayload + """Updates a single `EventsModule` using a unique key and a patch.""" updateEventsModule( """ @@ -39197,14 +39798,6 @@ type Mutation { input: DeleteDefaultIdsModuleInput! ): DeleteDefaultIdsModulePayload - """Deletes a single `RoleType` using a unique key.""" - deleteRoleType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteRoleTypeInput! - ): DeleteRoleTypePayload - """Deletes a single `AppLimitCreditRedemption` using a unique key.""" deleteAppLimitCreditRedemption( """ @@ -39277,13 +39870,21 @@ type Mutation { input: DeleteStoreInput! ): DeleteStorePayload - """Deletes a single `EncryptedSecretsModule` using a unique key.""" - deleteEncryptedSecretsModule( + """Deletes a single `ConfigSecretsOrgModule` using a unique key.""" + deleteConfigSecretsOrgModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteEncryptedSecretsModuleInput! - ): DeleteEncryptedSecretsModulePayload + input: DeleteConfigSecretsOrgModuleInput! + ): DeleteConfigSecretsOrgModulePayload + + """Deletes a single `ConfigSecretsUserModule` using a unique key.""" + deleteConfigSecretsUserModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteConfigSecretsUserModuleInput! + ): DeleteConfigSecretsUserModulePayload """Deletes a single `MembershipTypesModule` using a unique key.""" deleteMembershipTypesModule( @@ -39325,13 +39926,13 @@ type Mutation { input: DeleteSiteModuleInput! ): DeleteSiteModulePayload - """Deletes a single `AppLimitCreditCode` using a unique key.""" - deleteAppLimitCreditCode( + """Deletes a single `RoleType` using a unique key.""" + deleteRoleType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditCodeInput! - ): DeleteAppLimitCreditCodePayload + input: DeleteRoleTypeInput! + ): DeleteRoleTypePayload """Deletes a single `SchemaGrant` using a unique key.""" deleteSchemaGrant( @@ -39397,22 +39998,6 @@ type Mutation { input: DeleteOrgPermissionDefaultInput! ): DeleteOrgPermissionDefaultPayload - """Deletes a single `AppPermission` using a unique key.""" - deleteAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionInput! - ): DeleteAppPermissionPayload - - """Deletes a single `OrgPermission` using a unique key.""" - deleteOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgPermissionInput! - ): DeleteOrgPermissionPayload - """Deletes a single `AppLimitCapsDefault` using a unique key.""" deleteAppLimitCapsDefault( """ @@ -39429,30 +40014,6 @@ type Mutation { input: DeleteOrgLimitCapsDefaultInput! ): DeleteOrgLimitCapsDefaultPayload - """Deletes a single `AppLimitCap` using a unique key.""" - deleteAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCapInput! - ): DeleteAppLimitCapPayload - - """Deletes a single `OrgLimitCap` using a unique key.""" - deleteOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCapInput! - ): DeleteOrgLimitCapPayload - - """Deletes a single `MembershipType` using a unique key.""" - deleteMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMembershipTypeInput! - ): DeleteMembershipTypePayload - """Deletes a single `DefaultPrivilege` using a unique key.""" deleteDefaultPrivilege( """ @@ -39525,6 +40086,14 @@ type Mutation { input: DeleteWebauthnCredentialsModuleInput! ): DeleteWebauthnCredentialsModulePayload + """Deletes a single `AppMembershipDefault` using a unique key.""" + deleteAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppMembershipDefaultInput! + ): DeleteAppMembershipDefaultPayload + """Deletes a single `OrgAdminGrant` using a unique key.""" deleteOrgAdminGrant( """ @@ -39533,6 +40102,14 @@ type Mutation { input: DeleteOrgAdminGrantInput! ): DeleteOrgAdminGrantPayload + """Deletes a single `OrgMembershipDefault` using a unique key.""" + deleteOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipDefaultInput! + ): DeleteOrgMembershipDefaultPayload + """Deletes a single `OrgOwnerGrant` using a unique key.""" deleteOrgOwnerGrant( """ @@ -39549,37 +40126,45 @@ type Mutation { input: DeleteNodeTypeRegistryInput! ): DeleteNodeTypeRegistryPayload - """Deletes a single `AppLimitDefault` using a unique key.""" - deleteAppLimitDefault( + """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" + deleteAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitDefaultInput! - ): DeleteAppLimitDefaultPayload + input: DeleteAppLimitCreditCodeItemInput! + ): DeleteAppLimitCreditCodeItemPayload - """Deletes a single `OrgLimitDefault` using a unique key.""" - deleteOrgLimitDefault( + """Deletes a single `AppLimitCap` using a unique key.""" + deleteAppLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitDefaultInput! - ): DeleteOrgLimitDefaultPayload + input: DeleteAppLimitCapInput! + ): DeleteAppLimitCapPayload - """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" - deleteAppLimitCreditCodeItem( + """Deletes a single `AppLimitDefault` using a unique key.""" + deleteAppLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditCodeItemInput! - ): DeleteAppLimitCreditCodeItemPayload + input: DeleteAppLimitDefaultInput! + ): DeleteAppLimitDefaultPayload - """Deletes a single `AppLimitWarning` using a unique key.""" - deleteAppLimitWarning( + """Deletes a single `OrgLimitCap` using a unique key.""" + deleteOrgLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitWarningInput! - ): DeleteAppLimitWarningPayload + input: DeleteOrgLimitCapInput! + ): DeleteOrgLimitCapPayload + + """Deletes a single `OrgLimitDefault` using a unique key.""" + deleteOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitDefaultInput! + ): DeleteOrgLimitDefaultPayload """Deletes a single `Database` using a unique key.""" deleteDatabase( @@ -39597,6 +40182,14 @@ type Mutation { input: DeleteCryptoAddressesModuleInput! ): DeleteCryptoAddressesModulePayload + """Deletes a single `OrgChartEdge` using a unique key.""" + deleteOrgChartEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgChartEdgeInput! + ): DeleteOrgChartEdgePayload + """Deletes a single `CryptoAddress` using a unique key.""" deleteCryptoAddress( """ @@ -39621,14 +40214,6 @@ type Mutation { input: DeleteAppLimitCreditInput! ): DeleteAppLimitCreditPayload - """Deletes a single `OrgLimitWarning` using a unique key.""" - deleteOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitWarningInput! - ): DeleteOrgLimitWarningPayload - """Deletes a single `OrgLimitCredit` using a unique key.""" deleteOrgLimitCredit( """ @@ -39645,13 +40230,37 @@ type Mutation { input: DeleteObjectInput! ): DeleteObjectPayload - """Deletes a single `SiteMetadatum` using a unique key.""" - deleteSiteMetadatum( + """Deletes a single `AppPermission` using a unique key.""" + deleteAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSiteMetadatumInput! - ): DeleteSiteMetadatumPayload + input: DeleteAppPermissionInput! + ): DeleteAppPermissionPayload + + """Deletes a single `OrgPermission` using a unique key.""" + deleteOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionInput! + ): DeleteOrgPermissionPayload + + """Deletes a single `AppLimitCreditCode` using a unique key.""" + deleteAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditCodeInput! + ): DeleteAppLimitCreditCodePayload + + """Deletes a single `AppLimitWarning` using a unique key.""" + deleteAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitWarningInput! + ): DeleteAppLimitWarningPayload """Deletes a single `FullTextSearch` using a unique key.""" deleteFullTextSearch( @@ -39677,6 +40286,14 @@ type Mutation { input: DeleteCommitInput! ): DeleteCommitPayload + """Deletes a single `SiteMetadatum` using a unique key.""" + deleteSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteMetadatumInput! + ): DeleteSiteMetadatumPayload + """Deletes a single `PubkeySetting` using a unique key.""" deletePubkeySetting( """ @@ -39725,29 +40342,21 @@ type Mutation { input: DeleteAppClaimedInviteInput! ): DeleteAppClaimedInvitePayload - """Deletes a single `AppMembershipDefault` using a unique key.""" - deleteAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppMembershipDefaultInput! - ): DeleteAppMembershipDefaultPayload - - """Deletes a single `OrgMembershipDefault` using a unique key.""" - deleteOrgMembershipDefault( + """Deletes a single `OrgLimitWarning` using a unique key.""" + deleteOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMembershipDefaultInput! - ): DeleteOrgMembershipDefaultPayload + input: DeleteOrgLimitWarningInput! + ): DeleteOrgLimitWarningPayload - """Deletes a single `AuditLog` using a unique key.""" - deleteAuditLog( + """Deletes a single `MembershipType` using a unique key.""" + deleteMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAuditLogInput! - ): DeleteAuditLogPayload + input: DeleteMembershipTypeInput! + ): DeleteMembershipTypePayload """Deletes a single `Domain` using a unique key.""" deleteDomain( @@ -39781,14 +40390,6 @@ type Mutation { input: DeleteAgentThreadInput! ): DeleteAgentThreadPayload - """Deletes a single `Email` using a unique key.""" - deleteEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEmailInput! - ): DeleteEmailPayload - """Deletes a single `AppGrant` using a unique key.""" deleteAppGrant( """ @@ -39805,22 +40406,6 @@ type Mutation { input: DeleteOrgClaimedInviteInput! ): DeleteOrgClaimedInvitePayload - """Deletes a single `OrgChartEdge` using a unique key.""" - deleteOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeInput! - ): DeleteOrgChartEdgePayload - - """Deletes a single `Partition` using a unique key.""" - deletePartition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePartitionInput! - ): DeletePartitionPayload - """Deletes a single `BlueprintConstruction` using a unique key.""" deleteBlueprintConstruction( """ @@ -39845,6 +40430,14 @@ type Mutation { input: DeleteSessionsModuleInput! ): DeleteSessionsModulePayload + """Deletes a single `OrgMemberProfile` using a unique key.""" + deleteOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMemberProfileInput! + ): DeleteOrgMemberProfilePayload + """Deletes a single `OrgGrant` using a unique key.""" deleteOrgGrant( """ @@ -39853,6 +40446,22 @@ type Mutation { input: DeleteOrgGrantInput! ): DeleteOrgGrantPayload + """Deletes a single `AuditLog` using a unique key.""" + deleteAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAuditLogInput! + ): DeleteAuditLogPayload + + """Deletes a single `Partition` using a unique key.""" + deletePartition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePartitionInput! + ): DeletePartitionPayload + """Deletes a single `Blueprint` using a unique key.""" deleteBlueprint( """ @@ -39869,6 +40478,14 @@ type Mutation { input: DeleteDenormalizedTableFieldInput! ): DeleteDenormalizedTableFieldPayload + """Deletes a single `InferenceLogModule` using a unique key.""" + deleteInferenceLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInferenceLogModuleInput! + ): DeleteInferenceLogModulePayload + """Deletes a single `RateLimitMetersModule` using a unique key.""" deleteRateLimitMetersModule( """ @@ -39893,21 +40510,29 @@ type Mutation { input: DeletePlansModuleInput! ): DeletePlansModulePayload - """Deletes a single `AppLimit` using a unique key.""" - deleteAppLimit( + """Deletes a single `Email` using a unique key.""" + deleteEmail( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitInput! - ): DeleteAppLimitPayload + input: DeleteEmailInput! + ): DeleteEmailPayload - """Deletes a single `OrgMemberProfile` using a unique key.""" - deleteOrgMemberProfile( + """Deletes a single `AppLimitEvent` using a unique key.""" + deleteAppLimitEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMemberProfileInput! - ): DeleteOrgMemberProfilePayload + input: DeleteAppLimitEventInput! + ): DeleteAppLimitEventPayload + + """Deletes a single `OrgLimitEvent` using a unique key.""" + deleteOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitEventInput! + ): DeleteOrgLimitEventPayload """Deletes a single `DatabaseTransfer` using a unique key.""" deleteDatabaseTransfer( @@ -39925,14 +40550,6 @@ type Mutation { input: DeleteDatabaseSettingInput! ): DeleteDatabaseSettingPayload - """Deletes a single `BillingModule` using a unique key.""" - deleteBillingModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteBillingModuleInput! - ): DeleteBillingModulePayload - """Deletes a single `CryptoAuthModule` using a unique key.""" deleteCryptoAuthModule( """ @@ -39957,29 +40574,29 @@ type Mutation { input: DeleteInvitesModuleInput! ): DeleteInvitesModulePayload - """Deletes a single `SecureTableProvision` using a unique key.""" - deleteSecureTableProvision( + """Deletes a single `OrgMembershipSetting` using a unique key.""" + deleteOrgMembershipSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSecureTableProvisionInput! - ): DeleteSecureTableProvisionPayload + input: DeleteOrgMembershipSettingInput! + ): DeleteOrgMembershipSettingPayload - """Deletes a single `OrgLimitAggregate` using a unique key.""" - deleteOrgLimitAggregate( + """Deletes a single `SecureTableProvision` using a unique key.""" + deleteSecureTableProvision( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitAggregateInput! - ): DeleteOrgLimitAggregatePayload + input: DeleteSecureTableProvisionInput! + ): DeleteSecureTableProvisionPayload - """Deletes a single `OrgLimit` using a unique key.""" - deleteOrgLimit( + """Deletes a single `AppLimit` using a unique key.""" + deleteAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitInput! - ): DeleteOrgLimitPayload + input: DeleteAppLimitInput! + ): DeleteAppLimitPayload """Deletes a single `ApiSetting` using a unique key.""" deleteApiSetting( @@ -39997,13 +40614,21 @@ type Mutation { input: DeleteEnumInput! ): DeleteEnumPayload - """Deletes a single `User` using a unique key.""" - deleteUser( + """Deletes a single `OrgLimitAggregate` using a unique key.""" + deleteOrgLimitAggregate( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteUserInput! - ): DeleteUserPayload + input: DeleteOrgLimitAggregateInput! + ): DeleteOrgLimitAggregatePayload + + """Deletes a single `OrgLimit` using a unique key.""" + deleteOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitInput! + ): DeleteOrgLimitPayload """Deletes a single `View` using a unique key.""" deleteView( @@ -40013,6 +40638,14 @@ type Mutation { input: DeleteViewInput! ): DeleteViewPayload + """Deletes a single `BillingModule` using a unique key.""" + deleteBillingModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBillingModuleInput! + ): DeleteBillingModulePayload + """Deletes a single `WebauthnAuthModule` using a unique key.""" deleteWebauthnAuthModule( """ @@ -40021,21 +40654,21 @@ type Mutation { input: DeleteWebauthnAuthModuleInput! ): DeleteWebauthnAuthModulePayload - """Deletes a single `AppInvite` using a unique key.""" - deleteAppInvite( + """Deletes a single `AppMembership` using a unique key.""" + deleteAppMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppInviteInput! - ): DeleteAppInvitePayload + input: DeleteAppMembershipInput! + ): DeleteAppMembershipPayload - """Deletes a single `OrgMembershipSetting` using a unique key.""" - deleteOrgMembershipSetting( + """Deletes a single `User` using a unique key.""" + deleteUser( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMembershipSettingInput! - ): DeleteOrgMembershipSettingPayload + input: DeleteUserInput! + ): DeleteUserPayload """Deletes a single `App` using a unique key.""" deleteApp( @@ -40133,13 +40766,13 @@ type Mutation { input: DeleteWebauthnSettingInput! ): DeleteWebauthnSettingPayload - """Deletes a single `AppMembership` using a unique key.""" - deleteAppMembership( + """Deletes a single `OrgMembership` using a unique key.""" + deleteOrgMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppMembershipInput! - ): DeleteAppMembershipPayload + input: DeleteOrgMembershipInput! + ): DeleteOrgMembershipPayload """Deletes a single `Schema` using a unique key.""" deleteSchema( @@ -40157,13 +40790,13 @@ type Mutation { input: DeleteIndexInput! ): DeleteIndexPayload - """Deletes a single `OrgInvite` using a unique key.""" - deleteOrgInvite( + """Deletes a single `AppInvite` using a unique key.""" + deleteAppInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgInviteInput! - ): DeleteOrgInvitePayload + input: DeleteAppInviteInput! + ): DeleteAppInvitePayload """Deletes a single `BillingProviderModule` using a unique key.""" deleteBillingProviderModule( @@ -40197,14 +40830,6 @@ type Mutation { input: DeleteProfilesModuleInput! ): DeleteProfilesModulePayload - """Deletes a single `OrgMembership` using a unique key.""" - deleteOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipInput! - ): DeleteOrgMembershipPayload - """Deletes a single `EmbeddingChunk` using a unique key.""" deleteEmbeddingChunk( """ @@ -40221,6 +40846,14 @@ type Mutation { input: DeleteForeignKeyConstraintInput! ): DeleteForeignKeyConstraintPayload + """Deletes a single `OrgInvite` using a unique key.""" + deleteOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgInviteInput! + ): DeleteOrgInvitePayload + """Deletes a single `RelationProvision` using a unique key.""" deleteRelationProvision( """ @@ -40269,14 +40902,6 @@ type Mutation { input: DeleteLimitsModuleInput! ): DeleteLimitsModulePayload - """Deletes a single `StorageModule` using a unique key.""" - deleteStorageModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteStorageModuleInput! - ): DeleteStorageModulePayload - """Deletes a single `MembershipsModule` using a unique key.""" deleteMembershipsModule( """ @@ -40285,6 +40910,14 @@ type Mutation { input: DeleteMembershipsModuleInput! ): DeleteMembershipsModulePayload + """Deletes a single `StorageModule` using a unique key.""" + deleteStorageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteStorageModuleInput! + ): DeleteStorageModulePayload + """Deletes a single `EventsModule` using a unique key.""" deleteEventsModule( """ @@ -40727,7 +41360,7 @@ input FreezeObjectsInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - databaseId: UUID + sId: UUID id: UUID } @@ -40752,7 +41385,7 @@ input InitEmptyRepoInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID } @@ -40857,7 +41490,7 @@ input RemoveNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] } @@ -40923,6 +41556,41 @@ input ProvisionSpatialRelationInput { pParamName: String } +"""The output of our `signInCrossOrigin` mutation.""" +type SignInCrossOriginPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: SignInCrossOriginRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignInCrossOriginRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean +} + +"""All input for the `signInCrossOrigin` mutation.""" +input SignInCrossOriginInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + token: String + credentialKind: String +} + """The output of our `bootstrapUser` mutation.""" type BootstrapUserPayload { """ @@ -40965,6 +41633,86 @@ input BootstrapUserInput { returnApiKey: Boolean } +"""The output of our `signUp` mutation.""" +type SignUpPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: SignUpRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignUpRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean +} + +"""All input for the `signUp` mutation.""" +input SignUpInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + email: String + password: String + rememberMe: Boolean + credentialKind: String + csrfToken: String + deviceToken: String +} + +"""The output of our `signIn` mutation.""" +type SignInPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: SignInRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignInRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean + mfaRequired: Boolean + mfaChallengeToken: String +} + +"""All input for the `signIn` mutation.""" +input SignInInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + email: String + password: String + rememberMe: Boolean + credentialKind: String + csrfToken: String + deviceToken: String +} + """The output of our `setFieldOrder` mutation.""" type SetFieldOrderPayload { """ @@ -41117,7 +41865,7 @@ input SetDataAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -41145,7 +41893,7 @@ input SetPropsAndCommitInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID refname: String path: [String] @@ -41208,7 +41956,7 @@ input InsertNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -41238,7 +41986,7 @@ input UpdateNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -41268,7 +42016,7 @@ input SetAndCommitInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID refname: String path: [String] @@ -41357,41 +42105,6 @@ input ApplyRlsInput { name: String } -"""The output of our `signInCrossOrigin` mutation.""" -type SignInCrossOriginPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: SignInCrossOriginRecord - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -type SignInCrossOriginRecord { - id: UUID - userId: UUID - accessToken: String - accessTokenExpiresAt: Datetime - isVerified: Boolean - totpEnabled: Boolean -} - -"""All input for the `signInCrossOrigin` mutation.""" -input SignInCrossOriginInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - token: String - credentialKind: String -} - """The output of our `createUserDatabase` mutation.""" type CreateUserDatabasePayload { """ @@ -41488,63 +42201,14 @@ input CreateApiKeyInput { expiresIn: IntervalInput } -"""The output of our `sendVerificationEmail` mutation.""" -type SendVerificationEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: Boolean - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `sendVerificationEmail` mutation.""" -input SendVerificationEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - email: ConstructiveInternalTypeEmail -} - -"""The output of our `forgotPassword` mutation.""" -type ForgotPasswordPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `forgotPassword` mutation.""" -input ForgotPasswordInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - email: ConstructiveInternalTypeEmail -} - -"""The output of our `signUp` mutation.""" -type SignUpPayload { +"""The output of our `requestCrossOriginToken` mutation.""" +type RequestCrossOriginTokenPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: SignUpRecord + result: String """ Our root query field type. Allows us to run any query from our mutation payload. @@ -41552,17 +42216,8 @@ type SignUpPayload { query: Query } -type SignUpRecord { - id: UUID - userId: UUID - accessToken: String - accessTokenExpiresAt: Datetime - isVerified: Boolean - totpEnabled: Boolean -} - -"""All input for the `signUp` mutation.""" -input SignUpInput { +"""All input for the `requestCrossOriginToken` mutation.""" +input RequestCrossOriginTokenInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -41570,20 +42225,18 @@ input SignUpInput { clientMutationId: String email: String password: String + origin: ConstructiveInternalTypeOrigin rememberMe: Boolean - credentialKind: String - csrfToken: String - deviceToken: String } -"""The output of our `requestCrossOriginToken` mutation.""" -type RequestCrossOriginTokenPayload { +"""The output of our `provisionTable` mutation.""" +type ProvisionTablePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: String + result: [ProvisionTableRecord] """ Our root query field type. Allows us to run any query from our mutation payload. @@ -41591,27 +42244,41 @@ type RequestCrossOriginTokenPayload { query: Query } -"""All input for the `requestCrossOriginToken` mutation.""" -input RequestCrossOriginTokenInput { +type ProvisionTableRecord { + outTableId: UUID + outFields: [UUID] +} + +"""All input for the `provisionTable` mutation.""" +input ProvisionTableInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - email: String - password: String - origin: ConstructiveInternalTypeOrigin - rememberMe: Boolean + databaseId: UUID + schemaId: UUID + tableName: String + tableId: UUID + nodes: JSON + fields: JSON + policies: JSON + grants: JSON + useRls: Boolean + indexes: JSON + fullTextSearches: JSON + uniqueConstraints: JSON + description: String } -"""The output of our `signIn` mutation.""" -type SignInPayload { +"""The output of our `sendVerificationEmail` mutation.""" +type SendVerificationEmailPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: SignInRecord + result: Boolean """ Our root query field type. Allows us to run any query from our mutation payload. @@ -41619,40 +42286,23 @@ type SignInPayload { query: Query } -type SignInRecord { - id: UUID - userId: UUID - accessToken: String - accessTokenExpiresAt: Datetime - isVerified: Boolean - totpEnabled: Boolean - mfaRequired: Boolean - mfaChallengeToken: String -} - -"""All input for the `signIn` mutation.""" -input SignInInput { +"""All input for the `sendVerificationEmail` mutation.""" +input SendVerificationEmailInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - email: String - password: String - rememberMe: Boolean - credentialKind: String - csrfToken: String - deviceToken: String + email: ConstructiveInternalTypeEmail } -"""The output of our `provisionTable` mutation.""" -type ProvisionTablePayload { +"""The output of our `forgotPassword` mutation.""" +type ForgotPasswordPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: [ProvisionTableRecord] """ Our root query field type. Allows us to run any query from our mutation payload. @@ -41660,31 +42310,14 @@ type ProvisionTablePayload { query: Query } -type ProvisionTableRecord { - outTableId: UUID - outFields: [UUID] -} - -"""All input for the `provisionTable` mutation.""" -input ProvisionTableInput { +"""All input for the `forgotPassword` mutation.""" +input ForgotPasswordInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - databaseId: UUID - schemaId: UUID - tableName: String - tableId: UUID - nodes: JSON - fields: JSON - policies: JSON - grants: JSON - useRls: Boolean - indexes: JSON - fullTextSearches: JSON - uniqueConstraints: JSON - description: String + email: ConstructiveInternalTypeEmail } """The output of our create `DefaultIdsModule` mutation.""" @@ -41728,47 +42361,6 @@ input DefaultIdsModuleInput { databaseId: UUID! } -"""The output of our create `RoleType` mutation.""" -type CreateRoleTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `RoleType` that was created by this mutation.""" - roleType: RoleType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge -} - -"""All input for the create `RoleType` mutation.""" -input CreateRoleTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `RoleType` to be created by this mutation.""" - roleType: RoleTypeInput! -} - -"""An input for mutations affecting `RoleType`""" -input RoleTypeInput { - id: Int! - name: String! -} - """The output of our create `AppLimitCreditRedemption` mutation.""" type CreateAppLimitCreditRedemptionPayload { """ @@ -42182,7 +42774,7 @@ input RefInput { """The name of the ref or branch""" name: String! - databaseId: UUID! + scopeId: UUID! storeId: UUID! commitId: UUID } @@ -42230,51 +42822,95 @@ input StoreInput { """The name of the store (e.g., metaschema, migrations).""" name: String! - """The database this store belongs to.""" - databaseId: UUID! + """The scope this store belongs to.""" + scopeId: UUID! """The current head tree_id for this store.""" hash: UUID createdAt: Datetime } -"""The output of our create `EncryptedSecretsModule` mutation.""" -type CreateEncryptedSecretsModulePayload { +"""The output of our create `ConfigSecretsOrgModule` mutation.""" +type CreateConfigSecretsOrgModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `EncryptedSecretsModule` that was created by this mutation.""" - encryptedSecretsModule: EncryptedSecretsModule + """The `ConfigSecretsOrgModule` that was created by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EncryptedSecretsModule`. May be used by Relay 1.""" - encryptedSecretsModuleEdge( - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleEdge + """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" + configSecretsOrgModuleEdge( + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleEdge } -"""All input for the create `EncryptedSecretsModule` mutation.""" -input CreateEncryptedSecretsModuleInput { +"""All input for the create `ConfigSecretsOrgModule` mutation.""" +input CreateConfigSecretsOrgModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `EncryptedSecretsModule` to be created by this mutation.""" - encryptedSecretsModule: EncryptedSecretsModuleInput! + """The `ConfigSecretsOrgModule` to be created by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModuleInput! } -"""An input for mutations affecting `EncryptedSecretsModule`""" -input EncryptedSecretsModuleInput { +"""An input for mutations affecting `ConfigSecretsOrgModule`""" +input ConfigSecretsOrgModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our create `ConfigSecretsUserModule` mutation.""" +type CreateConfigSecretsUserModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ConfigSecretsUserModule` that was created by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" + configSecretsUserModuleEdge( + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleEdge +} + +"""All input for the create `ConfigSecretsUserModule` mutation.""" +input CreateConfigSecretsUserModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ConfigSecretsUserModule` to be created by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModuleInput! +} + +"""An input for mutations affecting `ConfigSecretsUserModule`""" +input ConfigSecretsUserModuleInput { id: UUID databaseId: UUID! schemaId: UUID @@ -42519,58 +43155,45 @@ input SiteModuleInput { data: JSON! } -"""The output of our create `AppLimitCreditCode` mutation.""" -type CreateAppLimitCreditCodePayload { +"""The output of our create `RoleType` mutation.""" +type CreateRoleTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCode` that was created by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `RoleType` that was created by this mutation.""" + roleType: RoleType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge } -"""All input for the create `AppLimitCreditCode` mutation.""" -input CreateAppLimitCreditCodeInput { +"""All input for the create `RoleType` mutation.""" +input CreateRoleTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLimitCreditCode` to be created by this mutation.""" - appLimitCreditCode: AppLimitCreditCodeInput! + """The `RoleType` to be created by this mutation.""" + roleType: RoleTypeInput! } -"""An input for mutations affecting `AppLimitCreditCode`""" -input AppLimitCreditCodeInput { - id: UUID - - """Human-readable credit code (case-insensitive, unique)""" - code: String! - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int - - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int - - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime +"""An input for mutations affecting `RoleType`""" +input RoleTypeInput { + id: Int! + name: String! } """The output of our create `SchemaGrant` mutation.""" @@ -42954,380 +43577,6 @@ input OrgPermissionDefaultInput { entityId: UUID! } -"""The output of our create `AppPermission` mutation.""" -type CreateAppPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermission` that was created by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the create `AppPermission` mutation.""" -input CreateAppPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppPermission` to be created by this mutation.""" - appPermission: AppPermissionInput! -} - -"""An input for mutations affecting `AppPermission`""" -input AppPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our create `OrgPermission` mutation.""" -type CreateOrgPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermission` that was created by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} - -"""All input for the create `OrgPermission` mutation.""" -input CreateOrgPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgPermission` to be created by this mutation.""" - orgPermission: OrgPermissionInput! -} - -"""An input for mutations affecting `OrgPermission`""" -input OrgPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our create `AppLimitCapsDefault` mutation.""" -type CreateAppLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCapsDefault` that was created by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge -} - -"""All input for the create `AppLimitCapsDefault` mutation.""" -input CreateAppLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCapsDefault` to be created by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefaultInput! -} - -"""An input for mutations affecting `AppLimitCapsDefault`""" -input AppLimitCapsDefaultInput { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our create `OrgLimitCapsDefault` mutation.""" -type CreateOrgLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` that was created by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge -} - -"""All input for the create `OrgLimitCapsDefault` mutation.""" -input CreateOrgLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` to be created by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefaultInput! -} - -"""An input for mutations affecting `OrgLimitCapsDefault`""" -input OrgLimitCapsDefaultInput { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our create `AppLimitCap` mutation.""" -type CreateAppLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCap` that was created by this mutation.""" - appLimitCap: AppLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} - -"""All input for the create `AppLimitCap` mutation.""" -input CreateAppLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCap` to be created by this mutation.""" - appLimitCap: AppLimitCapInput! -} - -"""An input for mutations affecting `AppLimitCap`""" -input AppLimitCapInput { - id: UUID - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our create `OrgLimitCap` mutation.""" -type CreateOrgLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCap` that was created by this mutation.""" - orgLimitCap: OrgLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the create `OrgLimitCap` mutation.""" -input CreateOrgLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCap` to be created by this mutation.""" - orgLimitCap: OrgLimitCapInput! -} - -"""An input for mutations affecting `OrgLimitCap`""" -input OrgLimitCapInput { - id: UUID - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our create `MembershipType` mutation.""" -type CreateMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was created by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the create `MembershipType` mutation.""" -input CreateMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `MembershipType` to be created by this mutation.""" - membershipType: MembershipTypeInput! -} - -"""An input for mutations affecting `MembershipType`""" -input MembershipTypeInput { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean -} - """The output of our create `MigrateFile` mutation.""" type CreateMigrateFilePayload { """ @@ -43364,6 +43613,106 @@ input MigrateFileInput { upload: ConstructiveInternalTypeUpload } +"""The output of our create `AppLimitCapsDefault` mutation.""" +type CreateAppLimitCapsDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCapsDefault` that was created by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" + appLimitCapsDefaultEdge( + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultEdge +} + +"""All input for the create `AppLimitCapsDefault` mutation.""" +input CreateAppLimitCapsDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitCapsDefault` to be created by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefaultInput! +} + +"""An input for mutations affecting `AppLimitCapsDefault`""" +input AppLimitCapsDefaultInput { + id: UUID + + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String! + + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt +} + +"""The output of our create `OrgLimitCapsDefault` mutation.""" +type CreateOrgLimitCapsDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitCapsDefault` that was created by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" + orgLimitCapsDefaultEdge( + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultEdge +} + +"""All input for the create `OrgLimitCapsDefault` mutation.""" +input CreateOrgLimitCapsDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitCapsDefault` to be created by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefaultInput! +} + +"""An input for mutations affecting `OrgLimitCapsDefault`""" +input OrgLimitCapsDefaultInput { + id: UUID + + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String! + + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt +} + """The output of our create `DefaultPrivilege` mutation.""" type CreateDefaultPrivilegePayload { """ @@ -43795,6 +44144,56 @@ input WebauthnCredentialsModuleInput { tableName: String } +"""The output of our create `AppMembershipDefault` mutation.""" +type CreateAppMembershipDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppMembershipDefault` that was created by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the create `AppMembershipDefault` mutation.""" +input CreateAppMembershipDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppMembershipDefault` to be created by this mutation.""" + appMembershipDefault: AppMembershipDefaultInput! +} + +"""An input for mutations affecting `AppMembershipDefault`""" +input AppMembershipDefaultInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """Whether new members are automatically verified upon joining""" + isVerified: Boolean +} + """The output of our create `OrgAdminGrant` mutation.""" type CreateOrgAdminGrantPayload { """ @@ -43847,6 +44246,56 @@ input OrgAdminGrantInput { updatedAt: Datetime } +"""The output of our create `OrgMembershipDefault` mutation.""" +type CreateOrgMembershipDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMembershipDefault` that was created by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the create `OrgMembershipDefault` mutation.""" +input CreateOrgMembershipDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgMembershipDefault` to be created by this mutation.""" + orgMembershipDefault: OrgMembershipDefaultInput! +} + +"""An input for mutations affecting `OrgMembershipDefault`""" +input OrgMembershipDefaultInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """References the entity these membership defaults apply to""" + entityId: UUID! +} + """The output of our create `OrgOwnerGrant` mutation.""" type CreateOrgOwnerGrantPayload { """ @@ -43934,103 +44383,157 @@ input CreateNodeTypeRegistryInput { nodeTypeRegistry: NodeTypeRegistryInput! } -"""An input for mutations affecting `NodeTypeRegistry`""" -input NodeTypeRegistryInput { - name: String! - slug: String! - category: String! - displayName: String - description: String - parameterSchema: JSON - tags: [String] +"""An input for mutations affecting `NodeTypeRegistry`""" +input NodeTypeRegistryInput { + name: String! + slug: String! + category: String! + displayName: String + description: String + parameterSchema: JSON + tags: [String] +} + +"""The output of our create `AppLimitCreditCodeItem` mutation.""" +type CreateAppLimitCreditCodeItemPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditCodeItem` that was created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge +} + +"""All input for the create `AppLimitCreditCodeItem` mutation.""" +input CreateAppLimitCreditCodeItemInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitCreditCodeItem` to be created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItemInput! +} + +"""An input for mutations affecting `AppLimitCreditCodeItem`""" +input AppLimitCreditCodeItemInput { + id: UUID + + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID! + + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID! + + """Number of credits this item grants per redemption""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String } -"""The output of our create `AppLimitDefault` mutation.""" -type CreateAppLimitDefaultPayload { +"""The output of our create `AppLimitCap` mutation.""" +type CreateAppLimitCapPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was created by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppLimitCap` that was created by this mutation.""" + appLimitCap: AppLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge } -"""All input for the create `AppLimitDefault` mutation.""" -input CreateAppLimitDefaultInput { +"""All input for the create `AppLimitCap` mutation.""" +input CreateAppLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLimitDefault` to be created by this mutation.""" - appLimitDefault: AppLimitDefaultInput! + """The `AppLimitCap` to be created by this mutation.""" + appLimitCap: AppLimitCapInput! } -"""An input for mutations affecting `AppLimitDefault`""" -input AppLimitDefaultInput { +"""An input for mutations affecting `AppLimitCap`""" +input AppLimitCapInput { id: UUID - """Name identifier of the limit this default applies to""" + """Name identifier of the cap being overridden""" name: String! - """Default maximum usage allowed for this limit""" - max: BigInt + """Entity this cap override applies to""" + entityId: UUID! - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """Override cap value for this entity""" + max: BigInt } -"""The output of our create `OrgLimitDefault` mutation.""" -type CreateOrgLimitDefaultPayload { +"""The output of our create `AppLimitDefault` mutation.""" +type CreateAppLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was created by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `AppLimitDefault` that was created by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge } -"""All input for the create `OrgLimitDefault` mutation.""" -input CreateOrgLimitDefaultInput { +"""All input for the create `AppLimitDefault` mutation.""" +input CreateAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgLimitDefault` to be created by this mutation.""" - orgLimitDefault: OrgLimitDefaultInput! + """The `AppLimitDefault` to be created by this mutation.""" + appLimitDefault: AppLimitDefaultInput! } -"""An input for mutations affecting `OrgLimitDefault`""" -input OrgLimitDefaultInput { +"""An input for mutations affecting `AppLimitDefault`""" +input AppLimitDefaultInput { id: UUID """Name identifier of the limit this default applies to""" @@ -44043,114 +44546,102 @@ input OrgLimitDefaultInput { softMax: BigInt } -"""The output of our create `AppLimitCreditCodeItem` mutation.""" -type CreateAppLimitCreditCodeItemPayload { +"""The output of our create `OrgLimitCap` mutation.""" +type CreateOrgLimitCapPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCodeItem` that was created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `OrgLimitCap` that was created by this mutation.""" + orgLimitCap: OrgLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge } -"""All input for the create `AppLimitCreditCodeItem` mutation.""" -input CreateAppLimitCreditCodeItemInput { +"""All input for the create `OrgLimitCap` mutation.""" +input CreateOrgLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLimitCreditCodeItem` to be created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItemInput! + """The `OrgLimitCap` to be created by this mutation.""" + orgLimitCap: OrgLimitCapInput! } -"""An input for mutations affecting `AppLimitCreditCodeItem`""" -input AppLimitCreditCodeItemInput { +"""An input for mutations affecting `OrgLimitCap`""" +input OrgLimitCapInput { id: UUID - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID! - - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID! + """Name identifier of the cap being overridden""" + name: String! - """Number of credits this item grants per redemption""" - amount: BigInt! + """Entity this cap override applies to""" + entityId: UUID! - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String + """Override cap value for this entity""" + max: BigInt } -"""The output of our create `AppLimitWarning` mutation.""" -type CreateAppLimitWarningPayload { +"""The output of our create `OrgLimitDefault` mutation.""" +type CreateOrgLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitWarning` that was created by this mutation.""" - appLimitWarning: AppLimitWarning + """The `OrgLimitDefault` that was created by this mutation.""" + orgLimitDefault: OrgLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the create `AppLimitWarning` mutation.""" -input CreateAppLimitWarningInput { +"""All input for the create `OrgLimitDefault` mutation.""" +input CreateOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLimitWarning` to be created by this mutation.""" - appLimitWarning: AppLimitWarningInput! + """The `OrgLimitDefault` to be created by this mutation.""" + orgLimitDefault: OrgLimitDefaultInput! } -"""An input for mutations affecting `AppLimitWarning`""" -input AppLimitWarningInput { +"""An input for mutations affecting `OrgLimitDefault`""" +input OrgLimitDefaultInput { id: UUID - """Limit name this warning applies to (must match a default_limits entry)""" + """Name identifier of the limit this default applies to""" name: String! - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! + """Default maximum usage allowed for this limit""" + max: BigInt - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } """The output of our create `UserConnectedAccount` mutation.""" @@ -44288,6 +44779,65 @@ input CryptoAddressesModuleInput { cryptoNetwork: String } +"""The output of our create `OrgChartEdge` mutation.""" +type CreateOrgChartEdgePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgChartEdge` that was created by this mutation.""" + orgChartEdge: OrgChartEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge +} + +"""All input for the create `OrgChartEdge` mutation.""" +input CreateOrgChartEdgeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgChartEdge` to be created by this mutation.""" + orgChartEdge: OrgChartEdgeInput! +} + +"""An input for mutations affecting `OrgChartEdge`""" +input OrgChartEdgeInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Organization this hierarchy edge belongs to""" + entityId: UUID! + + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! + + """ + User ID of the manager; NULL indicates a top-level position with no direct report + """ + parentId: UUID + + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int +} + """The output of our create `CryptoAddress` mutation.""" type CreateCryptoAddressPayload { """ @@ -44470,65 +45020,6 @@ input AppLimitCreditInput { reason: String } -"""The output of our create `OrgLimitWarning` mutation.""" -type CreateOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was created by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge -} - -"""All input for the create `OrgLimitWarning` mutation.""" -input CreateOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitWarning` to be created by this mutation.""" - orgLimitWarning: OrgLimitWarningInput! -} - -"""An input for mutations affecting `OrgLimitWarning`""" -input OrgLimitWarningInput { - id: UUID - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! - - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID -} - """The output of our create `OrgLimitCredit` mutation.""" type CreateOrgLimitCreditPayload { """ @@ -44627,7 +45118,7 @@ input CreateObjectInput { """An input for mutations affecting `Object`""" input ObjectInput { id: UUID! - databaseId: UUID! + scopeId: UUID! kids: [UUID] ktree: [String] data: JSON @@ -44635,60 +45126,226 @@ input ObjectInput { createdAt: Datetime } -"""The output of our create `SiteMetadatum` mutation.""" -type CreateSiteMetadatumPayload { +"""The output of our create `AppPermission` mutation.""" +type CreateAppPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SiteMetadatum` that was created by this mutation.""" - siteMetadatum: SiteMetadatum + """The `AppPermission` that was created by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the create `SiteMetadatum` mutation.""" -input CreateSiteMetadatumInput { +"""All input for the create `AppPermission` mutation.""" +input CreateAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `SiteMetadatum` to be created by this mutation.""" - siteMetadatum: SiteMetadatumInput! + """The `AppPermission` to be created by this mutation.""" + appPermission: AppPermissionInput! } -"""An input for mutations affecting `SiteMetadatum`""" -input SiteMetadatumInput { - """Unique identifier for this metadata record""" +"""An input for mutations affecting `AppPermission`""" +input AppPermissionInput { id: UUID - """Reference to the metaschema database""" - databaseId: UUID! + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """Site this metadata belongs to""" - siteId: UUID! + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int - """Page title for SEO (max 120 characters)""" - title: String + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString - """Meta description for SEO and social sharing (max 120 characters)""" + """Human-readable description of what this permission allows""" description: String +} - """Open Graph image for social media previews""" - ogImage: ConstructiveInternalTypeImage +"""The output of our create `OrgPermission` mutation.""" +type CreateOrgPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermission` that was created by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the create `OrgPermission` mutation.""" +input CreateOrgPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgPermission` to be created by this mutation.""" + orgPermission: OrgPermissionInput! +} + +"""An input for mutations affecting `OrgPermission`""" +input OrgPermissionInput { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our create `AppLimitCreditCode` mutation.""" +type CreateAppLimitCreditCodePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditCode` that was created by this mutation.""" + appLimitCreditCode: AppLimitCreditCode + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge +} + +"""All input for the create `AppLimitCreditCode` mutation.""" +input CreateAppLimitCreditCodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitCreditCode` to be created by this mutation.""" + appLimitCreditCode: AppLimitCreditCodeInput! +} + +"""An input for mutations affecting `AppLimitCreditCode`""" +input AppLimitCreditCodeInput { + id: UUID + + """Human-readable credit code (case-insensitive, unique)""" + code: String! + + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int + + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime +} + +"""The output of our create `AppLimitWarning` mutation.""" +type CreateAppLimitWarningPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitWarning` that was created by this mutation.""" + appLimitWarning: AppLimitWarning + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge +} + +"""All input for the create `AppLimitWarning` mutation.""" +input CreateAppLimitWarningInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitWarning` to be created by this mutation.""" + appLimitWarning: AppLimitWarningInput! +} + +"""An input for mutations affecting `AppLimitWarning`""" +input AppLimitWarningInput { + id: UUID + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! } """The output of our create `FullTextSearch` mutation.""" @@ -44830,8 +45487,8 @@ input CommitInput { """The commit message""" message: String - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! storeId: UUID! """Parent commits""" @@ -44848,6 +45505,62 @@ input CommitInput { date: Datetime } +"""The output of our create `SiteMetadatum` mutation.""" +type CreateSiteMetadatumPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteMetadatum` that was created by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the create `SiteMetadatum` mutation.""" +input CreateSiteMetadatumInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `SiteMetadatum` to be created by this mutation.""" + siteMetadatum: SiteMetadatumInput! +} + +"""An input for mutations affecting `SiteMetadatum`""" +input SiteMetadatumInput { + """Unique identifier for this metadata record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """Site this metadata belongs to""" + siteId: UUID! + + """Page title for SEO (max 120 characters)""" + title: String + + """Meta description for SEO and social sharing (max 120 characters)""" + description: String + + """Open Graph image for social media previews""" + ogImage: ConstructiveInternalTypeImage +} + """The output of our create `PubkeySetting` mutation.""" type CreatePubkeySettingPayload { """ @@ -45212,167 +45925,127 @@ input AppClaimedInviteInput { updatedAt: Datetime } -"""The output of our create `AppMembershipDefault` mutation.""" -type CreateAppMembershipDefaultPayload { +"""The output of our create `OrgLimitWarning` mutation.""" +type CreateOrgLimitWarningPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembershipDefault` that was created by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `OrgLimitWarning` that was created by this mutation.""" + orgLimitWarning: OrgLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge } -"""All input for the create `AppMembershipDefault` mutation.""" -input CreateAppMembershipDefaultInput { +"""All input for the create `OrgLimitWarning` mutation.""" +input CreateOrgLimitWarningInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppMembershipDefault` to be created by this mutation.""" - appMembershipDefault: AppMembershipDefaultInput! + """The `OrgLimitWarning` to be created by this mutation.""" + orgLimitWarning: OrgLimitWarningInput! } -"""An input for mutations affecting `AppMembershipDefault`""" -input AppMembershipDefaultInput { +"""An input for mutations affecting `OrgLimitWarning`""" +input OrgLimitWarningInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - - """Whether new members are automatically verified upon joining""" - isVerified: Boolean -} - -"""The output of our create `OrgMembershipDefault` mutation.""" -type CreateOrgMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """The `OrgMembershipDefault` that was created by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type """ - query: Query - - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge -} + thresholdValue: BigInt! -"""All input for the create `OrgMembershipDefault` mutation.""" -input CreateOrgMembershipDefaultInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) """ - clientMutationId: String - - """The `OrgMembershipDefault` to be created by this mutation.""" - orgMembershipDefault: OrgMembershipDefaultInput! -} - -"""An input for mutations affecting `OrgMembershipDefault`""" -input OrgMembershipDefaultInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + taskIdentifier: String! - """References the entity these membership defaults apply to""" - entityId: UUID! + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID } -"""The output of our create `AuditLog` mutation.""" -type CreateAuditLogPayload { +"""The output of our create `MembershipType` mutation.""" +type CreateMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AuditLog` that was created by this mutation.""" - auditLog: AuditLog + """The `MembershipType` that was created by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the create `AuditLog` mutation.""" -input CreateAuditLogInput { +"""All input for the create `MembershipType` mutation.""" +input CreateMembershipTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AuditLog` to be created by this mutation.""" - auditLog: AuditLogInput! + """The `MembershipType` to be created by this mutation.""" + membershipType: MembershipTypeInput! } -"""An input for mutations affecting `AuditLog`""" -input AuditLogInput { - id: UUID - +"""An input for mutations affecting `MembershipType`""" +input MembershipTypeInput { """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - event: String! - - """User who performed the authentication action; NULL if user was deleted""" - actorId: UUID + id: Int! - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin + """Human-readable name of the membership type""" + name: String! - """Browser or client user-agent string from the request""" - userAgent: String + """Description of what this membership type represents""" + description: String! - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String! - """Whether the authentication attempt succeeded""" - success: Boolean! + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int - """Timestamp when the audit event was recorded""" - createdAt: Datetime + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean } """The output of our create `Domain` mutation.""" @@ -45663,61 +46336,6 @@ input AgentThreadInput { status: String } -"""The output of our create `Email` mutation.""" -type CreateEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Email` that was created by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the create `Email` mutation.""" -input CreateEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Email` to be created by this mutation.""" - email: EmailInput! -} - -"""An input for mutations affecting `Email`""" -input EmailInput { - id: UUID - ownerId: UUID - - """The email address""" - email: ConstructiveInternalTypeEmail! - - """Whether the email address has been verified via confirmation link""" - isVerified: Boolean - - """Whether this is the user's primary email address""" - isPrimary: Boolean - - """Optional user-provided label for this email (e.g. "Work", "Personal").""" - name: String - createdAt: Datetime - updatedAt: Datetime -} - """The output of our create `AppGrant` mutation.""" type CreateAppGrantPayload { """ @@ -45749,308 +46367,77 @@ input CreateAppGrantInput { """ clientMutationId: String - """The `AppGrant` to be created by this mutation.""" - appGrant: AppGrantInput! -} - -"""An input for mutations affecting `AppGrant`""" -input AppGrantInput { - id: UUID - - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean - - """The member receiving or losing the permission grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgClaimedInvite` mutation.""" -type CreateOrgClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgClaimedInvite` that was created by this mutation.""" - orgClaimedInvite: OrgClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge -} - -"""All input for the create `OrgClaimedInvite` mutation.""" -input CreateOrgClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgClaimedInvite` to be created by this mutation.""" - orgClaimedInvite: OrgClaimedInviteInput! -} - -"""An input for mutations affecting `OrgClaimedInvite`""" -input OrgClaimedInviteInput { - id: UUID - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! -} - -"""The output of our create `AppLimitEvent` mutation.""" -type CreateAppLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitEvent` that was created by this mutation.""" - appLimitEvent: AppLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `AppLimitEvent` mutation.""" -input CreateAppLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitEvent` to be created by this mutation.""" - appLimitEvent: AppLimitEventInput! -} - -"""An input for mutations affecting `AppLimitEvent`""" -input AppLimitEventInput { - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""The output of our create `OrgLimitEvent` mutation.""" -type CreateOrgLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitEvent` that was created by this mutation.""" - orgLimitEvent: OrgLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `OrgLimitEvent` mutation.""" -input CreateOrgLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitEvent` to be created by this mutation.""" - orgLimitEvent: OrgLimitEventInput! -} - -"""An input for mutations affecting `OrgLimitEvent`""" -input OrgLimitEventInput { - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""The output of our create `OrgChartEdge` mutation.""" -type CreateOrgChartEdgePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdge` that was created by this mutation.""" - orgChartEdge: OrgChartEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge -} - -"""All input for the create `OrgChartEdge` mutation.""" -input CreateOrgChartEdgeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgChartEdge` to be created by this mutation.""" - orgChartEdge: OrgChartEdgeInput! -} - -"""An input for mutations affecting `OrgChartEdge`""" -input OrgChartEdgeInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """Organization this hierarchy edge belongs to""" - entityId: UUID! + """The `AppGrant` to be created by this mutation.""" + appGrant: AppGrantInput! +} - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! +"""An input for mutations affecting `AppGrant`""" +input AppGrantInput { + id: UUID - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """Job title or role name for this position in the org chart""" - positionTitle: String + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """The member receiving or losing the permission grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `Partition` mutation.""" -type CreatePartitionPayload { +"""The output of our create `OrgClaimedInvite` mutation.""" +type CreateOrgClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Partition` that was created by this mutation.""" - partition: Partition + """The `OrgClaimedInvite` that was created by this mutation.""" + orgClaimedInvite: OrgClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Partition`. May be used by Relay 1.""" - partitionEdge( - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PartitionEdge + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge } -"""All input for the create `Partition` mutation.""" -input CreatePartitionInput { +"""All input for the create `OrgClaimedInvite` mutation.""" +input CreateOrgClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Partition` to be created by this mutation.""" - partition: PartitionInput! + """The `OrgClaimedInvite` to be created by this mutation.""" + orgClaimedInvite: OrgClaimedInviteInput! } -"""An input for mutations affecting `Partition`""" -input PartitionInput { +"""An input for mutations affecting `OrgClaimedInvite`""" +input OrgClaimedInviteInput { id: UUID - databaseId: UUID! - tableId: UUID! - strategy: String! - partitionKeyId: UUID! - interval: String - retention: String - premake: Int - namingPattern: String + + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON + + """User ID of the original invitation sender""" + senderId: UUID + + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID createdAt: Datetime updatedAt: Datetime + entityId: UUID! } """The output of our create `BlueprintConstruction` mutation.""" @@ -46236,6 +46623,74 @@ input SessionsModuleInput { authSettingsTable: String } +"""The output of our create `OrgMemberProfile` mutation.""" +type CreateOrgMemberProfilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMemberProfile` that was created by this mutation.""" + orgMemberProfile: OrgMemberProfile + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge +} + +"""All input for the create `OrgMemberProfile` mutation.""" +input CreateOrgMemberProfileInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgMemberProfile` to be created by this mutation.""" + orgMemberProfile: OrgMemberProfileInput! +} + +"""An input for mutations affecting `OrgMemberProfile`""" +input OrgMemberProfileInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """References the membership this profile belongs to (1:1)""" + membershipId: UUID! + + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID! + + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID! + + """Display name shown to other entity members""" + displayName: String + + """ + Email address visible to other entity members (auto-populated from verified primary email) + """ + email: String + + """Job title or role description visible to other entity members""" + title: String + + """Short biography visible to other entity members""" + bio: String + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage +} + """The output of our create `OrgGrant` mutation.""" type CreateOrgGrantPayload { """ @@ -46291,6 +46746,120 @@ input OrgGrantInput { updatedAt: Datetime } +"""The output of our create `AuditLog` mutation.""" +type CreateAuditLogPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AuditLog` that was created by this mutation.""" + auditLog: AuditLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} + +"""All input for the create `AuditLog` mutation.""" +input CreateAuditLogInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AuditLog` to be created by this mutation.""" + auditLog: AuditLogInput! +} + +"""An input for mutations affecting `AuditLog`""" +input AuditLogInput { + id: UUID + + """ + Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) + """ + event: String! + + """User who performed the authentication action; NULL if user was deleted""" + actorId: UUID + + """Request origin (domain) where the auth event occurred""" + origin: ConstructiveInternalTypeOrigin + + """Browser or client user-agent string from the request""" + userAgent: String + + """IP address of the client that initiated the auth event""" + ipAddress: InternetAddress + + """Whether the authentication attempt succeeded""" + success: Boolean! + + """Timestamp when the audit event was recorded""" + createdAt: Datetime +} + +"""The output of our create `Partition` mutation.""" +type CreatePartitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Partition` that was created by this mutation.""" + partition: Partition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Partition`. May be used by Relay 1.""" + partitionEdge( + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PartitionEdge +} + +"""All input for the create `Partition` mutation.""" +input CreatePartitionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Partition` to be created by this mutation.""" + partition: PartitionInput! +} + +"""An input for mutations affecting `Partition`""" +input PartitionInput { + id: UUID + databaseId: UUID! + tableId: UUID! + strategy: String! + partitionKeyId: UUID! + interval: String + retention: String + retentionKeepTable: Boolean + premake: Int + namingPattern: String + createdAt: Datetime + updatedAt: Datetime +} + """The output of our create `Blueprint` mutation.""" type CreateBlueprintPayload { """ @@ -46426,6 +46995,57 @@ input DenormalizedTableFieldInput { funcOrder: Int } +"""The output of our create `InferenceLogModule` mutation.""" +type CreateInferenceLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InferenceLogModule` that was created by this mutation.""" + inferenceLogModule: InferenceLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge +} + +"""All input for the create `InferenceLogModule` mutation.""" +input CreateInferenceLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InferenceLogModule` to be created by this mutation.""" + inferenceLogModule: InferenceLogModuleInput! +} + +"""An input for mutations affecting `InferenceLogModule`""" +input InferenceLogModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + inferenceLogTableId: UUID + inferenceLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + prefix: String +} + """The output of our create `RateLimitMetersModule` mutation.""" type CreateRateLimitMetersModulePayload { """ @@ -46580,200 +47200,249 @@ input PlansModuleInput { prefix: String } -"""The output of our create `AppLimit` mutation.""" -type CreateAppLimitPayload { +"""The output of our create `Email` mutation.""" +type CreateEmailPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimit` that was created by this mutation.""" - appLimit: AppLimit + """The `Email` that was created by this mutation.""" + email: Email """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge } -"""All input for the create `AppLimit` mutation.""" -input CreateAppLimitInput { +"""All input for the create `Email` mutation.""" +input CreateEmailInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLimit` to be created by this mutation.""" - appLimit: AppLimitInput! + """The `Email` to be created by this mutation.""" + email: EmailInput! } -"""An input for mutations affecting `AppLimit`""" -input AppLimitInput { +"""An input for mutations affecting `Email`""" +input EmailInput { id: UUID + ownerId: UUID - """Name identifier of the limit being tracked""" - name: String + """The email address""" + email: ConstructiveInternalTypeEmail! - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Whether the email address has been verified via confirmation link""" + isVerified: Boolean - """Current usage count for this actor and limit""" - num: BigInt + """Whether this is the user's primary email address""" + isPrimary: Boolean - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt + """Optional user-provided label for this email (e.g. "Work", "Personal").""" + name: String + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our create `SqlAction` mutation.""" +type CreateSqlActionPayload { """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - softMax: BigInt + clientMutationId: String - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """The `SqlAction` that was created by this mutation.""" + sqlAction: SqlAction """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + Our root query field type. Allows us to run any query from our mutation payload. """ - windowDuration: IntervalInput + query: Query +} +"""All input for the create `SqlAction` mutation.""" +input CreateSqlActionInput { """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - planMax: BigInt + clientMutationId: String - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt + """The `SqlAction` to be created by this mutation.""" + sqlAction: SqlActionInput! +} - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt +"""An input for mutations affecting `SqlAction`""" +input SqlActionInput { + id: Int + name: String + databaseId: UUID + deploy: String + deps: [String] + payload: JSON + content: String + revert: String + verify: String + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID } -"""The output of our create `OrgMemberProfile` mutation.""" -type CreateOrgMemberProfilePayload { +"""The output of our create `AppLimitEvent` mutation.""" +type CreateAppLimitEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMemberProfile` that was created by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `AppLimitEvent` that was created by this mutation.""" + appLimitEvent: AppLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge } -"""All input for the create `OrgMemberProfile` mutation.""" -input CreateOrgMemberProfileInput { +"""All input for the create `AppLimitEvent` mutation.""" +input CreateAppLimitEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgMemberProfile` to be created by this mutation.""" - orgMemberProfile: OrgMemberProfileInput! + """The `AppLimitEvent` to be created by this mutation.""" + appLimitEvent: AppLimitEventInput! } -"""An input for mutations affecting `OrgMemberProfile`""" -input OrgMemberProfileInput { - id: UUID +"""An input for mutations affecting `AppLimitEvent`""" +input AppLimitEventInput { createdAt: Datetime - updatedAt: Datetime - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! + """Unique identifier for each limit event""" + id: UUID - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! + """Limit name this event applies to""" + name: String - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """Display name shown to other entity members""" - displayName: String + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Job title or role description visible to other entity members""" - title: String + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Short biography visible to other entity members""" - bio: String + """Usage count before this event""" + numBefore: BigInt - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } -"""The output of our create `SqlAction` mutation.""" -type CreateSqlActionPayload { +"""The output of our create `OrgLimitEvent` mutation.""" +type CreateOrgLimitEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SqlAction` that was created by this mutation.""" - sqlAction: SqlAction + """The `OrgLimitEvent` that was created by this mutation.""" + orgLimitEvent: OrgLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge } -"""All input for the create `SqlAction` mutation.""" -input CreateSqlActionInput { +"""All input for the create `OrgLimitEvent` mutation.""" +input CreateOrgLimitEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `SqlAction` to be created by this mutation.""" - sqlAction: SqlActionInput! + """The `OrgLimitEvent` to be created by this mutation.""" + orgLimitEvent: OrgLimitEventInput! } -"""An input for mutations affecting `SqlAction`""" -input SqlActionInput { - id: Int - name: String - databaseId: UUID - deploy: String - deps: [String] - payload: JSON - content: String - revert: String - verify: String +"""An input for mutations affecting `OrgLimitEvent`""" +input OrgLimitEventInput { createdAt: Datetime - action: String - actionId: UUID + + """Unique identifier for each limit event""" + id: UUID + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } """The output of our create `DatabaseTransfer` mutation.""" @@ -46917,59 +47586,6 @@ input DatabaseSettingInput { options: JSON } -"""The output of our create `BillingModule` mutation.""" -type CreateBillingModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `BillingModule` that was created by this mutation.""" - billingModule: BillingModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge -} - -"""All input for the create `BillingModule` mutation.""" -input CreateBillingModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `BillingModule` to be created by this mutation.""" - billingModule: BillingModuleInput! -} - -"""An input for mutations affecting `BillingModule`""" -input BillingModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - metersTableId: UUID - metersTableName: String - planSubscriptionsTableId: UUID - planSubscriptionsTableName: String - ledgerTableId: UUID - ledgerTableName: String - balancesTableId: UUID - balancesTableName: String - recordUsageFunction: String - prefix: String -} - """The output of our create `CryptoAuthModule` mutation.""" type CreateCryptoAuthModulePayload { """ @@ -47151,215 +47767,219 @@ input InvitesModuleInput { entityTableId: UUID } -"""The output of our create `SecureTableProvision` mutation.""" -type CreateSecureTableProvisionPayload { +"""The output of our create `OrgMembershipSetting` mutation.""" +type CreateOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SecureTableProvision` that was created by this mutation.""" - secureTableProvision: SecureTableProvision + """The `OrgMembershipSetting` that was created by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SecureTableProvision`. May be used by Relay 1.""" - secureTableProvisionEdge( - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecureTableProvisionEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the create `SecureTableProvision` mutation.""" -input CreateSecureTableProvisionInput { +"""All input for the create `OrgMembershipSetting` mutation.""" +input CreateOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `SecureTableProvision` to be created by this mutation.""" - secureTableProvision: SecureTableProvisionInput! + """The `OrgMembershipSetting` to be created by this mutation.""" + orgMembershipSetting: OrgMembershipSettingInput! } -"""An input for mutations affecting `SecureTableProvision`""" -input SecureTableProvisionInput { - """Unique identifier for this provision row.""" +"""An input for mutations affecting `OrgMembershipSetting`""" +input OrgMembershipSettingInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """The database this provision belongs to. Required.""" - databaseId: UUID! - - """ - Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. - """ - schemaId: UUID + """References the entity these settings apply to""" + entityId: UUID! """ - Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + When a member is deleted, whether to cascade-remove their descendant-entity memberships """ - tableId: UUID + deleteMemberCascadeChildren: Boolean """ - Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners """ - tableName: String + createChildCascadeOwners: Boolean """ - Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins """ - nodes: JSON + createChildCascadeAdmins: Boolean """ - If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members """ - useRls: Boolean + createChildCascadeMembers: Boolean """ - PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) """ - fields: [JSON] + allowExternalMembers: Boolean """ - Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) """ - grants: JSON + inviteProfileAssignmentMode: String """ - Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. """ - policies: JSON + populateMemberEmail: Boolean """ - Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) """ - outFields: [UUID] + limitAllocationMode: String } -"""The output of our create `OrgLimitAggregate` mutation.""" -type CreateOrgLimitAggregatePayload { +"""The output of our create `SecureTableProvision` mutation.""" +type CreateSecureTableProvisionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitAggregate` that was created by this mutation.""" - orgLimitAggregate: OrgLimitAggregate + """The `SecureTableProvision` that was created by this mutation.""" + secureTableProvision: SecureTableProvision """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge + """An edge for our `SecureTableProvision`. May be used by Relay 1.""" + secureTableProvisionEdge( + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecureTableProvisionEdge } -"""All input for the create `OrgLimitAggregate` mutation.""" -input CreateOrgLimitAggregateInput { +"""All input for the create `SecureTableProvision` mutation.""" +input CreateSecureTableProvisionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgLimitAggregate` to be created by this mutation.""" - orgLimitAggregate: OrgLimitAggregateInput! + """The `SecureTableProvision` to be created by this mutation.""" + secureTableProvision: SecureTableProvisionInput! } -"""An input for mutations affecting `OrgLimitAggregate`""" -input OrgLimitAggregateInput { +"""An input for mutations affecting `SecureTableProvision`""" +input SecureTableProvisionInput { + """Unique identifier for this provision row.""" id: UUID - """Name identifier of the aggregate limit being tracked""" - name: String - - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID! + """The database this provision belongs to. Required.""" + databaseId: UUID! - """Current aggregate usage count for this entity and limit""" - num: BigInt + """ + Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. + """ + schemaId: UUID - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt + """ + Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + """ + tableId: UUID - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """ + Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. + """ + tableName: String - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """ + Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). + """ + nodes: JSON """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. """ - windowDuration: IntervalInput + useRls: Boolean """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). """ - planMax: BigInt + fields: [JSON] """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. """ - purchasedCredits: BigInt + grants: JSON """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. """ - periodCredits: BigInt + policies: JSON """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. """ - reserved: BigInt + outFields: [UUID] } -"""The output of our create `OrgLimit` mutation.""" -type CreateOrgLimitPayload { +"""The output of our create `AppLimit` mutation.""" +type CreateAppLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was created by this mutation.""" - orgLimit: OrgLimit + """The `AppLimit` that was created by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the create `OrgLimit` mutation.""" -input CreateOrgLimitInput { +"""All input for the create `AppLimit` mutation.""" +input CreateAppLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgLimit` to be created by this mutation.""" - orgLimit: OrgLimitInput! + """The `AppLimit` to be created by this mutation.""" + appLimit: AppLimitInput! } -"""An input for mutations affecting `OrgLimit`""" -input OrgLimitInput { +"""An input for mutations affecting `AppLimit`""" +input AppLimitInput { id: UUID """Name identifier of the limit being tracked""" @@ -47403,53 +48023,6 @@ input OrgLimitInput { Temporary credits for the current billing window. Resets to 0 on window expiry. """ periodCredits: BigInt - entityId: UUID! -} - -"""The output of our create `AstMigration` mutation.""" -type CreateAstMigrationPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AstMigration` that was created by this mutation.""" - astMigration: AstMigration - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `AstMigration` mutation.""" -input CreateAstMigrationInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AstMigration` to be created by this mutation.""" - astMigration: AstMigrationInput! -} - -"""An input for mutations affecting `AstMigration`""" -input AstMigrationInput { - id: Int - databaseId: UUID - name: String - requires: [String] - payload: JSON - deploys: String - deploy: JSON - revert: JSON - verify: JSON - createdAt: Datetime - action: String - actionId: UUID - actorId: UUID } """The output of our create `ApiSetting` mutation.""" @@ -47610,50 +48183,170 @@ input EnumInput { tags: [String] } -"""The output of our create `User` mutation.""" -type CreateUserPayload { +"""The output of our create `OrgLimitAggregate` mutation.""" +type CreateOrgLimitAggregatePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `User` that was created by this mutation.""" - user: User + """The `OrgLimitAggregate` that was created by this mutation.""" + orgLimitAggregate: OrgLimitAggregate """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `User`. May be used by Relay 1.""" - userEdge( - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserEdge + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge } -"""All input for the create `User` mutation.""" -input CreateUserInput { +"""All input for the create `OrgLimitAggregate` mutation.""" +input CreateOrgLimitAggregateInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `User` to be created by this mutation.""" - user: UserInput! + """The `OrgLimitAggregate` to be created by this mutation.""" + orgLimitAggregate: OrgLimitAggregateInput! } -"""An input for mutations affecting `User`""" -input UserInput { +"""An input for mutations affecting `OrgLimitAggregate`""" +input OrgLimitAggregateInput { id: UUID - username: String - displayName: String - profilePicture: ConstructiveInternalTypeImage - type: Int - createdAt: Datetime - updatedAt: Datetime + + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID! + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """ + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + """ + reserved: BigInt +} + +"""The output of our create `OrgLimit` mutation.""" +type CreateOrgLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimit` that was created by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the create `OrgLimit` mutation.""" +input CreateOrgLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimit` to be created by this mutation.""" + orgLimit: OrgLimitInput! +} + +"""An input for mutations affecting `OrgLimit`""" +input OrgLimitInput { + id: UUID + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + entityId: UUID! } """The output of our create `View` mutation.""" @@ -47711,6 +48404,61 @@ input ViewInput { tags: [String] } +"""The output of our create `BillingModule` mutation.""" +type CreateBillingModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `BillingModule` that was created by this mutation.""" + billingModule: BillingModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge +} + +"""All input for the create `BillingModule` mutation.""" +input CreateBillingModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `BillingModule` to be created by this mutation.""" + billingModule: BillingModuleInput! +} + +"""An input for mutations affecting `BillingModule`""" +input BillingModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + meterCreditsTableId: UUID + meterCreditsTableName: String + recordUsageFunction: String + prefix: String +} + """The output of our create `WebauthnAuthModule` mutation.""" type CreateWebauthnAuthModulePayload { """ @@ -47766,165 +48514,131 @@ input WebauthnAuthModuleInput { challengeExpiry: IntervalInput } -"""The output of our create `AppInvite` mutation.""" -type CreateAppInvitePayload { +"""The output of our create `AppMembership` mutation.""" +type CreateAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppInvite` that was created by this mutation.""" - appInvite: AppInvite + """The `AppMembership` that was created by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the create `AppInvite` mutation.""" -input CreateAppInviteInput { +"""All input for the create `AppMembership` mutation.""" +input CreateAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppInvite` to be created by this mutation.""" - appInvite: AppInviteInput! + """The `AppMembership` to be created by this mutation.""" + appMembership: AppMembershipInput! } -"""An input for mutations affecting `AppInvite`""" -input AppInviteInput { +"""An input for mutations affecting `AppMembership`""" +input AppMembershipInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """User ID of the member who sent this invitation""" - senderId: UUID + """Whether this member has been banned from the entity""" + isBanned: Boolean - """Unique random hex token used to redeem this invitation""" - inviteToken: String + """Whether this membership is temporarily disabled""" + isDisabled: Boolean - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean - """Optional JSON payload of additional invite metadata""" - data: JSON + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + Bitmask of permissions directly granted to this member (not from profiles) """ - profileId: UUID + granted: BitString - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime + """References the user who holds this membership""" + actorId: UUID! + profileId: UUID } -"""The output of our create `OrgMembershipSetting` mutation.""" -type CreateOrgMembershipSettingPayload { +"""The output of our create `User` mutation.""" +type CreateUserPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was created by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `User` that was created by this mutation.""" + user: User """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge } -"""All input for the create `OrgMembershipSetting` mutation.""" -input CreateOrgMembershipSettingInput { +"""All input for the create `User` mutation.""" +input CreateUserInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgMembershipSetting` to be created by this mutation.""" - orgMembershipSetting: OrgMembershipSettingInput! + """The `User` to be created by this mutation.""" + user: UserInput! } -"""An input for mutations affecting `OrgMembershipSetting`""" -input OrgMembershipSettingInput { +"""An input for mutations affecting `User`""" +input UserInput { id: UUID + username: String + displayName: String + profilePicture: ConstructiveInternalTypeImage + type: Int createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID! - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean - - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String - - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean - - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String } """The output of our create `App` mutation.""" @@ -48171,6 +48885,52 @@ input PermissionsModuleInput { getMaskByName: String } +"""The output of our create `AstMigration` mutation.""" +type CreateAstMigrationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AstMigration` that was created by this mutation.""" + astMigration: AstMigration + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `AstMigration` mutation.""" +input CreateAstMigrationInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AstMigration` to be created by this mutation.""" + astMigration: AstMigrationInput! +} + +"""An input for mutations affecting `AstMigration`""" +input AstMigrationInput { + id: Int + databaseId: UUID + name: String + requires: [String] + payload: JSON + deploys: String + deploy: JSON + revert: JSON + verify: JSON + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID +} + """The output of our create `WebauthnCredential` mutation.""" type CreateWebauthnCredentialPayload { """ @@ -48682,43 +49442,43 @@ input WebauthnSettingInput { challengeExpirySeconds: BigInt } -"""The output of our create `AppMembership` mutation.""" -type CreateAppMembershipPayload { +"""The output of our create `OrgMembership` mutation.""" +type CreateOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembership` that was created by this mutation.""" - appMembership: AppMembership + """The `OrgMembership` that was created by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the create `AppMembership` mutation.""" -input CreateAppMembershipInput { +"""All input for the create `OrgMembership` mutation.""" +input CreateOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppMembership` to be created by this mutation.""" - appMembership: AppMembershipInput! + """The `OrgMembership` to be created by this mutation.""" + orgMembership: OrgMembershipInput! } -"""An input for mutations affecting `AppMembership`""" -input AppMembershipInput { +"""An input for mutations affecting `OrgMembership`""" +input OrgMembershipInput { id: UUID createdAt: Datetime updatedAt: Datetime @@ -48734,14 +49494,16 @@ input AppMembershipInput { """Whether this membership is temporarily disabled""" isDisabled: Boolean - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - """ Computed field indicating the membership is approved, verified, not banned, and not disabled """ isActive: Boolean + """ + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + """ + isExternal: Boolean + """Whether the actor is the owner of this entity""" isOwner: Boolean @@ -48760,6 +49522,12 @@ input AppMembershipInput { """References the user who holds this membership""" actorId: UUID! + + """References the entity (org or group) this membership belongs to""" + entityId: UUID! + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean profileId: UUID } @@ -48874,43 +49642,43 @@ input IndexInput { updatedAt: Datetime } -"""The output of our create `OrgInvite` mutation.""" -type CreateOrgInvitePayload { +"""The output of our create `AppInvite` mutation.""" +type CreateAppInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgInvite` that was created by this mutation.""" - orgInvite: OrgInvite + """The `AppInvite` that was created by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the create `OrgInvite` mutation.""" -input CreateOrgInviteInput { +"""All input for the create `AppInvite` mutation.""" +input CreateAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgInvite` to be created by this mutation.""" - orgInvite: OrgInviteInput! + """The `AppInvite` to be created by this mutation.""" + appInvite: AppInviteInput! } -"""An input for mutations affecting `OrgInvite`""" -input OrgInviteInput { +"""An input for mutations affecting `AppInvite`""" +input AppInviteInput { id: UUID """Email address of the invited recipient""" @@ -48919,9 +49687,6 @@ input OrgInviteInput { """User ID of the member who sent this invitation""" senderId: UUID - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - """Unique random hex token used to redeem this invitation""" inviteToken: String @@ -48945,16 +49710,10 @@ input OrgInviteInput { """ profileId: UUID - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean - """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime createdAt: Datetime updatedAt: Datetime - entityId: UUID! } """The output of our create `BillingProviderModule` mutation.""" @@ -49258,95 +50017,6 @@ input ProfilesModuleInput { prefix: String } -"""The output of our create `OrgMembership` mutation.""" -type CreateOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembership` that was created by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the create `OrgMembership` mutation.""" -input CreateOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMembership` to be created by this mutation.""" - orgMembership: OrgMembershipInput! -} - -"""An input for mutations affecting `OrgMembership`""" -input OrgMembershipInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID! - - """References the entity (org or group) this membership belongs to""" - entityId: UUID! - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID -} - """The output of our create `EmbeddingChunk` mutation.""" type CreateEmbeddingChunkPayload { """ @@ -49464,6 +50134,89 @@ input ForeignKeyConstraintInput { updatedAt: Datetime } +"""The output of our create `OrgInvite` mutation.""" +type CreateOrgInvitePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgInvite` that was created by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the create `OrgInvite` mutation.""" +input CreateOrgInviteInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgInvite` to be created by this mutation.""" + orgInvite: OrgInviteInput! +} + +"""An input for mutations affecting `OrgInvite`""" +input OrgInviteInput { + id: UUID + + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID + + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON + + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + + """ + Whether the resulting membership should be read-only when this invite is claimed + """ + isReadOnly: Boolean + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} + """The output of our create `RelationProvision` mutation.""" type CreateRelationProvisionPayload { """ @@ -49810,36 +50563,34 @@ input EntityTypeProvisionInput { hasInviteAchievements: Boolean """ - Optional jsonb object for storage module configuration and initial bucket seeding. - Only used when has_storage = true; ignored otherwise. NULL = use defaults. - Recognized keys (all optional): - - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - - download_url_expiry_seconds (integer) presigned GET URL expiry override - - default_max_file_size (bigint) global max file size in bytes for this scope - - allowed_origins (text[]) default CORS origins for all buckets in this scope - - buckets (jsonb[]) array of initial bucket definitions to seed - Each bucket in the buckets array recognizes: - - name (text, required) bucket name e.g. 'documents' - - description (text) human-readable description - - is_public (boolean) whether files are publicly readable (default false) - - allowed_mime_types (text[]) whitelist of MIME types (null = any) - - max_file_size (bigint) max file size in bytes (null = use scope default) - - allowed_origins (text[]) per-bucket CORS override - - provisions (jsonb object) optional: customize storage tables - with additional nodes, fields, grants, and policies. - Keyed by table role: "files", "buckets". - Each value uses the same shape as table_provision: - { nodes, fields, grants, use_rls, policies }. Fanned out - to secure_table_provision targeting the corresponding table. - When a key includes policies[], those REPLACE the default - storage policies for that table; tables without a key still - get defaults. Missing "data" on policy entries is auto-populated - with storage-specific defaults (same as table_provision). - Example: add SearchBm25 for full-text search on files: - {"provisions": {"files": {"nodes": [{"$type": - "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - Example: - storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + Optional JSON array of storage module definitions. Each element provisions a separate + storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + and feature flags. Only used when has_storage = true; ignored otherwise. + NULL = provision a single default storage module with all defaults. + Each array element recognizes (all optional): + - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + Defaults to 'default' (omitted from table names). + Non-default keys become infixes: {prefix}_{key}_buckets. + - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + - download_url_expiry_seconds (integer) presigned GET URL expiry override + - default_max_file_size (bigint) global max file size in bytes for this module + - allowed_origins (text[]) default CORS origins for all buckets in this module + - restrict_reads (boolean) require read_files permission for SELECT on files + - has_path_shares (boolean) enable virtual filesystem + path share policies + - has_versioning (boolean) enable file version chains + - has_content_hash (boolean) enable content hash for dedup + - has_custom_keys (boolean) allow client-provided S3 keys + - has_audit_log (boolean) enable file events audit table + - has_confirm_upload (boolean) enable HeadObject confirmation flow + - confirm_upload_delay (interval) delay before first confirmation attempt + - buckets (jsonb[]) array of initial bucket definitions to seed. + Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + Each value: { nodes, fields, grants, use_rls, policies }. + Example (single module, backward compat): + storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + Example (multi-module): + storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb """ storageConfig: JSON @@ -50199,78 +50950,6 @@ input LimitsModuleInput { actorTableId: UUID } -"""The output of our create `StorageModule` mutation.""" -type CreateStorageModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `StorageModule` that was created by this mutation.""" - storageModule: StorageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge -} - -"""All input for the create `StorageModule` mutation.""" -input CreateStorageModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `StorageModule` to be created by this mutation.""" - storageModule: StorageModuleInput! -} - -"""An input for mutations affecting `StorageModule`""" -input StorageModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - bucketsTableId: UUID - filesTableId: UUID - bucketsTableName: String - filesTableName: String - membershipType: Int - policies: JSON - skipDefaultPolicyTables: [String] - entityTableId: UUID - endpoint: String - publicUrlPrefix: String - provider: String - allowedOrigins: [String] - restrictReads: Boolean - hasPathShares: Boolean - pathSharesTableId: UUID - uploadUrlExpirySeconds: Int - downloadUrlExpirySeconds: Int - defaultMaxFileSize: BigInt - maxFilenameLength: Int - cacheTtlSeconds: Int - maxBulkFiles: Int - maxBulkTotalSize: BigInt - hasVersioning: Boolean - hasContentHash: Boolean - hasCustomKeys: Boolean - hasAuditLog: Boolean - hasConfirmUpload: Boolean - confirmUploadDelay: IntervalInput - fileEventsTableId: UUID -} - """The output of our create `MembershipsModule` mutation.""" type CreateMembershipsModulePayload { """ @@ -50344,6 +51023,79 @@ input MembershipsModuleInput { memberProfilesTableId: UUID } +"""The output of our create `StorageModule` mutation.""" +type CreateStorageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `StorageModule` that was created by this mutation.""" + storageModule: StorageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge +} + +"""All input for the create `StorageModule` mutation.""" +input CreateStorageModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `StorageModule` to be created by this mutation.""" + storageModule: StorageModuleInput! +} + +"""An input for mutations affecting `StorageModule`""" +input StorageModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + bucketsTableId: UUID + filesTableId: UUID + bucketsTableName: String + filesTableName: String + membershipType: Int + storageKey: String + policies: JSON + skipDefaultPolicyTables: [String] + entityTableId: UUID + endpoint: String + publicUrlPrefix: String + provider: String + allowedOrigins: [String] + restrictReads: Boolean + hasPathShares: Boolean + pathSharesTableId: UUID + uploadUrlExpirySeconds: Int + downloadUrlExpirySeconds: Int + defaultMaxFileSize: BigInt + maxFilenameLength: Int + cacheTtlSeconds: Int + maxBulkFiles: Int + maxBulkTotalSize: BigInt + hasVersioning: Boolean + hasContentHash: Boolean + hasCustomKeys: Boolean + hasAuditLog: Boolean + hasConfirmUpload: Boolean + confirmUploadDelay: IntervalInput + fileEventsTableId: UUID +} + """The output of our create `EventsModule` mutation.""" type CreateEventsModulePayload { """ @@ -50468,52 +51220,6 @@ input DefaultIdsModulePatch { databaseId: UUID } -"""The output of our update `RoleType` mutation.""" -type UpdateRoleTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `RoleType` that was updated by this mutation.""" - roleType: RoleType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge -} - -"""All input for the `updateRoleType` mutation.""" -input UpdateRoleTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: Int! - - """ - An object where the defined keys will be set on the `RoleType` being updated. - """ - roleTypePatch: RoleTypePatch! -} - -""" -Represents an update to a `RoleType`. Fields that are set will be updated. -""" -input RoleTypePatch { - id: Int - name: String -} - """The output of our update `AppLimitCreditRedemption` mutation.""" type UpdateAppLimitCreditRedemptionPayload { """ @@ -50921,7 +51627,7 @@ input UpdateRefInput { """The primary unique identifier for the ref.""" id: UUID! - databaseId: UUID! + scopeId: UUID! """ An object where the defined keys will be set on the `Ref` being updated. @@ -50936,7 +51642,7 @@ input RefPatch { """The name of the ref or branch""" name: String - databaseId: UUID + scopeId: UUID storeId: UUID commitId: UUID } @@ -50991,39 +51697,88 @@ input StorePatch { """The name of the store (e.g., metaschema, migrations).""" name: String - """The database this store belongs to.""" - databaseId: UUID + """The scope this store belongs to.""" + scopeId: UUID """The current head tree_id for this store.""" hash: UUID createdAt: Datetime } -"""The output of our update `EncryptedSecretsModule` mutation.""" -type UpdateEncryptedSecretsModulePayload { +"""The output of our update `ConfigSecretsOrgModule` mutation.""" +type UpdateConfigSecretsOrgModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ConfigSecretsOrgModule` that was updated by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" + configSecretsOrgModuleEdge( + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleEdge +} + +"""All input for the `updateConfigSecretsOrgModule` mutation.""" +input UpdateConfigSecretsOrgModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `ConfigSecretsOrgModule` being updated. + """ + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch! +} + +""" +Represents an update to a `ConfigSecretsOrgModule`. Fields that are set will be updated. +""" +input ConfigSecretsOrgModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our update `ConfigSecretsUserModule` mutation.""" +type UpdateConfigSecretsUserModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `EncryptedSecretsModule` that was updated by this mutation.""" - encryptedSecretsModule: EncryptedSecretsModule + """The `ConfigSecretsUserModule` that was updated by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EncryptedSecretsModule`. May be used by Relay 1.""" - encryptedSecretsModuleEdge( - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleEdge + """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" + configSecretsUserModuleEdge( + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleEdge } -"""All input for the `updateEncryptedSecretsModule` mutation.""" -input UpdateEncryptedSecretsModuleInput { +"""All input for the `updateConfigSecretsUserModule` mutation.""" +input UpdateConfigSecretsUserModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -51032,15 +51787,15 @@ input UpdateEncryptedSecretsModuleInput { id: UUID! """ - An object where the defined keys will be set on the `EncryptedSecretsModule` being updated. + An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. """ - encryptedSecretsModulePatch: EncryptedSecretsModulePatch! + configSecretsUserModulePatch: ConfigSecretsUserModulePatch! } """ -Represents an update to a `EncryptedSecretsModule`. Fields that are set will be updated. +Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. """ -input EncryptedSecretsModulePatch { +input ConfigSecretsUserModulePatch { id: UUID databaseId: UUID schemaId: UUID @@ -51314,63 +52069,50 @@ input SiteModulePatch { data: JSON } -"""The output of our update `AppLimitCreditCode` mutation.""" -type UpdateAppLimitCreditCodePayload { +"""The output of our update `RoleType` mutation.""" +type UpdateRoleTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCode` that was updated by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `RoleType` that was updated by this mutation.""" + roleType: RoleType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge } -"""All input for the `updateAppLimitCreditCode` mutation.""" -input UpdateAppLimitCreditCodeInput { +"""All input for the `updateRoleType` mutation.""" +input UpdateRoleTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! + id: Int! """ - An object where the defined keys will be set on the `AppLimitCreditCode` being updated. + An object where the defined keys will be set on the `RoleType` being updated. """ - appLimitCreditCodePatch: AppLimitCreditCodePatch! + roleTypePatch: RoleTypePatch! } """ -Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. +Represents an update to a `RoleType`. Fields that are set will be updated. """ -input AppLimitCreditCodePatch { - id: UUID - - """Human-readable credit code (case-insensitive, unique)""" - code: String - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int - - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int - - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime +input RoleTypePatch { + id: Int + name: String } """The output of our update `SchemaGrant` mutation.""" @@ -51794,128 +52536,6 @@ input OrgPermissionDefaultPatch { entityId: UUID } -"""The output of our update `AppPermission` mutation.""" -type UpdateAppPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermission` that was updated by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the `updateAppPermission` mutation.""" -input UpdateAppPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppPermission` being updated. - """ - appPermissionPatch: AppPermissionPatch! -} - -""" -Represents an update to a `AppPermission`. Fields that are set will be updated. -""" -input AppPermissionPatch { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our update `OrgPermission` mutation.""" -type UpdateOrgPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermission` that was updated by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} - -"""All input for the `updateOrgPermission` mutation.""" -input UpdateOrgPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgPermission` being updated. - """ - orgPermissionPatch: OrgPermissionPatch! -} - -""" -Represents an update to a `OrgPermission`. Fields that are set will be updated. -""" -input OrgPermissionPatch { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - """The output of our update `AppLimitCapsDefault` mutation.""" type UpdateAppLimitCapsDefaultPayload { """ @@ -52026,187 +52646,6 @@ input OrgLimitCapsDefaultPatch { max: BigInt } -"""The output of our update `AppLimitCap` mutation.""" -type UpdateAppLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCap` that was updated by this mutation.""" - appLimitCap: AppLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} - -"""All input for the `updateAppLimitCap` mutation.""" -input UpdateAppLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimitCap` being updated. - """ - appLimitCapPatch: AppLimitCapPatch! -} - -""" -Represents an update to a `AppLimitCap`. Fields that are set will be updated. -""" -input AppLimitCapPatch { - id: UUID - - """Name identifier of the cap being overridden""" - name: String - - """Entity this cap override applies to""" - entityId: UUID - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our update `OrgLimitCap` mutation.""" -type UpdateOrgLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCap` that was updated by this mutation.""" - orgLimitCap: OrgLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the `updateOrgLimitCap` mutation.""" -input UpdateOrgLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgLimitCap` being updated. - """ - orgLimitCapPatch: OrgLimitCapPatch! -} - -""" -Represents an update to a `OrgLimitCap`. Fields that are set will be updated. -""" -input OrgLimitCapPatch { - id: UUID - - """Name identifier of the cap being overridden""" - name: String - - """Entity this cap override applies to""" - entityId: UUID - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our update `MembershipType` mutation.""" -type UpdateMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was updated by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the `updateMembershipType` mutation.""" -input UpdateMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """ - An object where the defined keys will be set on the `MembershipType` being updated. - """ - membershipTypePatch: MembershipTypePatch! -} - -""" -Represents an update to a `MembershipType`. Fields that are set will be updated. -""" -input MembershipTypePatch { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int - - """Human-readable name of the membership type""" - name: String - - """Description of what this membership type represents""" - description: String - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean -} - """The output of our update `DefaultPrivilege` mutation.""" type UpdateDefaultPrivilegePayload { """ @@ -52683,6 +53122,61 @@ input WebauthnCredentialsModulePatch { tableName: String } +"""The output of our update `AppMembershipDefault` mutation.""" +type UpdateAppMembershipDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppMembershipDefault` that was updated by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the `updateAppMembershipDefault` mutation.""" +input UpdateAppMembershipDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppMembershipDefault` being updated. + """ + appMembershipDefaultPatch: AppMembershipDefaultPatch! +} + +""" +Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. +""" +input AppMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """Whether new members are automatically verified upon joining""" + isVerified: Boolean +} + """The output of our update `OrgAdminGrant` mutation.""" type UpdateOrgAdminGrantPayload { """ @@ -52740,6 +53234,61 @@ input OrgAdminGrantPatch { updatedAt: Datetime } +"""The output of our update `OrgMembershipDefault` mutation.""" +type UpdateOrgMembershipDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMembershipDefault` that was updated by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the `updateOrgMembershipDefault` mutation.""" +input UpdateOrgMembershipDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgMembershipDefault` being updated. + """ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch! +} + +""" +Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. +""" +input OrgMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """References the entity these membership defaults apply to""" + entityId: UUID +} + """The output of our update `OrgOwnerGrant` mutation.""" type UpdateOrgOwnerGrantPayload { """ @@ -52848,31 +53397,31 @@ input NodeTypeRegistryPatch { tags: [String] } -"""The output of our update `AppLimitDefault` mutation.""" -type UpdateAppLimitDefaultPayload { +"""The output of our update `AppLimitCreditCodeItem` mutation.""" +type UpdateAppLimitCreditCodeItemPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was updated by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppLimitCreditCodeItem` that was updated by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge } -"""All input for the `updateAppLimitDefault` mutation.""" -input UpdateAppLimitDefaultInput { +"""All input for the `updateAppLimitCreditCodeItem` mutation.""" +input UpdateAppLimitCreditCodeItemInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -52881,52 +53430,111 @@ input UpdateAppLimitDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitDefault` being updated. + An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. """ - appLimitDefaultPatch: AppLimitDefaultPatch! + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! } """ -Represents an update to a `AppLimitDefault`. Fields that are set will be updated. +Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. """ -input AppLimitDefaultPatch { +input AppLimitCreditCodeItemPatch { id: UUID - """Name identifier of the limit this default applies to""" + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID + + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID + + """Number of credits this item grants per redemption""" + amount: BigInt + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String +} + +"""The output of our update `AppLimitCap` mutation.""" +type UpdateAppLimitCapPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCap` that was updated by this mutation.""" + appLimitCap: AppLimitCap + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge +} + +"""All input for the `updateAppLimitCap` mutation.""" +input UpdateAppLimitCapInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitCap` being updated. + """ + appLimitCapPatch: AppLimitCapPatch! +} + +""" +Represents an update to a `AppLimitCap`. Fields that are set will be updated. +""" +input AppLimitCapPatch { + id: UUID + + """Name identifier of the cap being overridden""" name: String - """Default maximum usage allowed for this limit""" - max: BigInt + """Entity this cap override applies to""" + entityId: UUID - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """Override cap value for this entity""" + max: BigInt } -"""The output of our update `OrgLimitDefault` mutation.""" -type UpdateOrgLimitDefaultPayload { +"""The output of our update `AppLimitDefault` mutation.""" +type UpdateAppLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was updated by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `AppLimitDefault` that was updated by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge } -"""All input for the `updateOrgLimitDefault` mutation.""" -input UpdateOrgLimitDefaultInput { +"""All input for the `updateAppLimitDefault` mutation.""" +input UpdateAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -52935,15 +53543,15 @@ input UpdateOrgLimitDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitDefault` being updated. + An object where the defined keys will be set on the `AppLimitDefault` being updated. """ - orgLimitDefaultPatch: OrgLimitDefaultPatch! + appLimitDefaultPatch: AppLimitDefaultPatch! } """ -Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. +Represents an update to a `AppLimitDefault`. Fields that are set will be updated. """ -input OrgLimitDefaultPatch { +input AppLimitDefaultPatch { id: UUID """Name identifier of the limit this default applies to""" @@ -52956,31 +53564,31 @@ input OrgLimitDefaultPatch { softMax: BigInt } -"""The output of our update `AppLimitCreditCodeItem` mutation.""" -type UpdateAppLimitCreditCodeItemPayload { +"""The output of our update `OrgLimitCap` mutation.""" +type UpdateOrgLimitCapPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCodeItem` that was updated by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `OrgLimitCap` that was updated by this mutation.""" + orgLimitCap: OrgLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge } -"""All input for the `updateAppLimitCreditCodeItem` mutation.""" -input UpdateAppLimitCreditCodeItemInput { +"""All input for the `updateOrgLimitCap` mutation.""" +input UpdateOrgLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -52989,57 +53597,52 @@ input UpdateAppLimitCreditCodeItemInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. + An object where the defined keys will be set on the `OrgLimitCap` being updated. """ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! + orgLimitCapPatch: OrgLimitCapPatch! } """ -Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. +Represents an update to a `OrgLimitCap`. Fields that are set will be updated. """ -input AppLimitCreditCodeItemPatch { +input OrgLimitCapPatch { id: UUID - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID - - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID + """Name identifier of the cap being overridden""" + name: String - """Number of credits this item grants per redemption""" - amount: BigInt + """Entity this cap override applies to""" + entityId: UUID - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String + """Override cap value for this entity""" + max: BigInt } -"""The output of our update `AppLimitWarning` mutation.""" -type UpdateAppLimitWarningPayload { +"""The output of our update `OrgLimitDefault` mutation.""" +type UpdateOrgLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitWarning` that was updated by this mutation.""" - appLimitWarning: AppLimitWarning + """The `OrgLimitDefault` that was updated by this mutation.""" + orgLimitDefault: OrgLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the `updateAppLimitWarning` mutation.""" -input UpdateAppLimitWarningInput { +"""All input for the `updateOrgLimitDefault` mutation.""" +input UpdateOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -53048,32 +53651,25 @@ input UpdateAppLimitWarningInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitWarning` being updated. + An object where the defined keys will be set on the `OrgLimitDefault` being updated. """ - appLimitWarningPatch: AppLimitWarningPatch! + orgLimitDefaultPatch: OrgLimitDefaultPatch! } """ -Represents an update to a `AppLimitWarning`. Fields that are set will be updated. +Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. """ -input AppLimitWarningPatch { +input OrgLimitDefaultPatch { id: UUID - """Limit name this warning applies to (must match a default_limits entry)""" + """Name identifier of the limit this default applies to""" name: String - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt + """Default maximum usage allowed for this limit""" + max: BigInt - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } """The output of our update `Database` mutation.""" @@ -53180,6 +53776,70 @@ input CryptoAddressesModulePatch { cryptoNetwork: String } +"""The output of our update `OrgChartEdge` mutation.""" +type UpdateOrgChartEdgePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgChartEdge` that was updated by this mutation.""" + orgChartEdge: OrgChartEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge +} + +"""All input for the `updateOrgChartEdge` mutation.""" +input UpdateOrgChartEdgeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgChartEdge` being updated. + """ + orgChartEdgePatch: OrgChartEdgePatch! +} + +""" +Represents an update to a `OrgChartEdge`. Fields that are set will be updated. +""" +input OrgChartEdgePatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Organization this hierarchy edge belongs to""" + entityId: UUID + + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID + + """ + User ID of the manager; NULL indicates a top-level position with no direct report + """ + parentId: UUID + + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int +} + """The output of our update `CryptoAddress` mutation.""" type UpdateCryptoAddressPayload { """ @@ -53329,79 +53989,17 @@ type UpdateAppLimitCreditPayload { """ Our root query field type. Allows us to run any query from our mutation payload. """ - query: Query - - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge -} - -"""All input for the `updateAppLimitCredit` mutation.""" -input UpdateAppLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimitCredit` being updated. - """ - appLimitCreditPatch: AppLimitCreditPatch! -} - -""" -Represents an update to a `AppLimitCredit`. Fields that are set will be updated. -""" -input AppLimitCreditPatch { - id: UUID - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""The output of our update `OrgLimitWarning` mutation.""" -type UpdateOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was updated by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge + query: Query + + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge } -"""All input for the `updateOrgLimitWarning` mutation.""" -input UpdateOrgLimitWarningInput { +"""All input for the `updateAppLimitCredit` mutation.""" +input UpdateAppLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -53410,35 +54008,33 @@ input UpdateOrgLimitWarningInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitWarning` being updated. + An object where the defined keys will be set on the `AppLimitCredit` being updated. """ - orgLimitWarningPatch: OrgLimitWarningPatch! + appLimitCreditPatch: AppLimitCreditPatch! } """ -Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. +Represents an update to a `AppLimitCredit`. Fields that are set will be updated. """ -input OrgLimitWarningPatch { +input AppLimitCreditPatch { id: UUID - """Limit name this warning applies to (must match a default_limits entry)""" - name: String + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - taskIdentifier: String + creditType: String - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } """The output of our update `OrgLimitCredit` mutation.""" @@ -53537,7 +54133,7 @@ input UpdateObjectInput { """ clientMutationId: String id: UUID! - databaseId: UUID! + scopeId: UUID! """ An object where the defined keys will be set on the `Object` being updated. @@ -53550,7 +54146,7 @@ Represents an update to a `Object`. Fields that are set will be updated. """ input ObjectPatch { id: UUID - databaseId: UUID + scopeId: UUID kids: [UUID] ktree: [String] data: JSON @@ -53558,74 +54154,247 @@ input ObjectPatch { createdAt: Datetime } -"""The output of our update `SiteMetadatum` mutation.""" -type UpdateSiteMetadatumPayload { +"""The output of our update `AppPermission` mutation.""" +type UpdateAppPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SiteMetadatum` that was updated by this mutation.""" - siteMetadatum: SiteMetadatum + """The `AppPermission` that was updated by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `updateSiteMetadatum` mutation.""" -input UpdateSiteMetadatumInput { +"""All input for the `updateAppPermission` mutation.""" +input UpdateAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! - """Unique identifier for this metadata record""" + """ + An object where the defined keys will be set on the `AppPermission` being updated. + """ + appPermissionPatch: AppPermissionPatch! +} + +""" +Represents an update to a `AppPermission`. Fields that are set will be updated. +""" +input AppPermissionPatch { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our update `OrgPermission` mutation.""" +type UpdateOrgPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermission` that was updated by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `updateOrgPermission` mutation.""" +input UpdateOrgPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String id: UUID! """ - An object where the defined keys will be set on the `SiteMetadatum` being updated. + An object where the defined keys will be set on the `OrgPermission` being updated. """ - siteMetadatumPatch: SiteMetadatumPatch! + orgPermissionPatch: OrgPermissionPatch! } """ -Represents an update to a `SiteMetadatum`. Fields that are set will be updated. +Represents an update to a `OrgPermission`. Fields that are set will be updated. """ -input SiteMetadatumPatch { - """Unique identifier for this metadata record""" +input OrgPermissionPatch { id: UUID - """Reference to the metaschema database""" - databaseId: UUID + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """Site this metadata belongs to""" - siteId: UUID + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int - """Page title for SEO (max 120 characters)""" - title: String + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString - """Meta description for SEO and social sharing (max 120 characters)""" + """Human-readable description of what this permission allows""" description: String +} - """Open Graph image for social media previews""" - ogImage: ConstructiveInternalTypeImage +"""The output of our update `AppLimitCreditCode` mutation.""" +type UpdateAppLimitCreditCodePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Upload for Open Graph image for social media previews""" - ogImageUpload: Upload + """The `AppLimitCreditCode` that was updated by this mutation.""" + appLimitCreditCode: AppLimitCreditCode + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload +"""All input for the `updateAppLimitCreditCode` mutation.""" +input UpdateAppLimitCreditCodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitCreditCode` being updated. + """ + appLimitCreditCodePatch: AppLimitCreditCodePatch! +} + +""" +Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. +""" +input AppLimitCreditCodePatch { + id: UUID + + """Human-readable credit code (case-insensitive, unique)""" + code: String + + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int + + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime +} + +"""The output of our update `AppLimitWarning` mutation.""" +type UpdateAppLimitWarningPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitWarning` that was updated by this mutation.""" + appLimitWarning: AppLimitWarning + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge +} + +"""All input for the `updateAppLimitWarning` mutation.""" +input UpdateAppLimitWarningInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitWarning` being updated. + """ + appLimitWarningPatch: AppLimitWarningPatch! +} + +""" +Represents an update to a `AppLimitWarning`. Fields that are set will be updated. +""" +input AppLimitWarningPatch { + id: UUID + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String +} """The output of our update `FullTextSearch` mutation.""" type UpdateFullTextSearchPayload { @@ -53767,8 +54536,8 @@ input UpdateCommitInput { """The primary unique identifier for the commit.""" id: UUID! - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! """ An object where the defined keys will be set on the `Commit` being updated. @@ -53786,8 +54555,8 @@ input CommitPatch { """The commit message""" message: String - """The repository identifier""" - databaseId: UUID + """The scope identifier""" + scopeId: UUID storeId: UUID """Parent commits""" @@ -53804,6 +54573,75 @@ input CommitPatch { date: Datetime } +"""The output of our update `SiteMetadatum` mutation.""" +type UpdateSiteMetadatumPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteMetadatum` that was updated by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the `updateSiteMetadatum` mutation.""" +input UpdateSiteMetadatumInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this metadata record""" + id: UUID! + + """ + An object where the defined keys will be set on the `SiteMetadatum` being updated. + """ + siteMetadatumPatch: SiteMetadatumPatch! +} + +""" +Represents an update to a `SiteMetadatum`. Fields that are set will be updated. +""" +input SiteMetadatumPatch { + """Unique identifier for this metadata record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """Site this metadata belongs to""" + siteId: UUID + + """Page title for SEO (max 120 characters)""" + title: String + + """Meta description for SEO and social sharing (max 120 characters)""" + description: String + + """Open Graph image for social media previews""" + ogImage: ConstructiveInternalTypeImage + + """Upload for Open Graph image for social media previews""" + ogImageUpload: Upload +} + +"""The `Upload` scalar type represents a file upload.""" +scalar Upload + """The output of our update `PubkeySetting` mutation.""" type UpdatePubkeySettingPayload { """ @@ -54200,31 +55038,31 @@ input AppClaimedInvitePatch { updatedAt: Datetime } -"""The output of our update `AppMembershipDefault` mutation.""" -type UpdateAppMembershipDefaultPayload { +"""The output of our update `OrgLimitWarning` mutation.""" +type UpdateOrgLimitWarningPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembershipDefault` that was updated by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `OrgLimitWarning` that was updated by this mutation.""" + orgLimitWarning: OrgLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge } -"""All input for the `updateAppMembershipDefault` mutation.""" -input UpdateAppMembershipDefaultInput { +"""All input for the `updateOrgLimitWarning` mutation.""" +input UpdateOrgLimitWarningInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -54233,149 +55071,108 @@ input UpdateAppMembershipDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `AppMembershipDefault` being updated. + An object where the defined keys will be set on the `OrgLimitWarning` being updated. """ - appMembershipDefaultPatch: AppMembershipDefaultPatch! + orgLimitWarningPatch: OrgLimitWarningPatch! } """ -Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. +Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. """ -input AppMembershipDefaultPatch { +input OrgLimitWarningPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - """Whether new members are automatically verified upon joining""" - isVerified: Boolean -} - -"""The output of our update `OrgMembershipDefault` mutation.""" -type UpdateOrgMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipDefault` that was updated by this mutation.""" - orgMembershipDefault: OrgMembershipDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Limit name this warning applies to (must match a default_limits entry)""" + name: String - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge -} + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String -"""All input for the `updateOrgMembershipDefault` mutation.""" -input UpdateOrgMembershipDefaultInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type """ - clientMutationId: String - id: UUID! + thresholdValue: BigInt """ - An object where the defined keys will be set on the `OrgMembershipDefault` being updated. + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) """ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch! -} - -""" -Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. -""" -input OrgMembershipDefaultPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + taskIdentifier: String - """References the entity these membership defaults apply to""" + """Per-entity override (NULL = scope default for all entities)""" entityId: UUID } -"""The output of our update `AuditLog` mutation.""" -type UpdateAuditLogPayload { +"""The output of our update `MembershipType` mutation.""" +type UpdateMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AuditLog` that was updated by this mutation.""" - auditLog: AuditLog + """The `MembershipType` that was updated by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `updateAuditLog` mutation.""" -input UpdateAuditLogInput { +"""All input for the `updateMembershipType` mutation.""" +input UpdateMembershipTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! """ - An object where the defined keys will be set on the `AuditLog` being updated. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - auditLogPatch: AuditLogPatch! + id: Int! + + """ + An object where the defined keys will be set on the `MembershipType` being updated. + """ + membershipTypePatch: MembershipTypePatch! } """ -Represents an update to a `AuditLog`. Fields that are set will be updated. +Represents an update to a `MembershipType`. Fields that are set will be updated. """ -input AuditLogPatch { - id: UUID - +input MembershipTypePatch { """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - event: String - - """User who performed the authentication action; NULL if user was deleted""" - actorId: UUID + id: Int - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin + """Human-readable name of the membership type""" + name: String - """Browser or client user-agent string from the request""" - userAgent: String + """Description of what this membership type represents""" + description: String - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String - """Whether the authentication attempt succeeded""" - success: Boolean + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int - """Timestamp when the audit event was recorded""" - createdAt: Datetime + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean } """The output of our update `Domain` mutation.""" @@ -54690,66 +55487,6 @@ input AgentThreadPatch { status: String } -"""The output of our update `Email` mutation.""" -type UpdateEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Email` that was updated by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the `updateEmail` mutation.""" -input UpdateEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `Email` being updated. - """ - emailPatch: EmailPatch! -} - -""" -Represents an update to a `Email`. Fields that are set will be updated. -""" -input EmailPatch { - id: UUID - ownerId: UUID - - """The email address""" - email: ConstructiveInternalTypeEmail - - """Whether the email address has been verified via confirmation link""" - isVerified: Boolean - - """Whether this is the user's primary email address""" - isPrimary: Boolean - - """Optional user-provided label for this email (e.g. "Work", "Personal").""" - name: String - createdAt: Datetime - updatedAt: Datetime -} - """The output of our update `AppGrant` mutation.""" type UpdateAppGrantPayload { """ @@ -54864,125 +55601,6 @@ input OrgClaimedInvitePatch { entityId: UUID } -"""The output of our update `OrgChartEdge` mutation.""" -type UpdateOrgChartEdgePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdge` that was updated by this mutation.""" - orgChartEdge: OrgChartEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge -} - -"""All input for the `updateOrgChartEdge` mutation.""" -input UpdateOrgChartEdgeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgChartEdge` being updated. - """ - orgChartEdgePatch: OrgChartEdgePatch! -} - -""" -Represents an update to a `OrgChartEdge`. Fields that are set will be updated. -""" -input OrgChartEdgePatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """Organization this hierarchy edge belongs to""" - entityId: UUID - - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID - - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID - - """Job title or role name for this position in the org chart""" - positionTitle: String - - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int -} - -"""The output of our update `Partition` mutation.""" -type UpdatePartitionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Partition` that was updated by this mutation.""" - partition: Partition - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Partition`. May be used by Relay 1.""" - partitionEdge( - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PartitionEdge -} - -"""All input for the `updatePartition` mutation.""" -input UpdatePartitionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `Partition` being updated. - """ - partitionPatch: PartitionPatch! -} - -""" -Represents an update to a `Partition`. Fields that are set will be updated. -""" -input PartitionPatch { - id: UUID - databaseId: UUID - tableId: UUID - strategy: String - partitionKeyId: UUID - interval: String - retention: String - premake: Int - namingPattern: String - createdAt: Datetime - updatedAt: Datetime -} - """The output of our update `BlueprintConstruction` mutation.""" type UpdateBlueprintConstructionPayload { """ @@ -55183,6 +55801,82 @@ input SessionsModulePatch { authSettingsTable: String } +"""The output of our update `OrgMemberProfile` mutation.""" +type UpdateOrgMemberProfilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMemberProfile` that was updated by this mutation.""" + orgMemberProfile: OrgMemberProfile + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge +} + +"""All input for the `updateOrgMemberProfile` mutation.""" +input UpdateOrgMemberProfileInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgMemberProfile` being updated. + """ + orgMemberProfilePatch: OrgMemberProfilePatch! +} + +""" +Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. +""" +input OrgMemberProfilePatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """References the membership this profile belongs to (1:1)""" + membershipId: UUID + + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID + + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID + + """Display name shown to other entity members""" + displayName: String + + """ + Email address visible to other entity members (auto-populated from verified primary email) + """ + email: String + + """Job title or role description visible to other entity members""" + title: String + + """Short biography visible to other entity members""" + bio: String + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage + + """Upload for Profile picture visible to other entity members""" + profilePictureUpload: Upload +} + """The output of our update `OrgGrant` mutation.""" type UpdateOrgGrantPayload { """ @@ -55243,6 +55937,130 @@ input OrgGrantPatch { updatedAt: Datetime } +"""The output of our update `AuditLog` mutation.""" +type UpdateAuditLogPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AuditLog` that was updated by this mutation.""" + auditLog: AuditLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} + +"""All input for the `updateAuditLog` mutation.""" +input UpdateAuditLogInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AuditLog` being updated. + """ + auditLogPatch: AuditLogPatch! +} + +""" +Represents an update to a `AuditLog`. Fields that are set will be updated. +""" +input AuditLogPatch { + id: UUID + + """ + Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) + """ + event: String + + """User who performed the authentication action; NULL if user was deleted""" + actorId: UUID + + """Request origin (domain) where the auth event occurred""" + origin: ConstructiveInternalTypeOrigin + + """Browser or client user-agent string from the request""" + userAgent: String + + """IP address of the client that initiated the auth event""" + ipAddress: InternetAddress + + """Whether the authentication attempt succeeded""" + success: Boolean + + """Timestamp when the audit event was recorded""" + createdAt: Datetime +} + +"""The output of our update `Partition` mutation.""" +type UpdatePartitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Partition` that was updated by this mutation.""" + partition: Partition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Partition`. May be used by Relay 1.""" + partitionEdge( + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PartitionEdge +} + +"""All input for the `updatePartition` mutation.""" +input UpdatePartitionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `Partition` being updated. + """ + partitionPatch: PartitionPatch! +} + +""" +Represents an update to a `Partition`. Fields that are set will be updated. +""" +input PartitionPatch { + id: UUID + databaseId: UUID + tableId: UUID + strategy: String + partitionKeyId: UUID + interval: String + retention: String + retentionKeepTable: Boolean + premake: Int + namingPattern: String + createdAt: Datetime + updatedAt: Datetime +} + """The output of our update `Blueprint` mutation.""" type UpdateBlueprintPayload { """ @@ -55390,6 +56208,62 @@ input DenormalizedTableFieldPatch { funcOrder: Int } +"""The output of our update `InferenceLogModule` mutation.""" +type UpdateInferenceLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InferenceLogModule` that was updated by this mutation.""" + inferenceLogModule: InferenceLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge +} + +"""All input for the `updateInferenceLogModule` mutation.""" +input UpdateInferenceLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `InferenceLogModule` being updated. + """ + inferenceLogModulePatch: InferenceLogModulePatch! +} + +""" +Represents an update to a `InferenceLogModule`. Fields that are set will be updated. +""" +input InferenceLogModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + inferenceLogTableId: UUID + inferenceLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + prefix: String +} + """The output of our update `RateLimitMetersModule` mutation.""" type UpdateRateLimitMetersModulePayload { """ @@ -55559,31 +56433,31 @@ input PlansModulePatch { prefix: String } -"""The output of our update `AppLimit` mutation.""" -type UpdateAppLimitPayload { +"""The output of our update `Email` mutation.""" +type UpdateEmailPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimit` that was updated by this mutation.""" - appLimit: AppLimit + """The `Email` that was updated by this mutation.""" + email: Email """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge } -"""All input for the `updateAppLimit` mutation.""" -input UpdateAppLimitInput { +"""All input for the `updateEmail` mutation.""" +input UpdateEmailInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -55592,134 +56466,191 @@ input UpdateAppLimitInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimit` being updated. + An object where the defined keys will be set on the `Email` being updated. """ - appLimitPatch: AppLimitPatch! + emailPatch: EmailPatch! } """ -Represents an update to a `AppLimit`. Fields that are set will be updated. +Represents an update to a `Email`. Fields that are set will be updated. """ -input AppLimitPatch { +input EmailPatch { id: UUID + ownerId: UUID - """Name identifier of the limit being tracked""" - name: String + """The email address""" + email: ConstructiveInternalTypeEmail - """User whose usage is being tracked against this limit""" - actorId: UUID + """Whether the email address has been verified via confirmation link""" + isVerified: Boolean - """Current usage count for this actor and limit""" - num: BigInt + """Whether this is the user's primary email address""" + isPrimary: Boolean - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt + """Optional user-provided label for this email (e.g. "Work", "Personal").""" + name: String + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our update `AppLimitEvent` mutation.""" +type UpdateAppLimitEventPayload { """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - softMax: BigInt + clientMutationId: String - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """The `AppLimitEvent` that was updated by this mutation.""" + appLimitEvent: AppLimitEvent """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + Our root query field type. Allows us to run any query from our mutation payload. """ - windowDuration: IntervalInput + query: Query + + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge +} +"""All input for the `updateAppLimitEvent` mutation.""" +input UpdateAppLimitEventInput { """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - planMax: BigInt + clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + An object where the defined keys will be set on the `AppLimitEvent` being updated. """ - purchasedCredits: BigInt + appLimitEventPatch: AppLimitEventPatch! +} + +""" +Represents an update to a `AppLimitEvent`. Fields that are set will be updated. +""" +input AppLimitEventPatch { + createdAt: Datetime + + """Unique identifier for each limit event""" + id: UUID + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + Optional reason or source: achievement, invite, plan_change, purchase, etc. """ - periodCredits: BigInt + reason: String } -"""The output of our update `OrgMemberProfile` mutation.""" -type UpdateOrgMemberProfilePayload { +"""The output of our update `OrgLimitEvent` mutation.""" +type UpdateOrgLimitEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMemberProfile` that was updated by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `OrgLimitEvent` that was updated by this mutation.""" + orgLimitEvent: OrgLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge } -"""All input for the `updateOrgMemberProfile` mutation.""" -input UpdateOrgMemberProfileInput { +"""All input for the `updateOrgLimitEvent` mutation.""" +input UpdateOrgLimitEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! """ - An object where the defined keys will be set on the `OrgMemberProfile` being updated. + An object where the defined keys will be set on the `OrgLimitEvent` being updated. """ - orgMemberProfilePatch: OrgMemberProfilePatch! + orgLimitEventPatch: OrgLimitEventPatch! } """ -Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. +Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. """ -input OrgMemberProfilePatch { - id: UUID +input OrgLimitEventPatch { createdAt: Datetime - updatedAt: Datetime - """References the membership this profile belongs to (1:1)""" - membershipId: UUID + """Unique identifier for each limit event""" + id: UUID - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID + """Limit name this event applies to""" + name: String - """References the user who owns this profile (for self-edit RLS)""" + """User who triggered this event; NULL for system/aggregate events""" actorId: UUID - """Display name shown to other entity members""" - displayName: String + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Job title or role description visible to other entity members""" - title: String + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Short biography visible to other entity members""" - bio: String + """Usage count before this event""" + numBefore: BigInt - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """Usage count after this event""" + numAfter: BigInt - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } """The output of our update `DatabaseTransfer` mutation.""" @@ -55875,64 +56806,6 @@ input DatabaseSettingPatch { options: JSON } -"""The output of our update `BillingModule` mutation.""" -type UpdateBillingModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `BillingModule` that was updated by this mutation.""" - billingModule: BillingModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge -} - -"""All input for the `updateBillingModule` mutation.""" -input UpdateBillingModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `BillingModule` being updated. - """ - billingModulePatch: BillingModulePatch! -} - -""" -Represents an update to a `BillingModule`. Fields that are set will be updated. -""" -input BillingModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - metersTableId: UUID - metersTableName: String - planSubscriptionsTableId: UUID - planSubscriptionsTableName: String - ledgerTableId: UUID - ledgerTableName: String - balancesTableId: UUID - balancesTableName: String - recordUsageFunction: String - prefix: String -} - """The output of our update `CryptoAuthModule` mutation.""" type UpdateCryptoAuthModulePayload { """ @@ -56129,6 +57002,98 @@ input InvitesModulePatch { entityTableId: UUID } +"""The output of our update `OrgMembershipSetting` mutation.""" +type UpdateOrgMembershipSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMembershipSetting` that was updated by this mutation.""" + orgMembershipSetting: OrgMembershipSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge +} + +"""All input for the `updateOrgMembershipSetting` mutation.""" +input UpdateOrgMembershipSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgMembershipSetting` being updated. + """ + orgMembershipSettingPatch: OrgMembershipSettingPatch! +} + +""" +Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. +""" +input OrgMembershipSettingPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """References the entity these settings apply to""" + entityId: UUID + + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean + + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean + + """ + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + """ + createChildCascadeAdmins: Boolean + + """ + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + """ + createChildCascadeMembers: Boolean + + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean + + """ + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String + + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean + + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String +} + """The output of our update `SecureTableProvision` mutation.""" type UpdateSecureTableProvisionPayload { """ @@ -56225,119 +57190,31 @@ input SecureTableProvisionPatch { outFields: [UUID] } -"""The output of our update `OrgLimitAggregate` mutation.""" -type UpdateOrgLimitAggregatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitAggregate` that was updated by this mutation.""" - orgLimitAggregate: OrgLimitAggregate - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge -} - -"""All input for the `updateOrgLimitAggregate` mutation.""" -input UpdateOrgLimitAggregateInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgLimitAggregate` being updated. - """ - orgLimitAggregatePatch: OrgLimitAggregatePatch! -} - -""" -Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. -""" -input OrgLimitAggregatePatch { - id: UUID - - """Name identifier of the aggregate limit being tracked""" - name: String - - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID - - """Current aggregate usage count for this entity and limit""" - num: BigInt - - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt - - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. - """ - reserved: BigInt -} - -"""The output of our update `OrgLimit` mutation.""" -type UpdateOrgLimitPayload { +"""The output of our update `AppLimit` mutation.""" +type UpdateAppLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was updated by this mutation.""" - orgLimit: OrgLimit + """The `AppLimit` that was updated by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the `updateOrgLimit` mutation.""" -input UpdateOrgLimitInput { +"""All input for the `updateAppLimit` mutation.""" +input UpdateAppLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -56346,15 +57223,15 @@ input UpdateOrgLimitInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimit` being updated. + An object where the defined keys will be set on the `AppLimit` being updated. """ - orgLimitPatch: OrgLimitPatch! + appLimitPatch: AppLimitPatch! } """ -Represents an update to a `OrgLimit`. Fields that are set will be updated. +Represents an update to a `AppLimit`. Fields that are set will be updated. """ -input OrgLimitPatch { +input AppLimitPatch { id: UUID """Name identifier of the limit being tracked""" @@ -56398,7 +57275,6 @@ input OrgLimitPatch { Temporary credits for the current billing window. Resets to 0 on window expiry. """ periodCredits: BigInt - entityId: UUID } """The output of our update `ApiSetting` mutation.""" @@ -56569,31 +57445,31 @@ input EnumPatch { tags: [String] } -"""The output of our update `User` mutation.""" -type UpdateUserPayload { +"""The output of our update `OrgLimitAggregate` mutation.""" +type UpdateOrgLimitAggregatePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `User` that was updated by this mutation.""" - user: User + """The `OrgLimitAggregate` that was updated by this mutation.""" + orgLimitAggregate: OrgLimitAggregate """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `User`. May be used by Relay 1.""" - userEdge( - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserEdge + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge } -"""All input for the `updateUser` mutation.""" -input UpdateUserInput { +"""All input for the `updateOrgLimitAggregate` mutation.""" +input UpdateOrgLimitAggregateInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -56602,23 +57478,147 @@ input UpdateUserInput { id: UUID! """ - An object where the defined keys will be set on the `User` being updated. + An object where the defined keys will be set on the `OrgLimitAggregate` being updated. """ - userPatch: UserPatch! + orgLimitAggregatePatch: OrgLimitAggregatePatch! } -"""Represents an update to a `User`. Fields that are set will be updated.""" -input UserPatch { +""" +Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. +""" +input OrgLimitAggregatePatch { id: UUID - username: String - displayName: String - profilePicture: ConstructiveInternalTypeImage - type: Int - createdAt: Datetime - updatedAt: Datetime - """File upload for the `profilePicture` field.""" - profilePictureUpload: Upload + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """ + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + """ + reserved: BigInt +} + +"""The output of our update `OrgLimit` mutation.""" +type UpdateOrgLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimit` that was updated by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the `updateOrgLimit` mutation.""" +input UpdateOrgLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgLimit` being updated. + """ + orgLimitPatch: OrgLimitPatch! +} + +""" +Represents an update to a `OrgLimit`. Fields that are set will be updated. +""" +input OrgLimitPatch { + id: UUID + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + entityId: UUID } """The output of our update `View` mutation.""" @@ -56679,6 +57679,66 @@ input ViewPatch { tags: [String] } +"""The output of our update `BillingModule` mutation.""" +type UpdateBillingModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `BillingModule` that was updated by this mutation.""" + billingModule: BillingModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge +} + +"""All input for the `updateBillingModule` mutation.""" +input UpdateBillingModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `BillingModule` being updated. + """ + billingModulePatch: BillingModulePatch! +} + +""" +Represents an update to a `BillingModule`. Fields that are set will be updated. +""" +input BillingModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + meterCreditsTableId: UUID + meterCreditsTableName: String + recordUsageFunction: String + prefix: String +} + """The output of our update `WebauthnAuthModule` mutation.""" type UpdateWebauthnAuthModulePayload { """ @@ -56739,31 +57799,31 @@ input WebauthnAuthModulePatch { challengeExpiry: IntervalInput } -"""The output of our update `AppInvite` mutation.""" -type UpdateAppInvitePayload { +"""The output of our update `AppMembership` mutation.""" +type UpdateAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppInvite` that was updated by this mutation.""" - appInvite: AppInvite + """The `AppMembership` that was updated by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `updateAppInvite` mutation.""" -input UpdateAppInviteInput { +"""All input for the `updateAppMembership` mutation.""" +input UpdateAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -56772,77 +57832,84 @@ input UpdateAppInviteInput { id: UUID! """ - An object where the defined keys will be set on the `AppInvite` being updated. + An object where the defined keys will be set on the `AppMembership` being updated. """ - appInvitePatch: AppInvitePatch! + appMembershipPatch: AppMembershipPatch! } """ -Represents an update to a `AppInvite`. Fields that are set will be updated. +Represents an update to a `AppMembership`. Fields that are set will be updated. """ -input AppInvitePatch { +input AppMembershipPatch { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """User ID of the member who sent this invitation""" - senderId: UUID + """Whether this member has been banned from the entity""" + isBanned: Boolean - """Unique random hex token used to redeem this invitation""" - inviteToken: String + """Whether this membership is temporarily disabled""" + isDisabled: Boolean - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean - """Optional JSON payload of additional invite metadata""" - data: JSON + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + Bitmask of permissions directly granted to this member (not from profiles) """ - profileId: UUID + granted: BitString - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime + """References the user who holds this membership""" + actorId: UUID + profileId: UUID } -"""The output of our update `OrgMembershipSetting` mutation.""" -type UpdateOrgMembershipSettingPayload { +"""The output of our update `User` mutation.""" +type UpdateUserPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was updated by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `User` that was updated by this mutation.""" + user: User """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge } -"""All input for the `updateOrgMembershipSetting` mutation.""" -input UpdateOrgMembershipSettingInput { +"""All input for the `updateUser` mutation.""" +input UpdateUserInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -56851,63 +57918,23 @@ input UpdateOrgMembershipSettingInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembershipSetting` being updated. + An object where the defined keys will be set on the `User` being updated. """ - orgMembershipSettingPatch: OrgMembershipSettingPatch! + userPatch: UserPatch! } -""" -Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. -""" -input OrgMembershipSettingPatch { +"""Represents an update to a `User`. Fields that are set will be updated.""" +input UserPatch { id: UUID + username: String + displayName: String + profilePicture: ConstructiveInternalTypeImage + type: Int createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String - - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean - - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String + """File upload for the `profilePicture` field.""" + profilePictureUpload: Upload } """The output of our update `App` mutation.""" @@ -57742,31 +58769,31 @@ input WebauthnSettingPatch { challengeExpirySeconds: BigInt } -"""The output of our update `AppMembership` mutation.""" -type UpdateAppMembershipPayload { +"""The output of our update `OrgMembership` mutation.""" +type UpdateOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembership` that was updated by this mutation.""" - appMembership: AppMembership + """The `OrgMembership` that was updated by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the `updateAppMembership` mutation.""" -input UpdateAppMembershipInput { +"""All input for the `updateOrgMembership` mutation.""" +input UpdateOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -57775,15 +58802,15 @@ input UpdateAppMembershipInput { id: UUID! """ - An object where the defined keys will be set on the `AppMembership` being updated. + An object where the defined keys will be set on the `OrgMembership` being updated. """ - appMembershipPatch: AppMembershipPatch! + orgMembershipPatch: OrgMembershipPatch! } """ -Represents an update to a `AppMembership`. Fields that are set will be updated. +Represents an update to a `OrgMembership`. Fields that are set will be updated. """ -input AppMembershipPatch { +input OrgMembershipPatch { id: UUID createdAt: Datetime updatedAt: Datetime @@ -57799,14 +58826,16 @@ input AppMembershipPatch { """Whether this membership is temporarily disabled""" isDisabled: Boolean - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - """ Computed field indicating the membership is approved, verified, not banned, and not disabled """ isActive: Boolean + """ + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + """ + isExternal: Boolean + """Whether the actor is the owner of this entity""" isOwner: Boolean @@ -57825,6 +58854,12 @@ input AppMembershipPatch { """References the user who holds this membership""" actorId: UUID + + """References the entity (org or group) this membership belongs to""" + entityId: UUID + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean profileId: UUID } @@ -57949,31 +58984,31 @@ input IndexPatch { updatedAt: Datetime } -"""The output of our update `OrgInvite` mutation.""" -type UpdateOrgInvitePayload { +"""The output of our update `AppInvite` mutation.""" +type UpdateAppInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgInvite` that was updated by this mutation.""" - orgInvite: OrgInvite + """The `AppInvite` that was updated by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `updateOrgInvite` mutation.""" -input UpdateOrgInviteInput { +"""All input for the `updateAppInvite` mutation.""" +input UpdateAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -57982,15 +59017,15 @@ input UpdateOrgInviteInput { id: UUID! """ - An object where the defined keys will be set on the `OrgInvite` being updated. + An object where the defined keys will be set on the `AppInvite` being updated. """ - orgInvitePatch: OrgInvitePatch! + appInvitePatch: AppInvitePatch! } """ -Represents an update to a `OrgInvite`. Fields that are set will be updated. +Represents an update to a `AppInvite`. Fields that are set will be updated. """ -input OrgInvitePatch { +input AppInvitePatch { id: UUID """Email address of the invited recipient""" @@ -57999,9 +59034,6 @@ input OrgInvitePatch { """User ID of the member who sent this invitation""" senderId: UUID - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - """Unique random hex token used to redeem this invitation""" inviteToken: String @@ -58025,16 +59057,10 @@ input OrgInvitePatch { """ profileId: UUID - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean - """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime createdAt: Datetime updatedAt: Datetime - entityId: UUID } """The output of our update `BillingProviderModule` mutation.""" @@ -58360,100 +59386,6 @@ input ProfilesModulePatch { prefix: String } -"""The output of our update `OrgMembership` mutation.""" -type UpdateOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembership` that was updated by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the `updateOrgMembership` mutation.""" -input UpdateOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgMembership` being updated. - """ - orgMembershipPatch: OrgMembershipPatch! -} - -""" -Represents an update to a `OrgMembership`. Fields that are set will be updated. -""" -input OrgMembershipPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID - - """References the entity (org or group) this membership belongs to""" - entityId: UUID - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID -} - """The output of our update `EmbeddingChunk` mutation.""" type UpdateEmbeddingChunkPayload { """ @@ -58581,6 +59513,94 @@ input ForeignKeyConstraintPatch { updatedAt: Datetime } +"""The output of our update `OrgInvite` mutation.""" +type UpdateOrgInvitePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgInvite` that was updated by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the `updateOrgInvite` mutation.""" +input UpdateOrgInviteInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgInvite` being updated. + """ + orgInvitePatch: OrgInvitePatch! +} + +""" +Represents an update to a `OrgInvite`. Fields that are set will be updated. +""" +input OrgInvitePatch { + id: UUID + + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID + + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON + + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + + """ + Whether the resulting membership should be read-only when this invite is claimed + """ + isReadOnly: Boolean + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID +} + """The output of our update `RelationProvision` mutation.""" type UpdateRelationProvisionPayload { """ @@ -58941,36 +59961,34 @@ input EntityTypeProvisionPatch { hasInviteAchievements: Boolean """ - Optional jsonb object for storage module configuration and initial bucket seeding. - Only used when has_storage = true; ignored otherwise. NULL = use defaults. - Recognized keys (all optional): - - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - - download_url_expiry_seconds (integer) presigned GET URL expiry override - - default_max_file_size (bigint) global max file size in bytes for this scope - - allowed_origins (text[]) default CORS origins for all buckets in this scope - - buckets (jsonb[]) array of initial bucket definitions to seed - Each bucket in the buckets array recognizes: - - name (text, required) bucket name e.g. 'documents' - - description (text) human-readable description - - is_public (boolean) whether files are publicly readable (default false) - - allowed_mime_types (text[]) whitelist of MIME types (null = any) - - max_file_size (bigint) max file size in bytes (null = use scope default) - - allowed_origins (text[]) per-bucket CORS override - - provisions (jsonb object) optional: customize storage tables - with additional nodes, fields, grants, and policies. - Keyed by table role: "files", "buckets". - Each value uses the same shape as table_provision: - { nodes, fields, grants, use_rls, policies }. Fanned out - to secure_table_provision targeting the corresponding table. - When a key includes policies[], those REPLACE the default - storage policies for that table; tables without a key still - get defaults. Missing "data" on policy entries is auto-populated - with storage-specific defaults (same as table_provision). - Example: add SearchBm25 for full-text search on files: - {"provisions": {"files": {"nodes": [{"$type": - "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - Example: - storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + Optional JSON array of storage module definitions. Each element provisions a separate + storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + and feature flags. Only used when has_storage = true; ignored otherwise. + NULL = provision a single default storage module with all defaults. + Each array element recognizes (all optional): + - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + Defaults to 'default' (omitted from table names). + Non-default keys become infixes: {prefix}_{key}_buckets. + - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + - download_url_expiry_seconds (integer) presigned GET URL expiry override + - default_max_file_size (bigint) global max file size in bytes for this module + - allowed_origins (text[]) default CORS origins for all buckets in this module + - restrict_reads (boolean) require read_files permission for SELECT on files + - has_path_shares (boolean) enable virtual filesystem + path share policies + - has_versioning (boolean) enable file version chains + - has_content_hash (boolean) enable content hash for dedup + - has_custom_keys (boolean) allow client-provided S3 keys + - has_audit_log (boolean) enable file events audit table + - has_confirm_upload (boolean) enable HeadObject confirmation flow + - confirm_upload_delay (interval) delay before first confirmation attempt + - buckets (jsonb[]) array of initial bucket definitions to seed. + Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + Each value: { nodes, fields, grants, use_rls, policies }. + Example (single module, backward compat): + storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + Example (multi-module): + storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb """ storageConfig: JSON @@ -59350,83 +60368,6 @@ input LimitsModulePatch { actorTableId: UUID } -"""The output of our update `StorageModule` mutation.""" -type UpdateStorageModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `StorageModule` that was updated by this mutation.""" - storageModule: StorageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge -} - -"""All input for the `updateStorageModule` mutation.""" -input UpdateStorageModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `StorageModule` being updated. - """ - storageModulePatch: StorageModulePatch! -} - -""" -Represents an update to a `StorageModule`. Fields that are set will be updated. -""" -input StorageModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - bucketsTableId: UUID - filesTableId: UUID - bucketsTableName: String - filesTableName: String - membershipType: Int - policies: JSON - skipDefaultPolicyTables: [String] - entityTableId: UUID - endpoint: String - publicUrlPrefix: String - provider: String - allowedOrigins: [String] - restrictReads: Boolean - hasPathShares: Boolean - pathSharesTableId: UUID - uploadUrlExpirySeconds: Int - downloadUrlExpirySeconds: Int - defaultMaxFileSize: BigInt - maxFilenameLength: Int - cacheTtlSeconds: Int - maxBulkFiles: Int - maxBulkTotalSize: BigInt - hasVersioning: Boolean - hasContentHash: Boolean - hasCustomKeys: Boolean - hasAuditLog: Boolean - hasConfirmUpload: Boolean - confirmUploadDelay: IntervalInput - fileEventsTableId: UUID -} - """The output of our update `MembershipsModule` mutation.""" type UpdateMembershipsModulePayload { """ @@ -59505,6 +60446,84 @@ input MembershipsModulePatch { memberProfilesTableId: UUID } +"""The output of our update `StorageModule` mutation.""" +type UpdateStorageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `StorageModule` that was updated by this mutation.""" + storageModule: StorageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge +} + +"""All input for the `updateStorageModule` mutation.""" +input UpdateStorageModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `StorageModule` being updated. + """ + storageModulePatch: StorageModulePatch! +} + +""" +Represents an update to a `StorageModule`. Fields that are set will be updated. +""" +input StorageModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + bucketsTableId: UUID + filesTableId: UUID + bucketsTableName: String + filesTableName: String + membershipType: Int + storageKey: String + policies: JSON + skipDefaultPolicyTables: [String] + entityTableId: UUID + endpoint: String + publicUrlPrefix: String + provider: String + allowedOrigins: [String] + restrictReads: Boolean + hasPathShares: Boolean + pathSharesTableId: UUID + uploadUrlExpirySeconds: Int + downloadUrlExpirySeconds: Int + defaultMaxFileSize: BigInt + maxFilenameLength: Int + cacheTtlSeconds: Int + maxBulkFiles: Int + maxBulkTotalSize: BigInt + hasVersioning: Boolean + hasContentHash: Boolean + hasCustomKeys: Boolean + hasAuditLog: Boolean + hasConfirmUpload: Boolean + confirmUploadDelay: IntervalInput + fileEventsTableId: UUID +} + """The output of our update `EventsModule` mutation.""" type UpdateEventsModulePayload { """ @@ -59621,39 +60640,6 @@ input DeleteDefaultIdsModuleInput { id: UUID! } -"""The output of our delete `RoleType` mutation.""" -type DeleteRoleTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `RoleType` that was deleted by this mutation.""" - roleType: RoleType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge -} - -"""All input for the `deleteRoleType` mutation.""" -input DeleteRoleTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: Int! -} - """The output of our delete `AppLimitCreditRedemption` mutation.""" type DeleteAppLimitCreditRedemptionPayload { """ @@ -59924,7 +60910,7 @@ input DeleteRefInput { """The primary unique identifier for the ref.""" id: UUID! - databaseId: UUID! + scopeId: UUID! } """The output of our delete `Store` mutation.""" @@ -59962,31 +60948,64 @@ input DeleteStoreInput { id: UUID! } -"""The output of our delete `EncryptedSecretsModule` mutation.""" -type DeleteEncryptedSecretsModulePayload { +"""The output of our delete `ConfigSecretsOrgModule` mutation.""" +type DeleteConfigSecretsOrgModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `EncryptedSecretsModule` that was deleted by this mutation.""" - encryptedSecretsModule: EncryptedSecretsModule + """The `ConfigSecretsOrgModule` that was deleted by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EncryptedSecretsModule`. May be used by Relay 1.""" - encryptedSecretsModuleEdge( - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleEdge + """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" + configSecretsOrgModuleEdge( + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleEdge } -"""All input for the `deleteEncryptedSecretsModule` mutation.""" -input DeleteEncryptedSecretsModuleInput { +"""All input for the `deleteConfigSecretsOrgModule` mutation.""" +input DeleteConfigSecretsOrgModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ConfigSecretsUserModule` mutation.""" +type DeleteConfigSecretsUserModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ConfigSecretsUserModule` that was deleted by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" + configSecretsUserModuleEdge( + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleEdge +} + +"""All input for the `deleteConfigSecretsUserModule` mutation.""" +input DeleteConfigSecretsUserModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -60164,37 +61183,37 @@ input DeleteSiteModuleInput { id: UUID! } -"""The output of our delete `AppLimitCreditCode` mutation.""" -type DeleteAppLimitCreditCodePayload { +"""The output of our delete `RoleType` mutation.""" +type DeleteRoleTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCode` that was deleted by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `RoleType` that was deleted by this mutation.""" + roleType: RoleType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge } -"""All input for the `deleteAppLimitCreditCode` mutation.""" -input DeleteAppLimitCreditCodeInput { +"""All input for the `deleteRoleType` mutation.""" +input DeleteRoleTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! + id: Int! } """The output of our delete `SchemaGrant` mutation.""" @@ -60461,72 +61480,6 @@ input DeleteOrgPermissionDefaultInput { id: UUID! } -"""The output of our delete `AppPermission` mutation.""" -type DeleteAppPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermission` that was deleted by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the `deleteAppPermission` mutation.""" -input DeleteAppPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgPermission` mutation.""" -type DeleteOrgPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermission` that was deleted by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} - -"""All input for the `deleteOrgPermission` mutation.""" -input DeleteOrgPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `AppLimitCapsDefault` mutation.""" type DeleteAppLimitCapsDefaultPayload { """ @@ -60593,109 +61546,6 @@ input DeleteOrgLimitCapsDefaultInput { id: UUID! } -"""The output of our delete `AppLimitCap` mutation.""" -type DeleteAppLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCap` that was deleted by this mutation.""" - appLimitCap: AppLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} - -"""All input for the `deleteAppLimitCap` mutation.""" -input DeleteAppLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitCap` mutation.""" -type DeleteOrgLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCap` that was deleted by this mutation.""" - orgLimitCap: OrgLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the `deleteOrgLimitCap` mutation.""" -input DeleteOrgLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `MembershipType` mutation.""" -type DeleteMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was deleted by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the `deleteMembershipType` mutation.""" -input DeleteMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! -} - """The output of our delete `DefaultPrivilege` mutation.""" type DeleteDefaultPrivilegePayload { """ @@ -60995,6 +61845,39 @@ input DeleteWebauthnCredentialsModuleInput { id: UUID! } +"""The output of our delete `AppMembershipDefault` mutation.""" +type DeleteAppMembershipDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppMembershipDefault` that was deleted by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the `deleteAppMembershipDefault` mutation.""" +input DeleteAppMembershipDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `OrgAdminGrant` mutation.""" type DeleteOrgAdminGrantPayload { """ @@ -61028,6 +61911,39 @@ input DeleteOrgAdminGrantInput { id: UUID! } +"""The output of our delete `OrgMembershipDefault` mutation.""" +type DeleteOrgMembershipDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMembershipDefault` that was deleted by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the `deleteOrgMembershipDefault` mutation.""" +input DeleteOrgMembershipDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `OrgOwnerGrant` mutation.""" type DeleteOrgOwnerGrantPayload { """ @@ -61094,31 +62010,31 @@ input DeleteNodeTypeRegistryInput { name: String! } -"""The output of our delete `AppLimitDefault` mutation.""" -type DeleteAppLimitDefaultPayload { +"""The output of our delete `AppLimitCreditCodeItem` mutation.""" +type DeleteAppLimitCreditCodeItemPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was deleted by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge } -"""All input for the `deleteAppLimitDefault` mutation.""" -input DeleteAppLimitDefaultInput { +"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" +input DeleteAppLimitCreditCodeItemInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61127,31 +62043,31 @@ input DeleteAppLimitDefaultInput { id: UUID! } -"""The output of our delete `OrgLimitDefault` mutation.""" -type DeleteOrgLimitDefaultPayload { +"""The output of our delete `AppLimitCap` mutation.""" +type DeleteAppLimitCapPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was deleted by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `AppLimitCap` that was deleted by this mutation.""" + appLimitCap: AppLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge } -"""All input for the `deleteOrgLimitDefault` mutation.""" -input DeleteOrgLimitDefaultInput { +"""All input for the `deleteAppLimitCap` mutation.""" +input DeleteAppLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61160,31 +62076,31 @@ input DeleteOrgLimitDefaultInput { id: UUID! } -"""The output of our delete `AppLimitCreditCodeItem` mutation.""" -type DeleteAppLimitCreditCodeItemPayload { +"""The output of our delete `AppLimitDefault` mutation.""" +type DeleteAppLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `AppLimitDefault` that was deleted by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge } -"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" -input DeleteAppLimitCreditCodeItemInput { +"""All input for the `deleteAppLimitDefault` mutation.""" +input DeleteAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61193,31 +62109,64 @@ input DeleteAppLimitCreditCodeItemInput { id: UUID! } -"""The output of our delete `AppLimitWarning` mutation.""" -type DeleteAppLimitWarningPayload { +"""The output of our delete `OrgLimitCap` mutation.""" +type DeleteOrgLimitCapPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitWarning` that was deleted by this mutation.""" - appLimitWarning: AppLimitWarning + """The `OrgLimitCap` that was deleted by this mutation.""" + orgLimitCap: OrgLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge } -"""All input for the `deleteAppLimitWarning` mutation.""" -input DeleteAppLimitWarningInput { +"""All input for the `deleteOrgLimitCap` mutation.""" +input DeleteOrgLimitCapInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimitDefault` mutation.""" +type DeleteOrgLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitDefault` that was deleted by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the `deleteOrgLimitDefault` mutation.""" +input DeleteOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61292,6 +62241,39 @@ input DeleteCryptoAddressesModuleInput { id: UUID! } +"""The output of our delete `OrgChartEdge` mutation.""" +type DeleteOrgChartEdgePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgChartEdge` that was deleted by this mutation.""" + orgChartEdge: OrgChartEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge +} + +"""All input for the `deleteOrgChartEdge` mutation.""" +input DeleteOrgChartEdgeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `CryptoAddress` mutation.""" type DeleteCryptoAddressPayload { """ @@ -61391,39 +62373,6 @@ input DeleteAppLimitCreditInput { id: UUID! } -"""The output of our delete `OrgLimitWarning` mutation.""" -type DeleteOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was deleted by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge -} - -"""All input for the `deleteOrgLimitWarning` mutation.""" -input DeleteOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `OrgLimitCredit` mutation.""" type DeleteOrgLimitCreditPayload { """ @@ -61488,41 +62437,138 @@ input DeleteObjectInput { """ clientMutationId: String id: UUID! - databaseId: UUID! + scopeId: UUID! } -"""The output of our delete `SiteMetadatum` mutation.""" -type DeleteSiteMetadatumPayload { +"""The output of our delete `AppPermission` mutation.""" +type DeleteAppPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SiteMetadatum` that was deleted by this mutation.""" - siteMetadatum: SiteMetadatum + """The `AppPermission` that was deleted by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `deleteSiteMetadatum` mutation.""" -input DeleteSiteMetadatumInput { +"""All input for the `deleteAppPermission` mutation.""" +input DeleteAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! +} - """Unique identifier for this metadata record""" +"""The output of our delete `OrgPermission` mutation.""" +type DeleteOrgPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermission` that was deleted by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `deleteOrgPermission` mutation.""" +input DeleteOrgPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitCreditCode` mutation.""" +type DeleteAppLimitCreditCodePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditCode` that was deleted by this mutation.""" + appLimitCreditCode: AppLimitCreditCode + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge +} + +"""All input for the `deleteAppLimitCreditCode` mutation.""" +input DeleteAppLimitCreditCodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitWarning` mutation.""" +type DeleteAppLimitWarningPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitWarning` that was deleted by this mutation.""" + appLimitWarning: AppLimitWarning + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge +} + +"""All input for the `deleteAppLimitWarning` mutation.""" +input DeleteAppLimitWarningInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String id: UUID! } @@ -61626,8 +62672,43 @@ input DeleteCommitInput { """The primary unique identifier for the commit.""" id: UUID! - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! +} + +"""The output of our delete `SiteMetadatum` mutation.""" +type DeleteSiteMetadatumPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteMetadatum` that was deleted by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the `deleteSiteMetadatum` mutation.""" +input DeleteSiteMetadatumInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this metadata record""" + id: UUID! } """The output of our delete `PubkeySetting` mutation.""" @@ -61830,31 +62911,31 @@ input DeleteAppClaimedInviteInput { id: UUID! } -"""The output of our delete `AppMembershipDefault` mutation.""" -type DeleteAppMembershipDefaultPayload { +"""The output of our delete `OrgLimitWarning` mutation.""" +type DeleteOrgLimitWarningPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembershipDefault` that was deleted by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `OrgLimitWarning` that was deleted by this mutation.""" + orgLimitWarning: OrgLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge } -"""All input for the `deleteAppMembershipDefault` mutation.""" -input DeleteAppMembershipDefaultInput { +"""All input for the `deleteOrgLimitWarning` mutation.""" +input DeleteOrgLimitWarningInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61863,70 +62944,41 @@ input DeleteAppMembershipDefaultInput { id: UUID! } -"""The output of our delete `OrgMembershipDefault` mutation.""" -type DeleteOrgMembershipDefaultPayload { +"""The output of our delete `MembershipType` mutation.""" +type DeleteMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipDefault` that was deleted by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `MembershipType` that was deleted by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `deleteOrgMembershipDefault` mutation.""" -input DeleteOrgMembershipDefaultInput { +"""All input for the `deleteMembershipType` mutation.""" +input DeleteMembershipTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! -} - -"""The output of our delete `AuditLog` mutation.""" -type DeleteAuditLogPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AuditLog` that was deleted by this mutation.""" - auditLog: AuditLog """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge -} - -"""All input for the `deleteAuditLog` mutation.""" -input DeleteAuditLogInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - clientMutationId: String - id: UUID! + id: Int! } """The output of our delete `Domain` mutation.""" @@ -62065,39 +63117,6 @@ input DeleteAgentThreadInput { id: UUID! } -"""The output of our delete `Email` mutation.""" -type DeleteEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Email` that was deleted by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the `deleteEmail` mutation.""" -input DeleteEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `AppGrant` mutation.""" type DeleteAppGrantPayload { """ @@ -62164,72 +63183,6 @@ input DeleteOrgClaimedInviteInput { id: UUID! } -"""The output of our delete `OrgChartEdge` mutation.""" -type DeleteOrgChartEdgePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdge` that was deleted by this mutation.""" - orgChartEdge: OrgChartEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge -} - -"""All input for the `deleteOrgChartEdge` mutation.""" -input DeleteOrgChartEdgeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Partition` mutation.""" -type DeletePartitionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Partition` that was deleted by this mutation.""" - partition: Partition - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Partition`. May be used by Relay 1.""" - partitionEdge( - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PartitionEdge -} - -"""All input for the `deletePartition` mutation.""" -input DeletePartitionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `BlueprintConstruction` mutation.""" type DeleteBlueprintConstructionPayload { """ @@ -62331,6 +63284,39 @@ input DeleteSessionsModuleInput { id: UUID! } +"""The output of our delete `OrgMemberProfile` mutation.""" +type DeleteOrgMemberProfilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMemberProfile` that was deleted by this mutation.""" + orgMemberProfile: OrgMemberProfile + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge +} + +"""All input for the `deleteOrgMemberProfile` mutation.""" +input DeleteOrgMemberProfileInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `OrgGrant` mutation.""" type DeleteOrgGrantPayload { """ @@ -62364,6 +63350,72 @@ input DeleteOrgGrantInput { id: UUID! } +"""The output of our delete `AuditLog` mutation.""" +type DeleteAuditLogPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AuditLog` that was deleted by this mutation.""" + auditLog: AuditLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} + +"""All input for the `deleteAuditLog` mutation.""" +input DeleteAuditLogInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Partition` mutation.""" +type DeletePartitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Partition` that was deleted by this mutation.""" + partition: Partition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Partition`. May be used by Relay 1.""" + partitionEdge( + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PartitionEdge +} + +"""All input for the `deletePartition` mutation.""" +input DeletePartitionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `Blueprint` mutation.""" type DeleteBlueprintPayload { """ @@ -62432,6 +63484,39 @@ input DeleteDenormalizedTableFieldInput { id: UUID! } +"""The output of our delete `InferenceLogModule` mutation.""" +type DeleteInferenceLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InferenceLogModule` that was deleted by this mutation.""" + inferenceLogModule: InferenceLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge +} + +"""All input for the `deleteInferenceLogModule` mutation.""" +input DeleteInferenceLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `RateLimitMetersModule` mutation.""" type DeleteRateLimitMetersModulePayload { """ @@ -62531,31 +63616,31 @@ input DeletePlansModuleInput { id: UUID! } -"""The output of our delete `AppLimit` mutation.""" -type DeleteAppLimitPayload { +"""The output of our delete `Email` mutation.""" +type DeleteEmailPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimit` that was deleted by this mutation.""" - appLimit: AppLimit + """The `Email` that was deleted by this mutation.""" + email: Email """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge } -"""All input for the `deleteAppLimit` mutation.""" -input DeleteAppLimitInput { +"""All input for the `deleteEmail` mutation.""" +input DeleteEmailInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -62564,36 +63649,75 @@ input DeleteAppLimitInput { id: UUID! } -"""The output of our delete `OrgMemberProfile` mutation.""" -type DeleteOrgMemberProfilePayload { +"""The output of our delete `AppLimitEvent` mutation.""" +type DeleteAppLimitEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMemberProfile` that was deleted by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `AppLimitEvent` that was deleted by this mutation.""" + appLimitEvent: AppLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge } -"""All input for the `deleteOrgMemberProfile` mutation.""" -input DeleteOrgMemberProfileInput { +"""All input for the `deleteAppLimitEvent` mutation.""" +input DeleteAppLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! +} + +"""The output of our delete `OrgLimitEvent` mutation.""" +type DeleteOrgLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitEvent` that was deleted by this mutation.""" + orgLimitEvent: OrgLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge +} + +"""All input for the `deleteOrgLimitEvent` mutation.""" +input DeleteOrgLimitEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! } @@ -62665,39 +63789,6 @@ input DeleteDatabaseSettingInput { id: UUID! } -"""The output of our delete `BillingModule` mutation.""" -type DeleteBillingModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `BillingModule` that was deleted by this mutation.""" - billingModule: BillingModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge -} - -"""All input for the `deleteBillingModule` mutation.""" -input DeleteBillingModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `CryptoAuthModule` mutation.""" type DeleteCryptoAuthModulePayload { """ @@ -62797,99 +63888,99 @@ input DeleteInvitesModuleInput { id: UUID! } -"""The output of our delete `SecureTableProvision` mutation.""" -type DeleteSecureTableProvisionPayload { +"""The output of our delete `OrgMembershipSetting` mutation.""" +type DeleteOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SecureTableProvision` that was deleted by this mutation.""" - secureTableProvision: SecureTableProvision + """The `OrgMembershipSetting` that was deleted by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SecureTableProvision`. May be used by Relay 1.""" - secureTableProvisionEdge( - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecureTableProvisionEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the `deleteSecureTableProvision` mutation.""" -input DeleteSecureTableProvisionInput { +"""All input for the `deleteOrgMembershipSetting` mutation.""" +input DeleteOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Unique identifier for this provision row.""" id: UUID! } -"""The output of our delete `OrgLimitAggregate` mutation.""" -type DeleteOrgLimitAggregatePayload { +"""The output of our delete `SecureTableProvision` mutation.""" +type DeleteSecureTableProvisionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitAggregate` that was deleted by this mutation.""" - orgLimitAggregate: OrgLimitAggregate + """The `SecureTableProvision` that was deleted by this mutation.""" + secureTableProvision: SecureTableProvision """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge + """An edge for our `SecureTableProvision`. May be used by Relay 1.""" + secureTableProvisionEdge( + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecureTableProvisionEdge } -"""All input for the `deleteOrgLimitAggregate` mutation.""" -input DeleteOrgLimitAggregateInput { +"""All input for the `deleteSecureTableProvision` mutation.""" +input DeleteSecureTableProvisionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique identifier for this provision row.""" id: UUID! } -"""The output of our delete `OrgLimit` mutation.""" -type DeleteOrgLimitPayload { +"""The output of our delete `AppLimit` mutation.""" +type DeleteAppLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was deleted by this mutation.""" - orgLimit: OrgLimit + """The `AppLimit` that was deleted by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the `deleteOrgLimit` mutation.""" -input DeleteOrgLimitInput { +"""All input for the `deleteAppLimit` mutation.""" +input DeleteAppLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -62966,31 +64057,64 @@ input DeleteEnumInput { id: UUID! } -"""The output of our delete `User` mutation.""" -type DeleteUserPayload { +"""The output of our delete `OrgLimitAggregate` mutation.""" +type DeleteOrgLimitAggregatePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `User` that was deleted by this mutation.""" - user: User + """The `OrgLimitAggregate` that was deleted by this mutation.""" + orgLimitAggregate: OrgLimitAggregate """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `User`. May be used by Relay 1.""" - userEdge( - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserEdge + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge } -"""All input for the `deleteUser` mutation.""" -input DeleteUserInput { +"""All input for the `deleteOrgLimitAggregate` mutation.""" +input DeleteOrgLimitAggregateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimit` mutation.""" +type DeleteOrgLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimit` that was deleted by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the `deleteOrgLimit` mutation.""" +input DeleteOrgLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -63032,6 +64156,39 @@ input DeleteViewInput { id: UUID! } +"""The output of our delete `BillingModule` mutation.""" +type DeleteBillingModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `BillingModule` that was deleted by this mutation.""" + billingModule: BillingModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge +} + +"""All input for the `deleteBillingModule` mutation.""" +input DeleteBillingModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `WebauthnAuthModule` mutation.""" type DeleteWebauthnAuthModulePayload { """ @@ -63065,31 +64222,31 @@ input DeleteWebauthnAuthModuleInput { id: UUID! } -"""The output of our delete `AppInvite` mutation.""" -type DeleteAppInvitePayload { +"""The output of our delete `AppMembership` mutation.""" +type DeleteAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppInvite` that was deleted by this mutation.""" - appInvite: AppInvite + """The `AppMembership` that was deleted by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `deleteAppInvite` mutation.""" -input DeleteAppInviteInput { +"""All input for the `deleteAppMembership` mutation.""" +input DeleteAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -63098,31 +64255,31 @@ input DeleteAppInviteInput { id: UUID! } -"""The output of our delete `OrgMembershipSetting` mutation.""" -type DeleteOrgMembershipSettingPayload { +"""The output of our delete `User` mutation.""" +type DeleteUserPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was deleted by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `User` that was deleted by this mutation.""" + user: User """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge } -"""All input for the `deleteOrgMembershipSetting` mutation.""" -input DeleteOrgMembershipSettingInput { +"""All input for the `deleteUser` mutation.""" +input DeleteUserInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -63533,31 +64690,31 @@ input DeleteWebauthnSettingInput { id: UUID! } -"""The output of our delete `AppMembership` mutation.""" -type DeleteAppMembershipPayload { +"""The output of our delete `OrgMembership` mutation.""" +type DeleteOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembership` that was deleted by this mutation.""" - appMembership: AppMembership + """The `OrgMembership` that was deleted by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the `deleteAppMembership` mutation.""" -input DeleteAppMembershipInput { +"""All input for the `deleteOrgMembership` mutation.""" +input DeleteOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -63632,31 +64789,31 @@ input DeleteIndexInput { id: UUID! } -"""The output of our delete `OrgInvite` mutation.""" -type DeleteOrgInvitePayload { +"""The output of our delete `AppInvite` mutation.""" +type DeleteAppInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgInvite` that was deleted by this mutation.""" - orgInvite: OrgInvite + """The `AppInvite` that was deleted by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `deleteOrgInvite` mutation.""" -input DeleteOrgInviteInput { +"""All input for the `deleteAppInvite` mutation.""" +input DeleteAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -63799,39 +64956,6 @@ input DeleteProfilesModuleInput { id: UUID! } -"""The output of our delete `OrgMembership` mutation.""" -type DeleteOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembership` that was deleted by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the `deleteOrgMembership` mutation.""" -input DeleteOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `EmbeddingChunk` mutation.""" type DeleteEmbeddingChunkPayload { """ @@ -63898,6 +65022,39 @@ input DeleteForeignKeyConstraintInput { id: UUID! } +"""The output of our delete `OrgInvite` mutation.""" +type DeleteOrgInvitePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgInvite` that was deleted by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the `deleteOrgInvite` mutation.""" +input DeleteOrgInviteInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `RelationProvision` mutation.""" type DeleteRelationProvisionPayload { """ @@ -64100,31 +65257,31 @@ input DeleteLimitsModuleInput { id: UUID! } -"""The output of our delete `StorageModule` mutation.""" -type DeleteStorageModulePayload { +"""The output of our delete `MembershipsModule` mutation.""" +type DeleteMembershipsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `StorageModule` that was deleted by this mutation.""" - storageModule: StorageModule + """The `MembershipsModule` that was deleted by this mutation.""" + membershipsModule: MembershipsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge + """An edge for our `MembershipsModule`. May be used by Relay 1.""" + membershipsModuleEdge( + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipsModuleEdge } -"""All input for the `deleteStorageModule` mutation.""" -input DeleteStorageModuleInput { +"""All input for the `deleteMembershipsModule` mutation.""" +input DeleteMembershipsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -64133,31 +65290,31 @@ input DeleteStorageModuleInput { id: UUID! } -"""The output of our delete `MembershipsModule` mutation.""" -type DeleteMembershipsModulePayload { +"""The output of our delete `StorageModule` mutation.""" +type DeleteStorageModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MembershipsModule` that was deleted by this mutation.""" - membershipsModule: MembershipsModule + """The `StorageModule` that was deleted by this mutation.""" + storageModule: StorageModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipsModule`. May be used by Relay 1.""" - membershipsModuleEdge( - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipsModuleEdge + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge } -"""All input for the `deleteMembershipsModule` mutation.""" -input DeleteMembershipsModuleInput { +"""All input for the `deleteStorageModule` mutation.""" +input DeleteStorageModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index 06cda7b6e2..803a02c3d0 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -30,42 +30,42 @@ const db = createClient({ | `appLimitCredit` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `orgOwnerGrant` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | +| `orgLimitWarning` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | | `usageSnapshot` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `orgLimitAggregate` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | -| `orgInvite` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | +| `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations @@ -355,37 +355,72 @@ const updated = await db.appPermissionDefault.update({ where: { id: '' }, const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.appAdminGrant` -CRUD operations for AppLimitCreditCode records. +CRUD operations for AppAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// List all appAdminGrant records +const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appOwnerGrant records +const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermissionDefault` @@ -419,9 +454,44 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appAdminGrant` +### `db.appMembershipDefault` -CRUD operations for AppAdminGrant records. +CRUD operations for AppMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | + +**Operations:** + +```typescript +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Get one by id +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); + +// Create +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgAdminGrant` + +CRUD operations for OrgAdminGrant records. **Fields:** @@ -430,6 +500,7 @@ CRUD operations for AppAdminGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -437,25 +508,60 @@ CRUD operations for AppAdminGrant records. **Operations:** ```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appOwnerGrant` +### `db.orgMembershipDefault` -CRUD operations for AppOwnerGrant records. +CRUD operations for OrgMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); + +// Create +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgOwnerGrant` + +CRUD operations for OrgOwnerGrant records. **Fields:** @@ -464,6 +570,7 @@ CRUD operations for AppOwnerGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -471,20 +578,20 @@ CRUD operations for AppOwnerGrant records. **Operations:** ```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgOwnerGrant records +const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -613,151 +720,83 @@ const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { n const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgChartEdge` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdge records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.appLimitDefault` -CRUD operations for OrgOwnerGrant records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.orgLimitDefault` -CRUD operations for MembershipType records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | +| `id` | UUID | No | | `name` | String | Yes | | `max` | BigInt | Yes | | `softMax` | BigInt | Yes | @@ -816,42 +855,42 @@ const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitWarning` +### `db.appLimitCreditCode` -CRUD operations for AppLimitWarning records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitWarning` +### `db.appLimitWarning` -CRUD operations for OrgLimitWarning records. +CRUD operations for AppLimitWarning records. **Fields:** @@ -862,25 +901,24 @@ CRUD operations for OrgLimitWarning records. | `warningType` | String | Yes | | `thresholdValue` | BigInt | Yes | | `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -954,6 +992,74 @@ const updated = await db.appClaimedInvite.update({ where: { id: '' }, data const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` +### `db.orgLimitWarning` + +CRUD operations for OrgLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgLimitWarning records +const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Create +const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipType` + +CRUD operations for MembershipType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | + +**Operations:** + +```typescript +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Get one by id +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Create +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +``` + ### `db.appGrant` CRUD operations for AppGrant records. @@ -989,109 +1095,109 @@ const updated = await db.appGrant.update({ where: { id: '' }, data: { perm const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.orgClaimedInvite` -CRUD operations for AppMembershipDefault records. +CRUD operations for OrgClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all orgClaimedInvite records +const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.orgGrant` -CRUD operations for OrgMembershipDefault records. +CRUD operations for OrgGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all orgGrant records +const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgClaimedInvite` +### `db.usageSnapshot` -CRUD operations for OrgClaimedInvite records. +CRUD operations for UsageSnapshot records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `databaseId` | UUID | Yes | +| `metricName` | String | Yes | +| `metricValue` | BigInt | Yes | +| `dimensions` | JSON | Yes | +| `capturedAt` | Datetime | Yes | | `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgClaimedInvite records -const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +// List all usageSnapshot records +const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); // Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); // Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitEvent` @@ -1102,6 +1208,8 @@ CRUD operations for AppLimitEvent records. | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | @@ -1116,10 +1224,10 @@ CRUD operations for AppLimitEvent records. ```typescript // List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); @@ -1139,6 +1247,8 @@ CRUD operations for OrgLimitEvent records. | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | @@ -1153,10 +1263,10 @@ CRUD operations for OrgLimitEvent records. ```typescript // List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); @@ -1168,45 +1278,51 @@ const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgGrant` +### `db.orgMembershipSetting` -CRUD operations for OrgGrant records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all orgGrant records -const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.orgChartEdge` +### `db.orgMemberProfile` -CRUD operations for OrgChartEdge records. +CRUD operations for OrgMemberProfile records. **Fields:** @@ -1215,63 +1331,76 @@ CRUD operations for OrgChartEdge records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `membershipId` | UUID | Yes | | `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | +| `actorId` | UUID | Yes | +| `displayName` | String | Yes | +| `email` | String | Yes | +| `title` | String | Yes | +| `bio` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); +// List all orgMemberProfile records +const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` -### `db.usageSnapshot` +### `db.appMembership` -CRUD operations for UsageSnapshot records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `databaseId` | UUID | Yes | -| `metricName` | String | Yes | -| `metricValue` | BigInt | Yes | -| `dimensions` | JSON | Yes | -| `capturedAt` | Datetime | Yes | | `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all usageSnapshot records -const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); +// List all appMembership records +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -1313,50 +1442,9 @@ const updated = await db.appLimit.update({ where: { id: '' }, data: { name const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.appInvite` - -CRUD operations for AppInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipSetting` +### `db.orgMembership` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgMembership records. **Fields:** @@ -1367,33 +1455,37 @@ CRUD operations for OrgMembershipSetting records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all orgMembership records +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitAggregate` @@ -1476,87 +1568,45 @@ const updated = await db.orgLimit.update({ where: { id: '' }, data: { name const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMemberProfile` - -CRUD operations for OrgMemberProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembership` +### `db.appInvite` -CRUD operations for AppMembership records. +CRUD operations for AppInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `profileId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +// List all appInvite records +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` @@ -1603,52 +1653,6 @@ const updated = await db.orgInvite.update({ where: { id: '' }, data: { ema const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.appPermissionsGetPaddedMask` diff --git a/sdk/constructive-sdk/src/admin/orm/index.ts b/sdk/constructive-sdk/src/admin/orm/index.ts index ceecedd2a4..516ca45219 100644 --- a/sdk/constructive-sdk/src/admin/orm/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/index.ts @@ -14,42 +14,42 @@ import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; import { AppLimitCreditModel } from './models/appLimitCredit'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; import { AppLimitCapModel } from './models/appLimitCap'; import { OrgLimitCapModel } from './models/orgLimitCap'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { MembershipTypeModel } from './models/membershipType'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitCreditModel } from './models/orgLimitCredit'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; +import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { MembershipTypeModel } from './models/membershipType'; import { AppGrantModel } from './models/appGrant'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgGrantModel } from './models/orgGrant'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppLimitModel } from './models/appLimit'; -import { AppInviteModel } from './models/appInvite'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; -import { OrgLimitModel } from './models/orgLimit'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; import { AppMembershipModel } from './models/appMembership'; -import { OrgInviteModel } from './models/orgInvite'; +import { AppLimitModel } from './models/appLimit'; import { OrgMembershipModel } from './models/orgMembership'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; +import { OrgLimitModel } from './models/orgLimit'; +import { AppInviteModel } from './models/appInvite'; +import { OrgInviteModel } from './models/orgInvite'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -94,42 +94,42 @@ export function createClient(config: OrmClientConfig) { appLimitCredit: new AppLimitCreditModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgAdminGrant: new OrgAdminGrantModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + orgOwnerGrant: new OrgOwnerGrantModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), appLimitCap: new AppLimitCapModel(client), orgLimitCap: new OrgLimitCapModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - membershipType: new MembershipTypeModel(client), + orgChartEdge: new OrgChartEdgeModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitCredit: new OrgLimitCreditModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), appLimitWarning: new AppLimitWarningModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), + orgLimitWarning: new OrgLimitWarningModel(client), + membershipType: new MembershipTypeModel(client), appGrant: new AppGrantModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), orgGrant: new OrgGrantModel(client), - orgChartEdge: new OrgChartEdgeModel(client), usageSnapshot: new UsageSnapshotModel(client), - appLimit: new AppLimitModel(client), - appInvite: new AppInviteModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), - orgLimitAggregate: new OrgLimitAggregateModel(client), - orgLimit: new OrgLimitModel(client), orgMemberProfile: new OrgMemberProfileModel(client), appMembership: new AppMembershipModel(client), - orgInvite: new OrgInviteModel(client), + appLimit: new AppLimitModel(client), orgMembership: new OrgMembershipModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), + orgLimit: new OrgLimitModel(client), + appInvite: new AppInviteModel(client), + orgInvite: new OrgInviteModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index 0e9e56aec5..1c919079d0 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -316,17 +316,27 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { +/** Records of admin role grants and revocations between members */ +export interface AppAdminGrant { id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Records of ownership transfers and grants between members */ +export interface AppOwnerGrant { + id: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { @@ -336,24 +346,52 @@ export interface OrgPermissionDefault { /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} /** Records of admin role grants and revocations between members */ -export interface AppAdminGrant { +export interface OrgAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} /** Records of ownership transfers and grants between members */ -export interface AppOwnerGrant { +export interface OrgOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -394,46 +432,21 @@ export interface OrgLimitCap { /** Override cap value for this entity */ max?: string | null; } -/** Records of admin role grants and revocations between members */ -export interface OrgAdminGrant { +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - /** The entity (org or group) this admin grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface OrgOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - /** The entity (org or group) this ownership grant applies to */ + /** Organization this hierarchy edge belongs to */ entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; } /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { @@ -471,20 +484,20 @@ export interface OrgLimitCredit { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string | null; } -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; } /** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { +export interface AppLimitWarning { id: string; /** Limit name this warning applies to (must match a default_limits entry) */ name?: string | null; @@ -494,8 +507,6 @@ export interface OrgLimitWarning { thresholdValue?: string | null; /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -529,6 +540,35 @@ export interface AppClaimedInvite { createdAt?: string | null; updatedAt?: string | null; } +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface OrgLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; +} /** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; @@ -542,30 +582,6 @@ export interface AppGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; @@ -579,8 +595,40 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ +export interface OrgGrant { + id: string; + /** Bitmask of permissions being granted or revoked */ + permissions?: string | null; + /** True to grant the permissions, false to revoke them */ + isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ + actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ +export interface UsageSnapshot { + /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ + databaseId?: string | null; + /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ + metricName?: string | null; + /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ + metricValue?: string | null; + /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ + dimensions?: Record | null; + /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ + capturedAt?: string | null; + id: string; +} /** Append-only log of limit events for historical reporting and audit */ export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -602,6 +650,9 @@ export interface AppLimitEvent { } /** Append-only log of limit events for historical reporting and audit */ export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -621,50 +672,82 @@ export interface OrgLimitEvent { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ -export interface OrgGrant { +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - /** The entity (org or group) this permission grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; } -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { +/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ +export interface OrgMemberProfile { id: string; createdAt?: string | null; updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ + /** References the membership this profile belongs to (1:1) */ + membershipId?: string | null; + /** References the entity this profile belongs to (used for RLS lookups) */ entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; + /** References the user who owns this profile (for self-edit RLS) */ + actorId?: string | null; + /** Display name shown to other entity members */ + displayName?: string | null; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string | null; + /** Job title or role description visible to other entity members */ + title?: string | null; + /** Short biography visible to other entity members */ + bio?: string | null; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage | null; } -/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ -export interface UsageSnapshot { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string | null; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string | null; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string | null; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: Record | null; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string | null; +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + profileId?: string | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { @@ -690,57 +773,38 @@ export interface AppLimit { /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; } -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface OrgMembership { id: string; createdAt?: string | null; updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; - /** References the entity these settings apply to */ + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean | null; + profileId?: string | null; } /** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ export interface OrgLimitAggregate { @@ -793,56 +857,31 @@ export interface OrgLimit { periodCredits?: string | null; entityId?: string | null; } -/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ -export interface OrgMemberProfile { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string | null; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string | null; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string | null; - /** Display name shown to other entity members */ - displayName?: string | null; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string | null; - /** Job title or role description visible to other entity members */ - title?: string | null; - /** Short biography visible to other entity members */ - bio?: string | null; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { id: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ + data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { @@ -875,39 +914,6 @@ export interface OrgInvite { updatedAt?: string | null; entityId?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface OrgMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - /** References the entity (org or group) this membership belongs to */ - entityId?: string | null; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean | null; - profileId?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -937,20 +943,18 @@ export interface AppLimitCreditRelations { } export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} +export interface OrgPermissionDefaultRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgAdminGrantRelations {} +export interface OrgMembershipDefaultRelations {} +export interface OrgOwnerGrantRelations {} export interface AppLimitCapsDefaultRelations {} export interface OrgLimitCapsDefaultRelations {} export interface AppLimitCapRelations {} export interface OrgLimitCapRelations {} -export interface OrgAdminGrantRelations {} -export interface OrgOwnerGrantRelations {} -export interface MembershipTypeRelations {} +export interface OrgChartEdgeRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; @@ -961,32 +965,34 @@ export interface OrgLimitDefaultRelations { export interface OrgLimitCreditRelations { defaultLimit?: OrgLimitDefault | null; } +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} export interface AppLimitWarningRelations {} -export interface OrgLimitWarningRelations {} export interface OrgChartEdgeGrantRelations {} export interface AppClaimedInviteRelations {} -export interface AppGrantRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations {} +export interface OrgLimitWarningRelations {} +export interface MembershipTypeRelations {} +export interface AppGrantRelations {} export interface OrgClaimedInviteRelations {} -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface OrgGrantRelations {} -export interface OrgChartEdgeRelations {} export interface UsageSnapshotRelations {} -export interface AppLimitRelations {} -export interface AppInviteRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface OrgMembershipSettingRelations {} -export interface OrgLimitAggregateRelations {} -export interface OrgLimitRelations {} export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } export interface AppMembershipRelations {} -export interface OrgInviteRelations {} +export interface AppLimitRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } +export interface OrgLimitAggregateRelations {} +export interface OrgLimitRelations {} +export interface AppInviteRelations {} +export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & OrgGetManagersRecordRelations; @@ -1002,46 +1008,46 @@ export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelatio export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; +export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & + OrgPermissionDefaultRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; +export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; +export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; -export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; +export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { userId?: boolean; @@ -1107,42 +1113,59 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { +export type AppAdminGrantSelect = { id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type AppOwnerGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type OrgPermissionDefaultSelect = { id?: boolean; permissions?: boolean; entityId?: boolean; }; -export type AppAdminGrantSelect = { +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; }; -export type AppOwnerGrantSelect = { +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; +}; +export type OrgOwnerGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1169,31 +1192,15 @@ export type OrgLimitCapSelect = { entityId?: boolean; max?: boolean; }; -export type OrgAdminGrantSelect = { +export type OrgChartEdgeSelect = { id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; -}; -export type OrgOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; }; export type AppLimitDefaultSelect = { id?: boolean; @@ -1237,20 +1244,31 @@ export type OrgLimitCreditSelect = { select: OrgLimitDefaultSelect; }; }; -export type AppLimitWarningSelect = { +export type AppLimitCreditCodeSelect = { id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; }; -export type OrgLimitWarningSelect = { +export type AppLimitWarningSelect = { id?: boolean; name?: boolean; warningType?: boolean; thresholdValue?: boolean; taskIdentifier?: boolean; - entityId?: boolean; }; export type OrgChartEdgeGrantSelect = { id?: boolean; @@ -1271,6 +1289,22 @@ export type AppClaimedInviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; + entityId?: boolean; +}; +export type MembershipTypeSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; +}; export type AppGrantSelect = { id?: boolean; permissions?: boolean; @@ -1280,34 +1314,36 @@ export type AppGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppMembershipDefaultSelect = { +export type OrgClaimedInviteSelect = { id?: boolean; + data?: boolean; + senderId?: boolean; + receiverId?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; + entityId?: boolean; }; -export type OrgMembershipDefaultSelect = { +export type OrgGrantSelect = { id?: boolean; + permissions?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; }; -export type OrgClaimedInviteSelect = { +export type UsageSnapshotSelect = { + databaseId?: boolean; + metricName?: boolean; + metricValue?: boolean; + dimensions?: boolean; + capturedAt?: boolean; id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; }; export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1319,6 +1355,8 @@ export type AppLimitEventSelect = { reason?: boolean; }; export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1329,39 +1367,61 @@ export type OrgLimitEventSelect = { maxAtEvent?: boolean; reason?: boolean; }; -export type OrgGrantSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; }; -export type OrgChartEdgeSelect = { +export type OrgMemberProfileSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; + membershipId?: boolean; entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; -}; -export type UsageSnapshotSelect = { - databaseId?: boolean; - metricName?: boolean; - metricValue?: boolean; - dimensions?: boolean; - capturedAt?: boolean; - id?: boolean; -}; -export type AppLimitSelect = { - id?: boolean; - name?: boolean; actorId?: boolean; - num?: boolean; + displayName?: boolean; + email?: boolean; + title?: boolean; + bio?: boolean; + profilePicture?: boolean; + membership?: { + select: OrgMembershipSelect; + }; +}; +export type AppMembershipSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + profileId?: boolean; +}; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; max?: boolean; softMax?: boolean; windowStart?: boolean; @@ -1370,36 +1430,28 @@ export type AppLimitSelect = { purchasedCredits?: boolean; periodCredits?: boolean; }; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type OrgMembershipSettingSelect = { +export type OrgMembershipSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; + isReadOnly?: boolean; + profileId?: boolean; + orgMemberProfileByMembershipId?: { + select: OrgMemberProfileSelect; + }; }; export type OrgLimitAggregateSelect = { id?: boolean; @@ -1429,39 +1481,20 @@ export type OrgLimitSelect = { periodCredits?: boolean; entityId?: boolean; }; -export type OrgMemberProfileSelect = { +export type AppInviteSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - membershipId?: boolean; - entityId?: boolean; - actorId?: boolean; - displayName?: boolean; email?: boolean; - title?: boolean; - bio?: boolean; - profilePicture?: boolean; - membership?: { - select: OrgMembershipSelect; - }; -}; -export type AppMembershipSelect = { - id?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -1481,29 +1514,6 @@ export type OrgInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; -export type OrgMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - entityId?: boolean; - isReadOnly?: boolean; - profileId?: boolean; - orgMemberProfileByMembershipId?: { - select: OrgMemberProfileSelect; - }; -}; // ============ Table Filter Types ============ export interface OrgGetManagersRecordFilter { userId?: UUIDFilter; @@ -1643,31 +1653,45 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { +export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; + and?: AppAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; + or?: AppAdminGrantFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; + not?: AppAdminGrantFilter; +} +export interface AppOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppOwnerGrantFilter[]; + /** Negates the expression. */ + not?: AppOwnerGrantFilter; } export interface OrgPermissionDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1683,13 +1707,37 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } -export interface AppAdminGrantFilter { +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1697,19 +1745,43 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; + and?: OrgAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; + or?: OrgAdminGrantFilter[]; /** Negates the expression. */ - not?: AppAdminGrantFilter; + not?: OrgAdminGrantFilter; } -export interface AppOwnerGrantFilter { +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} +export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1717,11 +1789,11 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; + and?: OrgOwnerGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; + or?: OrgOwnerGrantFilter[]; /** Negates the expression. */ - not?: AppOwnerGrantFilter; + not?: OrgOwnerGrantFilter; } export interface AppLimitCapsDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1783,69 +1855,29 @@ export interface OrgLimitCapFilter { /** Negates the expression. */ not?: OrgLimitCapFilter; } -export interface OrgAdminGrantFilter { +export interface OrgChartEdgeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; -} -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: OrgChartEdgeFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: OrgChartEdgeFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: OrgChartEdgeFilter; } export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1915,25 +1947,33 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } -export interface AppLimitWarningFilter { +export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; + and?: AppLimitCreditCodeFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; + or?: AppLimitCreditCodeFilter[]; /** Negates the expression. */ - not?: AppLimitWarningFilter; + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -export interface OrgLimitWarningFilter { +export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1944,14 +1984,12 @@ export interface OrgLimitWarningFilter { thresholdValue?: BigIntFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; + and?: AppLimitWarningFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; + or?: AppLimitWarningFilter[]; /** Negates the expression. */ - not?: OrgLimitWarningFilter; + not?: AppLimitWarningFilter; } export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ @@ -1997,6 +2035,46 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} export interface AppGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2019,71 +2097,75 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } -export interface AppMembershipDefaultFilter { +export interface OrgClaimedInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; + and?: OrgClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; + or?: OrgClaimedInviteFilter[]; /** Negates the expression. */ - not?: AppMembershipDefaultFilter; + not?: OrgClaimedInviteFilter; } -export interface OrgMembershipDefaultFilter { +export interface OrgGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: OrgGrantFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: OrgGrantFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; + not?: OrgGrantFilter; } -export interface OrgClaimedInviteFilter { +export interface UsageSnapshotFilter { + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `metricName` field. */ + metricName?: StringFilter; + /** Filter by the object’s `metricValue` field. */ + metricValue?: BigIntFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: JSONFilter; + /** Filter by the object’s `capturedAt` field. */ + capturedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; + and?: UsageSnapshotFilter[]; /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; + or?: UsageSnapshotFilter[]; /** Negates the expression. */ - not?: OrgClaimedInviteFilter; + not?: UsageSnapshotFilter; } export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2110,6 +2192,10 @@ export interface AppLimitEventFilter { not?: AppLimitEventFilter; } export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2135,147 +2221,17 @@ export interface OrgLimitEventFilter { /** Negates the expression. */ not?: OrgLimitEventFilter; } -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; -} -export interface OrgChartEdgeFilter { +export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; - /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; - /** Negates the expression. */ - not?: UsageSnapshotFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; -} -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; -} -export interface OrgMembershipSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Filter by the object’s `deleteMemberCascadeChildren` field. */ @@ -2301,70 +2257,6 @@ export interface OrgMembershipSettingFilter { /** Negates the expression. */ not?: OrgMembershipSettingFilter; } -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; -} -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} export interface OrgMemberProfileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2437,43 +2329,35 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } -export interface OrgInviteFilter { +export interface AppLimitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; + and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; + or?: AppLimitFilter[]; /** Negates the expression. */ - not?: OrgInviteFilter; + not?: AppLimitFilter; } export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ @@ -2523,32 +2407,166 @@ export interface OrgMembershipFilter { /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; } -// ============ OrderBy Types ============ -export type OrgGetManagersRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type OrgGetSubordinatesRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `reserved` field. */ + reserved?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} +export interface AppInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: AppInviteFilter[]; + /** Negates the expression. */ + not?: AppInviteFilter; +} +export interface OrgInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgInviteFilter[]; + /** Negates the expression. */ + not?: OrgInviteFilter; +} +// ============ OrderBy Types ============ +export type OrgGetManagersRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type OrgGetSubordinatesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type AppPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' | 'BITNUM_DESC' | 'BITSTR_ASC' | 'BITSTR_DESC' @@ -2628,20 +2646,38 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = +export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2652,7 +2688,25 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppAdminGrantOrderBy = +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2662,13 +2716,33 @@ export type AppAdminGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppOwnerGrantOrderBy = +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2678,6 +2752,8 @@ export type AppOwnerGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -2728,58 +2804,26 @@ export type OrgLimitCapOrderBy = | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type OrgAdminGrantOrderBy = +export type OrgChartEdgeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2822,21 +2866,21 @@ export type OrgLimitCreditOrderBy = | 'CREDIT_TYPE_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type AppLimitWarningOrderBy = +export type AppLimitCreditCodeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type OrgLimitWarningOrderBy = + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2849,9 +2893,7 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'TASK_IDENTIFIER_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2890,6 +2932,38 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type MembershipTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type AppGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2908,62 +2982,68 @@ export type AppGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = +export type OrgClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgClaimedInviteOrderBy = + | 'UPDATED_AT_DESC'; +export type UsageSnapshotOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'METRIC_NAME_ASC' + | 'METRIC_NAME_DESC' + | 'METRIC_VALUE_ASC' + | 'METRIC_VALUE_DESC' + | 'DIMENSIONS_ASC' + | 'DIMENSIONS_DESC' + | 'CAPTURED_AT_ASC' + | 'CAPTURED_AT_DESC' | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'ID_DESC'; export type AppLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -2984,6 +3064,12 @@ export type AppLimitEventOrderBy = | 'REASON_DESC'; export type OrgLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -3002,27 +3088,39 @@ export type OrgLimitEventOrderBy = | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type OrgGrantOrderBy = +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgChartEdgeOrderBy = + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +export type OrgMemberProfileOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3032,46 +3130,72 @@ export type OrgChartEdgeOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'MEMBERSHIP_ID_ASC' + | 'MEMBERSHIP_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type UsageSnapshotOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC'; -export type AppLimitOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'BIO_ASC' + | 'BIO_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC'; +export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' @@ -3084,37 +3208,7 @@ export type AppLimitOrderBy = | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC'; -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMembershipSettingOrderBy = +export type OrgMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3128,24 +3222,32 @@ export type OrgMembershipSettingOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_EXTERNAL_ASC' + | 'IS_EXTERNAL_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type OrgLimitAggregateOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3202,68 +3304,36 @@ export type OrgLimitOrderBy = | 'PERIOD_CREDITS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMemberProfileOrderBy = +export type AppInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; + | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3300,46 +3370,6 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; @@ -3539,31 +3569,51 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateAppAdminGrantInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + appAdminGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface AppAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + appAdminGrantPatch: AppAdminGrantPatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgPermissionDefaultInput { +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + appOwnerGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; +} +export interface DeleteAppOwnerGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgPermissionDefaultInput { clientMutationId?: string; orgPermissionDefault: { permissions?: string; @@ -3583,47 +3633,99 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppAdminGrantInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - appAdminGrant: { + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgAdminGrantInput { + clientMutationId?: string; + orgAdminGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppAdminGrantPatch { +export interface OrgAdminGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppAdminGrantInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - appAdminGrantPatch: AppAdminGrantPatch; + orgAdminGrantPatch: OrgAdminGrantPatch; } -export interface DeleteAppAdminGrantInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppOwnerGrantInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - appOwnerGrant: { + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + orgOwnerGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppOwnerGrantPatch { +export interface OrgOwnerGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppOwnerGrantInput { +export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; + orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface DeleteAppOwnerGrantInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3711,80 +3813,32 @@ export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; -} -export interface DeleteOrgAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgOwnerGrantInput { +export interface CreateOrgChartEdgeInput { clientMutationId?: string; - orgOwnerGrant: { - isGrant?: boolean; - actorId: string; + orgChartEdge: { entityId: string; - grantorId?: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; }; } -export interface OrgOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgChartEdgePatch { entityId?: string | null; - grantorId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateOrgChartEdgeInput { clientMutationId?: string; id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; + orgChartEdgePatch: OrgChartEdgePatch; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -3857,53 +3911,51 @@ export interface DeleteOrgLimitCreditInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitWarningInput { +export interface CreateAppLimitCreditCodeInput { clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; }; } -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; } -export interface UpdateAppLimitWarningInput { +export interface UpdateAppLimitCreditCodeInput { clientMutationId?: string; id: string; - appLimitWarningPatch: AppLimitWarningPatch; + appLimitCreditCodePatch: AppLimitCreditCodePatch; } -export interface DeleteAppLimitWarningInput { +export interface DeleteAppLimitCreditCodeInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitWarningInput { +export interface CreateAppLimitWarningInput { clientMutationId?: string; - orgLimitWarning: { + appLimitWarning: { name: string; warningType: string; thresholdValue: string; taskIdentifier: string; - entityId?: string; }; } -export interface OrgLimitWarningPatch { +export interface AppLimitWarningPatch { name?: string | null; warningType?: string | null; thresholdValue?: string | null; taskIdentifier?: string | null; - entityId?: string | null; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateAppLimitWarningInput { clientMutationId?: string; id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; + appLimitWarningPatch: AppLimitWarningPatch; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } @@ -3959,75 +4011,79 @@ export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAppGrantInput { +export interface CreateOrgLimitWarningInput { clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; + orgLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + entityId?: string; }; } -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; +export interface OrgLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; + entityId?: string | null; } -export interface UpdateAppGrantInput { +export interface UpdateOrgLimitWarningInput { clientMutationId?: string; id: string; - appGrantPatch: AppGrantPatch; + orgLimitWarningPatch: OrgLimitWarningPatch; } -export interface DeleteAppGrantInput { +export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; + }; } -export interface UpdateAppMembershipDefaultInput { +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; +} +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateOrgMembershipDefaultInput { +export interface CreateAppGrantInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + appGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface AppGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateAppGrantInput { clientMutationId?: string; id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + appGrantPatch: AppGrantPatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } @@ -4055,6 +4111,58 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface CreateOrgGrantInput { + clientMutationId?: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + orgGrantPatch: OrgGrantPatch; +} +export interface DeleteOrgGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateUsageSnapshotInput { + clientMutationId?: string; + usageSnapshot: { + databaseId: string; + metricName: string; + metricValue?: string; + dimensions?: Record; + capturedAt?: string; + }; +} +export interface UsageSnapshotPatch { + databaseId?: string | null; + metricName?: string | null; + metricValue?: string | null; + dimensions?: Record | null; + capturedAt?: string | null; +} +export interface UpdateUsageSnapshotInput { + clientMutationId?: string; + id: string; + usageSnapshotPatch: UsageSnapshotPatch; +} +export interface DeleteUsageSnapshotInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitEventInput { clientMutationId?: string; appLimitEvent: { @@ -4123,81 +4231,116 @@ export interface DeleteOrgLimitEventInput { clientMutationId?: string; id: string; } -export interface CreateOrgGrantInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; entityId: string; - grantorId?: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; entityId?: string | null; - grantorId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateOrgGrantInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - orgGrantPatch: OrgGrantPatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteOrgGrantInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface CreateOrgChartEdgeInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - orgChartEdge: { + orgMemberProfile: { + membershipId: string; entityId: string; - childId: string; - parentId?: string; - positionTitle?: string; - positionLevel?: number; + actorId: string; + displayName?: string; + email?: string; + title?: string; + bio?: string; + profilePicture?: ConstructiveInternalTypeImage; }; } -export interface OrgChartEdgePatch { +export interface OrgMemberProfilePatch { + membershipId?: string | null; entityId?: string | null; - childId?: string | null; - parentId?: string | null; - positionTitle?: string | null; - positionLevel?: number | null; + actorId?: string | null; + displayName?: string | null; + email?: string | null; + title?: string | null; + bio?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + profilePictureUpload?: File | null; } -export interface UpdateOrgChartEdgeInput { +export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; - orgChartEdgePatch: OrgChartEdgePatch; + orgMemberProfilePatch: OrgMemberProfilePatch; } -export interface DeleteOrgChartEdgeInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateUsageSnapshotInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - usageSnapshot: { - databaseId: string; - metricName: string; - metricValue?: string; - dimensions?: Record; - capturedAt?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface UsageSnapshotPatch { - databaseId?: string | null; - metricName?: string | null; - metricValue?: string | null; - dimensions?: Record | null; - capturedAt?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; } -export interface UpdateUsageSnapshotInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - usageSnapshotPatch: UsageSnapshotPatch; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteUsageSnapshotInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } @@ -4237,77 +4380,49 @@ export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } -export interface CreateAppInviteInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { + orgMembership: { createdBy?: string; updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; + isReadOnly?: boolean; + profileId?: string; }; } -export interface OrgMembershipSettingPatch { +export interface OrgMembershipPatch { createdBy?: string | null; updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isExternal?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; + isReadOnly?: boolean | null; + profileId?: string | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + orgMembershipPatch: OrgMembershipPatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } @@ -4387,78 +4502,39 @@ export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { +export interface CreateAppInviteInput { clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; + appInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; profileId?: string; + expiresAt?: string; }; } -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; +export interface AppInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; profileId?: string | null; + expiresAt?: string | null; } -export interface UpdateAppMembershipInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - appMembershipPatch: AppMembershipPatch; + appInvitePatch: AppInvitePatch; } -export interface DeleteAppMembershipInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } @@ -4504,58 +4580,8 @@ export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -4563,6 +4589,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, } as Record>; // ============ Custom Input Types (from schema) ============ export interface SubmitAppInviteCodeInput { @@ -4582,24 +4612,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitDefaultToManyAppLimitCreditFilter { /** Filters to entities where at least one related entity matches. */ @@ -4627,22 +4639,75 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } -/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ -export interface IntervalFilter { +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Equal to the specified value. */ - equalTo?: IntervalInput; + equalTo?: ConstructiveInternalTypeImage; /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; + notEqualTo?: ConstructiveInternalTypeImage; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: IntervalInput; + distinctFrom?: ConstructiveInternalTypeImage; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; + notDistinctFrom?: ConstructiveInternalTypeImage; /** Included in the specified list. */ - in?: IntervalInput[]; + in?: ConstructiveInternalTypeImage[]; /** Not included in the specified list. */ - notIn?: IntervalInput[]; + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; /** Less than the specified value. */ lessThan?: IntervalInput; /** Less than or equal to the specified value. */ @@ -4729,101 +4794,49 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; + and?: AppLimitCreditFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; + or?: AppLimitCreditFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; + not?: AppLimitCreditFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `creditCodeId` field. */ creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; + and?: AppLimitCreditCodeItemFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; + or?: AppLimitCreditCodeItemFilter[]; /** Negates the expression. */ - not?: AppLimitCreditFilter; + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } @@ -4852,6 +4865,23 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -4998,6 +5028,31 @@ export interface StringFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -5025,31 +5080,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ @@ -5513,64 +5543,109 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface CreateOrgPermissionDefaultPayload { +export interface CreateAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type CreateOrgPermissionDefaultPayloadSelect = { +export type CreateAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type UpdateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type DeleteAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type CreateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; export interface UpdateOrgPermissionDefaultPayload { @@ -5603,94 +5678,184 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; -export interface CreateAppAdminGrantPayload { +export interface CreateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type CreateAppAdminGrantPayloadSelect = { +export type CreateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface UpdateAppAdminGrantPayload { +export interface UpdateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type UpdateAppAdminGrantPayloadSelect = { +export type UpdateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface DeleteAppAdminGrantPayload { +export interface DeleteAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type DeleteAppAdminGrantPayloadSelect = { +export type DeleteAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface CreateAppOwnerGrantPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateAppOwnerGrantPayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateAppOwnerGrantPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateAppOwnerGrantPayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteAppOwnerGrantPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteAppOwnerGrantPayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type UpdateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type DeleteOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type CreateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type UpdateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type DeleteOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -5873,139 +6038,49 @@ export type DeleteOrgLimitCapPayloadSelect = { select: OrgLimitCapEdgeSelect; }; }; -export interface CreateOrgAdminGrantPayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type CreateOrgAdminGrantPayloadSelect = { +export type CreateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type UpdateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type DeleteOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -6143,6 +6218,51 @@ export type DeleteOrgLimitCreditPayloadSelect = { select: OrgLimitCreditEdgeSelect; }; }; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -6188,51 +6308,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; /** The `OrgChartEdgeGrant` that was created by this mutation. */ @@ -6323,139 +6398,139 @@ export type DeleteAppClaimedInvitePayloadSelect = { select: AppClaimedInviteEdgeSelect; }; }; -export interface CreateAppGrantPayload { +export interface CreateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type CreateAppGrantPayloadSelect = { +export type CreateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface UpdateAppGrantPayload { +export interface UpdateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type UpdateAppGrantPayloadSelect = { +export type UpdateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface DeleteAppGrantPayload { +export interface DeleteOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type DeleteAppGrantPayloadSelect = { +export type DeleteOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; export interface CreateOrgClaimedInvitePayload { @@ -6503,28 +6578,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -6570,51 +6623,6 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -export interface CreateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type CreateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface UpdateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type UpdateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type DeleteOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; export interface CreateUsageSnapshotPayload { clientMutationId?: string | null; /** The `UsageSnapshot` that was created by this mutation. */ @@ -6660,139 +6668,319 @@ export type DeleteUsageSnapshotPayloadSelect = { select: UsageSnapshotEdgeSelect; }; }; -export interface CreateAppLimitPayload { +export interface CreateAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type CreateAppLimitPayloadSelect = { +export type CreateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface UpdateAppLimitPayload { +export interface UpdateAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type UpdateAppLimitPayloadSelect = { +export type UpdateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface DeleteAppLimitPayload { +export interface DeleteAppLimitEventPayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type DeleteAppLimitPayloadSelect = { +export type DeleteAppLimitEventPayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface CreateAppInvitePayload { +export interface CreateOrgLimitEventPayload { clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } -export type CreateAppInvitePayloadSelect = { +export type CreateOrgLimitEventPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgLimitEvent?: { + select: OrgLimitEventSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface CreateOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} +export type CreateOrgMemberProfilePayloadSelect = { + clientMutationId?: boolean; + orgMemberProfile?: { + select: OrgMemberProfileSelect; + }; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; + }; +}; +export interface UpdateOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} +export type UpdateOrgMemberProfilePayloadSelect = { + clientMutationId?: boolean; + orgMemberProfile?: { + select: OrgMemberProfileSelect; + }; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; + }; +}; +export interface DeleteOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} +export type DeleteOrgMemberProfilePayloadSelect = { + clientMutationId?: boolean; + orgMemberProfile?: { + select: OrgMemberProfileSelect; + }; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; + }; +}; +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type CreateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; }; }; -export interface UpdateAppInvitePayload { +export interface UpdateAppLimitPayload { clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } -export type UpdateAppInvitePayloadSelect = { +export type UpdateAppLimitPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + appLimit?: { + select: AppLimitSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + appLimitEdge?: { + select: AppLimitEdgeSelect; }; }; -export interface DeleteAppInvitePayload { +export interface DeleteAppLimitPayload { clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } -export type DeleteAppInvitePayloadSelect = { +export type DeleteAppLimitPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + appLimit?: { + select: AppLimitSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + appLimitEdge?: { + select: AppLimitEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type UpdateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type DeleteOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; export interface CreateOrgLimitAggregatePayload { @@ -6885,94 +7073,49 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface CreateAppMembershipPayload { +export interface CreateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type CreateAppMembershipPayloadSelect = { +export type CreateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface UpdateAppMembershipPayload { +export interface UpdateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type UpdateAppMembershipPayloadSelect = { +export type UpdateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface DeleteAppMembershipPayload { +export interface DeleteAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type DeleteAppMembershipPayloadSelect = { +export type DeleteAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; export interface CreateOrgInvitePayload { @@ -7020,51 +7163,6 @@ export type DeleteOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -7166,16 +7264,28 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type AppAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAdminGrantSelect; + }; +}; +/** A `AppOwnerGrant` edge in the connection. */ +export interface AppOwnerGrantEdge { + cursor?: string | null; + /** The `AppOwnerGrant` at the end of the edge. */ + node?: AppOwnerGrant | null; +} +export type AppOwnerGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: AppOwnerGrantSelect; }; }; /** A `OrgPermissionDefault` edge in the connection. */ @@ -7190,28 +7300,52 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type AppAdminGrantEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppAdminGrantSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `AppOwnerGrant` edge in the connection. */ -export interface AppOwnerGrantEdge { +/** A `OrgAdminGrant` edge in the connection. */ +export interface OrgAdminGrantEdge { cursor?: string | null; - /** The `AppOwnerGrant` at the end of the edge. */ - node?: AppOwnerGrant | null; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; } -export type AppOwnerGrantEdgeSelect = { +export type OrgAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppOwnerGrantSelect; + select: OrgAdminGrantSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} +export type OrgOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgOwnerGrantSelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -7262,40 +7396,16 @@ export type OrgLimitCapEdgeSelect = { select: OrgLimitCapSelect; }; }; -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -export type OrgAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgAdminGrantSelect; - }; -}; -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { - cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; -} -export type OrgOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgOwnerGrantSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type MembershipTypeEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: OrgChartEdgeSelect; }; }; /** A `AppLimitDefault` edge in the connection. */ @@ -7334,28 +7444,28 @@ export type OrgLimitCreditEdgeSelect = { select: OrgLimitCreditSelect; }; }; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; } -export type AppLimitWarningEdgeSelect = { +export type AppLimitCreditCodeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitWarningSelect; + select: AppLimitCreditCodeSelect; }; }; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; } -export type OrgLimitWarningEdgeSelect = { +export type AppLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitWarningSelect; + select: AppLimitWarningSelect; }; }; /** A `OrgChartEdgeGrant` edge in the connection. */ @@ -7382,40 +7492,40 @@ export type AppClaimedInviteEdgeSelect = { select: AppClaimedInviteSelect; }; }; -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; } -export type AppGrantEdgeSelect = { +export type OrgLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: AppGrantSelect; + select: OrgLimitWarningSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type AppGrantEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: AppGrantSelect; }; }; /** A `OrgClaimedInvite` edge in the connection. */ @@ -7442,18 +7552,6 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -export type OrgChartEdgeEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeSelect; - }; -}; /** A `UsageSnapshot` edge in the connection. */ export interface UsageSnapshotEdge { cursor?: string | null; @@ -7466,28 +7564,28 @@ export type UsageSnapshotEdgeSelect = { select: UsageSnapshotSelect; }; }; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type AppLimitEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitSelect; + select: AppLimitEventSelect; }; }; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; } -export type AppInviteEdgeSelect = { +export type OrgLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: AppInviteSelect; + select: OrgLimitEventSelect; }; }; /** A `OrgMembershipSetting` edge in the connection. */ @@ -7502,30 +7600,6 @@ export type OrgMembershipSettingEdgeSelect = { select: OrgMembershipSettingSelect; }; }; -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { - cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; -} -export type OrgLimitAggregateEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitAggregateSelect; - }; -}; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -export type OrgLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitSelect; - }; -}; /** A `OrgMemberProfile` edge in the connection. */ export interface OrgMemberProfileEdge { cursor?: string | null; @@ -7550,16 +7624,16 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; -/** A `OrgInvite` edge in the connection. */ -export interface OrgInviteEdge { +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { cursor?: string | null; - /** The `OrgInvite` at the end of the edge. */ - node?: OrgInvite | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; } -export type OrgInviteEdgeSelect = { +export type AppLimitEdgeSelect = { cursor?: boolean; node?: { - select: OrgInviteSelect; + select: AppLimitSelect; }; }; /** A `OrgMembership` edge in the connection. */ @@ -7574,3 +7648,51 @@ export type OrgMembershipEdgeSelect = { select: OrgMembershipSelect; }; }; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +export type OrgLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitSelect; + }; +}; +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { + cursor?: string | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; +} +export type AppInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: AppInviteSelect; + }; +}; +/** A `OrgInvite` edge in the connection. */ +export interface OrgInviteEdge { + cursor?: string | null; + /** The `OrgInvite` at the end of the edge. */ + node?: OrgInvite | null; +} +export type OrgInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgInviteSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-sdk/src/admin/orm/models/index.ts b/sdk/constructive-sdk/src/admin/orm/models/index.ts index 68ff613876..abea0da32f 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/index.ts @@ -12,39 +12,39 @@ export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; export { AppLimitCreditModel } from './appLimitCredit'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; export { AppLimitCapModel } from './appLimitCap'; export { OrgLimitCapModel } from './orgLimitCap'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { MembershipTypeModel } from './membershipType'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgLimitCreditModel } from './orgLimitCredit'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; export { AppLimitWarningModel } from './appLimitWarning'; -export { OrgLimitWarningModel } from './orgLimitWarning'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; +export { OrgLimitWarningModel } from './orgLimitWarning'; +export { MembershipTypeModel } from './membershipType'; export { AppGrantModel } from './appGrant'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgGrantModel } from './orgGrant'; -export { OrgChartEdgeModel } from './orgChartEdge'; export { UsageSnapshotModel } from './usageSnapshot'; -export { AppLimitModel } from './appLimit'; -export { AppInviteModel } from './appInvite'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { OrgLimitAggregateModel } from './orgLimitAggregate'; -export { OrgLimitModel } from './orgLimit'; export { OrgMemberProfileModel } from './orgMemberProfile'; export { AppMembershipModel } from './appMembership'; -export { OrgInviteModel } from './orgInvite'; +export { AppLimitModel } from './appLimit'; export { OrgMembershipModel } from './orgMembership'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; +export { OrgLimitModel } from './orgLimit'; +export { AppInviteModel } from './appInvite'; +export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-sdk/src/objects/orm/README.md b/sdk/constructive-sdk/src/objects/orm/README.md index 94b8dc0860..98224dbfa7 100644 --- a/sdk/constructive-sdk/src/objects/orm/README.md +++ b/sdk/constructive-sdk/src/objects/orm/README.md @@ -69,7 +69,7 @@ CRUD operations for Object records. |-------|------|----------| | `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `kids` | UUID | Yes | | `ktree` | String | Yes | | `data` | JSON | Yes | @@ -80,13 +80,13 @@ CRUD operations for Object records. ```typescript // List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); @@ -105,7 +105,7 @@ CRUD operations for Ref records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | @@ -113,13 +113,13 @@ CRUD operations for Ref records. ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -138,7 +138,7 @@ CRUD operations for Store records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | @@ -146,13 +146,13 @@ CRUD operations for Store records. ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -171,7 +171,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -183,13 +183,13 @@ CRUD operations for Commit records. ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); @@ -209,12 +209,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -226,14 +226,14 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -245,7 +245,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `path` | [String] | | `first` | Int | @@ -253,7 +253,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -265,13 +265,13 @@ getObjectAtPath | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `path` | [String] | | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.mutation.freezeObjects` @@ -286,7 +286,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -301,7 +301,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.removeNodeAtPath` @@ -316,7 +316,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -331,7 +331,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -346,7 +346,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index 8fcc221ef8..fe16958d8e 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -238,7 +238,7 @@ export interface GetAllRecord { export interface Object { hashUuid?: string | null; id: string; - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -251,7 +251,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -261,8 +261,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -273,8 +273,8 @@ export interface Commit { id: string; /** The commit message */ message?: string | null; - /** The repository identifier */ - databaseId?: string | null; + /** The scope identifier */ + scopeId?: string | null; storeId?: string | null; /** Parent commits */ parentIds?: string[] | null; @@ -318,7 +318,7 @@ export type GetAllRecordSelect = { export type ObjectSelect = { hashUuid?: boolean; id?: boolean; - databaseId?: boolean; + scopeId?: boolean; kids?: boolean; ktree?: boolean; data?: boolean; @@ -328,21 +328,21 @@ export type ObjectSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -361,8 +361,8 @@ export interface GetAllRecordFilter { export interface ObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -385,8 +385,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -403,8 +403,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -421,8 +421,8 @@ export interface CommitFilter { id?: UUIDFilter; /** Filter by the object’s `message` field. */ message?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -457,8 +457,8 @@ export type ObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -477,8 +477,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -491,8 +491,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -505,8 +505,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -543,7 +543,7 @@ export interface DeleteGetAllRecordInput { export interface CreateObjectInput { clientMutationId?: string; object: { - databaseId: string; + scopeId: string; kids?: string[]; ktree?: string[]; data?: Record; @@ -551,7 +551,7 @@ export interface CreateObjectInput { }; } export interface ObjectPatch { - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -570,14 +570,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -594,13 +594,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -616,7 +616,7 @@ export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -627,7 +627,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -649,30 +649,30 @@ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -680,7 +680,7 @@ export interface SetPropsAndCommitInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -689,7 +689,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -698,7 +698,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; diff --git a/sdk/constructive-sdk/src/objects/orm/query/index.ts b/sdk/constructive-sdk/src/objects/orm/query/index.ts index ce1f8680dc..e132a1ab47 100644 --- a/sdk/constructive-sdk/src/objects/orm/query/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/query/index.ts @@ -9,12 +9,12 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { Object, ObjectSelect, ObjectConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } export interface GetAllObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; /** Only read the first `n` values of the set. */ first?: number; @@ -27,7 +27,7 @@ export interface GetAllObjectsFromRootVariables { after?: string; } export interface GetPathObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; path?: string[]; /** Only read the first `n` values of the set. */ @@ -41,7 +41,7 @@ export interface GetPathObjectsFromRootVariables { after?: string; } export interface GetObjectAtPathVariables { - dbId?: string; + sId?: string; storeId?: string; path?: string[]; refname?: string; @@ -69,7 +69,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -106,7 +106,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -151,7 +151,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -200,7 +200,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { diff --git a/sdk/constructive-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md index 752dd08075..94185664c7 100644 --- a/sdk/constructive-sdk/src/public/README.md +++ b/sdk/constructive-sdk/src/public/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 148 +- **Tables:** 150 - **Custom queries:** 20 - **Custom mutations:** 49 diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md index 4dc7b74e2e..5a1700ea75 100644 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -24,9 +24,9 @@ const db = createClient({ | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | -| `object` | findMany, findOne, create, update, delete | | `database` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | @@ -51,6 +51,7 @@ const db = createClient({ | `sessionSecretsModule` | findMany, findOne, create, update, delete | | `identityProvidersModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | +| `configSecretsOrgModule` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | @@ -75,7 +76,7 @@ const db = createClient({ | `defaultIdsModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | -| `encryptedSecretsModule` | findMany, findOne, create, update, delete | +| `configSecretsUserModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | @@ -129,44 +130,45 @@ const db = createClient({ | `agentThread` | findMany, findOne, create, update, delete | | `agentMessage` | findMany, findOne, create, update, delete | | `agentTask` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | +| `migrateFile` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | -| `appLimitCap` | findMany, findOne, create, update, delete | -| `orgLimitCap` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | -| `migrateFile` | findMany, findOne, create, update, delete | | `devicesModule` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `appLimitCap` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitCap` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `appLimitWarning` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `appLimitWarning` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `pubkeySetting` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | | `usageSnapshot` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | +| `inferenceLogModule` | findMany, findOne, create, update, delete | | `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `databaseSetting` | findMany, findOne, create, update, delete | +| `orgMembershipSetting` | findMany, findOne, create, update, delete | | `billingModule` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, create, update, delete | | `webauthnSetting` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | @@ -262,42 +264,45 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.object` -CRUD operations for AppPermission records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` +### `db.appPermission` -CRUD operations for OrgPermission records. +CRUD operations for AppPermission records. **Fields:** @@ -312,56 +317,53 @@ CRUD operations for OrgPermission records. **Operations:** ```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all appPermission records +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.orgPermission` -CRUD operations for Object records. +CRUD operations for OrgPermission records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | **Operations:** ```typescript -// List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +// List all orgPermission records +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.database` @@ -1359,6 +1361,39 @@ const updated = await db.realtimeModule.update({ where: { id: '' }, data: const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.configSecretsOrgModule` + +CRUD operations for ConfigSecretsOrgModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all configSecretsOrgModule records +const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.schemaGrant` CRUD operations for SchemaGrant records. @@ -1821,6 +1856,7 @@ CRUD operations for Partition records. | `partitionKeyId` | UUID | Yes | | `interval` | String | Yes | | `retention` | String | Yes | +| `retentionKeepTable` | Boolean | Yes | | `premake` | Int | Yes | | `namingPattern` | String | Yes | | `createdAt` | Datetime | No | @@ -1830,13 +1866,13 @@ CRUD operations for Partition records. ```typescript // List all partition records -const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); +const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); // Update const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2215,9 +2251,9 @@ const updated = await db.emailsModule.update({ where: { id: '' }, data: { const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.encryptedSecretsModule` +### `db.configSecretsUserModule` -CRUD operations for EncryptedSecretsModule records. +CRUD operations for ConfigSecretsUserModule records. **Fields:** @@ -2232,20 +2268,20 @@ CRUD operations for EncryptedSecretsModule records. **Operations:** ```typescript -// List all encryptedSecretsModule records -const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); +// List all configSecretsUserModule records +const items = await db.configSecretsUserModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.encryptedSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); +const item = await db.configSecretsUserModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); ``` ### `db.invitesModule` @@ -2945,6 +2981,7 @@ CRUD operations for StorageModule records. | `bucketsTableName` | String | Yes | | `filesTableName` | String | Yes | | `membershipType` | Int | Yes | +| `storageKey` | String | Yes | | `policies` | JSON | Yes | | `skipDefaultPolicyTables` | String | Yes | | `entityTableId` | UUID | Yes | @@ -2974,13 +3011,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -4378,36 +4415,6 @@ const updated = await db.agentTask.update({ where: { id: '' }, data: { thr const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` - -CRUD operations for RoleType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); - -// Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); - -// Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); -``` - ### `db.identityProvider` CRUD operations for IdentityProvider records. @@ -4451,7 +4458,7 @@ CRUD operations for Ref records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | @@ -4459,13 +4466,13 @@ CRUD operations for Ref records. ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -4484,7 +4491,7 @@ CRUD operations for Store records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | @@ -4492,13 +4499,13 @@ CRUD operations for Store records. ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -4537,37 +4544,65 @@ const updated = await db.appPermissionDefault.update({ where: { id: '' }, const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.roleType` -CRUD operations for AppLimitCreditCode records. +CRUD operations for RoleType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); + +// Get one by id +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); + +// Create +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +``` + +### `db.migrateFile` + +CRUD operations for MigrateFile records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); // Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); // Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -4632,208 +4667,213 @@ const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, d const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCap` +### `db.devicesModule` -CRUD operations for AppLimitCap records. +CRUD operations for DevicesModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `userDevicesTableId` | UUID | Yes | +| `deviceSettingsTableId` | UUID | Yes | +| `userDevicesTable` | String | Yes | +| `deviceSettingsTable` | String | Yes | **Operations:** ```typescript -// List all appLimitCap records -const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); +// List all devicesModule records +const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); // Get one by id -const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); +const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); // Create -const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); +const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); +const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitCap` +### `db.appMembershipDefault` -CRUD operations for OrgLimitCap records. +CRUD operations for AppMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.orgMembershipDefault` -CRUD operations for MembershipType records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.migrateFile` +### `db.nodeTypeRegistry` -CRUD operations for MigrateFile records. +CRUD operations for NodeTypeRegistry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | **Operations:** ```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); +// List all nodeTypeRegistry records +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); -// Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); +// Get one by name +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); // Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); // Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); // Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` -### `db.devicesModule` +### `db.appLimitCap` -CRUD operations for DevicesModule records. +CRUD operations for AppLimitCap records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `userDevicesTableId` | UUID | Yes | -| `deviceSettingsTableId` | UUID | Yes | -| `userDevicesTable` | String | Yes | -| `deviceSettingsTable` | String | Yes | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `max` | BigInt | Yes | **Operations:** ```typescript -// List all devicesModule records -const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +// List all appLimitCap records +const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); // Get one by id -const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); // Create -const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.nodeTypeRegistry` +### `db.appLimitDefault` -CRUD operations for NodeTypeRegistry records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | No | -| `slug` | String | Yes | -| `category` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `parameterSchema` | JSON | Yes | -| `tags` | String | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all nodeTypeRegistry records -const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); -// Get one by name -const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); +// Get one by id +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.orgLimitCap` -CRUD operations for AppLimitDefault records. +CRUD operations for OrgLimitCap records. **Fields:** @@ -4841,26 +4881,26 @@ CRUD operations for AppLimitDefault records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | +| `entityId` | UUID | Yes | | `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); +// List all orgLimitCap records +const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); +const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitDefault` @@ -4895,73 +4935,106 @@ const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitWarning` +### `db.userConnectedAccount` -CRUD operations for AppLimitWarning records. +CRUD operations for UserConnectedAccount records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | +| `ownerId` | UUID | Yes | +| `service` | String | Yes | +| `identifier` | String | Yes | +| `details` | JSON | Yes | +| `isVerified` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +// List all userConnectedAccount records +const items = await db.userConnectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +const item = await db.userConnectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.userConnectedAccount` +### `db.appLimitCreditCode` -CRUD operations for UserConnectedAccount records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `service` | String | Yes | -| `identifier` | String | Yes | -| `details` | JSON | Yes | -| `isVerified` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all userConnectedAccount records -const items = await db.userConnectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.userConnectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitWarning` + +CRUD operations for AppLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -4974,7 +5047,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -4986,13 +5059,13 @@ CRUD operations for Commit records. ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); @@ -5109,79 +5182,43 @@ const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.membershipType` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.rlsSetting` -CRUD operations for OrgMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.rlsSetting` - -CRUD operations for RlsSetting records. +CRUD operations for RlsSetting records. **Fields:** @@ -5217,83 +5254,48 @@ const updated = await db.rlsSetting.update({ where: { id: '' }, data: { da const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` - -CRUD operations for AppLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` +### `db.rlsModule` -CRUD operations for OrgLimitEvent records. +CRUD operations for RlsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `authenticate` | String | Yes | +| `authenticateStrict` | String | Yes | +| `currentRole` | String | Yes | +| `currentRoleId` | String | Yes | **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all rlsModule records +const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.rlsModule` +### `db.inferenceLogModule` -CRUD operations for RlsModule records. +CRUD operations for InferenceLogModule records. **Fields:** @@ -5303,31 +5305,32 @@ CRUD operations for RlsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `authenticate` | String | Yes | -| `authenticateStrict` | String | Yes | -| `currentRole` | String | Yes | -| `currentRoleId` | String | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all rlsModule records -const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); +// List all inferenceLogModule records +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } }).execute(); // Get one by id -const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, prefix: true } }).execute(); // Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rateLimitMetersModule` @@ -5452,6 +5455,84 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.databaseSetting` CRUD operations for DatabaseSetting records. @@ -5494,6 +5575,48 @@ const updated = await db.databaseSetting.update({ where: { id: '' }, data: const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); ``` +### `db.orgMembershipSetting` + +CRUD operations for OrgMembershipSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | + +**Operations:** + +```typescript +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Get one by id +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Create +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +``` + ### `db.billingModule` CRUD operations for BillingModule records. @@ -5514,6 +5637,8 @@ CRUD operations for BillingModule records. | `ledgerTableName` | String | Yes | | `balancesTableId` | UUID | Yes | | `balancesTableName` | String | Yes | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | | `recordUsageFunction` | String | Yes | | `prefix` | String | Yes | @@ -5521,13 +5646,13 @@ CRUD operations for BillingModule records. ```typescript // List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, recordUsageFunction: true, prefix: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -5536,45 +5661,48 @@ const updated = await db.billingModule.update({ where: { id: '' }, data: { const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` -### `db.astMigration` +### `db.appMembership` -CRUD operations for AstMigration records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | +| `id` | UUID | No | | `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | | `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +// List all appMembership records +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -5619,46 +5747,45 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -### `db.orgMembershipSetting` +### `db.astMigration` -CRUD operations for OrgMembershipSetting records. +CRUD operations for AstMigration records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all astMigration records +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.webauthnSetting` @@ -5707,50 +5834,6 @@ const updated = await db.webauthnSetting.update({ where: { id: '' }, data: const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembership` - -CRUD operations for AppMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); -``` - ### `db.billingProviderModule` CRUD operations for BillingProviderModule records. @@ -5936,12 +6019,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.resolveBlueprintField` @@ -6058,97 +6141,97 @@ orgPermissionsGetMaskByNames const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` -### `db.query.appPermissionsGetByMask` +### `db.query.getAllObjectsFromRoot` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` +### `db.query.getPathObjectsFromRoot` -Reads and enables pagination through a set of `OrgPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getAllObjectsFromRoot` +### `db.query.getObjectAtPath` -Reads and enables pagination through a set of `Object`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `sId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` -### `db.query.getPathObjectsFromRoot` +### `db.query.appPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getObjectAtPath` +### `db.query.orgPermissionsGetByMask` -getObjectAtPath +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.currentUser` @@ -6414,7 +6497,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -6429,7 +6512,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.constructBlueprint` @@ -6489,7 +6572,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.copyTemplateToBlueprint` @@ -6522,6 +6605,21 @@ Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row dec const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); ``` +### `db.mutation.signInCrossOrigin` + +signInCrossOrigin + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInCrossOriginInput (required) | + +```typescript +const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.bootstrapUser` bootstrapUser @@ -6537,6 +6635,36 @@ bootstrapUser const result = await db.mutation.bootstrapUser({ input: '' }).execute(); ``` +### `db.mutation.signUp` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` + +### `db.mutation.signIn` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` + ### `db.mutation.setFieldOrder` setFieldOrder @@ -6624,7 +6752,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -6639,7 +6767,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.provisionDatabaseWithUser` @@ -6732,21 +6860,6 @@ applyRls const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.signInCrossOrigin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - -```typescript -const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); -``` - ### `db.mutation.createUserDatabase` Creates a new user database with all required modules, permissions, and RLS policies. @@ -6808,94 +6921,64 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); -``` - -### `db.mutation.forgotPassword` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); -``` - -### `db.mutation.signUp` +### `db.mutation.requestCrossOriginToken` -signUp +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.requestCrossOriginToken` +### `db.mutation.provisionTable` -requestCrossOriginToken +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ProvisionTableInput (required) | ```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +const result = await db.mutation.provisionTable({ input: '' }).execute(); ``` -### `db.mutation.signIn` +### `db.mutation.sendVerificationEmail` -signIn +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.provisionTable` +### `db.mutation.forgotPassword` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-sdk/src/public/orm/index.ts b/sdk/constructive-sdk/src/public/orm/index.ts index a605cf0e2b..ce2ca28177 100644 --- a/sdk/constructive-sdk/src/public/orm/index.ts +++ b/sdk/constructive-sdk/src/public/orm/index.ts @@ -8,9 +8,9 @@ import type { OrmClientConfig } from './client'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { GetAllRecordModel } from './models/getAllRecord'; +import { ObjectModel } from './models/object'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; -import { ObjectModel } from './models/object'; import { DatabaseModel } from './models/database'; import { SchemaModel } from './models/schema'; import { TableModel } from './models/table'; @@ -35,6 +35,7 @@ import { RelationProvisionModel } from './models/relationProvision'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RealtimeModuleModel } from './models/realtimeModule'; +import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { EnumModel } from './models/enum'; @@ -59,7 +60,7 @@ import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; import { EmailsModuleModel } from './models/emailsModule'; -import { EncryptedSecretsModuleModel } from './models/encryptedSecretsModule'; +import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { InvitesModuleModel } from './models/invitesModule'; import { EventsModuleModel } from './models/eventsModule'; import { LimitsModuleModel } from './models/limitsModule'; @@ -113,44 +114,45 @@ import { AuditLogModel } from './models/auditLog'; import { AgentThreadModel } from './models/agentThread'; import { AgentMessageModel } from './models/agentMessage'; import { AgentTaskModel } from './models/agentTask'; -import { RoleTypeModel } from './models/roleType'; import { IdentityProviderModel } from './models/identityProvider'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { RoleTypeModel } from './models/roleType'; +import { MigrateFileModel } from './models/migrateFile'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; -import { AppLimitCapModel } from './models/appLimitCap'; -import { OrgLimitCapModel } from './models/orgLimitCap'; -import { MembershipTypeModel } from './models/membershipType'; -import { MigrateFileModel } from './models/migrateFile'; import { DevicesModuleModel } from './models/devicesModule'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { AppLimitCapModel } from './models/appLimitCap'; import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { OrgLimitCapModel } from './models/orgLimitCap'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { AppLimitWarningModel } from './models/appLimitWarning'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { AppLimitWarningModel } from './models/appLimitWarning'; import { CommitModel } from './models/commit'; import { PubkeySettingModel } from './models/pubkeySetting'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { RlsSettingModel } from './models/rlsSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { RlsModuleModel } from './models/rlsModule'; +import { InferenceLogModuleModel } from './models/inferenceLogModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { PlansModuleModel } from './models/plansModule'; import { SqlActionModel } from './models/sqlAction'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { DatabaseSettingModel } from './models/databaseSetting'; +import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { BillingModuleModel } from './models/billingModule'; -import { AstMigrationModel } from './models/astMigration'; +import { AppMembershipModel } from './models/appMembership'; import { UserModel } from './models/user'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; +import { AstMigrationModel } from './models/astMigration'; import { WebauthnSettingModel } from './models/webauthnSetting'; -import { AppMembershipModel } from './models/appMembership'; import { BillingProviderModuleModel } from './models/billingProviderModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; @@ -191,9 +193,9 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), + object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), - object: new ObjectModel(client), database: new DatabaseModel(client), schema: new SchemaModel(client), table: new TableModel(client), @@ -218,6 +220,7 @@ export function createClient(config: OrmClientConfig) { sessionSecretsModule: new SessionSecretsModuleModel(client), identityProvidersModule: new IdentityProvidersModuleModel(client), realtimeModule: new RealtimeModuleModel(client), + configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), enum: new EnumModel(client), @@ -242,7 +245,7 @@ export function createClient(config: OrmClientConfig) { defaultIdsModule: new DefaultIdsModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), emailsModule: new EmailsModuleModel(client), - encryptedSecretsModule: new EncryptedSecretsModuleModel(client), + configSecretsUserModule: new ConfigSecretsUserModuleModel(client), invitesModule: new InvitesModuleModel(client), eventsModule: new EventsModuleModel(client), limitsModule: new LimitsModuleModel(client), @@ -296,44 +299,45 @@ export function createClient(config: OrmClientConfig) { agentThread: new AgentThreadModel(client), agentMessage: new AgentMessageModel(client), agentTask: new AgentTaskModel(client), - roleType: new RoleTypeModel(client), identityProvider: new IdentityProviderModel(client), ref: new RefModel(client), store: new StoreModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), + roleType: new RoleTypeModel(client), + migrateFile: new MigrateFileModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), - appLimitCap: new AppLimitCapModel(client), - orgLimitCap: new OrgLimitCapModel(client), - membershipType: new MembershipTypeModel(client), - migrateFile: new MigrateFileModel(client), devicesModule: new DevicesModuleModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), + appLimitCap: new AppLimitCapModel(client), appLimitDefault: new AppLimitDefaultModel(client), + orgLimitCap: new OrgLimitCapModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - appLimitWarning: new AppLimitWarningModel(client), userConnectedAccount: new UserConnectedAccountModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), + appLimitWarning: new AppLimitWarningModel(client), commit: new CommitModel(client), pubkeySetting: new PubkeySettingModel(client), rateLimitsModule: new RateLimitsModuleModel(client), usageSnapshot: new UsageSnapshotModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), + membershipType: new MembershipTypeModel(client), rlsSetting: new RlsSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), rlsModule: new RlsModuleModel(client), + inferenceLogModule: new InferenceLogModuleModel(client), rateLimitMetersModule: new RateLimitMetersModuleModel(client), plansModule: new PlansModuleModel(client), sqlAction: new SqlActionModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), databaseSetting: new DatabaseSettingModel(client), + orgMembershipSetting: new OrgMembershipSettingModel(client), billingModule: new BillingModuleModel(client), - astMigration: new AstMigrationModel(client), + appMembership: new AppMembershipModel(client), user: new UserModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), + astMigration: new AstMigrationModel(client), webauthnSetting: new WebauthnSettingModel(client), - appMembership: new AppMembershipModel(client), billingProviderModule: new BillingProviderModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index 8a39234a74..8a25843a56 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -254,6 +254,16 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } +export interface Object { + hashUuid?: string | null; + id: string; + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; @@ -278,16 +288,6 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} export interface Database { id: string; ownerId?: string | null; @@ -786,6 +786,14 @@ export interface RealtimeModule { interval?: string | null; notifyChannel?: string | null; } +/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ +export interface ConfigSecretsOrgModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface SchemaGrant { id: string; databaseId?: string | null; @@ -944,6 +952,7 @@ export interface Partition { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; createdAt?: string | null; @@ -1103,7 +1112,7 @@ export interface EmailsModule { ownerTableId?: string | null; tableName?: string | null; } -export interface EncryptedSecretsModule { +export interface ConfigSecretsUserModule { id: string; databaseId?: string | null; schemaId?: string | null; @@ -1456,6 +1465,7 @@ export interface StorageModule { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -1580,36 +1590,34 @@ export interface EntityTypeProvision { */ hasInviteAchievements?: boolean | null; /** - * Optional jsonb object for storage module configuration and initial bucket seeding. - * Only used when has_storage = true; ignored otherwise. NULL = use defaults. - * Recognized keys (all optional): - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this scope - * - allowed_origins (text[]) default CORS origins for all buckets in this scope - * - buckets (jsonb[]) array of initial bucket definitions to seed - * Each bucket in the buckets array recognizes: - * - name (text, required) bucket name e.g. 'documents' - * - description (text) human-readable description - * - is_public (boolean) whether files are publicly readable (default false) - * - allowed_mime_types (text[]) whitelist of MIME types (null = any) - * - max_file_size (bigint) max file size in bytes (null = use scope default) - * - allowed_origins (text[]) per-bucket CORS override - * - provisions (jsonb object) optional: customize storage tables - * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets". - * Each value uses the same shape as table_provision: - * { nodes, fields, grants, use_rls, policies }. Fanned out - * to secure_table_provision targeting the corresponding table. - * When a key includes policies[], those REPLACE the default - * storage policies for that table; tables without a key still - * get defaults. Missing "data" on policy entries is auto-populated - * with storage-specific defaults (same as table_provision). - * Example: add SearchBm25 for full-text search on files: - * {"provisions": {"files": {"nodes": [{"$type": - * "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - * Example: - * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + * Optional JSON array of storage module definitions. Each element provisions a separate + * storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + * and feature flags. Only used when has_storage = true; ignored otherwise. + * NULL = provision a single default storage module with all defaults. + * Each array element recognizes (all optional): + * - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb */ storageConfig?: Record | null; /** @@ -2323,10 +2331,6 @@ export interface AgentTask { /** Current status of this record */ status?: string | null; } -export interface RoleType { - id: number; - name?: string | null; -} export interface IdentityProvider { slug?: string | null; kind?: string | null; @@ -2340,7 +2344,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -2350,8 +2354,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -2362,17 +2366,14 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { +export interface RoleType { + id: number; + name?: string | null; +} +export interface MigrateFile { id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; } /** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ export interface AppLimitCapsDefault { @@ -2390,46 +2391,6 @@ export interface OrgLimitCapsDefault { /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ max?: string | null; } -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; -} -export interface MigrateFile { - id: string; - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} export interface DevicesModule { id: string; databaseId?: string | null; @@ -2439,6 +2400,30 @@ export interface DevicesModule { userDevicesTable?: string | null; deviceSettingsTable?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} export interface NodeTypeRegistry { name?: string | null; slug?: string | null; @@ -2448,6 +2433,16 @@ export interface NodeTypeRegistry { parameterSchema?: Record | null; tags?: string[] | null; } +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface AppLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { id: string; @@ -2458,6 +2453,16 @@ export interface AppLimitDefault { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string | null; } +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface OrgLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface OrgLimitDefault { id: string; @@ -2468,6 +2473,28 @@ export interface OrgLimitDefault { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string | null; } +export interface UserConnectedAccount { + id: string; + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { + id: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; +} /** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ export interface AppLimitWarning { id: string; @@ -2480,24 +2507,14 @@ export interface AppLimitWarning { /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier?: string | null; } -export interface UserConnectedAccount { - id: string; - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} /** A commit records changes to the repository. */ export interface Commit { /** The primary unique identifier for the commit. */ id: string; /** The commit message */ message?: string | null; - /** The repository identifier */ - databaseId?: string | null; + /** The scope identifier */ + scopeId?: string | null; storeId?: string | null; /** Parent commits */ parentIds?: string[] | null; @@ -2555,29 +2572,20 @@ export interface UsageSnapshot { capturedAt?: string | null; id: string; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; } /** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ export interface RlsSetting { @@ -2602,8 +2610,82 @@ export interface RlsSetting { /** Reference to the current_ip_address function (FK to metaschema_public.function) */ currentIpAddressFunctionId?: string | null; } +export interface RlsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; +} +export interface InferenceLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + prefix?: string | null; +} +export interface RateLimitMetersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; +} +export interface PlansModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + planPricingTableId?: string | null; + planOverridesTableId?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; + prefix?: string | null; +} +export interface SqlAction { + id: number; + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} /** Append-only log of limit events for historical reporting and audit */ export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -2625,6 +2707,9 @@ export interface AppLimitEvent { } /** Append-only log of limit events for historical reporting and audit */ export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -2644,63 +2729,6 @@ export interface OrgLimitEvent { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string | null; } -export interface RlsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - sessionCredentialsTableId?: string | null; - sessionsTableId?: string | null; - usersTableId?: string | null; - authenticate?: string | null; - authenticateStrict?: string | null; - currentRole?: string | null; - currentRoleId?: string | null; -} -export interface RateLimitMetersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; -} -export interface PlansModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - prefix?: string | null; -} -export interface SqlAction { - id: number; - name?: string | null; - databaseId?: string | null; - deploy?: string | null; - deps?: string[] | null; - payload?: Record | null; - content?: string | null; - revert?: string | null; - verify?: string | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} /** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ export interface DatabaseSetting { /** Unique identifier for this settings record */ @@ -2732,6 +2760,32 @@ export interface DatabaseSetting { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record | null; } +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; +} export interface BillingModule { id: string; databaseId?: string | null; @@ -2745,23 +2799,39 @@ export interface BillingModule { ledgerTableName?: string | null; balancesTableId?: string | null; balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; recordUsageFunction?: string | null; prefix?: string | null; } -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { + id: string; createdAt?: string | null; - action?: string | null; - actionId?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ actorId?: string | null; + profileId?: string | null; } export interface User { id: string; @@ -2779,31 +2849,20 @@ export interface User { /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { - id: string; +export interface AstMigration { + id: number; + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ - entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; } /** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ export interface WebauthnSetting { @@ -2844,35 +2903,6 @@ export interface WebauthnSetting { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; -} export interface BillingProviderModule { id: string; databaseId?: string | null; @@ -2933,9 +2963,9 @@ export interface PageInfo { export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} +export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} -export interface ObjectRelations {} export interface DatabaseRelations { owner?: User | null; databaseSetting?: DatabaseSetting | null; @@ -2950,6 +2980,7 @@ export interface DatabaseRelations { billingModule?: BillingModule | null; billingProviderModule?: BillingProviderModule | null; rateLimitMetersModule?: RateLimitMetersModule | null; + inferenceLogModule?: InferenceLogModule | null; schemas?: ConnectionResult; tables?: ConnectionResult
; checkConstraints?: ConnectionResult; @@ -2991,7 +3022,7 @@ export interface DatabaseRelations { defaultIdsModules?: ConnectionResult; denormalizedTableFields?: ConnectionResult; emailsModules?: ConnectionResult; - encryptedSecretsModules?: ConnectionResult; + configSecretsUserModules?: ConnectionResult; invitesModules?: ConnectionResult; eventsModules?: ConnectionResult; limitsModules?: ConnectionResult; @@ -3016,6 +3047,7 @@ export interface DatabaseRelations { identityProvidersModules?: ConnectionResult; notificationsModules?: ConnectionResult; realtimeModules?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -3033,6 +3065,7 @@ export interface SchemaRelations { realtimeModulesByPrivateSchemaId?: ConnectionResult; realtimeModules?: ConnectionResult; realtimeModulesBySubscriptionsSchemaId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface TableRelations { database?: Database | null; @@ -3064,6 +3097,7 @@ export interface TableRelations { realtimeModulesByChangeLogTableId?: ConnectionResult; realtimeModulesByListenerNodeTableId?: ConnectionResult; realtimeModulesBySourceRegistryTableId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface CheckConstraintRelations { database?: Database | null; @@ -3173,6 +3207,11 @@ export interface RealtimeModuleRelations { sourceRegistryTable?: Table | null; subscriptionsSchema?: Schema | null; } +export interface ConfigSecretsOrgModuleRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} export interface SchemaGrantRelations { database?: Database | null; schema?: Schema | null; @@ -3293,7 +3332,7 @@ export interface EmailsModuleRelations { schema?: Schema | null; table?: Table | null; } -export interface EncryptedSecretsModuleRelations { +export interface ConfigSecretsUserModuleRelations { database?: Database | null; schema?: Schema | null; table?: Table | null; @@ -3613,37 +3652,40 @@ export interface AgentTaskRelations { owner?: User | null; thread?: AgentThread | null; } -export interface RoleTypeRelations {} export interface IdentityProviderRelations {} export interface RefRelations {} export interface StoreRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} +export interface RoleTypeRelations {} +export interface MigrateFileRelations {} export interface AppLimitCapsDefaultRelations {} export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface MembershipTypeRelations {} -export interface MigrateFileRelations {} export interface DevicesModuleRelations { database?: Database | null; deviceSettingsTableByDeviceSettingsTableId?: Table | null; schema?: Schema | null; userDevicesTableByUserDevicesTableId?: Table | null; } +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations { + entity?: User | null; +} export interface NodeTypeRegistryRelations {} +export interface AppLimitCapRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; } +export interface OrgLimitCapRelations {} export interface OrgLimitDefaultRelations { orgLimitCreditsByDefaultLimitId?: ConnectionResult; } -export interface AppLimitWarningRelations {} export interface UserConnectedAccountRelations {} +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} +export interface AppLimitWarningRelations {} export interface CommitRelations {} export interface PubkeySettingRelations { database?: Database | null; @@ -3661,10 +3703,7 @@ export interface RateLimitsModuleRelations { schema?: Schema | null; } export interface UsageSnapshotRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} +export interface MembershipTypeRelations {} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -3676,8 +3715,6 @@ export interface RlsSettingRelations { database?: Database | null; roleSchema?: Schema | null; } -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface RlsModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3686,6 +3723,13 @@ export interface RlsModuleRelations { sessionsTable?: Table | null; usersTable?: Table | null; } +export interface InferenceLogModuleRelations { + database?: Database | null; + inferenceLogTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usageDailyTable?: Table | null; +} export interface RateLimitMetersModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3704,19 +3748,27 @@ export interface PlansModuleRelations { schema?: Schema | null; } export interface SqlActionRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface DatabaseSettingRelations { database?: Database | null; } +export interface OrgMembershipSettingRelations { + entity?: User | null; +} export interface BillingModuleRelations { balancesTable?: Table | null; database?: Database | null; ledgerTable?: Table | null; + meterCreditsTable?: Table | null; metersTable?: Table | null; planSubscriptionsTable?: Table | null; privateSchema?: Schema | null; schema?: Schema | null; } -export interface AstMigrationRelations {} +export interface AppMembershipRelations { + actor?: User | null; +} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -3779,9 +3831,7 @@ export interface UserRelations { ownedAgentMessages?: ConnectionResult; ownedAgentTasks?: ConnectionResult; } -export interface OrgMembershipSettingRelations { - entity?: User | null; -} +export interface AstMigrationRelations {} export interface WebauthnSettingRelations { credentialsSchema?: Schema | null; credentialsTable?: Table | null; @@ -3794,9 +3844,6 @@ export interface WebauthnSettingRelations { sessionsTable?: Table | null; userField?: Field | null; } -export interface AppMembershipRelations { - actor?: User | null; -} export interface BillingProviderModuleRelations { billingCustomersTable?: Table | null; billingPricesTable?: Table | null; @@ -3826,9 +3873,9 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; +export type ObjectWithRelations = Object & ObjectRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type ObjectWithRelations = Object & ObjectRelations; export type DatabaseWithRelations = Database & DatabaseRelations; export type SchemaWithRelations = Schema & SchemaRelations; export type TableWithRelations = Table & TableRelations; @@ -3858,6 +3905,8 @@ export type SessionSecretsModuleWithRelations = SessionSecretsModule & export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & IdentityProvidersModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & + ConfigSecretsOrgModuleRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type EnumWithRelations = Enum & EnumRelations; @@ -3885,8 +3934,8 @@ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleR export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; -export type EncryptedSecretsModuleWithRelations = EncryptedSecretsModule & - EncryptedSecretsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; @@ -3947,50 +3996,51 @@ export type AuditLogWithRelations = AuditLog & AuditLogRelations; export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; -export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; -export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; -export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; +export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & UserConnectedAccountRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; export type CommitWithRelations = Commit & CommitRelations; export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; +export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type UserWithRelations = User & UserRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type UserWithRelations = User & UserRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; @@ -4007,6 +4057,16 @@ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -4021,16 +4081,6 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type DatabaseSelect = { id?: boolean; ownerId?: boolean; @@ -4079,6 +4129,9 @@ export type DatabaseSelect = { rateLimitMetersModule?: { select: RateLimitMetersModuleSelect; }; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; schemas?: { select: SchemaSelect; first?: number; @@ -4325,11 +4378,11 @@ export type DatabaseSelect = { filter?: EmailsModuleFilter; orderBy?: EmailsModuleOrderBy[]; }; - encryptedSecretsModules?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModules?: { + select: ConfigSecretsUserModuleSelect; first?: number; - filter?: EncryptedSecretsModuleFilter; - orderBy?: EncryptedSecretsModuleOrderBy[]; + filter?: ConfigSecretsUserModuleFilter; + orderBy?: ConfigSecretsUserModuleOrderBy[]; }; invitesModules?: { select: InvitesModuleSelect; @@ -4475,6 +4528,12 @@ export type DatabaseSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; databaseProvisionModules?: { select: DatabaseProvisionModuleSelect; first?: number; @@ -4578,6 +4637,12 @@ export type SchemaSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type TableSelect = { id?: boolean; @@ -4765,6 +4830,12 @@ export type TableSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type CheckConstraintSelect = { id?: boolean; @@ -5299,6 +5370,22 @@ export type RealtimeModuleSelect = { select: SchemaSelect; }; }; +export type ConfigSecretsOrgModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; export type SchemaGrantSelect = { id?: boolean; databaseId?: boolean; @@ -5494,6 +5581,7 @@ export type PartitionSelect = { partitionKeyId?: boolean; interval?: boolean; retention?: boolean; + retentionKeepTable?: boolean; premake?: boolean; namingPattern?: boolean; createdAt?: boolean; @@ -5771,7 +5859,7 @@ export type EmailsModuleSelect = { select: TableSelect; }; }; -export type EncryptedSecretsModuleSelect = { +export type ConfigSecretsUserModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; @@ -6423,6 +6511,7 @@ export type StorageModuleSelect = { bucketsTableName?: boolean; filesTableName?: boolean; membershipType?: boolean; + storageKey?: boolean; policies?: boolean; skipDefaultPolicyTables?: boolean; entityTableId?: boolean; @@ -7181,10 +7270,6 @@ export type AgentTaskSelect = { select: AgentThreadSelect; }; }; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; export type IdentityProviderSelect = { slug?: boolean; kind?: boolean; @@ -7195,14 +7280,14 @@ export type IdentityProviderSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; @@ -7210,60 +7295,25 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitCapsDefaultSelect = { +export type RoleTypeSelect = { id?: boolean; name?: boolean; - max?: boolean; }; -export type OrgLimitCapsDefaultSelect = { +export type MigrateFileSelect = { id?: boolean; - name?: boolean; - max?: boolean; + databaseId?: boolean; + upload?: boolean; }; -export type AppLimitCapSelect = { +export type AppLimitCapsDefaultSelect = { id?: boolean; name?: boolean; - entityId?: boolean; max?: boolean; }; -export type OrgLimitCapSelect = { +export type OrgLimitCapsDefaultSelect = { id?: boolean; name?: boolean; - entityId?: boolean; max?: boolean; }; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; -}; -export type MigrateFileSelect = { - id?: boolean; - databaseId?: boolean; - upload?: boolean; -}; export type DevicesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7285,6 +7335,27 @@ export type DevicesModuleSelect = { select: TableSelect; }; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; export type NodeTypeRegistrySelect = { name?: boolean; slug?: boolean; @@ -7294,6 +7365,12 @@ export type NodeTypeRegistrySelect = { parameterSchema?: boolean; tags?: boolean; }; +export type AppLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -7312,6 +7389,12 @@ export type AppLimitDefaultSelect = { orderBy?: AppLimitCreditCodeItemOrderBy[]; }; }; +export type OrgLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; export type OrgLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -7324,13 +7407,6 @@ export type OrgLimitDefaultSelect = { orderBy?: OrgLimitCreditOrderBy[]; }; }; -export type AppLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; -}; export type UserConnectedAccountSelect = { id?: boolean; ownerId?: boolean; @@ -7341,10 +7417,36 @@ export type UserConnectedAccountSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppLimitCreditCodeSelect = { + id?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; +}; +export type AppLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; +}; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -7415,26 +7517,13 @@ export type UsageSnapshotSelect = { capturedAt?: boolean; id?: boolean; }; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { +export type MembershipTypeSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; export type RlsSettingSelect = { id?: boolean; @@ -7475,28 +7564,6 @@ export type RlsSettingSelect = { select: SchemaSelect; }; }; -export type AppLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7528,6 +7595,35 @@ export type RlsModuleSelect = { select: TableSelect; }; }; +export type InferenceLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + inferenceLogTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; export type RateLimitMetersModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7611,6 +7707,32 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; +export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; export type DatabaseSettingSelect = { id?: boolean; databaseId?: boolean; @@ -7630,6 +7752,25 @@ export type DatabaseSettingSelect = { select: DatabaseSelect; }; }; +export type OrgMembershipSettingSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; + entity?: { + select: UserSelect; + }; +}; export type BillingModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7643,6 +7784,8 @@ export type BillingModuleSelect = { ledgerTableName?: boolean; balancesTableId?: boolean; balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; recordUsageFunction?: boolean; prefix?: boolean; balancesTable?: { @@ -7654,6 +7797,9 @@ export type BillingModuleSelect = { ledgerTable?: { select: TableSelect; }; + meterCreditsTable?: { + select: TableSelect; + }; metersTable?: { select: TableSelect; }; @@ -7667,20 +7813,26 @@ export type BillingModuleSelect = { select: SchemaSelect; }; }; -export type AstMigrationSelect = { +export type AppMembershipSelect = { id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; createdAt?: boolean; - action?: boolean; - actionId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; actorId?: boolean; + profileId?: boolean; + actor?: { + select: UserSelect; + }; }; export type UserSelect = { id?: boolean; @@ -8043,24 +8195,20 @@ export type UserSelect = { orderBy?: AgentTaskOrderBy[]; }; }; -export type OrgMembershipSettingSelect = { +export type AstMigrationSelect = { id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; - entity?: { - select: UserSelect; - }; + action?: boolean; + actionId?: boolean; + actorId?: boolean; }; export type WebauthnSettingSelect = { id?: boolean; @@ -8112,27 +8260,6 @@ export type WebauthnSettingSelect = { select: FieldSelect; }; }; -export type AppMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; - }; -}; export type BillingProviderModuleSelect = { id?: boolean; databaseId?: boolean; @@ -8256,6 +8383,28 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8292,28 +8441,6 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface DatabaseFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8521,10 +8648,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -8653,6 +8780,14 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModule` relation. */ + inferenceLogModule?: InferenceLogModuleFilter; + /** A related `inferenceLogModule` exists. */ + inferenceLogModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -8747,6 +8882,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface TableFilter { /** Filter by the object’s `id` field. */ @@ -8913,6 +9052,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface CheckConstraintFilter { /** Filter by the object’s `id` field. */ @@ -9788,6 +9931,30 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +export interface ConfigSecretsOrgModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} export interface SchemaGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10127,6 +10294,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -10514,7 +10683,7 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -export interface EncryptedSecretsModuleFilter { +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -10526,11 +10695,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -11461,6 +11630,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -12772,18 +12943,6 @@ export interface AgentTaskFilter { /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; } -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} export interface IdentityProviderFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; @@ -12807,8 +12966,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -12825,8 +12984,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -12850,31 +13009,31 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { +export interface RoleTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RoleTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: RoleTypeFilter[]; + /** Negates the expression. */ + not?: RoleTypeFilter; +} +export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; + and?: MigrateFileFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; + or?: MigrateFileFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; + not?: MigrateFileFilter; } export interface AppLimitCapsDefaultFilter { /** Filter by the object’s `id` field. */ @@ -12904,72 +13063,6 @@ export interface OrgLimitCapsDefaultFilter { /** Negates the expression. */ not?: OrgLimitCapsDefaultFilter; } -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -export interface MigrateFileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `upload` field. */ - upload?: ConstructiveInternalTypeUploadFilter; - /** Checks for all expressions in this list. */ - and?: MigrateFileFilter[]; - /** Checks for any expressions in this list. */ - or?: MigrateFileFilter[]; - /** Negates the expression. */ - not?: MigrateFileFilter; -} export interface DevicesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13000,6 +13093,52 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface NodeTypeRegistryFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; @@ -13022,6 +13161,22 @@ export interface NodeTypeRegistryFilter { /** Negates the expression. */ not?: NodeTypeRegistryFilter; } +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13046,6 +13201,22 @@ export interface AppLimitDefaultFilter { /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; } +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13066,24 +13237,6 @@ export interface OrgLimitDefaultFilter { /** `orgLimitCreditsByDefaultLimitId` exist. */ orgLimitCreditsByDefaultLimitIdExist?: boolean; } -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} export interface UserConnectedAccountFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13108,13 +13261,57 @@ export interface UserConnectedAccountFilter { /** Negates the expression. */ not?: UserConnectedAccountFilter; } +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} +export interface AppLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitWarningFilter[]; + /** Negates the expression. */ + not?: AppLimitWarningFilter; +} export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `message` field. */ message?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -13238,51 +13435,25 @@ export interface UsageSnapshotFilter { /** Negates the expression. */ not?: UsageSnapshotFilter; } -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -export interface OrgMembershipDefaultFilter { +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: MembershipTypeFilter; } export interface RlsSettingFilter { /** Filter by the object’s `id` field. */ @@ -13346,58 +13517,6 @@ export interface RlsSettingFilter { /** A related `roleSchema` exists. */ roleSchemaExists?: boolean; } -export interface AppLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13440,6 +13559,48 @@ export interface RlsModuleFilter { /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; } +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} export interface RateLimitMetersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13572,6 +13733,66 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } +export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} export interface DatabaseSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13610,6 +13831,44 @@ export interface DatabaseSettingFilter { /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; } +export interface OrgMembershipSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipSettingFilter[]; + /** Negates the expression. */ + not?: OrgMembershipSettingFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13635,6 +13894,10 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -13651,6 +13914,8 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -13660,39 +13925,47 @@ export interface BillingModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } -export interface AstMigrationFilter { +export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; + id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; + and?: AppMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; + or?: AppMembershipFilter[]; /** Negates the expression. */ - not?: AstMigrationFilter; + not?: AppMembershipFilter; + /** Filter by the object’s `actor` relation. */ + actor?: UserFilter; } export interface UserFilter { /** Filter by the object’s `id` field. */ @@ -13967,43 +14240,39 @@ export interface UserFilter { */ unifiedSearch?: string; } -export interface OrgMembershipSettingFilter { +export interface AstMigrationFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: AstMigrationFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: AstMigrationFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: AstMigrationFilter; } export interface WebauthnSettingFilter { /** Filter by the object’s `id` field. */ @@ -14087,48 +14356,6 @@ export interface WebauthnSettingFilter { /** A related `userField` exists. */ userFieldExists?: boolean; } -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -14294,6 +14521,24 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14322,24 +14567,6 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; export type DatabaseOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15082,6 +15309,20 @@ export type RealtimeModuleOrderBy = | 'INTERVAL_DESC' | 'NOTIFY_CHANNEL_ASC' | 'NOTIFY_CHANNEL_DESC'; +export type ConfigSecretsOrgModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; export type SchemaGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15318,6 +15559,8 @@ export type PartitionOrderBy = | 'INTERVAL_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' | 'PREMAKE_ASC' | 'PREMAKE_DESC' | 'NAMING_PATTERN_ASC' @@ -15546,7 +15789,7 @@ export type EmailsModuleOrderBy = | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type EncryptedSecretsModuleOrderBy = +export type ConfigSecretsUserModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -16162,6 +16405,8 @@ export type StorageModuleOrderBy = | 'FILES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'SKIP_DEFAULT_POLICY_TABLES_ASC' @@ -17064,14 +17309,6 @@ export type AgentTaskOrderBy = | 'OWNER_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC'; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -17092,8 +17329,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -17106,8 +17343,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -17120,41 +17357,23 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitCapsDefaultOrderBy = +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = + | 'NAME_DESC'; +export type MigrateFileOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +export type AppLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17162,11 +17381,9 @@ export type AppLimitCapOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type OrgLimitCapOrderBy = +export type OrgLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17174,34 +17391,8 @@ export type OrgLimitCapOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; -export type MigrateFileOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'UPLOAD_ASC' - | 'UPLOAD_DESC'; export type DevicesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17220,6 +17411,42 @@ export type DevicesModuleOrderBy = | 'USER_DEVICES_TABLE_DESC' | 'DEVICE_SETTINGS_TABLE_ASC' | 'DEVICE_SETTINGS_TABLE_DESC'; +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type NodeTypeRegistryOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17238,6 +17465,18 @@ export type NodeTypeRegistryOrderBy = | 'PARAMETER_SCHEMA_DESC' | 'TAGS_ASC' | 'TAGS_DESC'; +export type AppLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17250,7 +17489,7 @@ export type AppLimitDefaultOrderBy = | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = +export type OrgLimitCapOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17258,11 +17497,11 @@ export type OrgLimitDefaultOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type AppLimitWarningOrderBy = + | 'MAX_DESC'; +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17270,12 +17509,10 @@ export type AppLimitWarningOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; export type UserConnectedAccountOrderBy = | 'NATURAL' | 'ID_ASC' @@ -17294,6 +17531,34 @@ export type UserConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17302,8 +17567,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -17376,42 +17641,22 @@ export type UsageSnapshotOrderBy = | 'CAPTURED_AT_DESC' | 'ID_ASC' | 'ID_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type RlsSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17436,46 +17681,6 @@ export type RlsSettingOrderBy = | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17502,6 +17707,34 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type RateLimitMetersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17588,6 +17821,58 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; export type DatabaseSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17620,6 +17905,38 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; +export type OrgMembershipSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17648,38 +17965,50 @@ export type BillingModuleOrderBy = | 'BALANCES_TABLE_ID_DESC' | 'BALANCES_TABLE_NAME_ASC' | 'BALANCES_TABLE_NAME_DESC' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' | 'RECORD_USAGE_FUNCTION_ASC' | 'RECORD_USAGE_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC'; -export type AstMigrationOrderBy = +export type AppMembershipOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17706,38 +18035,34 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -export type OrgMembershipSettingOrderBy = +export type AstMigrationOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type WebauthnSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17778,42 +18103,6 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; export type BillingProviderModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17963,6 +18252,32 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } +export interface CreateObjectInput { + clientMutationId?: string; + object: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; + }; +} +export interface ObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} export interface CreateAppPermissionInput { clientMutationId?: string; appPermission: { @@ -18011,32 +18326,6 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateDatabaseInput { clientMutationId?: string; database: { @@ -18959,6 +19248,30 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + configSecretsOrgModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface ConfigSecretsOrgModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateSchemaGrantInput { clientMutationId?: string; schemaGrant: { @@ -19305,6 +19618,7 @@ export interface CreatePartitionInput { partitionKeyId: string; interval?: string; retention?: string; + retentionKeepTable?: boolean; premake?: number; namingPattern?: string; }; @@ -19316,6 +19630,7 @@ export interface PartitionPatch { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; } @@ -19653,27 +19968,27 @@ export interface DeleteEmailsModuleInput { clientMutationId?: string; id: string; } -export interface CreateEncryptedSecretsModuleInput { +export interface CreateConfigSecretsUserModuleInput { clientMutationId?: string; - encryptedSecretsModule: { + configSecretsUserModule: { databaseId: string; schemaId?: string; tableId?: string; tableName?: string; }; } -export interface EncryptedSecretsModulePatch { +export interface ConfigSecretsUserModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; } -export interface UpdateEncryptedSecretsModuleInput { +export interface UpdateConfigSecretsUserModuleInput { clientMutationId?: string; id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; } -export interface DeleteEncryptedSecretsModuleInput { +export interface DeleteConfigSecretsUserModuleInput { clientMutationId?: string; id: string; } @@ -20406,6 +20721,7 @@ export interface CreateStorageModuleInput { bucketsTableName?: string; filesTableName?: string; membershipType?: number; + storageKey?: string; policies?: Record; skipDefaultPolicyTables?: string[]; entityTableId?: string; @@ -20441,6 +20757,7 @@ export interface StorageModulePatch { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -21612,24 +21929,6 @@ export interface DeleteAgentTaskInput { clientMutationId?: string; id: string; } -export interface CreateRoleTypeInput { - clientMutationId?: string; - roleType: { - name: string; - }; -} -export interface RoleTypePatch { - name?: string | null; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - roleTypePatch: RoleTypePatch; -} -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateIdentityProviderInput { clientMutationId?: string; identityProvider: { @@ -21660,14 +21959,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -21684,13 +21983,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -21720,27 +22019,41 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + roleType: { + name: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface RoleTypePatch { + name?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + migrateFile: { + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface MigrateFilePatch { + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface UpdateMigrateFileInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + migrateFilePatch: MigrateFilePatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteMigrateFileInput { clientMutationId?: string; id: string; } @@ -21784,121 +22097,79 @@ export interface DeleteOrgLimitCapsDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCapInput { - clientMutationId?: string; - appLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface AppLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateAppLimitCapInput { - clientMutationId?: string; - id: string; - appLimitCapPatch: AppLimitCapPatch; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapInput { +export interface CreateDevicesModuleInput { clientMutationId?: string; - orgLimitCap: { - name: string; - entityId: string; - max?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; }; } -export interface OrgLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; } -export interface UpdateOrgLimitCapInput { +export interface UpdateDevicesModuleInput { clientMutationId?: string; id: string; - orgLimitCapPatch: OrgLimitCapPatch; + devicesModulePatch: DevicesModulePatch; } -export interface DeleteOrgLimitCapInput { +export interface DeleteDevicesModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateMigrateFileInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - migrateFile: { - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; }; } -export interface MigrateFilePatch { - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; } -export interface UpdateMigrateFileInput { +export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; id: string; - migrateFilePatch: MigrateFilePatch; + appMembershipDefaultPatch: AppMembershipDefaultPatch; } -export interface DeleteMigrateFileInput { +export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateDevicesModuleInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; }; } -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; } -export interface UpdateDevicesModuleInput { +export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; id: string; - devicesModulePatch: DevicesModulePatch; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; } -export interface DeleteDevicesModuleInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } @@ -21932,6 +22203,28 @@ export interface DeleteNodeTypeRegistryInput { clientMutationId?: string; name: string; } +export interface CreateAppLimitCapInput { + clientMutationId?: string; + appLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface AppLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateAppLimitCapInput { + clientMutationId?: string; + id: string; + appLimitCapPatch: AppLimitCapPatch; +} +export interface DeleteAppLimitCapInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -21954,6 +22247,28 @@ export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } +export interface CreateOrgLimitCapInput { + clientMutationId?: string; + orgLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface OrgLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateOrgLimitCapInput { + clientMutationId?: string; + id: string; + orgLimitCapPatch: OrgLimitCapPatch; +} +export interface DeleteOrgLimitCapInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgLimitDefaultInput { clientMutationId?: string; orgLimitDefault: { @@ -21976,30 +22291,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - appLimitWarningPatch: AppLimitWarningPatch; -} -export interface DeleteAppLimitWarningInput { - clientMutationId?: string; - id: string; -} export interface CreateUserConnectedAccountInput { clientMutationId?: string; userConnectedAccount: { @@ -22026,11 +22317,59 @@ export interface DeleteUserConnectedAccountInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; + }; +} +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitWarningInput { + clientMutationId?: string; + appLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + }; +} +export interface AppLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; +} +export interface UpdateAppLimitWarningInput { + clientMutationId?: string; + id: string; + appLimitWarningPatch: AppLimitWarningPatch; +} +export interface DeleteAppLimitWarningInput { + clientMutationId?: string; + id: string; +} export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -22041,7 +22380,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -22148,53 +22487,31 @@ export interface DeleteUsageSnapshotInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateRlsSettingInput { clientMutationId?: string; @@ -22230,74 +22547,6 @@ export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} export interface CreateRlsModuleInput { clientMutationId?: string; rlsModule: { @@ -22334,6 +22583,44 @@ export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + prefix?: string; + }; +} +export interface InferenceLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + prefix?: string | null; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateRateLimitMetersModuleInput { clientMutationId?: string; rateLimitMetersModule: { @@ -22450,6 +22737,74 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseSettingInput { clientMutationId?: string; databaseSetting: { @@ -22492,6 +22847,44 @@ export interface DeleteDatabaseSettingInput { clientMutationId?: string; id: string; } +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; + }; +} +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateBillingModuleInput { clientMutationId?: string; billingModule: { @@ -22506,6 +22899,8 @@ export interface CreateBillingModuleInput { ledgerTableName?: string; balancesTableId?: string; balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; recordUsageFunction?: string; prefix?: string; }; @@ -22522,6 +22917,8 @@ export interface BillingModulePatch { ledgerTableName?: string | null; balancesTableId?: string | null; balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; recordUsageFunction?: string | null; prefix?: string | null; } @@ -22534,43 +22931,47 @@ export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - astMigration: { - databaseId?: string; - name?: string; - requires?: string[]; - payload?: Record; - deploys?: string; - deploy?: Record; - revert?: Record; - verify?: Record; - action?: string; - actionId?: string; - actorId?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface AstMigrationPatch { - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - action?: string | null; - actionId?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; actorId?: string | null; + profileId?: string | null; } -export interface UpdateAstMigrationInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; - id: number; - astMigrationPatch: AstMigrationPatch; + id: string; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteAstMigrationInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; - id: number; + id: string; } export interface CreateUserInput { clientMutationId?: string; @@ -22597,43 +22998,43 @@ export interface DeleteUserInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateAstMigrationInput { clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; + astMigration: { + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + action?: string; + actionId?: string; + actorId?: string; }; } -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; +export interface AstMigrationPatch { + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateAstMigrationInput { clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + id: number; + astMigrationPatch: AstMigrationPatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteAstMigrationInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateWebauthnSettingInput { clientMutationId?: string; @@ -22685,48 +23086,6 @@ export interface DeleteWebauthnSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; - }; -} -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - appMembershipPatch: AppMembershipPatch; -} -export interface DeleteAppMembershipInput { - clientMutationId?: string; - id: string; -} export interface CreateBillingProviderModuleInput { clientMutationId?: string; billingProviderModule: { @@ -22877,7 +23236,7 @@ export const connectionFieldsMap = { defaultIdsModules: 'DefaultIdsModule', denormalizedTableFields: 'DenormalizedTableField', emailsModules: 'EmailsModule', - encryptedSecretsModules: 'EncryptedSecretsModule', + configSecretsUserModules: 'ConfigSecretsUserModule', invitesModules: 'InvitesModule', eventsModules: 'EventsModule', limitsModules: 'LimitsModule', @@ -22902,6 +23261,7 @@ export const connectionFieldsMap = { identityProvidersModules: 'IdentityProvidersModule', notificationsModules: 'NotificationsModule', realtimeModules: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { @@ -22918,6 +23278,7 @@ export const connectionFieldsMap = { realtimeModulesByPrivateSchemaId: 'RealtimeModule', realtimeModules: 'RealtimeModule', realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Table: { checkConstraints: 'CheckConstraint', @@ -22945,6 +23306,7 @@ export const connectionFieldsMap = { realtimeModulesByChangeLogTableId: 'RealtimeModule', realtimeModulesByListenerNodeTableId: 'RealtimeModule', realtimeModulesBySourceRegistryTableId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Field: { spatialRelations: 'SpatialRelation', @@ -22978,10 +23340,6 @@ export const connectionFieldsMap = { agentMessagesByThreadId: 'AgentMessage', agentTasksByThreadId: 'AgentTask', }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -22989,6 +23347,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, User: { ownedDatabases: 'Database', appAdminGrantsByActorId: 'AppAdminGrant', @@ -23116,12 +23478,12 @@ export interface VerifyEmailInput { } export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface ConstructBlueprintInput { @@ -23142,7 +23504,7 @@ export interface ResetPasswordInput { } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } @@ -23165,6 +23527,11 @@ export interface ProvisionSpatialRelationInput { pOperator?: string; pParamName?: string; } +export interface SignInCrossOriginInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} export interface BootstrapUserInput { clientMutationId?: string; targetDatabaseId?: string; @@ -23175,6 +23542,24 @@ export interface BootstrapUserInput { displayName?: string; returnApiKey?: boolean; } +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -23205,14 +23590,14 @@ export interface ProvisionIndexInput { } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23228,7 +23613,7 @@ export interface ProvisionDatabaseWithUserInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23237,7 +23622,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23246,7 +23631,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23286,11 +23671,6 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} export interface CreateUserDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -23312,23 +23692,6 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -23336,15 +23699,6 @@ export interface RequestCrossOriginTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface ProvisionTableInput { clientMutationId?: string; databaseId?: string; @@ -23361,6 +23715,14 @@ export interface ProvisionTableInput { uniqueConstraints?: Record; description?: string; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -23739,14 +24101,14 @@ export interface DatabaseToManyEmailsModuleFilter { /** Filters to entities where no related entity matches. */ none?: EmailsModuleFilter; } -/** A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEncryptedSecretsModuleFilter { +/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsUserModuleFilter { /** Filters to entities where at least one related entity matches. */ - some?: EncryptedSecretsModuleFilter; + some?: ConfigSecretsUserModuleFilter; /** Filters to entities where every related entity matches. */ - every?: EncryptedSecretsModuleFilter; + every?: ConfigSecretsUserModuleFilter; /** Filters to entities where no related entity matches. */ - none?: EncryptedSecretsModuleFilter; + none?: ConfigSecretsUserModuleFilter; } /** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyInvitesModuleFilter { @@ -23964,6 +24326,15 @@ export interface DatabaseToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseProvisionModuleFilter { /** Filters to entities where at least one related entity matches. */ @@ -24088,6 +24459,15 @@ export interface SchemaToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyCheckConstraintFilter { /** Filters to entities where at least one related entity matches. */ @@ -24259,6 +24639,15 @@ export interface TableToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ export interface FieldToManySpatialRelationFilter { /** Filters to entities where at least one related entity matches. */ @@ -24913,24 +25302,6 @@ export interface AgentThreadToManyAgentTaskFilter { /** Filters to entities where no related entity matches. */ none?: AgentTaskFilter; } -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeUploadFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -24993,6 +25364,24 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} /** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ export interface StringTrgmFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -25469,6 +25858,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ */ export interface TableFilter { @@ -25636,6 +26029,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { @@ -26494,6 +26891,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -27056,8 +27455,8 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -/** A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EncryptedSecretsModuleFilter { +/** A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -27069,11 +27468,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -28059,6 +28458,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -28469,6 +28870,31 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsOrgModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} /** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ @@ -28654,70 +29080,53 @@ export interface AgentTaskFilter { /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; } -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; + and?: AppLimitCreditFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; + or?: AppLimitCreditFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; + not?: AppLimitCreditFilter; + /** Filter by the object’s `actor` relation. */ + actor?: UserFilter; + /** A related `actor` exists. */ + actorExists?: boolean; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `creditCodeId` field. */ creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; + and?: AppLimitCreditCodeItemFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; + or?: AppLimitCreditCodeItemFilter[]; /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } @@ -28754,6 +29163,23 @@ export interface OrgLimitCreditFilter { /** A related `entity` exists. */ entityExists?: boolean; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Filter by the object’s `id` field. */ @@ -28962,10 +29388,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -29094,6 +29520,14 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModule` relation. */ + inferenceLogModule?: InferenceLogModuleFilter; + /** A related `inferenceLogModule` exists. */ + inferenceLogModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -30553,6 +30987,31 @@ export interface UserFilter { */ unifiedSearch?: string; } +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -30580,31 +31039,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ @@ -31115,6 +31549,10 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -31131,6 +31569,8 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -31266,6 +31706,49 @@ export interface RateLimitMetersModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} /** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ export interface BitStringFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -31465,8 +31948,27 @@ export interface OrgMembershipSettingFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } -/** A connection to a list of `AppPermission` values. */ +/** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; edges: AppPermissionEdge[]; @@ -31504,25 +32006,6 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; -/** A connection to a list of `Object` values. */ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; export interface SendAccountDeletionEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -31707,6 +32190,16 @@ export type ProvisionSpatialRelationPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SignInCrossOriginPayload { + clientMutationId?: string | null; + result?: SignInCrossOriginRecord | null; +} +export type SignInCrossOriginPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInCrossOriginRecordSelect; + }; +}; export interface BootstrapUserPayload { clientMutationId?: string | null; result?: BootstrapUserRecord[] | null; @@ -31717,6 +32210,26 @@ export type BootstrapUserPayloadSelect = { select: BootstrapUserRecordSelect; }; }; +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export type SignUpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpRecordSelect; + }; +}; +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} +export type SignInPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInRecordSelect; + }; +}; export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -31817,16 +32330,6 @@ export interface ApplyRlsPayload { export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} -export type SignInCrossOriginPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInCrossOriginRecordSelect; - }; -}; export interface CreateUserDatabasePayload { clientMutationId?: string | null; result?: string | null; @@ -31855,57 +32358,37 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; -export interface SendVerificationEmailPayload { +export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; - result?: boolean | null; + result?: string | null; } -export type SendVerificationEmailPayloadSelect = { +export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; -export interface SignUpPayload { +export interface ProvisionTablePayload { clientMutationId?: string | null; - result?: SignUpRecord | null; + result?: ProvisionTableRecord[] | null; } -export type SignUpPayloadSelect = { +export type ProvisionTablePayloadSelect = { clientMutationId?: boolean; result?: { - select: SignUpRecordSelect; + select: ProvisionTableRecordSelect; }; }; -export interface RequestCrossOriginTokenPayload { +export interface SendVerificationEmailPayload { clientMutationId?: string | null; - result?: string | null; + result?: boolean | null; } -export type RequestCrossOriginTokenPayloadSelect = { +export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} -export type SignInPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInRecordSelect; - }; -}; -export interface ProvisionTablePayload { +export interface ForgotPasswordPayload { clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; } -export type ProvisionTablePayloadSelect = { +export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -31929,6 +32412,51 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -32019,51 +32547,6 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateDatabasePayload { clientMutationId?: string | null; /** The `Database` that was created by this mutation. */ @@ -33144,6 +33627,51 @@ export type DeleteRealtimeModulePayloadSelect = { select: RealtimeModuleEdgeSelect; }; }; +export interface CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type CreateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type UpdateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type DeleteConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; export interface CreateSchemaGrantPayload { clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ @@ -34224,49 +34752,49 @@ export type DeleteEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; -export interface CreateEncryptedSecretsModulePayload { +export interface CreateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was created by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type CreateEncryptedSecretsModulePayloadSelect = { +export type CreateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface UpdateEncryptedSecretsModulePayload { +export interface UpdateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was updated by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type UpdateEncryptedSecretsModulePayloadSelect = { +export type UpdateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface DeleteEncryptedSecretsModulePayload { +export interface DeleteConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was deleted by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type DeleteEncryptedSecretsModulePayloadSelect = { +export type DeleteConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; export interface CreateInvitesModulePayload { @@ -36654,51 +37182,6 @@ export type DeleteAgentTaskPayloadSelect = { select: AgentTaskEdgeSelect; }; }; -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type CreateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type UpdateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type DeleteRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; export interface CreateIdentityProviderPayload { clientMutationId?: string | null; /** The `IdentityProvider` that was created by this mutation. */ @@ -36845,49 +37328,60 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -36980,195 +37474,139 @@ export type DeleteOrgLimitCapsDefaultPayloadSelect = { select: OrgLimitCapsDefaultEdgeSelect; }; }; -export interface CreateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type CreateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface UpdateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type UpdateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface DeleteAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type DeleteAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface CreateOrgLimitCapPayload { +export interface CreateDevicesModulePayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; } -export type CreateOrgLimitCapPayloadSelect = { +export type CreateDevicesModulePayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + devicesModule?: { + select: DevicesModuleSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; }; }; -export interface UpdateOrgLimitCapPayload { +export interface UpdateDevicesModulePayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; } -export type UpdateOrgLimitCapPayloadSelect = { +export type UpdateDevicesModulePayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + devicesModule?: { + select: DevicesModuleSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; }; }; -export interface DeleteOrgLimitCapPayload { +export interface DeleteDevicesModulePayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; } -export type DeleteOrgLimitCapPayloadSelect = { +export type DeleteDevicesModulePayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + devicesModule?: { + select: DevicesModuleSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; }; }; -export interface CreateMembershipTypePayload { +export interface CreateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type CreateMembershipTypePayloadSelect = { +export type CreateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteAppMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; }; -}; -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} -export type CreateMigrateFilePayloadSelect = { - clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface CreateDevicesModulePayload { +export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type CreateDevicesModulePayloadSelect = { +export type CreateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateDevicesModulePayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateDevicesModulePayloadSelect = { +export type UpdateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteDevicesModulePayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type DeleteDevicesModulePayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; export interface CreateNodeTypeRegistryPayload { @@ -37216,6 +37654,51 @@ export type DeleteNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; +export interface CreateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was created by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type CreateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface UpdateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was updated by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type UpdateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface DeleteAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was deleted by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type DeleteAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; /** The `AppLimitDefault` that was created by this mutation. */ @@ -37261,6 +37744,51 @@ export type DeleteAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; +export interface CreateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was created by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type CreateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface UpdateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type UpdateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface DeleteOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type DeleteOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; /** The `OrgLimitDefault` that was created by this mutation. */ @@ -37306,6 +37834,62 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +export interface CreateUserConnectedAccountPayload { + clientMutationId?: string | null; + /** The `UserConnectedAccount` that was created by this mutation. */ + userConnectedAccount?: UserConnectedAccount | null; +} +export type CreateUserConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + userConnectedAccount?: { + select: UserConnectedAccountSelect; + }; +}; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -37351,17 +37935,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} -export type CreateUserConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; - }; -}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -37542,94 +38115,49 @@ export type DeleteUsageSnapshotPayloadSelect = { select: UsageSnapshotEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type CreateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type UpdateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type DeleteAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; export interface CreateRlsSettingPayload { @@ -37677,28 +38205,6 @@ export type DeleteRlsSettingPayloadSelect = { select: RlsSettingEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -37744,6 +38250,51 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type CreateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type UpdateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type DeleteInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; /** The `RateLimitMetersModule` that was created by this mutation. */ @@ -37845,6 +38396,96 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface UpdateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type UpdateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface DeleteAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type DeleteAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; export interface CreateDatabaseSettingPayload { clientMutationId?: string | null; /** The `DatabaseSetting` that was created by this mutation. */ @@ -37890,6 +38531,51 @@ export type DeleteDatabaseSettingPayloadSelect = { select: DatabaseSettingEdgeSelect; }; }; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; export interface CreateBillingModulePayload { clientMutationId?: string | null; /** The `BillingModule` that was created by this mutation. */ @@ -37935,15 +38621,49 @@ export type DeleteBillingModulePayloadSelect = { select: BillingModuleEdgeSelect; }; }; -export interface CreateAstMigrationPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type CreateAstMigrationPayloadSelect = { +export type CreateAppMembershipPayloadSelect = { clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; export interface CreateUserPayload { @@ -37991,49 +38711,15 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type CreateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type UpdateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface DeleteOrgMembershipSettingPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type CreateAstMigrationPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + astMigration?: { + select: AstMigrationSelect; }; }; export interface CreateWebauthnSettingPayload { @@ -38081,51 +38767,6 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type CreateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type UpdateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type DeleteAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; /** The `BillingProviderModule` that was created by this mutation. */ @@ -38216,16 +38857,16 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `Object` edge in the connection. */ +export interface ObjectEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; } -export type AppPermissionEdgeSelect = { +export type ObjectEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionSelect; + select: ObjectSelect; }; }; /** Information about pagination in a connection. */ @@ -38245,6 +38886,18 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} +export type AppPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionSelect; + }; +}; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -38257,17 +38910,21 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; +export interface SignInCrossOriginRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; } -export type ObjectEdgeSelect = { - cursor?: boolean; - node?: { - select: ObjectSelect; - }; +export type SignInCrossOriginRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; }; export interface BootstrapUserRecord { outUserId?: string | null; @@ -38289,6 +38946,42 @@ export type BootstrapUserRecordSelect = { outIsSudo?: boolean; outApiKey?: boolean; }; +export interface SignUpRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export type SignUpRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; +}; +export interface SignInRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + mfaRequired?: boolean | null; + mfaChallengeToken?: string | null; +} +export type SignInRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; + mfaRequired?: boolean; + mfaChallengeToken?: boolean; +}; export interface ProvisionDatabaseWithUserRecord { outDatabaseId?: string | null; outApiKey?: string | null; @@ -38309,22 +39002,6 @@ export type ProvisionRelationRecordSelect = { outSourceFieldId?: boolean; outTargetFieldId?: boolean; }; -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignInCrossOriginRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; export interface ExtendTokenExpiresRecord { id?: string | null; sessionId?: string | null; @@ -38345,42 +39022,6 @@ export type CreateApiKeyRecordSelect = { keyId?: boolean; expiresAt?: boolean; }; -export interface SignUpRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignUpRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface SignInRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; - mfaRequired?: boolean | null; - mfaChallengeToken?: string | null; -} -export type SignInRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; - mfaRequired?: boolean; - mfaChallengeToken?: boolean; -}; export interface ProvisionTableRecord { outTableId?: string | null; outFields?: string[] | null; @@ -38677,6 +39318,18 @@ export type RealtimeModuleEdgeSelect = { select: RealtimeModuleSelect; }; }; +/** A `ConfigSecretsOrgModule` edge in the connection. */ +export interface ConfigSecretsOrgModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsOrgModule` at the end of the edge. */ + node?: ConfigSecretsOrgModule | null; +} +export type ConfigSecretsOrgModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsOrgModuleSelect; + }; +}; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { cursor?: string | null; @@ -38965,16 +39618,16 @@ export type EmailsModuleEdgeSelect = { select: EmailsModuleSelect; }; }; -/** A `EncryptedSecretsModule` edge in the connection. */ -export interface EncryptedSecretsModuleEdge { +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { cursor?: string | null; - /** The `EncryptedSecretsModule` at the end of the edge. */ - node?: EncryptedSecretsModule | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; } -export type EncryptedSecretsModuleEdgeSelect = { +export type ConfigSecretsUserModuleEdgeSelect = { cursor?: boolean; node?: { - select: EncryptedSecretsModuleSelect; + select: ConfigSecretsUserModuleSelect; }; }; /** A `InvitesModule` edge in the connection. */ @@ -39613,18 +40266,6 @@ export type AgentTaskEdgeSelect = { select: AgentTaskSelect; }; }; -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { - cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; -} -export type RoleTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: RoleTypeSelect; - }; -}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -39661,16 +40302,16 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type RoleTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: RoleTypeSelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -39697,52 +40338,40 @@ export type OrgLimitCapsDefaultEdgeSelect = { select: OrgLimitCapsDefaultSelect; }; }; -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -export type AppLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapSelect; - }; -}; -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { +/** A `DevicesModule` edge in the connection. */ +export interface DevicesModuleEdge { cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; + /** The `DevicesModule` at the end of the edge. */ + node?: DevicesModule | null; } -export type OrgLimitCapEdgeSelect = { +export type DevicesModuleEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitCapSelect; + select: DevicesModuleSelect; }; }; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type MembershipTypeEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `DevicesModule` edge in the connection. */ -export interface DevicesModuleEdge { +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { cursor?: string | null; - /** The `DevicesModule` at the end of the edge. */ - node?: DevicesModule | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; } -export type DevicesModuleEdgeSelect = { +export type OrgMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: DevicesModuleSelect; + select: OrgMembershipDefaultSelect; }; }; /** A `NodeTypeRegistry` edge in the connection. */ @@ -39757,6 +40386,18 @@ export type NodeTypeRegistryEdgeSelect = { select: NodeTypeRegistrySelect; }; }; +/** A `AppLimitCap` edge in the connection. */ +export interface AppLimitCapEdge { + cursor?: string | null; + /** The `AppLimitCap` at the end of the edge. */ + node?: AppLimitCap | null; +} +export type AppLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCapSelect; + }; +}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -39769,6 +40410,18 @@ export type AppLimitDefaultEdgeSelect = { select: AppLimitDefaultSelect; }; }; +/** A `OrgLimitCap` edge in the connection. */ +export interface OrgLimitCapEdge { + cursor?: string | null; + /** The `OrgLimitCap` at the end of the edge. */ + node?: OrgLimitCap | null; +} +export type OrgLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCapSelect; + }; +}; /** A `OrgLimitDefault` edge in the connection. */ export interface OrgLimitDefaultEdge { cursor?: string | null; @@ -39781,6 +40434,18 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { + cursor?: string | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +export type AppLimitCreditCodeEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeSelect; + }; +}; /** A `AppLimitWarning` edge in the connection. */ export interface AppLimitWarningEdge { cursor?: string | null; @@ -39841,28 +40506,16 @@ export type UsageSnapshotEdgeSelect = { select: UsageSnapshotSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; /** A `RlsSetting` edge in the connection. */ @@ -39889,6 +40542,18 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +export type InferenceLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InferenceLogModuleSelect; + }; +}; /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { cursor?: string | null; @@ -39913,40 +40578,40 @@ export type PlansModuleEdgeSelect = { select: PlansModuleSelect; }; }; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type DatabaseSettingEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: DatabaseSettingSelect; + select: AppLimitEventSelect; }; }; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; } -export type BillingModuleEdgeSelect = { +export type OrgLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: BillingModuleSelect; + select: OrgLimitEventSelect; }; }; -/** A `User` edge in the connection. */ -export interface UserEdge { +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; } -export type UserEdgeSelect = { +export type DatabaseSettingEdgeSelect = { cursor?: boolean; node?: { - select: UserSelect; + select: DatabaseSettingSelect; }; }; /** A `OrgMembershipSetting` edge in the connection. */ @@ -39961,16 +40626,16 @@ export type OrgMembershipSettingEdgeSelect = { select: OrgMembershipSettingSelect; }; }; -/** A `WebauthnSetting` edge in the connection. */ -export interface WebauthnSettingEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `WebauthnSetting` at the end of the edge. */ - node?: WebauthnSetting | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type WebauthnSettingEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: WebauthnSettingSelect; + select: BillingModuleSelect; }; }; /** A `AppMembership` edge in the connection. */ @@ -39985,6 +40650,30 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; +/** A `User` edge in the connection. */ +export interface UserEdge { + cursor?: string | null; + /** The `User` at the end of the edge. */ + node?: User | null; +} +export type UserEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSelect; + }; +}; +/** A `WebauthnSetting` edge in the connection. */ +export interface WebauthnSettingEdge { + cursor?: string | null; + /** The `WebauthnSetting` at the end of the edge. */ + node?: WebauthnSetting | null; +} +export type WebauthnSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnSettingSelect; + }; +}; /** A `BillingProviderModule` edge in the connection. */ export interface BillingProviderModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts +++ b/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-sdk/src/public/orm/models/configSecretsOrgModule.ts b/sdk/constructive-sdk/src/public/orm/models/configSecretsOrgModule.ts new file mode 100644 index 0000000000..ef53f2d5cd --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/configSecretsOrgModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsOrgModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ConfigSecretsOrgModule, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, + CreateConfigSecretsOrgModuleInput, + UpdateConfigSecretsOrgModuleInput, + ConfigSecretsOrgModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsOrgModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsOrgModule', + 'createConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.data, + 'CreateConfigSecretsOrgModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'createConfigSecretsOrgModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsOrgModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsOrgModule', + 'updateConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsOrgModuleInput', + 'id', + 'configSecretsOrgModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'updateConfigSecretsOrgModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsOrgModule', + 'deleteConfigSecretsOrgModule', + 'configSecretsOrgModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsOrgModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'deleteConfigSecretsOrgModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/configSecretsUserModule.ts b/sdk/constructive-sdk/src/public/orm/models/configSecretsUserModule.ts new file mode 100644 index 0000000000..b1b8f0cacb --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/configSecretsUserModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsUserModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ConfigSecretsUserModule, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, + CreateConfigSecretsUserModuleInput, + UpdateConfigSecretsUserModuleInput, + ConfigSecretsUserModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsUserModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsUserModule', + 'createConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.data, + 'CreateConfigSecretsUserModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'createConfigSecretsUserModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsUserModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsUserModule', + 'updateConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsUserModuleInput', + 'id', + 'configSecretsUserModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'updateConfigSecretsUserModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsUserModule', + 'deleteConfigSecretsUserModule', + 'configSecretsUserModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsUserModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'deleteConfigSecretsUserModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/encryptedSecretsModule.ts b/sdk/constructive-sdk/src/public/orm/models/encryptedSecretsModule.ts deleted file mode 100644 index 754ec7e785..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/encryptedSecretsModule.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * EncryptedSecretsModule model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - EncryptedSecretsModule, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, - CreateEncryptedSecretsModuleInput, - UpdateEncryptedSecretsModuleInput, - EncryptedSecretsModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class EncryptedSecretsModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'EncryptedSecretsModule', - 'createEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.data, - 'CreateEncryptedSecretsModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'createEncryptedSecretsModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - EncryptedSecretsModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'EncryptedSecretsModule', - 'updateEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.where.id, - args.data, - 'UpdateEncryptedSecretsModuleInput', - 'id', - 'encryptedSecretsModulePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'updateEncryptedSecretsModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'EncryptedSecretsModule', - 'deleteEncryptedSecretsModule', - 'encryptedSecretsModule', - { - id: args.where.id, - }, - 'DeleteEncryptedSecretsModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'deleteEncryptedSecretsModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/index.ts b/sdk/constructive-sdk/src/public/orm/models/index.ts index f32f15f0cb..e9c4a73ea2 100644 --- a/sdk/constructive-sdk/src/public/orm/models/index.ts +++ b/sdk/constructive-sdk/src/public/orm/models/index.ts @@ -6,9 +6,9 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; +export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; -export { ObjectModel } from './object'; export { DatabaseModel } from './database'; export { SchemaModel } from './schema'; export { TableModel } from './table'; @@ -33,6 +33,7 @@ export { RelationProvisionModel } from './relationProvision'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RealtimeModuleModel } from './realtimeModule'; +export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; export { EnumModel } from './enum'; @@ -57,7 +58,7 @@ export { CryptoAuthModuleModel } from './cryptoAuthModule'; export { DefaultIdsModuleModel } from './defaultIdsModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; export { EmailsModuleModel } from './emailsModule'; -export { EncryptedSecretsModuleModel } from './encryptedSecretsModule'; +export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { InvitesModuleModel } from './invitesModule'; export { EventsModuleModel } from './eventsModule'; export { LimitsModuleModel } from './limitsModule'; @@ -111,43 +112,44 @@ export { AuditLogModel } from './auditLog'; export { AgentThreadModel } from './agentThread'; export { AgentMessageModel } from './agentMessage'; export { AgentTaskModel } from './agentTask'; -export { RoleTypeModel } from './roleType'; export { IdentityProviderModel } from './identityProvider'; export { RefModel } from './ref'; export { StoreModel } from './store'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { RoleTypeModel } from './roleType'; +export { MigrateFileModel } from './migrateFile'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; -export { AppLimitCapModel } from './appLimitCap'; -export { OrgLimitCapModel } from './orgLimitCap'; -export { MembershipTypeModel } from './membershipType'; -export { MigrateFileModel } from './migrateFile'; export { DevicesModuleModel } from './devicesModule'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { AppLimitCapModel } from './appLimitCap'; export { AppLimitDefaultModel } from './appLimitDefault'; +export { OrgLimitCapModel } from './orgLimitCap'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { AppLimitWarningModel } from './appLimitWarning'; export { UserConnectedAccountModel } from './userConnectedAccount'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { AppLimitWarningModel } from './appLimitWarning'; export { CommitModel } from './commit'; export { PubkeySettingModel } from './pubkeySetting'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { UsageSnapshotModel } from './usageSnapshot'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { MembershipTypeModel } from './membershipType'; export { RlsSettingModel } from './rlsSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { RlsModuleModel } from './rlsModule'; +export { InferenceLogModuleModel } from './inferenceLogModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { PlansModuleModel } from './plansModule'; export { SqlActionModel } from './sqlAction'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { DatabaseSettingModel } from './databaseSetting'; +export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { BillingModuleModel } from './billingModule'; -export { AstMigrationModel } from './astMigration'; +export { AppMembershipModel } from './appMembership'; export { UserModel } from './user'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; +export { AstMigrationModel } from './astMigration'; export { WebauthnSettingModel } from './webauthnSetting'; -export { AppMembershipModel } from './appMembership'; export { BillingProviderModuleModel } from './billingProviderModule'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-sdk/src/public/orm/models/inferenceLogModule.ts b/sdk/constructive-sdk/src/public/orm/models/inferenceLogModule.ts new file mode 100644 index 0000000000..f6f4ab2452 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/inferenceLogModule.ts @@ -0,0 +1,244 @@ +/** + * InferenceLogModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InferenceLogModule, + InferenceLogModuleWithRelations, + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, + CreateInferenceLogModuleInput, + UpdateInferenceLogModuleInput, + InferenceLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InferenceLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InferenceLogModule', + 'createInferenceLogModule', + 'inferenceLogModule', + args.select, + args.data, + 'CreateInferenceLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'createInferenceLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InferenceLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InferenceLogModule', + 'updateInferenceLogModule', + 'inferenceLogModule', + args.select, + args.where.id, + args.data, + 'UpdateInferenceLogModuleInput', + 'id', + 'inferenceLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'updateInferenceLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InferenceLogModule', + 'deleteInferenceLogModule', + 'inferenceLogModule', + { + id: args.where.id, + }, + 'DeleteInferenceLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'deleteInferenceLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-sdk/src/public/orm/mutation/index.ts b/sdk/constructive-sdk/src/public/orm/mutation/index.ts index 8d1e1cbef2..fa569f97e8 100644 --- a/sdk/constructive-sdk/src/public/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/public/orm/mutation/index.ts @@ -31,7 +31,10 @@ import type { RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, + SignInCrossOriginInput, BootstrapUserInput, + SignUpInput, + SignInInput, SetFieldOrderInput, ProvisionCheckConstraintInput, ProvisionUniqueConstraintInput, @@ -45,16 +48,13 @@ import type { SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, - SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, - SendVerificationEmailInput, - ForgotPasswordInput, - SignUpInput, RequestCrossOriginTokenInput, - SignInInput, ProvisionTableInput, + SendVerificationEmailInput, + ForgotPasswordInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, @@ -80,7 +80,10 @@ import type { RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, + SignInCrossOriginPayload, BootstrapUserPayload, + SignUpPayload, + SignInPayload, SetFieldOrderPayload, ProvisionCheckConstraintPayload, ProvisionUniqueConstraintPayload, @@ -94,16 +97,13 @@ import type { SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, - SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, - SignUpPayload, RequestCrossOriginTokenPayload, - SignInPayload, ProvisionTablePayload, + SendVerificationEmailPayload, + ForgotPasswordPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, @@ -129,7 +129,10 @@ import type { RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, + SignInCrossOriginPayloadSelect, BootstrapUserPayloadSelect, + SignUpPayloadSelect, + SignInPayloadSelect, SetFieldOrderPayloadSelect, ProvisionCheckConstraintPayloadSelect, ProvisionUniqueConstraintPayloadSelect, @@ -143,16 +146,13 @@ import type { SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, - SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, - SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, - SignInPayloadSelect, ProvisionTablePayloadSelect, + SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -240,9 +240,18 @@ export interface CopyTemplateToBlueprintVariables { export interface ProvisionSpatialRelationVariables { input: ProvisionSpatialRelationInput; } +export interface SignInCrossOriginVariables { + input: SignInCrossOriginInput; +} export interface BootstrapUserVariables { input: BootstrapUserInput; } +export interface SignUpVariables { + input: SignUpInput; +} +export interface SignInVariables { + input: SignInInput; +} export interface SetFieldOrderVariables { input: SetFieldOrderInput; } @@ -302,9 +311,6 @@ export interface ProvisionRelationVariables { export interface ApplyRlsVariables { input: ApplyRlsInput; } -export interface SignInCrossOriginVariables { - input: SignInCrossOriginInput; -} /** * Variables for createUserDatabase * Creates a new user database with all required modules, permissions, and RLS policies. @@ -333,21 +339,9 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} -export interface SignUpVariables { - input: SignUpInput; -} export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } -export interface SignInVariables { - input: SignInInput; -} /** * Variables for provisionTable * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). @@ -355,6 +349,12 @@ export interface SignInVariables { export interface ProvisionTableVariables { input: ProvisionTableInput; } +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -1063,6 +1063,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionSpatialRelationPayload' ), }), + signInCrossOrigin: ( + args: SignInCrossOriginVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInCrossOrigin: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInCrossOrigin', + fieldName: 'signInCrossOrigin', + ...buildCustomDocument( + 'mutation', + 'SignInCrossOrigin', + 'signInCrossOrigin', + options.select, + args, + [ + { + name: 'input', + type: 'SignInCrossOriginInput!', + }, + ], + connectionFieldsMap, + 'SignInCrossOriginPayload' + ), + }), bootstrapUser: ( args: BootstrapUserVariables, options: { @@ -1092,6 +1121,64 @@ export function createMutationOperations(client: OrmClient) { 'BootstrapUserPayload' ), }), + signUp: ( + args: SignUpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUp', + fieldName: 'signUp', + ...buildCustomDocument( + 'mutation', + 'SignUp', + 'signUp', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpInput!', + }, + ], + connectionFieldsMap, + 'SignUpPayload' + ), + }), + signIn: ( + args: SignInVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signIn: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignIn', + fieldName: 'signIn', + ...buildCustomDocument( + 'mutation', + 'SignIn', + 'signIn', + options.select, + args, + [ + { + name: 'input', + type: 'SignInInput!', + }, + ], + connectionFieldsMap, + 'SignInPayload' + ), + }), setFieldOrder: ( args: SetFieldOrderVariables, options: { @@ -1469,35 +1556,6 @@ export function createMutationOperations(client: OrmClient) { 'ApplyRlsPayload' ), }), - signInCrossOrigin: ( - args: SignInCrossOriginVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signInCrossOrigin: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignInCrossOrigin', - fieldName: 'signInCrossOrigin', - ...buildCustomDocument( - 'mutation', - 'SignInCrossOrigin', - 'signInCrossOrigin', - options.select, - args, - [ - { - name: 'input', - type: 'SignInCrossOriginInput!', - }, - ], - connectionFieldsMap, - 'SignInCrossOriginPayload' - ), - }), createUserDatabase: ( args: CreateUserDatabaseVariables, options: { @@ -1585,178 +1643,120 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), - signUp: ( - args: SignUpVariables, + requestCrossOriginToken: ( + args: RequestCrossOriginTokenVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signUp: InferSelectResult | null; + requestCrossOriginToken: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignUp', - fieldName: 'signUp', + operationName: 'RequestCrossOriginToken', + fieldName: 'requestCrossOriginToken', ...buildCustomDocument( 'mutation', - 'SignUp', - 'signUp', + 'RequestCrossOriginToken', + 'requestCrossOriginToken', options.select, args, [ { name: 'input', - type: 'SignUpInput!', + type: 'RequestCrossOriginTokenInput!', }, ], connectionFieldsMap, - 'SignUpPayload' + 'RequestCrossOriginTokenPayload' ), }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, + provisionTable: ( + args: ProvisionTableVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; + provisionTable: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', + operationName: 'ProvisionTable', + fieldName: 'provisionTable', ...buildCustomDocument( 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', + 'ProvisionTable', + 'provisionTable', options.select, args, [ { name: 'input', - type: 'RequestCrossOriginTokenInput!', + type: 'ProvisionTableInput!', }, ], connectionFieldsMap, - 'RequestCrossOriginTokenPayload' + 'ProvisionTablePayload' ), }), - signIn: ( - args: SignInVariables, + sendVerificationEmail: ( + args: SendVerificationEmailVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signIn: InferSelectResult | null; + sendVerificationEmail: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignIn', - fieldName: 'signIn', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', ...buildCustomDocument( 'mutation', - 'SignIn', - 'signIn', + 'SendVerificationEmail', + 'sendVerificationEmail', options.select, args, [ { name: 'input', - type: 'SignInInput!', + type: 'SendVerificationEmailInput!', }, ], connectionFieldsMap, - 'SignInPayload' + 'SendVerificationEmailPayload' ), }), - provisionTable: ( - args: ProvisionTableVariables, + forgotPassword: ( + args: ForgotPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - provisionTable: InferSelectResult | null; + forgotPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', ...buildCustomDocument( 'mutation', - 'ProvisionTable', - 'provisionTable', + 'ForgotPassword', + 'forgotPassword', options.select, args, [ { name: 'input', - type: 'ProvisionTableInput!', + type: 'ForgotPasswordInput!', }, ], connectionFieldsMap, - 'ProvisionTablePayload' + 'ForgotPasswordPayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-sdk/src/public/orm/query/index.ts b/sdk/constructive-sdk/src/public/orm/query/index.ts index 7fc254ab13..b014f09988 100644 --- a/sdk/constructive-sdk/src/public/orm/query/index.ts +++ b/sdk/constructive-sdk/src/public/orm/query/index.ts @@ -11,9 +11,9 @@ import type { User, ObjectSelect, UserSelect, + ObjectConnection, AppPermissionConnection, OrgPermissionConnection, - ObjectConnection, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -26,7 +26,7 @@ export interface OrgPermissionsGetPaddedMaskVariables { mask?: string; } export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } @@ -68,8 +68,9 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -export interface AppPermissionsGetByMaskVariables { - mask?: string; +export interface GetAllObjectsFromRootVariables { + sId?: string; + id?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -80,8 +81,10 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface OrgPermissionsGetByMaskVariables { - mask?: string; +export interface GetPathObjectsFromRootVariables { + sId?: string; + id?: string; + path?: string[]; /** Only read the first `n` values of the set. */ first?: number; /** @@ -92,9 +95,14 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; +export interface GetObjectAtPathVariables { + sId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} +export interface AppPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -105,10 +113,8 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; +export interface OrgPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -119,12 +125,6 @@ export interface GetPathObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} export function createQueryOperations(client: OrmClient) { return { currentUserId: (options?: { select?: Record }) => @@ -292,7 +292,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -547,29 +547,33 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; + getAllObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', ...buildCustomDocument( 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', }, { name: 'first', @@ -588,29 +592,37 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; + getPathObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', ...buildCustomDocument( 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', }, { name: 'first', @@ -629,82 +641,70 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, - options?: { - select?: Record; - } + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect ) => new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; + getObjectAtPath: InferSelectResult | null; }>({ client, operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', ...buildCustomDocument( 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', - options?.select, + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { - name: 'id', + name: 'storeId', type: 'UUID', }, { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', + name: 'path', + type: '[String]', }, { - name: 'after', - type: 'Cursor', + name: 'refname', + type: 'String', }, ], connectionFieldsMap, - undefined + 'Object' ), }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; + appPermissionsGetByMask: AppPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -723,45 +723,45 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; + orgPermissionsGetByMask: OrgPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', + options?.select, args, [ { - name: 'dbId', - type: 'UUID', + name: 'mask', + type: 'BitString', }, { - name: 'storeId', - type: 'UUID', + name: 'first', + type: 'Int', }, { - name: 'path', - type: '[String]', + name: 'offset', + type: 'Int', }, { - name: 'refname', - type: 'String', + name: 'after', + type: 'Cursor', }, ], connectionFieldsMap, - 'Object' + undefined ), }), currentUser: (