/* eslint-disable */
import { gql } from '@apollo/client';
import * as Apollo from '@apollo/client';
import { JsonObject, JsonValue } from 'type-fest';

export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = {
  [K in keyof T]: T[K];
};
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
  [SubKey in K]?: Maybe<T[SubKey]>;
};
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
  [SubKey in K]: Maybe<T[SubKey]>;
};
export type MakeEmpty<
  T extends { [key: string]: unknown },
  K extends keyof T,
> = { [_ in K]?: never };
export type Incremental<T> =
  | T
  | {
      [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
    };
const defaultOptions = {} as const;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
  ID: { input: string; output: string };
  String: { input: string; output: string };
  Boolean: { input: boolean; output: boolean };
  Int: { input: number; output: number };
  Float: { input: number; output: number };
  /** Represents the possible types for the name of a ConditionInput */
  CoopInputOrString: { input: string; output: string };
  Cursor: { input: string; output: string };
  /** Date represents just a date, with no time, no timezone, no offset. */
  Date: { input: Date | string; output: Date | string };
  /**
   * DateTime represents an instant, with a UTC offset, serialized in ISO 8601
   * (specifically, the profile of ISO 8601 supported by Date.toISOString()).
   * as implemented by https://www.graphql-scalars.dev/docs/scalars/date-time
   * NB: This is different from Apollo's default serialization of JS Date's, which
   * uses a string with a unix timestamp in it, so be careful when updating existing
   * fields.
   */
  DateTime: { input: Date | string; output: Date | string };
  /** Represents any JSON value (object, array, string, number, boolean, null). */
  JSON: { input: JsonValue; output: JsonValue };
  /** Represents an arbitrary json object. */
  JSONObject: { input: JsonObject; output: JsonObject };
  /** Represents a string that must be non-empty. */
  NonEmptyString: { input: string; output: string };
  /** Represents a string | float union, which is the type of a Condition's threshold */
  StringOrFloat: { input: string | number; output: string | number };
};

export type GQLAcceptAppealDecisionComponent =
  GQLManualReviewDecisionComponentBase & {
    readonly __typename: 'AcceptAppealDecisionComponent';
    readonly actionIds: ReadonlyArray<Scalars['String']['output']>;
    readonly appealId: Scalars['String']['output'];
    readonly type: GQLManualReviewDecisionType;
  };

export type GQLAction =
  | GQLCustomAction
  | GQLEnqueueAuthorToMrtAction
  | GQLEnqueueToMrtAction
  | GQLEnqueueToNcmecAction;

export type GQLActionBase = {
  readonly applyUserStrikes?: Maybe<Scalars['Boolean']['output']>;
  /**
   * Configured parameter values for this action in the context of a rule or
   * strike threshold. Null when resolved outside of a rule context.
   */
  readonly configuredParameters?: Maybe<Scalars['JSONObject']['output']>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly itemTypes: ReadonlyArray<GQLItemType>;
  readonly name: Scalars['String']['output'];
  readonly orgId: Scalars['String']['output'];
  readonly parameters: ReadonlyArray<GQLActionParameter>;
  readonly penalty: GQLUserPenaltySeverity;
};

export type GQLActionData = {
  readonly __typename: 'ActionData';
  readonly action_id?: Maybe<Scalars['String']['output']>;
  readonly count: Scalars['Int']['output'];
  readonly item_type_id?: Maybe<Scalars['String']['output']>;
  readonly policy_id?: Maybe<Scalars['String']['output']>;
  readonly rule_id?: Maybe<Scalars['String']['output']>;
  readonly source?: Maybe<Scalars['String']['output']>;
  readonly time: Scalars['String']['output'];
};

export type GQLActionNameExistsError = GQLError & {
  readonly __typename: 'ActionNameExistsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

/**
 * Definition of a single runtime parameter on an action. The moderator is
 * prompted for a value at execution time; the value is included in the
 * webhook payload under the parameter's `name`.
 */
export type GQLActionParameter = {
  readonly __typename: 'ActionParameter';
  /** Pre-filled value shown to the moderator. Shape matches `type`. */
  readonly defaultValue?: Maybe<Scalars['JSON']['output']>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly displayName: Scalars['String']['output'];
  /** NUMBER only: inclusive maximum. */
  readonly max?: Maybe<Scalars['Float']['output']>;
  /** STRING only: inclusive maximum length in characters. */
  readonly maxLength?: Maybe<Scalars['Int']['output']>;
  /** NUMBER only: inclusive minimum. */
  readonly min?: Maybe<Scalars['Float']['output']>;
  /** Key under which the value is sent in the webhook payload. */
  readonly name: Scalars['String']['output'];
  readonly options?: Maybe<ReadonlyArray<GQLActionParameterOption>>;
  readonly required: Scalars['Boolean']['output'];
  readonly type: GQLActionParameterType;
};

export type GQLActionParameterInput = {
  readonly defaultValue?: InputMaybe<Scalars['JSON']['input']>;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly displayName: Scalars['String']['input'];
  readonly max?: InputMaybe<Scalars['Float']['input']>;
  readonly maxLength?: InputMaybe<Scalars['Int']['input']>;
  readonly min?: InputMaybe<Scalars['Float']['input']>;
  readonly name: Scalars['String']['input'];
  readonly options?: InputMaybe<ReadonlyArray<GQLActionParameterOptionInput>>;
  readonly required: Scalars['Boolean']['input'];
  readonly type: GQLActionParameterType;
};

export type GQLActionParameterOption = {
  readonly __typename: 'ActionParameterOption';
  readonly label: Scalars['String']['output'];
  readonly value: Scalars['String']['output'];
};

export type GQLActionParameterOptionInput = {
  readonly label: Scalars['String']['input'];
  readonly value: Scalars['String']['input'];
};

export const GQLActionParameterType = {
  Boolean: 'BOOLEAN',
  Multiselect: 'MULTISELECT',
  Number: 'NUMBER',
  Select: 'SELECT',
  String: 'STRING',
} as const;

export type GQLActionParameterType =
  (typeof GQLActionParameterType)[keyof typeof GQLActionParameterType];
export const GQLActionSource = {
  AutomatedRule: 'AUTOMATED_RULE',
  ManualActionRun: 'MANUAL_ACTION_RUN',
  MrtDecision: 'MRT_DECISION',
  PostActions: 'POST_ACTIONS',
} as const;

export type GQLActionSource =
  (typeof GQLActionSource)[keyof typeof GQLActionSource];
export type GQLActionStatisticsFilters = {
  readonly actionIds: ReadonlyArray<Scalars['String']['input']>;
  readonly endDate: Scalars['DateTime']['input'];
  readonly itemTypeIds: ReadonlyArray<Scalars['String']['input']>;
  readonly policyIds: ReadonlyArray<Scalars['String']['input']>;
  readonly ruleIds: ReadonlyArray<Scalars['String']['input']>;
  readonly sources: ReadonlyArray<GQLActionSource>;
  readonly startDate: Scalars['DateTime']['input'];
};

export const GQLActionStatisticsGroupByColumns = {
  ActionId: 'ACTION_ID',
  ActionSource: 'ACTION_SOURCE',
  ItemTypeId: 'ITEM_TYPE_ID',
  PolicyId: 'POLICY_ID',
  RuleId: 'RULE_ID',
} as const;

export type GQLActionStatisticsGroupByColumns =
  (typeof GQLActionStatisticsGroupByColumns)[keyof typeof GQLActionStatisticsGroupByColumns];
export type GQLActionStatisticsInput = {
  readonly filterBy: GQLActionStatisticsFilters;
  readonly groupBy: GQLActionStatisticsGroupByColumns;
  readonly timeDivision: GQLMetricsTimeDivisionOptions;
  readonly timeZone: Scalars['String']['input'];
};

export type GQLAddAccessibleQueuesToUserInput = {
  readonly queueIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly userId: Scalars['ID']['input'];
};

export type GQLAddAccessibleQueuesToUserResponse =
  GQLMutateAccessibleQueuesForUserSuccessResponse;

export type GQLAddCommentFailedError = GQLError & {
  readonly __typename: 'AddCommentFailedError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLAddFavoriteMrtQueueSuccessResponse = {
  readonly __typename: 'AddFavoriteMRTQueueSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLAddFavoriteRuleResponse = GQLAddFavoriteRuleSuccessResponse;

export type GQLAddFavoriteRuleSuccessResponse = {
  readonly __typename: 'AddFavoriteRuleSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLAddManualReviewJobCommentResponse =
  GQLAddManualReviewJobCommentSuccessResponse | GQLNotFoundError;

export type GQLAddManualReviewJobCommentSuccessResponse = {
  readonly __typename: 'AddManualReviewJobCommentSuccessResponse';
  readonly comment: GQLManualReviewJobComment;
};

export type GQLAddPoliciesResponse = {
  readonly __typename: 'AddPoliciesResponse';
  readonly failures: ReadonlyArray<Scalars['String']['output']>;
  readonly policies: ReadonlyArray<GQLPolicy>;
};

export type GQLAddPolicyInput = {
  readonly enforcementGuidelines?: InputMaybe<Scalars['String']['input']>;
  readonly id?: InputMaybe<Scalars['ID']['input']>;
  readonly name: Scalars['String']['input'];
  readonly parentId?: InputMaybe<Scalars['ID']['input']>;
  readonly parentName?: InputMaybe<Scalars['String']['input']>;
  readonly policyText?: InputMaybe<Scalars['String']['input']>;
  readonly policyType?: InputMaybe<GQLPolicyType>;
};

export type GQLAggregation = {
  readonly __typename: 'Aggregation';
  readonly type: GQLAggregationType;
};

export type GQLAggregationClause = {
  readonly __typename: 'AggregationClause';
  readonly aggregation?: Maybe<GQLAggregation>;
  readonly conditionSet?: Maybe<GQLConditionSet>;
  readonly groupBy: ReadonlyArray<GQLConditionInputField>;
  readonly id: Scalars['ID']['output'];
  readonly window: GQLWindowConfiguration;
};

export type GQLAggregationClauseInput = {
  readonly aggregation: GQLAggregationInput;
  readonly conditionSet?: InputMaybe<GQLConditionSetInput>;
  readonly groupBy: ReadonlyArray<GQLConditionInputFieldInput>;
  readonly window: GQLWindowConfigurationInput;
};

export type GQLAggregationInput = {
  readonly type: GQLAggregationType;
};

export type GQLAggregationSignalArgs = {
  readonly __typename: 'AggregationSignalArgs';
  readonly aggregationClause?: Maybe<GQLAggregationClause>;
};

export type GQLAggregationSignalArgsInput = {
  readonly aggregationClause: GQLAggregationClauseInput;
};

export const GQLAggregationType = {
  Count: 'COUNT',
} as const;

export type GQLAggregationType =
  (typeof GQLAggregationType)[keyof typeof GQLAggregationType];
export type GQLAllLanguages = {
  readonly __typename: 'AllLanguages';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLAllRuleInsights = {
  readonly __typename: 'AllRuleInsights';
  readonly actionedSubmissionsByActionByDay: ReadonlyArray<GQLCountByActionByDay>;
  readonly actionedSubmissionsByDay: ReadonlyArray<GQLCountByDay>;
  readonly actionedSubmissionsByPolicyByDay: ReadonlyArray<GQLCountByPolicyByDay>;
  readonly actionedSubmissionsByTagByDay: ReadonlyArray<GQLCountByTagByDay>;
  readonly totalSubmissionsByDay: ReadonlyArray<GQLCountByDay>;
};

export type GQLApiKey = {
  readonly __typename: 'ApiKey';
  readonly createdAt: Scalars['String']['output'];
  readonly createdBy?: Maybe<Scalars['String']['output']>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly isActive: Scalars['Boolean']['output'];
  readonly lastUsedAt?: Maybe<Scalars['String']['output']>;
  readonly name: Scalars['String']['output'];
};

export const GQLAppealDecision = {
  Accept: 'ACCEPT',
  Reject: 'REJECT',
} as const;

export type GQLAppealDecision =
  (typeof GQLAppealDecision)[keyof typeof GQLAppealDecision];
export type GQLAppealEnqueueSourceInfo = {
  readonly __typename: 'AppealEnqueueSourceInfo';
  readonly kind: GQLJobCreationSourceOptions;
};

export type GQLAppealSettings = {
  readonly __typename: 'AppealSettings';
  readonly appealsCallbackBody?: Maybe<Scalars['JSONObject']['output']>;
  readonly appealsCallbackHeaders?: Maybe<Scalars['JSONObject']['output']>;
  readonly appealsCallbackUrl?: Maybe<Scalars['String']['output']>;
};

export type GQLAppealSettingsInput = {
  readonly appealsCallbackBody?: InputMaybe<Scalars['JSONObject']['input']>;
  readonly appealsCallbackHeaders?: InputMaybe<Scalars['JSONObject']['input']>;
  readonly appealsCallbackUrl?: InputMaybe<Scalars['String']['input']>;
};

export type GQLAutomaticCloseDecisionComponent =
  GQLManualReviewDecisionComponentBase & {
    readonly __typename: 'AutomaticCloseDecisionComponent';
    readonly type: GQLManualReviewDecisionType;
  };

export type GQLBacktest = {
  readonly __typename: 'Backtest';
  readonly contentItemsMatched: Scalars['Int']['output'];
  readonly contentItemsProcessed: Scalars['Int']['output'];
  readonly createdAt: Scalars['String']['output'];
  readonly id: Scalars['ID']['output'];
  readonly results?: Maybe<GQLRuleExecutionResultsConnection>;
  readonly sampleActualSize: Scalars['Int']['output'];
  readonly sampleDesiredSize: Scalars['Int']['output'];
  readonly sampleEndAt: Scalars['String']['output'];
  readonly sampleStartAt: Scalars['String']['output'];
  readonly samplingComplete: Scalars['Boolean']['output'];
  readonly status: GQLBacktestStatus;
};

export type GQLBacktestResultsArgs = {
  after?: InputMaybe<Scalars['Cursor']['input']>;
  before?: InputMaybe<Scalars['Cursor']['input']>;
  first?: InputMaybe<Scalars['Int']['input']>;
  last?: InputMaybe<Scalars['Int']['input']>;
  sort?: InputMaybe<GQLSortOrder>;
};

export const GQLBacktestStatus = {
  Canceled: 'CANCELED',
  Complete: 'COMPLETE',
  Running: 'RUNNING',
} as const;

export type GQLBacktestStatus =
  (typeof GQLBacktestStatus)[keyof typeof GQLBacktestStatus];
export type GQLBaseField = GQLField & {
  readonly __typename: 'BaseField';
  readonly container?: Maybe<GQLContainer>;
  readonly name: Scalars['String']['output'];
  readonly required: Scalars['Boolean']['output'];
  readonly type: GQLFieldType;
};

export type GQLCannotDeleteDefaultUserError = GQLError & {
  readonly __typename: 'CannotDeleteDefaultUserError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLChangePasswordError = GQLError & {
  readonly __typename: 'ChangePasswordError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLChangePasswordInput = {
  readonly currentPassword: Scalars['String']['input'];
  readonly newPassword: Scalars['String']['input'];
};

export type GQLChangePasswordResponse =
  GQLChangePasswordError | GQLChangePasswordSuccessResponse;

export type GQLChangePasswordSuccessResponse = {
  readonly __typename: 'ChangePasswordSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLCondition = GQLConditionSet | GQLLeafCondition;

export const GQLConditionConjunction = {
  And: 'AND',
  Or: 'OR',
  Xor: 'XOR',
} as const;

export type GQLConditionConjunction =
  (typeof GQLConditionConjunction)[keyof typeof GQLConditionConjunction];
export type GQLConditionInput = {
  readonly comparator?: InputMaybe<GQLValueComparator>;
  readonly conditions?: InputMaybe<ReadonlyArray<GQLConditionInput>>;
  readonly conjunction?: InputMaybe<GQLConditionConjunction>;
  readonly input?: InputMaybe<GQLConditionInputFieldInput>;
  readonly matchingValues?: InputMaybe<GQLConditionMatchingValuesInput>;
  readonly signal?: InputMaybe<GQLConditionInputSignalInput>;
  readonly threshold?: InputMaybe<Scalars['StringOrFloat']['input']>;
};

export type GQLConditionInputField = {
  readonly __typename: 'ConditionInputField';
  readonly contentTypeId?: Maybe<Scalars['String']['output']>;
  readonly contentTypeIds?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
  readonly name?: Maybe<Scalars['CoopInputOrString']['output']>;
  readonly spec?: Maybe<GQLDerivedFieldSpec>;
  readonly type: GQLConditionInputInputType;
};

export type GQLConditionInputFieldInput = {
  readonly contentTypeId?: InputMaybe<Scalars['String']['input']>;
  readonly contentTypeIds?: InputMaybe<
    ReadonlyArray<Scalars['String']['input']>
  >;
  readonly name?: InputMaybe<Scalars['CoopInputOrString']['input']>;
  readonly spec?: InputMaybe<GQLDerivedFieldSpecInput>;
  readonly type: GQLConditionInputInputType;
};

export const GQLConditionInputInputType = {
  ContentCoopInput: 'CONTENT_COOP_INPUT',
  ContentDerivedField: 'CONTENT_DERIVED_FIELD',
  ContentField: 'CONTENT_FIELD',
  FullItem: 'FULL_ITEM',
  UserId: 'USER_ID',
} as const;

export type GQLConditionInputInputType =
  (typeof GQLConditionInputInputType)[keyof typeof GQLConditionInputInputType];
export type GQLConditionInputSignalInput = {
  readonly args?: InputMaybe<GQLSignalArgsInput>;
  readonly id: Scalars['ID']['input'];
  readonly name?: InputMaybe<Scalars['String']['input']>;
  readonly subcategory?: InputMaybe<Scalars['String']['input']>;
  readonly type: Scalars['String']['input'];
};

export type GQLConditionMatchingValuesInput = {
  readonly imageBankIds?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
  readonly locationBankIds?: InputMaybe<
    ReadonlyArray<Scalars['String']['input']>
  >;
  readonly locations?: InputMaybe<ReadonlyArray<GQLLocationAreaInput>>;
  readonly strings?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
  readonly textBankIds?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
};

export const GQLConditionOutcome = {
  Errored: 'ERRORED',
  Failed: 'FAILED',
  Inapplicable: 'INAPPLICABLE',
  Passed: 'PASSED',
} as const;

export type GQLConditionOutcome =
  (typeof GQLConditionOutcome)[keyof typeof GQLConditionOutcome];
export type GQLConditionResult = {
  readonly __typename: 'ConditionResult';
  readonly matchedValue?: Maybe<Scalars['String']['output']>;
  readonly outcome: GQLConditionOutcome;
  readonly score?: Maybe<Scalars['String']['output']>;
};

export type GQLConditionSet = {
  readonly __typename: 'ConditionSet';
  readonly conditions: ReadonlyArray<GQLCondition>;
  readonly conjunction: GQLConditionConjunction;
};

export type GQLConditionSetInput = {
  readonly conditions: ReadonlyArray<GQLConditionInput>;
  readonly conjunction: GQLConditionConjunction;
};

export type GQLConditionSetWithResult = {
  readonly __typename: 'ConditionSetWithResult';
  readonly conditions: ReadonlyArray<GQLConditionWithResult>;
  readonly conjunction?: Maybe<GQLConditionConjunction>;
  readonly result?: Maybe<GQLConditionResult>;
};

export type GQLConditionWithResult =
  GQLConditionSetWithResult | GQLLeafConditionWithResult;

export type GQLContainer = {
  readonly __typename: 'Container';
  readonly containerType: GQLContainerType;
  readonly keyScalarType?: Maybe<GQLScalarType>;
  readonly valueScalarType: GQLScalarType;
};

export type GQLContainerInput = {
  readonly containerType: GQLContainerType;
  readonly keyScalarType?: InputMaybe<GQLScalarType>;
  readonly valueScalarType: GQLScalarType;
};

export const GQLContainerType = {
  Array: 'ARRAY',
  Map: 'MAP',
} as const;

export type GQLContainerType =
  (typeof GQLContainerType)[keyof typeof GQLContainerType];
export type GQLContentAppealManualReviewJobPayload = {
  readonly __typename: 'ContentAppealManualReviewJobPayload';
  readonly actionsTaken: ReadonlyArray<Scalars['String']['output']>;
  readonly additionalContentItems: ReadonlyArray<GQLContentItem>;
  readonly appealId: Scalars['String']['output'];
  readonly appealReason?: Maybe<Scalars['String']['output']>;
  readonly appealerIdentifier?: Maybe<GQLItemIdentifier>;
  readonly enqueueSourceInfo?: Maybe<GQLAppealEnqueueSourceInfo>;
  readonly item: GQLContentItem;
  readonly userScore?: Maybe<Scalars['Int']['output']>;
};

export type GQLContentItem = GQLItemBase & {
  readonly __typename: 'ContentItem';
  readonly data: Scalars['JSONObject']['output'];
  readonly id: Scalars['ID']['output'];
  readonly submissionId: Scalars['ID']['output'];
  readonly submissionTime?: Maybe<Scalars['DateTime']['output']>;
  readonly type: GQLContentItemType;
};

export type GQLContentItemType = GQLItemTypeBase & {
  readonly __typename: 'ContentItemType';
  readonly baseFields: ReadonlyArray<GQLBaseField>;
  readonly derivedFields: ReadonlyArray<GQLDerivedField>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly hiddenFields: ReadonlyArray<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly name: Scalars['String']['output'];
  readonly schemaFieldRoles: GQLContentSchemaFieldRoles;
  readonly schemaVariant: GQLItemTypeSchemaVariant;
  readonly version: Scalars['String']['output'];
};

export type GQLContentManualReviewJobPayload = {
  readonly __typename: 'ContentManualReviewJobPayload';
  readonly additionalContentItems: ReadonlyArray<GQLContentItem>;
  readonly enqueueSourceInfo?: Maybe<GQLManualReviewJobEnqueueSourceInfo>;
  readonly item: GQLContentItem;
  readonly itemThreadContentItems?: Maybe<ReadonlyArray<GQLContentItem>>;
  readonly reportHistory: ReadonlyArray<GQLReportHistoryEntry>;
  readonly reportedForReason?: Maybe<Scalars['String']['output']>;
  readonly reportedForReasons: ReadonlyArray<GQLReportedForReason>;
  readonly userScore?: Maybe<Scalars['Int']['output']>;
};

export type GQLContentRule = GQLRule & {
  readonly __typename: 'ContentRule';
  /** @deprecated Use configuredParameters on each Action instead. */
  readonly actionParameters: ReadonlyArray<GQLRuleActionParameterValues>;
  readonly actions: ReadonlyArray<GQLAction>;
  readonly backtests: ReadonlyArray<GQLBacktest>;
  readonly conditionSet: GQLConditionSet;
  readonly createdAt: Scalars['String']['output'];
  readonly creator: GQLUser;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly expirationTime?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly insights: GQLRuleInsights;
  readonly itemTypes: ReadonlyArray<GQLItemType>;
  readonly maxDailyActions?: Maybe<Scalars['Float']['output']>;
  readonly name: Scalars['String']['output'];
  readonly parentId?: Maybe<Scalars['ID']['output']>;
  readonly policies: ReadonlyArray<GQLPolicy>;
  readonly status: GQLRuleStatus;
  readonly tags?: Maybe<ReadonlyArray<Maybe<Scalars['String']['output']>>>;
  readonly updatedAt: Scalars['String']['output'];
};

export type GQLContentRuleBacktestsArgs = {
  ids?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
};

export type GQLContentSchemaFieldRoles = {
  readonly __typename: 'ContentSchemaFieldRoles';
  readonly createdAt?: Maybe<Scalars['String']['output']>;
  readonly creatorId?: Maybe<Scalars['String']['output']>;
  readonly displayName?: Maybe<Scalars['String']['output']>;
  readonly ipAddress?: Maybe<Scalars['String']['output']>;
  readonly isDeleted?: Maybe<Scalars['String']['output']>;
  readonly parentId?: Maybe<Scalars['String']['output']>;
  readonly threadId?: Maybe<Scalars['String']['output']>;
};

export type GQLContentSchemaFieldRolesInput = {
  readonly createdAt?: InputMaybe<Scalars['String']['input']>;
  readonly creatorId?: InputMaybe<Scalars['String']['input']>;
  readonly displayName?: InputMaybe<Scalars['String']['input']>;
  readonly ipAddress?: InputMaybe<Scalars['String']['input']>;
  readonly isDeleted?: InputMaybe<Scalars['String']['input']>;
  readonly parentId?: InputMaybe<Scalars['String']['input']>;
  readonly threadId?: InputMaybe<Scalars['String']['input']>;
};

export type GQLContentType = {
  readonly __typename: 'ContentType';
  readonly actions: ReadonlyArray<GQLAction>;
  readonly baseFields: ReadonlyArray<GQLBaseField>;
  readonly derivedFields: ReadonlyArray<GQLDerivedField>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly name: Scalars['String']['output'];
};

export type GQLCoopActionDecisionInput = {
  readonly _?: InputMaybe<Scalars['Boolean']['input']>;
};

export const GQLCoopInput = {
  AllText: 'ALL_TEXT',
  AnyGeohash: 'ANY_GEOHASH',
  AnyImage: 'ANY_IMAGE',
  AnyVideo: 'ANY_VIDEO',
  AuthorUser: 'AUTHOR_USER',
  PolicyId: 'POLICY_ID',
  Source: 'SOURCE',
} as const;

export type GQLCoopInput = (typeof GQLCoopInput)[keyof typeof GQLCoopInput];
export type GQLCountByActionByDay = {
  readonly __typename: 'CountByActionByDay';
  readonly action: GQLCountByActionByDayAction;
  readonly count: Scalars['Int']['output'];
  readonly date: Scalars['Date']['output'];
};

export type GQLCountByActionByDayAction = {
  readonly __typename: 'CountByActionByDayAction';
  readonly id: Scalars['ID']['output'];
  readonly name: Scalars['String']['output'];
};

export type GQLCountByDay = {
  readonly __typename: 'CountByDay';
  readonly count: Scalars['Int']['output'];
  readonly date: Scalars['Date']['output'];
};

export type GQLCountByDecisionTypeByDay = {
  readonly __typename: 'CountByDecisionTypeByDay';
  readonly count: Scalars['Int']['output'];
  readonly date: Scalars['Date']['output'];
  readonly decisionType: Scalars['String']['output'];
};

export type GQLCountByPolicyByDay = {
  readonly __typename: 'CountByPolicyByDay';
  readonly count: Scalars['Int']['output'];
  readonly date: Scalars['Date']['output'];
  readonly policy: GQLCountByPolicyByDayPolicy;
};

export type GQLCountByPolicyByDayPolicy = {
  readonly __typename: 'CountByPolicyByDayPolicy';
  readonly id: Scalars['ID']['output'];
  readonly name: Scalars['String']['output'];
};

export type GQLCountByTagByDay = {
  readonly __typename: 'CountByTagByDay';
  readonly count: Scalars['Int']['output'];
  readonly date: Scalars['Date']['output'];
  readonly tag: Scalars['String']['output'];
};

export type GQLCreateActionInput = {
  readonly applyUserStrikes?: InputMaybe<Scalars['Boolean']['input']>;
  readonly callbackUrl: Scalars['String']['input'];
  readonly callbackUrlBody?: InputMaybe<Scalars['JSONObject']['input']>;
  readonly callbackUrlHeaders?: InputMaybe<Scalars['JSONObject']['input']>;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly itemTypeIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly name: Scalars['String']['input'];
  readonly parameters?: InputMaybe<ReadonlyArray<GQLActionParameterInput>>;
};

export type GQLCreateBacktestInput = {
  readonly ruleId: Scalars['ID']['input'];
  readonly sampleDesiredSize: Scalars['Int']['input'];
  readonly sampleEndAt: Scalars['String']['input'];
  readonly sampleStartAt: Scalars['String']['input'];
};

export type GQLCreateBacktestResponse = {
  readonly __typename: 'CreateBacktestResponse';
  readonly backtest: GQLBacktest;
};

export type GQLCreateContentItemTypeInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly fieldRoles: GQLContentSchemaFieldRolesInput;
  readonly fields: ReadonlyArray<GQLFieldInput>;
  readonly hiddenFields?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
  readonly name: Scalars['String']['input'];
};

export type GQLCreateContentRuleInput = {
  readonly actionIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly actionParameters?: InputMaybe<
    ReadonlyArray<GQLRuleActionParameterValuesInput>
  >;
  readonly conditionSet: GQLConditionSetInput;
  readonly contentTypeIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly expirationTime?: InputMaybe<Scalars['DateTime']['input']>;
  readonly maxDailyActions?: InputMaybe<Scalars['Float']['input']>;
  readonly name: Scalars['String']['input'];
  readonly parentId?: InputMaybe<Scalars['ID']['input']>;
  readonly policyIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly status: GQLRuleStatus;
  readonly tags: ReadonlyArray<Scalars['String']['input']>;
};

export type GQLCreateContentRuleResponse =
  GQLMutateContentRuleSuccessResponse | GQLRuleNameExistsError;

export type GQLCreateHashBankInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly enabled_ratio: Scalars['Float']['input'];
  readonly exchange?: InputMaybe<GQLExchangeConfigInput>;
  readonly name: Scalars['String']['input'];
};

export type GQLCreateLocationBankInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly locations: ReadonlyArray<GQLLocationAreaInput>;
  readonly name: Scalars['String']['input'];
};

export type GQLCreateManualReviewJobCommentInput = {
  readonly commentText: Scalars['String']['input'];
  readonly jobId: Scalars['String']['input'];
};

export type GQLCreateManualReviewQueueInput = {
  readonly autoCloseJobs: Scalars['Boolean']['input'];
  readonly clearReportsDisposition?: InputMaybe<GQLMrtClearReportsDisposition>;
  readonly clearReportsScope?: InputMaybe<GQLMrtClearReportsScope>;
  readonly clearReportsTriggerActionIds?: InputMaybe<
    ReadonlyArray<Scalars['ID']['input']>
  >;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly hiddenActionIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly isAppealsQueue: Scalars['Boolean']['input'];
  readonly name: Scalars['String']['input'];
  readonly userIds: ReadonlyArray<Scalars['ID']['input']>;
};

export type GQLCreateManualReviewQueueResponse =
  | GQLManualReviewQueueNameExistsError
  | GQLMutateManualReviewQueueSuccessResponse;

export type GQLCreateReportingRuleInput = {
  readonly actionIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly conditionSet: GQLConditionSetInput;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly itemTypeIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly name: Scalars['String']['input'];
  readonly policyIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly status: GQLReportingRuleStatus;
};

export type GQLCreateReportingRuleResponse =
  GQLMutateReportingRuleSuccessResponse | GQLReportingRuleNameExistsError;

export type GQLCreateRoutingRuleInput = {
  readonly conditionSet: GQLConditionSetInput;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly destinationQueueId: Scalars['ID']['input'];
  readonly isAppealsRule?: InputMaybe<Scalars['Boolean']['input']>;
  readonly itemTypeIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly name: Scalars['String']['input'];
  readonly sequenceNumber?: InputMaybe<Scalars['Int']['input']>;
  readonly status: GQLRoutingRuleStatus;
};

export type GQLCreateRoutingRuleResponse =
  | GQLMutateRoutingRuleSuccessResponse
  | GQLQueueDoesNotExistError
  | GQLRoutingRuleNameExistsError;

export type GQLCreateTextBankInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly name: Scalars['String']['input'];
  readonly strings: ReadonlyArray<Scalars['String']['input']>;
  readonly type: GQLTextBankType;
};

export type GQLCreateThreadItemTypeInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly fieldRoles: GQLThreadSchemaFieldRolesInput;
  readonly fields: ReadonlyArray<GQLFieldInput>;
  readonly hiddenFields?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
  readonly name: Scalars['String']['input'];
};

export type GQLCreateUserItemTypeInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly fieldRoles: GQLUserSchemaFieldRolesInput;
  readonly fields: ReadonlyArray<GQLFieldInput>;
  readonly hiddenFields?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
  readonly name: Scalars['String']['input'];
};

export type GQLCreateUserRuleInput = {
  readonly actionIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly actionParameters?: InputMaybe<
    ReadonlyArray<GQLRuleActionParameterValuesInput>
  >;
  readonly conditionSet: GQLConditionSetInput;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly expirationTime?: InputMaybe<Scalars['DateTime']['input']>;
  readonly maxDailyActions?: InputMaybe<Scalars['Float']['input']>;
  readonly name: Scalars['String']['input'];
  readonly parentId?: InputMaybe<Scalars['ID']['input']>;
  readonly policyIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly status: GQLRuleStatus;
  readonly tags: ReadonlyArray<Scalars['String']['input']>;
};

export type GQLCreateUserRuleResponse =
  GQLMutateUserRuleSuccessResponse | GQLRuleNameExistsError;

export type GQLCustomAction = GQLActionBase & {
  readonly __typename: 'CustomAction';
  readonly applyUserStrikes?: Maybe<Scalars['Boolean']['output']>;
  readonly callbackUrl: Scalars['String']['output'];
  readonly callbackUrlBody?: Maybe<Scalars['JSONObject']['output']>;
  readonly callbackUrlHeaders?: Maybe<Scalars['JSONObject']['output']>;
  readonly configuredParameters?: Maybe<Scalars['JSONObject']['output']>;
  /**
   * Deprecated alias for `parameters` retained for back-compat with the
   * initial MRT-only parameter implementation. New consumers should read
   * `parameters` instead.
   * @deprecated Use `parameters` instead.
   */
  readonly customMrtApiParams: ReadonlyArray<Maybe<GQLCustomMrtApiParamSpec>>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly itemTypes: ReadonlyArray<GQLItemType>;
  readonly name: Scalars['String']['output'];
  readonly orgId: Scalars['String']['output'];
  readonly parameters: ReadonlyArray<GQLActionParameter>;
  readonly penalty: GQLUserPenaltySeverity;
};

export type GQLCustomMrtApiParamSpec = {
  readonly __typename: 'CustomMrtApiParamSpec';
  readonly displayName: Scalars['String']['output'];
  readonly name: Scalars['String']['output'];
  readonly type: Scalars['String']['output'];
};

export const GQLDecisionActionType = {
  CustomAction: 'CUSTOM_ACTION',
  RelatedAction: 'RELATED_ACTION',
} as const;

export type GQLDecisionActionType =
  (typeof GQLDecisionActionType)[keyof typeof GQLDecisionActionType];
export type GQLDecisionCount = {
  readonly __typename: 'DecisionCount';
  readonly action_id?: Maybe<Scalars['String']['output']>;
  readonly count: Scalars['Int']['output'];
  readonly policy_id?: Maybe<Scalars['String']['output']>;
  readonly queue_id?: Maybe<Scalars['String']['output']>;
  readonly reviewer_id?: Maybe<Scalars['String']['output']>;
  readonly time: Scalars['String']['output'];
  readonly type?: Maybe<GQLManualReviewDecisionType>;
};

export type GQLDecisionCountFilterBy = {
  readonly __typename: 'DecisionCountFilterBy';
  readonly actionIds: ReadonlyArray<Scalars['String']['output']>;
  readonly endDate: Scalars['DateTime']['output'];
  readonly filteredDecisionActionType?: Maybe<
    ReadonlyArray<GQLDecisionActionType>
  >;
  readonly itemTypeIds: ReadonlyArray<Scalars['String']['output']>;
  readonly policyIds: ReadonlyArray<Scalars['String']['output']>;
  readonly queueIds: ReadonlyArray<Scalars['String']['output']>;
  readonly reviewerIds: ReadonlyArray<Scalars['String']['output']>;
  readonly startDate: Scalars['DateTime']['output'];
  readonly type: ReadonlyArray<GQLManualReviewDecisionType>;
};

export type GQLDecisionCountFilterByInput = {
  readonly actionIds: ReadonlyArray<Scalars['String']['input']>;
  readonly endDate: Scalars['DateTime']['input'];
  readonly filteredDecisionActionType?: InputMaybe<
    ReadonlyArray<GQLDecisionActionType>
  >;
  readonly itemTypeIds: ReadonlyArray<Scalars['String']['input']>;
  readonly policyIds: ReadonlyArray<Scalars['String']['input']>;
  readonly queueIds: ReadonlyArray<Scalars['String']['input']>;
  readonly reviewerIds: ReadonlyArray<Scalars['String']['input']>;
  readonly startDate: Scalars['DateTime']['input'];
  readonly type: ReadonlyArray<GQLManualReviewDecisionType>;
};

export const GQLDecisionCountGroupByColumns = {
  PolicyId: 'POLICY_ID',
  QueueId: 'QUEUE_ID',
  ReviewerId: 'REVIEWER_ID',
  Type: 'TYPE',
} as const;

export type GQLDecisionCountGroupByColumns =
  (typeof GQLDecisionCountGroupByColumns)[keyof typeof GQLDecisionCountGroupByColumns];
export type GQLDecisionCountSettingsInput = {
  readonly filterBy: GQLDecisionCountFilterByInput;
  readonly groupBy: ReadonlyArray<GQLDecisionCountGroupByColumns>;
  readonly timeDivision: GQLMetricsTimeDivisionOptions;
};

export type GQLDecisionCountTableFilterByInput = {
  readonly endDate: Scalars['DateTime']['input'];
  readonly queueIds: ReadonlyArray<Scalars['String']['input']>;
  readonly reviewerIds: ReadonlyArray<Scalars['String']['input']>;
  readonly startDate: Scalars['DateTime']['input'];
};

export type GQLDecisionSubmission = {
  readonly acceptAppeal?: InputMaybe<GQLSubmitAppealDecisionInput>;
  readonly ignore?: InputMaybe<GQLCoopActionDecisionInput>;
  readonly rejectAppeal?: InputMaybe<GQLSubmitAppealDecisionInput>;
  readonly submitNcmecReport?: InputMaybe<GQLSubmitNcmecReportInput>;
  readonly transformJobAndRecreateInQueue?: InputMaybe<GQLTransformJobAndRecreateInQueue>;
  readonly userAction?: InputMaybe<GQLExecuteBulkActionsInput>;
};

export const GQLDecisionsCountGroupBy = {
  QueueId: 'QUEUE_ID',
  ReviewerId: 'REVIEWER_ID',
} as const;

export type GQLDecisionsCountGroupBy =
  (typeof GQLDecisionsCountGroupBy)[keyof typeof GQLDecisionsCountGroupBy];
export type GQLDeleteAllJobsFromQueueResponse =
  GQLDeleteAllJobsFromQueueSuccessResponse | GQLDeleteAllJobsUnauthorizedError;

export type GQLDeleteAllJobsFromQueueSuccessResponse = {
  readonly __typename: 'DeleteAllJobsFromQueueSuccessResponse';
  readonly _: Scalars['Boolean']['output'];
};

export type GQLDeleteAllJobsUnauthorizedError = GQLError & {
  readonly __typename: 'DeleteAllJobsUnauthorizedError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLDeleteItemTypeResponse =
  GQLCannotDeleteDefaultUserError | GQLDeleteItemTypeSuccessResponse;

export type GQLDeleteItemTypeSuccessResponse = {
  readonly __typename: 'DeleteItemTypeSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLDeleteManualReviewJobCommentInput = {
  readonly commentId: Scalars['String']['input'];
  readonly jobId: Scalars['String']['input'];
};

export type GQLDeleteRoutingRuleInput = {
  readonly id: Scalars['ID']['input'];
  readonly isAppealsRule?: InputMaybe<Scalars['Boolean']['input']>;
};

export type GQLDequeueManualReviewJobResponse =
  GQLDequeueManualReviewJobSuccessResponse;

export type GQLDequeueManualReviewJobSuccessResponse = {
  readonly __typename: 'DequeueManualReviewJobSuccessResponse';
  readonly job: GQLManualReviewJob;
  readonly lockToken: Scalars['String']['output'];
  readonly numPendingJobs: Scalars['Int']['output'];
};

export type GQLDerivedField = GQLField & {
  readonly __typename: 'DerivedField';
  readonly container?: Maybe<GQLContainer>;
  readonly name: Scalars['String']['output'];
  readonly spec: GQLDerivedFieldSpec;
  readonly type: GQLFieldType;
};

export type GQLDerivedFieldCoopInputSource = {
  readonly __typename: 'DerivedFieldCoopInputSource';
  readonly name: GQLCoopInput;
};

export type GQLDerivedFieldCoopInputSourceInput = {
  readonly name: GQLCoopInput;
};

export const GQLDerivedFieldDerivationType = {
  VideoTranscription: 'VIDEO_TRANSCRIPTION',
} as const;

export type GQLDerivedFieldDerivationType =
  (typeof GQLDerivedFieldDerivationType)[keyof typeof GQLDerivedFieldDerivationType];
export type GQLDerivedFieldFieldSource = {
  readonly __typename: 'DerivedFieldFieldSource';
  readonly contentTypeId: Scalars['String']['output'];
  readonly name: Scalars['String']['output'];
};

export type GQLDerivedFieldFieldSourceInput = {
  readonly contentTypeId: Scalars['String']['input'];
  readonly name: Scalars['String']['input'];
};

export type GQLDerivedFieldFullItemSource = {
  readonly __typename: 'DerivedFieldFullItemSource';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLDerivedFieldFullItemSourceInput = {
  readonly _?: InputMaybe<Scalars['Boolean']['input']>;
};

export type GQLDerivedFieldSource =
  | GQLDerivedFieldCoopInputSource
  | GQLDerivedFieldFieldSource
  | GQLDerivedFieldFullItemSource;

export type GQLDerivedFieldSourceInput = {
  readonly contentCoopInput?: InputMaybe<GQLDerivedFieldCoopInputSourceInput>;
  readonly contentField?: InputMaybe<GQLDerivedFieldFieldSourceInput>;
  readonly fullItem?: InputMaybe<GQLDerivedFieldFullItemSourceInput>;
};

export type GQLDerivedFieldSpec = {
  readonly __typename: 'DerivedFieldSpec';
  readonly derivationType: GQLDerivedFieldDerivationType;
  readonly source: GQLDerivedFieldSource;
};

export type GQLDerivedFieldSpecInput = {
  readonly derivationType: GQLDerivedFieldDerivationType;
  readonly source: GQLDerivedFieldSourceInput;
};

export type GQLDisabledInfo = {
  readonly __typename: 'DisabledInfo';
  readonly disabled: Scalars['Boolean']['output'];
  readonly disabledMessage?: Maybe<Scalars['String']['output']>;
};

export type GQLDisabledInfoInput = {
  readonly disabled?: InputMaybe<Scalars['Boolean']['input']>;
  readonly disabledMessage?: InputMaybe<Scalars['String']['input']>;
};

export type GQLEnqueueAuthorToMrtAction = GQLActionBase & {
  readonly __typename: 'EnqueueAuthorToMrtAction';
  readonly applyUserStrikes: Scalars['Boolean']['output'];
  readonly configuredParameters?: Maybe<Scalars['JSONObject']['output']>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly itemTypes: ReadonlyArray<GQLItemType>;
  readonly name: Scalars['String']['output'];
  readonly orgId: Scalars['String']['output'];
  readonly parameters: ReadonlyArray<GQLActionParameter>;
  readonly penalty: GQLUserPenaltySeverity;
};

export type GQLEnqueueToMrtAction = GQLActionBase & {
  readonly __typename: 'EnqueueToMrtAction';
  readonly applyUserStrikes?: Maybe<Scalars['Boolean']['output']>;
  readonly configuredParameters?: Maybe<Scalars['JSONObject']['output']>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly itemTypes: ReadonlyArray<GQLItemType>;
  readonly name: Scalars['String']['output'];
  readonly orgId: Scalars['String']['output'];
  readonly parameters: ReadonlyArray<GQLActionParameter>;
  readonly penalty: GQLUserPenaltySeverity;
};

export type GQLEnqueueToNcmecAction = GQLActionBase & {
  readonly __typename: 'EnqueueToNcmecAction';
  readonly applyUserStrikes?: Maybe<Scalars['Boolean']['output']>;
  readonly configuredParameters?: Maybe<Scalars['JSONObject']['output']>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly itemTypes: ReadonlyArray<GQLItemType>;
  readonly name: Scalars['String']['output'];
  readonly orgId: Scalars['String']['output'];
  readonly parameters: ReadonlyArray<GQLActionParameter>;
  readonly penalty: GQLUserPenaltySeverity;
};

export type GQLEnumSignalOutputType = {
  readonly __typename: 'EnumSignalOutputType';
  readonly enum: ReadonlyArray<Scalars['String']['output']>;
  readonly ordered: Scalars['Boolean']['output'];
  readonly scalarType: GQLScalarType;
};

/** Base type for all errors. */
export type GQLError = {
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLExchangeApiInfo = {
  readonly __typename: 'ExchangeApiInfo';
  readonly has_auth: Scalars['Boolean']['output'];
  readonly name: Scalars['String']['output'];
  readonly supports_auth: Scalars['Boolean']['output'];
};

export type GQLExchangeApiSchema = {
  readonly __typename: 'ExchangeApiSchema';
  readonly config_schema: GQLExchangeSchemaSection;
  readonly credentials_schema?: Maybe<GQLExchangeSchemaSection>;
};

export type GQLExchangeConfigInput = {
  readonly api_name: Scalars['String']['input'];
  readonly config_json: Scalars['String']['input'];
  readonly credentials_json?: InputMaybe<Scalars['String']['input']>;
};

export type GQLExchangeFieldDescriptor = {
  readonly __typename: 'ExchangeFieldDescriptor';
  readonly choices?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
  readonly default?: Maybe<Scalars['JSON']['output']>;
  readonly help?: Maybe<Scalars['String']['output']>;
  readonly name: Scalars['String']['output'];
  readonly required: Scalars['Boolean']['output'];
  readonly type: Scalars['String']['output'];
};

export type GQLExchangeInfo = {
  readonly __typename: 'ExchangeInfo';
  readonly api: Scalars['String']['output'];
  readonly enabled: Scalars['Boolean']['output'];
  readonly error?: Maybe<Scalars['String']['output']>;
  readonly fetched_items?: Maybe<Scalars['Int']['output']>;
  readonly has_auth: Scalars['Boolean']['output'];
  readonly is_fetching?: Maybe<Scalars['Boolean']['output']>;
  readonly last_fetch_succeeded?: Maybe<Scalars['Boolean']['output']>;
  readonly last_fetch_time?: Maybe<Scalars['String']['output']>;
  readonly up_to_date?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLExchangeSchemaSection = {
  readonly __typename: 'ExchangeSchemaSection';
  readonly fields: ReadonlyArray<GQLExchangeFieldDescriptor>;
};

export type GQLExecuteActionResponse = {
  readonly __typename: 'ExecuteActionResponse';
  readonly actionId: Scalars['String']['output'];
  readonly itemId: Scalars['String']['output'];
  readonly success: Scalars['Boolean']['output'];
};

export type GQLExecuteBulkActionInput = {
  readonly actionIds: ReadonlyArray<Scalars['String']['input']>;
  readonly itemIds: ReadonlyArray<Scalars['String']['input']>;
  readonly itemTypeId: Scalars['String']['input'];
  /**
   * Optional moderator-authored note explaining why this action was taken.
   * Sent to the action's webhook as `actorNote` and persisted to the action
   * execution audit log.
   */
  readonly note?: InputMaybe<Scalars['String']['input']>;
  /**
   * Optional map of `actionId` -> `{ paramName: value }` carrying
   * moderator-supplied runtime parameter values. Each map is validated against
   * the action's parameter spec server-side before publish; invalid values
   * reject the entire request.
   */
  readonly parameters?: InputMaybe<Scalars['JSONObject']['input']>;
  readonly policyIds: ReadonlyArray<Scalars['String']['input']>;
};

export type GQLExecuteBulkActionResponse = {
  readonly __typename: 'ExecuteBulkActionResponse';
  readonly results: ReadonlyArray<GQLExecuteActionResponse>;
};

export type GQLExecuteBulkActionsInput = {
  readonly actionIds: ReadonlyArray<Scalars['String']['input']>;
  readonly actionIdsToMrtApiParamDecisionPayload?: InputMaybe<
    Scalars['JSONObject']['input']
  >;
  readonly itemIds: ReadonlyArray<Scalars['String']['input']>;
  readonly itemTypeId: Scalars['String']['input'];
  readonly policyIds: ReadonlyArray<Scalars['String']['input']>;
};

export type GQLField = {
  readonly container?: Maybe<GQLContainer>;
  readonly name: Scalars['String']['output'];
  readonly type: GQLFieldType;
};

export type GQLFieldInput = {
  readonly container?: InputMaybe<GQLContainerInput>;
  readonly name: Scalars['String']['input'];
  readonly required: Scalars['Boolean']['input'];
  readonly type: GQLFieldType;
};

export const GQLFieldType = {
  Array: 'ARRAY',
  Audio: 'AUDIO',
  Boolean: 'BOOLEAN',
  Datetime: 'DATETIME',
  EmailAddress: 'EMAIL_ADDRESS',
  Geohash: 'GEOHASH',
  Id: 'ID',
  Image: 'IMAGE',
  IpAddress: 'IP_ADDRESS',
  Map: 'MAP',
  Media: 'MEDIA',
  Number: 'NUMBER',
  PolicyId: 'POLICY_ID',
  RelatedItem: 'RELATED_ITEM',
  String: 'STRING',
  Url: 'URL',
  UserId: 'USER_ID',
  Video: 'VIDEO',
} as const;

export type GQLFieldType = (typeof GQLFieldType)[keyof typeof GQLFieldType];
export const GQLForgotPasswordError = {
  Other: 'OTHER',
  UserNotFound: 'USER_NOT_FOUND',
} as const;

export type GQLForgotPasswordError =
  (typeof GQLForgotPasswordError)[keyof typeof GQLForgotPasswordError];
export type GQLGetDecisionCountInput = {
  readonly filterBy: GQLDecisionCountFilterByInput;
  readonly groupBy: ReadonlyArray<GQLDecisionCountGroupByColumns>;
  readonly timeDivision: GQLMetricsTimeDivisionOptions;
  readonly timeZone: Scalars['String']['input'];
};

export type GQLGetDecisionCountSettings = {
  readonly __typename: 'GetDecisionCountSettings';
  readonly filterBy: GQLDecisionCountFilterBy;
  readonly groupBy: ReadonlyArray<GQLDecisionCountGroupByColumns>;
  readonly metric: GQLManualReviewChartMetric;
  readonly timeDivision: GQLMetricsTimeDivisionOptions;
  readonly title: Scalars['String']['output'];
};

export type GQLGetDecisionCountsTableInput = {
  readonly filterBy: GQLDecisionCountTableFilterByInput;
  readonly groupBy: GQLDecisionsCountGroupBy;
  readonly timeZone: Scalars['String']['input'];
};

export type GQLGetFullReportingRuleResultForItemResponse =
  GQLNotFoundError | GQLReportingRuleExecutionResult;

export type GQLGetFullResultForItemInput = {
  readonly date?: InputMaybe<Scalars['String']['input']>;
  readonly item: GQLItemIdentifierInput;
  readonly lookback?: InputMaybe<GQLLookbackVersion>;
  readonly ruleId: Scalars['ID']['input'];
};

export type GQLGetFullResultForItemResponse =
  GQLNotFoundError | GQLRuleExecutionResult;

export type GQLGetJobCreationCountInput = {
  readonly filterBy: GQLJobCreationFilterByInput;
  readonly groupBy: ReadonlyArray<GQLJobCreationGroupByColumns>;
  readonly timeDivision: GQLMetricsTimeDivisionOptions;
  readonly timeZone: Scalars['String']['input'];
};

export type GQLGetJobCreationCountSettings = {
  readonly __typename: 'GetJobCreationCountSettings';
  readonly filterBy: GQLJobCreationFilterBy;
  readonly groupBy: ReadonlyArray<GQLJobCreationGroupByColumns>;
  readonly metric: GQLManualReviewChartMetric;
  readonly timeDivision: GQLMetricsTimeDivisionOptions;
  readonly title: Scalars['String']['output'];
};

export type GQLGetResolvedJobCountInput = {
  readonly filterBy: GQLJobCountFilterByInput;
  readonly groupBy: ReadonlyArray<GQLJobCountGroupByColumns>;
  readonly timeDivision: GQLMetricsTimeDivisionOptions;
  readonly timeZone: Scalars['String']['input'];
};

export type GQLGetSkippedJobCountInput = {
  readonly filterBy: GQLSkippedJobFilterByInput;
  readonly groupBy: ReadonlyArray<GQLSkippedJobCountGroupByColumns>;
  readonly timeDivision: GQLMetricsTimeDivisionOptions;
  readonly timeZone: Scalars['String']['input'];
};

export type GQLGoogleContentSafetyApiIntegrationApiCredential = {
  readonly __typename: 'GoogleContentSafetyApiIntegrationApiCredential';
  readonly apiKey: Scalars['String']['output'];
};

export type GQLGoogleContentSafetyApiIntegrationApiCredentialInput = {
  readonly apiKey: Scalars['String']['input'];
};

export type GQLGooglePlaceLocationInfo = {
  readonly __typename: 'GooglePlaceLocationInfo';
  readonly id: Scalars['ID']['output'];
};

export type GQLHashBank = {
  readonly __typename: 'HashBank';
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly enabled_ratio: Scalars['Float']['output'];
  readonly exchange?: Maybe<GQLExchangeInfo>;
  readonly hma_name: Scalars['String']['output'];
  readonly id: Scalars['ID']['output'];
  readonly name: Scalars['String']['output'];
  readonly org_id: Scalars['String']['output'];
};

export type GQLIgnoreDecisionComponent =
  GQLManualReviewDecisionComponentBase & {
    readonly __typename: 'IgnoreDecisionComponent';
    readonly type: GQLManualReviewDecisionType;
  };

export const GQLIntegration = {
  GoogleContentSafetyApi: 'GOOGLE_CONTENT_SAFETY_API',
  OpenAi: 'OPEN_AI',
  Zentropi: 'ZENTROPI',
} as const;

export type GQLIntegration =
  (typeof GQLIntegration)[keyof typeof GQLIntegration];
export type GQLIntegrationApiCredential =
  | GQLGoogleContentSafetyApiIntegrationApiCredential
  | GQLOpenAiIntegrationApiCredential
  | GQLPluginIntegrationApiCredential
  | GQLZentropiIntegrationApiCredential;

export type GQLIntegrationApiCredentialInput = {
  readonly googleContentSafetyApi?: InputMaybe<GQLGoogleContentSafetyApiIntegrationApiCredentialInput>;
  readonly openAi?: InputMaybe<GQLOpenAiIntegrationApiCredentialInput>;
  readonly zentropi?: InputMaybe<GQLZentropiIntegrationApiCredentialInput>;
};

export type GQLIntegrationConfig = {
  readonly __typename: 'IntegrationConfig';
  readonly apiCredential: GQLIntegrationApiCredential;
  readonly docsUrl: Scalars['String']['output'];
  readonly logoUrl?: Maybe<Scalars['String']['output']>;
  readonly logoWithBackgroundUrl?: Maybe<Scalars['String']['output']>;
  readonly modelCard: GQLModelCard;
  readonly modelCardLearnMoreUrl?: Maybe<Scalars['String']['output']>;
  readonly name: Scalars['String']['output'];
  readonly requiresConfig: Scalars['Boolean']['output'];
  readonly title: Scalars['String']['output'];
};

export type GQLIntegrationConfigQueryResponse =
  | GQLIntegrationConfigSuccessResult
  | GQLIntegrationConfigUnsupportedIntegrationError;

export type GQLIntegrationConfigSuccessResult = {
  readonly __typename: 'IntegrationConfigSuccessResult';
  readonly config?: Maybe<GQLIntegrationConfig>;
};

export type GQLIntegrationConfigTooManyCredentialsError = GQLError & {
  readonly __typename: 'IntegrationConfigTooManyCredentialsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLIntegrationConfigUnsupportedIntegrationError = GQLError & {
  readonly __typename: 'IntegrationConfigUnsupportedIntegrationError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLIntegrationEmptyInputCredentialsError = GQLError & {
  readonly __typename: 'IntegrationEmptyInputCredentialsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLIntegrationMetadata = {
  readonly __typename: 'IntegrationMetadata';
  readonly docsUrl: Scalars['String']['output'];
  readonly logoUrl?: Maybe<Scalars['String']['output']>;
  readonly logoWithBackgroundUrl?: Maybe<Scalars['String']['output']>;
  readonly name: Scalars['String']['output'];
  readonly requiresConfig: Scalars['Boolean']['output'];
  readonly title: Scalars['String']['output'];
};

export type GQLIntegrationNoInputCredentialsError = GQLError & {
  readonly __typename: 'IntegrationNoInputCredentialsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLInvalidateReportsFromReporterInput = {
  /**
   * Scopes the sweep to a single MRT job. When omitted, every pending job
   * in the caller's org is scanned.
   */
  readonly jobId?: InputMaybe<Scalars['ID']['input']>;
  readonly reason?: InputMaybe<Scalars['String']['input']>;
  readonly reporter: GQLReporterIdInput;
};

export type GQLInvalidateReportsFromReporterSuccessResponse = {
  readonly __typename: 'InvalidateReportsFromReporterSuccessResponse';
  readonly jobsDeleted: Scalars['Int']['output'];
  readonly jobsScanned: Scalars['Int']['output'];
  readonly jobsScrubbed: Scalars['Int']['output'];
  readonly queuesScanned: Scalars['Int']['output'];
  readonly reportsRemoved: Scalars['Int']['output'];
  /** True when a queue exceeded the per-queue scan cap, so the sweep was partial. */
  readonly truncated: Scalars['Boolean']['output'];
};

export type GQLInviteUserInput = {
  readonly email: Scalars['String']['input'];
  readonly role: GQLUserRole;
};

export type GQLInviteUserToken = {
  readonly __typename: 'InviteUserToken';
  readonly email: Scalars['String']['output'];
  readonly orgId: Scalars['String']['output'];
  readonly role: GQLUserRole;
  readonly samlEnabled: Scalars['Boolean']['output'];
  readonly token: Scalars['String']['output'];
};

export type GQLInviteUserTokenExpiredError = GQLError & {
  readonly __typename: 'InviteUserTokenExpiredError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLInviteUserTokenMissingError = GQLError & {
  readonly __typename: 'InviteUserTokenMissingError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLInviteUserTokenResponse =
  | GQLInviteUserTokenExpiredError
  | GQLInviteUserTokenMissingError
  | GQLInviteUserTokenSuccessResponse;

export type GQLInviteUserTokenSuccessResponse = {
  readonly __typename: 'InviteUserTokenSuccessResponse';
  readonly tokenData: GQLInviteUserToken;
};

export type GQLIpAddress = {
  readonly __typename: 'IpAddress';
  readonly ip: Scalars['String']['output'];
  readonly port?: Maybe<Scalars['Int']['output']>;
};

export type GQLIpAddressInput = {
  readonly ip: Scalars['String']['input'];
  readonly port?: InputMaybe<Scalars['Int']['input']>;
};

export type GQLItem = GQLContentItem | GQLThreadItem | GQLUserItem;

export type GQLItemAction = {
  readonly __typename: 'ItemAction';
  readonly actionId: Scalars['ID']['output'];
  readonly actorId?: Maybe<Scalars['ID']['output']>;
  readonly itemCreatorId?: Maybe<Scalars['ID']['output']>;
  readonly itemCreatorTypeId?: Maybe<Scalars['ID']['output']>;
  readonly itemId: Scalars['ID']['output'];
  readonly itemTypeId: Scalars['ID']['output'];
  readonly jobId?: Maybe<Scalars['ID']['output']>;
  readonly policies: ReadonlyArray<Scalars['String']['output']>;
  readonly ruleIds: ReadonlyArray<Scalars['ID']['output']>;
  readonly ts: Scalars['DateTime']['output'];
};

export type GQLItemBase = {
  readonly data: Scalars['JSONObject']['output'];
  readonly id: Scalars['ID']['output'];
  readonly submissionId: Scalars['ID']['output'];
  readonly submissionTime?: Maybe<Scalars['DateTime']['output']>;
  readonly type: GQLItemTypeBase;
};

export type GQLItemHistoryResponse = GQLItemHistoryResult | GQLNotFoundError;

export type GQLItemHistoryResult = {
  readonly __typename: 'ItemHistoryResult';
  readonly executions: ReadonlyArray<GQLRuleExecutionResult>;
  readonly item: GQLItem;
};

export type GQLItemIdentifier = {
  readonly __typename: 'ItemIdentifier';
  readonly id: Scalars['String']['output'];
  readonly typeId: Scalars['String']['output'];
};

export type GQLItemIdentifierInput = {
  readonly id: Scalars['String']['input'];
  readonly typeId: Scalars['String']['input'];
};

export type GQLItemInput = {
  readonly data: Scalars['JSONObject']['input'];
  readonly itemId: Scalars['NonEmptyString']['input'];
  readonly itemType: GQLItemTypeIdentifierInput;
};

export type GQLItemSubmissions = {
  readonly __typename: 'ItemSubmissions';
  /**
   * True when this item was synthesized server-side from indirect references
   * rather than a real submission. `latest.data` is empty when set.
   */
  readonly isSynthetic?: Maybe<Scalars['Boolean']['output']>;
  readonly latest: GQLItem;
  readonly prior?: Maybe<ReadonlyArray<GQLItem>>;
};

export type GQLItemType =
  GQLContentItemType | GQLThreadItemType | GQLUserItemType;

export type GQLItemTypeBase = {
  readonly baseFields: ReadonlyArray<GQLBaseField>;
  readonly derivedFields: ReadonlyArray<GQLDerivedField>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly hiddenFields: ReadonlyArray<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly name: Scalars['String']['output'];
  readonly schemaVariant: GQLItemTypeSchemaVariant;
  readonly version: Scalars['String']['output'];
};

export type GQLItemTypeIdentifier = {
  readonly __typename: 'ItemTypeIdentifier';
  readonly id: Scalars['String']['output'];
  readonly schemaVariant: GQLItemTypeSchemaVariant;
  readonly version: Scalars['NonEmptyString']['output'];
};

export type GQLItemTypeIdentifierInput = {
  readonly id: Scalars['NonEmptyString']['input'];
  readonly schemaVariant: GQLItemTypeSchemaVariantInput;
  readonly version: Scalars['NonEmptyString']['input'];
};

export type GQLItemTypeNameAlreadyExistsError = GQLError & {
  readonly __typename: 'ItemTypeNameAlreadyExistsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export const GQLItemTypeSchemaVariant = {
  Original: 'ORIGINAL',
  Partial: 'PARTIAL',
} as const;

export type GQLItemTypeSchemaVariant =
  (typeof GQLItemTypeSchemaVariant)[keyof typeof GQLItemTypeSchemaVariant];
export const GQLItemTypeSchemaVariantInput = {
  Original: 'ORIGINAL',
} as const;

export type GQLItemTypeSchemaVariantInput =
  (typeof GQLItemTypeSchemaVariantInput)[keyof typeof GQLItemTypeSchemaVariantInput];
export type GQLItemWithParents = {
  readonly __typename: 'ItemWithParents';
  readonly item: GQLItemSubmissions;
  readonly parents: ReadonlyArray<GQLItemSubmissions>;
};

export type GQLJobCountFilterByInput = {
  readonly endDate: Scalars['DateTime']['input'];
  readonly queueIds: ReadonlyArray<Scalars['String']['input']>;
  readonly reviewerIds: ReadonlyArray<Scalars['String']['input']>;
  readonly startDate: Scalars['DateTime']['input'];
};

export const GQLJobCountGroupByColumns = {
  QueueId: 'QUEUE_ID',
  ReviewerId: 'REVIEWER_ID',
} as const;

export type GQLJobCountGroupByColumns =
  (typeof GQLJobCountGroupByColumns)[keyof typeof GQLJobCountGroupByColumns];
export type GQLJobCreationCount = {
  readonly __typename: 'JobCreationCount';
  readonly count: Scalars['Int']['output'];
  readonly itemTypeId?: Maybe<Scalars['String']['output']>;
  readonly policyId?: Maybe<Scalars['String']['output']>;
  readonly queueId?: Maybe<Scalars['String']['output']>;
  readonly ruleId?: Maybe<Scalars['String']['output']>;
  readonly source?: Maybe<GQLJobCreationSourceOptions>;
  readonly time: Scalars['String']['output'];
};

export type GQLJobCreationFilterBy = {
  readonly __typename: 'JobCreationFilterBy';
  readonly endDate: Scalars['DateTime']['output'];
  readonly itemTypeIds: ReadonlyArray<Scalars['String']['output']>;
  readonly policyIds: ReadonlyArray<Scalars['String']['output']>;
  readonly queueIds: ReadonlyArray<Scalars['String']['output']>;
  readonly ruleIds: ReadonlyArray<Scalars['String']['output']>;
  readonly sources: ReadonlyArray<GQLJobCreationSourceOptions>;
  readonly startDate: Scalars['DateTime']['output'];
};

export type GQLJobCreationFilterByInput = {
  readonly endDate: Scalars['DateTime']['input'];
  readonly itemTypeIds: ReadonlyArray<Scalars['String']['input']>;
  readonly policyIds: ReadonlyArray<Scalars['String']['input']>;
  readonly queueIds: ReadonlyArray<Scalars['String']['input']>;
  readonly ruleIds: ReadonlyArray<Scalars['String']['input']>;
  readonly sources: ReadonlyArray<GQLJobCreationSourceOptions>;
  readonly startDate: Scalars['DateTime']['input'];
};

export const GQLJobCreationGroupByColumns = {
  ItemTypeId: 'ITEM_TYPE_ID',
  PolicyId: 'POLICY_ID',
  QueueId: 'QUEUE_ID',
  Source: 'SOURCE',
} as const;

export type GQLJobCreationGroupByColumns =
  (typeof GQLJobCreationGroupByColumns)[keyof typeof GQLJobCreationGroupByColumns];
export type GQLJobCreationSettingsInput = {
  readonly filterBy: GQLJobCreationFilterByInput;
  readonly groupBy: ReadonlyArray<GQLJobCreationGroupByColumns>;
  readonly timeDivision: GQLMetricsTimeDivisionOptions;
};

export const GQLJobCreationSourceOptions = {
  Appeal: 'APPEAL',
  MrtJob: 'MRT_JOB',
  PostActions: 'POST_ACTIONS',
  Report: 'REPORT',
  RuleExecution: 'RULE_EXECUTION',
} as const;

export type GQLJobCreationSourceOptions =
  (typeof GQLJobCreationSourceOptions)[keyof typeof GQLJobCreationSourceOptions];
export type GQLJobHasAlreadyBeenSubmittedError = GQLError & {
  readonly __typename: 'JobHasAlreadyBeenSubmittedError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export const GQLLanguage = {
  Abkhazian: 'ABKHAZIAN',
  Afar: 'AFAR',
  Afrikaans: 'AFRIKAANS',
  Akan: 'AKAN',
  Albanian: 'ALBANIAN',
  Amharic: 'AMHARIC',
  Arabic: 'ARABIC',
  Aragonese: 'ARAGONESE',
  Armenian: 'ARMENIAN',
  Assamese: 'ASSAMESE',
  Avaric: 'AVARIC',
  Avestan: 'AVESTAN',
  Aymara: 'AYMARA',
  Azerbaijani: 'AZERBAIJANI',
  Azeri: 'AZERI',
  Bambara: 'BAMBARA',
  Bashkir: 'BASHKIR',
  Basque: 'BASQUE',
  Belarusian: 'BELARUSIAN',
  Bengali: 'BENGALI',
  Bihari: 'BIHARI',
  Bislama: 'BISLAMA',
  Bokmal: 'BOKMAL',
  Bosnian: 'BOSNIAN',
  Breton: 'BRETON',
  Bulgarian: 'BULGARIAN',
  Burmese: 'BURMESE',
  Catalan: 'CATALAN',
  Cebuano: 'CEBUANO',
  CentralKhmer: 'CENTRAL_KHMER',
  Chamorro: 'CHAMORRO',
  Chechen: 'CHECHEN',
  Chinese: 'CHINESE',
  ChurchSlavic: 'CHURCH_SLAVIC',
  Chuvash: 'CHUVASH',
  Cornish: 'CORNISH',
  Corsican: 'CORSICAN',
  Cree: 'CREE',
  Croatian: 'CROATIAN',
  Czech: 'CZECH',
  Danish: 'DANISH',
  Dhivehi: 'DHIVEHI',
  Dutch: 'DUTCH',
  Dzongkha: 'DZONGKHA',
  English: 'ENGLISH',
  Esperanto: 'ESPERANTO',
  Estonian: 'ESTONIAN',
  Ewe: 'EWE',
  Faroese: 'FAROESE',
  Farsi: 'FARSI',
  Fijian: 'FIJIAN',
  Finnish: 'FINNISH',
  Flemish: 'FLEMISH',
  French: 'FRENCH',
  Fulah: 'FULAH',
  Gaelic: 'GAELIC',
  Galician: 'GALICIAN',
  Ganda: 'GANDA',
  Georgian: 'GEORGIAN',
  German: 'GERMAN',
  Greek: 'GREEK',
  Guarani: 'GUARANI',
  Gujarati: 'GUJARATI',
  Haitian: 'HAITIAN',
  Hausa: 'HAUSA',
  Hawaiian: 'HAWAIIAN',
  Hebrew: 'HEBREW',
  Herero: 'HERERO',
  Hindi: 'HINDI',
  HiriMotu: 'HIRI_MOTU',
  Hungarian: 'HUNGARIAN',
  Icelandic: 'ICELANDIC',
  Ido: 'IDO',
  Igbo: 'IGBO',
  Indonesian: 'INDONESIAN',
  Interlingua: 'INTERLINGUA',
  Inuktitut: 'INUKTITUT',
  Inupiaq: 'INUPIAQ',
  Irish: 'IRISH',
  Italian: 'ITALIAN',
  Japanese: 'JAPANESE',
  Javanese: 'JAVANESE',
  Kalaallisut: 'KALAALLISUT',
  Kannada: 'KANNADA',
  Kanuri: 'KANURI',
  Kashmiri: 'KASHMIRI',
  Kazakh: 'KAZAKH',
  Kikuyu: 'KIKUYU',
  Kinyarwanda: 'KINYARWANDA',
  Komi: 'KOMI',
  Kongo: 'KONGO',
  Korean: 'KOREAN',
  Kuanyama: 'KUANYAMA',
  Kurdish: 'KURDISH',
  Kyrgyz: 'KYRGYZ',
  Lao: 'LAO',
  Latin: 'LATIN',
  Latvian: 'LATVIAN',
  Limburgan: 'LIMBURGAN',
  Lingala: 'LINGALA',
  Lithuanian: 'LITHUANIAN',
  LubaKatanga: 'LUBA_KATANGA',
  Luxembourgish: 'LUXEMBOURGISH',
  Macedonian: 'MACEDONIAN',
  Malagasy: 'MALAGASY',
  Malay: 'MALAY',
  Malayalam: 'MALAYALAM',
  Maltese: 'MALTESE',
  Manx: 'MANX',
  Maori: 'MAORI',
  Marathi: 'MARATHI',
  Marshallese: 'MARSHALLESE',
  Moldovian: 'MOLDOVIAN',
  Mongolian: 'MONGOLIAN',
  Nauru: 'NAURU',
  Navajo: 'NAVAJO',
  Ndonga: 'NDONGA',
  Nepali: 'NEPALI',
  NorthernSami: 'NORTHERN_SAMI',
  NorthNdebele: 'NORTH_NDEBELE',
  Norwegian: 'NORWEGIAN',
  Nyanja: 'NYANJA',
  Occitan: 'OCCITAN',
  Ojibwa: 'OJIBWA',
  Oriya: 'ORIYA',
  Oromo: 'OROMO',
  Ossetian: 'OSSETIAN',
  Pali: 'PALI',
  Pashto: 'PASHTO',
  Persian: 'PERSIAN',
  Pidgin: 'PIDGIN',
  Polish: 'POLISH',
  Portuguese: 'PORTUGUESE',
  Punjabi: 'PUNJABI',
  Quechua: 'QUECHUA',
  Romanian: 'ROMANIAN',
  Romansh: 'ROMANSH',
  Rundi: 'RUNDI',
  Russian: 'RUSSIAN',
  Samoan: 'SAMOAN',
  Sango: 'SANGO',
  Sanskrit: 'SANSKRIT',
  Sardinian: 'SARDINIAN',
  Serbian: 'SERBIAN',
  Shona: 'SHONA',
  SichuanYi: 'SICHUAN_YI',
  Sindhi: 'SINDHI',
  Sinhalese: 'SINHALESE',
  Slovak: 'SLOVAK',
  Slovene: 'SLOVENE',
  Somali: 'SOMALI',
  SouthernSotho: 'SOUTHERN_SOTHO',
  SouthNdebele: 'SOUTH_NDEBELE',
  Spanish: 'SPANISH',
  Sundanese: 'SUNDANESE',
  Swahili: 'SWAHILI',
  Swati: 'SWATI',
  Swedish: 'SWEDISH',
  Tagalog: 'TAGALOG',
  Tahitian: 'TAHITIAN',
  Tajik: 'TAJIK',
  Tamil: 'TAMIL',
  Tatar: 'TATAR',
  Telugu: 'TELUGU',
  Thai: 'THAI',
  Tibetan: 'TIBETAN',
  Tigrinya: 'TIGRINYA',
  Tonga: 'TONGA',
  Tsonga: 'TSONGA',
  Tswana: 'TSWANA',
  Turkish: 'TURKISH',
  Turkmen: 'TURKMEN',
  Twi: 'TWI',
  Ukrainian: 'UKRAINIAN',
  Urdu: 'URDU',
  Uyghur: 'UYGHUR',
  Uzbek: 'UZBEK',
  Venda: 'VENDA',
  Vietnamese: 'VIETNAMESE',
  Volapuk: 'VOLAPUK',
  Walloon: 'WALLOON',
  Welsh: 'WELSH',
  WesternFrisian: 'WESTERN_FRISIAN',
  Wolof: 'WOLOF',
  Xhosa: 'XHOSA',
  Yiddish: 'YIDDISH',
  Yoruba: 'YORUBA',
  Zhuang: 'ZHUANG',
  Zulu: 'ZULU',
} as const;

export type GQLLanguage = (typeof GQLLanguage)[keyof typeof GQLLanguage];
export type GQLLanguages = {
  readonly __typename: 'Languages';
  readonly languages: ReadonlyArray<GQLLanguage>;
};

export type GQLLatLng = {
  readonly __typename: 'LatLng';
  readonly lat: Scalars['Float']['output'];
  readonly lng: Scalars['Float']['output'];
};

export type GQLLatLngInput = {
  readonly lat: Scalars['Float']['input'];
  readonly lng: Scalars['Float']['input'];
};

export type GQLLeafCondition = {
  readonly __typename: 'LeafCondition';
  readonly comparator?: Maybe<GQLValueComparator>;
  readonly input: GQLConditionInputField;
  readonly matchingValues?: Maybe<GQLMatchingValues>;
  readonly signal?: Maybe<GQLSignal>;
  readonly threshold?: Maybe<Scalars['StringOrFloat']['output']>;
};

export type GQLLeafConditionWithResult = {
  readonly __typename: 'LeafConditionWithResult';
  readonly comparator?: Maybe<GQLValueComparator>;
  readonly input: GQLConditionInputField;
  readonly matchingValues?: Maybe<GQLMatchingValues>;
  readonly result?: Maybe<GQLConditionResult>;
  readonly signal?: Maybe<GQLSignal>;
  readonly threshold?: Maybe<Scalars['StringOrFloat']['output']>;
};

export type GQLLocationArea = {
  readonly __typename: 'LocationArea';
  readonly bounds?: Maybe<GQLPlaceBounds>;
  readonly geometry: GQLLocationGeometry;
  readonly googlePlaceInfo?: Maybe<GQLGooglePlaceLocationInfo>;
  readonly id: Scalars['ID']['output'];
  readonly name?: Maybe<Scalars['String']['output']>;
};

export type GQLLocationAreaInput = {
  readonly bounds?: InputMaybe<GQLPlaceBoundsInput>;
  readonly geometry: GQLLocationGeometryInput;
  readonly googlePlaceId?: InputMaybe<Scalars['String']['input']>;
  readonly name?: InputMaybe<Scalars['String']['input']>;
};

export type GQLLocationBank = {
  readonly __typename: 'LocationBank';
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly locations: ReadonlyArray<GQLLocationArea>;
  readonly name: Scalars['String']['output'];
};

export type GQLLocationBankNameExistsError = GQLError & {
  readonly __typename: 'LocationBankNameExistsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLLocationGeometry = {
  readonly __typename: 'LocationGeometry';
  readonly center: GQLLatLng;
  readonly radius: Scalars['Float']['output'];
};

export type GQLLocationGeometryInput = {
  readonly center: GQLLatLngInput;
  readonly radius: Scalars['Float']['input'];
};

export type GQLLogSkipInput = {
  readonly jobId: Scalars['String']['input'];
  readonly queueId: Scalars['String']['input'];
};

export type GQLLoginIncorrectPasswordError = GQLError & {
  readonly __typename: 'LoginIncorrectPasswordError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLLoginInput = {
  readonly email: Scalars['String']['input'];
  readonly password: Scalars['String']['input'];
  readonly remember?: InputMaybe<Scalars['Boolean']['input']>;
};

export const GQLLoginMethod = {
  Password: 'PASSWORD',
  Saml: 'SAML',
} as const;

export type GQLLoginMethod =
  (typeof GQLLoginMethod)[keyof typeof GQLLoginMethod];
export type GQLLoginResponse =
  | GQLLoginIncorrectPasswordError
  | GQLLoginSsoRequiredError
  | GQLLoginSuccessResponse
  | GQLLoginUserDoesNotExistError;

export type GQLLoginSsoRequiredError = GQLError & {
  readonly __typename: 'LoginSsoRequiredError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLLoginSuccessResponse = {
  readonly __typename: 'LoginSuccessResponse';
  readonly user: GQLUser;
};

export type GQLLoginUserDoesNotExistError = GQLError & {
  readonly __typename: 'LoginUserDoesNotExistError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export const GQLLookbackVersion = {
  Latest: 'LATEST',
  Prior: 'PRIOR',
} as const;

export type GQLLookbackVersion =
  (typeof GQLLookbackVersion)[keyof typeof GQLLookbackVersion];
export type GQLManualReviewChartConfigurationsInput = {
  readonly chartConfigurations: ReadonlyArray<GQLManualReviewChartSettingsInput>;
};

export const GQLManualReviewChartMetric = {
  Decisions: 'DECISIONS',
  Jobs: 'JOBS',
} as const;

export type GQLManualReviewChartMetric =
  (typeof GQLManualReviewChartMetric)[keyof typeof GQLManualReviewChartMetric];
export type GQLManualReviewChartSettings =
  GQLGetDecisionCountSettings | GQLGetJobCreationCountSettings;

export type GQLManualReviewChartSettingsInput = {
  readonly decisionCountSettings?: InputMaybe<GQLDecisionCountSettingsInput>;
  readonly jobCreationCountSettings?: InputMaybe<GQLJobCreationSettingsInput>;
  readonly metric: GQLManualReviewChartMetric;
  readonly title: Scalars['String']['input'];
};

export type GQLManualReviewDecision = {
  readonly __typename: 'ManualReviewDecision';
  readonly createdAt: Scalars['DateTime']['output'];
  readonly decisionReason?: Maybe<Scalars['String']['output']>;
  readonly decisions: ReadonlyArray<GQLManualReviewDecisionComponent>;
  readonly id: Scalars['String']['output'];
  readonly itemId?: Maybe<Scalars['String']['output']>;
  readonly itemTypeId?: Maybe<Scalars['String']['output']>;
  readonly jobId: Scalars['String']['output'];
  readonly queueId: Scalars['String']['output'];
  readonly relatedActions: ReadonlyArray<GQLManualReviewDecisionComponent>;
  readonly reviewerId?: Maybe<Scalars['String']['output']>;
};

export type GQLManualReviewDecisionComponent =
  | GQLAcceptAppealDecisionComponent
  | GQLAutomaticCloseDecisionComponent
  | GQLIgnoreDecisionComponent
  | GQLRejectAppealDecisionComponent
  | GQLSubmitNcmecReportDecisionComponent
  | GQLTransformJobAndRecreateInQueueDecisionComponent
  | GQLUserOrRelatedActionDecisionComponent;

export type GQLManualReviewDecisionComponentBase = {
  readonly type: GQLManualReviewDecisionType;
};

export const GQLManualReviewDecisionType = {
  AcceptAppeal: 'ACCEPT_APPEAL',
  AutomaticClose: 'AUTOMATIC_CLOSE',
  CustomAction: 'CUSTOM_ACTION',
  Ignore: 'IGNORE',
  RejectAppeal: 'REJECT_APPEAL',
  RelatedAction: 'RELATED_ACTION',
  SubmitNcmecReport: 'SUBMIT_NCMEC_REPORT',
  TransformJobAndRecreateInQueue: 'TRANSFORM_JOB_AND_RECREATE_IN_QUEUE',
} as const;

export type GQLManualReviewDecisionType =
  (typeof GQLManualReviewDecisionType)[keyof typeof GQLManualReviewDecisionType];
export type GQLManualReviewExistingJob = {
  readonly __typename: 'ManualReviewExistingJob';
  readonly job: GQLManualReviewJob;
  readonly queueId: Scalars['String']['output'];
};

export type GQLManualReviewJob = {
  readonly __typename: 'ManualReviewJob';
  readonly comments: ReadonlyArray<GQLManualReviewJobComment>;
  readonly createdAt: Scalars['DateTime']['output'];
  readonly id: Scalars['ID']['output'];
  readonly numTimesReported?: Maybe<Scalars['Int']['output']>;
  readonly payload: GQLManualReviewJobPayload;
  readonly policyIds: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLManualReviewJobComment = {
  readonly __typename: 'ManualReviewJobComment';
  readonly author?: Maybe<GQLUser>;
  readonly commentText: Scalars['String']['output'];
  readonly createdAt: Scalars['DateTime']['output'];
  readonly id: Scalars['ID']['output'];
};

export type GQLManualReviewJobEnqueueSourceInfo =
  | GQLAppealEnqueueSourceInfo
  | GQLMrtJobEnqueueSourceInfo
  | GQLPostActionsEnqueueSourceInfo
  | GQLReportEnqueueSourceInfo
  | GQLRuleExecutionEnqueueSourceInfo;

export const GQLManualReviewJobKind = {
  Default: 'DEFAULT',
  Ncmec: 'NCMEC',
} as const;

export type GQLManualReviewJobKind =
  (typeof GQLManualReviewJobKind)[keyof typeof GQLManualReviewJobKind];
export type GQLManualReviewJobPayload =
  | GQLContentAppealManualReviewJobPayload
  | GQLContentManualReviewJobPayload
  | GQLNcmecManualReviewJobPayload
  | GQLThreadAppealManualReviewJobPayload
  | GQLThreadManualReviewJobPayload
  | GQLUserAppealManualReviewJobPayload
  | GQLUserManualReviewJobPayload;

export type GQLManualReviewJobWithDecisions = {
  readonly __typename: 'ManualReviewJobWithDecisions';
  readonly decision: GQLManualReviewDecision;
  readonly job: GQLManualReviewJob;
};

export type GQLManualReviewQueue = {
  readonly __typename: 'ManualReviewQueue';
  readonly autoCloseJobs: Scalars['Boolean']['output'];
  readonly clearReportsDisposition?: Maybe<GQLMrtClearReportsDisposition>;
  readonly clearReportsScope: GQLMrtClearReportsScope;
  readonly clearReportsTriggerActionIds: ReadonlyArray<Scalars['ID']['output']>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly explicitlyAssignedReviewers: ReadonlyArray<GQLUser>;
  readonly hiddenActionIds: ReadonlyArray<Scalars['ID']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly isAppealsQueue: Scalars['Boolean']['output'];
  readonly isDefaultQueue: Scalars['Boolean']['output'];
  readonly jobs: ReadonlyArray<GQLManualReviewJob>;
  readonly name: Scalars['String']['output'];
  readonly oldestJobCreatedAt?: Maybe<Scalars['DateTime']['output']>;
  readonly orgId: Scalars['ID']['output'];
  readonly pendingJobCount: Scalars['Int']['output'];
};

export type GQLManualReviewQueueJobsArgs = {
  ids?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  limit?: InputMaybe<Scalars['Int']['input']>;
};

export type GQLManualReviewQueueNameExistsError = GQLError & {
  readonly __typename: 'ManualReviewQueueNameExistsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLMatchingBankNameExistsError = GQLError & {
  readonly __typename: 'MatchingBankNameExistsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLMatchingBanks = {
  readonly __typename: 'MatchingBanks';
  readonly hashBanks: ReadonlyArray<GQLHashBank>;
  readonly locationBanks: ReadonlyArray<GQLLocationBank>;
  readonly textBanks: ReadonlyArray<GQLTextBank>;
};

export type GQLMatchingValues = {
  readonly __typename: 'MatchingValues';
  readonly imageBankIds?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
  readonly locationBankIds?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
  readonly locations?: Maybe<ReadonlyArray<GQLLocationArea>>;
  readonly strings?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
  readonly textBankIds?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
};

export type GQLMessageWithIpAddress = {
  readonly __typename: 'MessageWithIpAddress';
  readonly ipAddress: GQLIpAddress;
  readonly message: GQLContentItem;
};

export const GQLMetricsTimeDivisionOptions = {
  Day: 'DAY',
  Hour: 'HOUR',
} as const;

export type GQLMetricsTimeDivisionOptions =
  (typeof GQLMetricsTimeDivisionOptions)[keyof typeof GQLMetricsTimeDivisionOptions];
export type GQLMissingRequiredDecisionReasonError = GQLError & {
  readonly __typename: 'MissingRequiredDecisionReasonError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLMissingRequiredPolicyForDecisionError = GQLError & {
  readonly __typename: 'MissingRequiredPolicyForDecisionError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLModelCard = {
  readonly __typename: 'ModelCard';
  readonly modelName: Scalars['String']['output'];
  readonly releaseDate?: Maybe<Scalars['String']['output']>;
  readonly sections?: Maybe<ReadonlyArray<GQLModelCardSection>>;
  readonly version: Scalars['String']['output'];
};

export type GQLModelCardField = {
  readonly __typename: 'ModelCardField';
  readonly label: Scalars['String']['output'];
  readonly value: Scalars['String']['output'];
};

export type GQLModelCardSection = {
  readonly __typename: 'ModelCardSection';
  readonly fields?: Maybe<ReadonlyArray<GQLModelCardField>>;
  readonly id: Scalars['String']['output'];
  readonly subsections?: Maybe<ReadonlyArray<GQLModelCardSubsection>>;
  readonly title: Scalars['String']['output'];
};

export type GQLModelCardSubsection = {
  readonly __typename: 'ModelCardSubsection';
  readonly fields: ReadonlyArray<GQLModelCardField>;
  readonly title: Scalars['String']['output'];
};

export type GQLModeratorSafetySettingsInput = {
  readonly moderatorSafetyBlurLevel: Scalars['Int']['input'];
  readonly moderatorSafetyGrayscale: Scalars['Boolean']['input'];
  readonly moderatorSafetyMuteVideo: Scalars['Boolean']['input'];
  readonly moderatorSafetySepia: Scalars['Boolean']['input'];
};

export const GQLMrtClearReportsDisposition = {
  AutomaticClose: 'AUTOMATIC_CLOSE',
  Ignore: 'IGNORE',
  SameAction: 'SAME_ACTION',
} as const;

export type GQLMrtClearReportsDisposition =
  (typeof GQLMrtClearReportsDisposition)[keyof typeof GQLMrtClearReportsDisposition];
export const GQLMrtClearReportsScope = {
  AllQueues: 'ALL_QUEUES',
  CurrentQueue: 'CURRENT_QUEUE',
} as const;

export type GQLMrtClearReportsScope =
  (typeof GQLMrtClearReportsScope)[keyof typeof GQLMrtClearReportsScope];
export type GQLMrtJobEnqueueSourceInfo = {
  readonly __typename: 'MrtJobEnqueueSourceInfo';
  readonly kind: GQLJobCreationSourceOptions;
};

export type GQLMutateAccessibleQueuesForUserSuccessResponse = {
  readonly __typename: 'MutateAccessibleQueuesForUserSuccessResponse';
  readonly _: Scalars['Boolean']['output'];
};

export const GQLMutateActionError = {
  ActionNameExists: 'ACTION_NAME_EXISTS',
} as const;

export type GQLMutateActionError =
  (typeof GQLMutateActionError)[keyof typeof GQLMutateActionError];
export type GQLMutateActionResponse =
  GQLActionNameExistsError | GQLMutateActionSuccessResponse;

export type GQLMutateActionSuccessResponse = {
  readonly __typename: 'MutateActionSuccessResponse';
  readonly data: GQLCustomAction;
};

export type GQLMutateBankResponse = {
  readonly __typename: 'MutateBankResponse';
  readonly error?: Maybe<Scalars['String']['output']>;
  readonly success?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLMutateContentItemTypeResponse =
  GQLItemTypeNameAlreadyExistsError | GQLMutateContentTypeSuccessResponse;

export type GQLMutateContentRuleSuccessResponse = {
  readonly __typename: 'MutateContentRuleSuccessResponse';
  readonly data: GQLContentRule;
};

export type GQLMutateContentTypeSuccessResponse = {
  readonly __typename: 'MutateContentTypeSuccessResponse';
  readonly data?: Maybe<GQLContentItemType>;
};

export type GQLMutateHashBankResponse =
  GQLMatchingBankNameExistsError | GQLMutateHashBankSuccessResponse;

export type GQLMutateHashBankSuccessResponse = {
  readonly __typename: 'MutateHashBankSuccessResponse';
  readonly data: GQLHashBank;
  readonly warning?: Maybe<Scalars['String']['output']>;
};

export type GQLMutateLocationBankResponse =
  GQLLocationBankNameExistsError | GQLMutateLocationBankSuccessResponse;

export type GQLMutateLocationBankSuccessResponse = {
  readonly __typename: 'MutateLocationBankSuccessResponse';
  readonly data: GQLLocationBank;
};

export type GQLMutateManualReviewQueueSuccessResponse = {
  readonly __typename: 'MutateManualReviewQueueSuccessResponse';
  readonly data: GQLManualReviewQueue;
};

export type GQLMutateReportingRuleSuccessResponse = {
  readonly __typename: 'MutateReportingRuleSuccessResponse';
  readonly data: GQLReportingRule;
};

export type GQLMutateRoutingRuleSuccessResponse = {
  readonly __typename: 'MutateRoutingRuleSuccessResponse';
  readonly data: GQLRoutingRule;
};

export type GQLMutateRoutingRulesOrderSuccessResponse = {
  readonly __typename: 'MutateRoutingRulesOrderSuccessResponse';
  readonly data: ReadonlyArray<GQLRoutingRule>;
};

export type GQLMutateThreadItemTypeResponse =
  GQLItemTypeNameAlreadyExistsError | GQLMutateThreadTypeSuccessResponse;

export type GQLMutateThreadTypeSuccessResponse = {
  readonly __typename: 'MutateThreadTypeSuccessResponse';
  readonly data?: Maybe<GQLThreadItemType>;
};

export type GQLMutateUserItemTypeResponse =
  GQLItemTypeNameAlreadyExistsError | GQLMutateUserTypeSuccessResponse;

export type GQLMutateUserRuleSuccessResponse = {
  readonly __typename: 'MutateUserRuleSuccessResponse';
  readonly data: GQLUserRule;
};

export type GQLMutateUserTypeSuccessResponse = {
  readonly __typename: 'MutateUserTypeSuccessResponse';
  readonly data?: Maybe<GQLUserItemType>;
};

export type GQLMutation = {
  readonly __typename: 'Mutation';
  readonly addAccessibleQueuesToUser: GQLAddAccessibleQueuesToUserResponse;
  readonly addFavoriteMRTQueue: GQLAddFavoriteMrtQueueSuccessResponse;
  readonly addFavoriteRule: GQLAddFavoriteRuleSuccessResponse;
  readonly addPolicies: GQLAddPoliciesResponse;
  readonly approveUser?: Maybe<Scalars['Boolean']['output']>;
  readonly bulkExecuteActions: GQLExecuteBulkActionResponse;
  readonly changePassword: GQLChangePasswordResponse;
  readonly createAction: GQLMutateActionResponse;
  readonly createBacktest?: Maybe<GQLCreateBacktestResponse>;
  readonly createContentItemType: GQLMutateContentItemTypeResponse;
  readonly createContentRule: GQLCreateContentRuleResponse;
  readonly createHashBank: GQLMutateHashBankResponse;
  readonly createLocationBank: GQLMutateLocationBankResponse;
  readonly createManualReviewJobComment: GQLAddManualReviewJobCommentResponse;
  readonly createManualReviewQueue: GQLCreateManualReviewQueueResponse;
  readonly createReportingRule: GQLCreateReportingRuleResponse;
  readonly createRoutingRule: GQLCreateRoutingRuleResponse;
  readonly createTextBank: GQLMutateBankResponse;
  readonly createThreadItemType: GQLMutateThreadItemTypeResponse;
  readonly createUserItemType: GQLMutateUserItemTypeResponse;
  readonly createUserRule: GQLCreateUserRuleResponse;
  readonly deleteAction?: Maybe<Scalars['Boolean']['output']>;
  readonly deleteAllJobsFromQueue: GQLDeleteAllJobsFromQueueResponse;
  readonly deleteHashBank: Scalars['Boolean']['output'];
  readonly deleteInvite?: Maybe<Scalars['Boolean']['output']>;
  readonly deleteItemType: GQLDeleteItemTypeResponse;
  readonly deleteLocationBank?: Maybe<Scalars['Boolean']['output']>;
  readonly deleteManualReviewJobComment: Scalars['Boolean']['output'];
  readonly deleteManualReviewQueue: Scalars['Boolean']['output'];
  readonly deletePolicy?: Maybe<Scalars['Boolean']['output']>;
  readonly deleteReportingRule: Scalars['Boolean']['output'];
  readonly deleteRoutingRule: Scalars['Boolean']['output'];
  readonly deleteRule?: Maybe<Scalars['Boolean']['output']>;
  readonly deleteTextBank: Scalars['Boolean']['output'];
  readonly deleteUser?: Maybe<Scalars['Boolean']['output']>;
  readonly dequeueManualReviewJob?: Maybe<GQLDequeueManualReviewJobResponse>;
  readonly generatePasswordResetToken?: Maybe<Scalars['String']['output']>;
  /**
   * Strips every entry sent by the given reporter from the report history of
   * every pending MRT job in the caller's org. If a job's history becomes
   * empty and it was originally enqueued from a user report, the job itself
   * is removed. Intentionally non-persistent: future reports from the same
   * reporter are NOT blocked. See issue #404.
   */
  readonly invalidateReportsFromReporter: GQLInvalidateReportsFromReporterSuccessResponse;
  readonly inviteUser?: Maybe<Scalars['String']['output']>;
  readonly logSkip: Scalars['Boolean']['output'];
  readonly login: GQLLoginResponse;
  readonly logout?: Maybe<Scalars['Boolean']['output']>;
  readonly rejectUser?: Maybe<Scalars['Boolean']['output']>;
  readonly releaseJobLock: Scalars['Boolean']['output'];
  readonly removeAccessibleQueuesToUser: GQLRemoveAccessibleQueuesToUserResponse;
  readonly removeFavoriteMRTQueue: GQLRemoveFavoriteMrtQueueSuccessResponse;
  readonly removeFavoriteRule: GQLRemoveFavoriteRuleSuccessResponse;
  readonly renameRole: GQLRole;
  readonly reorderRoutingRules: GQLReorderRoutingRulesResponse;
  readonly resetPassword: Scalars['Boolean']['output'];
  /**
   * Retries a previously-failed NCMEC submission. Org-scoped: callers can only
   * retry decisions that belong to their own org. Returns success on a fresh
   * successful submission, or an error with a user-safe summary on failure.
   */
  readonly retryNcmecSubmission: GQLRetryNcmecSubmissionResponse;
  readonly rotateApiKey: GQLRotateApiKeyResponse;
  readonly rotateWebhookSigningKey: GQLRotateWebhookSigningKeyResponse;
  readonly runRetroaction?: Maybe<GQLRunRetroactionResponse>;
  readonly sendPasswordReset: Scalars['Boolean']['output'];
  readonly setAllUserStrikeThresholds: GQLSetAllUserStrikeThresholdsSuccessResponse;
  readonly setIntegrationConfig: GQLSetIntegrationConfigResponse;
  readonly setModeratorSafetySettings?: Maybe<GQLSetModeratorSafetySettingsSuccessResponse>;
  readonly setMrtChartConfigurationSettings?: Maybe<GQLSetMrtChartConfigurationSettingsSuccessResponse>;
  readonly setOrgDefaultSafetySettings?: Maybe<GQLSetModeratorSafetySettingsSuccessResponse>;
  readonly setPluginIntegrationConfig: GQLSetIntegrationConfigResponse;
  readonly signUp: GQLSignUpResponse;
  readonly submitManualReviewDecision: GQLSubmitDecisionResponse;
  readonly updateAccountInfo?: Maybe<Scalars['Boolean']['output']>;
  readonly updateAction: GQLMutateActionResponse;
  readonly updateAllowMultiplePoliciesPerAction: Scalars['Boolean']['output'];
  readonly updateAppealSettings: GQLAppealSettings;
  readonly updateContentItemType: GQLMutateContentItemTypeResponse;
  readonly updateContentRule: GQLUpdateContentRuleResponse;
  readonly updateExchangeCredentials: Scalars['Boolean']['output'];
  readonly updateHasAppealsEnabled: Scalars['Boolean']['output'];
  readonly updateHasReportingRulesEnabled: Scalars['Boolean']['output'];
  readonly updateHashBank: GQLMutateHashBankResponse;
  readonly updateHideSkipButtonForNonAdmins: Scalars['Boolean']['output'];
  readonly updateIgnoreCallbackUrl: Scalars['Boolean']['output'];
  readonly updateLocationBank: GQLMutateLocationBankResponse;
  readonly updateManualReviewQueue: GQLUpdateManualReviewQueueQueueResponse;
  readonly updateNcmecOrgSettings: GQLUpdateNcmecOrgSettingsResponse;
  readonly updateOrgInfo: GQLUpdateOrgInfoSuccessResponse;
  readonly updatePartialItemsSettings: Scalars['Boolean']['output'];
  readonly updatePolicy: GQLUpdatePolicyResponse;
  readonly updatePreviewJobsViewEnabled: Scalars['Boolean']['output'];
  readonly updateReportingRule: GQLUpdateReportingRuleResponse;
  readonly updateRequiresDecisionReason: Scalars['Boolean']['output'];
  readonly updateRequiresDecisionReasonOnIgnore: Scalars['Boolean']['output'];
  readonly updateRequiresPolicyForDecisions: Scalars['Boolean']['output'];
  readonly updateRole?: Maybe<Scalars['Boolean']['output']>;
  readonly updateRolePermissions: GQLRole;
  readonly updateRoutingRule: GQLUpdateRoutingRuleResponse;
  readonly updateSSOCredentials: Scalars['Boolean']['output'];
  readonly updateSamlEnabled: Scalars['Boolean']['output'];
  readonly updateTextBank: GQLMutateBankResponse;
  readonly updateThreadItemType: GQLMutateThreadItemTypeResponse;
  readonly updateUserItemType: GQLMutateUserItemTypeResponse;
  readonly updateUserRule: GQLUpdateUserRuleResponse;
  readonly updateUserStrikeTTL: GQLUpdateUserStrikeTtlSuccessResponse;
};

export type GQLMutationAddAccessibleQueuesToUserArgs = {
  input: GQLAddAccessibleQueuesToUserInput;
};

export type GQLMutationAddFavoriteMrtQueueArgs = {
  queueId: Scalars['ID']['input'];
};

export type GQLMutationAddFavoriteRuleArgs = {
  ruleId: Scalars['ID']['input'];
};

export type GQLMutationAddPoliciesArgs = {
  policies: ReadonlyArray<GQLAddPolicyInput>;
};

export type GQLMutationApproveUserArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationBulkExecuteActionsArgs = {
  input: GQLExecuteBulkActionInput;
};

export type GQLMutationChangePasswordArgs = {
  input: GQLChangePasswordInput;
};

export type GQLMutationCreateActionArgs = {
  input: GQLCreateActionInput;
};

export type GQLMutationCreateBacktestArgs = {
  input: GQLCreateBacktestInput;
};

export type GQLMutationCreateContentItemTypeArgs = {
  input: GQLCreateContentItemTypeInput;
};

export type GQLMutationCreateContentRuleArgs = {
  input: GQLCreateContentRuleInput;
};

export type GQLMutationCreateHashBankArgs = {
  input: GQLCreateHashBankInput;
};

export type GQLMutationCreateLocationBankArgs = {
  input: GQLCreateLocationBankInput;
};

export type GQLMutationCreateManualReviewJobCommentArgs = {
  input: GQLCreateManualReviewJobCommentInput;
};

export type GQLMutationCreateManualReviewQueueArgs = {
  input: GQLCreateManualReviewQueueInput;
};

export type GQLMutationCreateReportingRuleArgs = {
  input: GQLCreateReportingRuleInput;
};

export type GQLMutationCreateRoutingRuleArgs = {
  input: GQLCreateRoutingRuleInput;
};

export type GQLMutationCreateTextBankArgs = {
  input: GQLCreateTextBankInput;
};

export type GQLMutationCreateThreadItemTypeArgs = {
  input: GQLCreateThreadItemTypeInput;
};

export type GQLMutationCreateUserItemTypeArgs = {
  input: GQLCreateUserItemTypeInput;
};

export type GQLMutationCreateUserRuleArgs = {
  input: GQLCreateUserRuleInput;
};

export type GQLMutationDeleteActionArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDeleteAllJobsFromQueueArgs = {
  queueId: Scalars['ID']['input'];
};

export type GQLMutationDeleteHashBankArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDeleteInviteArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDeleteItemTypeArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDeleteLocationBankArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDeleteManualReviewJobCommentArgs = {
  input: GQLDeleteManualReviewJobCommentInput;
};

export type GQLMutationDeleteManualReviewQueueArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDeletePolicyArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDeleteReportingRuleArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDeleteRoutingRuleArgs = {
  input: GQLDeleteRoutingRuleInput;
};

export type GQLMutationDeleteRuleArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDeleteTextBankArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDeleteUserArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationDequeueManualReviewJobArgs = {
  queueId: Scalars['ID']['input'];
};

export type GQLMutationGeneratePasswordResetTokenArgs = {
  userId: Scalars['ID']['input'];
};

export type GQLMutationInvalidateReportsFromReporterArgs = {
  input: GQLInvalidateReportsFromReporterInput;
};

export type GQLMutationInviteUserArgs = {
  input: GQLInviteUserInput;
};

export type GQLMutationLogSkipArgs = {
  input: GQLLogSkipInput;
};

export type GQLMutationLoginArgs = {
  input: GQLLoginInput;
};

export type GQLMutationRejectUserArgs = {
  id: Scalars['ID']['input'];
};

export type GQLMutationReleaseJobLockArgs = {
  input: GQLReleaseJobLockInput;
};

export type GQLMutationRemoveAccessibleQueuesToUserArgs = {
  input: GQLRemoveAccessibleQueuesToUserInput;
};

export type GQLMutationRemoveFavoriteMrtQueueArgs = {
  queueId: Scalars['ID']['input'];
};

export type GQLMutationRemoveFavoriteRuleArgs = {
  ruleId: Scalars['ID']['input'];
};

export type GQLMutationRenameRoleArgs = {
  input: GQLRenameRoleInput;
};

export type GQLMutationReorderRoutingRulesArgs = {
  input: GQLReorderRoutingRulesInput;
};

export type GQLMutationResetPasswordArgs = {
  input: GQLResetPasswordInput;
};

export type GQLMutationRetryNcmecSubmissionArgs = {
  decisionId: Scalars['ID']['input'];
};

export type GQLMutationRotateApiKeyArgs = {
  input: GQLRotateApiKeyInput;
};

export type GQLMutationRunRetroactionArgs = {
  input: GQLRunRetroactionInput;
};

export type GQLMutationSendPasswordResetArgs = {
  input: GQLSendPasswordResetInput;
};

export type GQLMutationSetAllUserStrikeThresholdsArgs = {
  input: GQLSetAllUserStrikeThresholdsInput;
};

export type GQLMutationSetIntegrationConfigArgs = {
  input: GQLSetIntegrationConfigInput;
};

export type GQLMutationSetModeratorSafetySettingsArgs = {
  moderatorSafetySettings: GQLModeratorSafetySettingsInput;
};

export type GQLMutationSetMrtChartConfigurationSettingsArgs = {
  mrtChartConfigurationSettings: GQLManualReviewChartConfigurationsInput;
};

export type GQLMutationSetOrgDefaultSafetySettingsArgs = {
  orgDefaultSafetySettings: GQLModeratorSafetySettingsInput;
};

export type GQLMutationSetPluginIntegrationConfigArgs = {
  input: GQLSetPluginIntegrationConfigInput;
};

export type GQLMutationSignUpArgs = {
  input: GQLSignUpInput;
};

export type GQLMutationSubmitManualReviewDecisionArgs = {
  input: GQLSubmitDecisionInput;
};

export type GQLMutationUpdateAccountInfoArgs = {
  firstName?: InputMaybe<Scalars['String']['input']>;
  lastName?: InputMaybe<Scalars['String']['input']>;
};

export type GQLMutationUpdateActionArgs = {
  input: GQLUpdateActionInput;
};

export type GQLMutationUpdateAllowMultiplePoliciesPerActionArgs = {
  enabled: Scalars['Boolean']['input'];
};

export type GQLMutationUpdateAppealSettingsArgs = {
  input: GQLAppealSettingsInput;
};

export type GQLMutationUpdateContentItemTypeArgs = {
  input: GQLUpdateContentItemTypeInput;
};

export type GQLMutationUpdateContentRuleArgs = {
  input: GQLUpdateContentRuleInput;
};

export type GQLMutationUpdateExchangeCredentialsArgs = {
  apiName: Scalars['String']['input'];
  credentialsJson: Scalars['String']['input'];
};

export type GQLMutationUpdateHasAppealsEnabledArgs = {
  enabled: Scalars['Boolean']['input'];
};

export type GQLMutationUpdateHasReportingRulesEnabledArgs = {
  enabled: Scalars['Boolean']['input'];
};

export type GQLMutationUpdateHashBankArgs = {
  input: GQLUpdateHashBankInput;
};

export type GQLMutationUpdateHideSkipButtonForNonAdminsArgs = {
  enabled: Scalars['Boolean']['input'];
};

export type GQLMutationUpdateIgnoreCallbackUrlArgs = {
  url?: InputMaybe<Scalars['String']['input']>;
};

export type GQLMutationUpdateLocationBankArgs = {
  input: GQLUpdateLocationBankInput;
};

export type GQLMutationUpdateManualReviewQueueArgs = {
  input: GQLUpdateManualReviewQueueInput;
};

export type GQLMutationUpdateNcmecOrgSettingsArgs = {
  input: GQLNcmecOrgSettingsInput;
};

export type GQLMutationUpdateOrgInfoArgs = {
  input: GQLUpdateOrgInfoInput;
};

export type GQLMutationUpdatePartialItemsSettingsArgs = {
  input: GQLUpdatePartialItemsSettingsInput;
};

export type GQLMutationUpdatePolicyArgs = {
  input: GQLUpdatePolicyInput;
};

export type GQLMutationUpdatePreviewJobsViewEnabledArgs = {
  enabled: Scalars['Boolean']['input'];
};

export type GQLMutationUpdateReportingRuleArgs = {
  input: GQLUpdateReportingRuleInput;
};

export type GQLMutationUpdateRequiresDecisionReasonArgs = {
  enabled: Scalars['Boolean']['input'];
};

export type GQLMutationUpdateRequiresDecisionReasonOnIgnoreArgs = {
  enabled: Scalars['Boolean']['input'];
};

export type GQLMutationUpdateRequiresPolicyForDecisionsArgs = {
  enabled: Scalars['Boolean']['input'];
};

export type GQLMutationUpdateRoleArgs = {
  input: GQLUpdateRoleInput;
};

export type GQLMutationUpdateRolePermissionsArgs = {
  input: GQLUpdateRolePermissionsInput;
};

export type GQLMutationUpdateRoutingRuleArgs = {
  input: GQLUpdateRoutingRuleInput;
};

export type GQLMutationUpdateSsoCredentialsArgs = {
  input: GQLUpdateSsoCredentialsInput;
};

export type GQLMutationUpdateSamlEnabledArgs = {
  enabled: Scalars['Boolean']['input'];
};

export type GQLMutationUpdateTextBankArgs = {
  input: GQLUpdateTextBankInput;
};

export type GQLMutationUpdateThreadItemTypeArgs = {
  input: GQLUpdateThreadItemTypeInput;
};

export type GQLMutationUpdateUserItemTypeArgs = {
  input: GQLUpdateUserItemTypeInput;
};

export type GQLMutationUpdateUserRuleArgs = {
  input: GQLUpdateUserRuleInput;
};

export type GQLMutationUpdateUserStrikeTtlArgs = {
  input: GQLUpdateUserStrikeTtlInput;
};

export const GQLNcmecIncidentType = {
  ChildPornography: 'CHILD_PORNOGRAPHY',
  ChildSexualMolestation: 'CHILD_SEXUAL_MOLESTATION',
  ChildSexTourism: 'CHILD_SEX_TOURISM',
  ChildSexTrafficking: 'CHILD_SEX_TRAFFICKING',
  MisleadingDomainName: 'MISLEADING_DOMAIN_NAME',
  MisleadingWordsOrDigitalImages: 'MISLEADING_WORDS_OR_DIGITAL_IMAGES',
  OnlineEnticementOfChildren: 'ONLINE_ENTICEMENT_OF_CHILDREN',
  UnsolicitedObsceneMaterialToChild: 'UNSOLICITED_OBSCENE_MATERIAL_TO_CHILD',
} as const;

export type GQLNcmecIncidentType =
  (typeof GQLNcmecIncidentType)[keyof typeof GQLNcmecIncidentType];
export type GQLNcmecReport = {
  readonly __typename: 'NCMECReport';
  readonly additionalFiles: ReadonlyArray<GQLNcmecAdditionalFile>;
  readonly isTest?: Maybe<Scalars['Boolean']['output']>;
  readonly reportId: Scalars['String']['output'];
  readonly reportXml: Scalars['String']['output'];
  readonly reportedMedia: ReadonlyArray<GQLNcmecReportedMedia>;
  readonly reportedMessages: ReadonlyArray<GQLNcmecReportedThread>;
  readonly reviewerId?: Maybe<Scalars['String']['output']>;
  readonly ts: Scalars['DateTime']['output'];
  readonly userId: Scalars['String']['output'];
  readonly userItemType: GQLUserItemType;
};

export type GQLNcmecReportedMedia = {
  readonly __typename: 'NCMECReportedMedia';
  readonly id: Scalars['String']['output'];
  readonly xml: Scalars['String']['output'];
};

export type GQLNcmecReportedThread = {
  readonly __typename: 'NCMECReportedThread';
  readonly csv: Scalars['String']['output'];
  readonly fileName: Scalars['String']['output'];
  readonly ncmecFileId: Scalars['String']['output'];
};

export type GQLNcmecAdditionalFile = {
  readonly __typename: 'NcmecAdditionalFile';
  readonly ncmecFileId: Scalars['String']['output'];
  readonly url: Scalars['String']['output'];
  readonly xml: Scalars['String']['output'];
};

export type GQLNcmecContentInThreadReport = {
  readonly chatType: Scalars['String']['input'];
  readonly content?: InputMaybe<Scalars['String']['input']>;
  readonly contentId: Scalars['ID']['input'];
  readonly contentTypeId: Scalars['ID']['input'];
  readonly creatorId: Scalars['ID']['input'];
  readonly ipAddress: GQLIpAddressInput;
  readonly sentAt: Scalars['DateTime']['input'];
  readonly targetId: Scalars['ID']['input'];
  readonly type: Scalars['String']['input'];
};

export type GQLNcmecContentItem = {
  readonly __typename: 'NcmecContentItem';
  readonly contentItem: GQLItem;
  readonly isConfirmedCSAM: Scalars['Boolean']['output'];
  readonly isReported: Scalars['Boolean']['output'];
};

/**
 * An NCMEC submission that was decisioned in the MRT but never produced a
 * successful CyberTip report. Reused on the NCMEC Reports dashboard so that
 * reviewers can see and retry failed submissions in the same place as
 * successful reports. The userId + userItemTypeId pair uniquely identifies
 * the reported user; decisionId is the stable handle for retrying.
 */
export type GQLNcmecFailedSubmission = {
  readonly __typename: 'NcmecFailedSubmission';
  readonly decisionId: Scalars['ID']['output'];
  readonly lastError?: Maybe<Scalars['String']['output']>;
  readonly retryCount: Scalars['Int']['output'];
  readonly reviewerId?: Maybe<Scalars['String']['output']>;
  readonly status: GQLNcmecFailedSubmissionStatus;
  readonly ts: Scalars['DateTime']['output'];
  readonly userId: Scalars['String']['output'];
  readonly userItemType: GQLUserItemType;
};

export const GQLNcmecFailedSubmissionStatus = {
  NeverAttempted: 'NEVER_ATTEMPTED',
  PermanentError: 'PERMANENT_ERROR',
  RetryableError: 'RETRYABLE_ERROR',
} as const;

export type GQLNcmecFailedSubmissionStatus =
  (typeof GQLNcmecFailedSubmissionStatus)[keyof typeof GQLNcmecFailedSubmissionStatus];
export const GQLNcmecFileAnnotation = {
  AnimeDrawingVirtualHentai: 'ANIME_DRAWING_VIRTUAL_HENTAI',
  Bestiality: 'BESTIALITY',
  GenerativeAi: 'GENERATIVE_AI',
  Infant: 'INFANT',
  LiveStreaming: 'LIVE_STREAMING',
  PhysicalHarm: 'PHYSICAL_HARM',
  PossibleSelfProduction: 'POSSIBLE_SELF_PRODUCTION',
  PotentialMeme: 'POTENTIAL_MEME',
  ViolenceGore: 'VIOLENCE_GORE',
  Viral: 'VIRAL',
} as const;

export type GQLNcmecFileAnnotation =
  (typeof GQLNcmecFileAnnotation)[keyof typeof GQLNcmecFileAnnotation];
export const GQLNcmecIndustryClassification = {
  A1: 'A1',
  A2: 'A2',
  B1: 'B1',
  B2: 'B2',
} as const;

export type GQLNcmecIndustryClassification =
  (typeof GQLNcmecIndustryClassification)[keyof typeof GQLNcmecIndustryClassification];
export const GQLNcmecInternetDetailType = {
  CellPhone: 'CELL_PHONE',
  ChatIm: 'CHAT_IM',
  Email: 'EMAIL',
  Newsgroup: 'NEWSGROUP',
  NonInternet: 'NON_INTERNET',
  OnlineGaming: 'ONLINE_GAMING',
  PeerToPeer: 'PEER_TO_PEER',
  WebPage: 'WEB_PAGE',
} as const;

export type GQLNcmecInternetDetailType =
  (typeof GQLNcmecInternetDetailType)[keyof typeof GQLNcmecInternetDetailType];
export type GQLNcmecManualReviewJobPayload = {
  readonly __typename: 'NcmecManualReviewJobPayload';
  readonly allMediaItems: ReadonlyArray<GQLNcmecContentItem>;
  readonly enqueueSourceInfo?: Maybe<GQLManualReviewJobEnqueueSourceInfo>;
  readonly item: GQLUserItem;
  readonly userScore?: Maybe<Scalars['Int']['output']>;
};

export type GQLNcmecMediaInput = {
  readonly fileAnnotations: ReadonlyArray<GQLNcmecFileAnnotation>;
  readonly id: Scalars['ID']['input'];
  readonly industryClassification: GQLNcmecIndustryClassification;
  readonly typeId: Scalars['ID']['input'];
  readonly url: Scalars['String']['input'];
};

/**
 * How much media a reviewer must classify before an NCMEC report can be sent.
 * ALL requires every piece of media on the account to be reviewed (the original
 * behaviour); MINIMUM only requires `minMediaToReview` items, so reviewers
 * don't have to classify hundreds of items to submit a report.
 */
export const GQLNcmecMediaReviewRequirement = {
  All: 'ALL',
  Minimum: 'MINIMUM',
} as const;

export type GQLNcmecMediaReviewRequirement =
  (typeof GQLNcmecMediaReviewRequirement)[keyof typeof GQLNcmecMediaReviewRequirement];
export type GQLNcmecOrgSettings = {
  readonly __typename: 'NcmecOrgSettings';
  readonly companyTemplate?: Maybe<Scalars['String']['output']>;
  readonly contactEmail?: Maybe<Scalars['String']['output']>;
  readonly contactPersonEmail?: Maybe<Scalars['String']['output']>;
  readonly contactPersonFirstName?: Maybe<Scalars['String']['output']>;
  readonly contactPersonLastName?: Maybe<Scalars['String']['output']>;
  readonly contactPersonPhone?: Maybe<Scalars['String']['output']>;
  readonly defaultInternetDetailType?: Maybe<GQLNcmecInternetDetailType>;
  readonly defaultNcmecQueueId?: Maybe<Scalars['String']['output']>;
  readonly legalUrl?: Maybe<Scalars['String']['output']>;
  readonly mediaReviewRequirement?: Maybe<GQLNcmecMediaReviewRequirement>;
  readonly minMediaToReview?: Maybe<Scalars['Int']['output']>;
  readonly moreInfoUrl?: Maybe<Scalars['String']['output']>;
  readonly ncmecAdditionalInfoEndpoint?: Maybe<Scalars['String']['output']>;
  readonly ncmecPreservationEndpoint?: Maybe<Scalars['String']['output']>;
  readonly password: Scalars['String']['output'];
  readonly termsOfService?: Maybe<Scalars['String']['output']>;
  readonly username: Scalars['String']['output'];
};

export type GQLNcmecOrgSettingsInput = {
  readonly companyTemplate?: InputMaybe<Scalars['String']['input']>;
  readonly contactEmail?: InputMaybe<Scalars['String']['input']>;
  readonly contactPersonEmail?: InputMaybe<Scalars['String']['input']>;
  readonly contactPersonFirstName?: InputMaybe<Scalars['String']['input']>;
  readonly contactPersonLastName?: InputMaybe<Scalars['String']['input']>;
  readonly contactPersonPhone?: InputMaybe<Scalars['String']['input']>;
  readonly defaultInternetDetailType?: InputMaybe<GQLNcmecInternetDetailType>;
  readonly defaultNcmecQueueId?: InputMaybe<Scalars['String']['input']>;
  readonly legalUrl?: InputMaybe<Scalars['String']['input']>;
  readonly mediaReviewRequirement?: InputMaybe<GQLNcmecMediaReviewRequirement>;
  readonly minMediaToReview?: InputMaybe<Scalars['Int']['input']>;
  readonly moreInfoUrl?: InputMaybe<Scalars['String']['input']>;
  readonly ncmecAdditionalInfoEndpoint?: InputMaybe<Scalars['String']['input']>;
  readonly ncmecPreservationEndpoint?: InputMaybe<Scalars['String']['input']>;
  readonly password: Scalars['String']['input'];
  readonly termsOfService?: InputMaybe<Scalars['String']['input']>;
  readonly username: Scalars['String']['input'];
};

export type GQLNcmecReportedMediaDetails = {
  readonly __typename: 'NcmecReportedMediaDetails';
  readonly fileAnnotations: ReadonlyArray<GQLNcmecFileAnnotation>;
  readonly id: Scalars['String']['output'];
  readonly industryClassification: GQLNcmecIndustryClassification;
  readonly typeId: Scalars['ID']['output'];
  readonly url: Scalars['String']['output'];
};

export type GQLNcmecThreadInput = {
  readonly reportedContent: ReadonlyArray<GQLNcmecContentInThreadReport>;
  readonly threadId: Scalars['ID']['input'];
  readonly threadTypeId: Scalars['ID']['input'];
};

export type GQLNoJobWithIdInQueueError = GQLError & {
  readonly __typename: 'NoJobWithIdInQueueError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

/**
 * A not found error that we reuse in many different places,
 * where it's obvious what the error is referring to.
 */
export type GQLNotFoundError = GQLError & {
  readonly __typename: 'NotFoundError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLNotification = {
  readonly __typename: 'Notification';
  readonly createdAt: Scalars['DateTime']['output'];
  readonly data?: Maybe<Scalars['JSONObject']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly message: Scalars['String']['output'];
  readonly readAt?: Maybe<Scalars['DateTime']['output']>;
  readonly type: GQLNotificationType;
};

export const GQLNotificationType = {
  RulePassRateIncreaseAnomalyEnd: 'RULE_PASS_RATE_INCREASE_ANOMALY_END',
  RulePassRateIncreaseAnomalyStart: 'RULE_PASS_RATE_INCREASE_ANOMALY_START',
} as const;

export type GQLNotificationType =
  (typeof GQLNotificationType)[keyof typeof GQLNotificationType];
export type GQLOpenAiIntegrationApiCredential = {
  readonly __typename: 'OpenAiIntegrationApiCredential';
  readonly apiKey: Scalars['String']['output'];
};

export type GQLOpenAiIntegrationApiCredentialInput = {
  readonly apiKey: Scalars['String']['input'];
};

export type GQLOrg = {
  readonly __typename: 'Org';
  readonly actions: ReadonlyArray<GQLAction>;
  readonly allowMultiplePoliciesPerAction: Scalars['Boolean']['output'];
  readonly apiKey: Scalars['String']['output'];
  readonly appealsRoutingRules: ReadonlyArray<GQLRoutingRule>;
  readonly banks?: Maybe<GQLMatchingBanks>;
  readonly contentTypes: ReadonlyArray<GQLContentType>;
  readonly defaultInterfacePreferences: GQLUserInterfacePreferences;
  readonly email: Scalars['String']['output'];
  /**
   * NCMEC decisions that did not produce a successful CyberTip report. Returned
   * alongside ncmecReports on the dashboard so reviewers can see the full
   * submission status (successful + failed) in one place and retry failures.
   */
  readonly failedNcmecSubmissions: ReadonlyArray<GQLNcmecFailedSubmission>;
  readonly hasAppealsEnabled: Scalars['Boolean']['output'];
  readonly hasNCMECReportingEnabled: Scalars['Boolean']['output'];
  readonly hasPartialItemsEndpoint: Scalars['Boolean']['output'];
  readonly hasReportingRulesEnabled: Scalars['Boolean']['output'];
  readonly hideSkipButtonForNonAdmins: Scalars['Boolean']['output'];
  readonly id: Scalars['ID']['output'];
  readonly ignoreCallbackUrl?: Maybe<Scalars['String']['output']>;
  readonly integrationConfigs: ReadonlyArray<GQLIntegrationConfig>;
  readonly isDemoOrg: Scalars['Boolean']['output'];
  readonly itemTypes: ReadonlyArray<GQLItemType>;
  readonly mrtQueues: ReadonlyArray<GQLManualReviewQueue>;
  readonly name: Scalars['String']['output'];
  /**
   * How much media a reviewer must classify before they can send an NCMEC
   * report for this org. Readable by any org member (not just MANAGE_ORG) so the
   * NCMEC review UI can enforce the policy. Defaults to ALL when unset.
   */
  readonly ncmecMediaReviewRequirement: GQLNcmecMediaReviewRequirement;
  /**
   * Minimum number of media items that must be reviewed before sending an NCMEC
   * report when ncmecMediaReviewRequirement is MINIMUM. Defaults to 1.
   */
  readonly ncmecMinMediaToReview: Scalars['Int']['output'];
  readonly ncmecReports: ReadonlyArray<GQLNcmecReport>;
  readonly onCallAlertEmail?: Maybe<Scalars['String']['output']>;
  readonly partialItemsEndpoint?: Maybe<Scalars['String']['output']>;
  readonly partialItemsRequestHeaders?: Maybe<Scalars['JSONObject']['output']>;
  readonly pendingInvites: ReadonlyArray<GQLPendingInvite>;
  readonly policies: ReadonlyArray<GQLPolicy>;
  readonly previewJobsViewEnabled: Scalars['Boolean']['output'];
  readonly publicSigningKey: Scalars['String']['output'];
  readonly reportingRules: ReadonlyArray<GQLReportingRule>;
  readonly requiresDecisionReasonInMrt: Scalars['Boolean']['output'];
  readonly requiresDecisionReasonOnIgnoreInMrt: Scalars['Boolean']['output'];
  readonly requiresPolicyForDecisionsInMrt: Scalars['Boolean']['output'];
  readonly routingRules: ReadonlyArray<GQLRoutingRule>;
  readonly rules: ReadonlyArray<GQLRule>;
  readonly samlEnabled: Scalars['Boolean']['output'];
  readonly signals: ReadonlyArray<GQLSignal>;
  readonly ssoCert?: Maybe<Scalars['String']['output']>;
  readonly ssoUrl?: Maybe<Scalars['String']['output']>;
  readonly userStrikeTTL: Scalars['Int']['output'];
  readonly userStrikeThresholds: ReadonlyArray<GQLUserStrikeThreshold>;
  readonly users: ReadonlyArray<GQLUser>;
  readonly usersWhoCanReviewEveryQueue: ReadonlyArray<GQLUser>;
  readonly websiteUrl: Scalars['String']['output'];
};

export type GQLOrgSignalsArgs = {
  customOnly?: InputMaybe<Scalars['Boolean']['input']>;
};

/** Information about the current page in a connection. */
export type GQLPageInfo = {
  readonly __typename: 'PageInfo';
  /** When paginating forwards, the cursor to continue. */
  readonly endCursor: Scalars['Cursor']['output'];
  /** When paginating forwards, are there more items? */
  readonly hasNextPage: Scalars['Boolean']['output'];
  /** When paginating backwards, are there more items? */
  readonly hasPreviousPage: Scalars['Boolean']['output'];
  /** When paginating backwards, the cursor to continue. */
  readonly startCursor: Scalars['Cursor']['output'];
};

export type GQLPartialItemsEndpointResponseError = GQLError & {
  readonly __typename: 'PartialItemsEndpointResponseError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLPartialItemsInvalidResponseError = GQLError & {
  readonly __typename: 'PartialItemsInvalidResponseError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLPartialItemsMissingEndpointError = GQLError & {
  readonly __typename: 'PartialItemsMissingEndpointError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLPartialItemsResponse =
  | GQLPartialItemsEndpointResponseError
  | GQLPartialItemsInvalidResponseError
  | GQLPartialItemsMissingEndpointError
  | GQLPartialItemsSuccessResponse;

export type GQLPartialItemsSuccessResponse = {
  readonly __typename: 'PartialItemsSuccessResponse';
  readonly items: ReadonlyArray<GQLItem>;
};

export type GQLPendingInvite = {
  readonly __typename: 'PendingInvite';
  readonly createdAt: Scalars['DateTime']['output'];
  readonly email: Scalars['String']['output'];
  readonly id: Scalars['ID']['output'];
  readonly role: GQLUserRole;
};

export type GQLPermissionGroup = {
  readonly __typename: 'PermissionGroup';
  readonly description: Scalars['String']['output'];
  readonly key: Scalars['String']['output'];
  readonly label: Scalars['String']['output'];
  readonly permissions: ReadonlyArray<GQLPermissionGroupItem>;
};

export type GQLPermissionGroupItem = {
  readonly __typename: 'PermissionGroupItem';
  readonly description: Scalars['String']['output'];
  readonly label: Scalars['String']['output'];
  readonly permission: GQLUserPermission;
};

export type GQLPlaceBounds = {
  readonly __typename: 'PlaceBounds';
  readonly northeastCorner: GQLLatLng;
  readonly southwestCorner: GQLLatLng;
};

export type GQLPlaceBoundsInput = {
  readonly northeastCorner: GQLLatLngInput;
  readonly southwestCorner: GQLLatLngInput;
};

export type GQLPluginIntegrationApiCredential = {
  readonly __typename: 'PluginIntegrationApiCredential';
  readonly credential: Scalars['JSONObject']['output'];
};

export type GQLPolicy = {
  readonly __typename: 'Policy';
  readonly applyUserStrikeCountConfigToChildren?: Maybe<
    Scalars['Boolean']['output']
  >;
  readonly enforcementGuidelines?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly name: Scalars['String']['output'];
  readonly parentId?: Maybe<Scalars['ID']['output']>;
  readonly policyText?: Maybe<Scalars['String']['output']>;
  readonly policyType?: Maybe<GQLPolicyType>;
  readonly userStrikeCount?: Maybe<Scalars['Int']['output']>;
};

export type GQLPolicyActionCount = {
  readonly __typename: 'PolicyActionCount';
  readonly actionId: Scalars['String']['output'];
  readonly actorId?: Maybe<Scalars['String']['output']>;
  readonly count: Scalars['Int']['output'];
  readonly itemSubmissionIds: ReadonlyArray<Scalars['String']['output']>;
  readonly policyId?: Maybe<Scalars['String']['output']>;
};

export type GQLPolicyNameExistsError = GQLError & {
  readonly __typename: 'PolicyNameExistsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export const GQLPolicyType = {
  DrugSales: 'DRUG_SALES',
  FraudAndDeception: 'FRAUD_AND_DECEPTION',
  Grooming: 'GROOMING',
  Harrassment: 'HARRASSMENT',
  Hate: 'HATE',
  Privacy: 'PRIVACY',
  Profanity: 'PROFANITY',
  SelfHarmAndSuicide: 'SELF_HARM_AND_SUICIDE',
  SexualContent: 'SEXUAL_CONTENT',
  SexualExploitation: 'SEXUAL_EXPLOITATION',
  Spam: 'SPAM',
  Terrorism: 'TERRORISM',
  Violence: 'VIOLENCE',
  WeaponSales: 'WEAPON_SALES',
} as const;

export type GQLPolicyType = (typeof GQLPolicyType)[keyof typeof GQLPolicyType];
export type GQLPolicyViolationsCount = {
  readonly __typename: 'PolicyViolationsCount';
  readonly count: Scalars['Int']['output'];
  readonly policyId: Scalars['String']['output'];
};

export type GQLPostActionsEnqueueSourceInfo = {
  readonly __typename: 'PostActionsEnqueueSourceInfo';
  readonly kind: GQLJobCreationSourceOptions;
};

export type GQLQuery = {
  readonly __typename: 'Query';
  readonly action?: Maybe<GQLAction>;
  readonly actionStatistics: ReadonlyArray<GQLActionData>;
  readonly allRuleInsights?: Maybe<GQLAllRuleInsights>;
  readonly apiKey: Scalars['String']['output'];
  readonly appealSettings?: Maybe<GQLAppealSettings>;
  readonly availableIntegrations: ReadonlyArray<GQLIntegrationMetadata>;
  readonly exchangeApiSchema?: Maybe<GQLExchangeApiSchema>;
  readonly exchangeApis: ReadonlyArray<GQLExchangeApiInfo>;
  readonly getCommentsForJob: ReadonlyArray<GQLManualReviewJobComment>;
  readonly getDecidedJob?: Maybe<GQLManualReviewJob>;
  readonly getDecidedJobFromJobId?: Maybe<GQLManualReviewJobWithDecisions>;
  readonly getDecisionCounts: ReadonlyArray<GQLDecisionCount>;
  readonly getDecisionsTable: ReadonlyArray<GQLTableDecisionCount>;
  readonly getExistingJobsForItem: ReadonlyArray<GQLManualReviewExistingJob>;
  readonly getFullReportingRuleResultForItem: GQLGetFullReportingRuleResultForItemResponse;
  readonly getFullRuleResultForItem: GQLGetFullResultForItemResponse;
  readonly getJobCreationCounts: ReadonlyArray<GQLJobCreationCount>;
  readonly getRecentDecisions: ReadonlyArray<GQLManualReviewDecision>;
  readonly getResolvedJobCounts: ReadonlyArray<GQLResolvedJobCount>;
  readonly getResolvedJobsForUser: Scalars['Int']['output'];
  readonly getSSORedirectUrl?: Maybe<Scalars['String']['output']>;
  readonly getSkippedJobCounts: ReadonlyArray<GQLSkippedJobCount>;
  readonly getSkippedJobsForUser: Scalars['Int']['output'];
  readonly getSkipsForRecentDecisions: ReadonlyArray<GQLSkippedJob>;
  readonly getTimeToAction?: Maybe<ReadonlyArray<GQLTimeToAction>>;
  readonly getTotalPendingJobsCount: Scalars['Int']['output'];
  readonly getUserStrikeCountDistribution: ReadonlyArray<GQLUserStrikeBucket>;
  readonly hashBank?: Maybe<GQLHashBank>;
  readonly hashBankById?: Maybe<GQLHashBank>;
  readonly hashBanks: ReadonlyArray<GQLHashBank>;
  readonly integrationConfig: GQLIntegrationConfigQueryResponse;
  readonly inviteUserToken: GQLInviteUserTokenResponse;
  readonly isWarehouseAvailable: Scalars['Boolean']['output'];
  readonly itemActionHistory: ReadonlyArray<GQLItemAction>;
  readonly itemSubmissions: ReadonlyArray<GQLItemSubmissions>;
  readonly itemType?: Maybe<GQLItemType>;
  readonly itemTypes: ReadonlyArray<GQLItemType>;
  readonly itemWithHistory: GQLItemHistoryResponse;
  readonly itemsWithId: ReadonlyArray<GQLItemSubmissions>;
  readonly latestItemSubmissions: ReadonlyArray<GQLItem>;
  readonly latestItemsByIpAddress: ReadonlyArray<GQLItemSubmissions>;
  readonly latestItemsCreatedBy: ReadonlyArray<GQLItemSubmissions>;
  readonly latestItemsCreatedByWithThread: ReadonlyArray<GQLThreadWithMessages>;
  readonly locationBank?: Maybe<GQLLocationBank>;
  readonly manualReviewQueue?: Maybe<GQLManualReviewQueue>;
  readonly me?: Maybe<GQLUser>;
  readonly myOrg?: Maybe<GQLOrg>;
  readonly ncmecOrgSettings?: Maybe<GQLNcmecOrgSettings>;
  readonly ncmecReportById?: Maybe<GQLNcmecReport>;
  readonly ncmecThreads: ReadonlyArray<GQLThreadWithMessagesAndIpAddress>;
  readonly org?: Maybe<GQLOrg>;
  readonly partialItems: GQLPartialItemsResponse;
  /** Server-owned grouping + ordering for the role-editor UI. Gated on MANAGE_ROLES. */
  readonly permissionGroups: ReadonlyArray<GQLPermissionGroup>;
  readonly policy?: Maybe<GQLPolicy>;
  readonly recentUserStrikeActions: ReadonlyArray<GQLRecentUserStrikeActions>;
  readonly reportingInsights: GQLReportingInsights;
  readonly reportingRule?: Maybe<GQLReportingRule>;
  /** All system roles for the invoking admin's org. Gated on MANAGE_ROLES. */
  readonly rolesForOrg: ReadonlyArray<GQLRole>;
  readonly rule?: Maybe<GQLRule>;
  readonly spotTestRule: GQLRuleExecutionResult;
  readonly textBank?: Maybe<GQLTextBank>;
  readonly threadHistory: ReadonlyArray<GQLItemSubmissions>;
  readonly topPolicyViolations: ReadonlyArray<GQLPolicyViolationsCount>;
  readonly user?: Maybe<GQLUser>;
  readonly userFromToken?: Maybe<Scalars['ID']['output']>;
  readonly userHistory: GQLUserHistoryResponse;
};

export type GQLQueryActionArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQueryActionStatisticsArgs = {
  input: GQLActionStatisticsInput;
};

export type GQLQueryExchangeApiSchemaArgs = {
  apiName: Scalars['String']['input'];
};

export type GQLQueryGetCommentsForJobArgs = {
  jobId: Scalars['ID']['input'];
};

export type GQLQueryGetDecidedJobArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQueryGetDecidedJobFromJobIdArgs = {
  id: Scalars['String']['input'];
};

export type GQLQueryGetDecisionCountsArgs = {
  input: GQLGetDecisionCountInput;
};

export type GQLQueryGetDecisionsTableArgs = {
  input: GQLGetDecisionCountsTableInput;
};

export type GQLQueryGetExistingJobsForItemArgs = {
  itemId: Scalars['ID']['input'];
  itemTypeId: Scalars['ID']['input'];
};

export type GQLQueryGetFullReportingRuleResultForItemArgs = {
  input: GQLGetFullResultForItemInput;
};

export type GQLQueryGetFullRuleResultForItemArgs = {
  input: GQLGetFullResultForItemInput;
};

export type GQLQueryGetJobCreationCountsArgs = {
  input: GQLGetJobCreationCountInput;
};

export type GQLQueryGetRecentDecisionsArgs = {
  input: GQLRecentDecisionsInput;
};

export type GQLQueryGetResolvedJobCountsArgs = {
  input: GQLGetResolvedJobCountInput;
};

export type GQLQueryGetResolvedJobsForUserArgs = {
  timeZone: Scalars['String']['input'];
};

export type GQLQueryGetSsoRedirectUrlArgs = {
  emailAddress: Scalars['String']['input'];
};

export type GQLQueryGetSkippedJobCountsArgs = {
  input: GQLGetSkippedJobCountInput;
};

export type GQLQueryGetSkippedJobsForUserArgs = {
  timeZone: Scalars['String']['input'];
};

export type GQLQueryGetSkipsForRecentDecisionsArgs = {
  input: GQLRecentDecisionsInput;
};

export type GQLQueryGetTimeToActionArgs = {
  input: GQLTimeToActionInput;
};

export type GQLQueryHashBankArgs = {
  name: Scalars['String']['input'];
};

export type GQLQueryHashBankByIdArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQueryIntegrationConfigArgs = {
  name: Scalars['String']['input'];
};

export type GQLQueryInviteUserTokenArgs = {
  token: Scalars['String']['input'];
};

export type GQLQueryItemActionHistoryArgs = {
  itemIdentifier: GQLItemIdentifierInput;
  submissionTime?: InputMaybe<Scalars['DateTime']['input']>;
};

export type GQLQueryItemSubmissionsArgs = {
  itemIdentifiers: ReadonlyArray<GQLItemIdentifierInput>;
};

export type GQLQueryItemTypeArgs = {
  id: Scalars['ID']['input'];
  version?: InputMaybe<Scalars['String']['input']>;
};

export type GQLQueryItemTypesArgs = {
  identifiers: ReadonlyArray<GQLItemTypeIdentifierInput>;
};

export type GQLQueryItemWithHistoryArgs = {
  itemIdentifier: GQLItemIdentifierInput;
  submissionTime?: InputMaybe<Scalars['DateTime']['input']>;
};

export type GQLQueryItemsWithIdArgs = {
  itemId: Scalars['ID']['input'];
  returnFirstResultOnly?: InputMaybe<Scalars['Boolean']['input']>;
  typeId?: InputMaybe<Scalars['ID']['input']>;
};

export type GQLQueryLatestItemSubmissionsArgs = {
  itemIdentifiers: ReadonlyArray<GQLItemIdentifierInput>;
};

export type GQLQueryLatestItemsByIpAddressArgs = {
  earliestReturnedSubmissionDate?: InputMaybe<Scalars['DateTime']['input']>;
  ipAddress: Scalars['String']['input'];
  limit?: InputMaybe<Scalars['Int']['input']>;
  oldestReturnedSubmissionDate?: InputMaybe<Scalars['DateTime']['input']>;
};

export type GQLQueryLatestItemsCreatedByArgs = {
  earliestReturnedSubmissionDate?: InputMaybe<Scalars['DateTime']['input']>;
  itemIdentifier: GQLItemIdentifierInput;
  oldestReturnedSubmissionDate?: InputMaybe<Scalars['DateTime']['input']>;
};

export type GQLQueryLatestItemsCreatedByWithThreadArgs = {
  itemIdentifier: GQLItemIdentifierInput;
};

export type GQLQueryLocationBankArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQueryManualReviewQueueArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQueryNcmecReportByIdArgs = {
  reportId: Scalars['ID']['input'];
};

export type GQLQueryNcmecThreadsArgs = {
  reportedMessages: ReadonlyArray<GQLItemIdentifierInput>;
  userId: GQLItemIdentifierInput;
};

export type GQLQueryOrgArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQueryPartialItemsArgs = {
  input: ReadonlyArray<GQLItemIdentifierInput>;
};

export type GQLQueryPolicyArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQueryRecentUserStrikeActionsArgs = {
  input: GQLRecentUserStrikeActionsInput;
};

export type GQLQueryReportingRuleArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQueryRuleArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQuerySpotTestRuleArgs = {
  item: GQLSpotTestItemInput;
  ruleId: Scalars['ID']['input'];
};

export type GQLQueryTextBankArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQueryThreadHistoryArgs = {
  endDate?: InputMaybe<Scalars['DateTime']['input']>;
  threadIdentifier: GQLItemIdentifierInput;
};

export type GQLQueryTopPolicyViolationsArgs = {
  input: GQLTopPolicyViolationsInput;
};

export type GQLQueryUserArgs = {
  id: Scalars['ID']['input'];
};

export type GQLQueryUserFromTokenArgs = {
  token: Scalars['String']['input'];
};

export type GQLQueryUserHistoryArgs = {
  itemIdentifier: GQLItemIdentifierInput;
};

export type GQLQueueDoesNotExistError = GQLError & {
  readonly __typename: 'QueueDoesNotExistError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLRecentDecisionsFilterInput = {
  readonly decisions?: InputMaybe<
    ReadonlyArray<GQLRecentManualReviewDecisionType>
  >;
  readonly endTime?: InputMaybe<Scalars['DateTime']['input']>;
  readonly policyIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly queueIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly reviewerIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly startTime?: InputMaybe<Scalars['DateTime']['input']>;
  readonly userSearchString?: InputMaybe<Scalars['String']['input']>;
};

export type GQLRecentDecisionsForUser = {
  readonly __typename: 'RecentDecisionsForUser';
  readonly recentDecisions: ReadonlyArray<GQLManualReviewDecision>;
  readonly userSearchString: Scalars['String']['output'];
};

export type GQLRecentDecisionsInput = {
  readonly filter: GQLRecentDecisionsFilterInput;
  readonly page?: InputMaybe<Scalars['Int']['input']>;
};

export type GQLRecentManualReviewAcceptAppealDecision = {
  readonly _?: InputMaybe<Scalars['Boolean']['input']>;
};

export type GQLRecentManualReviewAutomaticCloseDecision = {
  readonly _?: InputMaybe<Scalars['Boolean']['input']>;
};

export type GQLRecentManualReviewDecisionType = {
  readonly acceptAppealDecision?: InputMaybe<GQLRecentManualReviewAcceptAppealDecision>;
  readonly automaticCloseDecision?: InputMaybe<GQLRecentManualReviewAutomaticCloseDecision>;
  readonly ignoreDecision?: InputMaybe<GQLRecentManualReviewIgnoreDecision>;
  readonly rejectAppealDecision?: InputMaybe<GQLRecentManualReviewRejectAppealDecision>;
  readonly submitNcmecReportDecision?: InputMaybe<GQLRecentManualReviewSubmitNcmecReportDecision>;
  readonly transformJobAndRecreateInQueueDecision?: InputMaybe<GQLRecentManualReviewTransformJobAndRecreateInQueueDecision>;
  readonly userOrRelatedActionDecision?: InputMaybe<GQLRecentManualReviewUserOrRelatedActionDecision>;
};

export type GQLRecentManualReviewIgnoreDecision = {
  readonly _?: InputMaybe<Scalars['Boolean']['input']>;
};

export type GQLRecentManualReviewRejectAppealDecision = {
  readonly _?: InputMaybe<Scalars['Boolean']['input']>;
};

export type GQLRecentManualReviewSubmitNcmecReportDecision = {
  readonly _?: InputMaybe<Scalars['Boolean']['input']>;
};

export type GQLRecentManualReviewTransformJobAndRecreateInQueueDecision = {
  readonly _?: InputMaybe<Scalars['Boolean']['input']>;
};

export type GQLRecentManualReviewUserOrRelatedActionDecision = {
  readonly actionIds: ReadonlyArray<Scalars['ID']['input']>;
};

export type GQLRecentUserStrikeActions = {
  readonly __typename: 'RecentUserStrikeActions';
  readonly actionId: Scalars['String']['output'];
  readonly creatorId?: Maybe<Scalars['String']['output']>;
  readonly creatorTypeId?: Maybe<Scalars['String']['output']>;
  readonly itemId: Scalars['String']['output'];
  readonly itemTypeId: Scalars['String']['output'];
  readonly source: Scalars['String']['output'];
  readonly time: Scalars['DateTime']['output'];
};

export type GQLRecentUserStrikeActionsInput = {
  readonly filterBy?: InputMaybe<GQLStartAndEndDateFilterByInput>;
  readonly limit: Scalars['Int']['input'];
};

export type GQLRecommendedThresholds = {
  readonly __typename: 'RecommendedThresholds';
  readonly highPrecisionThreshold: Scalars['StringOrFloat']['output'];
  readonly highRecallThreshold: Scalars['StringOrFloat']['output'];
};

export type GQLRecordingJobDecisionFailedError = GQLError & {
  readonly __typename: 'RecordingJobDecisionFailedError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLRejectAppealDecisionComponent =
  GQLManualReviewDecisionComponentBase & {
    readonly __typename: 'RejectAppealDecisionComponent';
    readonly actionIds: ReadonlyArray<Scalars['String']['output']>;
    readonly appealId: Scalars['String']['output'];
    readonly type: GQLManualReviewDecisionType;
  };

export type GQLReleaseJobLockInput = {
  readonly jobId: Scalars['String']['input'];
  readonly lockToken: Scalars['String']['input'];
  readonly queueId: Scalars['String']['input'];
};

export type GQLRemoveAccessibleQueuesToUserInput = {
  readonly queueIds: ReadonlyArray<Scalars['ID']['input']>;
  readonly userId: Scalars['ID']['input'];
};

export type GQLRemoveAccessibleQueuesToUserResponse =
  GQLMutateAccessibleQueuesForUserSuccessResponse | GQLNotFoundError;

export type GQLRemoveFavoriteMrtQueueSuccessResponse = {
  readonly __typename: 'RemoveFavoriteMRTQueueSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLRemoveFavoriteRuleResponse =
  GQLRemoveFavoriteRuleSuccessResponse;

export type GQLRemoveFavoriteRuleSuccessResponse = {
  readonly __typename: 'RemoveFavoriteRuleSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLRenameRoleInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly displayName: Scalars['String']['input'];
  readonly roleKey: GQLUserRole;
};

export type GQLReorderRoutingRulesInput = {
  readonly isAppealsRule?: InputMaybe<Scalars['Boolean']['input']>;
  readonly order: ReadonlyArray<Scalars['ID']['input']>;
};

export type GQLReorderRoutingRulesResponse =
  GQLMutateRoutingRulesOrderSuccessResponse;

export type GQLReportEnqueueSourceInfo = {
  readonly __typename: 'ReportEnqueueSourceInfo';
  readonly kind: GQLJobCreationSourceOptions;
};

export type GQLReportHistoryEntry = {
  readonly __typename: 'ReportHistoryEntry';
  readonly policyId?: Maybe<Scalars['ID']['output']>;
  readonly reason?: Maybe<Scalars['String']['output']>;
  readonly reportId: Scalars['ID']['output'];
  readonly reportedAt: Scalars['DateTime']['output'];
  readonly reporterId?: Maybe<GQLItemIdentifier>;
};

export type GQLReportHistoryEntryInput = {
  readonly policyId?: InputMaybe<Scalars['ID']['input']>;
  readonly reason?: InputMaybe<Scalars['String']['input']>;
  readonly reportId: Scalars['ID']['input'];
  readonly reportedAt: Scalars['DateTime']['input'];
  readonly reporterId?: InputMaybe<GQLReporterIdInput>;
};

export type GQLReportedForReason = {
  readonly __typename: 'ReportedForReason';
  readonly reason?: Maybe<Scalars['String']['output']>;
  readonly reporterId?: Maybe<GQLItemIdentifier>;
};

export type GQLReporterIdInput = {
  readonly id: Scalars['ID']['input'];
  readonly typeId: Scalars['ID']['input'];
};

export type GQLReportingInsights = {
  readonly __typename: 'ReportingInsights';
  readonly totalIngestedReportsByDay: ReadonlyArray<GQLCountByDay>;
};

export type GQLReportingRule = {
  readonly __typename: 'ReportingRule';
  readonly actions: ReadonlyArray<GQLAction>;
  readonly conditionSet: GQLConditionSet;
  readonly creator?: Maybe<GQLUser>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly insights: GQLReportingRuleInsights;
  readonly itemTypes: ReadonlyArray<GQLItemType>;
  readonly name: Scalars['String']['output'];
  readonly orgId: Scalars['ID']['output'];
  readonly policies: ReadonlyArray<GQLPolicy>;
  readonly status: GQLReportingRuleStatus;
};

export type GQLReportingRuleExecutionResult = {
  readonly __typename: 'ReportingRuleExecutionResult';
  readonly creatorId?: Maybe<Scalars['String']['output']>;
  readonly creatorTypeId?: Maybe<Scalars['String']['output']>;
  readonly date: Scalars['Date']['output'];
  readonly environment: GQLRuleEnvironment;
  readonly itemData: Scalars['String']['output'];
  readonly itemId: Scalars['ID']['output'];
  readonly itemTypeId: Scalars['ID']['output'];
  readonly itemTypeName: Scalars['String']['output'];
  readonly passed: Scalars['Boolean']['output'];
  readonly policyIds: ReadonlyArray<Scalars['String']['output']>;
  readonly result?: Maybe<GQLConditionSetWithResult>;
  readonly ruleId: Scalars['ID']['output'];
  readonly ruleName: Scalars['String']['output'];
  readonly signalResults?: Maybe<ReadonlyArray<GQLSignalWithScore>>;
  readonly ts: Scalars['DateTime']['output'];
};

export type GQLReportingRuleInsights = {
  readonly __typename: 'ReportingRuleInsights';
  readonly latestVersionSamples: ReadonlyArray<GQLReportingRuleExecutionResult>;
  readonly passRateData: ReadonlyArray<GQLReportingRulePassRateData>;
  readonly priorVersionSamples: ReadonlyArray<GQLReportingRuleExecutionResult>;
};

export type GQLReportingRuleInsightsPassRateDataArgs = {
  lookbackStartDate?: InputMaybe<Scalars['Date']['input']>;
};

export type GQLReportingRuleNameExistsError = GQLError & {
  readonly __typename: 'ReportingRuleNameExistsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLReportingRulePassRateData = {
  readonly __typename: 'ReportingRulePassRateData';
  readonly date: Scalars['String']['output'];
  readonly totalMatches: Scalars['Float']['output'];
  readonly totalRequests: Scalars['Float']['output'];
};

export const GQLReportingRuleStatus = {
  Archived: 'ARCHIVED',
  Background: 'BACKGROUND',
  Draft: 'DRAFT',
  Live: 'LIVE',
} as const;

export type GQLReportingRuleStatus =
  (typeof GQLReportingRuleStatus)[keyof typeof GQLReportingRuleStatus];
export type GQLResetPasswordInput = {
  readonly newPassword: Scalars['String']['input'];
  readonly token: Scalars['String']['input'];
};

export type GQLResolvedJobCount = {
  readonly __typename: 'ResolvedJobCount';
  readonly count: Scalars['Int']['output'];
  readonly queueId?: Maybe<Scalars['String']['output']>;
  readonly reviewerId?: Maybe<Scalars['String']['output']>;
  readonly time: Scalars['String']['output'];
};

export type GQLRetryNcmecSubmissionResponse = {
  readonly __typename: 'RetryNcmecSubmissionResponse';
  /**
   * Human-readable error summary if the retry failed. Never includes raw
   * NCMEC response bodies; safe to render in the UI.
   */
  readonly error?: Maybe<Scalars['String']['output']>;
  readonly success: Scalars['Boolean']['output'];
};

export type GQLRole = {
  readonly __typename: 'Role';
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly displayName: Scalars['String']['output'];
  /** Persisted public.roles.id, or null when the row is materialized lazily on first save. */
  readonly id?: Maybe<Scalars['ID']['output']>;
  /** True when permissions/metadata come from the static fallback rather than public.roles. */
  readonly isFallback: Scalars['Boolean']['output'];
  readonly isSystem: Scalars['Boolean']['output'];
  /** Stable role identifier (matches UserRole). */
  readonly key: GQLUserRole;
  readonly permissions: ReadonlyArray<GQLUserPermission>;
  /** Number of approved (non-rejected) users in the org assigned to this role. */
  readonly userCount: Scalars['Int']['output'];
};

export type GQLRotateApiKeyError = GQLError & {
  readonly __typename: 'RotateApiKeyError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLRotateApiKeyInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly name: Scalars['String']['input'];
};

export type GQLRotateApiKeyResponse =
  GQLRotateApiKeyError | GQLRotateApiKeySuccessResponse;

export type GQLRotateApiKeySuccessResponse = {
  readonly __typename: 'RotateApiKeySuccessResponse';
  readonly apiKey: Scalars['String']['output'];
  readonly record: GQLApiKey;
};

export type GQLRotateWebhookSigningKeyError = GQLError & {
  readonly __typename: 'RotateWebhookSigningKeyError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLRotateWebhookSigningKeyResponse =
  GQLRotateWebhookSigningKeyError | GQLRotateWebhookSigningKeySuccessResponse;

export type GQLRotateWebhookSigningKeySuccessResponse = {
  readonly __typename: 'RotateWebhookSigningKeySuccessResponse';
  readonly publicSigningKey: Scalars['String']['output'];
};

export type GQLRoutingRule = {
  readonly __typename: 'RoutingRule';
  readonly conditionSet: GQLConditionSet;
  readonly creatorId: Scalars['String']['output'];
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly destinationQueue: GQLManualReviewQueue;
  readonly id: Scalars['ID']['output'];
  readonly itemTypes: ReadonlyArray<GQLItemType>;
  readonly name: Scalars['String']['output'];
  readonly status: GQLRoutingRuleStatus;
};

export type GQLRoutingRuleNameExistsError = GQLError & {
  readonly __typename: 'RoutingRuleNameExistsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export const GQLRoutingRuleStatus = {
  Live: 'LIVE',
} as const;

export type GQLRoutingRuleStatus =
  (typeof GQLRoutingRuleStatus)[keyof typeof GQLRoutingRuleStatus];
export type GQLRule = {
  /** @deprecated Use configuredParameters on each Action instead. */
  readonly actionParameters: ReadonlyArray<GQLRuleActionParameterValues>;
  readonly actions: ReadonlyArray<GQLAction>;
  readonly backtests: ReadonlyArray<GQLBacktest>;
  readonly conditionSet: GQLConditionSet;
  readonly createdAt: Scalars['String']['output'];
  readonly creator: GQLUser;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly expirationTime?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly insights: GQLRuleInsights;
  readonly maxDailyActions?: Maybe<Scalars['Float']['output']>;
  readonly name: Scalars['String']['output'];
  readonly parentId?: Maybe<Scalars['ID']['output']>;
  readonly policies: ReadonlyArray<GQLPolicy>;
  readonly status: GQLRuleStatus;
  readonly tags?: Maybe<ReadonlyArray<Maybe<Scalars['String']['output']>>>;
  readonly updatedAt: Scalars['String']['output'];
};

export type GQLRuleBacktestsArgs = {
  ids?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
};

export type GQLRuleActionParameterValues = {
  readonly __typename: 'RuleActionParameterValues';
  readonly actionId: Scalars['ID']['output'];
  readonly parameters: Scalars['JSONObject']['output'];
};

export type GQLRuleActionParameterValuesInput = {
  readonly actionId: Scalars['ID']['input'];
  readonly parameters: Scalars['JSONObject']['input'];
};

export const GQLRuleEnvironment = {
  Background: 'BACKGROUND',
  Backtest: 'BACKTEST',
  Live: 'LIVE',
  Manual: 'MANUAL',
  Retroaction: 'RETROACTION',
} as const;

export type GQLRuleEnvironment =
  (typeof GQLRuleEnvironment)[keyof typeof GQLRuleEnvironment];
export type GQLRuleExecutionEnqueueSourceInfo = {
  readonly __typename: 'RuleExecutionEnqueueSourceInfo';
  readonly kind: GQLJobCreationSourceOptions;
  readonly rules: ReadonlyArray<GQLRule>;
};

export type GQLRuleExecutionResult = {
  readonly __typename: 'RuleExecutionResult';
  readonly content: Scalars['String']['output'];
  readonly contentId: Scalars['String']['output'];
  readonly date: Scalars['Date']['output'];
  readonly environment: GQLRuleEnvironment;
  readonly itemTypeId: Scalars['ID']['output'];
  readonly itemTypeName: Scalars['String']['output'];
  readonly passed: Scalars['Boolean']['output'];
  readonly policies: ReadonlyArray<Scalars['String']['output']>;
  readonly result?: Maybe<GQLConditionSetWithResult>;
  readonly ruleId: Scalars['ID']['output'];
  readonly ruleName: Scalars['String']['output'];
  readonly signalResults?: Maybe<ReadonlyArray<GQLSignalWithScore>>;
  readonly tags: ReadonlyArray<Scalars['String']['output']>;
  readonly ts: Scalars['DateTime']['output'];
  readonly userId?: Maybe<Scalars['String']['output']>;
  readonly userTypeId?: Maybe<Scalars['String']['output']>;
};

export type GQLRuleExecutionResultEdge = {
  readonly __typename: 'RuleExecutionResultEdge';
  readonly cursor: Scalars['Cursor']['output'];
  readonly node: GQLRuleExecutionResult;
};

export type GQLRuleExecutionResultsConnection = {
  readonly __typename: 'RuleExecutionResultsConnection';
  readonly edges: ReadonlyArray<GQLRuleExecutionResultEdge>;
  readonly pageInfo: GQLPageInfo;
};

export type GQLRuleHasRunningBacktestsError = GQLError & {
  readonly __typename: 'RuleHasRunningBacktestsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLRuleInsights = {
  readonly __typename: 'RuleInsights';
  readonly latestVersionSamples: ReadonlyArray<GQLRuleExecutionResult>;
  readonly passRateData?: Maybe<ReadonlyArray<Maybe<GQLRulePassRateData>>>;
  readonly priorVersionSamples: ReadonlyArray<GQLRuleExecutionResult>;
};

export type GQLRuleInsightsPassRateDataArgs = {
  lookbackStartDate?: InputMaybe<Scalars['Date']['input']>;
};

export type GQLRuleNameExistsError = GQLError & {
  readonly __typename: 'RuleNameExistsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLRulePassRateData = {
  readonly __typename: 'RulePassRateData';
  readonly date: Scalars['String']['output'];
  readonly totalMatches: Scalars['Float']['output'];
  readonly totalRequests: Scalars['Float']['output'];
};

export const GQLRuleStatus = {
  Archived: 'ARCHIVED',
  Background: 'BACKGROUND',
  Deprecated: 'DEPRECATED',
  Draft: 'DRAFT',
  Expired: 'EXPIRED',
  Live: 'LIVE',
} as const;

export type GQLRuleStatus = (typeof GQLRuleStatus)[keyof typeof GQLRuleStatus];
export type GQLRunRetroactionInput = {
  readonly endAt: Scalars['DateTime']['input'];
  readonly ruleId: Scalars['ID']['input'];
  readonly startAt: Scalars['DateTime']['input'];
};

export type GQLRunRetroactionResponse = GQLRunRetroactionSuccessResponse;

export type GQLRunRetroactionSuccessResponse = {
  readonly __typename: 'RunRetroactionSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLScalarSignalOutputType = {
  readonly __typename: 'ScalarSignalOutputType';
  readonly scalarType: GQLScalarType;
};

export const GQLScalarType = {
  Audio: 'AUDIO',
  Boolean: 'BOOLEAN',
  Datetime: 'DATETIME',
  EmailAddress: 'EMAIL_ADDRESS',
  Geohash: 'GEOHASH',
  Id: 'ID',
  Image: 'IMAGE',
  IpAddress: 'IP_ADDRESS',
  Media: 'MEDIA',
  Number: 'NUMBER',
  PolicyId: 'POLICY_ID',
  RelatedItem: 'RELATED_ITEM',
  String: 'STRING',
  Url: 'URL',
  UserId: 'USER_ID',
  Video: 'VIDEO',
} as const;

export type GQLScalarType = (typeof GQLScalarType)[keyof typeof GQLScalarType];
export type GQLSchemaFieldRoles =
  | GQLContentSchemaFieldRoles
  | GQLThreadSchemaFieldRoles
  | GQLUserSchemaFieldRoles;

export type GQLSendPasswordResetInput = {
  readonly email: Scalars['String']['input'];
};

export type GQLSetAllUserStrikeThresholdsInput = {
  readonly thresholds: ReadonlyArray<GQLSetUserStrikeThresholdInput>;
};

export type GQLSetAllUserStrikeThresholdsSuccessResponse = {
  readonly __typename: 'SetAllUserStrikeThresholdsSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLSetIntegrationConfigInput = {
  readonly apiCredential: GQLIntegrationApiCredentialInput;
};

export type GQLSetIntegrationConfigResponse =
  | GQLIntegrationConfigTooManyCredentialsError
  | GQLIntegrationEmptyInputCredentialsError
  | GQLIntegrationNoInputCredentialsError
  | GQLSetIntegrationConfigSuccessResponse;

export type GQLSetIntegrationConfigSuccessResponse = {
  readonly __typename: 'SetIntegrationConfigSuccessResponse';
  readonly config: GQLIntegrationConfig;
};

export type GQLSetModeratorSafetySettingsSuccessResponse = {
  readonly __typename: 'SetModeratorSafetySettingsSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLSetMrtChartConfigurationSettingsSuccessResponse = {
  readonly __typename: 'SetMrtChartConfigurationSettingsSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLSetPluginIntegrationConfigInput = {
  readonly credential: Scalars['JSONObject']['input'];
  readonly integrationId: Scalars['String']['input'];
};

export type GQLSetUserStrikeThresholdInput = {
  readonly actionParameters?: InputMaybe<Scalars['JSONObject']['input']>;
  readonly actions: ReadonlyArray<Scalars['String']['input']>;
  readonly threshold: Scalars['Int']['input'];
};

export type GQLSignUpInput = {
  readonly email: Scalars['String']['input'];
  readonly firstName: Scalars['String']['input'];
  readonly inviteUserToken?: InputMaybe<Scalars['String']['input']>;
  readonly lastName: Scalars['String']['input'];
  readonly loginMethod: GQLLoginMethod;
  readonly orgId: Scalars['String']['input'];
  readonly password?: InputMaybe<Scalars['String']['input']>;
  readonly role?: InputMaybe<GQLUserRole>;
};

export type GQLSignUpResponse =
  GQLSignUpSuccessResponse | GQLSignUpUserExistsError;

export type GQLSignUpSuccessResponse = {
  readonly __typename: 'SignUpSuccessResponse';
  readonly data?: Maybe<GQLUser>;
};

export type GQLSignUpUserExistsError = GQLError & {
  readonly __typename: 'SignUpUserExistsError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLSignal = {
  readonly __typename: 'Signal';
  readonly allowedInAutomatedRules: Scalars['Boolean']['output'];
  readonly args?: Maybe<GQLSignalArgs>;
  readonly callbackUrl?: Maybe<Scalars['String']['output']>;
  readonly callbackUrlBody?: Maybe<Scalars['String']['output']>;
  readonly callbackUrlHeaders?: Maybe<Scalars['String']['output']>;
  readonly description: Scalars['String']['output'];
  readonly disabledInfo: GQLDisabledInfo;
  readonly docsUrl?: Maybe<Scalars['String']['output']>;
  readonly eligibleInputs: ReadonlyArray<GQLSignalInputType>;
  readonly eligibleSubcategories: ReadonlyArray<GQLSignalSubcategory>;
  readonly id: Scalars['ID']['output'];
  readonly integration?: Maybe<Scalars['String']['output']>;
  /** Logo URL for the integration. Null if not set or when signal has no integration. */
  readonly integrationLogoUrl?: Maybe<Scalars['String']['output']>;
  /** Logo-with-background URL for the integration. Null if not set or when signal has no integration. */
  readonly integrationLogoWithBackgroundUrl?: Maybe<
    Scalars['String']['output']
  >;
  /** Display name for the signal’s integration (from registry manifest). Null when signal has no integration. */
  readonly integrationTitle?: Maybe<Scalars['String']['output']>;
  readonly name: Scalars['String']['output'];
  readonly outputType: GQLSignalOutputType;
  readonly pricingStructure: GQLSignalPricingStructure;
  readonly recommendedThresholds?: Maybe<GQLRecommendedThresholds>;
  readonly shouldPromptForMatchingValues: Scalars['Boolean']['output'];
  readonly subcategory?: Maybe<Scalars['String']['output']>;
  readonly supportedLanguages: GQLSupportedLanguages;
  readonly type: Scalars['String']['output'];
};

export type GQLSignalArgs = GQLAggregationSignalArgs;

export type GQLSignalArgsInput = {
  readonly AGGREGATION?: InputMaybe<GQLAggregationSignalArgsInput>;
};

export const GQLSignalInputType = {
  Audio: 'AUDIO',
  Boolean: 'BOOLEAN',
  Datetime: 'DATETIME',
  EmailAddress: 'EMAIL_ADDRESS',
  FullItem: 'FULL_ITEM',
  Geohash: 'GEOHASH',
  Id: 'ID',
  Image: 'IMAGE',
  IpAddress: 'IP_ADDRESS',
  Media: 'MEDIA',
  Number: 'NUMBER',
  PolicyId: 'POLICY_ID',
  RelatedItem: 'RELATED_ITEM',
  String: 'STRING',
  Url: 'URL',
  UserId: 'USER_ID',
  Video: 'VIDEO',
} as const;

export type GQLSignalInputType =
  (typeof GQLSignalInputType)[keyof typeof GQLSignalInputType];
export type GQLSignalOutputType =
  GQLEnumSignalOutputType | GQLScalarSignalOutputType;

export type GQLSignalPricingStructure = {
  readonly __typename: 'SignalPricingStructure';
  readonly type: GQLSignalPricingStructureType;
};

export const GQLSignalPricingStructureType = {
  Free: 'FREE',
  Subscription: 'SUBSCRIPTION',
} as const;

export type GQLSignalPricingStructureType =
  (typeof GQLSignalPricingStructureType)[keyof typeof GQLSignalPricingStructureType];
export type GQLSignalSubcategory = {
  readonly __typename: 'SignalSubcategory';
  readonly childrenIds: ReadonlyArray<Scalars['String']['output']>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['String']['output'];
  readonly label: Scalars['String']['output'];
};

export type GQLSignalSubcategoryInput = {
  readonly name?: InputMaybe<Scalars['String']['input']>;
  readonly options?: InputMaybe<
    ReadonlyArray<InputMaybe<GQLSignalSubcategoryOptionInput>>
  >;
};

export type GQLSignalSubcategoryOptionInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly name?: InputMaybe<Scalars['String']['input']>;
};

export const GQLSignalType = {
  Aggregation: 'AGGREGATION',
  Custom: 'CUSTOM',
  GeoContainedWithin: 'GEO_CONTAINED_WITHIN',
  GoogleContentSafetyApiImage: 'GOOGLE_CONTENT_SAFETY_API_IMAGE',
  ImageSimilarityDoesNotMatch: 'IMAGE_SIMILARITY_DOES_NOT_MATCH',
  ImageSimilarityMatch: 'IMAGE_SIMILARITY_MATCH',
  OpenAiGraphicViolenceImageModel: 'OPEN_AI_GRAPHIC_VIOLENCE_IMAGE_MODEL',
  OpenAiGraphicViolenceTextModel: 'OPEN_AI_GRAPHIC_VIOLENCE_TEXT_MODEL',
  OpenAiHateTextModel: 'OPEN_AI_HATE_TEXT_MODEL',
  OpenAiHateThreateningTextModel: 'OPEN_AI_HATE_THREATENING_TEXT_MODEL',
  OpenAiSelfHarmImageModel: 'OPEN_AI_SELF_HARM_IMAGE_MODEL',
  OpenAiSelfHarmInstructionsImageModel:
    'OPEN_AI_SELF_HARM_INSTRUCTIONS_IMAGE_MODEL',
  OpenAiSelfHarmInstructionsTextModel:
    'OPEN_AI_SELF_HARM_INSTRUCTIONS_TEXT_MODEL',
  OpenAiSelfHarmIntentImageModel: 'OPEN_AI_SELF_HARM_INTENT_IMAGE_MODEL',
  OpenAiSelfHarmIntentTextModel: 'OPEN_AI_SELF_HARM_INTENT_TEXT_MODEL',
  OpenAiSelfHarmTextModel: 'OPEN_AI_SELF_HARM_TEXT_MODEL',
  OpenAiSexualImageModel: 'OPEN_AI_SEXUAL_IMAGE_MODEL',
  OpenAiSexualMinorsTextModel: 'OPEN_AI_SEXUAL_MINORS_TEXT_MODEL',
  OpenAiSexualTextModel: 'OPEN_AI_SEXUAL_TEXT_MODEL',
  OpenAiViolenceImageModel: 'OPEN_AI_VIOLENCE_IMAGE_MODEL',
  OpenAiViolenceTextModel: 'OPEN_AI_VIOLENCE_TEXT_MODEL',
  OpenAiWhisperTranscription: 'OPEN_AI_WHISPER_TRANSCRIPTION',
  TextMatchingContainsRegex: 'TEXT_MATCHING_CONTAINS_REGEX',
  TextMatchingContainsText: 'TEXT_MATCHING_CONTAINS_TEXT',
  TextMatchingContainsVariant: 'TEXT_MATCHING_CONTAINS_VARIANT',
  TextMatchingNotContainsRegex: 'TEXT_MATCHING_NOT_CONTAINS_REGEX',
  TextMatchingNotContainsText: 'TEXT_MATCHING_NOT_CONTAINS_TEXT',
  TextSimilarityScore: 'TEXT_SIMILARITY_SCORE',
  UserScore: 'USER_SCORE',
  UserStrikeValue: 'USER_STRIKE_VALUE',
  ZentropiLabeler: 'ZENTROPI_LABELER',
} as const;

export type GQLSignalType = (typeof GQLSignalType)[keyof typeof GQLSignalType];
export type GQLSignalWithScore = {
  readonly __typename: 'SignalWithScore';
  readonly integration?: Maybe<Scalars['String']['output']>;
  readonly score: Scalars['String']['output'];
  readonly signalName: Scalars['String']['output'];
  readonly subcategory?: Maybe<Scalars['String']['output']>;
};

export type GQLSkippedJob = {
  readonly __typename: 'SkippedJob';
  readonly jobId: Scalars['String']['output'];
  readonly queueId: Scalars['String']['output'];
  readonly ts: Scalars['DateTime']['output'];
  readonly userId: Scalars['String']['output'];
};

export type GQLSkippedJobCount = {
  readonly __typename: 'SkippedJobCount';
  readonly count: Scalars['Int']['output'];
  readonly queueId?: Maybe<Scalars['String']['output']>;
  readonly reviewerId?: Maybe<Scalars['String']['output']>;
  readonly time: Scalars['String']['output'];
};

export const GQLSkippedJobCountGroupByColumns = {
  QueueId: 'QUEUE_ID',
  ReviewerId: 'REVIEWER_ID',
} as const;

export type GQLSkippedJobCountGroupByColumns =
  (typeof GQLSkippedJobCountGroupByColumns)[keyof typeof GQLSkippedJobCountGroupByColumns];
export type GQLSkippedJobFilterByInput = {
  readonly endDate: Scalars['DateTime']['input'];
  readonly queueIds: ReadonlyArray<Scalars['String']['input']>;
  readonly reviewerIds: ReadonlyArray<Scalars['String']['input']>;
  readonly startDate: Scalars['DateTime']['input'];
};

export const GQLSortOrder = {
  Asc: 'ASC',
  Desc: 'DESC',
} as const;

export type GQLSortOrder = (typeof GQLSortOrder)[keyof typeof GQLSortOrder];
export type GQLSpotTestItemInput = {
  readonly data: Scalars['JSONObject']['input'];
  readonly itemTypeIdentifier: GQLItemTypeIdentifierInput;
};

export type GQLStartAndEndDateFilterByInput = {
  readonly endDate: Scalars['DateTime']['input'];
  readonly startDate: Scalars['DateTime']['input'];
};

export type GQLSubmitAppealDecisionInput = {
  readonly appealId: Scalars['String']['input'];
};

export type GQLSubmitDecisionInput = {
  readonly decisionReason?: InputMaybe<Scalars['String']['input']>;
  readonly jobId: Scalars['ID']['input'];
  readonly lockToken: Scalars['String']['input'];
  readonly queueId: Scalars['ID']['input'];
  readonly relatedItemActions: ReadonlyArray<GQLExecuteBulkActionsInput>;
  readonly reportHistory: ReadonlyArray<GQLReportHistoryEntryInput>;
  readonly reportedItemDecisionComponents: ReadonlyArray<GQLDecisionSubmission>;
};

export type GQLSubmitDecisionResponse =
  | GQLJobHasAlreadyBeenSubmittedError
  | GQLMissingRequiredDecisionReasonError
  | GQLMissingRequiredPolicyForDecisionError
  | GQLNoJobWithIdInQueueError
  | GQLRecordingJobDecisionFailedError
  | GQLSubmitDecisionSuccessResponse
  | GQLSubmittedJobActionNotFoundError;

export type GQLSubmitDecisionSuccessResponse = {
  readonly __typename: 'SubmitDecisionSuccessResponse';
  readonly success: Scalars['Boolean']['output'];
};

export type GQLSubmitNcmecReportDecisionComponent =
  GQLManualReviewDecisionComponentBase & {
    readonly __typename: 'SubmitNCMECReportDecisionComponent';
    readonly reportedMedia: ReadonlyArray<GQLNcmecReportedMediaDetails>;
    readonly type: GQLManualReviewDecisionType;
  };

export type GQLSubmitNcmecReportInput = {
  readonly additionalInfo?: InputMaybe<Scalars['String']['input']>;
  readonly escalateToHighPriority?: InputMaybe<Scalars['String']['input']>;
  readonly incidentType: GQLNcmecIncidentType;
  readonly reportedMedia: ReadonlyArray<GQLNcmecMediaInput>;
  readonly reportedMessages: ReadonlyArray<GQLNcmecThreadInput>;
};

export type GQLSubmittedJobActionNotFoundError = GQLError & {
  readonly __typename: 'SubmittedJobActionNotFoundError';
  readonly detail?: Maybe<Scalars['String']['output']>;
  readonly pointer?: Maybe<Scalars['String']['output']>;
  readonly requestId?: Maybe<Scalars['String']['output']>;
  readonly status: Scalars['Int']['output'];
  readonly title: Scalars['String']['output'];
  readonly type: ReadonlyArray<Scalars['String']['output']>;
};

export type GQLSupportedLanguages = GQLAllLanguages | GQLLanguages;

export type GQLTableDecisionCount = {
  readonly __typename: 'TableDecisionCount';
  readonly action_id?: Maybe<Scalars['String']['output']>;
  readonly count: Scalars['Int']['output'];
  readonly queue_id?: Maybe<Scalars['String']['output']>;
  readonly reviewer_id?: Maybe<Scalars['String']['output']>;
  readonly type: GQLManualReviewDecisionType;
};

export type GQLTextBank = {
  readonly __typename: 'TextBank';
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly name: Scalars['String']['output'];
  readonly strings: ReadonlyArray<Scalars['String']['output']>;
  readonly type: GQLTextBankType;
};

export const GQLTextBankType = {
  Regex: 'REGEX',
  String: 'STRING',
} as const;

export type GQLTextBankType =
  (typeof GQLTextBankType)[keyof typeof GQLTextBankType];
export type GQLThreadAppealManualReviewJobPayload = {
  readonly __typename: 'ThreadAppealManualReviewJobPayload';
  readonly actionsTaken: ReadonlyArray<Scalars['String']['output']>;
  readonly appealId: Scalars['String']['output'];
  readonly appealReason?: Maybe<Scalars['String']['output']>;
  readonly appealerIdentifier?: Maybe<GQLItemIdentifier>;
  readonly enqueueSourceInfo?: Maybe<GQLAppealEnqueueSourceInfo>;
  readonly item: GQLThreadItem;
};

export type GQLThreadItem = GQLItemBase & {
  readonly __typename: 'ThreadItem';
  readonly data: Scalars['JSONObject']['output'];
  readonly id: Scalars['ID']['output'];
  readonly submissionId: Scalars['ID']['output'];
  readonly submissionTime?: Maybe<Scalars['DateTime']['output']>;
  readonly type: GQLThreadItemType;
};

export type GQLThreadItemType = GQLItemTypeBase & {
  readonly __typename: 'ThreadItemType';
  readonly baseFields: ReadonlyArray<GQLBaseField>;
  readonly derivedFields: ReadonlyArray<GQLDerivedField>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly hiddenFields: ReadonlyArray<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly name: Scalars['String']['output'];
  readonly schemaFieldRoles: GQLThreadSchemaFieldRoles;
  readonly schemaVariant: GQLItemTypeSchemaVariant;
  readonly version: Scalars['String']['output'];
};

export type GQLThreadManualReviewJobPayload = {
  readonly __typename: 'ThreadManualReviewJobPayload';
  readonly enqueueSourceInfo?: Maybe<GQLManualReviewJobEnqueueSourceInfo>;
  readonly item: GQLThreadItem;
  readonly reportHistory: ReadonlyArray<GQLReportHistoryEntry>;
  readonly reportedForReason?: Maybe<Scalars['String']['output']>;
  readonly reportedForReasons: ReadonlyArray<GQLReportedForReason>;
  readonly threadItems: ReadonlyArray<GQLItemWithParents>;
};

export type GQLThreadSchemaFieldRoles = {
  readonly __typename: 'ThreadSchemaFieldRoles';
  readonly createdAt?: Maybe<Scalars['String']['output']>;
  readonly creatorId?: Maybe<Scalars['String']['output']>;
  readonly displayName?: Maybe<Scalars['String']['output']>;
  readonly ipAddress?: Maybe<Scalars['String']['output']>;
  readonly isDeleted?: Maybe<Scalars['String']['output']>;
};

export type GQLThreadSchemaFieldRolesInput = {
  readonly createdAt?: InputMaybe<Scalars['String']['input']>;
  readonly creatorId?: InputMaybe<Scalars['String']['input']>;
  readonly displayName?: InputMaybe<Scalars['String']['input']>;
  readonly ipAddress?: InputMaybe<Scalars['String']['input']>;
  readonly isDeleted?: InputMaybe<Scalars['String']['input']>;
};

export type GQLThreadWithMessages = {
  readonly __typename: 'ThreadWithMessages';
  readonly messages: ReadonlyArray<GQLItemSubmissions>;
  readonly threadId: Scalars['ID']['output'];
  readonly threadTypeId: Scalars['ID']['output'];
};

export type GQLThreadWithMessagesAndIpAddress = {
  readonly __typename: 'ThreadWithMessagesAndIpAddress';
  readonly messages: ReadonlyArray<GQLMessageWithIpAddress>;
  readonly threadId: Scalars['ID']['output'];
  readonly threadTypeId: Scalars['ID']['output'];
};

export type GQLTimeToAction = {
  readonly __typename: 'TimeToAction';
  readonly itemTypeId?: Maybe<Scalars['String']['output']>;
  readonly queueId?: Maybe<Scalars['String']['output']>;
  readonly timeToAction?: Maybe<Scalars['Int']['output']>;
};

export type GQLTimeToActionFilterByInput = {
  readonly endDate: Scalars['DateTime']['input'];
  readonly itemTypeIds: ReadonlyArray<Scalars['String']['input']>;
  readonly queueIds: ReadonlyArray<Scalars['String']['input']>;
  readonly startDate: Scalars['DateTime']['input'];
};

export const GQLTimeToActionGroupByColumns = {
  ItemTypeId: 'ITEM_TYPE_ID',
  QueueId: 'QUEUE_ID',
  ReviewerId: 'REVIEWER_ID',
} as const;

export type GQLTimeToActionGroupByColumns =
  (typeof GQLTimeToActionGroupByColumns)[keyof typeof GQLTimeToActionGroupByColumns];
export type GQLTimeToActionInput = {
  readonly filterBy: GQLTimeToActionFilterByInput;
  readonly groupBy: ReadonlyArray<GQLTimeToActionGroupByColumns>;
};

export type GQLTopPolicyViolationsInput = {
  readonly filterBy: GQLStartAndEndDateFilterByInput;
  readonly timeZone: Scalars['String']['input'];
};

export type GQLTransformJobAndRecreateInQueue = {
  readonly newJobKind: GQLManualReviewJobKind;
  readonly newQueueId?: InputMaybe<Scalars['String']['input']>;
  readonly originalQueueId?: InputMaybe<Scalars['String']['input']>;
  readonly policyIds: ReadonlyArray<Scalars['String']['input']>;
};

export type GQLTransformJobAndRecreateInQueueDecisionComponent =
  GQLManualReviewDecisionComponentBase & {
    readonly __typename: 'TransformJobAndRecreateInQueueDecisionComponent';
    readonly newJobKind: GQLManualReviewJobKind;
    readonly newQueueId?: Maybe<Scalars['String']['output']>;
    readonly originalQueueId?: Maybe<Scalars['String']['output']>;
    readonly policyIds?: Maybe<ReadonlyArray<Scalars['String']['output']>>;
    readonly type: GQLManualReviewDecisionType;
  };

export type GQLUpdateActionInput = {
  readonly applyUserStrikes?: InputMaybe<Scalars['Boolean']['input']>;
  readonly callbackUrl?: InputMaybe<Scalars['String']['input']>;
  readonly callbackUrlBody?: InputMaybe<Scalars['JSONObject']['input']>;
  readonly callbackUrlHeaders?: InputMaybe<Scalars['JSONObject']['input']>;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly id: Scalars['ID']['input'];
  readonly itemTypeIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly name?: InputMaybe<Scalars['String']['input']>;
  /** Replace the parameter list (`[]` clears it). Omit to leave unchanged. */
  readonly parameters?: InputMaybe<ReadonlyArray<GQLActionParameterInput>>;
};

export type GQLUpdateContentItemTypeInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly fieldRoles?: InputMaybe<GQLContentSchemaFieldRolesInput>;
  readonly fields?: InputMaybe<ReadonlyArray<GQLFieldInput>>;
  readonly hiddenFields?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
  readonly id: Scalars['ID']['input'];
  readonly name?: InputMaybe<Scalars['String']['input']>;
};

export type GQLUpdateContentRuleInput = {
  readonly actionIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly actionParameters?: InputMaybe<
    ReadonlyArray<GQLRuleActionParameterValuesInput>
  >;
  readonly cancelRunningBacktests?: InputMaybe<Scalars['Boolean']['input']>;
  readonly conditionSet?: InputMaybe<GQLConditionSetInput>;
  readonly contentTypeIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly expirationTime?: InputMaybe<Scalars['DateTime']['input']>;
  readonly id: Scalars['ID']['input'];
  readonly maxDailyActions?: InputMaybe<Scalars['Float']['input']>;
  readonly name?: InputMaybe<Scalars['String']['input']>;
  readonly parentId?: InputMaybe<Scalars['ID']['input']>;
  readonly policyIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly status?: InputMaybe<GQLRuleStatus>;
  readonly tags?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
};

export type GQLUpdateContentRuleResponse =
  | GQLMutateContentRuleSuccessResponse
  | GQLNotFoundError
  | GQLRuleHasRunningBacktestsError
  | GQLRuleNameExistsError;

export type GQLUpdateHashBankInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly enabled_ratio?: InputMaybe<Scalars['Float']['input']>;
  readonly id: Scalars['ID']['input'];
  readonly name?: InputMaybe<Scalars['String']['input']>;
};

export type GQLUpdateLocationBankInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly id: Scalars['ID']['input'];
  readonly locationsToAdd?: InputMaybe<ReadonlyArray<GQLLocationAreaInput>>;
  readonly locationsToDelete?: InputMaybe<
    ReadonlyArray<Scalars['String']['input']>
  >;
  readonly name?: InputMaybe<Scalars['String']['input']>;
};

export type GQLUpdateManualReviewQueueInput = {
  readonly actionIdsToHide: ReadonlyArray<Scalars['ID']['input']>;
  readonly actionIdsToUnhide: ReadonlyArray<Scalars['ID']['input']>;
  readonly autoCloseJobs: Scalars['Boolean']['input'];
  readonly clearReportsDisposition?: InputMaybe<GQLMrtClearReportsDisposition>;
  readonly clearReportsScope?: InputMaybe<GQLMrtClearReportsScope>;
  readonly clearReportsTriggerActionIds?: InputMaybe<
    ReadonlyArray<Scalars['ID']['input']>
  >;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly id: Scalars['ID']['input'];
  readonly name?: InputMaybe<Scalars['String']['input']>;
  readonly userIds: ReadonlyArray<Scalars['ID']['input']>;
};

export type GQLUpdateManualReviewQueueQueueResponse =
  | GQLManualReviewQueueNameExistsError
  | GQLMutateManualReviewQueueSuccessResponse
  | GQLNotFoundError;

export type GQLUpdateNcmecOrgSettingsResponse = {
  readonly __typename: 'UpdateNcmecOrgSettingsResponse';
  readonly success: Scalars['Boolean']['output'];
};

export type GQLUpdateOrgInfoInput = {
  readonly email?: InputMaybe<Scalars['String']['input']>;
  readonly name?: InputMaybe<Scalars['String']['input']>;
  readonly onCallAlertEmail?: InputMaybe<Scalars['String']['input']>;
  readonly websiteUrl?: InputMaybe<Scalars['String']['input']>;
};

export type GQLUpdateOrgInfoSuccessResponse = {
  readonly __typename: 'UpdateOrgInfoSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLUpdatePartialItemsSettingsInput = {
  readonly partialItemsEndpoint?: InputMaybe<Scalars['String']['input']>;
  readonly partialItemsRequestHeaders?: InputMaybe<
    Scalars['JSONObject']['input']
  >;
};

export type GQLUpdatePolicyInput = {
  readonly applyUserStrikeCountConfigToChildren?: InputMaybe<
    Scalars['Boolean']['input']
  >;
  readonly enforcementGuidelines?: InputMaybe<Scalars['String']['input']>;
  readonly id: Scalars['ID']['input'];
  readonly name: Scalars['String']['input'];
  readonly parentId?: InputMaybe<Scalars['ID']['input']>;
  readonly policyText?: InputMaybe<Scalars['String']['input']>;
  readonly policyType?: InputMaybe<GQLPolicyType>;
  readonly userStrikeCount?: InputMaybe<Scalars['Int']['input']>;
};

export type GQLUpdatePolicyResponse = GQLNotFoundError | GQLPolicy;

export type GQLUpdateReportingRuleInput = {
  readonly actionIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly conditionSet?: InputMaybe<GQLConditionSetInput>;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly id: Scalars['ID']['input'];
  readonly itemTypeIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly name?: InputMaybe<Scalars['String']['input']>;
  readonly policyIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly status?: InputMaybe<GQLReportingRuleStatus>;
};

export type GQLUpdateReportingRuleResponse =
  | GQLMutateReportingRuleSuccessResponse
  | GQLNotFoundError
  | GQLReportingRuleNameExistsError;

export type GQLUpdateRoleInput = {
  readonly id: Scalars['ID']['input'];
  readonly role: GQLUserRole;
};

export type GQLUpdateRolePermissionsInput = {
  readonly permissions: ReadonlyArray<GQLUserPermission>;
  readonly roleKey: GQLUserRole;
};

export type GQLUpdateRoutingRuleInput = {
  readonly conditionSet?: InputMaybe<GQLConditionSetInput>;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly destinationQueueId?: InputMaybe<Scalars['ID']['input']>;
  readonly id: Scalars['ID']['input'];
  readonly isAppealsRule?: InputMaybe<Scalars['Boolean']['input']>;
  readonly itemTypeIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly name?: InputMaybe<Scalars['String']['input']>;
  readonly sequenceNumber?: InputMaybe<Scalars['Int']['input']>;
  readonly status?: InputMaybe<GQLRoutingRuleStatus>;
};

export type GQLUpdateRoutingRuleResponse =
  | GQLMutateRoutingRuleSuccessResponse
  | GQLNotFoundError
  | GQLQueueDoesNotExistError
  | GQLRoutingRuleNameExistsError;

export type GQLUpdateSsoCredentialsInput = {
  readonly ssoCert: Scalars['String']['input'];
  readonly ssoUrl: Scalars['String']['input'];
};

export type GQLUpdateTextBankInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly id: Scalars['ID']['input'];
  readonly name?: InputMaybe<Scalars['String']['input']>;
  readonly strings?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
  readonly type?: InputMaybe<GQLTextBankType>;
};

export type GQLUpdateThreadItemTypeInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly fieldRoles?: InputMaybe<GQLThreadSchemaFieldRolesInput>;
  readonly fields?: InputMaybe<ReadonlyArray<GQLFieldInput>>;
  readonly hiddenFields?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
  readonly id: Scalars['ID']['input'];
  readonly name?: InputMaybe<Scalars['String']['input']>;
};

export type GQLUpdateUserItemTypeInput = {
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly fieldRoles?: InputMaybe<GQLUserSchemaFieldRolesInput>;
  readonly fields?: InputMaybe<ReadonlyArray<GQLFieldInput>>;
  readonly hiddenFields?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
  readonly id: Scalars['ID']['input'];
  readonly name?: InputMaybe<Scalars['String']['input']>;
};

export type GQLUpdateUserRuleInput = {
  readonly actionIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly actionParameters?: InputMaybe<
    ReadonlyArray<GQLRuleActionParameterValuesInput>
  >;
  readonly cancelRunningBacktests?: InputMaybe<Scalars['Boolean']['input']>;
  readonly conditionSet?: InputMaybe<GQLConditionSetInput>;
  readonly description?: InputMaybe<Scalars['String']['input']>;
  readonly expirationTime?: InputMaybe<Scalars['DateTime']['input']>;
  readonly id: Scalars['ID']['input'];
  readonly maxDailyActions?: InputMaybe<Scalars['Float']['input']>;
  readonly name?: InputMaybe<Scalars['String']['input']>;
  readonly parentId?: InputMaybe<Scalars['ID']['input']>;
  readonly policyIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
  readonly status?: InputMaybe<GQLRuleStatus>;
  readonly tags?: InputMaybe<ReadonlyArray<Scalars['String']['input']>>;
};

export type GQLUpdateUserRuleResponse =
  | GQLMutateUserRuleSuccessResponse
  | GQLNotFoundError
  | GQLRuleHasRunningBacktestsError
  | GQLRuleNameExistsError;

export type GQLUpdateUserStrikeTtlInput = {
  readonly ttlDays: Scalars['Int']['input'];
};

export type GQLUpdateUserStrikeTtlSuccessResponse = {
  readonly __typename: 'UpdateUserStrikeTTLSuccessResponse';
  readonly _?: Maybe<Scalars['Boolean']['output']>;
};

export type GQLUser = {
  readonly __typename: 'User';
  readonly approvedByAdmin?: Maybe<Scalars['Boolean']['output']>;
  readonly createdAt: Scalars['String']['output'];
  readonly email: Scalars['String']['output'];
  readonly favoriteMRTQueues: ReadonlyArray<GQLManualReviewQueue>;
  readonly favoriteRules: ReadonlyArray<GQLRule>;
  readonly firstName: Scalars['String']['output'];
  readonly id: Scalars['ID']['output'];
  readonly interfacePreferences: GQLUserInterfacePreferences;
  readonly lastName: Scalars['String']['output'];
  readonly loginMethods: ReadonlyArray<Scalars['String']['output']>;
  readonly notifications: GQLUserNotifications;
  readonly orgId: Scalars['ID']['output'];
  readonly permissions: ReadonlyArray<GQLUserPermission>;
  readonly readMeJWT?: Maybe<Scalars['String']['output']>;
  readonly rejectedByAdmin?: Maybe<Scalars['Boolean']['output']>;
  readonly reviewableQueues: ReadonlyArray<GQLManualReviewQueue>;
  readonly role?: Maybe<GQLUserRole>;
};

export type GQLUserReviewableQueuesArgs = {
  queueIds?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
};

export type GQLUserActionDecisionAction = {
  readonly id: Scalars['ID']['input'];
};

export type GQLUserActionDecisionPolicy = {
  readonly id: Scalars['ID']['input'];
};

export type GQLUserActionsHistory = {
  readonly __typename: 'UserActionsHistory';
  readonly countsByPolicy: ReadonlyArray<GQLPolicyActionCount>;
};

export type GQLUserAppealManualReviewJobPayload = {
  readonly __typename: 'UserAppealManualReviewJobPayload';
  readonly actionsTaken: ReadonlyArray<Scalars['String']['output']>;
  readonly additionalContentItems: ReadonlyArray<GQLContentItem>;
  readonly appealId: Scalars['String']['output'];
  readonly appealReason?: Maybe<Scalars['String']['output']>;
  readonly appealerIdentifier?: Maybe<GQLItemIdentifier>;
  readonly enqueueSourceInfo?: Maybe<GQLAppealEnqueueSourceInfo>;
  readonly item: GQLUserItem;
  readonly reportedItems?: Maybe<ReadonlyArray<Maybe<GQLItemIdentifier>>>;
  readonly userScore?: Maybe<Scalars['Int']['output']>;
};

export type GQLUserHistory = {
  readonly __typename: 'UserHistory';
  readonly actions: GQLUserActionsHistory;
  readonly executions: ReadonlyArray<GQLRuleExecutionResult>;
  readonly id: Scalars['ID']['output'];
  readonly submissions: GQLUserSubmissionsHistory;
  readonly user?: Maybe<GQLUserItem>;
};

export type GQLUserHistoryResponse = GQLNotFoundError | GQLUserHistory;

export type GQLUserInterfacePreferences = {
  readonly __typename: 'UserInterfacePreferences';
  readonly moderatorSafetyBlurLevel: Scalars['Int']['output'];
  readonly moderatorSafetyGrayscale: Scalars['Boolean']['output'];
  readonly moderatorSafetyMuteVideo: Scalars['Boolean']['output'];
  readonly moderatorSafetySepia: Scalars['Boolean']['output'];
  readonly mrtChartConfigurations: ReadonlyArray<GQLManualReviewChartSettings>;
};

export type GQLUserItem = GQLItemBase & {
  readonly __typename: 'UserItem';
  readonly data: Scalars['JSONObject']['output'];
  readonly id: Scalars['ID']['output'];
  readonly submissionId: Scalars['ID']['output'];
  readonly submissionTime?: Maybe<Scalars['DateTime']['output']>;
  readonly type: GQLUserItemType;
  readonly userScore: Scalars['Int']['output'];
  readonly userStrikeCount: Scalars['Int']['output'];
};

export type GQLUserItemType = GQLItemTypeBase & {
  readonly __typename: 'UserItemType';
  readonly baseFields: ReadonlyArray<GQLBaseField>;
  readonly derivedFields: ReadonlyArray<GQLDerivedField>;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly hiddenFields: ReadonlyArray<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly isDefaultUserType: Scalars['Boolean']['output'];
  readonly name: Scalars['String']['output'];
  readonly schemaFieldRoles: GQLUserSchemaFieldRoles;
  readonly schemaVariant: GQLItemTypeSchemaVariant;
  readonly version: Scalars['String']['output'];
};

export type GQLUserManualReviewJobPayload = {
  readonly __typename: 'UserManualReviewJobPayload';
  readonly additionalContentItems: ReadonlyArray<GQLContentItem>;
  readonly enqueueSourceInfo?: Maybe<GQLManualReviewJobEnqueueSourceInfo>;
  readonly item: GQLUserItem;
  readonly itemThreadContentItems?: Maybe<ReadonlyArray<GQLContentItem>>;
  readonly reportHistory: ReadonlyArray<GQLReportHistoryEntry>;
  readonly reportedForReasons: ReadonlyArray<GQLReportedForReason>;
  readonly reportedItems?: Maybe<ReadonlyArray<Maybe<GQLItemIdentifier>>>;
  readonly userScore?: Maybe<Scalars['Int']['output']>;
  readonly userSubmittedItems: ReadonlyArray<GQLItemSubmissions>;
};

export type GQLUserNotificationEdge = {
  readonly __typename: 'UserNotificationEdge';
  readonly node: GQLNotification;
};

export type GQLUserNotifications = {
  readonly __typename: 'UserNotifications';
  readonly edges: ReadonlyArray<GQLUserNotificationEdge>;
};

export type GQLUserOrRelatedActionDecisionComponent =
  GQLManualReviewDecisionComponentBase & {
    readonly __typename: 'UserOrRelatedActionDecisionComponent';
    readonly actionIds: ReadonlyArray<Scalars['String']['output']>;
    readonly customMrtApiParams?: Maybe<Scalars['JSONObject']['output']>;
    readonly itemIds: ReadonlyArray<Scalars['String']['output']>;
    readonly itemTypeId: Scalars['String']['output'];
    readonly policyIds: ReadonlyArray<Scalars['String']['output']>;
    readonly type: GQLManualReviewDecisionType;
  };

export const GQLUserPenaltySeverity = {
  High: 'HIGH',
  Low: 'LOW',
  Medium: 'MEDIUM',
  None: 'NONE',
  Severe: 'SEVERE',
} as const;

export type GQLUserPenaltySeverity =
  (typeof GQLUserPenaltySeverity)[keyof typeof GQLUserPenaltySeverity];
export const GQLUserPermission = {
  EditMrtQueues: 'EDIT_MRT_QUEUES',
  ManageOrg: 'MANAGE_ORG',
  ManagePolicies: 'MANAGE_POLICIES',
  ManageRoles: 'MANAGE_ROLES',
  ManageRoutingRules: 'MANAGE_ROUTING_RULES',
  ManageUsers: 'MANAGE_USERS',
  ManuallyActionContent: 'MANUALLY_ACTION_CONTENT',
  MutateLiveRules: 'MUTATE_LIVE_RULES',
  MutateNonLiveRules: 'MUTATE_NON_LIVE_RULES',
  RunBacktest: 'RUN_BACKTEST',
  RunRetroaction: 'RUN_RETROACTION',
  ViewChildSafetyData: 'VIEW_CHILD_SAFETY_DATA',
  ViewInsights: 'VIEW_INSIGHTS',
  ViewInvestigation: 'VIEW_INVESTIGATION',
  ViewMrt: 'VIEW_MRT',
  ViewMrtData: 'VIEW_MRT_DATA',
  ViewRulesDashboard: 'VIEW_RULES_DASHBOARD',
} as const;

export type GQLUserPermission =
  (typeof GQLUserPermission)[keyof typeof GQLUserPermission];
export const GQLUserRole = {
  Admin: 'ADMIN',
  Analyst: 'ANALYST',
  ChildSafetyModerator: 'CHILD_SAFETY_MODERATOR',
  ExternalModerator: 'EXTERNAL_MODERATOR',
  Moderator: 'MODERATOR',
  ModeratorManager: 'MODERATOR_MANAGER',
  RulesManager: 'RULES_MANAGER',
} as const;

export type GQLUserRole = (typeof GQLUserRole)[keyof typeof GQLUserRole];
export type GQLUserRule = GQLRule & {
  readonly __typename: 'UserRule';
  /** @deprecated Use configuredParameters on each Action instead. */
  readonly actionParameters: ReadonlyArray<GQLRuleActionParameterValues>;
  readonly actions: ReadonlyArray<GQLAction>;
  readonly backtests: ReadonlyArray<GQLBacktest>;
  readonly conditionSet: GQLConditionSet;
  readonly createdAt: Scalars['String']['output'];
  readonly creator: GQLUser;
  readonly description?: Maybe<Scalars['String']['output']>;
  readonly expirationTime?: Maybe<Scalars['String']['output']>;
  readonly id: Scalars['ID']['output'];
  readonly insights: GQLRuleInsights;
  readonly maxDailyActions?: Maybe<Scalars['Float']['output']>;
  readonly name: Scalars['String']['output'];
  readonly parentId?: Maybe<Scalars['ID']['output']>;
  readonly policies: ReadonlyArray<GQLPolicy>;
  readonly status: GQLRuleStatus;
  readonly tags?: Maybe<ReadonlyArray<Maybe<Scalars['String']['output']>>>;
  readonly updatedAt: Scalars['String']['output'];
};

export type GQLUserRuleBacktestsArgs = {
  ids?: InputMaybe<ReadonlyArray<Scalars['ID']['input']>>;
};

export type GQLUserSchemaFieldRoles = {
  readonly __typename: 'UserSchemaFieldRoles';
  readonly backgroundImage?: Maybe<Scalars['String']['output']>;
  readonly createdAt?: Maybe<Scalars['String']['output']>;
  readonly displayName?: Maybe<Scalars['String']['output']>;
  readonly email?: Maybe<Scalars['String']['output']>;
  readonly ipAddress?: Maybe<Scalars['String']['output']>;
  readonly isDeleted?: Maybe<Scalars['String']['output']>;
  readonly profileIcon?: Maybe<Scalars['String']['output']>;
};

export type GQLUserSchemaFieldRolesInput = {
  readonly backgroundImage?: InputMaybe<Scalars['String']['input']>;
  readonly createdAt?: InputMaybe<Scalars['String']['input']>;
  readonly displayName?: InputMaybe<Scalars['String']['input']>;
  readonly email?: InputMaybe<Scalars['String']['input']>;
  readonly ipAddress?: InputMaybe<Scalars['String']['input']>;
  readonly isDeleted?: InputMaybe<Scalars['String']['input']>;
  readonly profileIcon?: InputMaybe<Scalars['String']['input']>;
};

export type GQLUserStrikeBucket = {
  readonly __typename: 'UserStrikeBucket';
  readonly numStrikes: Scalars['Int']['output'];
  readonly numUsers: Scalars['Int']['output'];
};

export type GQLUserStrikeThreshold = {
  readonly __typename: 'UserStrikeThreshold';
  readonly actionParameters: Scalars['JSONObject']['output'];
  readonly actions: ReadonlyArray<Scalars['ID']['output']>;
  readonly id: Scalars['String']['output'];
  readonly threshold: Scalars['Int']['output'];
};

export type GQLUserSubmissionCount = {
  readonly __typename: 'UserSubmissionCount';
  readonly count: Scalars['Int']['output'];
  readonly itemTypeId: Scalars['String']['output'];
};

export type GQLUserSubmissionsHistory = {
  readonly __typename: 'UserSubmissionsHistory';
  readonly countsByItemType: ReadonlyArray<GQLUserSubmissionCount>;
};

export const GQLValueComparator = {
  Equals: 'EQUALS',
  GreaterThan: 'GREATER_THAN',
  GreaterThanOrEquals: 'GREATER_THAN_OR_EQUALS',
  IsNotProvided: 'IS_NOT_PROVIDED',
  IsUnavailable: 'IS_UNAVAILABLE',
  LessThan: 'LESS_THAN',
  LessThanOrEquals: 'LESS_THAN_OR_EQUALS',
  NotEqualTo: 'NOT_EQUAL_TO',
} as const;

export type GQLValueComparator =
  (typeof GQLValueComparator)[keyof typeof GQLValueComparator];
export type GQLWindowConfiguration = {
  readonly __typename: 'WindowConfiguration';
  readonly hopMs: Scalars['Int']['output'];
  readonly sizeMs: Scalars['Int']['output'];
};

export type GQLWindowConfigurationInput = {
  readonly hopMs: Scalars['Int']['input'];
  readonly sizeMs: Scalars['Int']['input'];
};

export type GQLZentropiIntegrationApiCredential = {
  readonly __typename: 'ZentropiIntegrationApiCredential';
  readonly apiKey: Scalars['String']['output'];
  readonly labelerVersions: ReadonlyArray<GQLZentropiLabelerVersion>;
};

export type GQLZentropiIntegrationApiCredentialInput = {
  readonly apiKey: Scalars['String']['input'];
  readonly labelerVersions?: InputMaybe<
    ReadonlyArray<GQLZentropiLabelerVersionInput>
  >;
};

export type GQLZentropiLabelerVersion = {
  readonly __typename: 'ZentropiLabelerVersion';
  readonly id: Scalars['String']['output'];
  readonly label: Scalars['String']['output'];
};

export type GQLZentropiLabelerVersionInput = {
  readonly id: Scalars['String']['input'];
  readonly label: Scalars['String']['input'];
};

export type GQLApiAuthQueryVariables = Exact<{ [key: string]: never }>;

export type GQLApiAuthQuery = {
  readonly __typename: 'Query';
  readonly apiKey: string;
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly publicSigningKey: string;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLRotateApiKeyMutationVariables = Exact<{
  input: GQLRotateApiKeyInput;
}>;

export type GQLRotateApiKeyMutation = {
  readonly __typename: 'Mutation';
  readonly rotateApiKey:
    | {
        readonly __typename: 'RotateApiKeyError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
        readonly detail?: string | null;
        readonly pointer?: string | null;
        readonly requestId?: string | null;
      }
    | {
        readonly __typename: 'RotateApiKeySuccessResponse';
        readonly apiKey: string;
        readonly record: {
          readonly __typename: 'ApiKey';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly isActive: boolean;
          readonly createdAt: string;
          readonly lastUsedAt?: string | null;
          readonly createdBy?: string | null;
        };
      };
};

export type GQLRotateWebhookSigningKeyMutationVariables = Exact<{
  [key: string]: never;
}>;

export type GQLRotateWebhookSigningKeyMutation = {
  readonly __typename: 'Mutation';
  readonly rotateWebhookSigningKey:
    | {
        readonly __typename: 'RotateWebhookSigningKeyError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
        readonly detail?: string | null;
        readonly pointer?: string | null;
        readonly requestId?: string | null;
      }
    | {
        readonly __typename: 'RotateWebhookSigningKeySuccessResponse';
        readonly publicSigningKey: string;
      };
};

export type GQLHashBanksQueryVariables = Exact<{ [key: string]: never }>;

export type GQLHashBanksQuery = {
  readonly __typename: 'Query';
  readonly hashBanks: ReadonlyArray<{
    readonly __typename: 'HashBank';
    readonly id: string;
    readonly name: string;
    readonly description?: string | null;
    readonly hma_name: string;
    readonly enabled_ratio: number;
    readonly org_id: string;
  }>;
};

export type GQLHashBankByIdQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLHashBankByIdQuery = {
  readonly __typename: 'Query';
  readonly hashBankById?: {
    readonly __typename: 'HashBank';
    readonly id: string;
    readonly name: string;
    readonly description?: string | null;
    readonly hma_name: string;
    readonly enabled_ratio: number;
    readonly org_id: string;
    readonly exchange?: {
      readonly __typename: 'ExchangeInfo';
      readonly api: string;
      readonly enabled: boolean;
      readonly has_auth: boolean;
      readonly error?: string | null;
      readonly last_fetch_succeeded?: boolean | null;
      readonly last_fetch_time?: string | null;
      readonly up_to_date?: boolean | null;
      readonly fetched_items?: number | null;
      readonly is_fetching?: boolean | null;
    } | null;
  } | null;
};

export type GQLExchangeApisQueryVariables = Exact<{ [key: string]: never }>;

export type GQLExchangeApisQuery = {
  readonly __typename: 'Query';
  readonly exchangeApis: ReadonlyArray<{
    readonly __typename: 'ExchangeApiInfo';
    readonly name: string;
    readonly supports_auth: boolean;
    readonly has_auth: boolean;
  }>;
};

export type GQLExchangeApiSchemaQueryVariables = Exact<{
  apiName: Scalars['String']['input'];
}>;

export type GQLExchangeApiSchemaQuery = {
  readonly __typename: 'Query';
  readonly exchangeApiSchema?: {
    readonly __typename: 'ExchangeApiSchema';
    readonly config_schema: {
      readonly __typename: 'ExchangeSchemaSection';
      readonly fields: ReadonlyArray<{
        readonly __typename: 'ExchangeFieldDescriptor';
        readonly name: string;
        readonly type: string;
        readonly required: boolean;
        readonly default?: JsonValue | null;
        readonly help?: string | null;
        readonly choices?: ReadonlyArray<string> | null;
      }>;
    };
    readonly credentials_schema?: {
      readonly __typename: 'ExchangeSchemaSection';
      readonly fields: ReadonlyArray<{
        readonly __typename: 'ExchangeFieldDescriptor';
        readonly name: string;
        readonly type: string;
        readonly required: boolean;
        readonly default?: JsonValue | null;
        readonly help?: string | null;
        readonly choices?: ReadonlyArray<string> | null;
      }>;
    } | null;
  } | null;
};

export type GQLCreateHashBankMutationVariables = Exact<{
  input: GQLCreateHashBankInput;
}>;

export type GQLCreateHashBankMutation = {
  readonly __typename: 'Mutation';
  readonly createHashBank:
    | {
        readonly __typename: 'MatchingBankNameExistsError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
        readonly pointer?: string | null;
        readonly detail?: string | null;
        readonly requestId?: string | null;
      }
    | {
        readonly __typename: 'MutateHashBankSuccessResponse';
        readonly warning?: string | null;
        readonly data: {
          readonly __typename: 'HashBank';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly hma_name: string;
          readonly enabled_ratio: number;
          readonly org_id: string;
        };
      };
};

export type GQLUpdateHashBankMutationVariables = Exact<{
  input: GQLUpdateHashBankInput;
}>;

export type GQLUpdateHashBankMutation = {
  readonly __typename: 'Mutation';
  readonly updateHashBank:
    | {
        readonly __typename: 'MatchingBankNameExistsError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
        readonly pointer?: string | null;
        readonly detail?: string | null;
        readonly requestId?: string | null;
      }
    | {
        readonly __typename: 'MutateHashBankSuccessResponse';
        readonly data: {
          readonly __typename: 'HashBank';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly hma_name: string;
          readonly enabled_ratio: number;
          readonly org_id: string;
        };
      };
};

export type GQLDeleteHashBankMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteHashBankMutation = {
  readonly __typename: 'Mutation';
  readonly deleteHashBank: boolean;
};

export type GQLUpdateExchangeCredentialsMutationVariables = Exact<{
  apiName: Scalars['String']['input'];
  credentialsJson: Scalars['String']['input'];
}>;

export type GQLUpdateExchangeCredentialsMutation = {
  readonly __typename: 'Mutation';
  readonly updateExchangeCredentials: boolean;
};

export type GQLUserAndOrgQueryVariables = Exact<{ [key: string]: never }>;

export type GQLUserAndOrgQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly email: string;
  } | null;
  readonly myOrg?: { readonly __typename: 'Org'; readonly id: string } | null;
};

export type GQLLoggedInUserForRouteQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLLoggedInUserForRouteQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly approvedByAdmin?: boolean | null;
    readonly rejectedByAdmin?: boolean | null;
  } | null;
};

export type GQLPermissionGatedRouteLoggedInUserQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLPermissionGatedRouteLoggedInUserQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLLoginMutationVariables = Exact<{
  input: GQLLoginInput;
}>;

export type GQLLoginMutation = {
  readonly __typename: 'Mutation';
  readonly login:
    | {
        readonly __typename: 'LoginIncorrectPasswordError';
        readonly title: string;
        readonly status: number;
      }
    | {
        readonly __typename: 'LoginSsoRequiredError';
        readonly title: string;
        readonly status: number;
      }
    | {
        readonly __typename: 'LoginSuccessResponse';
        readonly user: {
          readonly __typename: 'User';
          readonly id: string;
          readonly email: string;
        };
      }
    | {
        readonly __typename: 'LoginUserDoesNotExistError';
        readonly title: string;
        readonly status: number;
      };
};

export type GQLGetSsoRedirectUrlQueryVariables = Exact<{
  emailAddress: Scalars['String']['input'];
}>;

export type GQLGetSsoRedirectUrlQuery = {
  readonly __typename: 'Query';
  readonly getSSORedirectUrl?: string | null;
};

export type GQLRejectedUserQueryVariables = Exact<{ [key: string]: never }>;

export type GQLRejectedUserQuery = {
  readonly __typename: 'Query';
  readonly me?: { readonly __typename: 'User'; readonly id: string } | null;
};

export type GQLDeleteRejectedUserMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteRejectedUserMutation = {
  readonly __typename: 'Mutation';
  readonly deleteUser?: boolean | null;
};

export type GQLInviteUserTokenQueryVariables = Exact<{
  token: Scalars['String']['input'];
}>;

export type GQLInviteUserTokenQuery = {
  readonly __typename: 'Query';
  readonly inviteUserToken:
    | {
        readonly __typename: 'InviteUserTokenExpiredError';
        readonly title: string;
      }
    | {
        readonly __typename: 'InviteUserTokenMissingError';
        readonly title: string;
      }
    | {
        readonly __typename: 'InviteUserTokenSuccessResponse';
        readonly tokenData: {
          readonly __typename: 'InviteUserToken';
          readonly token: string;
          readonly email: string;
          readonly role: GQLUserRole;
          readonly orgId: string;
          readonly samlEnabled: boolean;
        };
      };
};

export type GQLSignUpMutationVariables = Exact<{
  input: GQLSignUpInput;
}>;

export type GQLSignUpMutation = {
  readonly __typename: 'Mutation';
  readonly signUp:
    | {
        readonly __typename: 'SignUpSuccessResponse';
        readonly data?: {
          readonly __typename: 'User';
          readonly id: string;
          readonly loginMethods: ReadonlyArray<string>;
        } | null;
      }
    | { readonly __typename: 'SignUpUserExistsError'; readonly title: string };
};

export type GQLSendPasswordResetMutationVariables = Exact<{
  input: GQLSendPasswordResetInput;
}>;

export type GQLSendPasswordResetMutation = {
  readonly __typename: 'Mutation';
  readonly sendPasswordReset: boolean;
};

export type GQLResetPasswordMutationVariables = Exact<{
  input: GQLResetPasswordInput;
}>;

export type GQLResetPasswordMutation = {
  readonly __typename: 'Mutation';
  readonly resetPassword: boolean;
};

export type GQLDashboardOrgQueryVariables = Exact<{ [key: string]: never }>;

export type GQLDashboardOrgQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly name: string;
    readonly hasReportingRulesEnabled: boolean;
    readonly hasNCMECReportingEnabled: boolean;
    readonly hasAppealsEnabled: boolean;
    readonly isDemoOrg: boolean;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
    readonly email: string;
  } | null;
};

export type GQLLogoutMutationVariables = Exact<{ [key: string]: never }>;

export type GQLLogoutMutation = {
  readonly __typename: 'Mutation';
  readonly logout?: boolean | null;
};

export type GQLCustomActionFragmentFragment = {
  readonly __typename: 'CustomAction';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly callbackUrl: string;
  readonly callbackUrlHeaders?: JsonObject | null;
  readonly callbackUrlBody?: JsonObject | null;
  readonly itemTypes: ReadonlyArray<
    | { readonly __typename: 'ContentItemType'; readonly id: string }
    | { readonly __typename: 'ThreadItemType'; readonly id: string }
    | { readonly __typename: 'UserItemType'; readonly id: string }
  >;
  readonly parameters: ReadonlyArray<{
    readonly __typename: 'ActionParameter';
    readonly name: string;
    readonly displayName: string;
    readonly description?: string | null;
    readonly type: GQLActionParameterType;
    readonly required: boolean;
    readonly min?: number | null;
    readonly max?: number | null;
    readonly maxLength?: number | null;
    readonly defaultValue?: JsonValue | null;
    readonly options?: ReadonlyArray<{
      readonly __typename: 'ActionParameterOption';
      readonly value: string;
      readonly label: string;
    }> | null;
  }>;
};

export type GQLActionQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLActionQuery = {
  readonly __typename: 'Query';
  readonly action?:
    | {
        readonly __typename: 'CustomAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly callbackUrl: string;
        readonly callbackUrlHeaders?: JsonObject | null;
        readonly callbackUrlBody?: JsonObject | null;
        readonly itemTypes: ReadonlyArray<
          | { readonly __typename: 'ContentItemType'; readonly id: string }
          | { readonly __typename: 'ThreadItemType'; readonly id: string }
          | { readonly __typename: 'UserItemType'; readonly id: string }
        >;
        readonly parameters: ReadonlyArray<{
          readonly __typename: 'ActionParameter';
          readonly name: string;
          readonly displayName: string;
          readonly description?: string | null;
          readonly type: GQLActionParameterType;
          readonly required: boolean;
          readonly min?: number | null;
          readonly max?: number | null;
          readonly maxLength?: number | null;
          readonly defaultValue?: JsonValue | null;
          readonly options?: ReadonlyArray<{
            readonly __typename: 'ActionParameterOption';
            readonly value: string;
            readonly label: string;
          }> | null;
        }>;
      }
    | { readonly __typename: 'EnqueueAuthorToMrtAction' }
    | { readonly __typename: 'EnqueueToMrtAction' }
    | { readonly __typename: 'EnqueueToNcmecAction' }
    | null;
};

export type GQLActionFormQueryVariables = Exact<{ [key: string]: never }>;

export type GQLActionFormQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
        }
    >;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLCreateActionMutationVariables = Exact<{
  input: GQLCreateActionInput;
}>;

export type GQLCreateActionMutation = {
  readonly __typename: 'Mutation';
  readonly createAction:
    | {
        readonly __typename: 'ActionNameExistsError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'MutateActionSuccessResponse';
        readonly data: {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly callbackUrl: string;
          readonly callbackUrlHeaders?: JsonObject | null;
          readonly callbackUrlBody?: JsonObject | null;
          readonly itemTypes: ReadonlyArray<
            | { readonly __typename: 'ContentItemType'; readonly id: string }
            | { readonly __typename: 'ThreadItemType'; readonly id: string }
            | { readonly __typename: 'UserItemType'; readonly id: string }
          >;
          readonly parameters: ReadonlyArray<{
            readonly __typename: 'ActionParameter';
            readonly name: string;
            readonly displayName: string;
            readonly description?: string | null;
            readonly type: GQLActionParameterType;
            readonly required: boolean;
            readonly min?: number | null;
            readonly max?: number | null;
            readonly maxLength?: number | null;
            readonly defaultValue?: JsonValue | null;
            readonly options?: ReadonlyArray<{
              readonly __typename: 'ActionParameterOption';
              readonly value: string;
              readonly label: string;
            }> | null;
          }>;
        };
      };
};

export type GQLUpdateActionMutationVariables = Exact<{
  input: GQLUpdateActionInput;
}>;

export type GQLUpdateActionMutation = {
  readonly __typename: 'Mutation';
  readonly updateAction:
    | {
        readonly __typename: 'ActionNameExistsError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'MutateActionSuccessResponse';
        readonly data: {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly callbackUrl: string;
          readonly callbackUrlHeaders?: JsonObject | null;
          readonly callbackUrlBody?: JsonObject | null;
          readonly itemTypes: ReadonlyArray<
            | { readonly __typename: 'ContentItemType'; readonly id: string }
            | { readonly __typename: 'ThreadItemType'; readonly id: string }
            | { readonly __typename: 'UserItemType'; readonly id: string }
          >;
          readonly parameters: ReadonlyArray<{
            readonly __typename: 'ActionParameter';
            readonly name: string;
            readonly displayName: string;
            readonly description?: string | null;
            readonly type: GQLActionParameterType;
            readonly required: boolean;
            readonly min?: number | null;
            readonly max?: number | null;
            readonly maxLength?: number | null;
            readonly defaultValue?: JsonValue | null;
            readonly options?: ReadonlyArray<{
              readonly __typename: 'ActionParameterOption';
              readonly value: string;
              readonly label: string;
            }> | null;
          }>;
        };
      };
};

export type GQLActionsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLActionsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly penalty: GQLUserPenaltySeverity;
          readonly applyUserStrikes?: boolean | null;
          readonly parameters: ReadonlyArray<{
            readonly __typename: 'ActionParameter';
            readonly name: string;
            readonly displayName: string;
            readonly description?: string | null;
            readonly type: GQLActionParameterType;
            readonly required: boolean;
            readonly min?: number | null;
            readonly max?: number | null;
            readonly maxLength?: number | null;
            readonly defaultValue?: JsonValue | null;
            readonly options?: ReadonlyArray<{
              readonly __typename: 'ActionParameterOption';
              readonly value: string;
              readonly label: string;
            }> | null;
          }>;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly penalty: GQLUserPenaltySeverity;
          readonly applyUserStrikes: boolean;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly penalty: GQLUserPenaltySeverity;
          readonly applyUserStrikes?: boolean | null;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly penalty: GQLUserPenaltySeverity;
          readonly applyUserStrikes?: boolean | null;
        }
    >;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLDeleteActionMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteActionMutation = {
  readonly __typename: 'Mutation';
  readonly deleteAction?: boolean | null;
};

export type GQLCreateLocationBankMutationVariables = Exact<{
  input: GQLCreateLocationBankInput;
}>;

export type GQLCreateLocationBankMutation = {
  readonly __typename: 'Mutation';
  readonly createLocationBank:
    | { readonly __typename: 'LocationBankNameExistsError' }
    | {
        readonly __typename: 'MutateLocationBankSuccessResponse';
        readonly data: {
          readonly __typename: 'LocationBank';
          readonly id: string;
        };
      };
};

export type GQLUpdateLocationBankMutationVariables = Exact<{
  input: GQLUpdateLocationBankInput;
}>;

export type GQLUpdateLocationBankMutation = {
  readonly __typename: 'Mutation';
  readonly updateLocationBank:
    | { readonly __typename: 'LocationBankNameExistsError' }
    | {
        readonly __typename: 'MutateLocationBankSuccessResponse';
        readonly data: {
          readonly __typename: 'LocationBank';
          readonly id: string;
        };
      };
};

export type GQLLocationBankQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLLocationBankQuery = {
  readonly __typename: 'Query';
  readonly locationBank?: {
    readonly __typename: 'LocationBank';
    readonly id: string;
    readonly name: string;
    readonly description?: string | null;
    readonly locations: ReadonlyArray<{
      readonly __typename: 'LocationArea';
      readonly id: string;
      readonly name?: string | null;
      readonly geometry: {
        readonly __typename: 'LocationGeometry';
        readonly radius: number;
        readonly center: {
          readonly __typename: 'LatLng';
          readonly lat: number;
          readonly lng: number;
        };
      };
      readonly googlePlaceInfo?: {
        readonly __typename: 'GooglePlaceLocationInfo';
        readonly id: string;
      } | null;
      readonly bounds?: {
        readonly __typename: 'PlaceBounds';
        readonly northeastCorner: {
          readonly __typename: 'LatLng';
          readonly lat: number;
          readonly lng: number;
        };
        readonly southwestCorner: {
          readonly __typename: 'LatLng';
          readonly lat: number;
          readonly lng: number;
        };
      } | null;
    }>;
  } | null;
};

export type GQLLocationBankFormQueryVariables = Exact<{ [key: string]: never }>;

export type GQLLocationBankFormQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLLocationBanksQueryVariables = Exact<{ [key: string]: never }>;

export type GQLLocationBanksQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly banks?: {
      readonly __typename: 'MatchingBanks';
      readonly locationBanks: ReadonlyArray<{
        readonly __typename: 'LocationBank';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
      }>;
    } | null;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLDeleteLocationBankMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteLocationBankMutation = {
  readonly __typename: 'Mutation';
  readonly deleteLocationBank?: boolean | null;
};

export type GQLCreateTextBankMutationVariables = Exact<{
  input: GQLCreateTextBankInput;
}>;

export type GQLCreateTextBankMutation = {
  readonly __typename: 'Mutation';
  readonly createTextBank: {
    readonly __typename: 'MutateBankResponse';
    readonly success?: boolean | null;
    readonly error?: string | null;
  };
};

export type GQLUpdateTextBankMutationVariables = Exact<{
  input: GQLUpdateTextBankInput;
}>;

export type GQLUpdateTextBankMutation = {
  readonly __typename: 'Mutation';
  readonly updateTextBank: {
    readonly __typename: 'MutateBankResponse';
    readonly success?: boolean | null;
    readonly error?: string | null;
  };
};

export type GQLTextBankQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLTextBankQuery = {
  readonly __typename: 'Query';
  readonly textBank?: {
    readonly __typename: 'TextBank';
    readonly id: string;
    readonly name: string;
    readonly description?: string | null;
    readonly type: GQLTextBankType;
    readonly strings: ReadonlyArray<string>;
  } | null;
};

export type GQLTextBankFormQueryVariables = Exact<{ [key: string]: never }>;

export type GQLTextBankFormQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLTextBanksQueryVariables = Exact<{ [key: string]: never }>;

export type GQLTextBanksQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly banks?: {
      readonly __typename: 'MatchingBanks';
      readonly textBanks: ReadonlyArray<{
        readonly __typename: 'TextBank';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly type: GQLTextBankType;
      }>;
    } | null;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLDeleteTextBankMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteTextBankMutation = {
  readonly __typename: 'Mutation';
  readonly deleteTextBank: boolean;
};

export type GQLBulkActionsFormDataQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLBulkActionsFormDataQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly allowMultiplePoliciesPerAction: boolean;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
          readonly parameters: ReadonlyArray<{
            readonly __typename: 'ActionParameter';
            readonly name: string;
            readonly displayName: string;
            readonly description?: string | null;
            readonly type: GQLActionParameterType;
            readonly required: boolean;
            readonly min?: number | null;
            readonly max?: number | null;
            readonly maxLength?: number | null;
            readonly defaultValue?: JsonValue | null;
            readonly options?: ReadonlyArray<{
              readonly __typename: 'ActionParameterOption';
              readonly value: string;
              readonly label: string;
            }> | null;
          }>;
          readonly itemTypes: ReadonlyArray<
            | { readonly __typename: 'ContentItemType'; readonly id: string }
            | { readonly __typename: 'ThreadItemType'; readonly id: string }
            | { readonly __typename: 'UserItemType'; readonly id: string }
          >;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly parameters: ReadonlyArray<{
            readonly __typename: 'ActionParameter';
            readonly name: string;
            readonly displayName: string;
            readonly description?: string | null;
            readonly type: GQLActionParameterType;
            readonly required: boolean;
            readonly min?: number | null;
            readonly max?: number | null;
            readonly maxLength?: number | null;
            readonly defaultValue?: JsonValue | null;
            readonly options?: ReadonlyArray<{
              readonly __typename: 'ActionParameterOption';
              readonly value: string;
              readonly label: string;
            }> | null;
          }>;
          readonly itemTypes: ReadonlyArray<
            | { readonly __typename: 'ContentItemType'; readonly id: string }
            | { readonly __typename: 'ThreadItemType'; readonly id: string }
            | { readonly __typename: 'UserItemType'; readonly id: string }
          >;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly parameters: ReadonlyArray<{
            readonly __typename: 'ActionParameter';
            readonly name: string;
            readonly displayName: string;
            readonly description?: string | null;
            readonly type: GQLActionParameterType;
            readonly required: boolean;
            readonly min?: number | null;
            readonly max?: number | null;
            readonly maxLength?: number | null;
            readonly defaultValue?: JsonValue | null;
            readonly options?: ReadonlyArray<{
              readonly __typename: 'ActionParameterOption';
              readonly value: string;
              readonly label: string;
            }> | null;
          }>;
          readonly itemTypes: ReadonlyArray<
            | { readonly __typename: 'ContentItemType'; readonly id: string }
            | { readonly __typename: 'ThreadItemType'; readonly id: string }
            | { readonly __typename: 'UserItemType'; readonly id: string }
          >;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
          readonly parameters: ReadonlyArray<{
            readonly __typename: 'ActionParameter';
            readonly name: string;
            readonly displayName: string;
            readonly description?: string | null;
            readonly type: GQLActionParameterType;
            readonly required: boolean;
            readonly min?: number | null;
            readonly max?: number | null;
            readonly maxLength?: number | null;
            readonly defaultValue?: JsonValue | null;
            readonly options?: ReadonlyArray<{
              readonly __typename: 'ActionParameterOption';
              readonly value: string;
              readonly label: string;
            }> | null;
          }>;
          readonly itemTypes: ReadonlyArray<
            | { readonly __typename: 'ContentItemType'; readonly id: string }
            | { readonly __typename: 'ThreadItemType'; readonly id: string }
            | { readonly __typename: 'UserItemType'; readonly id: string }
          >;
        }
    >;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
      readonly parentId?: string | null;
    }>;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLBulkActionExecutionMutationVariables = Exact<{
  input: GQLExecuteBulkActionInput;
}>;

export type GQLBulkActionExecutionMutation = {
  readonly __typename: 'Mutation';
  readonly bulkExecuteActions: {
    readonly __typename: 'ExecuteBulkActionResponse';
    readonly results: ReadonlyArray<{
      readonly __typename: 'ExecuteActionResponse';
      readonly itemId: string;
      readonly actionId: string;
      readonly success: boolean;
    }>;
  };
};

export type GQLMatchingBankIdsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLMatchingBankIdsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly banks?: {
      readonly __typename: 'MatchingBanks';
      readonly textBanks: ReadonlyArray<{
        readonly __typename: 'TextBank';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly type: GQLTextBankType;
      }>;
      readonly locationBanks: ReadonlyArray<{
        readonly __typename: 'LocationBank';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly locations: ReadonlyArray<{
          readonly __typename: 'LocationArea';
          readonly id: string;
        }>;
      }>;
      readonly hashBanks: ReadonlyArray<{
        readonly __typename: 'HashBank';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly enabled_ratio: number;
      }>;
    } | null;
  } | null;
};

export type GQLSetIntegrationConfigMutationVariables = Exact<{
  input: GQLSetIntegrationConfigInput;
}>;

export type GQLSetIntegrationConfigMutation = {
  readonly __typename: 'Mutation';
  readonly setIntegrationConfig:
    | {
        readonly __typename: 'IntegrationConfigTooManyCredentialsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'IntegrationEmptyInputCredentialsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'IntegrationNoInputCredentialsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'SetIntegrationConfigSuccessResponse';
        readonly config: {
          readonly __typename: 'IntegrationConfig';
          readonly name: string;
        };
      };
};

export type GQLSetPluginIntegrationConfigMutationVariables = Exact<{
  input: GQLSetPluginIntegrationConfigInput;
}>;

export type GQLSetPluginIntegrationConfigMutation = {
  readonly __typename: 'Mutation';
  readonly setPluginIntegrationConfig:
    | {
        readonly __typename: 'IntegrationConfigTooManyCredentialsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'IntegrationEmptyInputCredentialsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'IntegrationNoInputCredentialsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'SetIntegrationConfigSuccessResponse';
        readonly config: {
          readonly __typename: 'IntegrationConfig';
          readonly name: string;
        };
      };
};

export type GQLIntegrationConfigQueryVariables = Exact<{
  name: Scalars['String']['input'];
}>;

export type GQLIntegrationConfigQuery = {
  readonly __typename: 'Query';
  readonly integrationConfig:
    | {
        readonly __typename: 'IntegrationConfigSuccessResult';
        readonly config?: {
          readonly __typename: 'IntegrationConfig';
          readonly name: string;
          readonly title: string;
          readonly docsUrl: string;
          readonly requiresConfig: boolean;
          readonly logoUrl?: string | null;
          readonly logoWithBackgroundUrl?: string | null;
          readonly modelCardLearnMoreUrl?: string | null;
          readonly modelCard: {
            readonly __typename: 'ModelCard';
            readonly modelName: string;
            readonly version: string;
            readonly releaseDate?: string | null;
            readonly sections?: ReadonlyArray<{
              readonly __typename: 'ModelCardSection';
              readonly id: string;
              readonly title: string;
              readonly subsections?: ReadonlyArray<{
                readonly __typename: 'ModelCardSubsection';
                readonly title: string;
                readonly fields: ReadonlyArray<{
                  readonly __typename: 'ModelCardField';
                  readonly label: string;
                  readonly value: string;
                }>;
              }> | null;
              readonly fields?: ReadonlyArray<{
                readonly __typename: 'ModelCardField';
                readonly label: string;
                readonly value: string;
              }> | null;
            }> | null;
          };
          readonly apiCredential:
            | {
                readonly __typename: 'GoogleContentSafetyApiIntegrationApiCredential';
                readonly apiKey: string;
              }
            | {
                readonly __typename: 'OpenAiIntegrationApiCredential';
                readonly apiKey: string;
              }
            | {
                readonly __typename: 'PluginIntegrationApiCredential';
                readonly credential: JsonObject;
              }
            | {
                readonly __typename: 'ZentropiIntegrationApiCredential';
                readonly apiKey: string;
                readonly labelerVersions: ReadonlyArray<{
                  readonly __typename: 'ZentropiLabelerVersion';
                  readonly id: string;
                  readonly label: string;
                }>;
              };
        } | null;
      }
    | {
        readonly __typename: 'IntegrationConfigUnsupportedIntegrationError';
        readonly title: string;
      };
};

export type GQLMyIntegrationsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLMyIntegrationsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly integrationConfigs: ReadonlyArray<{
      readonly __typename: 'IntegrationConfig';
      readonly name: string;
    }>;
  } | null;
};

export type GQLAvailableIntegrationsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLAvailableIntegrationsQuery = {
  readonly __typename: 'Query';
  readonly availableIntegrations: ReadonlyArray<{
    readonly __typename: 'IntegrationMetadata';
    readonly name: string;
    readonly title: string;
    readonly docsUrl: string;
    readonly requiresConfig: boolean;
    readonly logoUrl?: string | null;
    readonly logoWithBackgroundUrl?: string | null;
  }>;
};

export type GQLInvestigationItemTypesQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLInvestigationItemTypesQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ContentSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly parentId?: string | null;
            readonly threadId?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ThreadSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
            readonly backgroundImage?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
    >;
  } | null;
};

export type GQLGetOrgDataQueryVariables = Exact<{ [key: string]: never }>;

export type GQLGetOrgDataQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly requiresPolicyForDecisionsInMrt: boolean;
    readonly allowMultiplePoliciesPerAction: boolean;
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
          readonly penalty: GQLUserPenaltySeverity;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly penalty: GQLUserPenaltySeverity;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly penalty: GQLUserPenaltySeverity;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
          readonly penalty: GQLUserPenaltySeverity;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
    >;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ContentSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly parentId?: string | null;
            readonly threadId?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ThreadSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
            readonly backgroundImage?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
    >;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
      readonly parentId?: string | null;
    }>;
    readonly rules: ReadonlyArray<
      | {
          readonly __typename: 'ContentRule';
          readonly id: string;
          readonly actions: ReadonlyArray<
            | {
                readonly __typename: 'CustomAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueAuthorToMrtAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueToMrtAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueToNcmecAction';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'UserRule';
          readonly id: string;
          readonly actions: ReadonlyArray<
            | {
                readonly __typename: 'CustomAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueAuthorToMrtAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueToMrtAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueToNcmecAction';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
    >;
  } | null;
};

export type GQLGetItemsWithIdQueryVariables = Exact<{
  id: Scalars['ID']['input'];
  typeId?: InputMaybe<Scalars['ID']['input']>;
}>;

export type GQLGetItemsWithIdQuery = {
  readonly __typename: 'Query';
  readonly itemsWithId: ReadonlyArray<{
    readonly __typename: 'ItemSubmissions';
    readonly isSynthetic?: boolean | null;
    readonly latest:
      | {
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly data: JsonObject;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly type: GQLFieldType;
              readonly required: boolean;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly ipAddress?: string | null;
            };
          };
        }
      | {
          readonly __typename: 'ThreadItem';
          readonly id: string;
          readonly data: JsonObject;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly type: {
            readonly __typename: 'ThreadItemType';
            readonly id: string;
            readonly name: string;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly type: GQLFieldType;
              readonly required: boolean;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ThreadSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly ipAddress?: string | null;
            };
          };
        }
      | {
          readonly __typename: 'UserItem';
          readonly id: string;
          readonly data: JsonObject;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly userStrikeCount: number;
          readonly type: {
            readonly __typename: 'UserItemType';
            readonly id: string;
            readonly name: string;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly type: GQLFieldType;
              readonly required: boolean;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly schemaFieldRoles: {
              readonly __typename: 'UserSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly profileIcon?: string | null;
              readonly ipAddress?: string | null;
            };
          };
        };
  }>;
};

export type GQLInvestigationItemsQueryVariables = Exact<{
  itemIdentifier: GQLItemIdentifierInput;
  submissionTime?: InputMaybe<Scalars['DateTime']['input']>;
}>;

export type GQLInvestigationItemsQuery = {
  readonly __typename: 'Query';
  readonly itemWithHistory:
    | {
        readonly __typename: 'ItemHistoryResult';
        readonly item:
          | {
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
              };
            }
          | {
              readonly __typename: 'ThreadItem';
              readonly id: string;
              readonly submissionId: string;
              readonly type: {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
              };
            }
          | {
              readonly __typename: 'UserItem';
              readonly id: string;
              readonly submissionId: string;
              readonly type: {
                readonly __typename: 'UserItemType';
                readonly id: string;
              };
            };
        readonly executions: ReadonlyArray<{
          readonly __typename: 'RuleExecutionResult';
          readonly date: Date | string;
          readonly ts: Date | string;
          readonly contentId: string;
          readonly itemTypeName: string;
          readonly itemTypeId: string;
          readonly userId?: string | null;
          readonly userTypeId?: string | null;
          readonly content: string;
          readonly environment: GQLRuleEnvironment;
          readonly passed: boolean;
          readonly ruleId: string;
          readonly ruleName: string;
          readonly policies: ReadonlyArray<string>;
          readonly tags: ReadonlyArray<string>;
          readonly result?: {
            readonly __typename: 'ConditionSetWithResult';
            readonly conjunction?: GQLConditionConjunction | null;
            readonly conditions: ReadonlyArray<
              | {
                  readonly __typename: 'ConditionSetWithResult';
                  readonly conjunction?: GQLConditionConjunction | null;
                  readonly conditions: ReadonlyArray<
                    | { readonly __typename: 'ConditionSetWithResult' }
                    | {
                        readonly __typename: 'LeafConditionWithResult';
                        readonly comparator?: GQLValueComparator | null;
                        readonly threshold?: string | number | null;
                        readonly input: {
                          readonly __typename: 'ConditionInputField';
                          readonly type: GQLConditionInputInputType;
                          readonly name?: string | null;
                          readonly contentTypeId?: string | null;
                          readonly spec?: {
                            readonly __typename: 'DerivedFieldSpec';
                            readonly derivationType: GQLDerivedFieldDerivationType;
                          } | null;
                        };
                        readonly signal?: {
                          readonly __typename: 'Signal';
                          readonly id: string;
                          readonly type: string;
                          readonly name: string;
                          readonly subcategory?: string | null;
                          readonly args?: {
                            readonly __typename: 'AggregationSignalArgs';
                          } | null;
                        } | null;
                        readonly matchingValues?: {
                          readonly __typename: 'MatchingValues';
                          readonly strings?: ReadonlyArray<string> | null;
                          readonly textBankIds?: ReadonlyArray<string> | null;
                          readonly locationBankIds?: ReadonlyArray<string> | null;
                          readonly imageBankIds?: ReadonlyArray<string> | null;
                          readonly locations?: ReadonlyArray<{
                            readonly __typename: 'LocationArea';
                            readonly id: string;
                            readonly name?: string | null;
                            readonly geometry: {
                              readonly __typename: 'LocationGeometry';
                              readonly radius: number;
                              readonly center: {
                                readonly __typename: 'LatLng';
                                readonly lat: number;
                                readonly lng: number;
                              };
                            };
                            readonly bounds?: {
                              readonly __typename: 'PlaceBounds';
                              readonly northeastCorner: {
                                readonly __typename: 'LatLng';
                                readonly lat: number;
                                readonly lng: number;
                              };
                              readonly southwestCorner: {
                                readonly __typename: 'LatLng';
                                readonly lat: number;
                                readonly lng: number;
                              };
                            } | null;
                            readonly googlePlaceInfo?: {
                              readonly __typename: 'GooglePlaceLocationInfo';
                              readonly id: string;
                            } | null;
                          }> | null;
                        } | null;
                        readonly result?: {
                          readonly __typename: 'ConditionResult';
                          readonly outcome: GQLConditionOutcome;
                          readonly score?: string | null;
                          readonly matchedValue?: string | null;
                        } | null;
                      }
                  >;
                  readonly result?: {
                    readonly __typename: 'ConditionResult';
                    readonly outcome: GQLConditionOutcome;
                    readonly score?: string | null;
                    readonly matchedValue?: string | null;
                  } | null;
                }
              | {
                  readonly __typename: 'LeafConditionWithResult';
                  readonly comparator?: GQLValueComparator | null;
                  readonly threshold?: string | number | null;
                  readonly input: {
                    readonly __typename: 'ConditionInputField';
                    readonly type: GQLConditionInputInputType;
                    readonly name?: string | null;
                    readonly contentTypeId?: string | null;
                    readonly spec?: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                    } | null;
                  };
                  readonly signal?: {
                    readonly __typename: 'Signal';
                    readonly id: string;
                    readonly type: string;
                    readonly name: string;
                    readonly subcategory?: string | null;
                    readonly args?: {
                      readonly __typename: 'AggregationSignalArgs';
                    } | null;
                  } | null;
                  readonly matchingValues?: {
                    readonly __typename: 'MatchingValues';
                    readonly strings?: ReadonlyArray<string> | null;
                    readonly textBankIds?: ReadonlyArray<string> | null;
                    readonly locationBankIds?: ReadonlyArray<string> | null;
                    readonly imageBankIds?: ReadonlyArray<string> | null;
                    readonly locations?: ReadonlyArray<{
                      readonly __typename: 'LocationArea';
                      readonly id: string;
                      readonly name?: string | null;
                      readonly geometry: {
                        readonly __typename: 'LocationGeometry';
                        readonly radius: number;
                        readonly center: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                      };
                      readonly bounds?: {
                        readonly __typename: 'PlaceBounds';
                        readonly northeastCorner: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                        readonly southwestCorner: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                      } | null;
                      readonly googlePlaceInfo?: {
                        readonly __typename: 'GooglePlaceLocationInfo';
                        readonly id: string;
                      } | null;
                    }> | null;
                  } | null;
                  readonly result?: {
                    readonly __typename: 'ConditionResult';
                    readonly outcome: GQLConditionOutcome;
                    readonly score?: string | null;
                    readonly matchedValue?: string | null;
                  } | null;
                }
            >;
            readonly result?: {
              readonly __typename: 'ConditionResult';
              readonly outcome: GQLConditionOutcome;
              readonly score?: string | null;
              readonly matchedValue?: string | null;
            } | null;
          } | null;
        }>;
      }
    | { readonly __typename: 'NotFoundError'; readonly title: string };
};

export type GQLGetItemsByIpAddressQueryVariables = Exact<{
  ipAddress: Scalars['String']['input'];
  limit?: InputMaybe<Scalars['Int']['input']>;
}>;

export type GQLGetItemsByIpAddressQuery = {
  readonly __typename: 'Query';
  readonly latestItemsByIpAddress: ReadonlyArray<{
    readonly __typename: 'ItemSubmissions';
    readonly latest:
      | {
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly version: string;
          };
        }
      | {
          readonly __typename: 'ThreadItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly type: {
            readonly __typename: 'ThreadItemType';
            readonly id: string;
            readonly name: string;
            readonly version: string;
          };
        }
      | {
          readonly __typename: 'UserItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly type: {
            readonly __typename: 'UserItemType';
            readonly id: string;
            readonly name: string;
            readonly version: string;
          };
        };
  }>;
};

export type GQLGetAuthorInfoQueryVariables = Exact<{
  userIdentifiers:
    ReadonlyArray<GQLItemIdentifierInput> | GQLItemIdentifierInput;
}>;

export type GQLGetAuthorInfoQuery = {
  readonly __typename: 'Query';
  readonly latestItemSubmissions: ReadonlyArray<
    | { readonly __typename: 'ContentItem' }
    | { readonly __typename: 'ThreadItem' }
    | {
        readonly __typename: 'UserItem';
        readonly id: string;
        readonly data: JsonObject;
        readonly submissionId: string;
        readonly submissionTime?: Date | string | null;
        readonly type: {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
          };
        };
      }
  >;
};

export type GQLItemTypeQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLItemTypeQuery = {
  readonly __typename: 'Query';
  readonly itemType?:
    | {
        readonly __typename: 'ContentItemType';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly version: string;
        readonly schemaVariant: GQLItemTypeSchemaVariant;
        readonly hiddenFields: ReadonlyArray<string>;
        readonly schemaFieldRoles: {
          readonly __typename: 'ContentSchemaFieldRoles';
          readonly displayName?: string | null;
          readonly parentId?: string | null;
          readonly threadId?: string | null;
          readonly createdAt?: string | null;
          readonly creatorId?: string | null;
          readonly isDeleted?: string | null;
          readonly ipAddress?: string | null;
        };
        readonly baseFields: ReadonlyArray<{
          readonly __typename: 'BaseField';
          readonly name: string;
          readonly required: boolean;
          readonly type: GQLFieldType;
          readonly container?: {
            readonly __typename: 'Container';
            readonly containerType: GQLContainerType;
            readonly keyScalarType?: GQLScalarType | null;
            readonly valueScalarType: GQLScalarType;
          } | null;
        }>;
        readonly derivedFields: ReadonlyArray<{
          readonly __typename: 'DerivedField';
          readonly type: GQLFieldType;
          readonly name: string;
          readonly container?: {
            readonly __typename: 'Container';
            readonly containerType: GQLContainerType;
            readonly keyScalarType?: GQLScalarType | null;
            readonly valueScalarType: GQLScalarType;
          } | null;
          readonly spec: {
            readonly __typename: 'DerivedFieldSpec';
            readonly derivationType: GQLDerivedFieldDerivationType;
            readonly source:
              | {
                  readonly __typename: 'DerivedFieldCoopInputSource';
                  readonly coopInput: GQLCoopInput;
                }
              | {
                  readonly __typename: 'DerivedFieldFieldSource';
                  readonly name: string;
                  readonly contentTypeId: string;
                }
              | {
                  readonly __typename: 'DerivedFieldFullItemSource';
                  readonly _?: boolean | null;
                };
          };
        }>;
      }
    | {
        readonly __typename: 'ThreadItemType';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly version: string;
        readonly schemaVariant: GQLItemTypeSchemaVariant;
        readonly hiddenFields: ReadonlyArray<string>;
        readonly schemaFieldRoles: {
          readonly __typename: 'ThreadSchemaFieldRoles';
          readonly displayName?: string | null;
          readonly createdAt?: string | null;
          readonly creatorId?: string | null;
          readonly isDeleted?: string | null;
          readonly ipAddress?: string | null;
        };
        readonly baseFields: ReadonlyArray<{
          readonly __typename: 'BaseField';
          readonly name: string;
          readonly required: boolean;
          readonly type: GQLFieldType;
          readonly container?: {
            readonly __typename: 'Container';
            readonly containerType: GQLContainerType;
            readonly keyScalarType?: GQLScalarType | null;
            readonly valueScalarType: GQLScalarType;
          } | null;
        }>;
        readonly derivedFields: ReadonlyArray<{
          readonly __typename: 'DerivedField';
          readonly type: GQLFieldType;
          readonly name: string;
          readonly container?: {
            readonly __typename: 'Container';
            readonly containerType: GQLContainerType;
            readonly keyScalarType?: GQLScalarType | null;
            readonly valueScalarType: GQLScalarType;
          } | null;
          readonly spec: {
            readonly __typename: 'DerivedFieldSpec';
            readonly derivationType: GQLDerivedFieldDerivationType;
            readonly source:
              | {
                  readonly __typename: 'DerivedFieldCoopInputSource';
                  readonly coopInput: GQLCoopInput;
                }
              | {
                  readonly __typename: 'DerivedFieldFieldSource';
                  readonly name: string;
                  readonly contentTypeId: string;
                }
              | {
                  readonly __typename: 'DerivedFieldFullItemSource';
                  readonly _?: boolean | null;
                };
          };
        }>;
      }
    | {
        readonly __typename: 'UserItemType';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly version: string;
        readonly schemaVariant: GQLItemTypeSchemaVariant;
        readonly hiddenFields: ReadonlyArray<string>;
        readonly schemaFieldRoles: {
          readonly __typename: 'UserSchemaFieldRoles';
          readonly displayName?: string | null;
          readonly createdAt?: string | null;
          readonly profileIcon?: string | null;
          readonly backgroundImage?: string | null;
          readonly isDeleted?: string | null;
          readonly ipAddress?: string | null;
        };
        readonly baseFields: ReadonlyArray<{
          readonly __typename: 'BaseField';
          readonly name: string;
          readonly required: boolean;
          readonly type: GQLFieldType;
          readonly container?: {
            readonly __typename: 'Container';
            readonly containerType: GQLContainerType;
            readonly keyScalarType?: GQLScalarType | null;
            readonly valueScalarType: GQLScalarType;
          } | null;
        }>;
        readonly derivedFields: ReadonlyArray<{
          readonly __typename: 'DerivedField';
          readonly type: GQLFieldType;
          readonly name: string;
          readonly container?: {
            readonly __typename: 'Container';
            readonly containerType: GQLContainerType;
            readonly keyScalarType?: GQLScalarType | null;
            readonly valueScalarType: GQLScalarType;
          } | null;
          readonly spec: {
            readonly __typename: 'DerivedFieldSpec';
            readonly derivationType: GQLDerivedFieldDerivationType;
            readonly source:
              | {
                  readonly __typename: 'DerivedFieldCoopInputSource';
                  readonly coopInput: GQLCoopInput;
                }
              | {
                  readonly __typename: 'DerivedFieldFieldSource';
                  readonly name: string;
                  readonly contentTypeId: string;
                }
              | {
                  readonly __typename: 'DerivedFieldFullItemSource';
                  readonly _?: boolean | null;
                };
          };
        }>;
      }
    | null;
};

export type GQLItemTypeFormOrgQueryVariables = Exact<{ [key: string]: never }>;

export type GQLItemTypeFormOrgQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: { readonly __typename: 'Org'; readonly id: string } | null;
};

export type GQLDeleteItemTypeMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteItemTypeMutation = {
  readonly __typename: 'Mutation';
  readonly deleteItemType:
    | {
        readonly __typename: 'CannotDeleteDefaultUserError';
        readonly title: string;
      }
    | {
        readonly __typename: 'DeleteItemTypeSuccessResponse';
        readonly _?: boolean | null;
      };
};

export type GQLCreateContentTypeMutationVariables = Exact<{
  input: GQLCreateContentItemTypeInput;
}>;

export type GQLCreateContentTypeMutation = {
  readonly __typename: 'Mutation';
  readonly createContentItemType:
    | {
        readonly __typename: 'ItemTypeNameAlreadyExistsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'MutateContentTypeSuccessResponse';
        readonly data?: {
          readonly __typename: 'ContentItemType';
          readonly id: string;
        } | null;
      };
};

export type GQLUpdateContentTypeMutationVariables = Exact<{
  input: GQLUpdateContentItemTypeInput;
}>;

export type GQLUpdateContentTypeMutation = {
  readonly __typename: 'Mutation';
  readonly updateContentItemType:
    | {
        readonly __typename: 'ItemTypeNameAlreadyExistsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'MutateContentTypeSuccessResponse';
        readonly data?: {
          readonly __typename: 'ContentItemType';
          readonly id: string;
        } | null;
      };
};

export type GQLCreateUserTypeMutationVariables = Exact<{
  input: GQLCreateUserItemTypeInput;
}>;

export type GQLCreateUserTypeMutation = {
  readonly __typename: 'Mutation';
  readonly createUserItemType:
    | {
        readonly __typename: 'ItemTypeNameAlreadyExistsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'MutateUserTypeSuccessResponse';
        readonly data?: {
          readonly __typename: 'UserItemType';
          readonly id: string;
        } | null;
      };
};

export type GQLUpdateUserTypeMutationVariables = Exact<{
  input: GQLUpdateUserItemTypeInput;
}>;

export type GQLUpdateUserTypeMutation = {
  readonly __typename: 'Mutation';
  readonly updateUserItemType:
    | {
        readonly __typename: 'ItemTypeNameAlreadyExistsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'MutateUserTypeSuccessResponse';
        readonly data?: {
          readonly __typename: 'UserItemType';
          readonly id: string;
        } | null;
      };
};

export type GQLCreateThreadTypeMutationVariables = Exact<{
  input: GQLCreateThreadItemTypeInput;
}>;

export type GQLCreateThreadTypeMutation = {
  readonly __typename: 'Mutation';
  readonly createThreadItemType:
    | {
        readonly __typename: 'ItemTypeNameAlreadyExistsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'MutateThreadTypeSuccessResponse';
        readonly data?: {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
        } | null;
      };
};

export type GQLUpdateThreadTypeMutationVariables = Exact<{
  input: GQLUpdateThreadItemTypeInput;
}>;

export type GQLUpdateThreadTypeMutation = {
  readonly __typename: 'Mutation';
  readonly updateThreadItemType:
    | {
        readonly __typename: 'ItemTypeNameAlreadyExistsError';
        readonly title: string;
      }
    | {
        readonly __typename: 'MutateThreadTypeSuccessResponse';
        readonly data?: {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
        } | null;
      };
};

type GQLItemFieldsContentItemFragment = {
  readonly __typename: 'ContentItem';
  readonly id: string;
  readonly submissionId: string;
  readonly submissionTime?: Date | string | null;
  readonly data: JsonObject;
  readonly type: {
    readonly __typename: 'ContentItemType';
    readonly id: string;
    readonly name: string;
    readonly description?: string | null;
    readonly version: string;
    readonly schemaVariant: GQLItemTypeSchemaVariant;
    readonly hiddenFields: ReadonlyArray<string>;
    readonly schemaFieldRoles: {
      readonly __typename: 'ContentSchemaFieldRoles';
      readonly displayName?: string | null;
      readonly parentId?: string | null;
      readonly threadId?: string | null;
      readonly createdAt?: string | null;
      readonly creatorId?: string | null;
      readonly isDeleted?: string | null;
      readonly ipAddress?: string | null;
    };
    readonly baseFields: ReadonlyArray<{
      readonly __typename: 'BaseField';
      readonly name: string;
      readonly required: boolean;
      readonly type: GQLFieldType;
      readonly container?: {
        readonly __typename: 'Container';
        readonly containerType: GQLContainerType;
        readonly keyScalarType?: GQLScalarType | null;
        readonly valueScalarType: GQLScalarType;
      } | null;
    }>;
    readonly derivedFields: ReadonlyArray<{
      readonly __typename: 'DerivedField';
      readonly type: GQLFieldType;
      readonly name: string;
      readonly container?: {
        readonly __typename: 'Container';
        readonly containerType: GQLContainerType;
        readonly keyScalarType?: GQLScalarType | null;
        readonly valueScalarType: GQLScalarType;
      } | null;
      readonly spec: {
        readonly __typename: 'DerivedFieldSpec';
        readonly derivationType: GQLDerivedFieldDerivationType;
        readonly source:
          | {
              readonly __typename: 'DerivedFieldCoopInputSource';
              readonly coopInput: GQLCoopInput;
            }
          | {
              readonly __typename: 'DerivedFieldFieldSource';
              readonly name: string;
              readonly contentTypeId: string;
            }
          | {
              readonly __typename: 'DerivedFieldFullItemSource';
              readonly _?: boolean | null;
            };
      };
    }>;
  };
};

type GQLItemFieldsThreadItemFragment = {
  readonly __typename: 'ThreadItem';
  readonly id: string;
  readonly submissionId: string;
  readonly submissionTime?: Date | string | null;
  readonly data: JsonObject;
  readonly type: {
    readonly __typename: 'ThreadItemType';
    readonly id: string;
    readonly name: string;
    readonly description?: string | null;
    readonly version: string;
    readonly schemaVariant: GQLItemTypeSchemaVariant;
    readonly hiddenFields: ReadonlyArray<string>;
    readonly schemaFieldRoles: {
      readonly __typename: 'ThreadSchemaFieldRoles';
      readonly displayName?: string | null;
      readonly createdAt?: string | null;
      readonly creatorId?: string | null;
      readonly isDeleted?: string | null;
      readonly ipAddress?: string | null;
    };
    readonly baseFields: ReadonlyArray<{
      readonly __typename: 'BaseField';
      readonly name: string;
      readonly required: boolean;
      readonly type: GQLFieldType;
      readonly container?: {
        readonly __typename: 'Container';
        readonly containerType: GQLContainerType;
        readonly keyScalarType?: GQLScalarType | null;
        readonly valueScalarType: GQLScalarType;
      } | null;
    }>;
    readonly derivedFields: ReadonlyArray<{
      readonly __typename: 'DerivedField';
      readonly type: GQLFieldType;
      readonly name: string;
      readonly container?: {
        readonly __typename: 'Container';
        readonly containerType: GQLContainerType;
        readonly keyScalarType?: GQLScalarType | null;
        readonly valueScalarType: GQLScalarType;
      } | null;
      readonly spec: {
        readonly __typename: 'DerivedFieldSpec';
        readonly derivationType: GQLDerivedFieldDerivationType;
        readonly source:
          | {
              readonly __typename: 'DerivedFieldCoopInputSource';
              readonly coopInput: GQLCoopInput;
            }
          | {
              readonly __typename: 'DerivedFieldFieldSource';
              readonly name: string;
              readonly contentTypeId: string;
            }
          | {
              readonly __typename: 'DerivedFieldFullItemSource';
              readonly _?: boolean | null;
            };
      };
    }>;
  };
};

type GQLItemFieldsUserItemFragment = {
  readonly __typename: 'UserItem';
  readonly id: string;
  readonly submissionId: string;
  readonly submissionTime?: Date | string | null;
  readonly data: JsonObject;
  readonly type: {
    readonly __typename: 'UserItemType';
    readonly id: string;
    readonly name: string;
    readonly description?: string | null;
    readonly version: string;
    readonly schemaVariant: GQLItemTypeSchemaVariant;
    readonly hiddenFields: ReadonlyArray<string>;
    readonly schemaFieldRoles: {
      readonly __typename: 'UserSchemaFieldRoles';
      readonly displayName?: string | null;
      readonly createdAt?: string | null;
      readonly profileIcon?: string | null;
      readonly backgroundImage?: string | null;
      readonly isDeleted?: string | null;
      readonly ipAddress?: string | null;
    };
    readonly baseFields: ReadonlyArray<{
      readonly __typename: 'BaseField';
      readonly name: string;
      readonly required: boolean;
      readonly type: GQLFieldType;
      readonly container?: {
        readonly __typename: 'Container';
        readonly containerType: GQLContainerType;
        readonly keyScalarType?: GQLScalarType | null;
        readonly valueScalarType: GQLScalarType;
      } | null;
    }>;
    readonly derivedFields: ReadonlyArray<{
      readonly __typename: 'DerivedField';
      readonly type: GQLFieldType;
      readonly name: string;
      readonly container?: {
        readonly __typename: 'Container';
        readonly containerType: GQLContainerType;
        readonly keyScalarType?: GQLScalarType | null;
        readonly valueScalarType: GQLScalarType;
      } | null;
      readonly spec: {
        readonly __typename: 'DerivedFieldSpec';
        readonly derivationType: GQLDerivedFieldDerivationType;
        readonly source:
          | {
              readonly __typename: 'DerivedFieldCoopInputSource';
              readonly coopInput: GQLCoopInput;
            }
          | {
              readonly __typename: 'DerivedFieldFieldSource';
              readonly name: string;
              readonly contentTypeId: string;
            }
          | {
              readonly __typename: 'DerivedFieldFullItemSource';
              readonly _?: boolean | null;
            };
      };
    }>;
  };
};

export type GQLItemFieldsFragment =
  | GQLItemFieldsContentItemFragment
  | GQLItemFieldsThreadItemFragment
  | GQLItemFieldsUserItemFragment;

export type GQLItemTypesQueryVariables = Exact<{ [key: string]: never }>;

export type GQLItemTypesQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ContentSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly parentId?: string | null;
            readonly threadId?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ThreadSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly isDefaultUserType: boolean;
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
            readonly backgroundImage?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
    >;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLItemActionHistoryQueryVariables = Exact<{
  itemIdentifier: GQLItemIdentifierInput;
  submissionTime?: InputMaybe<Scalars['DateTime']['input']>;
}>;

export type GQLItemActionHistoryQuery = {
  readonly __typename: 'Query';
  readonly itemActionHistory: ReadonlyArray<{
    readonly __typename: 'ItemAction';
    readonly itemId: string;
    readonly itemTypeId: string;
    readonly itemCreatorId?: string | null;
    readonly itemCreatorTypeId?: string | null;
    readonly actionId: string;
    readonly actorId?: string | null;
    readonly jobId?: string | null;
    readonly policies: ReadonlyArray<string>;
    readonly ruleIds: ReadonlyArray<string>;
    readonly ts: Date | string;
  }>;
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly users: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
    }>;
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
    }>;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly rules: ReadonlyArray<
      | {
          readonly __typename: 'ContentRule';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserRule';
          readonly id: string;
          readonly name: string;
        }
    >;
  } | null;
};

export type GQLGetDecidedJobFromJobIdQueryVariables = Exact<{
  id: Scalars['String']['input'];
}>;

export type GQLGetDecidedJobFromJobIdQuery = {
  readonly __typename: 'Query';
  readonly getDecidedJobFromJobId?: {
    readonly __typename: 'ManualReviewJobWithDecisions';
    readonly job: {
      readonly __typename: 'ManualReviewJob';
      readonly id: string;
      readonly createdAt: Date | string;
      readonly policyIds: ReadonlyArray<string>;
      readonly numTimesReported?: number | null;
      readonly payload:
        | {
            readonly __typename: 'ContentAppealManualReviewJobPayload';
            readonly appealReason?: string | null;
            readonly appealId: string;
            readonly actionsTaken: ReadonlyArray<string>;
            readonly item: {
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly additionalContentItems: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }>;
            readonly appealerIdentifier?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
            readonly enqueueSourceInfo?: {
              readonly __typename: 'AppealEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            } | null;
          }
        | {
            readonly __typename: 'ContentManualReviewJobPayload';
            readonly reportHistory: ReadonlyArray<{
              readonly __typename: 'ReportHistoryEntry';
              readonly policyId?: string | null;
              readonly reportId: string;
              readonly reason?: string | null;
              readonly reportedAt: Date | string;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly item: {
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly additionalContentItems: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }>;
            readonly itemThreadContentItems?: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }> | null;
            readonly reportedForReasons: ReadonlyArray<{
              readonly __typename: 'ReportedForReason';
              readonly reason?: string | null;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly enqueueSourceInfo?:
              | { readonly __typename: 'AppealEnqueueSourceInfo' }
              | {
                  readonly __typename: 'MrtJobEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'PostActionsEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'ReportEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                  readonly rules: ReadonlyArray<
                    | {
                        readonly __typename: 'ContentRule';
                        readonly id: string;
                        readonly name: string;
                      }
                    | {
                        readonly __typename: 'UserRule';
                        readonly id: string;
                        readonly name: string;
                      }
                  >;
                }
              | null;
          }
        | {
            readonly __typename: 'NcmecManualReviewJobPayload';
            readonly item: {
              readonly __typename: 'UserItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'UserSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly profileIcon?: string | null;
                  readonly backgroundImage?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly allMediaItems: ReadonlyArray<{
              readonly __typename: 'NcmecContentItem';
              readonly isConfirmedCSAM: boolean;
              readonly isReported: boolean;
              readonly contentItem:
                | {
                    readonly __typename: 'ContentItem';
                    readonly id: string;
                    readonly submissionId: string;
                    readonly submissionTime?: Date | string | null;
                    readonly data: JsonObject;
                    readonly type: {
                      readonly __typename: 'ContentItemType';
                      readonly id: string;
                      readonly name: string;
                      readonly description?: string | null;
                      readonly version: string;
                      readonly schemaVariant: GQLItemTypeSchemaVariant;
                      readonly hiddenFields: ReadonlyArray<string>;
                      readonly schemaFieldRoles: {
                        readonly __typename: 'ContentSchemaFieldRoles';
                        readonly displayName?: string | null;
                        readonly parentId?: string | null;
                        readonly threadId?: string | null;
                        readonly createdAt?: string | null;
                        readonly creatorId?: string | null;
                        readonly isDeleted?: string | null;
                        readonly ipAddress?: string | null;
                      };
                      readonly baseFields: ReadonlyArray<{
                        readonly __typename: 'BaseField';
                        readonly name: string;
                        readonly required: boolean;
                        readonly type: GQLFieldType;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                      }>;
                      readonly derivedFields: ReadonlyArray<{
                        readonly __typename: 'DerivedField';
                        readonly type: GQLFieldType;
                        readonly name: string;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                        readonly spec: {
                          readonly __typename: 'DerivedFieldSpec';
                          readonly derivationType: GQLDerivedFieldDerivationType;
                          readonly source:
                            | {
                                readonly __typename: 'DerivedFieldCoopInputSource';
                                readonly coopInput: GQLCoopInput;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFieldSource';
                                readonly name: string;
                                readonly contentTypeId: string;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFullItemSource';
                                readonly _?: boolean | null;
                              };
                        };
                      }>;
                    };
                  }
                | {
                    readonly __typename: 'ThreadItem';
                    readonly id: string;
                    readonly submissionId: string;
                    readonly submissionTime?: Date | string | null;
                    readonly data: JsonObject;
                    readonly type: {
                      readonly __typename: 'ThreadItemType';
                      readonly id: string;
                      readonly name: string;
                      readonly description?: string | null;
                      readonly version: string;
                      readonly schemaVariant: GQLItemTypeSchemaVariant;
                      readonly hiddenFields: ReadonlyArray<string>;
                      readonly schemaFieldRoles: {
                        readonly __typename: 'ThreadSchemaFieldRoles';
                        readonly displayName?: string | null;
                        readonly createdAt?: string | null;
                        readonly creatorId?: string | null;
                        readonly isDeleted?: string | null;
                        readonly ipAddress?: string | null;
                      };
                      readonly baseFields: ReadonlyArray<{
                        readonly __typename: 'BaseField';
                        readonly name: string;
                        readonly required: boolean;
                        readonly type: GQLFieldType;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                      }>;
                      readonly derivedFields: ReadonlyArray<{
                        readonly __typename: 'DerivedField';
                        readonly type: GQLFieldType;
                        readonly name: string;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                        readonly spec: {
                          readonly __typename: 'DerivedFieldSpec';
                          readonly derivationType: GQLDerivedFieldDerivationType;
                          readonly source:
                            | {
                                readonly __typename: 'DerivedFieldCoopInputSource';
                                readonly coopInput: GQLCoopInput;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFieldSource';
                                readonly name: string;
                                readonly contentTypeId: string;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFullItemSource';
                                readonly _?: boolean | null;
                              };
                        };
                      }>;
                    };
                  }
                | {
                    readonly __typename: 'UserItem';
                    readonly id: string;
                    readonly submissionId: string;
                    readonly submissionTime?: Date | string | null;
                    readonly data: JsonObject;
                    readonly type: {
                      readonly __typename: 'UserItemType';
                      readonly id: string;
                      readonly name: string;
                      readonly description?: string | null;
                      readonly version: string;
                      readonly schemaVariant: GQLItemTypeSchemaVariant;
                      readonly hiddenFields: ReadonlyArray<string>;
                      readonly schemaFieldRoles: {
                        readonly __typename: 'UserSchemaFieldRoles';
                        readonly displayName?: string | null;
                        readonly createdAt?: string | null;
                        readonly profileIcon?: string | null;
                        readonly backgroundImage?: string | null;
                        readonly isDeleted?: string | null;
                        readonly ipAddress?: string | null;
                      };
                      readonly baseFields: ReadonlyArray<{
                        readonly __typename: 'BaseField';
                        readonly name: string;
                        readonly required: boolean;
                        readonly type: GQLFieldType;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                      }>;
                      readonly derivedFields: ReadonlyArray<{
                        readonly __typename: 'DerivedField';
                        readonly type: GQLFieldType;
                        readonly name: string;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                        readonly spec: {
                          readonly __typename: 'DerivedFieldSpec';
                          readonly derivationType: GQLDerivedFieldDerivationType;
                          readonly source:
                            | {
                                readonly __typename: 'DerivedFieldCoopInputSource';
                                readonly coopInput: GQLCoopInput;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFieldSource';
                                readonly name: string;
                                readonly contentTypeId: string;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFullItemSource';
                                readonly _?: boolean | null;
                              };
                        };
                      }>;
                    };
                  };
            }>;
            readonly enqueueSourceInfo?:
              | { readonly __typename: 'AppealEnqueueSourceInfo' }
              | {
                  readonly __typename: 'MrtJobEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'PostActionsEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'ReportEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                  readonly rules: ReadonlyArray<
                    | {
                        readonly __typename: 'ContentRule';
                        readonly id: string;
                        readonly name: string;
                      }
                    | {
                        readonly __typename: 'UserRule';
                        readonly id: string;
                        readonly name: string;
                      }
                  >;
                }
              | null;
          }
        | {
            readonly __typename: 'ThreadAppealManualReviewJobPayload';
            readonly appealId: string;
            readonly appealReason?: string | null;
            readonly actionsTaken: ReadonlyArray<string>;
            readonly item: {
              readonly __typename: 'ThreadItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ThreadSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly appealerIdentifier?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
            readonly enqueueSourceInfo?: {
              readonly __typename: 'AppealEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            } | null;
          }
        | {
            readonly __typename: 'ThreadManualReviewJobPayload';
            readonly reportHistory: ReadonlyArray<{
              readonly __typename: 'ReportHistoryEntry';
              readonly reportId: string;
              readonly policyId?: string | null;
              readonly reason?: string | null;
              readonly reportedAt: Date | string;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly item: {
              readonly __typename: 'ThreadItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ThreadSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly reportedForReasons: ReadonlyArray<{
              readonly __typename: 'ReportedForReason';
              readonly reason?: string | null;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly enqueueSourceInfo?:
              | { readonly __typename: 'AppealEnqueueSourceInfo' }
              | {
                  readonly __typename: 'MrtJobEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'PostActionsEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'ReportEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                  readonly rules: ReadonlyArray<
                    | {
                        readonly __typename: 'ContentRule';
                        readonly id: string;
                        readonly name: string;
                      }
                    | {
                        readonly __typename: 'UserRule';
                        readonly id: string;
                        readonly name: string;
                      }
                  >;
                }
              | null;
          }
        | {
            readonly __typename: 'UserAppealManualReviewJobPayload';
            readonly appealReason?: string | null;
            readonly appealId: string;
            readonly actionsTaken: ReadonlyArray<string>;
            readonly item: {
              readonly __typename: 'UserItem';
              readonly userStrikeCount: number;
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'UserSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly profileIcon?: string | null;
                  readonly backgroundImage?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly additionalContentItems: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }>;
            readonly appealerIdentifier?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
            readonly enqueueSourceInfo?: {
              readonly __typename: 'AppealEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            } | null;
          }
        | {
            readonly __typename: 'UserManualReviewJobPayload';
            readonly reportHistory: ReadonlyArray<{
              readonly __typename: 'ReportHistoryEntry';
              readonly reportId: string;
              readonly policyId?: string | null;
              readonly reason?: string | null;
              readonly reportedAt: Date | string;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly item: {
              readonly __typename: 'UserItem';
              readonly userStrikeCount: number;
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'UserSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly profileIcon?: string | null;
                  readonly backgroundImage?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly itemThreadContentItems?: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }> | null;
            readonly reportedItems?: ReadonlyArray<{
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null> | null;
            readonly additionalContentItems: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }>;
            readonly reportedForReasons: ReadonlyArray<{
              readonly __typename: 'ReportedForReason';
              readonly reason?: string | null;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly enqueueSourceInfo?:
              | { readonly __typename: 'AppealEnqueueSourceInfo' }
              | {
                  readonly __typename: 'MrtJobEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'PostActionsEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'ReportEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                  readonly rules: ReadonlyArray<
                    | {
                        readonly __typename: 'ContentRule';
                        readonly id: string;
                        readonly name: string;
                      }
                    | {
                        readonly __typename: 'UserRule';
                        readonly id: string;
                        readonly name: string;
                      }
                  >;
                }
              | null;
          };
    };
    readonly decision: {
      readonly __typename: 'ManualReviewDecision';
      readonly id: string;
      readonly queueId: string;
      readonly reviewerId?: string | null;
      readonly itemId?: string | null;
      readonly itemTypeId?: string | null;
      readonly jobId: string;
      readonly decisionReason?: string | null;
      readonly createdAt: Date | string;
      readonly decisions: ReadonlyArray<
        | {
            readonly __typename: 'AcceptAppealDecisionComponent';
            readonly appealId: string;
            readonly type: GQLManualReviewDecisionType;
          }
        | {
            readonly __typename: 'AutomaticCloseDecisionComponent';
            readonly type: GQLManualReviewDecisionType;
          }
        | {
            readonly __typename: 'IgnoreDecisionComponent';
            readonly type: GQLManualReviewDecisionType;
          }
        | {
            readonly __typename: 'RejectAppealDecisionComponent';
            readonly appealId: string;
            readonly type: GQLManualReviewDecisionType;
          }
        | {
            readonly __typename: 'SubmitNCMECReportDecisionComponent';
            readonly type: GQLManualReviewDecisionType;
            readonly reportedMedia: ReadonlyArray<{
              readonly __typename: 'NcmecReportedMediaDetails';
              readonly id: string;
              readonly typeId: string;
              readonly url: string;
              readonly fileAnnotations: ReadonlyArray<GQLNcmecFileAnnotation>;
              readonly industryClassification: GQLNcmecIndustryClassification;
            }>;
          }
        | {
            readonly __typename: 'TransformJobAndRecreateInQueueDecisionComponent';
            readonly newQueueId?: string | null;
            readonly originalQueueId?: string | null;
            readonly type: GQLManualReviewDecisionType;
          }
        | {
            readonly __typename: 'UserOrRelatedActionDecisionComponent';
            readonly itemTypeId: string;
            readonly itemIds: ReadonlyArray<string>;
            readonly actionIds: ReadonlyArray<string>;
            readonly policyIds: ReadonlyArray<string>;
            readonly type: GQLManualReviewDecisionType;
          }
      >;
      readonly relatedActions: ReadonlyArray<
        | {
            readonly __typename: 'AcceptAppealDecisionComponent';
            readonly appealId: string;
            readonly type: GQLManualReviewDecisionType;
          }
        | {
            readonly __typename: 'AutomaticCloseDecisionComponent';
            readonly type: GQLManualReviewDecisionType;
          }
        | {
            readonly __typename: 'IgnoreDecisionComponent';
            readonly type: GQLManualReviewDecisionType;
          }
        | {
            readonly __typename: 'RejectAppealDecisionComponent';
            readonly appealId: string;
            readonly type: GQLManualReviewDecisionType;
          }
        | {
            readonly __typename: 'SubmitNCMECReportDecisionComponent';
            readonly type: GQLManualReviewDecisionType;
            readonly reportedMedia: ReadonlyArray<{
              readonly __typename: 'NcmecReportedMediaDetails';
              readonly id: string;
              readonly typeId: string;
              readonly url: string;
              readonly fileAnnotations: ReadonlyArray<GQLNcmecFileAnnotation>;
              readonly industryClassification: GQLNcmecIndustryClassification;
            }>;
          }
        | {
            readonly __typename: 'TransformJobAndRecreateInQueueDecisionComponent';
            readonly newQueueId?: string | null;
            readonly originalQueueId?: string | null;
            readonly type: GQLManualReviewDecisionType;
          }
        | {
            readonly __typename: 'UserOrRelatedActionDecisionComponent';
            readonly itemTypeId: string;
            readonly itemIds: ReadonlyArray<string>;
            readonly actionIds: ReadonlyArray<string>;
            readonly policyIds: ReadonlyArray<string>;
            readonly type: GQLManualReviewDecisionType;
          }
      >;
    };
  } | null;
};

export type GQLManualReviewMetricsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLManualReviewMetricsQuery = {
  readonly __typename: 'Query';
  readonly getTotalPendingJobsCount: number;
  readonly reportingInsights: {
    readonly __typename: 'ReportingInsights';
    readonly totalIngestedReportsByDay: ReadonlyArray<{
      readonly __typename: 'CountByDay';
      readonly date: Date | string;
      readonly count: number;
    }>;
  };
};

export type GQLGetAverageTimeToReviewQueryVariables = Exact<{
  input: GQLTimeToActionInput;
}>;

export type GQLGetAverageTimeToReviewQuery = {
  readonly __typename: 'Query';
  readonly getTimeToAction?: ReadonlyArray<{
    readonly __typename: 'TimeToAction';
    readonly timeToAction?: number | null;
    readonly queueId?: string | null;
  }> | null;
};

export type GQLGetDecisionsTableQueryVariables = Exact<{
  input: GQLGetDecisionCountsTableInput;
}>;

export type GQLGetDecisionsTableQuery = {
  readonly __typename: 'Query';
  readonly getDecisionsTable: ReadonlyArray<{
    readonly __typename: 'TableDecisionCount';
    readonly count: number;
    readonly type: GQLManualReviewDecisionType;
    readonly action_id?: string | null;
    readonly queue_id?: string | null;
    readonly reviewer_id?: string | null;
  }>;
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly users: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
    }>;
    readonly mrtQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
    }>;
  } | null;
};

export type GQLQueueFormDataQueryVariables = Exact<{ [key: string]: never }>;

export type GQLQueueFormDataQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly hasAppealsEnabled: boolean;
    readonly hasPartialItemsEndpoint: boolean;
    readonly users: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
      readonly role?: GQLUserRole | null;
    }>;
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly usersWhoCanReviewEveryQueue: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
    }>;
  } | null;
};

export type GQLManualReviewQueueQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLManualReviewQueueQuery = {
  readonly __typename: 'Query';
  readonly manualReviewQueue?: {
    readonly __typename: 'ManualReviewQueue';
    readonly id: string;
    readonly name: string;
    readonly description?: string | null;
    readonly hiddenActionIds: ReadonlyArray<string>;
    readonly isAppealsQueue: boolean;
    readonly autoCloseJobs: boolean;
    readonly clearReportsDisposition?: GQLMrtClearReportsDisposition | null;
    readonly clearReportsScope: GQLMrtClearReportsScope;
    readonly clearReportsTriggerActionIds: ReadonlyArray<string>;
    readonly explicitlyAssignedReviewers: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
    }>;
  } | null;
};

export type GQLCreateManualReviewQueueMutationVariables = Exact<{
  input: GQLCreateManualReviewQueueInput;
}>;

export type GQLCreateManualReviewQueueMutation = {
  readonly __typename: 'Mutation';
  readonly createManualReviewQueue:
    | {
        readonly __typename: 'ManualReviewQueueNameExistsError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'MutateManualReviewQueueSuccessResponse';
        readonly data: {
          readonly __typename: 'ManualReviewQueue';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
        };
      };
};

export type GQLUpdateManualReviewQueueMutationVariables = Exact<{
  input: GQLUpdateManualReviewQueueInput;
}>;

export type GQLUpdateManualReviewQueueMutation = {
  readonly __typename: 'Mutation';
  readonly updateManualReviewQueue:
    | {
        readonly __typename: 'ManualReviewQueueNameExistsError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'MutateManualReviewQueueSuccessResponse';
        readonly data: {
          readonly __typename: 'ManualReviewQueue';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
        };
      }
    | {
        readonly __typename: 'NotFoundError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      };
};

export type GQLManualReviewQueueJobsPreviewQueryVariables = Exact<{
  queueIds?: InputMaybe<
    ReadonlyArray<Scalars['ID']['input']> | Scalars['ID']['input']
  >;
}>;

export type GQLManualReviewQueueJobsPreviewQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
    }>;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
    readonly reviewableQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
      readonly description?: string | null;
      readonly pendingJobCount: number;
      readonly jobs: ReadonlyArray<{
        readonly __typename: 'ManualReviewJob';
        readonly id: string;
        readonly createdAt: Date | string;
        readonly policyIds: ReadonlyArray<string>;
        readonly payload:
          | {
              readonly __typename: 'ContentAppealManualReviewJobPayload';
              readonly item: {
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
            }
          | {
              readonly __typename: 'ContentManualReviewJobPayload';
              readonly item: {
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
            }
          | {
              readonly __typename: 'NcmecManualReviewJobPayload';
              readonly item: {
                readonly __typename: 'UserItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'UserItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'UserSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly profileIcon?: string | null;
                    readonly backgroundImage?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
            }
          | {
              readonly __typename: 'ThreadAppealManualReviewJobPayload';
              readonly item: {
                readonly __typename: 'ThreadItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ThreadItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ThreadSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
            }
          | {
              readonly __typename: 'ThreadManualReviewJobPayload';
              readonly item: {
                readonly __typename: 'ThreadItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ThreadItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ThreadSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
            }
          | {
              readonly __typename: 'UserAppealManualReviewJobPayload';
              readonly item: {
                readonly __typename: 'UserItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'UserItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'UserSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly profileIcon?: string | null;
                    readonly backgroundImage?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
            }
          | {
              readonly __typename: 'UserManualReviewJobPayload';
              readonly item: {
                readonly __typename: 'UserItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'UserItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'UserSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly profileIcon?: string | null;
                    readonly backgroundImage?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
            };
      }>;
    }>;
  } | null;
};

export type GQLManualReviewQueuesQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLManualReviewQueuesQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly hasAppealsEnabled: boolean;
    readonly previewJobsViewEnabled: boolean;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
    readonly favoriteMRTQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
    }>;
    readonly reviewableQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
      readonly description?: string | null;
      readonly pendingJobCount: number;
      readonly oldestJobCreatedAt?: Date | string | null;
      readonly isDefaultQueue: boolean;
      readonly isAppealsQueue: boolean;
    }>;
  } | null;
};

export type GQLRoutingRulesQueryVariables = Exact<{ [key: string]: never }>;

export type GQLRoutingRulesQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly routingRules: ReadonlyArray<{
      readonly __typename: 'RoutingRule';
      readonly id: string;
      readonly name: string;
      readonly destinationQueue: {
        readonly __typename: 'ManualReviewQueue';
        readonly id: string;
      };
    }>;
  } | null;
};

export type GQLDeleteManualReviewQueueMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteManualReviewQueueMutation = {
  readonly __typename: 'Mutation';
  readonly deleteManualReviewQueue: boolean;
};

export type GQLDeleteAllJobsFromQueueMutationVariables = Exact<{
  queueId: Scalars['ID']['input'];
}>;

export type GQLDeleteAllJobsFromQueueMutation = {
  readonly __typename: 'Mutation';
  readonly deleteAllJobsFromQueue:
    | {
        readonly __typename: 'DeleteAllJobsFromQueueSuccessResponse';
        readonly _: boolean;
      }
    | {
        readonly __typename: 'DeleteAllJobsUnauthorizedError';
        readonly title: string;
      };
};

export type GQLAddFavoriteMrtQueueMutationVariables = Exact<{
  queueId: Scalars['ID']['input'];
}>;

export type GQLAddFavoriteMrtQueueMutation = {
  readonly __typename: 'Mutation';
  readonly addFavoriteMRTQueue: {
    readonly __typename: 'AddFavoriteMRTQueueSuccessResponse';
    readonly _?: boolean | null;
  };
};

export type GQLRemoveFavoriteMrtQueueMutationVariables = Exact<{
  queueId: Scalars['ID']['input'];
}>;

export type GQLRemoveFavoriteMrtQueueMutation = {
  readonly __typename: 'Mutation';
  readonly removeFavoriteMRTQueue: {
    readonly __typename: 'RemoveFavoriteMRTQueueSuccessResponse';
    readonly _?: boolean | null;
  };
};

export type GQLGetResolvedJobsForUserQueryVariables = Exact<{
  timeZone: Scalars['String']['input'];
}>;

export type GQLGetResolvedJobsForUserQuery = {
  readonly __typename: 'Query';
  readonly getResolvedJobsForUser: number;
};

export type GQLGetSkippedJobsForUserQueryVariables = Exact<{
  timeZone: Scalars['String']['input'];
}>;

export type GQLGetSkippedJobsForUserQuery = {
  readonly __typename: 'Query';
  readonly getSkippedJobsForUser: number;
};

export type GQLRecentDecisionsSummaryDataQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLRecentDecisionsSummaryDataQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly users: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
    }>;
    readonly mrtQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
    }>;
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
    }>;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
        }
    >;
  } | null;
};

type GQLManualReviewDecisionComponentFieldsAcceptAppealDecisionComponentFragment =
  {
    readonly __typename: 'AcceptAppealDecisionComponent';
    readonly appealId: string;
    readonly type: GQLManualReviewDecisionType;
  };

type GQLManualReviewDecisionComponentFieldsAutomaticCloseDecisionComponentFragment =
  {
    readonly __typename: 'AutomaticCloseDecisionComponent';
    readonly type: GQLManualReviewDecisionType;
  };

type GQLManualReviewDecisionComponentFieldsIgnoreDecisionComponentFragment = {
  readonly __typename: 'IgnoreDecisionComponent';
  readonly type: GQLManualReviewDecisionType;
};

type GQLManualReviewDecisionComponentFieldsRejectAppealDecisionComponentFragment =
  {
    readonly __typename: 'RejectAppealDecisionComponent';
    readonly appealId: string;
    readonly type: GQLManualReviewDecisionType;
  };

type GQLManualReviewDecisionComponentFieldsSubmitNcmecReportDecisionComponentFragment =
  {
    readonly __typename: 'SubmitNCMECReportDecisionComponent';
    readonly type: GQLManualReviewDecisionType;
    readonly reportedMedia: ReadonlyArray<{
      readonly __typename: 'NcmecReportedMediaDetails';
      readonly id: string;
      readonly typeId: string;
      readonly url: string;
      readonly fileAnnotations: ReadonlyArray<GQLNcmecFileAnnotation>;
      readonly industryClassification: GQLNcmecIndustryClassification;
    }>;
  };

type GQLManualReviewDecisionComponentFieldsTransformJobAndRecreateInQueueDecisionComponentFragment =
  {
    readonly __typename: 'TransformJobAndRecreateInQueueDecisionComponent';
    readonly newQueueId?: string | null;
    readonly originalQueueId?: string | null;
    readonly type: GQLManualReviewDecisionType;
  };

type GQLManualReviewDecisionComponentFieldsUserOrRelatedActionDecisionComponentFragment =
  {
    readonly __typename: 'UserOrRelatedActionDecisionComponent';
    readonly itemTypeId: string;
    readonly itemIds: ReadonlyArray<string>;
    readonly actionIds: ReadonlyArray<string>;
    readonly policyIds: ReadonlyArray<string>;
    readonly type: GQLManualReviewDecisionType;
  };

export type GQLManualReviewDecisionComponentFieldsFragment =
  | GQLManualReviewDecisionComponentFieldsAcceptAppealDecisionComponentFragment
  | GQLManualReviewDecisionComponentFieldsAutomaticCloseDecisionComponentFragment
  | GQLManualReviewDecisionComponentFieldsIgnoreDecisionComponentFragment
  | GQLManualReviewDecisionComponentFieldsRejectAppealDecisionComponentFragment
  | GQLManualReviewDecisionComponentFieldsSubmitNcmecReportDecisionComponentFragment
  | GQLManualReviewDecisionComponentFieldsTransformJobAndRecreateInQueueDecisionComponentFragment
  | GQLManualReviewDecisionComponentFieldsUserOrRelatedActionDecisionComponentFragment;

export type GQLOrgLookupDataQueryVariables = Exact<{ [key: string]: never }>;

export type GQLOrgLookupDataQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
    }>;
    readonly users: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
    }>;
    readonly mrtQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
    }>;
  } | null;
};

export type GQLGetRecentDecisionsQueryVariables = Exact<{
  input: GQLRecentDecisionsInput;
}>;

export type GQLGetRecentDecisionsQuery = {
  readonly __typename: 'Query';
  readonly getRecentDecisions: ReadonlyArray<{
    readonly __typename: 'ManualReviewDecision';
    readonly id: string;
    readonly jobId: string;
    readonly queueId: string;
    readonly reviewerId?: string | null;
    readonly itemId?: string | null;
    readonly itemTypeId?: string | null;
    readonly createdAt: Date | string;
    readonly decisionReason?: string | null;
    readonly decisions: ReadonlyArray<
      | {
          readonly __typename: 'AcceptAppealDecisionComponent';
          readonly appealId: string;
          readonly type: GQLManualReviewDecisionType;
        }
      | {
          readonly __typename: 'AutomaticCloseDecisionComponent';
          readonly type: GQLManualReviewDecisionType;
        }
      | {
          readonly __typename: 'IgnoreDecisionComponent';
          readonly type: GQLManualReviewDecisionType;
        }
      | {
          readonly __typename: 'RejectAppealDecisionComponent';
          readonly appealId: string;
          readonly type: GQLManualReviewDecisionType;
        }
      | {
          readonly __typename: 'SubmitNCMECReportDecisionComponent';
          readonly type: GQLManualReviewDecisionType;
          readonly reportedMedia: ReadonlyArray<{
            readonly __typename: 'NcmecReportedMediaDetails';
            readonly id: string;
            readonly typeId: string;
            readonly url: string;
            readonly fileAnnotations: ReadonlyArray<GQLNcmecFileAnnotation>;
            readonly industryClassification: GQLNcmecIndustryClassification;
          }>;
        }
      | {
          readonly __typename: 'TransformJobAndRecreateInQueueDecisionComponent';
          readonly newQueueId?: string | null;
          readonly originalQueueId?: string | null;
          readonly type: GQLManualReviewDecisionType;
        }
      | {
          readonly __typename: 'UserOrRelatedActionDecisionComponent';
          readonly itemTypeId: string;
          readonly itemIds: ReadonlyArray<string>;
          readonly actionIds: ReadonlyArray<string>;
          readonly policyIds: ReadonlyArray<string>;
          readonly type: GQLManualReviewDecisionType;
        }
    >;
    readonly relatedActions: ReadonlyArray<
      | {
          readonly __typename: 'AcceptAppealDecisionComponent';
          readonly appealId: string;
          readonly type: GQLManualReviewDecisionType;
        }
      | {
          readonly __typename: 'AutomaticCloseDecisionComponent';
          readonly type: GQLManualReviewDecisionType;
        }
      | {
          readonly __typename: 'IgnoreDecisionComponent';
          readonly type: GQLManualReviewDecisionType;
        }
      | {
          readonly __typename: 'RejectAppealDecisionComponent';
          readonly appealId: string;
          readonly type: GQLManualReviewDecisionType;
        }
      | {
          readonly __typename: 'SubmitNCMECReportDecisionComponent';
          readonly type: GQLManualReviewDecisionType;
          readonly reportedMedia: ReadonlyArray<{
            readonly __typename: 'NcmecReportedMediaDetails';
            readonly id: string;
            readonly typeId: string;
            readonly url: string;
            readonly fileAnnotations: ReadonlyArray<GQLNcmecFileAnnotation>;
            readonly industryClassification: GQLNcmecIndustryClassification;
          }>;
        }
      | {
          readonly __typename: 'TransformJobAndRecreateInQueueDecisionComponent';
          readonly newQueueId?: string | null;
          readonly originalQueueId?: string | null;
          readonly type: GQLManualReviewDecisionType;
        }
      | {
          readonly __typename: 'UserOrRelatedActionDecisionComponent';
          readonly itemTypeId: string;
          readonly itemIds: ReadonlyArray<string>;
          readonly actionIds: ReadonlyArray<string>;
          readonly policyIds: ReadonlyArray<string>;
          readonly type: GQLManualReviewDecisionType;
        }
    >;
  }>;
};

export type GQLGetSkipsForRecentDecisionsQueryVariables = Exact<{
  input: GQLRecentDecisionsInput;
}>;

export type GQLGetSkipsForRecentDecisionsQuery = {
  readonly __typename: 'Query';
  readonly getSkipsForRecentDecisions: ReadonlyArray<{
    readonly __typename: 'SkippedJob';
    readonly jobId: string;
    readonly userId: string;
    readonly queueId: string;
    readonly ts: Date | string;
  }>;
};

export type GQLGetDecidedJobQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLGetDecidedJobQuery = {
  readonly __typename: 'Query';
  readonly getDecidedJob?: {
    readonly __typename: 'ManualReviewJob';
    readonly id: string;
    readonly createdAt: Date | string;
    readonly policyIds: ReadonlyArray<string>;
    readonly numTimesReported?: number | null;
    readonly payload:
      | {
          readonly __typename: 'ContentAppealManualReviewJobPayload';
          readonly appealReason?: string | null;
          readonly appealId: string;
          readonly actionsTaken: ReadonlyArray<string>;
          readonly item: {
            readonly __typename: 'ContentItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ContentSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly parentId?: string | null;
                readonly threadId?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          };
          readonly additionalContentItems: ReadonlyArray<{
            readonly __typename: 'ContentItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ContentSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly parentId?: string | null;
                readonly threadId?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          }>;
          readonly appealerIdentifier?: {
            readonly __typename: 'ItemIdentifier';
            readonly id: string;
            readonly typeId: string;
          } | null;
          readonly enqueueSourceInfo?: {
            readonly __typename: 'AppealEnqueueSourceInfo';
            readonly kind: GQLJobCreationSourceOptions;
          } | null;
        }
      | {
          readonly __typename: 'ContentManualReviewJobPayload';
          readonly reportHistory: ReadonlyArray<{
            readonly __typename: 'ReportHistoryEntry';
            readonly policyId?: string | null;
            readonly reportId: string;
            readonly reason?: string | null;
            readonly reportedAt: Date | string;
            readonly reporterId?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
          }>;
          readonly item: {
            readonly __typename: 'ContentItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ContentSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly parentId?: string | null;
                readonly threadId?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          };
          readonly additionalContentItems: ReadonlyArray<{
            readonly __typename: 'ContentItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ContentSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly parentId?: string | null;
                readonly threadId?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          }>;
          readonly itemThreadContentItems?: ReadonlyArray<{
            readonly __typename: 'ContentItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ContentSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly parentId?: string | null;
                readonly threadId?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          }> | null;
          readonly reportedForReasons: ReadonlyArray<{
            readonly __typename: 'ReportedForReason';
            readonly reason?: string | null;
            readonly reporterId?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
          }>;
          readonly enqueueSourceInfo?:
            | { readonly __typename: 'AppealEnqueueSourceInfo' }
            | {
                readonly __typename: 'MrtJobEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'PostActionsEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'ReportEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
                readonly rules: ReadonlyArray<
                  | {
                      readonly __typename: 'ContentRule';
                      readonly id: string;
                      readonly name: string;
                    }
                  | {
                      readonly __typename: 'UserRule';
                      readonly id: string;
                      readonly name: string;
                    }
                >;
              }
            | null;
        }
      | {
          readonly __typename: 'NcmecManualReviewJobPayload';
          readonly item: {
            readonly __typename: 'UserItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'UserSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly createdAt?: string | null;
                readonly profileIcon?: string | null;
                readonly backgroundImage?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          };
          readonly allMediaItems: ReadonlyArray<{
            readonly __typename: 'NcmecContentItem';
            readonly isConfirmedCSAM: boolean;
            readonly isReported: boolean;
            readonly contentItem:
              | {
                  readonly __typename: 'ContentItem';
                  readonly id: string;
                  readonly submissionId: string;
                  readonly submissionTime?: Date | string | null;
                  readonly data: JsonObject;
                  readonly type: {
                    readonly __typename: 'ContentItemType';
                    readonly id: string;
                    readonly name: string;
                    readonly description?: string | null;
                    readonly version: string;
                    readonly schemaVariant: GQLItemTypeSchemaVariant;
                    readonly hiddenFields: ReadonlyArray<string>;
                    readonly schemaFieldRoles: {
                      readonly __typename: 'ContentSchemaFieldRoles';
                      readonly displayName?: string | null;
                      readonly parentId?: string | null;
                      readonly threadId?: string | null;
                      readonly createdAt?: string | null;
                      readonly creatorId?: string | null;
                      readonly isDeleted?: string | null;
                      readonly ipAddress?: string | null;
                    };
                    readonly baseFields: ReadonlyArray<{
                      readonly __typename: 'BaseField';
                      readonly name: string;
                      readonly required: boolean;
                      readonly type: GQLFieldType;
                      readonly container?: {
                        readonly __typename: 'Container';
                        readonly containerType: GQLContainerType;
                        readonly keyScalarType?: GQLScalarType | null;
                        readonly valueScalarType: GQLScalarType;
                      } | null;
                    }>;
                    readonly derivedFields: ReadonlyArray<{
                      readonly __typename: 'DerivedField';
                      readonly type: GQLFieldType;
                      readonly name: string;
                      readonly container?: {
                        readonly __typename: 'Container';
                        readonly containerType: GQLContainerType;
                        readonly keyScalarType?: GQLScalarType | null;
                        readonly valueScalarType: GQLScalarType;
                      } | null;
                      readonly spec: {
                        readonly __typename: 'DerivedFieldSpec';
                        readonly derivationType: GQLDerivedFieldDerivationType;
                        readonly source:
                          | {
                              readonly __typename: 'DerivedFieldCoopInputSource';
                              readonly coopInput: GQLCoopInput;
                            }
                          | {
                              readonly __typename: 'DerivedFieldFieldSource';
                              readonly name: string;
                              readonly contentTypeId: string;
                            }
                          | {
                              readonly __typename: 'DerivedFieldFullItemSource';
                              readonly _?: boolean | null;
                            };
                      };
                    }>;
                  };
                }
              | {
                  readonly __typename: 'ThreadItem';
                  readonly id: string;
                  readonly submissionId: string;
                  readonly submissionTime?: Date | string | null;
                  readonly data: JsonObject;
                  readonly type: {
                    readonly __typename: 'ThreadItemType';
                    readonly id: string;
                    readonly name: string;
                    readonly description?: string | null;
                    readonly version: string;
                    readonly schemaVariant: GQLItemTypeSchemaVariant;
                    readonly hiddenFields: ReadonlyArray<string>;
                    readonly schemaFieldRoles: {
                      readonly __typename: 'ThreadSchemaFieldRoles';
                      readonly displayName?: string | null;
                      readonly createdAt?: string | null;
                      readonly creatorId?: string | null;
                      readonly isDeleted?: string | null;
                      readonly ipAddress?: string | null;
                    };
                    readonly baseFields: ReadonlyArray<{
                      readonly __typename: 'BaseField';
                      readonly name: string;
                      readonly required: boolean;
                      readonly type: GQLFieldType;
                      readonly container?: {
                        readonly __typename: 'Container';
                        readonly containerType: GQLContainerType;
                        readonly keyScalarType?: GQLScalarType | null;
                        readonly valueScalarType: GQLScalarType;
                      } | null;
                    }>;
                    readonly derivedFields: ReadonlyArray<{
                      readonly __typename: 'DerivedField';
                      readonly type: GQLFieldType;
                      readonly name: string;
                      readonly container?: {
                        readonly __typename: 'Container';
                        readonly containerType: GQLContainerType;
                        readonly keyScalarType?: GQLScalarType | null;
                        readonly valueScalarType: GQLScalarType;
                      } | null;
                      readonly spec: {
                        readonly __typename: 'DerivedFieldSpec';
                        readonly derivationType: GQLDerivedFieldDerivationType;
                        readonly source:
                          | {
                              readonly __typename: 'DerivedFieldCoopInputSource';
                              readonly coopInput: GQLCoopInput;
                            }
                          | {
                              readonly __typename: 'DerivedFieldFieldSource';
                              readonly name: string;
                              readonly contentTypeId: string;
                            }
                          | {
                              readonly __typename: 'DerivedFieldFullItemSource';
                              readonly _?: boolean | null;
                            };
                      };
                    }>;
                  };
                }
              | {
                  readonly __typename: 'UserItem';
                  readonly id: string;
                  readonly submissionId: string;
                  readonly submissionTime?: Date | string | null;
                  readonly data: JsonObject;
                  readonly type: {
                    readonly __typename: 'UserItemType';
                    readonly id: string;
                    readonly name: string;
                    readonly description?: string | null;
                    readonly version: string;
                    readonly schemaVariant: GQLItemTypeSchemaVariant;
                    readonly hiddenFields: ReadonlyArray<string>;
                    readonly schemaFieldRoles: {
                      readonly __typename: 'UserSchemaFieldRoles';
                      readonly displayName?: string | null;
                      readonly createdAt?: string | null;
                      readonly profileIcon?: string | null;
                      readonly backgroundImage?: string | null;
                      readonly isDeleted?: string | null;
                      readonly ipAddress?: string | null;
                    };
                    readonly baseFields: ReadonlyArray<{
                      readonly __typename: 'BaseField';
                      readonly name: string;
                      readonly required: boolean;
                      readonly type: GQLFieldType;
                      readonly container?: {
                        readonly __typename: 'Container';
                        readonly containerType: GQLContainerType;
                        readonly keyScalarType?: GQLScalarType | null;
                        readonly valueScalarType: GQLScalarType;
                      } | null;
                    }>;
                    readonly derivedFields: ReadonlyArray<{
                      readonly __typename: 'DerivedField';
                      readonly type: GQLFieldType;
                      readonly name: string;
                      readonly container?: {
                        readonly __typename: 'Container';
                        readonly containerType: GQLContainerType;
                        readonly keyScalarType?: GQLScalarType | null;
                        readonly valueScalarType: GQLScalarType;
                      } | null;
                      readonly spec: {
                        readonly __typename: 'DerivedFieldSpec';
                        readonly derivationType: GQLDerivedFieldDerivationType;
                        readonly source:
                          | {
                              readonly __typename: 'DerivedFieldCoopInputSource';
                              readonly coopInput: GQLCoopInput;
                            }
                          | {
                              readonly __typename: 'DerivedFieldFieldSource';
                              readonly name: string;
                              readonly contentTypeId: string;
                            }
                          | {
                              readonly __typename: 'DerivedFieldFullItemSource';
                              readonly _?: boolean | null;
                            };
                      };
                    }>;
                  };
                };
          }>;
          readonly enqueueSourceInfo?:
            | { readonly __typename: 'AppealEnqueueSourceInfo' }
            | {
                readonly __typename: 'MrtJobEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'PostActionsEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'ReportEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
                readonly rules: ReadonlyArray<
                  | {
                      readonly __typename: 'ContentRule';
                      readonly id: string;
                      readonly name: string;
                    }
                  | {
                      readonly __typename: 'UserRule';
                      readonly id: string;
                      readonly name: string;
                    }
                >;
              }
            | null;
        }
      | {
          readonly __typename: 'ThreadAppealManualReviewJobPayload';
          readonly appealId: string;
          readonly appealReason?: string | null;
          readonly actionsTaken: ReadonlyArray<string>;
          readonly item: {
            readonly __typename: 'ThreadItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ThreadSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          };
          readonly appealerIdentifier?: {
            readonly __typename: 'ItemIdentifier';
            readonly id: string;
            readonly typeId: string;
          } | null;
          readonly enqueueSourceInfo?: {
            readonly __typename: 'AppealEnqueueSourceInfo';
            readonly kind: GQLJobCreationSourceOptions;
          } | null;
        }
      | {
          readonly __typename: 'ThreadManualReviewJobPayload';
          readonly reportHistory: ReadonlyArray<{
            readonly __typename: 'ReportHistoryEntry';
            readonly reportId: string;
            readonly policyId?: string | null;
            readonly reason?: string | null;
            readonly reportedAt: Date | string;
            readonly reporterId?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
          }>;
          readonly item: {
            readonly __typename: 'ThreadItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ThreadSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          };
          readonly reportedForReasons: ReadonlyArray<{
            readonly __typename: 'ReportedForReason';
            readonly reason?: string | null;
            readonly reporterId?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
          }>;
          readonly enqueueSourceInfo?:
            | { readonly __typename: 'AppealEnqueueSourceInfo' }
            | {
                readonly __typename: 'MrtJobEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'PostActionsEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'ReportEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
                readonly rules: ReadonlyArray<
                  | {
                      readonly __typename: 'ContentRule';
                      readonly id: string;
                      readonly name: string;
                    }
                  | {
                      readonly __typename: 'UserRule';
                      readonly id: string;
                      readonly name: string;
                    }
                >;
              }
            | null;
        }
      | {
          readonly __typename: 'UserAppealManualReviewJobPayload';
          readonly appealReason?: string | null;
          readonly appealId: string;
          readonly actionsTaken: ReadonlyArray<string>;
          readonly item: {
            readonly __typename: 'UserItem';
            readonly userStrikeCount: number;
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'UserSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly createdAt?: string | null;
                readonly profileIcon?: string | null;
                readonly backgroundImage?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          };
          readonly additionalContentItems: ReadonlyArray<{
            readonly __typename: 'ContentItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ContentSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly parentId?: string | null;
                readonly threadId?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          }>;
          readonly appealerIdentifier?: {
            readonly __typename: 'ItemIdentifier';
            readonly id: string;
            readonly typeId: string;
          } | null;
          readonly enqueueSourceInfo?: {
            readonly __typename: 'AppealEnqueueSourceInfo';
            readonly kind: GQLJobCreationSourceOptions;
          } | null;
        }
      | {
          readonly __typename: 'UserManualReviewJobPayload';
          readonly reportHistory: ReadonlyArray<{
            readonly __typename: 'ReportHistoryEntry';
            readonly reportId: string;
            readonly policyId?: string | null;
            readonly reason?: string | null;
            readonly reportedAt: Date | string;
            readonly reporterId?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
          }>;
          readonly item: {
            readonly __typename: 'UserItem';
            readonly userStrikeCount: number;
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'UserSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly createdAt?: string | null;
                readonly profileIcon?: string | null;
                readonly backgroundImage?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          };
          readonly itemThreadContentItems?: ReadonlyArray<{
            readonly __typename: 'ContentItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ContentSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly parentId?: string | null;
                readonly threadId?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          }> | null;
          readonly reportedItems?: ReadonlyArray<{
            readonly __typename: 'ItemIdentifier';
            readonly id: string;
            readonly typeId: string;
          } | null> | null;
          readonly additionalContentItems: ReadonlyArray<{
            readonly __typename: 'ContentItem';
            readonly id: string;
            readonly submissionId: string;
            readonly submissionTime?: Date | string | null;
            readonly data: JsonObject;
            readonly type: {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ContentSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly parentId?: string | null;
                readonly threadId?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            };
          }>;
          readonly reportedForReasons: ReadonlyArray<{
            readonly __typename: 'ReportedForReason';
            readonly reason?: string | null;
            readonly reporterId?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
          }>;
          readonly enqueueSourceInfo?:
            | { readonly __typename: 'AppealEnqueueSourceInfo' }
            | {
                readonly __typename: 'MrtJobEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'PostActionsEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'ReportEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              }
            | {
                readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
                readonly rules: ReadonlyArray<
                  | {
                      readonly __typename: 'ContentRule';
                      readonly id: string;
                      readonly name: string;
                    }
                  | {
                      readonly __typename: 'UserRule';
                      readonly id: string;
                      readonly name: string;
                    }
                >;
              }
            | null;
        };
  } | null;
};

export type GQLManualReviewSafetySettingsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLManualReviewSafetySettingsQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly interfacePreferences: {
      readonly __typename: 'UserInterfacePreferences';
      readonly moderatorSafetyMuteVideo: boolean;
      readonly moderatorSafetyGrayscale: boolean;
      readonly moderatorSafetyBlurLevel: number;
      readonly moderatorSafetySepia: boolean;
    };
  } | null;
};

export type GQLSetModeratorSafetySettingsMutationVariables = Exact<{
  moderatorSafetySettings: GQLModeratorSafetySettingsInput;
}>;

export type GQLSetModeratorSafetySettingsMutation = {
  readonly __typename: 'Mutation';
  readonly setModeratorSafetySettings?: {
    readonly __typename: 'SetModeratorSafetySettingsSuccessResponse';
    readonly _?: boolean | null;
  } | null;
};

export type GQLInvalidateReportsFromReporterMutationVariables = Exact<{
  input: GQLInvalidateReportsFromReporterInput;
}>;

export type GQLInvalidateReportsFromReporterMutation = {
  readonly __typename: 'Mutation';
  readonly invalidateReportsFromReporter: {
    readonly __typename: 'InvalidateReportsFromReporterSuccessResponse';
    readonly queuesScanned: number;
    readonly jobsScanned: number;
    readonly jobsScrubbed: number;
    readonly jobsDeleted: number;
    readonly reportsRemoved: number;
    readonly truncated: boolean;
  };
};

export type GQLManualReviewJobInfoQueryVariables = Exact<{
  jobIds?: InputMaybe<
    ReadonlyArray<Scalars['ID']['input']> | Scalars['ID']['input']
  >;
}>;

export type GQLManualReviewJobInfoQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly hasNCMECReportingEnabled: boolean;
    readonly requiresPolicyForDecisionsInMrt: boolean;
    readonly requiresDecisionReasonInMrt: boolean;
    readonly requiresDecisionReasonOnIgnoreInMrt: boolean;
    readonly allowMultiplePoliciesPerAction: boolean;
    readonly hideSkipButtonForNonAdmins: boolean;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
      readonly parentId?: string | null;
      readonly policyText?: string | null;
      readonly enforcementGuidelines?: string | null;
    }>;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ContentSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly parentId?: string | null;
            readonly threadId?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ThreadSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
            readonly backgroundImage?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
    >;
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
          readonly penalty: GQLUserPenaltySeverity;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
          readonly parameters: ReadonlyArray<{
            readonly __typename: 'ActionParameter';
            readonly name: string;
            readonly displayName: string;
            readonly description?: string | null;
            readonly type: GQLActionParameterType;
            readonly required: boolean;
            readonly min?: number | null;
            readonly max?: number | null;
            readonly maxLength?: number | null;
            readonly defaultValue?: JsonValue | null;
            readonly options?: ReadonlyArray<{
              readonly __typename: 'ActionParameterOption';
              readonly value: string;
              readonly label: string;
            }> | null;
          }>;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly penalty: GQLUserPenaltySeverity;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly penalty: GQLUserPenaltySeverity;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
          readonly penalty: GQLUserPenaltySeverity;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
    >;
    readonly mrtQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
      readonly isAppealsQueue: boolean;
      readonly autoCloseJobs: boolean;
    }>;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
    readonly reviewableQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
      readonly pendingJobCount: number;
      readonly hiddenActionIds: ReadonlyArray<string>;
      readonly jobs: ReadonlyArray<{
        readonly __typename: 'ManualReviewJob';
        readonly id: string;
        readonly createdAt: Date | string;
        readonly policyIds: ReadonlyArray<string>;
        readonly numTimesReported?: number | null;
        readonly payload:
          | {
              readonly __typename: 'ContentAppealManualReviewJobPayload';
              readonly appealReason?: string | null;
              readonly appealId: string;
              readonly actionsTaken: ReadonlyArray<string>;
              readonly item: {
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
              readonly additionalContentItems: ReadonlyArray<{
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              }>;
              readonly appealerIdentifier?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
              readonly enqueueSourceInfo?: {
                readonly __typename: 'AppealEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              } | null;
            }
          | {
              readonly __typename: 'ContentManualReviewJobPayload';
              readonly reportHistory: ReadonlyArray<{
                readonly __typename: 'ReportHistoryEntry';
                readonly policyId?: string | null;
                readonly reportId: string;
                readonly reason?: string | null;
                readonly reportedAt: Date | string;
                readonly reporterId?: {
                  readonly __typename: 'ItemIdentifier';
                  readonly id: string;
                  readonly typeId: string;
                } | null;
              }>;
              readonly item: {
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
              readonly additionalContentItems: ReadonlyArray<{
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              }>;
              readonly itemThreadContentItems?: ReadonlyArray<{
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              }> | null;
              readonly reportedForReasons: ReadonlyArray<{
                readonly __typename: 'ReportedForReason';
                readonly reason?: string | null;
                readonly reporterId?: {
                  readonly __typename: 'ItemIdentifier';
                  readonly id: string;
                  readonly typeId: string;
                } | null;
              }>;
              readonly enqueueSourceInfo?:
                | { readonly __typename: 'AppealEnqueueSourceInfo' }
                | {
                    readonly __typename: 'MrtJobEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'PostActionsEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'ReportEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                    readonly rules: ReadonlyArray<
                      | {
                          readonly __typename: 'ContentRule';
                          readonly id: string;
                          readonly name: string;
                        }
                      | {
                          readonly __typename: 'UserRule';
                          readonly id: string;
                          readonly name: string;
                        }
                    >;
                  }
                | null;
            }
          | {
              readonly __typename: 'NcmecManualReviewJobPayload';
              readonly item: {
                readonly __typename: 'UserItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'UserItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'UserSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly profileIcon?: string | null;
                    readonly backgroundImage?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
              readonly allMediaItems: ReadonlyArray<{
                readonly __typename: 'NcmecContentItem';
                readonly isConfirmedCSAM: boolean;
                readonly isReported: boolean;
                readonly contentItem:
                  | {
                      readonly __typename: 'ContentItem';
                      readonly id: string;
                      readonly submissionId: string;
                      readonly submissionTime?: Date | string | null;
                      readonly data: JsonObject;
                      readonly type: {
                        readonly __typename: 'ContentItemType';
                        readonly id: string;
                        readonly name: string;
                        readonly description?: string | null;
                        readonly version: string;
                        readonly schemaVariant: GQLItemTypeSchemaVariant;
                        readonly hiddenFields: ReadonlyArray<string>;
                        readonly schemaFieldRoles: {
                          readonly __typename: 'ContentSchemaFieldRoles';
                          readonly displayName?: string | null;
                          readonly parentId?: string | null;
                          readonly threadId?: string | null;
                          readonly createdAt?: string | null;
                          readonly creatorId?: string | null;
                          readonly isDeleted?: string | null;
                          readonly ipAddress?: string | null;
                        };
                        readonly baseFields: ReadonlyArray<{
                          readonly __typename: 'BaseField';
                          readonly name: string;
                          readonly required: boolean;
                          readonly type: GQLFieldType;
                          readonly container?: {
                            readonly __typename: 'Container';
                            readonly containerType: GQLContainerType;
                            readonly keyScalarType?: GQLScalarType | null;
                            readonly valueScalarType: GQLScalarType;
                          } | null;
                        }>;
                        readonly derivedFields: ReadonlyArray<{
                          readonly __typename: 'DerivedField';
                          readonly type: GQLFieldType;
                          readonly name: string;
                          readonly container?: {
                            readonly __typename: 'Container';
                            readonly containerType: GQLContainerType;
                            readonly keyScalarType?: GQLScalarType | null;
                            readonly valueScalarType: GQLScalarType;
                          } | null;
                          readonly spec: {
                            readonly __typename: 'DerivedFieldSpec';
                            readonly derivationType: GQLDerivedFieldDerivationType;
                            readonly source:
                              | {
                                  readonly __typename: 'DerivedFieldCoopInputSource';
                                  readonly coopInput: GQLCoopInput;
                                }
                              | {
                                  readonly __typename: 'DerivedFieldFieldSource';
                                  readonly name: string;
                                  readonly contentTypeId: string;
                                }
                              | {
                                  readonly __typename: 'DerivedFieldFullItemSource';
                                  readonly _?: boolean | null;
                                };
                          };
                        }>;
                      };
                    }
                  | {
                      readonly __typename: 'ThreadItem';
                      readonly id: string;
                      readonly submissionId: string;
                      readonly submissionTime?: Date | string | null;
                      readonly data: JsonObject;
                      readonly type: {
                        readonly __typename: 'ThreadItemType';
                        readonly id: string;
                        readonly name: string;
                        readonly description?: string | null;
                        readonly version: string;
                        readonly schemaVariant: GQLItemTypeSchemaVariant;
                        readonly hiddenFields: ReadonlyArray<string>;
                        readonly schemaFieldRoles: {
                          readonly __typename: 'ThreadSchemaFieldRoles';
                          readonly displayName?: string | null;
                          readonly createdAt?: string | null;
                          readonly creatorId?: string | null;
                          readonly isDeleted?: string | null;
                          readonly ipAddress?: string | null;
                        };
                        readonly baseFields: ReadonlyArray<{
                          readonly __typename: 'BaseField';
                          readonly name: string;
                          readonly required: boolean;
                          readonly type: GQLFieldType;
                          readonly container?: {
                            readonly __typename: 'Container';
                            readonly containerType: GQLContainerType;
                            readonly keyScalarType?: GQLScalarType | null;
                            readonly valueScalarType: GQLScalarType;
                          } | null;
                        }>;
                        readonly derivedFields: ReadonlyArray<{
                          readonly __typename: 'DerivedField';
                          readonly type: GQLFieldType;
                          readonly name: string;
                          readonly container?: {
                            readonly __typename: 'Container';
                            readonly containerType: GQLContainerType;
                            readonly keyScalarType?: GQLScalarType | null;
                            readonly valueScalarType: GQLScalarType;
                          } | null;
                          readonly spec: {
                            readonly __typename: 'DerivedFieldSpec';
                            readonly derivationType: GQLDerivedFieldDerivationType;
                            readonly source:
                              | {
                                  readonly __typename: 'DerivedFieldCoopInputSource';
                                  readonly coopInput: GQLCoopInput;
                                }
                              | {
                                  readonly __typename: 'DerivedFieldFieldSource';
                                  readonly name: string;
                                  readonly contentTypeId: string;
                                }
                              | {
                                  readonly __typename: 'DerivedFieldFullItemSource';
                                  readonly _?: boolean | null;
                                };
                          };
                        }>;
                      };
                    }
                  | {
                      readonly __typename: 'UserItem';
                      readonly id: string;
                      readonly submissionId: string;
                      readonly submissionTime?: Date | string | null;
                      readonly data: JsonObject;
                      readonly type: {
                        readonly __typename: 'UserItemType';
                        readonly id: string;
                        readonly name: string;
                        readonly description?: string | null;
                        readonly version: string;
                        readonly schemaVariant: GQLItemTypeSchemaVariant;
                        readonly hiddenFields: ReadonlyArray<string>;
                        readonly schemaFieldRoles: {
                          readonly __typename: 'UserSchemaFieldRoles';
                          readonly displayName?: string | null;
                          readonly createdAt?: string | null;
                          readonly profileIcon?: string | null;
                          readonly backgroundImage?: string | null;
                          readonly isDeleted?: string | null;
                          readonly ipAddress?: string | null;
                        };
                        readonly baseFields: ReadonlyArray<{
                          readonly __typename: 'BaseField';
                          readonly name: string;
                          readonly required: boolean;
                          readonly type: GQLFieldType;
                          readonly container?: {
                            readonly __typename: 'Container';
                            readonly containerType: GQLContainerType;
                            readonly keyScalarType?: GQLScalarType | null;
                            readonly valueScalarType: GQLScalarType;
                          } | null;
                        }>;
                        readonly derivedFields: ReadonlyArray<{
                          readonly __typename: 'DerivedField';
                          readonly type: GQLFieldType;
                          readonly name: string;
                          readonly container?: {
                            readonly __typename: 'Container';
                            readonly containerType: GQLContainerType;
                            readonly keyScalarType?: GQLScalarType | null;
                            readonly valueScalarType: GQLScalarType;
                          } | null;
                          readonly spec: {
                            readonly __typename: 'DerivedFieldSpec';
                            readonly derivationType: GQLDerivedFieldDerivationType;
                            readonly source:
                              | {
                                  readonly __typename: 'DerivedFieldCoopInputSource';
                                  readonly coopInput: GQLCoopInput;
                                }
                              | {
                                  readonly __typename: 'DerivedFieldFieldSource';
                                  readonly name: string;
                                  readonly contentTypeId: string;
                                }
                              | {
                                  readonly __typename: 'DerivedFieldFullItemSource';
                                  readonly _?: boolean | null;
                                };
                          };
                        }>;
                      };
                    };
              }>;
              readonly enqueueSourceInfo?:
                | { readonly __typename: 'AppealEnqueueSourceInfo' }
                | {
                    readonly __typename: 'MrtJobEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'PostActionsEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'ReportEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                    readonly rules: ReadonlyArray<
                      | {
                          readonly __typename: 'ContentRule';
                          readonly id: string;
                          readonly name: string;
                        }
                      | {
                          readonly __typename: 'UserRule';
                          readonly id: string;
                          readonly name: string;
                        }
                    >;
                  }
                | null;
            }
          | {
              readonly __typename: 'ThreadAppealManualReviewJobPayload';
              readonly appealId: string;
              readonly appealReason?: string | null;
              readonly actionsTaken: ReadonlyArray<string>;
              readonly item: {
                readonly __typename: 'ThreadItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ThreadItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ThreadSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
              readonly appealerIdentifier?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
              readonly enqueueSourceInfo?: {
                readonly __typename: 'AppealEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              } | null;
            }
          | {
              readonly __typename: 'ThreadManualReviewJobPayload';
              readonly reportHistory: ReadonlyArray<{
                readonly __typename: 'ReportHistoryEntry';
                readonly reportId: string;
                readonly policyId?: string | null;
                readonly reason?: string | null;
                readonly reportedAt: Date | string;
                readonly reporterId?: {
                  readonly __typename: 'ItemIdentifier';
                  readonly id: string;
                  readonly typeId: string;
                } | null;
              }>;
              readonly item: {
                readonly __typename: 'ThreadItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ThreadItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ThreadSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
              readonly reportedForReasons: ReadonlyArray<{
                readonly __typename: 'ReportedForReason';
                readonly reason?: string | null;
                readonly reporterId?: {
                  readonly __typename: 'ItemIdentifier';
                  readonly id: string;
                  readonly typeId: string;
                } | null;
              }>;
              readonly enqueueSourceInfo?:
                | { readonly __typename: 'AppealEnqueueSourceInfo' }
                | {
                    readonly __typename: 'MrtJobEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'PostActionsEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'ReportEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                    readonly rules: ReadonlyArray<
                      | {
                          readonly __typename: 'ContentRule';
                          readonly id: string;
                          readonly name: string;
                        }
                      | {
                          readonly __typename: 'UserRule';
                          readonly id: string;
                          readonly name: string;
                        }
                    >;
                  }
                | null;
            }
          | {
              readonly __typename: 'UserAppealManualReviewJobPayload';
              readonly appealReason?: string | null;
              readonly appealId: string;
              readonly actionsTaken: ReadonlyArray<string>;
              readonly item: {
                readonly __typename: 'UserItem';
                readonly userStrikeCount: number;
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'UserItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'UserSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly profileIcon?: string | null;
                    readonly backgroundImage?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
              readonly additionalContentItems: ReadonlyArray<{
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              }>;
              readonly appealerIdentifier?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
              readonly enqueueSourceInfo?: {
                readonly __typename: 'AppealEnqueueSourceInfo';
                readonly kind: GQLJobCreationSourceOptions;
              } | null;
            }
          | {
              readonly __typename: 'UserManualReviewJobPayload';
              readonly reportHistory: ReadonlyArray<{
                readonly __typename: 'ReportHistoryEntry';
                readonly reportId: string;
                readonly policyId?: string | null;
                readonly reason?: string | null;
                readonly reportedAt: Date | string;
                readonly reporterId?: {
                  readonly __typename: 'ItemIdentifier';
                  readonly id: string;
                  readonly typeId: string;
                } | null;
              }>;
              readonly item: {
                readonly __typename: 'UserItem';
                readonly userStrikeCount: number;
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'UserItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'UserSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly profileIcon?: string | null;
                    readonly backgroundImage?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
              readonly itemThreadContentItems?: ReadonlyArray<{
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              }> | null;
              readonly reportedItems?: ReadonlyArray<{
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null> | null;
              readonly additionalContentItems: ReadonlyArray<{
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              }>;
              readonly reportedForReasons: ReadonlyArray<{
                readonly __typename: 'ReportedForReason';
                readonly reason?: string | null;
                readonly reporterId?: {
                  readonly __typename: 'ItemIdentifier';
                  readonly id: string;
                  readonly typeId: string;
                } | null;
              }>;
              readonly enqueueSourceInfo?:
                | { readonly __typename: 'AppealEnqueueSourceInfo' }
                | {
                    readonly __typename: 'MrtJobEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'PostActionsEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'ReportEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                  }
                | {
                    readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                    readonly kind: GQLJobCreationSourceOptions;
                    readonly rules: ReadonlyArray<
                      | {
                          readonly __typename: 'ContentRule';
                          readonly id: string;
                          readonly name: string;
                        }
                      | {
                          readonly __typename: 'UserRule';
                          readonly id: string;
                          readonly name: string;
                        }
                    >;
                  }
                | null;
            };
      }>;
    }>;
  } | null;
};

export type GQLDequeueManualReviewJobMutationVariables = Exact<{
  queueId: Scalars['ID']['input'];
}>;

export type GQLDequeueManualReviewJobMutation = {
  readonly __typename: 'Mutation';
  readonly dequeueManualReviewJob?: {
    readonly __typename: 'DequeueManualReviewJobSuccessResponse';
    readonly lockToken: string;
    readonly numPendingJobs: number;
    readonly job: {
      readonly __typename: 'ManualReviewJob';
      readonly id: string;
      readonly createdAt: Date | string;
      readonly policyIds: ReadonlyArray<string>;
      readonly numTimesReported?: number | null;
      readonly payload:
        | {
            readonly __typename: 'ContentAppealManualReviewJobPayload';
            readonly appealReason?: string | null;
            readonly appealId: string;
            readonly actionsTaken: ReadonlyArray<string>;
            readonly item: {
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly additionalContentItems: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }>;
            readonly appealerIdentifier?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
            readonly enqueueSourceInfo?: {
              readonly __typename: 'AppealEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            } | null;
          }
        | {
            readonly __typename: 'ContentManualReviewJobPayload';
            readonly reportHistory: ReadonlyArray<{
              readonly __typename: 'ReportHistoryEntry';
              readonly policyId?: string | null;
              readonly reportId: string;
              readonly reason?: string | null;
              readonly reportedAt: Date | string;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly item: {
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly additionalContentItems: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }>;
            readonly itemThreadContentItems?: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }> | null;
            readonly reportedForReasons: ReadonlyArray<{
              readonly __typename: 'ReportedForReason';
              readonly reason?: string | null;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly enqueueSourceInfo?:
              | { readonly __typename: 'AppealEnqueueSourceInfo' }
              | {
                  readonly __typename: 'MrtJobEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'PostActionsEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'ReportEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                  readonly rules: ReadonlyArray<
                    | {
                        readonly __typename: 'ContentRule';
                        readonly id: string;
                        readonly name: string;
                      }
                    | {
                        readonly __typename: 'UserRule';
                        readonly id: string;
                        readonly name: string;
                      }
                  >;
                }
              | null;
          }
        | {
            readonly __typename: 'NcmecManualReviewJobPayload';
            readonly item: {
              readonly __typename: 'UserItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'UserSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly profileIcon?: string | null;
                  readonly backgroundImage?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly allMediaItems: ReadonlyArray<{
              readonly __typename: 'NcmecContentItem';
              readonly isConfirmedCSAM: boolean;
              readonly isReported: boolean;
              readonly contentItem:
                | {
                    readonly __typename: 'ContentItem';
                    readonly id: string;
                    readonly submissionId: string;
                    readonly submissionTime?: Date | string | null;
                    readonly data: JsonObject;
                    readonly type: {
                      readonly __typename: 'ContentItemType';
                      readonly id: string;
                      readonly name: string;
                      readonly description?: string | null;
                      readonly version: string;
                      readonly schemaVariant: GQLItemTypeSchemaVariant;
                      readonly hiddenFields: ReadonlyArray<string>;
                      readonly schemaFieldRoles: {
                        readonly __typename: 'ContentSchemaFieldRoles';
                        readonly displayName?: string | null;
                        readonly parentId?: string | null;
                        readonly threadId?: string | null;
                        readonly createdAt?: string | null;
                        readonly creatorId?: string | null;
                        readonly isDeleted?: string | null;
                        readonly ipAddress?: string | null;
                      };
                      readonly baseFields: ReadonlyArray<{
                        readonly __typename: 'BaseField';
                        readonly name: string;
                        readonly required: boolean;
                        readonly type: GQLFieldType;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                      }>;
                      readonly derivedFields: ReadonlyArray<{
                        readonly __typename: 'DerivedField';
                        readonly type: GQLFieldType;
                        readonly name: string;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                        readonly spec: {
                          readonly __typename: 'DerivedFieldSpec';
                          readonly derivationType: GQLDerivedFieldDerivationType;
                          readonly source:
                            | {
                                readonly __typename: 'DerivedFieldCoopInputSource';
                                readonly coopInput: GQLCoopInput;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFieldSource';
                                readonly name: string;
                                readonly contentTypeId: string;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFullItemSource';
                                readonly _?: boolean | null;
                              };
                        };
                      }>;
                    };
                  }
                | {
                    readonly __typename: 'ThreadItem';
                    readonly id: string;
                    readonly submissionId: string;
                    readonly submissionTime?: Date | string | null;
                    readonly data: JsonObject;
                    readonly type: {
                      readonly __typename: 'ThreadItemType';
                      readonly id: string;
                      readonly name: string;
                      readonly description?: string | null;
                      readonly version: string;
                      readonly schemaVariant: GQLItemTypeSchemaVariant;
                      readonly hiddenFields: ReadonlyArray<string>;
                      readonly schemaFieldRoles: {
                        readonly __typename: 'ThreadSchemaFieldRoles';
                        readonly displayName?: string | null;
                        readonly createdAt?: string | null;
                        readonly creatorId?: string | null;
                        readonly isDeleted?: string | null;
                        readonly ipAddress?: string | null;
                      };
                      readonly baseFields: ReadonlyArray<{
                        readonly __typename: 'BaseField';
                        readonly name: string;
                        readonly required: boolean;
                        readonly type: GQLFieldType;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                      }>;
                      readonly derivedFields: ReadonlyArray<{
                        readonly __typename: 'DerivedField';
                        readonly type: GQLFieldType;
                        readonly name: string;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                        readonly spec: {
                          readonly __typename: 'DerivedFieldSpec';
                          readonly derivationType: GQLDerivedFieldDerivationType;
                          readonly source:
                            | {
                                readonly __typename: 'DerivedFieldCoopInputSource';
                                readonly coopInput: GQLCoopInput;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFieldSource';
                                readonly name: string;
                                readonly contentTypeId: string;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFullItemSource';
                                readonly _?: boolean | null;
                              };
                        };
                      }>;
                    };
                  }
                | {
                    readonly __typename: 'UserItem';
                    readonly id: string;
                    readonly submissionId: string;
                    readonly submissionTime?: Date | string | null;
                    readonly data: JsonObject;
                    readonly type: {
                      readonly __typename: 'UserItemType';
                      readonly id: string;
                      readonly name: string;
                      readonly description?: string | null;
                      readonly version: string;
                      readonly schemaVariant: GQLItemTypeSchemaVariant;
                      readonly hiddenFields: ReadonlyArray<string>;
                      readonly schemaFieldRoles: {
                        readonly __typename: 'UserSchemaFieldRoles';
                        readonly displayName?: string | null;
                        readonly createdAt?: string | null;
                        readonly profileIcon?: string | null;
                        readonly backgroundImage?: string | null;
                        readonly isDeleted?: string | null;
                        readonly ipAddress?: string | null;
                      };
                      readonly baseFields: ReadonlyArray<{
                        readonly __typename: 'BaseField';
                        readonly name: string;
                        readonly required: boolean;
                        readonly type: GQLFieldType;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                      }>;
                      readonly derivedFields: ReadonlyArray<{
                        readonly __typename: 'DerivedField';
                        readonly type: GQLFieldType;
                        readonly name: string;
                        readonly container?: {
                          readonly __typename: 'Container';
                          readonly containerType: GQLContainerType;
                          readonly keyScalarType?: GQLScalarType | null;
                          readonly valueScalarType: GQLScalarType;
                        } | null;
                        readonly spec: {
                          readonly __typename: 'DerivedFieldSpec';
                          readonly derivationType: GQLDerivedFieldDerivationType;
                          readonly source:
                            | {
                                readonly __typename: 'DerivedFieldCoopInputSource';
                                readonly coopInput: GQLCoopInput;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFieldSource';
                                readonly name: string;
                                readonly contentTypeId: string;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFullItemSource';
                                readonly _?: boolean | null;
                              };
                        };
                      }>;
                    };
                  };
            }>;
            readonly enqueueSourceInfo?:
              | { readonly __typename: 'AppealEnqueueSourceInfo' }
              | {
                  readonly __typename: 'MrtJobEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'PostActionsEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'ReportEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                  readonly rules: ReadonlyArray<
                    | {
                        readonly __typename: 'ContentRule';
                        readonly id: string;
                        readonly name: string;
                      }
                    | {
                        readonly __typename: 'UserRule';
                        readonly id: string;
                        readonly name: string;
                      }
                  >;
                }
              | null;
          }
        | {
            readonly __typename: 'ThreadAppealManualReviewJobPayload';
            readonly appealId: string;
            readonly appealReason?: string | null;
            readonly actionsTaken: ReadonlyArray<string>;
            readonly item: {
              readonly __typename: 'ThreadItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ThreadSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly appealerIdentifier?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
            readonly enqueueSourceInfo?: {
              readonly __typename: 'AppealEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            } | null;
          }
        | {
            readonly __typename: 'ThreadManualReviewJobPayload';
            readonly reportHistory: ReadonlyArray<{
              readonly __typename: 'ReportHistoryEntry';
              readonly reportId: string;
              readonly policyId?: string | null;
              readonly reason?: string | null;
              readonly reportedAt: Date | string;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly item: {
              readonly __typename: 'ThreadItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ThreadSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly reportedForReasons: ReadonlyArray<{
              readonly __typename: 'ReportedForReason';
              readonly reason?: string | null;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly enqueueSourceInfo?:
              | { readonly __typename: 'AppealEnqueueSourceInfo' }
              | {
                  readonly __typename: 'MrtJobEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'PostActionsEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'ReportEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                  readonly rules: ReadonlyArray<
                    | {
                        readonly __typename: 'ContentRule';
                        readonly id: string;
                        readonly name: string;
                      }
                    | {
                        readonly __typename: 'UserRule';
                        readonly id: string;
                        readonly name: string;
                      }
                  >;
                }
              | null;
          }
        | {
            readonly __typename: 'UserAppealManualReviewJobPayload';
            readonly appealReason?: string | null;
            readonly appealId: string;
            readonly actionsTaken: ReadonlyArray<string>;
            readonly item: {
              readonly __typename: 'UserItem';
              readonly userStrikeCount: number;
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'UserSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly profileIcon?: string | null;
                  readonly backgroundImage?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly additionalContentItems: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }>;
            readonly appealerIdentifier?: {
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null;
            readonly enqueueSourceInfo?: {
              readonly __typename: 'AppealEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            } | null;
          }
        | {
            readonly __typename: 'UserManualReviewJobPayload';
            readonly reportHistory: ReadonlyArray<{
              readonly __typename: 'ReportHistoryEntry';
              readonly reportId: string;
              readonly policyId?: string | null;
              readonly reason?: string | null;
              readonly reportedAt: Date | string;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly item: {
              readonly __typename: 'UserItem';
              readonly userStrikeCount: number;
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'UserSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly profileIcon?: string | null;
                  readonly backgroundImage?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            };
            readonly itemThreadContentItems?: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }> | null;
            readonly reportedItems?: ReadonlyArray<{
              readonly __typename: 'ItemIdentifier';
              readonly id: string;
              readonly typeId: string;
            } | null> | null;
            readonly additionalContentItems: ReadonlyArray<{
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }>;
            readonly reportedForReasons: ReadonlyArray<{
              readonly __typename: 'ReportedForReason';
              readonly reason?: string | null;
              readonly reporterId?: {
                readonly __typename: 'ItemIdentifier';
                readonly id: string;
                readonly typeId: string;
              } | null;
            }>;
            readonly enqueueSourceInfo?:
              | { readonly __typename: 'AppealEnqueueSourceInfo' }
              | {
                  readonly __typename: 'MrtJobEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'PostActionsEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'ReportEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                }
              | {
                  readonly __typename: 'RuleExecutionEnqueueSourceInfo';
                  readonly kind: GQLJobCreationSourceOptions;
                  readonly rules: ReadonlyArray<
                    | {
                        readonly __typename: 'ContentRule';
                        readonly id: string;
                        readonly name: string;
                      }
                    | {
                        readonly __typename: 'UserRule';
                        readonly id: string;
                        readonly name: string;
                      }
                  >;
                }
              | null;
          };
    };
  } | null;
};

export type GQLSubmitManualReviewDecisionMutationVariables = Exact<{
  input: GQLSubmitDecisionInput;
}>;

export type GQLSubmitManualReviewDecisionMutation = {
  readonly __typename: 'Mutation';
  readonly submitManualReviewDecision:
    | {
        readonly __typename: 'JobHasAlreadyBeenSubmittedError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'MissingRequiredDecisionReasonError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'MissingRequiredPolicyForDecisionError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'NoJobWithIdInQueueError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'RecordingJobDecisionFailedError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
        readonly detail?: string | null;
      }
    | {
        readonly __typename: 'SubmitDecisionSuccessResponse';
        readonly success: boolean;
      }
    | {
        readonly __typename: 'SubmittedJobActionNotFoundError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      };
};

export type GQLLogSkipMutationVariables = Exact<{
  input: GQLLogSkipInput;
}>;

export type GQLLogSkipMutation = {
  readonly __typename: 'Mutation';
  readonly logSkip: boolean;
};

export type GQLReleaseJobLockMutationVariables = Exact<{
  input: GQLReleaseJobLockInput;
}>;

export type GQLReleaseJobLockMutation = {
  readonly __typename: 'Mutation';
  readonly releaseJobLock: boolean;
};

export type GQLJobFieldsFragment = {
  readonly __typename: 'ManualReviewJob';
  readonly id: string;
  readonly createdAt: Date | string;
  readonly policyIds: ReadonlyArray<string>;
  readonly numTimesReported?: number | null;
  readonly payload:
    | {
        readonly __typename: 'ContentAppealManualReviewJobPayload';
        readonly appealReason?: string | null;
        readonly appealId: string;
        readonly actionsTaken: ReadonlyArray<string>;
        readonly item: {
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        };
        readonly additionalContentItems: ReadonlyArray<{
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        }>;
        readonly appealerIdentifier?: {
          readonly __typename: 'ItemIdentifier';
          readonly id: string;
          readonly typeId: string;
        } | null;
        readonly enqueueSourceInfo?: {
          readonly __typename: 'AppealEnqueueSourceInfo';
          readonly kind: GQLJobCreationSourceOptions;
        } | null;
      }
    | {
        readonly __typename: 'ContentManualReviewJobPayload';
        readonly reportHistory: ReadonlyArray<{
          readonly __typename: 'ReportHistoryEntry';
          readonly policyId?: string | null;
          readonly reportId: string;
          readonly reason?: string | null;
          readonly reportedAt: Date | string;
          readonly reporterId?: {
            readonly __typename: 'ItemIdentifier';
            readonly id: string;
            readonly typeId: string;
          } | null;
        }>;
        readonly item: {
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        };
        readonly additionalContentItems: ReadonlyArray<{
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        }>;
        readonly itemThreadContentItems?: ReadonlyArray<{
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        }> | null;
        readonly reportedForReasons: ReadonlyArray<{
          readonly __typename: 'ReportedForReason';
          readonly reason?: string | null;
          readonly reporterId?: {
            readonly __typename: 'ItemIdentifier';
            readonly id: string;
            readonly typeId: string;
          } | null;
        }>;
        readonly enqueueSourceInfo?:
          | { readonly __typename: 'AppealEnqueueSourceInfo' }
          | {
              readonly __typename: 'MrtJobEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'PostActionsEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'ReportEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'RuleExecutionEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
              readonly rules: ReadonlyArray<
                | {
                    readonly __typename: 'ContentRule';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserRule';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
          | null;
      }
    | {
        readonly __typename: 'NcmecManualReviewJobPayload';
        readonly item: {
          readonly __typename: 'UserItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'UserItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'UserSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly profileIcon?: string | null;
              readonly backgroundImage?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        };
        readonly allMediaItems: ReadonlyArray<{
          readonly __typename: 'NcmecContentItem';
          readonly isConfirmedCSAM: boolean;
          readonly isReported: boolean;
          readonly contentItem:
            | {
                readonly __typename: 'ContentItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ContentItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ContentSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly parentId?: string | null;
                    readonly threadId?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              }
            | {
                readonly __typename: 'ThreadItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'ThreadItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'ThreadSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly creatorId?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              }
            | {
                readonly __typename: 'UserItem';
                readonly id: string;
                readonly submissionId: string;
                readonly submissionTime?: Date | string | null;
                readonly data: JsonObject;
                readonly type: {
                  readonly __typename: 'UserItemType';
                  readonly id: string;
                  readonly name: string;
                  readonly description?: string | null;
                  readonly version: string;
                  readonly schemaVariant: GQLItemTypeSchemaVariant;
                  readonly hiddenFields: ReadonlyArray<string>;
                  readonly schemaFieldRoles: {
                    readonly __typename: 'UserSchemaFieldRoles';
                    readonly displayName?: string | null;
                    readonly createdAt?: string | null;
                    readonly profileIcon?: string | null;
                    readonly backgroundImage?: string | null;
                    readonly isDeleted?: string | null;
                    readonly ipAddress?: string | null;
                  };
                  readonly baseFields: ReadonlyArray<{
                    readonly __typename: 'BaseField';
                    readonly name: string;
                    readonly required: boolean;
                    readonly type: GQLFieldType;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                  }>;
                  readonly derivedFields: ReadonlyArray<{
                    readonly __typename: 'DerivedField';
                    readonly type: GQLFieldType;
                    readonly name: string;
                    readonly container?: {
                      readonly __typename: 'Container';
                      readonly containerType: GQLContainerType;
                      readonly keyScalarType?: GQLScalarType | null;
                      readonly valueScalarType: GQLScalarType;
                    } | null;
                    readonly spec: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    };
                  }>;
                };
              };
        }>;
        readonly enqueueSourceInfo?:
          | { readonly __typename: 'AppealEnqueueSourceInfo' }
          | {
              readonly __typename: 'MrtJobEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'PostActionsEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'ReportEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'RuleExecutionEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
              readonly rules: ReadonlyArray<
                | {
                    readonly __typename: 'ContentRule';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserRule';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
          | null;
      }
    | {
        readonly __typename: 'ThreadAppealManualReviewJobPayload';
        readonly appealId: string;
        readonly appealReason?: string | null;
        readonly actionsTaken: ReadonlyArray<string>;
        readonly item: {
          readonly __typename: 'ThreadItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ThreadItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ThreadSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        };
        readonly appealerIdentifier?: {
          readonly __typename: 'ItemIdentifier';
          readonly id: string;
          readonly typeId: string;
        } | null;
        readonly enqueueSourceInfo?: {
          readonly __typename: 'AppealEnqueueSourceInfo';
          readonly kind: GQLJobCreationSourceOptions;
        } | null;
      }
    | {
        readonly __typename: 'ThreadManualReviewJobPayload';
        readonly reportHistory: ReadonlyArray<{
          readonly __typename: 'ReportHistoryEntry';
          readonly reportId: string;
          readonly policyId?: string | null;
          readonly reason?: string | null;
          readonly reportedAt: Date | string;
          readonly reporterId?: {
            readonly __typename: 'ItemIdentifier';
            readonly id: string;
            readonly typeId: string;
          } | null;
        }>;
        readonly item: {
          readonly __typename: 'ThreadItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ThreadItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ThreadSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        };
        readonly reportedForReasons: ReadonlyArray<{
          readonly __typename: 'ReportedForReason';
          readonly reason?: string | null;
          readonly reporterId?: {
            readonly __typename: 'ItemIdentifier';
            readonly id: string;
            readonly typeId: string;
          } | null;
        }>;
        readonly enqueueSourceInfo?:
          | { readonly __typename: 'AppealEnqueueSourceInfo' }
          | {
              readonly __typename: 'MrtJobEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'PostActionsEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'ReportEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'RuleExecutionEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
              readonly rules: ReadonlyArray<
                | {
                    readonly __typename: 'ContentRule';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserRule';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
          | null;
      }
    | {
        readonly __typename: 'UserAppealManualReviewJobPayload';
        readonly appealReason?: string | null;
        readonly appealId: string;
        readonly actionsTaken: ReadonlyArray<string>;
        readonly item: {
          readonly __typename: 'UserItem';
          readonly userStrikeCount: number;
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'UserItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'UserSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly profileIcon?: string | null;
              readonly backgroundImage?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        };
        readonly additionalContentItems: ReadonlyArray<{
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        }>;
        readonly appealerIdentifier?: {
          readonly __typename: 'ItemIdentifier';
          readonly id: string;
          readonly typeId: string;
        } | null;
        readonly enqueueSourceInfo?: {
          readonly __typename: 'AppealEnqueueSourceInfo';
          readonly kind: GQLJobCreationSourceOptions;
        } | null;
      }
    | {
        readonly __typename: 'UserManualReviewJobPayload';
        readonly reportHistory: ReadonlyArray<{
          readonly __typename: 'ReportHistoryEntry';
          readonly reportId: string;
          readonly policyId?: string | null;
          readonly reason?: string | null;
          readonly reportedAt: Date | string;
          readonly reporterId?: {
            readonly __typename: 'ItemIdentifier';
            readonly id: string;
            readonly typeId: string;
          } | null;
        }>;
        readonly item: {
          readonly __typename: 'UserItem';
          readonly userStrikeCount: number;
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'UserItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'UserSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly profileIcon?: string | null;
              readonly backgroundImage?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        };
        readonly itemThreadContentItems?: ReadonlyArray<{
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        }> | null;
        readonly reportedItems?: ReadonlyArray<{
          readonly __typename: 'ItemIdentifier';
          readonly id: string;
          readonly typeId: string;
        } | null> | null;
        readonly additionalContentItems: ReadonlyArray<{
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly submissionTime?: Date | string | null;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          };
        }>;
        readonly reportedForReasons: ReadonlyArray<{
          readonly __typename: 'ReportedForReason';
          readonly reason?: string | null;
          readonly reporterId?: {
            readonly __typename: 'ItemIdentifier';
            readonly id: string;
            readonly typeId: string;
          } | null;
        }>;
        readonly enqueueSourceInfo?:
          | { readonly __typename: 'AppealEnqueueSourceInfo' }
          | {
              readonly __typename: 'MrtJobEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'PostActionsEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'ReportEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
            }
          | {
              readonly __typename: 'RuleExecutionEnqueueSourceInfo';
              readonly kind: GQLJobCreationSourceOptions;
              readonly rules: ReadonlyArray<
                | {
                    readonly __typename: 'ContentRule';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserRule';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
          | null;
      };
};

export type GQLManualReviewJobCommentFieldsFragment = {
  readonly __typename: 'ManualReviewJobComment';
  readonly id: string;
  readonly createdAt: Date | string;
  readonly commentText: string;
  readonly author?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly firstName: string;
    readonly lastName: string;
  } | null;
};

export type GQLGetCommentsForJobQueryVariables = Exact<{
  jobId: Scalars['ID']['input'];
}>;

export type GQLGetCommentsForJobQuery = {
  readonly __typename: 'Query';
  readonly getCommentsForJob: ReadonlyArray<{
    readonly __typename: 'ManualReviewJobComment';
    readonly id: string;
    readonly createdAt: Date | string;
    readonly commentText: string;
    readonly author?: {
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
    } | null;
  }>;
};

export type GQLAddJobCommentMutationVariables = Exact<{
  input: GQLCreateManualReviewJobCommentInput;
}>;

export type GQLAddJobCommentMutation = {
  readonly __typename: 'Mutation';
  readonly createManualReviewJobComment:
    | {
        readonly __typename: 'AddManualReviewJobCommentSuccessResponse';
        readonly comment: {
          readonly __typename: 'ManualReviewJobComment';
          readonly id: string;
          readonly createdAt: Date | string;
          readonly commentText: string;
          readonly author?: {
            readonly __typename: 'User';
            readonly id: string;
            readonly firstName: string;
            readonly lastName: string;
          } | null;
        };
      }
    | { readonly __typename: 'NotFoundError'; readonly title: string };
};

export type GQLDeleteJobCommentMutationVariables = Exact<{
  input: GQLDeleteManualReviewJobCommentInput;
}>;

export type GQLDeleteJobCommentMutation = {
  readonly __typename: 'Mutation';
  readonly deleteManualReviewJobComment: boolean;
};

export type GQLGetThreadHistoryQueryVariables = Exact<{
  threadIdentifier: GQLItemIdentifierInput;
  endDate?: InputMaybe<Scalars['DateTime']['input']>;
}>;

export type GQLGetThreadHistoryQuery = {
  readonly __typename: 'Query';
  readonly threadHistory: ReadonlyArray<{
    readonly __typename: 'ItemSubmissions';
    readonly latest:
      | {
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly type: GQLFieldType;
              readonly required: boolean;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
            };
          };
        }
      | { readonly __typename: 'ThreadItem' }
      | { readonly __typename: 'UserItem' };
  }>;
};

export type GQLGetRelatedItemsQueryVariables = Exact<{
  itemIdentifiers:
    ReadonlyArray<GQLItemIdentifierInput> | GQLItemIdentifierInput;
}>;

export type GQLGetRelatedItemsQuery = {
  readonly __typename: 'Query';
  readonly latestItemSubmissions: ReadonlyArray<
    | {
        readonly __typename: 'ContentItem';
        readonly id: string;
        readonly submissionId: string;
        readonly submissionTime?: Date | string | null;
        readonly data: JsonObject;
        readonly type: {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
            readonly required: boolean;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ContentSchemaFieldRoles';
            readonly displayName?: string | null;
          };
        };
      }
    | {
        readonly __typename: 'ThreadItem';
        readonly id: string;
        readonly submissionId: string;
        readonly submissionTime?: Date | string | null;
        readonly data: JsonObject;
        readonly type: {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
            readonly required: boolean;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ThreadSchemaFieldRoles';
            readonly displayName?: string | null;
          };
        };
      }
    | {
        readonly __typename: 'UserItem';
        readonly id: string;
        readonly submissionId: string;
        readonly submissionTime?: Date | string | null;
        readonly data: JsonObject;
        readonly type: {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
            readonly required: boolean;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
            readonly backgroundImage?: string | null;
          };
        };
      }
  >;
};

export type GQLItemTypeHiddenFieldsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLItemTypeHiddenFieldsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly hiddenFields: ReadonlyArray<string>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly hiddenFields: ReadonlyArray<string>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly hiddenFields: ReadonlyArray<string>;
        }
    >;
  } | null;
};

export type GQLAllManualReviewQueuesQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLAllManualReviewQueuesQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly mrtQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
    }>;
  } | null;
};

export type GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables = Exact<{
  userId: GQLItemIdentifierInput;
  reportedMessages:
    ReadonlyArray<GQLItemIdentifierInput> | GQLItemIdentifierInput;
}>;

export type GQLGetLatestUserSubmittedItemsWithThreadsQuery = {
  readonly __typename: 'Query';
  readonly ncmecThreads: ReadonlyArray<{
    readonly __typename: 'ThreadWithMessagesAndIpAddress';
    readonly threadId: string;
    readonly threadTypeId: string;
    readonly messages: ReadonlyArray<{
      readonly __typename: 'MessageWithIpAddress';
      readonly message: {
        readonly __typename: 'ContentItem';
        readonly id: string;
        readonly submissionId: string;
        readonly data: JsonObject;
        readonly type: {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
            readonly required: boolean;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ContentSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly parentId?: string | null;
            readonly threadId?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
          };
        };
      };
      readonly ipAddress: {
        readonly __typename: 'IpAddress';
        readonly ip: string;
        readonly port?: number | null;
      };
    }>;
  }>;
};

export type GQLNcmecMediaReviewPolicyQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLNcmecMediaReviewPolicyQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly ncmecMediaReviewRequirement: GQLNcmecMediaReviewRequirement;
    readonly ncmecMinMediaToReview: number;
  } | null;
};

export type GQLGetMoreInfoForThreadItemsQueryVariables = Exact<{
  ids: ReadonlyArray<GQLItemIdentifierInput> | GQLItemIdentifierInput;
}>;

export type GQLGetMoreInfoForThreadItemsQuery = {
  readonly __typename: 'Query';
  readonly partialItems:
    | {
        readonly __typename: 'PartialItemsEndpointResponseError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'PartialItemsInvalidResponseError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'PartialItemsMissingEndpointError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'PartialItemsSuccessResponse';
        readonly items: ReadonlyArray<
          | { readonly __typename: 'ContentItem' }
          | {
              readonly __typename: 'ThreadItem';
              readonly id: string;
              readonly submissionId: string;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly type: GQLFieldType;
                  readonly required: boolean;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
              };
            }
          | { readonly __typename: 'UserItem' }
        >;
      };
};

export type GQLGetMoreInfoForPartialItemsQueryVariables = Exact<{
  ids: ReadonlyArray<GQLItemIdentifierInput> | GQLItemIdentifierInput;
}>;

export type GQLGetMoreInfoForPartialItemsQuery = {
  readonly __typename: 'Query';
  readonly partialItems:
    | {
        readonly __typename: 'PartialItemsEndpointResponseError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'PartialItemsInvalidResponseError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'PartialItemsMissingEndpointError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'PartialItemsSuccessResponse';
        readonly items: ReadonlyArray<
          | {
              readonly __typename: 'ContentItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ContentSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly parentId?: string | null;
                  readonly threadId?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }
          | {
              readonly __typename: 'ThreadItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'ThreadSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly creatorId?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }
          | {
              readonly __typename: 'UserItem';
              readonly id: string;
              readonly submissionId: string;
              readonly submissionTime?: Date | string | null;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
                readonly description?: string | null;
                readonly version: string;
                readonly schemaVariant: GQLItemTypeSchemaVariant;
                readonly hiddenFields: ReadonlyArray<string>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'UserSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly profileIcon?: string | null;
                  readonly backgroundImage?: string | null;
                  readonly isDeleted?: string | null;
                  readonly ipAddress?: string | null;
                };
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly required: boolean;
                  readonly type: GQLFieldType;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly derivedFields: ReadonlyArray<{
                  readonly __typename: 'DerivedField';
                  readonly type: GQLFieldType;
                  readonly name: string;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                  readonly spec: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  };
                }>;
              };
            }
        >;
      };
};

export type GQLGetExistingJobsForItemQueryVariables = Exact<{
  itemId: Scalars['ID']['input'];
  itemTypeId: Scalars['ID']['input'];
}>;

export type GQLGetExistingJobsForItemQuery = {
  readonly __typename: 'Query';
  readonly getExistingJobsForItem: ReadonlyArray<{
    readonly __typename: 'ManualReviewExistingJob';
    readonly queueId: string;
    readonly job: {
      readonly __typename: 'ManualReviewJob';
      readonly createdAt: Date | string;
    };
  }>;
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly mrtQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
    }>;
  } | null;
};

export type GQLGetLatestUserSubmittedItemsQueryVariables = Exact<{
  itemIdentifier: GQLItemIdentifierInput;
  oldestReturnedSubmissionDate?: InputMaybe<Scalars['DateTime']['input']>;
  earliestReturnedSubmissionDate?: InputMaybe<Scalars['DateTime']['input']>;
}>;

export type GQLGetLatestUserSubmittedItemsQuery = {
  readonly __typename: 'Query';
  readonly latestItemsCreatedBy: ReadonlyArray<{
    readonly __typename: 'ItemSubmissions';
    readonly latest:
      | {
          readonly __typename: 'ContentItem';
          readonly id: string;
          readonly submissionId: string;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly type: GQLFieldType;
              readonly required: boolean;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
            };
          };
        }
      | {
          readonly __typename: 'ThreadItem';
          readonly id: string;
          readonly submissionId: string;
          readonly data: JsonObject;
          readonly type: {
            readonly __typename: 'ThreadItemType';
            readonly id: string;
            readonly name: string;
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly type: GQLFieldType;
              readonly required: boolean;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ThreadSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
            };
          };
        }
      | { readonly __typename: 'UserItem' };
  }>;
};

export type GQLOrgDataQueryVariables = Exact<{ [key: string]: never }>;

export type GQLOrgDataQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly name: string;
  } | null;
};

export type GQLGetMoreInfoForItemsQueryVariables = Exact<{
  ids: ReadonlyArray<GQLItemIdentifierInput> | GQLItemIdentifierInput;
}>;

export type GQLGetMoreInfoForItemsQuery = {
  readonly __typename: 'Query';
  readonly partialItems:
    | {
        readonly __typename: 'PartialItemsEndpointResponseError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'PartialItemsInvalidResponseError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'PartialItemsMissingEndpointError';
        readonly title: string;
        readonly status: number;
        readonly type: ReadonlyArray<string>;
      }
    | {
        readonly __typename: 'PartialItemsSuccessResponse';
        readonly items: ReadonlyArray<
          | { readonly __typename: 'ContentItem' }
          | { readonly __typename: 'ThreadItem' }
          | {
              readonly __typename: 'UserItem';
              readonly id: string;
              readonly submissionId: string;
              readonly data: JsonObject;
              readonly type: {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly baseFields: ReadonlyArray<{
                  readonly __typename: 'BaseField';
                  readonly name: string;
                  readonly type: GQLFieldType;
                  readonly required: boolean;
                  readonly container?: {
                    readonly __typename: 'Container';
                    readonly containerType: GQLContainerType;
                    readonly keyScalarType?: GQLScalarType | null;
                    readonly valueScalarType: GQLScalarType;
                  } | null;
                }>;
                readonly schemaFieldRoles: {
                  readonly __typename: 'UserSchemaFieldRoles';
                  readonly displayName?: string | null;
                  readonly createdAt?: string | null;
                  readonly profileIcon?: string | null;
                  readonly backgroundImage?: string | null;
                };
              };
            }
        >;
      };
};

export type GQLGetUserItemsQueryVariables = Exact<{
  itemIdentifiers:
    ReadonlyArray<GQLItemIdentifierInput> | GQLItemIdentifierInput;
}>;

export type GQLGetUserItemsQuery = {
  readonly __typename: 'Query';
  readonly latestItemSubmissions: ReadonlyArray<
    | { readonly __typename: 'ContentItem' }
    | { readonly __typename: 'ThreadItem' }
    | {
        readonly __typename: 'UserItem';
        readonly id: string;
        readonly submissionId: string;
        readonly submissionTime?: Date | string | null;
        readonly data: JsonObject;
        readonly userStrikeCount: number;
        readonly type: {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
            readonly required: boolean;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
            readonly backgroundImage?: string | null;
          };
        };
      }
  >;
};

export type GQLManualReviewHasAppealsEnabledQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLManualReviewHasAppealsEnabledQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly hasAppealsEnabled: boolean;
  } | null;
};

export type GQLDeleteRoutingRuleMutationVariables = Exact<{
  input: GQLDeleteRoutingRuleInput;
}>;

export type GQLDeleteRoutingRuleMutation = {
  readonly __typename: 'Mutation';
  readonly deleteRoutingRule: boolean;
};

export type GQLManualReviewQueueRoutingRulesQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLManualReviewQueueRoutingRulesQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ContentSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly parentId?: string | null;
            readonly threadId?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ThreadSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
            readonly backgroundImage?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
        }
    >;
    readonly routingRules: ReadonlyArray<{
      readonly __typename: 'RoutingRule';
      readonly id: string;
      readonly name: string;
      readonly description?: string | null;
      readonly itemTypes: ReadonlyArray<
        | {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          }
        | {
            readonly __typename: 'ThreadItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ThreadSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          }
        | {
            readonly __typename: 'UserItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'UserSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly profileIcon?: string | null;
              readonly backgroundImage?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          }
      >;
      readonly conditionSet: {
        readonly __typename: 'ConditionSet';
        readonly conjunction: GQLConditionConjunction;
        readonly conditions: ReadonlyArray<
          | {
              readonly __typename: 'ConditionSet';
              readonly conjunction: GQLConditionConjunction;
              readonly conditions: ReadonlyArray<
                | { readonly __typename: 'ConditionSet' }
                | {
                    readonly __typename: 'LeafCondition';
                    readonly comparator?: GQLValueComparator | null;
                    readonly threshold?: string | number | null;
                    readonly input: {
                      readonly __typename: 'ConditionInputField';
                      readonly type: GQLConditionInputInputType;
                      readonly name?: string | null;
                      readonly contentTypeId?: string | null;
                      readonly contentTypeIds?: ReadonlyArray<string> | null;
                      readonly spec?: {
                        readonly __typename: 'DerivedFieldSpec';
                        readonly derivationType: GQLDerivedFieldDerivationType;
                        readonly source:
                          | {
                              readonly __typename: 'DerivedFieldCoopInputSource';
                              readonly coopInput: GQLCoopInput;
                            }
                          | {
                              readonly __typename: 'DerivedFieldFieldSource';
                              readonly name: string;
                              readonly contentTypeId: string;
                            }
                          | {
                              readonly __typename: 'DerivedFieldFullItemSource';
                              readonly _?: boolean | null;
                            };
                      } | null;
                    };
                    readonly signal?: {
                      readonly __typename: 'Signal';
                      readonly id: string;
                      readonly type: string;
                      readonly name: string;
                      readonly subcategory?: string | null;
                      readonly args?: {
                        readonly __typename: 'AggregationSignalArgs';
                      } | null;
                    } | null;
                    readonly matchingValues?: {
                      readonly __typename: 'MatchingValues';
                      readonly strings?: ReadonlyArray<string> | null;
                      readonly textBankIds?: ReadonlyArray<string> | null;
                      readonly locationBankIds?: ReadonlyArray<string> | null;
                      readonly imageBankIds?: ReadonlyArray<string> | null;
                      readonly locations?: ReadonlyArray<{
                        readonly __typename: 'LocationArea';
                        readonly id: string;
                        readonly name?: string | null;
                        readonly geometry: {
                          readonly __typename: 'LocationGeometry';
                          readonly radius: number;
                          readonly center: {
                            readonly __typename: 'LatLng';
                            readonly lat: number;
                            readonly lng: number;
                          };
                        };
                        readonly bounds?: {
                          readonly __typename: 'PlaceBounds';
                          readonly northeastCorner: {
                            readonly __typename: 'LatLng';
                            readonly lat: number;
                            readonly lng: number;
                          };
                          readonly southwestCorner: {
                            readonly __typename: 'LatLng';
                            readonly lat: number;
                            readonly lng: number;
                          };
                        } | null;
                      }> | null;
                    } | null;
                  }
              >;
            }
          | {
              readonly __typename: 'LeafCondition';
              readonly comparator?: GQLValueComparator | null;
              readonly threshold?: string | number | null;
              readonly input: {
                readonly __typename: 'ConditionInputField';
                readonly type: GQLConditionInputInputType;
                readonly name?: string | null;
                readonly contentTypeId?: string | null;
                readonly contentTypeIds?: ReadonlyArray<string> | null;
                readonly spec?: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                } | null;
              };
              readonly signal?: {
                readonly __typename: 'Signal';
                readonly id: string;
                readonly type: string;
                readonly name: string;
                readonly subcategory?: string | null;
                readonly args?: {
                  readonly __typename: 'AggregationSignalArgs';
                } | null;
              } | null;
              readonly matchingValues?: {
                readonly __typename: 'MatchingValues';
                readonly strings?: ReadonlyArray<string> | null;
                readonly textBankIds?: ReadonlyArray<string> | null;
                readonly locationBankIds?: ReadonlyArray<string> | null;
                readonly imageBankIds?: ReadonlyArray<string> | null;
                readonly locations?: ReadonlyArray<{
                  readonly __typename: 'LocationArea';
                  readonly id: string;
                  readonly name?: string | null;
                  readonly geometry: {
                    readonly __typename: 'LocationGeometry';
                    readonly radius: number;
                    readonly center: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                  };
                  readonly bounds?: {
                    readonly __typename: 'PlaceBounds';
                    readonly northeastCorner: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                    readonly southwestCorner: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                  } | null;
                }> | null;
              } | null;
            }
        >;
      };
      readonly destinationQueue: {
        readonly __typename: 'ManualReviewQueue';
        readonly id: string;
        readonly name: string;
      };
    }>;
    readonly appealsRoutingRules: ReadonlyArray<{
      readonly __typename: 'RoutingRule';
      readonly id: string;
      readonly name: string;
      readonly description?: string | null;
      readonly itemTypes: ReadonlyArray<
        | {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ContentSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly parentId?: string | null;
              readonly threadId?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          }
        | {
            readonly __typename: 'ThreadItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'ThreadSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly creatorId?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          }
        | {
            readonly __typename: 'UserItemType';
            readonly id: string;
            readonly name: string;
            readonly description?: string | null;
            readonly version: string;
            readonly schemaVariant: GQLItemTypeSchemaVariant;
            readonly hiddenFields: ReadonlyArray<string>;
            readonly schemaFieldRoles: {
              readonly __typename: 'UserSchemaFieldRoles';
              readonly displayName?: string | null;
              readonly createdAt?: string | null;
              readonly profileIcon?: string | null;
              readonly backgroundImage?: string | null;
              readonly isDeleted?: string | null;
              readonly ipAddress?: string | null;
            };
            readonly baseFields: ReadonlyArray<{
              readonly __typename: 'BaseField';
              readonly name: string;
              readonly required: boolean;
              readonly type: GQLFieldType;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
            }>;
            readonly derivedFields: ReadonlyArray<{
              readonly __typename: 'DerivedField';
              readonly type: GQLFieldType;
              readonly name: string;
              readonly container?: {
                readonly __typename: 'Container';
                readonly containerType: GQLContainerType;
                readonly keyScalarType?: GQLScalarType | null;
                readonly valueScalarType: GQLScalarType;
              } | null;
              readonly spec: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              };
            }>;
          }
      >;
      readonly conditionSet: {
        readonly __typename: 'ConditionSet';
        readonly conjunction: GQLConditionConjunction;
        readonly conditions: ReadonlyArray<
          | {
              readonly __typename: 'ConditionSet';
              readonly conjunction: GQLConditionConjunction;
              readonly conditions: ReadonlyArray<
                | { readonly __typename: 'ConditionSet' }
                | {
                    readonly __typename: 'LeafCondition';
                    readonly comparator?: GQLValueComparator | null;
                    readonly threshold?: string | number | null;
                    readonly input: {
                      readonly __typename: 'ConditionInputField';
                      readonly type: GQLConditionInputInputType;
                      readonly name?: string | null;
                      readonly contentTypeId?: string | null;
                      readonly contentTypeIds?: ReadonlyArray<string> | null;
                      readonly spec?: {
                        readonly __typename: 'DerivedFieldSpec';
                        readonly derivationType: GQLDerivedFieldDerivationType;
                        readonly source:
                          | {
                              readonly __typename: 'DerivedFieldCoopInputSource';
                              readonly coopInput: GQLCoopInput;
                            }
                          | {
                              readonly __typename: 'DerivedFieldFieldSource';
                              readonly name: string;
                              readonly contentTypeId: string;
                            }
                          | {
                              readonly __typename: 'DerivedFieldFullItemSource';
                              readonly _?: boolean | null;
                            };
                      } | null;
                    };
                    readonly signal?: {
                      readonly __typename: 'Signal';
                      readonly id: string;
                      readonly type: string;
                      readonly name: string;
                      readonly subcategory?: string | null;
                      readonly args?: {
                        readonly __typename: 'AggregationSignalArgs';
                      } | null;
                    } | null;
                    readonly matchingValues?: {
                      readonly __typename: 'MatchingValues';
                      readonly strings?: ReadonlyArray<string> | null;
                      readonly textBankIds?: ReadonlyArray<string> | null;
                      readonly locationBankIds?: ReadonlyArray<string> | null;
                      readonly imageBankIds?: ReadonlyArray<string> | null;
                      readonly locations?: ReadonlyArray<{
                        readonly __typename: 'LocationArea';
                        readonly id: string;
                        readonly name?: string | null;
                        readonly geometry: {
                          readonly __typename: 'LocationGeometry';
                          readonly radius: number;
                          readonly center: {
                            readonly __typename: 'LatLng';
                            readonly lat: number;
                            readonly lng: number;
                          };
                        };
                        readonly bounds?: {
                          readonly __typename: 'PlaceBounds';
                          readonly northeastCorner: {
                            readonly __typename: 'LatLng';
                            readonly lat: number;
                            readonly lng: number;
                          };
                          readonly southwestCorner: {
                            readonly __typename: 'LatLng';
                            readonly lat: number;
                            readonly lng: number;
                          };
                        } | null;
                      }> | null;
                    } | null;
                  }
              >;
            }
          | {
              readonly __typename: 'LeafCondition';
              readonly comparator?: GQLValueComparator | null;
              readonly threshold?: string | number | null;
              readonly input: {
                readonly __typename: 'ConditionInputField';
                readonly type: GQLConditionInputInputType;
                readonly name?: string | null;
                readonly contentTypeId?: string | null;
                readonly contentTypeIds?: ReadonlyArray<string> | null;
                readonly spec?: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                } | null;
              };
              readonly signal?: {
                readonly __typename: 'Signal';
                readonly id: string;
                readonly type: string;
                readonly name: string;
                readonly subcategory?: string | null;
                readonly args?: {
                  readonly __typename: 'AggregationSignalArgs';
                } | null;
              } | null;
              readonly matchingValues?: {
                readonly __typename: 'MatchingValues';
                readonly strings?: ReadonlyArray<string> | null;
                readonly textBankIds?: ReadonlyArray<string> | null;
                readonly locationBankIds?: ReadonlyArray<string> | null;
                readonly imageBankIds?: ReadonlyArray<string> | null;
                readonly locations?: ReadonlyArray<{
                  readonly __typename: 'LocationArea';
                  readonly id: string;
                  readonly name?: string | null;
                  readonly geometry: {
                    readonly __typename: 'LocationGeometry';
                    readonly radius: number;
                    readonly center: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                  };
                  readonly bounds?: {
                    readonly __typename: 'PlaceBounds';
                    readonly northeastCorner: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                    readonly southwestCorner: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                  } | null;
                }> | null;
              } | null;
            }
        >;
      };
      readonly destinationQueue: {
        readonly __typename: 'ManualReviewQueue';
        readonly id: string;
        readonly name: string;
      };
    }>;
    readonly signals: ReadonlyArray<{
      readonly __typename: 'Signal';
      readonly id: string;
      readonly type: string;
      readonly name: string;
      readonly integration?: string | null;
      readonly integrationTitle?: string | null;
      readonly integrationLogoUrl?: string | null;
      readonly integrationLogoWithBackgroundUrl?: string | null;
      readonly docsUrl?: string | null;
      readonly description: string;
      readonly eligibleInputs: ReadonlyArray<GQLSignalInputType>;
      readonly shouldPromptForMatchingValues: boolean;
      readonly allowedInAutomatedRules: boolean;
      readonly recommendedThresholds?: {
        readonly __typename: 'RecommendedThresholds';
        readonly highPrecisionThreshold: string | number;
        readonly highRecallThreshold: string | number;
      } | null;
      readonly supportedLanguages:
        | { readonly __typename: 'AllLanguages'; readonly _?: boolean | null }
        | {
            readonly __typename: 'Languages';
            readonly languages: ReadonlyArray<GQLLanguage>;
          };
      readonly pricingStructure: {
        readonly __typename: 'SignalPricingStructure';
        readonly type: GQLSignalPricingStructureType;
      };
      readonly disabledInfo: {
        readonly __typename: 'DisabledInfo';
        readonly disabled: boolean;
        readonly disabledMessage?: string | null;
      };
      readonly outputType:
        | {
            readonly __typename: 'EnumSignalOutputType';
            readonly scalarType: GQLScalarType;
            readonly enum: ReadonlyArray<string>;
            readonly ordered: boolean;
          }
        | {
            readonly __typename: 'ScalarSignalOutputType';
            readonly scalarType: GQLScalarType;
          };
      readonly eligibleSubcategories: ReadonlyArray<{
        readonly __typename: 'SignalSubcategory';
        readonly id: string;
        readonly label: string;
        readonly description?: string | null;
        readonly childrenIds: ReadonlyArray<string>;
      }>;
    }>;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly reviewableQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
      readonly isAppealsQueue: boolean;
    }>;
  } | null;
};

export type GQLCreateRoutingRuleMutationVariables = Exact<{
  input: GQLCreateRoutingRuleInput;
}>;

export type GQLCreateRoutingRuleMutation = {
  readonly __typename: 'Mutation';
  readonly createRoutingRule:
    | {
        readonly __typename: 'MutateRoutingRuleSuccessResponse';
        readonly data: {
          readonly __typename: 'RoutingRule';
          readonly id: string;
        };
      }
    | { readonly __typename: 'QueueDoesNotExistError'; readonly title: string }
    | {
        readonly __typename: 'RoutingRuleNameExistsError';
        readonly title: string;
      };
};

export type GQLUpdateRoutingRuleMutationVariables = Exact<{
  input: GQLUpdateRoutingRuleInput;
}>;

export type GQLUpdateRoutingRuleMutation = {
  readonly __typename: 'Mutation';
  readonly updateRoutingRule:
    | {
        readonly __typename: 'MutateRoutingRuleSuccessResponse';
        readonly data: {
          readonly __typename: 'RoutingRule';
          readonly id: string;
        };
      }
    | { readonly __typename: 'NotFoundError'; readonly title: string }
    | { readonly __typename: 'QueueDoesNotExistError'; readonly title: string }
    | {
        readonly __typename: 'RoutingRuleNameExistsError';
        readonly title: string;
      };
};

export type GQLReorderRoutingRulesMutationVariables = Exact<{
  input: GQLReorderRoutingRulesInput;
}>;

export type GQLReorderRoutingRulesMutation = {
  readonly __typename: 'Mutation';
  readonly reorderRoutingRules: {
    readonly __typename: 'MutateRoutingRulesOrderSuccessResponse';
    readonly data: ReadonlyArray<{
      readonly __typename: 'RoutingRule';
      readonly id: string;
    }>;
  };
};

export type GQLManualReviewChartConfigurationSettingsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLManualReviewChartConfigurationSettingsQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly interfacePreferences: {
      readonly __typename: 'UserInterfacePreferences';
      readonly mrtChartConfigurations: ReadonlyArray<
        | {
            readonly __typename: 'GetDecisionCountSettings';
            readonly title: string;
            readonly metric: GQLManualReviewChartMetric;
            readonly timeDivision: GQLMetricsTimeDivisionOptions;
            readonly decisionGroupBy: ReadonlyArray<GQLDecisionCountGroupByColumns>;
            readonly filterBy: {
              readonly __typename: 'DecisionCountFilterBy';
              readonly startDate: Date | string;
              readonly endDate: Date | string;
              readonly type: ReadonlyArray<GQLManualReviewDecisionType>;
              readonly actionIds: ReadonlyArray<string>;
              readonly policyIds: ReadonlyArray<string>;
              readonly queueIds: ReadonlyArray<string>;
              readonly reviewerIds: ReadonlyArray<string>;
              readonly itemTypeIds: ReadonlyArray<string>;
            };
          }
        | {
            readonly __typename: 'GetJobCreationCountSettings';
            readonly title: string;
            readonly metric: GQLManualReviewChartMetric;
            readonly timeDivision: GQLMetricsTimeDivisionOptions;
            readonly jobCreationGroupBy: ReadonlyArray<GQLJobCreationGroupByColumns>;
            readonly filterBy: {
              readonly __typename: 'JobCreationFilterBy';
              readonly startDate: Date | string;
              readonly endDate: Date | string;
              readonly policyIds: ReadonlyArray<string>;
              readonly queueIds: ReadonlyArray<string>;
              readonly itemTypeIds: ReadonlyArray<string>;
              readonly ruleIds: ReadonlyArray<string>;
              readonly sources: ReadonlyArray<GQLJobCreationSourceOptions>;
            };
          }
      >;
    };
  } | null;
};

export type GQLSetMrtChartConfigurationSettingsMutationVariables = Exact<{
  mrtChartConfigurationSettings: GQLManualReviewChartConfigurationsInput;
}>;

export type GQLSetMrtChartConfigurationSettingsMutation = {
  readonly __typename: 'Mutation';
  readonly setMrtChartConfigurationSettings?: {
    readonly __typename: 'SetMrtChartConfigurationSettingsSuccessResponse';
    readonly _?: boolean | null;
  } | null;
};

export type GQLManualReviewDecisionInsightsOrgInfoQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLManualReviewDecisionInsightsOrgInfoQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly users: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
    }>;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
    }>;
    readonly mrtQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
    }>;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly rules: ReadonlyArray<
      | {
          readonly __typename: 'ContentRule';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserRule';
          readonly id: string;
          readonly name: string;
        }
    >;
  } | null;
};

export type GQLGetDecisionCountsQueryVariables = Exact<{
  input: GQLGetDecisionCountInput;
}>;

export type GQLGetDecisionCountsQuery = {
  readonly __typename: 'Query';
  readonly getDecisionCounts: ReadonlyArray<{
    readonly __typename: 'DecisionCount';
    readonly count: number;
    readonly time: string;
    readonly type?: GQLManualReviewDecisionType | null;
    readonly action_id?: string | null;
    readonly policy_id?: string | null;
    readonly queue_id?: string | null;
    readonly reviewer_id?: string | null;
  }>;
};

export type GQLGetJobCreationCountsQueryVariables = Exact<{
  input: GQLGetJobCreationCountInput;
}>;

export type GQLGetJobCreationCountsQuery = {
  readonly __typename: 'Query';
  readonly getJobCreationCounts: ReadonlyArray<{
    readonly __typename: 'JobCreationCount';
    readonly count: number;
    readonly time: string;
    readonly policyId?: string | null;
    readonly queueId?: string | null;
    readonly itemTypeId?: string | null;
    readonly ruleId?: string | null;
    readonly source?: GQLJobCreationSourceOptions | null;
  }>;
};

export type GQLGetResolvedJobCountsQueryVariables = Exact<{
  input: GQLGetResolvedJobCountInput;
}>;

export type GQLGetResolvedJobCountsQuery = {
  readonly __typename: 'Query';
  readonly getResolvedJobCounts: ReadonlyArray<{
    readonly __typename: 'ResolvedJobCount';
    readonly count: number;
    readonly time: string;
    readonly reviewerId?: string | null;
    readonly queueId?: string | null;
  }>;
};

export type GQLGetSkippedJobCountsQueryVariables = Exact<{
  input: GQLGetSkippedJobCountInput;
}>;

export type GQLGetSkippedJobCountsQuery = {
  readonly __typename: 'Query';
  readonly getSkippedJobCounts: ReadonlyArray<{
    readonly __typename: 'SkippedJobCount';
    readonly count: number;
    readonly time: string;
    readonly reviewerId?: string | null;
    readonly queueId?: string | null;
  }>;
};

export type GQLManualReviewDecisionInsightsFilterByInfoQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLManualReviewDecisionInsightsFilterByInfoQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
        }
    >;
    readonly users: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
    }>;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
    }>;
    readonly mrtQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
    }>;
    readonly rules: ReadonlyArray<
      | {
          readonly __typename: 'ContentRule';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserRule';
          readonly id: string;
          readonly name: string;
        }
    >;
  } | null;
};

export type GQLNcmecReportValuesFragment = {
  readonly __typename: 'NCMECReport';
  readonly ts: Date | string;
  readonly reportId: string;
  readonly userId: string;
  readonly reviewerId?: string | null;
  readonly reportXml: string;
  readonly isTest?: boolean | null;
  readonly userItemType: {
    readonly __typename: 'UserItemType';
    readonly name: string;
  };
  readonly reportedMedia: ReadonlyArray<{
    readonly __typename: 'NCMECReportedMedia';
    readonly id: string;
    readonly xml: string;
  }>;
  readonly additionalFiles: ReadonlyArray<{
    readonly __typename: 'NcmecAdditionalFile';
    readonly url: string;
    readonly xml: string;
    readonly ncmecFileId: string;
  }>;
  readonly reportedMessages: ReadonlyArray<{
    readonly __typename: 'NCMECReportedThread';
    readonly fileName: string;
    readonly csv: string;
    readonly ncmecFileId: string;
  }>;
};

export type GQLNcmecFailedSubmissionValuesFragment = {
  readonly __typename: 'NcmecFailedSubmission';
  readonly decisionId: string;
  readonly ts: Date | string;
  readonly reviewerId?: string | null;
  readonly userId: string;
  readonly status: GQLNcmecFailedSubmissionStatus;
  readonly retryCount: number;
  readonly lastError?: string | null;
  readonly userItemType: {
    readonly __typename: 'UserItemType';
    readonly name: string;
  };
};

export type GQLAllNcmecReportsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLAllNcmecReportsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly hasNCMECReportingEnabled: boolean;
    readonly ncmecReports: ReadonlyArray<{
      readonly __typename: 'NCMECReport';
      readonly ts: Date | string;
      readonly reportId: string;
      readonly userId: string;
      readonly reviewerId?: string | null;
      readonly reportXml: string;
      readonly isTest?: boolean | null;
      readonly userItemType: {
        readonly __typename: 'UserItemType';
        readonly name: string;
      };
      readonly reportedMedia: ReadonlyArray<{
        readonly __typename: 'NCMECReportedMedia';
        readonly id: string;
        readonly xml: string;
      }>;
      readonly additionalFiles: ReadonlyArray<{
        readonly __typename: 'NcmecAdditionalFile';
        readonly url: string;
        readonly xml: string;
        readonly ncmecFileId: string;
      }>;
      readonly reportedMessages: ReadonlyArray<{
        readonly __typename: 'NCMECReportedThread';
        readonly fileName: string;
        readonly csv: string;
        readonly ncmecFileId: string;
      }>;
    }>;
    readonly failedNcmecSubmissions: ReadonlyArray<{
      readonly __typename: 'NcmecFailedSubmission';
      readonly decisionId: string;
      readonly ts: Date | string;
      readonly reviewerId?: string | null;
      readonly userId: string;
      readonly status: GQLNcmecFailedSubmissionStatus;
      readonly retryCount: number;
      readonly lastError?: string | null;
      readonly userItemType: {
        readonly __typename: 'UserItemType';
        readonly name: string;
      };
    }>;
    readonly users: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
    }>;
  } | null;
};

export type GQLPermissionsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLPermissionsQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLGetNcmecReportQueryVariables = Exact<{
  reportId: Scalars['ID']['input'];
}>;

export type GQLGetNcmecReportQuery = {
  readonly __typename: 'Query';
  readonly ncmecReportById?: {
    readonly __typename: 'NCMECReport';
    readonly ts: Date | string;
    readonly reportId: string;
    readonly userId: string;
    readonly reviewerId?: string | null;
    readonly reportXml: string;
    readonly isTest?: boolean | null;
    readonly userItemType: {
      readonly __typename: 'UserItemType';
      readonly name: string;
    };
    readonly reportedMedia: ReadonlyArray<{
      readonly __typename: 'NCMECReportedMedia';
      readonly id: string;
      readonly xml: string;
    }>;
    readonly additionalFiles: ReadonlyArray<{
      readonly __typename: 'NcmecAdditionalFile';
      readonly url: string;
      readonly xml: string;
      readonly ncmecFileId: string;
    }>;
    readonly reportedMessages: ReadonlyArray<{
      readonly __typename: 'NCMECReportedThread';
      readonly fileName: string;
      readonly csv: string;
      readonly ncmecFileId: string;
    }>;
  } | null;
};

export type GQLRetryNcmecSubmissionMutationVariables = Exact<{
  decisionId: Scalars['ID']['input'];
}>;

export type GQLRetryNcmecSubmissionMutation = {
  readonly __typename: 'Mutation';
  readonly retryNcmecSubmission: {
    readonly __typename: 'RetryNcmecSubmissionResponse';
    readonly success: boolean;
    readonly error?: string | null;
  };
};

export type GQLIsWarehouseAvailableQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLIsWarehouseAvailableQuery = {
  readonly __typename: 'Query';
  readonly isWarehouseAvailable: boolean;
};

export type GQLTotalPendingJobsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLTotalPendingJobsQuery = {
  readonly __typename: 'Query';
  readonly getTotalPendingJobsCount: number;
};

export type GQLRuleNamesAndIdsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLRuleNamesAndIdsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly rules: ReadonlyArray<
      | {
          readonly __typename: 'ContentRule';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserRule';
          readonly id: string;
          readonly name: string;
        }
    >;
  } | null;
};

export type GQLDataForOverviewChartsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLDataForOverviewChartsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly users: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
    }>;
    readonly rules: ReadonlyArray<
      | {
          readonly __typename: 'ContentRule';
          readonly id: string;
          readonly name: string;
        }
      | {
          readonly __typename: 'UserRule';
          readonly id: string;
          readonly name: string;
        }
    >;
  } | null;
};

export type GQLViolationsPerPolicyQueryVariables = Exact<{
  input: GQLTopPolicyViolationsInput;
}>;

export type GQLViolationsPerPolicyQuery = {
  readonly __typename: 'Query';
  readonly topPolicyViolations: ReadonlyArray<{
    readonly __typename: 'PolicyViolationsCount';
    readonly count: number;
    readonly policyId: string;
  }>;
};

export type GQLPolicyFieldsFragment = {
  readonly __typename: 'Policy';
  readonly id: string;
  readonly name: string;
  readonly policyText?: string | null;
  readonly enforcementGuidelines?: string | null;
  readonly parentId?: string | null;
  readonly policyType?: GQLPolicyType | null;
  readonly userStrikeCount?: number | null;
  readonly applyUserStrikeCountConfigToChildren?: boolean | null;
};

export type GQLPoliciesQueryVariables = Exact<{ [key: string]: never }>;

export type GQLPoliciesQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
      readonly policyText?: string | null;
      readonly enforcementGuidelines?: string | null;
      readonly parentId?: string | null;
      readonly policyType?: GQLPolicyType | null;
      readonly userStrikeCount?: number | null;
      readonly applyUserStrikeCountConfigToChildren?: boolean | null;
    }>;
  } | null;
};

export type GQLPoliciesWithModelsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLPoliciesWithModelsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
      readonly policyText?: string | null;
      readonly enforcementGuidelines?: string | null;
      readonly parentId?: string | null;
      readonly policyType?: GQLPolicyType | null;
      readonly userStrikeCount?: number | null;
      readonly applyUserStrikeCountConfigToChildren?: boolean | null;
    }>;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLAddPoliciesMutationVariables = Exact<{
  policies: ReadonlyArray<GQLAddPolicyInput> | GQLAddPolicyInput;
}>;

export type GQLAddPoliciesMutation = {
  readonly __typename: 'Mutation';
  readonly addPolicies: {
    readonly __typename: 'AddPoliciesResponse';
    readonly failures: ReadonlyArray<string>;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
      readonly policyText?: string | null;
      readonly enforcementGuidelines?: string | null;
      readonly parentId?: string | null;
      readonly policyType?: GQLPolicyType | null;
      readonly userStrikeCount?: number | null;
      readonly applyUserStrikeCountConfigToChildren?: boolean | null;
    }>;
  };
};

export type GQLUpdatePolicyMutationVariables = Exact<{
  input: GQLUpdatePolicyInput;
}>;

export type GQLUpdatePolicyMutation = {
  readonly __typename: 'Mutation';
  readonly updatePolicy:
    | { readonly __typename: 'NotFoundError' }
    | {
        readonly __typename: 'Policy';
        readonly id: string;
        readonly name: string;
        readonly policyText?: string | null;
        readonly enforcementGuidelines?: string | null;
        readonly parentId?: string | null;
        readonly policyType?: GQLPolicyType | null;
        readonly userStrikeCount?: number | null;
        readonly applyUserStrikeCountConfigToChildren?: boolean | null;
      };
};

export type GQLDeletePolicyMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeletePolicyMutation = {
  readonly __typename: 'Mutation';
  readonly deletePolicy?: boolean | null;
};

export type GQLIsDemoOrgQueryVariables = Exact<{ [key: string]: never }>;

export type GQLIsDemoOrgQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly isDemoOrg: boolean;
  } | null;
};

export type GQLReportingRulesQueryVariables = Exact<{ [key: string]: never }>;

export type GQLReportingRulesQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly name: string;
    readonly reportingRules: ReadonlyArray<{
      readonly __typename: 'ReportingRule';
      readonly id: string;
      readonly name: string;
      readonly status: GQLReportingRuleStatus;
      readonly creator?: {
        readonly __typename: 'User';
        readonly firstName: string;
        readonly lastName: string;
      } | null;
      readonly policies: ReadonlyArray<{
        readonly __typename: 'Policy';
        readonly name: string;
      }>;
      readonly actions: ReadonlyArray<
        | {
            readonly __typename: 'CustomAction';
            readonly id: string;
            readonly name: string;
          }
        | {
            readonly __typename: 'EnqueueAuthorToMrtAction';
            readonly id: string;
            readonly name: string;
          }
        | {
            readonly __typename: 'EnqueueToMrtAction';
            readonly id: string;
            readonly name: string;
          }
        | {
            readonly __typename: 'EnqueueToNcmecAction';
            readonly id: string;
            readonly name: string;
          }
      >;
      readonly itemTypes: ReadonlyArray<
        | {
            readonly __typename: 'ContentItemType';
            readonly id: string;
            readonly name: string;
          }
        | {
            readonly __typename: 'ThreadItemType';
            readonly id: string;
            readonly name: string;
          }
        | {
            readonly __typename: 'UserItemType';
            readonly id: string;
            readonly name: string;
          }
      >;
    }>;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLCreateReportingRuleMutationVariables = Exact<{
  input: GQLCreateReportingRuleInput;
}>;

export type GQLCreateReportingRuleMutation = {
  readonly __typename: 'Mutation';
  readonly createReportingRule:
    | {
        readonly __typename: 'MutateReportingRuleSuccessResponse';
        readonly data: {
          readonly __typename: 'ReportingRule';
          readonly id: string;
        };
      }
    | {
        readonly __typename: 'ReportingRuleNameExistsError';
        readonly title: string;
      };
};

export type GQLUpdateReportingRuleMutationVariables = Exact<{
  input: GQLUpdateReportingRuleInput;
}>;

export type GQLUpdateReportingRuleMutation = {
  readonly __typename: 'Mutation';
  readonly updateReportingRule:
    | {
        readonly __typename: 'MutateReportingRuleSuccessResponse';
        readonly data: {
          readonly __typename: 'ReportingRule';
          readonly id: string;
        };
      }
    | { readonly __typename: 'NotFoundError'; readonly title: string }
    | {
        readonly __typename: 'ReportingRuleNameExistsError';
        readonly title: string;
      };
};

export type GQLDeleteReportingRuleMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteReportingRuleMutation = {
  readonly __typename: 'Mutation';
  readonly deleteReportingRule: boolean;
};

type GQLRulesDashboardRuleFieldsFragmentContentRuleFragment = {
  readonly __typename: 'ContentRule';
  readonly id: string;
  readonly name: string;
  readonly createdAt: string;
  readonly updatedAt: string;
  readonly status: GQLRuleStatus;
  readonly creator: {
    readonly __typename: 'User';
    readonly firstName: string;
    readonly lastName: string;
  };
  readonly policies: ReadonlyArray<{
    readonly __typename: 'Policy';
    readonly name: string;
  }>;
  readonly actions: ReadonlyArray<
    | {
        readonly __typename: 'CustomAction';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'EnqueueAuthorToMrtAction';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'EnqueueToMrtAction';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'EnqueueToNcmecAction';
        readonly id: string;
        readonly name: string;
      }
  >;
};

type GQLRulesDashboardRuleFieldsFragmentUserRuleFragment = {
  readonly __typename: 'UserRule';
  readonly id: string;
  readonly name: string;
  readonly createdAt: string;
  readonly updatedAt: string;
  readonly status: GQLRuleStatus;
  readonly creator: {
    readonly __typename: 'User';
    readonly firstName: string;
    readonly lastName: string;
  };
  readonly policies: ReadonlyArray<{
    readonly __typename: 'Policy';
    readonly name: string;
  }>;
  readonly actions: ReadonlyArray<
    | {
        readonly __typename: 'CustomAction';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'EnqueueAuthorToMrtAction';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'EnqueueToMrtAction';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'EnqueueToNcmecAction';
        readonly id: string;
        readonly name: string;
      }
  >;
};

export type GQLRulesDashboardRuleFieldsFragmentFragment =
  | GQLRulesDashboardRuleFieldsFragmentContentRuleFragment
  | GQLRulesDashboardRuleFieldsFragmentUserRuleFragment;

export type GQLRulesQueryVariables = Exact<{ [key: string]: never }>;

export type GQLRulesQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly name: string;
    readonly rules: ReadonlyArray<
      | {
          readonly __typename: 'ContentRule';
          readonly id: string;
          readonly name: string;
          readonly createdAt: string;
          readonly updatedAt: string;
          readonly status: GQLRuleStatus;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
          readonly conditionSet: {
            readonly __typename: 'ConditionSet';
            readonly conjunction: GQLConditionConjunction;
            readonly conditions: ReadonlyArray<
              | {
                  readonly __typename: 'ConditionSet';
                  readonly conjunction: GQLConditionConjunction;
                  readonly conditions: ReadonlyArray<
                    | { readonly __typename: 'ConditionSet' }
                    | {
                        readonly __typename: 'LeafCondition';
                        readonly comparator?: GQLValueComparator | null;
                        readonly threshold?: string | number | null;
                        readonly input: {
                          readonly __typename: 'ConditionInputField';
                          readonly type: GQLConditionInputInputType;
                          readonly name?: string | null;
                          readonly contentTypeId?: string | null;
                          readonly contentTypeIds?: ReadonlyArray<string> | null;
                          readonly spec?: {
                            readonly __typename: 'DerivedFieldSpec';
                            readonly derivationType: GQLDerivedFieldDerivationType;
                            readonly source:
                              | {
                                  readonly __typename: 'DerivedFieldCoopInputSource';
                                  readonly coopInput: GQLCoopInput;
                                }
                              | {
                                  readonly __typename: 'DerivedFieldFieldSource';
                                  readonly name: string;
                                  readonly contentTypeId: string;
                                }
                              | {
                                  readonly __typename: 'DerivedFieldFullItemSource';
                                  readonly _?: boolean | null;
                                };
                          } | null;
                        };
                        readonly signal?: {
                          readonly __typename: 'Signal';
                          readonly id: string;
                          readonly type: string;
                          readonly name: string;
                          readonly subcategory?: string | null;
                          readonly args?: {
                            readonly __typename: 'AggregationSignalArgs';
                          } | null;
                        } | null;
                        readonly matchingValues?: {
                          readonly __typename: 'MatchingValues';
                          readonly strings?: ReadonlyArray<string> | null;
                          readonly textBankIds?: ReadonlyArray<string> | null;
                          readonly locationBankIds?: ReadonlyArray<string> | null;
                          readonly imageBankIds?: ReadonlyArray<string> | null;
                          readonly locations?: ReadonlyArray<{
                            readonly __typename: 'LocationArea';
                            readonly id: string;
                            readonly name?: string | null;
                            readonly geometry: {
                              readonly __typename: 'LocationGeometry';
                              readonly radius: number;
                              readonly center: {
                                readonly __typename: 'LatLng';
                                readonly lat: number;
                                readonly lng: number;
                              };
                            };
                            readonly bounds?: {
                              readonly __typename: 'PlaceBounds';
                              readonly northeastCorner: {
                                readonly __typename: 'LatLng';
                                readonly lat: number;
                                readonly lng: number;
                              };
                              readonly southwestCorner: {
                                readonly __typename: 'LatLng';
                                readonly lat: number;
                                readonly lng: number;
                              };
                            } | null;
                          }> | null;
                        } | null;
                      }
                  >;
                }
              | {
                  readonly __typename: 'LeafCondition';
                  readonly comparator?: GQLValueComparator | null;
                  readonly threshold?: string | number | null;
                  readonly input: {
                    readonly __typename: 'ConditionInputField';
                    readonly type: GQLConditionInputInputType;
                    readonly name?: string | null;
                    readonly contentTypeId?: string | null;
                    readonly contentTypeIds?: ReadonlyArray<string> | null;
                    readonly spec?: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    } | null;
                  };
                  readonly signal?: {
                    readonly __typename: 'Signal';
                    readonly id: string;
                    readonly type: string;
                    readonly name: string;
                    readonly subcategory?: string | null;
                    readonly args?: {
                      readonly __typename: 'AggregationSignalArgs';
                    } | null;
                  } | null;
                  readonly matchingValues?: {
                    readonly __typename: 'MatchingValues';
                    readonly strings?: ReadonlyArray<string> | null;
                    readonly textBankIds?: ReadonlyArray<string> | null;
                    readonly locationBankIds?: ReadonlyArray<string> | null;
                    readonly imageBankIds?: ReadonlyArray<string> | null;
                    readonly locations?: ReadonlyArray<{
                      readonly __typename: 'LocationArea';
                      readonly id: string;
                      readonly name?: string | null;
                      readonly geometry: {
                        readonly __typename: 'LocationGeometry';
                        readonly radius: number;
                        readonly center: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                      };
                      readonly bounds?: {
                        readonly __typename: 'PlaceBounds';
                        readonly northeastCorner: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                        readonly southwestCorner: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                      } | null;
                    }> | null;
                  } | null;
                }
            >;
          };
          readonly creator: {
            readonly __typename: 'User';
            readonly firstName: string;
            readonly lastName: string;
          };
          readonly policies: ReadonlyArray<{
            readonly __typename: 'Policy';
            readonly name: string;
          }>;
          readonly actions: ReadonlyArray<
            | {
                readonly __typename: 'CustomAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueAuthorToMrtAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueToMrtAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueToNcmecAction';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'UserRule';
          readonly id: string;
          readonly name: string;
          readonly createdAt: string;
          readonly updatedAt: string;
          readonly status: GQLRuleStatus;
          readonly conditionSet: {
            readonly __typename: 'ConditionSet';
            readonly conjunction: GQLConditionConjunction;
            readonly conditions: ReadonlyArray<
              | {
                  readonly __typename: 'ConditionSet';
                  readonly conjunction: GQLConditionConjunction;
                  readonly conditions: ReadonlyArray<
                    | { readonly __typename: 'ConditionSet' }
                    | {
                        readonly __typename: 'LeafCondition';
                        readonly comparator?: GQLValueComparator | null;
                        readonly threshold?: string | number | null;
                        readonly input: {
                          readonly __typename: 'ConditionInputField';
                          readonly type: GQLConditionInputInputType;
                          readonly name?: string | null;
                          readonly contentTypeId?: string | null;
                          readonly contentTypeIds?: ReadonlyArray<string> | null;
                          readonly spec?: {
                            readonly __typename: 'DerivedFieldSpec';
                            readonly derivationType: GQLDerivedFieldDerivationType;
                            readonly source:
                              | {
                                  readonly __typename: 'DerivedFieldCoopInputSource';
                                  readonly coopInput: GQLCoopInput;
                                }
                              | {
                                  readonly __typename: 'DerivedFieldFieldSource';
                                  readonly name: string;
                                  readonly contentTypeId: string;
                                }
                              | {
                                  readonly __typename: 'DerivedFieldFullItemSource';
                                  readonly _?: boolean | null;
                                };
                          } | null;
                        };
                        readonly signal?: {
                          readonly __typename: 'Signal';
                          readonly id: string;
                          readonly type: string;
                          readonly name: string;
                          readonly subcategory?: string | null;
                          readonly args?: {
                            readonly __typename: 'AggregationSignalArgs';
                          } | null;
                        } | null;
                        readonly matchingValues?: {
                          readonly __typename: 'MatchingValues';
                          readonly strings?: ReadonlyArray<string> | null;
                          readonly textBankIds?: ReadonlyArray<string> | null;
                          readonly locationBankIds?: ReadonlyArray<string> | null;
                          readonly imageBankIds?: ReadonlyArray<string> | null;
                          readonly locations?: ReadonlyArray<{
                            readonly __typename: 'LocationArea';
                            readonly id: string;
                            readonly name?: string | null;
                            readonly geometry: {
                              readonly __typename: 'LocationGeometry';
                              readonly radius: number;
                              readonly center: {
                                readonly __typename: 'LatLng';
                                readonly lat: number;
                                readonly lng: number;
                              };
                            };
                            readonly bounds?: {
                              readonly __typename: 'PlaceBounds';
                              readonly northeastCorner: {
                                readonly __typename: 'LatLng';
                                readonly lat: number;
                                readonly lng: number;
                              };
                              readonly southwestCorner: {
                                readonly __typename: 'LatLng';
                                readonly lat: number;
                                readonly lng: number;
                              };
                            } | null;
                          }> | null;
                        } | null;
                      }
                  >;
                }
              | {
                  readonly __typename: 'LeafCondition';
                  readonly comparator?: GQLValueComparator | null;
                  readonly threshold?: string | number | null;
                  readonly input: {
                    readonly __typename: 'ConditionInputField';
                    readonly type: GQLConditionInputInputType;
                    readonly name?: string | null;
                    readonly contentTypeId?: string | null;
                    readonly contentTypeIds?: ReadonlyArray<string> | null;
                    readonly spec?: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    } | null;
                  };
                  readonly signal?: {
                    readonly __typename: 'Signal';
                    readonly id: string;
                    readonly type: string;
                    readonly name: string;
                    readonly subcategory?: string | null;
                    readonly args?: {
                      readonly __typename: 'AggregationSignalArgs';
                    } | null;
                  } | null;
                  readonly matchingValues?: {
                    readonly __typename: 'MatchingValues';
                    readonly strings?: ReadonlyArray<string> | null;
                    readonly textBankIds?: ReadonlyArray<string> | null;
                    readonly locationBankIds?: ReadonlyArray<string> | null;
                    readonly imageBankIds?: ReadonlyArray<string> | null;
                    readonly locations?: ReadonlyArray<{
                      readonly __typename: 'LocationArea';
                      readonly id: string;
                      readonly name?: string | null;
                      readonly geometry: {
                        readonly __typename: 'LocationGeometry';
                        readonly radius: number;
                        readonly center: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                      };
                      readonly bounds?: {
                        readonly __typename: 'PlaceBounds';
                        readonly northeastCorner: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                        readonly southwestCorner: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                      } | null;
                    }> | null;
                  } | null;
                }
            >;
          };
          readonly creator: {
            readonly __typename: 'User';
            readonly firstName: string;
            readonly lastName: string;
          };
          readonly policies: ReadonlyArray<{
            readonly __typename: 'Policy';
            readonly name: string;
          }>;
          readonly actions: ReadonlyArray<
            | {
                readonly __typename: 'CustomAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueAuthorToMrtAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueToMrtAction';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'EnqueueToNcmecAction';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
    >;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
    readonly favoriteRules: ReadonlyArray<
      | { readonly __typename: 'ContentRule'; readonly id: string }
      | { readonly __typename: 'UserRule'; readonly id: string }
    >;
  } | null;
};

export type GQLDeleteRuleMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteRuleMutation = {
  readonly __typename: 'Mutation';
  readonly deleteRule?: boolean | null;
};

export type GQLAddFavoriteRuleMutationVariables = Exact<{
  ruleId: Scalars['ID']['input'];
}>;

export type GQLAddFavoriteRuleMutation = {
  readonly __typename: 'Mutation';
  readonly addFavoriteRule: {
    readonly __typename: 'AddFavoriteRuleSuccessResponse';
    readonly _?: boolean | null;
  };
};

export type GQLRemoveFavoriteRuleMutationVariables = Exact<{
  ruleId: Scalars['ID']['input'];
}>;

export type GQLRemoveFavoriteRuleMutation = {
  readonly __typename: 'Mutation';
  readonly removeFavoriteRule: {
    readonly __typename: 'RemoveFavoriteRuleSuccessResponse';
    readonly _?: boolean | null;
  };
};

export type GQLRulesDashboardInsightsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLRulesDashboardInsightsQuery = {
  readonly __typename: 'Query';
  readonly allRuleInsights?: {
    readonly __typename: 'AllRuleInsights';
    readonly actionedSubmissionsByPolicyByDay: ReadonlyArray<{
      readonly __typename: 'CountByPolicyByDay';
      readonly date: Date | string;
      readonly count: number;
      readonly policy: {
        readonly __typename: 'CountByPolicyByDayPolicy';
        readonly name: string;
        readonly id: string;
      };
    }>;
    readonly actionedSubmissionsByTagByDay: ReadonlyArray<{
      readonly __typename: 'CountByTagByDay';
      readonly date: Date | string;
      readonly count: number;
      readonly tag: string;
    }>;
    readonly actionedSubmissionsByActionByDay: ReadonlyArray<{
      readonly __typename: 'CountByActionByDay';
      readonly date: Date | string;
      readonly count: number;
      readonly action: {
        readonly __typename: 'CountByActionByDayAction';
        readonly name: string;
      };
    }>;
    readonly actionedSubmissionsByDay: ReadonlyArray<{
      readonly __typename: 'CountByDay';
      readonly date: Date | string;
      readonly count: number;
    }>;
    readonly totalSubmissionsByDay: ReadonlyArray<{
      readonly __typename: 'CountByDay';
      readonly date: Date | string;
      readonly count: number;
    }>;
  } | null;
};

export type GQLPolicyRollupDataQueryVariables = Exact<{ [key: string]: never }>;

export type GQLPolicyRollupDataQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
      readonly parentId?: string | null;
    }>;
  } | null;
};

export type GQLActionStatisticsDataQueryVariables = Exact<{
  input: GQLActionStatisticsInput;
}>;

export type GQLActionStatisticsDataQuery = {
  readonly __typename: 'Query';
  readonly actionStatistics: ReadonlyArray<{
    readonly __typename: 'ActionData';
    readonly item_type_id?: string | null;
    readonly action_id?: string | null;
    readonly policy_id?: string | null;
    readonly rule_id?: string | null;
    readonly source?: string | null;
    readonly count: number;
    readonly time: string;
  }>;
};

export type GQLReportingRuleInfoQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLReportingRuleInfoQuery = {
  readonly __typename: 'Query';
  readonly reportingRule?: {
    readonly __typename: 'ReportingRule';
    readonly name: string;
  } | null;
};

export type GQLRuleInfoQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLRuleInfoQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
  readonly rule?:
    | { readonly __typename: 'ContentRule'; readonly name: string }
    | { readonly __typename: 'UserRule'; readonly name: string }
    | null;
};

export type GQLSpotTestRuleQueryVariables = Exact<{
  ruleId: Scalars['ID']['input'];
  item: GQLSpotTestItemInput;
}>;

export type GQLSpotTestRuleQuery = {
  readonly __typename: 'Query';
  readonly spotTestRule: {
    readonly __typename: 'RuleExecutionResult';
    readonly ts: Date | string;
    readonly contentId: string;
    readonly itemTypeName: string;
    readonly itemTypeId: string;
    readonly userId?: string | null;
    readonly userTypeId?: string | null;
    readonly content: string;
    readonly environment: GQLRuleEnvironment;
    readonly result?: {
      readonly __typename: 'ConditionSetWithResult';
      readonly conjunction?: GQLConditionConjunction | null;
      readonly conditions: ReadonlyArray<
        | {
            readonly __typename: 'ConditionSetWithResult';
            readonly conjunction?: GQLConditionConjunction | null;
            readonly conditions: ReadonlyArray<
              | { readonly __typename: 'ConditionSetWithResult' }
              | {
                  readonly __typename: 'LeafConditionWithResult';
                  readonly comparator?: GQLValueComparator | null;
                  readonly threshold?: string | number | null;
                  readonly input: {
                    readonly __typename: 'ConditionInputField';
                    readonly type: GQLConditionInputInputType;
                    readonly name?: string | null;
                    readonly contentTypeId?: string | null;
                    readonly spec?: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                    } | null;
                  };
                  readonly signal?: {
                    readonly __typename: 'Signal';
                    readonly id: string;
                    readonly type: string;
                    readonly name: string;
                    readonly subcategory?: string | null;
                    readonly args?: {
                      readonly __typename: 'AggregationSignalArgs';
                    } | null;
                  } | null;
                  readonly matchingValues?: {
                    readonly __typename: 'MatchingValues';
                    readonly strings?: ReadonlyArray<string> | null;
                    readonly textBankIds?: ReadonlyArray<string> | null;
                    readonly locationBankIds?: ReadonlyArray<string> | null;
                    readonly imageBankIds?: ReadonlyArray<string> | null;
                    readonly locations?: ReadonlyArray<{
                      readonly __typename: 'LocationArea';
                      readonly id: string;
                      readonly name?: string | null;
                      readonly geometry: {
                        readonly __typename: 'LocationGeometry';
                        readonly radius: number;
                        readonly center: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                      };
                      readonly bounds?: {
                        readonly __typename: 'PlaceBounds';
                        readonly northeastCorner: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                        readonly southwestCorner: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                      } | null;
                      readonly googlePlaceInfo?: {
                        readonly __typename: 'GooglePlaceLocationInfo';
                        readonly id: string;
                      } | null;
                    }> | null;
                  } | null;
                  readonly result?: {
                    readonly __typename: 'ConditionResult';
                    readonly outcome: GQLConditionOutcome;
                    readonly score?: string | null;
                    readonly matchedValue?: string | null;
                  } | null;
                }
            >;
            readonly result?: {
              readonly __typename: 'ConditionResult';
              readonly outcome: GQLConditionOutcome;
              readonly score?: string | null;
              readonly matchedValue?: string | null;
            } | null;
          }
        | {
            readonly __typename: 'LeafConditionWithResult';
            readonly comparator?: GQLValueComparator | null;
            readonly threshold?: string | number | null;
            readonly input: {
              readonly __typename: 'ConditionInputField';
              readonly type: GQLConditionInputInputType;
              readonly name?: string | null;
              readonly contentTypeId?: string | null;
              readonly spec?: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
              } | null;
            };
            readonly signal?: {
              readonly __typename: 'Signal';
              readonly id: string;
              readonly type: string;
              readonly name: string;
              readonly subcategory?: string | null;
              readonly args?: {
                readonly __typename: 'AggregationSignalArgs';
              } | null;
            } | null;
            readonly matchingValues?: {
              readonly __typename: 'MatchingValues';
              readonly strings?: ReadonlyArray<string> | null;
              readonly textBankIds?: ReadonlyArray<string> | null;
              readonly locationBankIds?: ReadonlyArray<string> | null;
              readonly imageBankIds?: ReadonlyArray<string> | null;
              readonly locations?: ReadonlyArray<{
                readonly __typename: 'LocationArea';
                readonly id: string;
                readonly name?: string | null;
                readonly geometry: {
                  readonly __typename: 'LocationGeometry';
                  readonly radius: number;
                  readonly center: {
                    readonly __typename: 'LatLng';
                    readonly lat: number;
                    readonly lng: number;
                  };
                };
                readonly bounds?: {
                  readonly __typename: 'PlaceBounds';
                  readonly northeastCorner: {
                    readonly __typename: 'LatLng';
                    readonly lat: number;
                    readonly lng: number;
                  };
                  readonly southwestCorner: {
                    readonly __typename: 'LatLng';
                    readonly lat: number;
                    readonly lng: number;
                  };
                } | null;
                readonly googlePlaceInfo?: {
                  readonly __typename: 'GooglePlaceLocationInfo';
                  readonly id: string;
                } | null;
              }> | null;
            } | null;
            readonly result?: {
              readonly __typename: 'ConditionResult';
              readonly outcome: GQLConditionOutcome;
              readonly score?: string | null;
              readonly matchedValue?: string | null;
            } | null;
          }
      >;
      readonly result?: {
        readonly __typename: 'ConditionResult';
        readonly outcome: GQLConditionOutcome;
        readonly score?: string | null;
        readonly matchedValue?: string | null;
      } | null;
    } | null;
    readonly signalResults?: ReadonlyArray<{
      readonly __typename: 'SignalWithScore';
      readonly signalName: string;
      readonly integration?: string | null;
      readonly subcategory?: string | null;
      readonly score: string;
    }> | null;
  };
};

export type GQLReportingRulePassRateAnalyticsQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLReportingRulePassRateAnalyticsQuery = {
  readonly __typename: 'Query';
  readonly rule?:
    | {
        readonly __typename: 'ContentRule';
        readonly insights: {
          readonly __typename: 'RuleInsights';
          readonly passRateData?: ReadonlyArray<{
            readonly __typename: 'RulePassRateData';
            readonly date: string;
            readonly totalMatches: number;
            readonly totalRequests: number;
          } | null> | null;
        };
      }
    | {
        readonly __typename: 'UserRule';
        readonly insights: {
          readonly __typename: 'RuleInsights';
          readonly passRateData?: ReadonlyArray<{
            readonly __typename: 'RulePassRateData';
            readonly date: string;
            readonly totalMatches: number;
            readonly totalRequests: number;
          } | null> | null;
        };
      }
    | null;
};

export type GQLSampleReportingRuleExecutionResultFieldsFragment = {
  readonly __typename: 'ReportingRuleExecutionResult';
  readonly ts: Date | string;
  readonly itemId: string;
  readonly itemTypeName: string;
  readonly itemTypeId: string;
  readonly creatorId?: string | null;
  readonly creatorTypeId?: string | null;
  readonly itemData: string;
  readonly environment: GQLRuleEnvironment;
  readonly signalResults?: ReadonlyArray<{
    readonly __typename: 'SignalWithScore';
    readonly signalName: string;
    readonly integration?: string | null;
    readonly subcategory?: string | null;
    readonly score: string;
  }> | null;
};

export type GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables =
  Exact<{
    id: Scalars['ID']['input'];
  }>;

export type GQLReportingRuleInsightsCurrentVersionSamplesQuery = {
  readonly __typename: 'Query';
  readonly reportingRule?: {
    readonly __typename: 'ReportingRule';
    readonly id: string;
    readonly name: string;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
        }
    >;
    readonly insights: {
      readonly __typename: 'ReportingRuleInsights';
      readonly samples: ReadonlyArray<{
        readonly __typename: 'ReportingRuleExecutionResult';
        readonly ts: Date | string;
        readonly itemId: string;
        readonly itemTypeName: string;
        readonly itemTypeId: string;
        readonly creatorId?: string | null;
        readonly creatorTypeId?: string | null;
        readonly itemData: string;
        readonly environment: GQLRuleEnvironment;
        readonly signalResults?: ReadonlyArray<{
          readonly __typename: 'SignalWithScore';
          readonly signalName: string;
          readonly integration?: string | null;
          readonly subcategory?: string | null;
          readonly score: string;
        }> | null;
      }>;
    };
  } | null;
};

export type GQLReportingRuleInsightsPriorVersionSamplesQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLReportingRuleInsightsPriorVersionSamplesQuery = {
  readonly __typename: 'Query';
  readonly reportingRule?: {
    readonly __typename: 'ReportingRule';
    readonly name: string;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly name: string;
            readonly type: GQLFieldType;
          }>;
        }
    >;
    readonly insights: {
      readonly __typename: 'ReportingRuleInsights';
      readonly samples: ReadonlyArray<{
        readonly __typename: 'ReportingRuleExecutionResult';
        readonly ts: Date | string;
        readonly itemId: string;
        readonly itemTypeName: string;
        readonly itemTypeId: string;
        readonly creatorId?: string | null;
        readonly creatorTypeId?: string | null;
        readonly itemData: string;
        readonly environment: GQLRuleEnvironment;
        readonly signalResults?: ReadonlyArray<{
          readonly __typename: 'SignalWithScore';
          readonly signalName: string;
          readonly integration?: string | null;
          readonly subcategory?: string | null;
          readonly score: string;
        }> | null;
      }>;
    };
  } | null;
};

export type GQLRulePassRateAnalyticsQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLRulePassRateAnalyticsQuery = {
  readonly __typename: 'Query';
  readonly rule?:
    | {
        readonly __typename: 'ContentRule';
        readonly insights: {
          readonly __typename: 'RuleInsights';
          readonly passRateData?: ReadonlyArray<{
            readonly __typename: 'RulePassRateData';
            readonly date: string;
            readonly totalMatches: number;
            readonly totalRequests: number;
          } | null> | null;
        };
      }
    | {
        readonly __typename: 'UserRule';
        readonly insights: {
          readonly __typename: 'RuleInsights';
          readonly passRateData?: ReadonlyArray<{
            readonly __typename: 'RulePassRateData';
            readonly date: string;
            readonly totalMatches: number;
            readonly totalRequests: number;
          } | null> | null;
        };
      }
    | null;
  readonly allRuleInsights?: {
    readonly __typename: 'AllRuleInsights';
    readonly totalSubmissionsByDay: ReadonlyArray<{
      readonly __typename: 'CountByDay';
      readonly date: Date | string;
      readonly count: number;
    }>;
  } | null;
};

export type GQLLeafConditionWithResultFieldsFragment = {
  readonly __typename: 'LeafConditionWithResult';
  readonly comparator?: GQLValueComparator | null;
  readonly threshold?: string | number | null;
  readonly input: {
    readonly __typename: 'ConditionInputField';
    readonly type: GQLConditionInputInputType;
    readonly name?: string | null;
    readonly contentTypeId?: string | null;
    readonly spec?: {
      readonly __typename: 'DerivedFieldSpec';
      readonly derivationType: GQLDerivedFieldDerivationType;
    } | null;
  };
  readonly signal?: {
    readonly __typename: 'Signal';
    readonly id: string;
    readonly type: string;
    readonly name: string;
    readonly subcategory?: string | null;
    readonly args?: { readonly __typename: 'AggregationSignalArgs' } | null;
  } | null;
  readonly matchingValues?: {
    readonly __typename: 'MatchingValues';
    readonly strings?: ReadonlyArray<string> | null;
    readonly textBankIds?: ReadonlyArray<string> | null;
    readonly locationBankIds?: ReadonlyArray<string> | null;
    readonly imageBankIds?: ReadonlyArray<string> | null;
    readonly locations?: ReadonlyArray<{
      readonly __typename: 'LocationArea';
      readonly id: string;
      readonly name?: string | null;
      readonly geometry: {
        readonly __typename: 'LocationGeometry';
        readonly radius: number;
        readonly center: {
          readonly __typename: 'LatLng';
          readonly lat: number;
          readonly lng: number;
        };
      };
      readonly bounds?: {
        readonly __typename: 'PlaceBounds';
        readonly northeastCorner: {
          readonly __typename: 'LatLng';
          readonly lat: number;
          readonly lng: number;
        };
        readonly southwestCorner: {
          readonly __typename: 'LatLng';
          readonly lat: number;
          readonly lng: number;
        };
      } | null;
      readonly googlePlaceInfo?: {
        readonly __typename: 'GooglePlaceLocationInfo';
        readonly id: string;
      } | null;
    }> | null;
  } | null;
  readonly result?: {
    readonly __typename: 'ConditionResult';
    readonly outcome: GQLConditionOutcome;
    readonly score?: string | null;
    readonly matchedValue?: string | null;
  } | null;
};

export type GQLSampleRuleExecutionResultFieldsFragment = {
  readonly __typename: 'RuleExecutionResult';
  readonly ts: Date | string;
  readonly contentId: string;
  readonly itemTypeName: string;
  readonly itemTypeId: string;
  readonly userId?: string | null;
  readonly userTypeId?: string | null;
  readonly content: string;
  readonly environment: GQLRuleEnvironment;
  readonly signalResults?: ReadonlyArray<{
    readonly __typename: 'SignalWithScore';
    readonly signalName: string;
    readonly integration?: string | null;
    readonly subcategory?: string | null;
    readonly score: string;
  }> | null;
};

export type GQLSampleRuleExecutionResultConditionResultFieldsFragment = {
  readonly __typename: 'ConditionSetWithResult';
  readonly conjunction?: GQLConditionConjunction | null;
  readonly conditions: ReadonlyArray<
    | {
        readonly __typename: 'ConditionSetWithResult';
        readonly conjunction?: GQLConditionConjunction | null;
        readonly conditions: ReadonlyArray<
          | { readonly __typename: 'ConditionSetWithResult' }
          | {
              readonly __typename: 'LeafConditionWithResult';
              readonly comparator?: GQLValueComparator | null;
              readonly threshold?: string | number | null;
              readonly input: {
                readonly __typename: 'ConditionInputField';
                readonly type: GQLConditionInputInputType;
                readonly name?: string | null;
                readonly contentTypeId?: string | null;
                readonly spec?: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                } | null;
              };
              readonly signal?: {
                readonly __typename: 'Signal';
                readonly id: string;
                readonly type: string;
                readonly name: string;
                readonly subcategory?: string | null;
                readonly args?: {
                  readonly __typename: 'AggregationSignalArgs';
                } | null;
              } | null;
              readonly matchingValues?: {
                readonly __typename: 'MatchingValues';
                readonly strings?: ReadonlyArray<string> | null;
                readonly textBankIds?: ReadonlyArray<string> | null;
                readonly locationBankIds?: ReadonlyArray<string> | null;
                readonly imageBankIds?: ReadonlyArray<string> | null;
                readonly locations?: ReadonlyArray<{
                  readonly __typename: 'LocationArea';
                  readonly id: string;
                  readonly name?: string | null;
                  readonly geometry: {
                    readonly __typename: 'LocationGeometry';
                    readonly radius: number;
                    readonly center: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                  };
                  readonly bounds?: {
                    readonly __typename: 'PlaceBounds';
                    readonly northeastCorner: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                    readonly southwestCorner: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                  } | null;
                  readonly googlePlaceInfo?: {
                    readonly __typename: 'GooglePlaceLocationInfo';
                    readonly id: string;
                  } | null;
                }> | null;
              } | null;
              readonly result?: {
                readonly __typename: 'ConditionResult';
                readonly outcome: GQLConditionOutcome;
                readonly score?: string | null;
                readonly matchedValue?: string | null;
              } | null;
            }
        >;
        readonly result?: {
          readonly __typename: 'ConditionResult';
          readonly outcome: GQLConditionOutcome;
          readonly score?: string | null;
          readonly matchedValue?: string | null;
        } | null;
      }
    | {
        readonly __typename: 'LeafConditionWithResult';
        readonly comparator?: GQLValueComparator | null;
        readonly threshold?: string | number | null;
        readonly input: {
          readonly __typename: 'ConditionInputField';
          readonly type: GQLConditionInputInputType;
          readonly name?: string | null;
          readonly contentTypeId?: string | null;
          readonly spec?: {
            readonly __typename: 'DerivedFieldSpec';
            readonly derivationType: GQLDerivedFieldDerivationType;
          } | null;
        };
        readonly signal?: {
          readonly __typename: 'Signal';
          readonly id: string;
          readonly type: string;
          readonly name: string;
          readonly subcategory?: string | null;
          readonly args?: {
            readonly __typename: 'AggregationSignalArgs';
          } | null;
        } | null;
        readonly matchingValues?: {
          readonly __typename: 'MatchingValues';
          readonly strings?: ReadonlyArray<string> | null;
          readonly textBankIds?: ReadonlyArray<string> | null;
          readonly locationBankIds?: ReadonlyArray<string> | null;
          readonly imageBankIds?: ReadonlyArray<string> | null;
          readonly locations?: ReadonlyArray<{
            readonly __typename: 'LocationArea';
            readonly id: string;
            readonly name?: string | null;
            readonly geometry: {
              readonly __typename: 'LocationGeometry';
              readonly radius: number;
              readonly center: {
                readonly __typename: 'LatLng';
                readonly lat: number;
                readonly lng: number;
              };
            };
            readonly bounds?: {
              readonly __typename: 'PlaceBounds';
              readonly northeastCorner: {
                readonly __typename: 'LatLng';
                readonly lat: number;
                readonly lng: number;
              };
              readonly southwestCorner: {
                readonly __typename: 'LatLng';
                readonly lat: number;
                readonly lng: number;
              };
            } | null;
            readonly googlePlaceInfo?: {
              readonly __typename: 'GooglePlaceLocationInfo';
              readonly id: string;
            } | null;
          }> | null;
        } | null;
        readonly result?: {
          readonly __typename: 'ConditionResult';
          readonly outcome: GQLConditionOutcome;
          readonly score?: string | null;
          readonly matchedValue?: string | null;
        } | null;
      }
  >;
  readonly result?: {
    readonly __typename: 'ConditionResult';
    readonly outcome: GQLConditionOutcome;
    readonly score?: string | null;
    readonly matchedValue?: string | null;
  } | null;
};

export type GQLRuleInsightsTableAllSignalsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLRuleInsightsTableAllSignalsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly signals: ReadonlyArray<{
      readonly __typename: 'Signal';
      readonly id: string;
      readonly integration?: string | null;
      readonly eligibleSubcategories: ReadonlyArray<{
        readonly __typename: 'SignalSubcategory';
        readonly id: string;
        readonly label: string;
      }>;
    }>;
  } | null;
};

export type GQLRuleInsightsCurrentVersionSamplesQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLRuleInsightsCurrentVersionSamplesQuery = {
  readonly __typename: 'Query';
  readonly rule?:
    | {
        readonly __typename: 'ContentRule';
        readonly name: string;
        readonly insights: {
          readonly __typename: 'RuleInsights';
          readonly samples: ReadonlyArray<{
            readonly __typename: 'RuleExecutionResult';
            readonly ts: Date | string;
            readonly contentId: string;
            readonly itemTypeName: string;
            readonly itemTypeId: string;
            readonly userId?: string | null;
            readonly userTypeId?: string | null;
            readonly content: string;
            readonly environment: GQLRuleEnvironment;
            readonly signalResults?: ReadonlyArray<{
              readonly __typename: 'SignalWithScore';
              readonly signalName: string;
              readonly integration?: string | null;
              readonly subcategory?: string | null;
              readonly score: string;
            }> | null;
          }>;
        };
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly type: GQLFieldType;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly name: string;
                readonly type: GQLFieldType;
              }>;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly type: GQLFieldType;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly name: string;
                readonly type: GQLFieldType;
              }>;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly type: GQLFieldType;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly name: string;
                readonly type: GQLFieldType;
              }>;
            }
        >;
      }
    | {
        readonly __typename: 'UserRule';
        readonly name: string;
        readonly insights: {
          readonly __typename: 'RuleInsights';
          readonly samples: ReadonlyArray<{
            readonly __typename: 'RuleExecutionResult';
            readonly ts: Date | string;
            readonly contentId: string;
            readonly itemTypeName: string;
            readonly itemTypeId: string;
            readonly userId?: string | null;
            readonly userTypeId?: string | null;
            readonly content: string;
            readonly environment: GQLRuleEnvironment;
            readonly signalResults?: ReadonlyArray<{
              readonly __typename: 'SignalWithScore';
              readonly signalName: string;
              readonly integration?: string | null;
              readonly subcategory?: string | null;
              readonly score: string;
            }> | null;
          }>;
        };
      }
    | null;
};

export type GQLRuleInsightsPriorVersionSamplesQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLRuleInsightsPriorVersionSamplesQuery = {
  readonly __typename: 'Query';
  readonly rule?:
    | {
        readonly __typename: 'ContentRule';
        readonly name: string;
        readonly insights: {
          readonly __typename: 'RuleInsights';
          readonly samples: ReadonlyArray<{
            readonly __typename: 'RuleExecutionResult';
            readonly ts: Date | string;
            readonly contentId: string;
            readonly itemTypeName: string;
            readonly itemTypeId: string;
            readonly userId?: string | null;
            readonly userTypeId?: string | null;
            readonly content: string;
            readonly environment: GQLRuleEnvironment;
            readonly signalResults?: ReadonlyArray<{
              readonly __typename: 'SignalWithScore';
              readonly signalName: string;
              readonly integration?: string | null;
              readonly subcategory?: string | null;
              readonly score: string;
            }> | null;
          }>;
        };
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly name: string;
              readonly id: string;
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly name: string;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly name: string;
              readonly id: string;
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly name: string;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly name: string;
              readonly id: string;
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly name: string;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
            }
        >;
      }
    | {
        readonly __typename: 'UserRule';
        readonly name: string;
        readonly insights: {
          readonly __typename: 'RuleInsights';
          readonly samples: ReadonlyArray<{
            readonly __typename: 'RuleExecutionResult';
            readonly ts: Date | string;
            readonly contentId: string;
            readonly itemTypeName: string;
            readonly itemTypeId: string;
            readonly userId?: string | null;
            readonly userTypeId?: string | null;
            readonly content: string;
            readonly environment: GQLRuleEnvironment;
            readonly signalResults?: ReadonlyArray<{
              readonly __typename: 'SignalWithScore';
              readonly signalName: string;
              readonly integration?: string | null;
              readonly subcategory?: string | null;
              readonly score: string;
            }> | null;
          }>;
        };
      }
    | null;
};

export type GQLGetFullResultForRuleQueryVariables = Exact<{
  input: GQLGetFullResultForItemInput;
}>;

export type GQLGetFullResultForRuleQuery = {
  readonly __typename: 'Query';
  readonly getFullRuleResultForItem:
    | { readonly __typename: 'NotFoundError'; readonly title: string }
    | {
        readonly __typename: 'RuleExecutionResult';
        readonly ts: Date | string;
        readonly contentId: string;
        readonly itemTypeName: string;
        readonly itemTypeId: string;
        readonly userId?: string | null;
        readonly userTypeId?: string | null;
        readonly content: string;
        readonly environment: GQLRuleEnvironment;
        readonly result?: {
          readonly __typename: 'ConditionSetWithResult';
          readonly conjunction?: GQLConditionConjunction | null;
          readonly conditions: ReadonlyArray<
            | {
                readonly __typename: 'ConditionSetWithResult';
                readonly conjunction?: GQLConditionConjunction | null;
                readonly conditions: ReadonlyArray<
                  | { readonly __typename: 'ConditionSetWithResult' }
                  | {
                      readonly __typename: 'LeafConditionWithResult';
                      readonly comparator?: GQLValueComparator | null;
                      readonly threshold?: string | number | null;
                      readonly input: {
                        readonly __typename: 'ConditionInputField';
                        readonly type: GQLConditionInputInputType;
                        readonly name?: string | null;
                        readonly contentTypeId?: string | null;
                        readonly spec?: {
                          readonly __typename: 'DerivedFieldSpec';
                          readonly derivationType: GQLDerivedFieldDerivationType;
                        } | null;
                      };
                      readonly signal?: {
                        readonly __typename: 'Signal';
                        readonly id: string;
                        readonly type: string;
                        readonly name: string;
                        readonly subcategory?: string | null;
                        readonly args?: {
                          readonly __typename: 'AggregationSignalArgs';
                        } | null;
                      } | null;
                      readonly matchingValues?: {
                        readonly __typename: 'MatchingValues';
                        readonly strings?: ReadonlyArray<string> | null;
                        readonly textBankIds?: ReadonlyArray<string> | null;
                        readonly locationBankIds?: ReadonlyArray<string> | null;
                        readonly imageBankIds?: ReadonlyArray<string> | null;
                        readonly locations?: ReadonlyArray<{
                          readonly __typename: 'LocationArea';
                          readonly id: string;
                          readonly name?: string | null;
                          readonly geometry: {
                            readonly __typename: 'LocationGeometry';
                            readonly radius: number;
                            readonly center: {
                              readonly __typename: 'LatLng';
                              readonly lat: number;
                              readonly lng: number;
                            };
                          };
                          readonly bounds?: {
                            readonly __typename: 'PlaceBounds';
                            readonly northeastCorner: {
                              readonly __typename: 'LatLng';
                              readonly lat: number;
                              readonly lng: number;
                            };
                            readonly southwestCorner: {
                              readonly __typename: 'LatLng';
                              readonly lat: number;
                              readonly lng: number;
                            };
                          } | null;
                          readonly googlePlaceInfo?: {
                            readonly __typename: 'GooglePlaceLocationInfo';
                            readonly id: string;
                          } | null;
                        }> | null;
                      } | null;
                      readonly result?: {
                        readonly __typename: 'ConditionResult';
                        readonly outcome: GQLConditionOutcome;
                        readonly score?: string | null;
                        readonly matchedValue?: string | null;
                      } | null;
                    }
                >;
                readonly result?: {
                  readonly __typename: 'ConditionResult';
                  readonly outcome: GQLConditionOutcome;
                  readonly score?: string | null;
                  readonly matchedValue?: string | null;
                } | null;
              }
            | {
                readonly __typename: 'LeafConditionWithResult';
                readonly comparator?: GQLValueComparator | null;
                readonly threshold?: string | number | null;
                readonly input: {
                  readonly __typename: 'ConditionInputField';
                  readonly type: GQLConditionInputInputType;
                  readonly name?: string | null;
                  readonly contentTypeId?: string | null;
                  readonly spec?: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                  } | null;
                };
                readonly signal?: {
                  readonly __typename: 'Signal';
                  readonly id: string;
                  readonly type: string;
                  readonly name: string;
                  readonly subcategory?: string | null;
                  readonly args?: {
                    readonly __typename: 'AggregationSignalArgs';
                  } | null;
                } | null;
                readonly matchingValues?: {
                  readonly __typename: 'MatchingValues';
                  readonly strings?: ReadonlyArray<string> | null;
                  readonly textBankIds?: ReadonlyArray<string> | null;
                  readonly locationBankIds?: ReadonlyArray<string> | null;
                  readonly imageBankIds?: ReadonlyArray<string> | null;
                  readonly locations?: ReadonlyArray<{
                    readonly __typename: 'LocationArea';
                    readonly id: string;
                    readonly name?: string | null;
                    readonly geometry: {
                      readonly __typename: 'LocationGeometry';
                      readonly radius: number;
                      readonly center: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    };
                    readonly bounds?: {
                      readonly __typename: 'PlaceBounds';
                      readonly northeastCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                      readonly southwestCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    } | null;
                    readonly googlePlaceInfo?: {
                      readonly __typename: 'GooglePlaceLocationInfo';
                      readonly id: string;
                    } | null;
                  }> | null;
                } | null;
                readonly result?: {
                  readonly __typename: 'ConditionResult';
                  readonly outcome: GQLConditionOutcome;
                  readonly score?: string | null;
                  readonly matchedValue?: string | null;
                } | null;
              }
          >;
          readonly result?: {
            readonly __typename: 'ConditionResult';
            readonly outcome: GQLConditionOutcome;
            readonly score?: string | null;
            readonly matchedValue?: string | null;
          } | null;
        } | null;
        readonly signalResults?: ReadonlyArray<{
          readonly __typename: 'SignalWithScore';
          readonly signalName: string;
          readonly integration?: string | null;
          readonly subcategory?: string | null;
          readonly score: string;
        }> | null;
      };
};

export type GQLMatchingBankNamesQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLMatchingBankNamesQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly banks?: {
      readonly __typename: 'MatchingBanks';
      readonly textBanks: ReadonlyArray<{
        readonly __typename: 'TextBank';
        readonly id: string;
        readonly name: string;
      }>;
      readonly locationBanks: ReadonlyArray<{
        readonly __typename: 'LocationBank';
        readonly id: string;
        readonly name: string;
      }>;
      readonly hashBanks: ReadonlyArray<{
        readonly __typename: 'HashBank';
        readonly id: string;
        readonly name: string;
      }>;
    } | null;
  } | null;
};

export type GQLReportingRuleFormRuleFieldsFragmentFragment = {
  readonly __typename: 'ReportingRule';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly status: GQLReportingRuleStatus;
  readonly policies: ReadonlyArray<{
    readonly __typename: 'Policy';
    readonly id: string;
  }>;
  readonly conditionSet: {
    readonly __typename: 'ConditionSet';
    readonly conjunction: GQLConditionConjunction;
    readonly conditions: ReadonlyArray<
      | {
          readonly __typename: 'ConditionSet';
          readonly conjunction: GQLConditionConjunction;
          readonly conditions: ReadonlyArray<
            | { readonly __typename: 'ConditionSet' }
            | {
                readonly __typename: 'LeafCondition';
                readonly comparator?: GQLValueComparator | null;
                readonly threshold?: string | number | null;
                readonly input: {
                  readonly __typename: 'ConditionInputField';
                  readonly type: GQLConditionInputInputType;
                  readonly name?: string | null;
                  readonly contentTypeId?: string | null;
                  readonly contentTypeIds?: ReadonlyArray<string> | null;
                  readonly spec?: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  } | null;
                };
                readonly signal?: {
                  readonly __typename: 'Signal';
                  readonly id: string;
                  readonly type: string;
                  readonly name: string;
                  readonly subcategory?: string | null;
                  readonly args?: {
                    readonly __typename: 'AggregationSignalArgs';
                  } | null;
                } | null;
                readonly matchingValues?: {
                  readonly __typename: 'MatchingValues';
                  readonly strings?: ReadonlyArray<string> | null;
                  readonly textBankIds?: ReadonlyArray<string> | null;
                  readonly locationBankIds?: ReadonlyArray<string> | null;
                  readonly imageBankIds?: ReadonlyArray<string> | null;
                  readonly locations?: ReadonlyArray<{
                    readonly __typename: 'LocationArea';
                    readonly id: string;
                    readonly name?: string | null;
                    readonly geometry: {
                      readonly __typename: 'LocationGeometry';
                      readonly radius: number;
                      readonly center: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    };
                    readonly bounds?: {
                      readonly __typename: 'PlaceBounds';
                      readonly northeastCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                      readonly southwestCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    } | null;
                  }> | null;
                } | null;
              }
          >;
        }
      | {
          readonly __typename: 'LeafCondition';
          readonly comparator?: GQLValueComparator | null;
          readonly threshold?: string | number | null;
          readonly input: {
            readonly __typename: 'ConditionInputField';
            readonly type: GQLConditionInputInputType;
            readonly name?: string | null;
            readonly contentTypeId?: string | null;
            readonly contentTypeIds?: ReadonlyArray<string> | null;
            readonly spec?: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            } | null;
          };
          readonly signal?: {
            readonly __typename: 'Signal';
            readonly id: string;
            readonly type: string;
            readonly name: string;
            readonly subcategory?: string | null;
            readonly args?: {
              readonly __typename: 'AggregationSignalArgs';
            } | null;
          } | null;
          readonly matchingValues?: {
            readonly __typename: 'MatchingValues';
            readonly strings?: ReadonlyArray<string> | null;
            readonly textBankIds?: ReadonlyArray<string> | null;
            readonly locationBankIds?: ReadonlyArray<string> | null;
            readonly imageBankIds?: ReadonlyArray<string> | null;
            readonly locations?: ReadonlyArray<{
              readonly __typename: 'LocationArea';
              readonly id: string;
              readonly name?: string | null;
              readonly geometry: {
                readonly __typename: 'LocationGeometry';
                readonly radius: number;
                readonly center: {
                  readonly __typename: 'LatLng';
                  readonly lat: number;
                  readonly lng: number;
                };
              };
              readonly bounds?: {
                readonly __typename: 'PlaceBounds';
                readonly northeastCorner: {
                  readonly __typename: 'LatLng';
                  readonly lat: number;
                  readonly lng: number;
                };
                readonly southwestCorner: {
                  readonly __typename: 'LatLng';
                  readonly lat: number;
                  readonly lng: number;
                };
              } | null;
            }> | null;
          } | null;
        }
    >;
  };
  readonly actions: ReadonlyArray<
    | {
        readonly __typename: 'CustomAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
    | {
        readonly __typename: 'EnqueueAuthorToMrtAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
    | {
        readonly __typename: 'EnqueueToMrtAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
    | {
        readonly __typename: 'EnqueueToNcmecAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
  >;
};

export type GQLReportingRuleQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLReportingRuleQuery = {
  readonly __typename: 'Query';
  readonly reportingRule?: {
    readonly __typename: 'ReportingRule';
    readonly id: string;
    readonly name: string;
    readonly description?: string | null;
    readonly status: GQLReportingRuleStatus;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ContentSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly parentId?: string | null;
            readonly threadId?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ThreadSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
            readonly backgroundImage?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
    >;
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
    }>;
    readonly conditionSet: {
      readonly __typename: 'ConditionSet';
      readonly conjunction: GQLConditionConjunction;
      readonly conditions: ReadonlyArray<
        | {
            readonly __typename: 'ConditionSet';
            readonly conjunction: GQLConditionConjunction;
            readonly conditions: ReadonlyArray<
              | { readonly __typename: 'ConditionSet' }
              | {
                  readonly __typename: 'LeafCondition';
                  readonly comparator?: GQLValueComparator | null;
                  readonly threshold?: string | number | null;
                  readonly input: {
                    readonly __typename: 'ConditionInputField';
                    readonly type: GQLConditionInputInputType;
                    readonly name?: string | null;
                    readonly contentTypeId?: string | null;
                    readonly contentTypeIds?: ReadonlyArray<string> | null;
                    readonly spec?: {
                      readonly __typename: 'DerivedFieldSpec';
                      readonly derivationType: GQLDerivedFieldDerivationType;
                      readonly source:
                        | {
                            readonly __typename: 'DerivedFieldCoopInputSource';
                            readonly coopInput: GQLCoopInput;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFieldSource';
                            readonly name: string;
                            readonly contentTypeId: string;
                          }
                        | {
                            readonly __typename: 'DerivedFieldFullItemSource';
                            readonly _?: boolean | null;
                          };
                    } | null;
                  };
                  readonly signal?: {
                    readonly __typename: 'Signal';
                    readonly id: string;
                    readonly type: string;
                    readonly name: string;
                    readonly subcategory?: string | null;
                    readonly args?: {
                      readonly __typename: 'AggregationSignalArgs';
                    } | null;
                  } | null;
                  readonly matchingValues?: {
                    readonly __typename: 'MatchingValues';
                    readonly strings?: ReadonlyArray<string> | null;
                    readonly textBankIds?: ReadonlyArray<string> | null;
                    readonly locationBankIds?: ReadonlyArray<string> | null;
                    readonly imageBankIds?: ReadonlyArray<string> | null;
                    readonly locations?: ReadonlyArray<{
                      readonly __typename: 'LocationArea';
                      readonly id: string;
                      readonly name?: string | null;
                      readonly geometry: {
                        readonly __typename: 'LocationGeometry';
                        readonly radius: number;
                        readonly center: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                      };
                      readonly bounds?: {
                        readonly __typename: 'PlaceBounds';
                        readonly northeastCorner: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                        readonly southwestCorner: {
                          readonly __typename: 'LatLng';
                          readonly lat: number;
                          readonly lng: number;
                        };
                      } | null;
                    }> | null;
                  } | null;
                }
            >;
          }
        | {
            readonly __typename: 'LeafCondition';
            readonly comparator?: GQLValueComparator | null;
            readonly threshold?: string | number | null;
            readonly input: {
              readonly __typename: 'ConditionInputField';
              readonly type: GQLConditionInputInputType;
              readonly name?: string | null;
              readonly contentTypeId?: string | null;
              readonly contentTypeIds?: ReadonlyArray<string> | null;
              readonly spec?: {
                readonly __typename: 'DerivedFieldSpec';
                readonly derivationType: GQLDerivedFieldDerivationType;
                readonly source:
                  | {
                      readonly __typename: 'DerivedFieldCoopInputSource';
                      readonly coopInput: GQLCoopInput;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFieldSource';
                      readonly name: string;
                      readonly contentTypeId: string;
                    }
                  | {
                      readonly __typename: 'DerivedFieldFullItemSource';
                      readonly _?: boolean | null;
                    };
              } | null;
            };
            readonly signal?: {
              readonly __typename: 'Signal';
              readonly id: string;
              readonly type: string;
              readonly name: string;
              readonly subcategory?: string | null;
              readonly args?: {
                readonly __typename: 'AggregationSignalArgs';
              } | null;
            } | null;
            readonly matchingValues?: {
              readonly __typename: 'MatchingValues';
              readonly strings?: ReadonlyArray<string> | null;
              readonly textBankIds?: ReadonlyArray<string> | null;
              readonly locationBankIds?: ReadonlyArray<string> | null;
              readonly imageBankIds?: ReadonlyArray<string> | null;
              readonly locations?: ReadonlyArray<{
                readonly __typename: 'LocationArea';
                readonly id: string;
                readonly name?: string | null;
                readonly geometry: {
                  readonly __typename: 'LocationGeometry';
                  readonly radius: number;
                  readonly center: {
                    readonly __typename: 'LatLng';
                    readonly lat: number;
                    readonly lng: number;
                  };
                };
                readonly bounds?: {
                  readonly __typename: 'PlaceBounds';
                  readonly northeastCorner: {
                    readonly __typename: 'LatLng';
                    readonly lat: number;
                    readonly lng: number;
                  };
                  readonly southwestCorner: {
                    readonly __typename: 'LatLng';
                    readonly lat: number;
                    readonly lng: number;
                  };
                } | null;
              }> | null;
            } | null;
          }
      >;
    };
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
    >;
  } | null;
};

export type GQLReportingRuleFormOrgDataQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLReportingRuleFormOrgDataQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
      readonly parentId?: string | null;
    }>;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ContentSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly parentId?: string | null;
            readonly threadId?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ThreadSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
            readonly backgroundImage?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
    >;
    readonly signals: ReadonlyArray<{
      readonly __typename: 'Signal';
      readonly id: string;
      readonly type: string;
      readonly name: string;
      readonly integration?: string | null;
      readonly integrationTitle?: string | null;
      readonly integrationLogoUrl?: string | null;
      readonly integrationLogoWithBackgroundUrl?: string | null;
      readonly docsUrl?: string | null;
      readonly description: string;
      readonly eligibleInputs: ReadonlyArray<GQLSignalInputType>;
      readonly shouldPromptForMatchingValues: boolean;
      readonly allowedInAutomatedRules: boolean;
      readonly recommendedThresholds?: {
        readonly __typename: 'RecommendedThresholds';
        readonly highPrecisionThreshold: string | number;
        readonly highRecallThreshold: string | number;
      } | null;
      readonly supportedLanguages:
        | { readonly __typename: 'AllLanguages'; readonly _?: boolean | null }
        | {
            readonly __typename: 'Languages';
            readonly languages: ReadonlyArray<GQLLanguage>;
          };
      readonly pricingStructure: {
        readonly __typename: 'SignalPricingStructure';
        readonly type: GQLSignalPricingStructureType;
      };
      readonly disabledInfo: {
        readonly __typename: 'DisabledInfo';
        readonly disabled: boolean;
        readonly disabledMessage?: string | null;
      };
      readonly outputType:
        | {
            readonly __typename: 'EnumSignalOutputType';
            readonly scalarType: GQLScalarType;
            readonly enum: ReadonlyArray<string>;
            readonly ordered: boolean;
          }
        | {
            readonly __typename: 'ScalarSignalOutputType';
            readonly scalarType: GQLScalarType;
          };
      readonly eligibleSubcategories: ReadonlyArray<{
        readonly __typename: 'SignalSubcategory';
        readonly id: string;
        readonly label: string;
        readonly description?: string | null;
        readonly childrenIds: ReadonlyArray<string>;
      }>;
    }>;
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly parameters: ReadonlyArray<{
            readonly __typename: 'ActionParameter';
            readonly name: string;
            readonly displayName: string;
            readonly description?: string | null;
            readonly type: GQLActionParameterType;
            readonly required: boolean;
            readonly min?: number | null;
            readonly max?: number | null;
            readonly maxLength?: number | null;
            readonly defaultValue?: JsonValue | null;
            readonly options?: ReadonlyArray<{
              readonly __typename: 'ActionParameterOption';
              readonly value: string;
              readonly label: string;
            }> | null;
          }>;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
    >;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLDerivedFieldFieldsFragment = {
  readonly __typename: 'DerivedField';
  readonly type: GQLFieldType;
  readonly name: string;
  readonly container?: {
    readonly __typename: 'Container';
    readonly containerType: GQLContainerType;
    readonly keyScalarType?: GQLScalarType | null;
    readonly valueScalarType: GQLScalarType;
  } | null;
  readonly spec: {
    readonly __typename: 'DerivedFieldSpec';
    readonly derivationType: GQLDerivedFieldDerivationType;
    readonly source:
      | {
          readonly __typename: 'DerivedFieldCoopInputSource';
          readonly coopInput: GQLCoopInput;
        }
      | {
          readonly __typename: 'DerivedFieldFieldSource';
          readonly name: string;
          readonly contentTypeId: string;
        }
      | {
          readonly __typename: 'DerivedFieldFullItemSource';
          readonly _?: boolean | null;
        };
  };
};

type GQLItemTypeFragmentContentItemTypeFragment = {
  readonly __typename: 'ContentItemType';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly version: string;
  readonly schemaVariant: GQLItemTypeSchemaVariant;
  readonly hiddenFields: ReadonlyArray<string>;
  readonly schemaFieldRoles: {
    readonly __typename: 'ContentSchemaFieldRoles';
    readonly displayName?: string | null;
    readonly parentId?: string | null;
    readonly threadId?: string | null;
    readonly createdAt?: string | null;
    readonly creatorId?: string | null;
    readonly isDeleted?: string | null;
    readonly ipAddress?: string | null;
  };
  readonly baseFields: ReadonlyArray<{
    readonly __typename: 'BaseField';
    readonly name: string;
    readonly required: boolean;
    readonly type: GQLFieldType;
    readonly container?: {
      readonly __typename: 'Container';
      readonly containerType: GQLContainerType;
      readonly keyScalarType?: GQLScalarType | null;
      readonly valueScalarType: GQLScalarType;
    } | null;
  }>;
  readonly derivedFields: ReadonlyArray<{
    readonly __typename: 'DerivedField';
    readonly type: GQLFieldType;
    readonly name: string;
    readonly container?: {
      readonly __typename: 'Container';
      readonly containerType: GQLContainerType;
      readonly keyScalarType?: GQLScalarType | null;
      readonly valueScalarType: GQLScalarType;
    } | null;
    readonly spec: {
      readonly __typename: 'DerivedFieldSpec';
      readonly derivationType: GQLDerivedFieldDerivationType;
      readonly source:
        | {
            readonly __typename: 'DerivedFieldCoopInputSource';
            readonly coopInput: GQLCoopInput;
          }
        | {
            readonly __typename: 'DerivedFieldFieldSource';
            readonly name: string;
            readonly contentTypeId: string;
          }
        | {
            readonly __typename: 'DerivedFieldFullItemSource';
            readonly _?: boolean | null;
          };
    };
  }>;
};

type GQLItemTypeFragmentThreadItemTypeFragment = {
  readonly __typename: 'ThreadItemType';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly version: string;
  readonly schemaVariant: GQLItemTypeSchemaVariant;
  readonly hiddenFields: ReadonlyArray<string>;
  readonly schemaFieldRoles: {
    readonly __typename: 'ThreadSchemaFieldRoles';
    readonly displayName?: string | null;
    readonly createdAt?: string | null;
    readonly creatorId?: string | null;
    readonly isDeleted?: string | null;
    readonly ipAddress?: string | null;
  };
  readonly baseFields: ReadonlyArray<{
    readonly __typename: 'BaseField';
    readonly name: string;
    readonly required: boolean;
    readonly type: GQLFieldType;
    readonly container?: {
      readonly __typename: 'Container';
      readonly containerType: GQLContainerType;
      readonly keyScalarType?: GQLScalarType | null;
      readonly valueScalarType: GQLScalarType;
    } | null;
  }>;
  readonly derivedFields: ReadonlyArray<{
    readonly __typename: 'DerivedField';
    readonly type: GQLFieldType;
    readonly name: string;
    readonly container?: {
      readonly __typename: 'Container';
      readonly containerType: GQLContainerType;
      readonly keyScalarType?: GQLScalarType | null;
      readonly valueScalarType: GQLScalarType;
    } | null;
    readonly spec: {
      readonly __typename: 'DerivedFieldSpec';
      readonly derivationType: GQLDerivedFieldDerivationType;
      readonly source:
        | {
            readonly __typename: 'DerivedFieldCoopInputSource';
            readonly coopInput: GQLCoopInput;
          }
        | {
            readonly __typename: 'DerivedFieldFieldSource';
            readonly name: string;
            readonly contentTypeId: string;
          }
        | {
            readonly __typename: 'DerivedFieldFullItemSource';
            readonly _?: boolean | null;
          };
    };
  }>;
};

type GQLItemTypeFragmentUserItemTypeFragment = {
  readonly __typename: 'UserItemType';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly version: string;
  readonly schemaVariant: GQLItemTypeSchemaVariant;
  readonly hiddenFields: ReadonlyArray<string>;
  readonly schemaFieldRoles: {
    readonly __typename: 'UserSchemaFieldRoles';
    readonly displayName?: string | null;
    readonly createdAt?: string | null;
    readonly profileIcon?: string | null;
    readonly backgroundImage?: string | null;
    readonly isDeleted?: string | null;
    readonly ipAddress?: string | null;
  };
  readonly baseFields: ReadonlyArray<{
    readonly __typename: 'BaseField';
    readonly name: string;
    readonly required: boolean;
    readonly type: GQLFieldType;
    readonly container?: {
      readonly __typename: 'Container';
      readonly containerType: GQLContainerType;
      readonly keyScalarType?: GQLScalarType | null;
      readonly valueScalarType: GQLScalarType;
    } | null;
  }>;
  readonly derivedFields: ReadonlyArray<{
    readonly __typename: 'DerivedField';
    readonly type: GQLFieldType;
    readonly name: string;
    readonly container?: {
      readonly __typename: 'Container';
      readonly containerType: GQLContainerType;
      readonly keyScalarType?: GQLScalarType | null;
      readonly valueScalarType: GQLScalarType;
    } | null;
    readonly spec: {
      readonly __typename: 'DerivedFieldSpec';
      readonly derivationType: GQLDerivedFieldDerivationType;
      readonly source:
        | {
            readonly __typename: 'DerivedFieldCoopInputSource';
            readonly coopInput: GQLCoopInput;
          }
        | {
            readonly __typename: 'DerivedFieldFieldSource';
            readonly name: string;
            readonly contentTypeId: string;
          }
        | {
            readonly __typename: 'DerivedFieldFullItemSource';
            readonly _?: boolean | null;
          };
    };
  }>;
};

export type GQLItemTypeFragmentFragment =
  | GQLItemTypeFragmentContentItemTypeFragment
  | GQLItemTypeFragmentThreadItemTypeFragment
  | GQLItemTypeFragmentUserItemTypeFragment;

export type GQLSignalsFragmentFragment = {
  readonly __typename: 'Signal';
  readonly id: string;
  readonly type: string;
  readonly name: string;
  readonly integration?: string | null;
  readonly integrationTitle?: string | null;
  readonly integrationLogoUrl?: string | null;
  readonly integrationLogoWithBackgroundUrl?: string | null;
  readonly docsUrl?: string | null;
  readonly description: string;
  readonly eligibleInputs: ReadonlyArray<GQLSignalInputType>;
  readonly shouldPromptForMatchingValues: boolean;
  readonly allowedInAutomatedRules: boolean;
  readonly recommendedThresholds?: {
    readonly __typename: 'RecommendedThresholds';
    readonly highPrecisionThreshold: string | number;
    readonly highRecallThreshold: string | number;
  } | null;
  readonly supportedLanguages:
    | { readonly __typename: 'AllLanguages'; readonly _?: boolean | null }
    | {
        readonly __typename: 'Languages';
        readonly languages: ReadonlyArray<GQLLanguage>;
      };
  readonly pricingStructure: {
    readonly __typename: 'SignalPricingStructure';
    readonly type: GQLSignalPricingStructureType;
  };
  readonly disabledInfo: {
    readonly __typename: 'DisabledInfo';
    readonly disabled: boolean;
    readonly disabledMessage?: string | null;
  };
  readonly outputType:
    | {
        readonly __typename: 'EnumSignalOutputType';
        readonly scalarType: GQLScalarType;
        readonly enum: ReadonlyArray<string>;
        readonly ordered: boolean;
      }
    | {
        readonly __typename: 'ScalarSignalOutputType';
        readonly scalarType: GQLScalarType;
      };
  readonly eligibleSubcategories: ReadonlyArray<{
    readonly __typename: 'SignalSubcategory';
    readonly id: string;
    readonly label: string;
    readonly description?: string | null;
    readonly childrenIds: ReadonlyArray<string>;
  }>;
};

export type GQLLeafConditionFieldsFragment = {
  readonly __typename: 'LeafCondition';
  readonly comparator?: GQLValueComparator | null;
  readonly threshold?: string | number | null;
  readonly input: {
    readonly __typename: 'ConditionInputField';
    readonly type: GQLConditionInputInputType;
    readonly name?: string | null;
    readonly contentTypeId?: string | null;
    readonly contentTypeIds?: ReadonlyArray<string> | null;
    readonly spec?: {
      readonly __typename: 'DerivedFieldSpec';
      readonly derivationType: GQLDerivedFieldDerivationType;
      readonly source:
        | {
            readonly __typename: 'DerivedFieldCoopInputSource';
            readonly coopInput: GQLCoopInput;
          }
        | {
            readonly __typename: 'DerivedFieldFieldSource';
            readonly name: string;
            readonly contentTypeId: string;
          }
        | {
            readonly __typename: 'DerivedFieldFullItemSource';
            readonly _?: boolean | null;
          };
    } | null;
  };
  readonly signal?: {
    readonly __typename: 'Signal';
    readonly id: string;
    readonly type: string;
    readonly name: string;
    readonly subcategory?: string | null;
    readonly args?: { readonly __typename: 'AggregationSignalArgs' } | null;
  } | null;
  readonly matchingValues?: {
    readonly __typename: 'MatchingValues';
    readonly strings?: ReadonlyArray<string> | null;
    readonly textBankIds?: ReadonlyArray<string> | null;
    readonly locationBankIds?: ReadonlyArray<string> | null;
    readonly imageBankIds?: ReadonlyArray<string> | null;
    readonly locations?: ReadonlyArray<{
      readonly __typename: 'LocationArea';
      readonly id: string;
      readonly name?: string | null;
      readonly geometry: {
        readonly __typename: 'LocationGeometry';
        readonly radius: number;
        readonly center: {
          readonly __typename: 'LatLng';
          readonly lat: number;
          readonly lng: number;
        };
      };
      readonly bounds?: {
        readonly __typename: 'PlaceBounds';
        readonly northeastCorner: {
          readonly __typename: 'LatLng';
          readonly lat: number;
          readonly lng: number;
        };
        readonly southwestCorner: {
          readonly __typename: 'LatLng';
          readonly lat: number;
          readonly lng: number;
        };
      } | null;
    }> | null;
  } | null;
};

export type GQLConditionSetFieldsFragment = {
  readonly __typename: 'ConditionSet';
  readonly conjunction: GQLConditionConjunction;
  readonly conditions: ReadonlyArray<
    | {
        readonly __typename: 'ConditionSet';
        readonly conjunction: GQLConditionConjunction;
        readonly conditions: ReadonlyArray<
          | { readonly __typename: 'ConditionSet' }
          | {
              readonly __typename: 'LeafCondition';
              readonly comparator?: GQLValueComparator | null;
              readonly threshold?: string | number | null;
              readonly input: {
                readonly __typename: 'ConditionInputField';
                readonly type: GQLConditionInputInputType;
                readonly name?: string | null;
                readonly contentTypeId?: string | null;
                readonly contentTypeIds?: ReadonlyArray<string> | null;
                readonly spec?: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                } | null;
              };
              readonly signal?: {
                readonly __typename: 'Signal';
                readonly id: string;
                readonly type: string;
                readonly name: string;
                readonly subcategory?: string | null;
                readonly args?: {
                  readonly __typename: 'AggregationSignalArgs';
                } | null;
              } | null;
              readonly matchingValues?: {
                readonly __typename: 'MatchingValues';
                readonly strings?: ReadonlyArray<string> | null;
                readonly textBankIds?: ReadonlyArray<string> | null;
                readonly locationBankIds?: ReadonlyArray<string> | null;
                readonly imageBankIds?: ReadonlyArray<string> | null;
                readonly locations?: ReadonlyArray<{
                  readonly __typename: 'LocationArea';
                  readonly id: string;
                  readonly name?: string | null;
                  readonly geometry: {
                    readonly __typename: 'LocationGeometry';
                    readonly radius: number;
                    readonly center: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                  };
                  readonly bounds?: {
                    readonly __typename: 'PlaceBounds';
                    readonly northeastCorner: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                    readonly southwestCorner: {
                      readonly __typename: 'LatLng';
                      readonly lat: number;
                      readonly lng: number;
                    };
                  } | null;
                }> | null;
              } | null;
            }
        >;
      }
    | {
        readonly __typename: 'LeafCondition';
        readonly comparator?: GQLValueComparator | null;
        readonly threshold?: string | number | null;
        readonly input: {
          readonly __typename: 'ConditionInputField';
          readonly type: GQLConditionInputInputType;
          readonly name?: string | null;
          readonly contentTypeId?: string | null;
          readonly contentTypeIds?: ReadonlyArray<string> | null;
          readonly spec?: {
            readonly __typename: 'DerivedFieldSpec';
            readonly derivationType: GQLDerivedFieldDerivationType;
            readonly source:
              | {
                  readonly __typename: 'DerivedFieldCoopInputSource';
                  readonly coopInput: GQLCoopInput;
                }
              | {
                  readonly __typename: 'DerivedFieldFieldSource';
                  readonly name: string;
                  readonly contentTypeId: string;
                }
              | {
                  readonly __typename: 'DerivedFieldFullItemSource';
                  readonly _?: boolean | null;
                };
          } | null;
        };
        readonly signal?: {
          readonly __typename: 'Signal';
          readonly id: string;
          readonly type: string;
          readonly name: string;
          readonly subcategory?: string | null;
          readonly args?: {
            readonly __typename: 'AggregationSignalArgs';
          } | null;
        } | null;
        readonly matchingValues?: {
          readonly __typename: 'MatchingValues';
          readonly strings?: ReadonlyArray<string> | null;
          readonly textBankIds?: ReadonlyArray<string> | null;
          readonly locationBankIds?: ReadonlyArray<string> | null;
          readonly imageBankIds?: ReadonlyArray<string> | null;
          readonly locations?: ReadonlyArray<{
            readonly __typename: 'LocationArea';
            readonly id: string;
            readonly name?: string | null;
            readonly geometry: {
              readonly __typename: 'LocationGeometry';
              readonly radius: number;
              readonly center: {
                readonly __typename: 'LatLng';
                readonly lat: number;
                readonly lng: number;
              };
            };
            readonly bounds?: {
              readonly __typename: 'PlaceBounds';
              readonly northeastCorner: {
                readonly __typename: 'LatLng';
                readonly lat: number;
                readonly lng: number;
              };
              readonly southwestCorner: {
                readonly __typename: 'LatLng';
                readonly lat: number;
                readonly lng: number;
              };
            } | null;
          }> | null;
        } | null;
      }
  >;
};

type GQLRuleFormRuleFieldsFragmentContentRuleFragment = {
  readonly __typename: 'ContentRule';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly status: GQLRuleStatus;
  readonly tags?: ReadonlyArray<string | null> | null;
  readonly maxDailyActions?: number | null;
  readonly expirationTime?: string | null;
  readonly policies: ReadonlyArray<{
    readonly __typename: 'Policy';
    readonly id: string;
  }>;
  readonly conditionSet: {
    readonly __typename: 'ConditionSet';
    readonly conjunction: GQLConditionConjunction;
    readonly conditions: ReadonlyArray<
      | {
          readonly __typename: 'ConditionSet';
          readonly conjunction: GQLConditionConjunction;
          readonly conditions: ReadonlyArray<
            | { readonly __typename: 'ConditionSet' }
            | {
                readonly __typename: 'LeafCondition';
                readonly comparator?: GQLValueComparator | null;
                readonly threshold?: string | number | null;
                readonly input: {
                  readonly __typename: 'ConditionInputField';
                  readonly type: GQLConditionInputInputType;
                  readonly name?: string | null;
                  readonly contentTypeId?: string | null;
                  readonly contentTypeIds?: ReadonlyArray<string> | null;
                  readonly spec?: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  } | null;
                };
                readonly signal?: {
                  readonly __typename: 'Signal';
                  readonly id: string;
                  readonly type: string;
                  readonly name: string;
                  readonly subcategory?: string | null;
                  readonly args?: {
                    readonly __typename: 'AggregationSignalArgs';
                  } | null;
                } | null;
                readonly matchingValues?: {
                  readonly __typename: 'MatchingValues';
                  readonly strings?: ReadonlyArray<string> | null;
                  readonly textBankIds?: ReadonlyArray<string> | null;
                  readonly locationBankIds?: ReadonlyArray<string> | null;
                  readonly imageBankIds?: ReadonlyArray<string> | null;
                  readonly locations?: ReadonlyArray<{
                    readonly __typename: 'LocationArea';
                    readonly id: string;
                    readonly name?: string | null;
                    readonly geometry: {
                      readonly __typename: 'LocationGeometry';
                      readonly radius: number;
                      readonly center: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    };
                    readonly bounds?: {
                      readonly __typename: 'PlaceBounds';
                      readonly northeastCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                      readonly southwestCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    } | null;
                  }> | null;
                } | null;
              }
          >;
        }
      | {
          readonly __typename: 'LeafCondition';
          readonly comparator?: GQLValueComparator | null;
          readonly threshold?: string | number | null;
          readonly input: {
            readonly __typename: 'ConditionInputField';
            readonly type: GQLConditionInputInputType;
            readonly name?: string | null;
            readonly contentTypeId?: string | null;
            readonly contentTypeIds?: ReadonlyArray<string> | null;
            readonly spec?: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            } | null;
          };
          readonly signal?: {
            readonly __typename: 'Signal';
            readonly id: string;
            readonly type: string;
            readonly name: string;
            readonly subcategory?: string | null;
            readonly args?: {
              readonly __typename: 'AggregationSignalArgs';
            } | null;
          } | null;
          readonly matchingValues?: {
            readonly __typename: 'MatchingValues';
            readonly strings?: ReadonlyArray<string> | null;
            readonly textBankIds?: ReadonlyArray<string> | null;
            readonly locationBankIds?: ReadonlyArray<string> | null;
            readonly imageBankIds?: ReadonlyArray<string> | null;
            readonly locations?: ReadonlyArray<{
              readonly __typename: 'LocationArea';
              readonly id: string;
              readonly name?: string | null;
              readonly geometry: {
                readonly __typename: 'LocationGeometry';
                readonly radius: number;
                readonly center: {
                  readonly __typename: 'LatLng';
                  readonly lat: number;
                  readonly lng: number;
                };
              };
              readonly bounds?: {
                readonly __typename: 'PlaceBounds';
                readonly northeastCorner: {
                  readonly __typename: 'LatLng';
                  readonly lat: number;
                  readonly lng: number;
                };
                readonly southwestCorner: {
                  readonly __typename: 'LatLng';
                  readonly lat: number;
                  readonly lng: number;
                };
              } | null;
            }> | null;
          } | null;
        }
    >;
  };
  readonly actions: ReadonlyArray<
    | {
        readonly __typename: 'CustomAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly configuredParameters?: JsonObject | null;
        readonly parameters: ReadonlyArray<{
          readonly __typename: 'ActionParameter';
          readonly name: string;
          readonly displayName: string;
          readonly description?: string | null;
          readonly type: GQLActionParameterType;
          readonly required: boolean;
          readonly min?: number | null;
          readonly max?: number | null;
          readonly maxLength?: number | null;
          readonly defaultValue?: JsonValue | null;
          readonly options?: ReadonlyArray<{
            readonly __typename: 'ActionParameterOption';
            readonly value: string;
            readonly label: string;
          }> | null;
        }>;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
    | {
        readonly __typename: 'EnqueueAuthorToMrtAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly configuredParameters?: JsonObject | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
    | {
        readonly __typename: 'EnqueueToMrtAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly configuredParameters?: JsonObject | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
    | {
        readonly __typename: 'EnqueueToNcmecAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly configuredParameters?: JsonObject | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
  >;
};

type GQLRuleFormRuleFieldsFragmentUserRuleFragment = {
  readonly __typename: 'UserRule';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly status: GQLRuleStatus;
  readonly tags?: ReadonlyArray<string | null> | null;
  readonly maxDailyActions?: number | null;
  readonly expirationTime?: string | null;
  readonly policies: ReadonlyArray<{
    readonly __typename: 'Policy';
    readonly id: string;
  }>;
  readonly conditionSet: {
    readonly __typename: 'ConditionSet';
    readonly conjunction: GQLConditionConjunction;
    readonly conditions: ReadonlyArray<
      | {
          readonly __typename: 'ConditionSet';
          readonly conjunction: GQLConditionConjunction;
          readonly conditions: ReadonlyArray<
            | { readonly __typename: 'ConditionSet' }
            | {
                readonly __typename: 'LeafCondition';
                readonly comparator?: GQLValueComparator | null;
                readonly threshold?: string | number | null;
                readonly input: {
                  readonly __typename: 'ConditionInputField';
                  readonly type: GQLConditionInputInputType;
                  readonly name?: string | null;
                  readonly contentTypeId?: string | null;
                  readonly contentTypeIds?: ReadonlyArray<string> | null;
                  readonly spec?: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  } | null;
                };
                readonly signal?: {
                  readonly __typename: 'Signal';
                  readonly id: string;
                  readonly type: string;
                  readonly name: string;
                  readonly subcategory?: string | null;
                  readonly args?: {
                    readonly __typename: 'AggregationSignalArgs';
                  } | null;
                } | null;
                readonly matchingValues?: {
                  readonly __typename: 'MatchingValues';
                  readonly strings?: ReadonlyArray<string> | null;
                  readonly textBankIds?: ReadonlyArray<string> | null;
                  readonly locationBankIds?: ReadonlyArray<string> | null;
                  readonly imageBankIds?: ReadonlyArray<string> | null;
                  readonly locations?: ReadonlyArray<{
                    readonly __typename: 'LocationArea';
                    readonly id: string;
                    readonly name?: string | null;
                    readonly geometry: {
                      readonly __typename: 'LocationGeometry';
                      readonly radius: number;
                      readonly center: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    };
                    readonly bounds?: {
                      readonly __typename: 'PlaceBounds';
                      readonly northeastCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                      readonly southwestCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    } | null;
                  }> | null;
                } | null;
              }
          >;
        }
      | {
          readonly __typename: 'LeafCondition';
          readonly comparator?: GQLValueComparator | null;
          readonly threshold?: string | number | null;
          readonly input: {
            readonly __typename: 'ConditionInputField';
            readonly type: GQLConditionInputInputType;
            readonly name?: string | null;
            readonly contentTypeId?: string | null;
            readonly contentTypeIds?: ReadonlyArray<string> | null;
            readonly spec?: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            } | null;
          };
          readonly signal?: {
            readonly __typename: 'Signal';
            readonly id: string;
            readonly type: string;
            readonly name: string;
            readonly subcategory?: string | null;
            readonly args?: {
              readonly __typename: 'AggregationSignalArgs';
            } | null;
          } | null;
          readonly matchingValues?: {
            readonly __typename: 'MatchingValues';
            readonly strings?: ReadonlyArray<string> | null;
            readonly textBankIds?: ReadonlyArray<string> | null;
            readonly locationBankIds?: ReadonlyArray<string> | null;
            readonly imageBankIds?: ReadonlyArray<string> | null;
            readonly locations?: ReadonlyArray<{
              readonly __typename: 'LocationArea';
              readonly id: string;
              readonly name?: string | null;
              readonly geometry: {
                readonly __typename: 'LocationGeometry';
                readonly radius: number;
                readonly center: {
                  readonly __typename: 'LatLng';
                  readonly lat: number;
                  readonly lng: number;
                };
              };
              readonly bounds?: {
                readonly __typename: 'PlaceBounds';
                readonly northeastCorner: {
                  readonly __typename: 'LatLng';
                  readonly lat: number;
                  readonly lng: number;
                };
                readonly southwestCorner: {
                  readonly __typename: 'LatLng';
                  readonly lat: number;
                  readonly lng: number;
                };
              } | null;
            }> | null;
          } | null;
        }
    >;
  };
  readonly actions: ReadonlyArray<
    | {
        readonly __typename: 'CustomAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly configuredParameters?: JsonObject | null;
        readonly parameters: ReadonlyArray<{
          readonly __typename: 'ActionParameter';
          readonly name: string;
          readonly displayName: string;
          readonly description?: string | null;
          readonly type: GQLActionParameterType;
          readonly required: boolean;
          readonly min?: number | null;
          readonly max?: number | null;
          readonly maxLength?: number | null;
          readonly defaultValue?: JsonValue | null;
          readonly options?: ReadonlyArray<{
            readonly __typename: 'ActionParameterOption';
            readonly value: string;
            readonly label: string;
          }> | null;
        }>;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
    | {
        readonly __typename: 'EnqueueAuthorToMrtAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly configuredParameters?: JsonObject | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
    | {
        readonly __typename: 'EnqueueToMrtAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly configuredParameters?: JsonObject | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
    | {
        readonly __typename: 'EnqueueToNcmecAction';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly configuredParameters?: JsonObject | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
            }
        >;
      }
  >;
};

export type GQLRuleFormRuleFieldsFragmentFragment =
  | GQLRuleFormRuleFieldsFragmentContentRuleFragment
  | GQLRuleFormRuleFieldsFragmentUserRuleFragment;

export type GQLRuleQueryVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLRuleQuery = {
  readonly __typename: 'Query';
  readonly rule?:
    | {
        readonly __typename: 'ContentRule';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly status: GQLRuleStatus;
        readonly tags?: ReadonlyArray<string | null> | null;
        readonly maxDailyActions?: number | null;
        readonly expirationTime?: string | null;
        readonly itemTypes: ReadonlyArray<
          | {
              readonly __typename: 'ContentItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ContentSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly parentId?: string | null;
                readonly threadId?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            }
          | {
              readonly __typename: 'ThreadItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'ThreadSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly createdAt?: string | null;
                readonly creatorId?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            }
          | {
              readonly __typename: 'UserItemType';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly version: string;
              readonly schemaVariant: GQLItemTypeSchemaVariant;
              readonly hiddenFields: ReadonlyArray<string>;
              readonly schemaFieldRoles: {
                readonly __typename: 'UserSchemaFieldRoles';
                readonly displayName?: string | null;
                readonly createdAt?: string | null;
                readonly profileIcon?: string | null;
                readonly backgroundImage?: string | null;
                readonly isDeleted?: string | null;
                readonly ipAddress?: string | null;
              };
              readonly baseFields: ReadonlyArray<{
                readonly __typename: 'BaseField';
                readonly name: string;
                readonly required: boolean;
                readonly type: GQLFieldType;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
              }>;
              readonly derivedFields: ReadonlyArray<{
                readonly __typename: 'DerivedField';
                readonly type: GQLFieldType;
                readonly name: string;
                readonly container?: {
                  readonly __typename: 'Container';
                  readonly containerType: GQLContainerType;
                  readonly keyScalarType?: GQLScalarType | null;
                  readonly valueScalarType: GQLScalarType;
                } | null;
                readonly spec: {
                  readonly __typename: 'DerivedFieldSpec';
                  readonly derivationType: GQLDerivedFieldDerivationType;
                  readonly source:
                    | {
                        readonly __typename: 'DerivedFieldCoopInputSource';
                        readonly coopInput: GQLCoopInput;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFieldSource';
                        readonly name: string;
                        readonly contentTypeId: string;
                      }
                    | {
                        readonly __typename: 'DerivedFieldFullItemSource';
                        readonly _?: boolean | null;
                      };
                };
              }>;
            }
        >;
        readonly policies: ReadonlyArray<{
          readonly __typename: 'Policy';
          readonly id: string;
        }>;
        readonly conditionSet: {
          readonly __typename: 'ConditionSet';
          readonly conjunction: GQLConditionConjunction;
          readonly conditions: ReadonlyArray<
            | {
                readonly __typename: 'ConditionSet';
                readonly conjunction: GQLConditionConjunction;
                readonly conditions: ReadonlyArray<
                  | { readonly __typename: 'ConditionSet' }
                  | {
                      readonly __typename: 'LeafCondition';
                      readonly comparator?: GQLValueComparator | null;
                      readonly threshold?: string | number | null;
                      readonly input: {
                        readonly __typename: 'ConditionInputField';
                        readonly type: GQLConditionInputInputType;
                        readonly name?: string | null;
                        readonly contentTypeId?: string | null;
                        readonly contentTypeIds?: ReadonlyArray<string> | null;
                        readonly spec?: {
                          readonly __typename: 'DerivedFieldSpec';
                          readonly derivationType: GQLDerivedFieldDerivationType;
                          readonly source:
                            | {
                                readonly __typename: 'DerivedFieldCoopInputSource';
                                readonly coopInput: GQLCoopInput;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFieldSource';
                                readonly name: string;
                                readonly contentTypeId: string;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFullItemSource';
                                readonly _?: boolean | null;
                              };
                        } | null;
                      };
                      readonly signal?: {
                        readonly __typename: 'Signal';
                        readonly id: string;
                        readonly type: string;
                        readonly name: string;
                        readonly subcategory?: string | null;
                        readonly args?: {
                          readonly __typename: 'AggregationSignalArgs';
                        } | null;
                      } | null;
                      readonly matchingValues?: {
                        readonly __typename: 'MatchingValues';
                        readonly strings?: ReadonlyArray<string> | null;
                        readonly textBankIds?: ReadonlyArray<string> | null;
                        readonly locationBankIds?: ReadonlyArray<string> | null;
                        readonly imageBankIds?: ReadonlyArray<string> | null;
                        readonly locations?: ReadonlyArray<{
                          readonly __typename: 'LocationArea';
                          readonly id: string;
                          readonly name?: string | null;
                          readonly geometry: {
                            readonly __typename: 'LocationGeometry';
                            readonly radius: number;
                            readonly center: {
                              readonly __typename: 'LatLng';
                              readonly lat: number;
                              readonly lng: number;
                            };
                          };
                          readonly bounds?: {
                            readonly __typename: 'PlaceBounds';
                            readonly northeastCorner: {
                              readonly __typename: 'LatLng';
                              readonly lat: number;
                              readonly lng: number;
                            };
                            readonly southwestCorner: {
                              readonly __typename: 'LatLng';
                              readonly lat: number;
                              readonly lng: number;
                            };
                          } | null;
                        }> | null;
                      } | null;
                    }
                >;
              }
            | {
                readonly __typename: 'LeafCondition';
                readonly comparator?: GQLValueComparator | null;
                readonly threshold?: string | number | null;
                readonly input: {
                  readonly __typename: 'ConditionInputField';
                  readonly type: GQLConditionInputInputType;
                  readonly name?: string | null;
                  readonly contentTypeId?: string | null;
                  readonly contentTypeIds?: ReadonlyArray<string> | null;
                  readonly spec?: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  } | null;
                };
                readonly signal?: {
                  readonly __typename: 'Signal';
                  readonly id: string;
                  readonly type: string;
                  readonly name: string;
                  readonly subcategory?: string | null;
                  readonly args?: {
                    readonly __typename: 'AggregationSignalArgs';
                  } | null;
                } | null;
                readonly matchingValues?: {
                  readonly __typename: 'MatchingValues';
                  readonly strings?: ReadonlyArray<string> | null;
                  readonly textBankIds?: ReadonlyArray<string> | null;
                  readonly locationBankIds?: ReadonlyArray<string> | null;
                  readonly imageBankIds?: ReadonlyArray<string> | null;
                  readonly locations?: ReadonlyArray<{
                    readonly __typename: 'LocationArea';
                    readonly id: string;
                    readonly name?: string | null;
                    readonly geometry: {
                      readonly __typename: 'LocationGeometry';
                      readonly radius: number;
                      readonly center: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    };
                    readonly bounds?: {
                      readonly __typename: 'PlaceBounds';
                      readonly northeastCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                      readonly southwestCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    } | null;
                  }> | null;
                } | null;
              }
          >;
        };
        readonly actions: ReadonlyArray<
          | {
              readonly __typename: 'CustomAction';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly configuredParameters?: JsonObject | null;
              readonly parameters: ReadonlyArray<{
                readonly __typename: 'ActionParameter';
                readonly name: string;
                readonly displayName: string;
                readonly description?: string | null;
                readonly type: GQLActionParameterType;
                readonly required: boolean;
                readonly min?: number | null;
                readonly max?: number | null;
                readonly maxLength?: number | null;
                readonly defaultValue?: JsonValue | null;
                readonly options?: ReadonlyArray<{
                  readonly __typename: 'ActionParameterOption';
                  readonly value: string;
                  readonly label: string;
                }> | null;
              }>;
              readonly itemTypes: ReadonlyArray<
                | {
                    readonly __typename: 'ContentItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'ThreadItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserItemType';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
          | {
              readonly __typename: 'EnqueueAuthorToMrtAction';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly configuredParameters?: JsonObject | null;
              readonly itemTypes: ReadonlyArray<
                | {
                    readonly __typename: 'ContentItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'ThreadItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserItemType';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
          | {
              readonly __typename: 'EnqueueToMrtAction';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly configuredParameters?: JsonObject | null;
              readonly itemTypes: ReadonlyArray<
                | {
                    readonly __typename: 'ContentItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'ThreadItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserItemType';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
          | {
              readonly __typename: 'EnqueueToNcmecAction';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly configuredParameters?: JsonObject | null;
              readonly itemTypes: ReadonlyArray<
                | {
                    readonly __typename: 'ContentItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'ThreadItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserItemType';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
        >;
      }
    | {
        readonly __typename: 'UserRule';
        readonly id: string;
        readonly name: string;
        readonly description?: string | null;
        readonly status: GQLRuleStatus;
        readonly tags?: ReadonlyArray<string | null> | null;
        readonly maxDailyActions?: number | null;
        readonly expirationTime?: string | null;
        readonly policies: ReadonlyArray<{
          readonly __typename: 'Policy';
          readonly id: string;
        }>;
        readonly conditionSet: {
          readonly __typename: 'ConditionSet';
          readonly conjunction: GQLConditionConjunction;
          readonly conditions: ReadonlyArray<
            | {
                readonly __typename: 'ConditionSet';
                readonly conjunction: GQLConditionConjunction;
                readonly conditions: ReadonlyArray<
                  | { readonly __typename: 'ConditionSet' }
                  | {
                      readonly __typename: 'LeafCondition';
                      readonly comparator?: GQLValueComparator | null;
                      readonly threshold?: string | number | null;
                      readonly input: {
                        readonly __typename: 'ConditionInputField';
                        readonly type: GQLConditionInputInputType;
                        readonly name?: string | null;
                        readonly contentTypeId?: string | null;
                        readonly contentTypeIds?: ReadonlyArray<string> | null;
                        readonly spec?: {
                          readonly __typename: 'DerivedFieldSpec';
                          readonly derivationType: GQLDerivedFieldDerivationType;
                          readonly source:
                            | {
                                readonly __typename: 'DerivedFieldCoopInputSource';
                                readonly coopInput: GQLCoopInput;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFieldSource';
                                readonly name: string;
                                readonly contentTypeId: string;
                              }
                            | {
                                readonly __typename: 'DerivedFieldFullItemSource';
                                readonly _?: boolean | null;
                              };
                        } | null;
                      };
                      readonly signal?: {
                        readonly __typename: 'Signal';
                        readonly id: string;
                        readonly type: string;
                        readonly name: string;
                        readonly subcategory?: string | null;
                        readonly args?: {
                          readonly __typename: 'AggregationSignalArgs';
                        } | null;
                      } | null;
                      readonly matchingValues?: {
                        readonly __typename: 'MatchingValues';
                        readonly strings?: ReadonlyArray<string> | null;
                        readonly textBankIds?: ReadonlyArray<string> | null;
                        readonly locationBankIds?: ReadonlyArray<string> | null;
                        readonly imageBankIds?: ReadonlyArray<string> | null;
                        readonly locations?: ReadonlyArray<{
                          readonly __typename: 'LocationArea';
                          readonly id: string;
                          readonly name?: string | null;
                          readonly geometry: {
                            readonly __typename: 'LocationGeometry';
                            readonly radius: number;
                            readonly center: {
                              readonly __typename: 'LatLng';
                              readonly lat: number;
                              readonly lng: number;
                            };
                          };
                          readonly bounds?: {
                            readonly __typename: 'PlaceBounds';
                            readonly northeastCorner: {
                              readonly __typename: 'LatLng';
                              readonly lat: number;
                              readonly lng: number;
                            };
                            readonly southwestCorner: {
                              readonly __typename: 'LatLng';
                              readonly lat: number;
                              readonly lng: number;
                            };
                          } | null;
                        }> | null;
                      } | null;
                    }
                >;
              }
            | {
                readonly __typename: 'LeafCondition';
                readonly comparator?: GQLValueComparator | null;
                readonly threshold?: string | number | null;
                readonly input: {
                  readonly __typename: 'ConditionInputField';
                  readonly type: GQLConditionInputInputType;
                  readonly name?: string | null;
                  readonly contentTypeId?: string | null;
                  readonly contentTypeIds?: ReadonlyArray<string> | null;
                  readonly spec?: {
                    readonly __typename: 'DerivedFieldSpec';
                    readonly derivationType: GQLDerivedFieldDerivationType;
                    readonly source:
                      | {
                          readonly __typename: 'DerivedFieldCoopInputSource';
                          readonly coopInput: GQLCoopInput;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFieldSource';
                          readonly name: string;
                          readonly contentTypeId: string;
                        }
                      | {
                          readonly __typename: 'DerivedFieldFullItemSource';
                          readonly _?: boolean | null;
                        };
                  } | null;
                };
                readonly signal?: {
                  readonly __typename: 'Signal';
                  readonly id: string;
                  readonly type: string;
                  readonly name: string;
                  readonly subcategory?: string | null;
                  readonly args?: {
                    readonly __typename: 'AggregationSignalArgs';
                  } | null;
                } | null;
                readonly matchingValues?: {
                  readonly __typename: 'MatchingValues';
                  readonly strings?: ReadonlyArray<string> | null;
                  readonly textBankIds?: ReadonlyArray<string> | null;
                  readonly locationBankIds?: ReadonlyArray<string> | null;
                  readonly imageBankIds?: ReadonlyArray<string> | null;
                  readonly locations?: ReadonlyArray<{
                    readonly __typename: 'LocationArea';
                    readonly id: string;
                    readonly name?: string | null;
                    readonly geometry: {
                      readonly __typename: 'LocationGeometry';
                      readonly radius: number;
                      readonly center: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    };
                    readonly bounds?: {
                      readonly __typename: 'PlaceBounds';
                      readonly northeastCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                      readonly southwestCorner: {
                        readonly __typename: 'LatLng';
                        readonly lat: number;
                        readonly lng: number;
                      };
                    } | null;
                  }> | null;
                } | null;
              }
          >;
        };
        readonly actions: ReadonlyArray<
          | {
              readonly __typename: 'CustomAction';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly configuredParameters?: JsonObject | null;
              readonly parameters: ReadonlyArray<{
                readonly __typename: 'ActionParameter';
                readonly name: string;
                readonly displayName: string;
                readonly description?: string | null;
                readonly type: GQLActionParameterType;
                readonly required: boolean;
                readonly min?: number | null;
                readonly max?: number | null;
                readonly maxLength?: number | null;
                readonly defaultValue?: JsonValue | null;
                readonly options?: ReadonlyArray<{
                  readonly __typename: 'ActionParameterOption';
                  readonly value: string;
                  readonly label: string;
                }> | null;
              }>;
              readonly itemTypes: ReadonlyArray<
                | {
                    readonly __typename: 'ContentItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'ThreadItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserItemType';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
          | {
              readonly __typename: 'EnqueueAuthorToMrtAction';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly configuredParameters?: JsonObject | null;
              readonly itemTypes: ReadonlyArray<
                | {
                    readonly __typename: 'ContentItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'ThreadItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserItemType';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
          | {
              readonly __typename: 'EnqueueToMrtAction';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly configuredParameters?: JsonObject | null;
              readonly itemTypes: ReadonlyArray<
                | {
                    readonly __typename: 'ContentItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'ThreadItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserItemType';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
          | {
              readonly __typename: 'EnqueueToNcmecAction';
              readonly id: string;
              readonly name: string;
              readonly description?: string | null;
              readonly configuredParameters?: JsonObject | null;
              readonly itemTypes: ReadonlyArray<
                | {
                    readonly __typename: 'ContentItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'ThreadItemType';
                    readonly id: string;
                    readonly name: string;
                  }
                | {
                    readonly __typename: 'UserItemType';
                    readonly id: string;
                    readonly name: string;
                  }
              >;
            }
        >;
      }
    | null;
};

type GQLActionFragmentCustomActionFragment = {
  readonly __typename: 'CustomAction';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly parameters: ReadonlyArray<{
    readonly __typename: 'ActionParameter';
    readonly name: string;
    readonly displayName: string;
    readonly description?: string | null;
    readonly type: GQLActionParameterType;
    readonly required: boolean;
    readonly min?: number | null;
    readonly max?: number | null;
    readonly maxLength?: number | null;
    readonly defaultValue?: JsonValue | null;
    readonly options?: ReadonlyArray<{
      readonly __typename: 'ActionParameterOption';
      readonly value: string;
      readonly label: string;
    }> | null;
  }>;
  readonly itemTypes: ReadonlyArray<
    | {
        readonly __typename: 'ContentItemType';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'ThreadItemType';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'UserItemType';
        readonly id: string;
        readonly name: string;
      }
  >;
};

type GQLActionFragmentEnqueueAuthorToMrtActionFragment = {
  readonly __typename: 'EnqueueAuthorToMrtAction';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly itemTypes: ReadonlyArray<
    | {
        readonly __typename: 'ContentItemType';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'ThreadItemType';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'UserItemType';
        readonly id: string;
        readonly name: string;
      }
  >;
};

type GQLActionFragmentEnqueueToMrtActionFragment = {
  readonly __typename: 'EnqueueToMrtAction';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly itemTypes: ReadonlyArray<
    | {
        readonly __typename: 'ContentItemType';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'ThreadItemType';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'UserItemType';
        readonly id: string;
        readonly name: string;
      }
  >;
};

type GQLActionFragmentEnqueueToNcmecActionFragment = {
  readonly __typename: 'EnqueueToNcmecAction';
  readonly id: string;
  readonly name: string;
  readonly description?: string | null;
  readonly itemTypes: ReadonlyArray<
    | {
        readonly __typename: 'ContentItemType';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'ThreadItemType';
        readonly id: string;
        readonly name: string;
      }
    | {
        readonly __typename: 'UserItemType';
        readonly id: string;
        readonly name: string;
      }
  >;
};

export type GQLActionFragmentFragment =
  | GQLActionFragmentCustomActionFragment
  | GQLActionFragmentEnqueueAuthorToMrtActionFragment
  | GQLActionFragmentEnqueueToMrtActionFragment
  | GQLActionFragmentEnqueueToNcmecActionFragment;

export type GQLContentRuleFormConfigQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLContentRuleFormConfigQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly policies: ReadonlyArray<{
      readonly __typename: 'Policy';
      readonly id: string;
      readonly name: string;
      readonly parentId?: string | null;
    }>;
    readonly itemTypes: ReadonlyArray<
      | {
          readonly __typename: 'ContentItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ContentSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly parentId?: string | null;
            readonly threadId?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'ThreadItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'ThreadSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly creatorId?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
      | {
          readonly __typename: 'UserItemType';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly version: string;
          readonly schemaVariant: GQLItemTypeSchemaVariant;
          readonly hiddenFields: ReadonlyArray<string>;
          readonly schemaFieldRoles: {
            readonly __typename: 'UserSchemaFieldRoles';
            readonly displayName?: string | null;
            readonly createdAt?: string | null;
            readonly profileIcon?: string | null;
            readonly backgroundImage?: string | null;
            readonly isDeleted?: string | null;
            readonly ipAddress?: string | null;
          };
          readonly baseFields: ReadonlyArray<{
            readonly __typename: 'BaseField';
            readonly name: string;
            readonly required: boolean;
            readonly type: GQLFieldType;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
          }>;
          readonly derivedFields: ReadonlyArray<{
            readonly __typename: 'DerivedField';
            readonly type: GQLFieldType;
            readonly name: string;
            readonly container?: {
              readonly __typename: 'Container';
              readonly containerType: GQLContainerType;
              readonly keyScalarType?: GQLScalarType | null;
              readonly valueScalarType: GQLScalarType;
            } | null;
            readonly spec: {
              readonly __typename: 'DerivedFieldSpec';
              readonly derivationType: GQLDerivedFieldDerivationType;
              readonly source:
                | {
                    readonly __typename: 'DerivedFieldCoopInputSource';
                    readonly coopInput: GQLCoopInput;
                  }
                | {
                    readonly __typename: 'DerivedFieldFieldSource';
                    readonly name: string;
                    readonly contentTypeId: string;
                  }
                | {
                    readonly __typename: 'DerivedFieldFullItemSource';
                    readonly _?: boolean | null;
                  };
            };
          }>;
        }
    >;
    readonly actions: ReadonlyArray<
      | {
          readonly __typename: 'CustomAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly parameters: ReadonlyArray<{
            readonly __typename: 'ActionParameter';
            readonly name: string;
            readonly displayName: string;
            readonly description?: string | null;
            readonly type: GQLActionParameterType;
            readonly required: boolean;
            readonly min?: number | null;
            readonly max?: number | null;
            readonly maxLength?: number | null;
            readonly defaultValue?: JsonValue | null;
            readonly options?: ReadonlyArray<{
              readonly __typename: 'ActionParameterOption';
              readonly value: string;
              readonly label: string;
            }> | null;
          }>;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueAuthorToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueToMrtAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
      | {
          readonly __typename: 'EnqueueToNcmecAction';
          readonly id: string;
          readonly name: string;
          readonly description?: string | null;
          readonly itemTypes: ReadonlyArray<
            | {
                readonly __typename: 'ContentItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'ThreadItemType';
                readonly id: string;
                readonly name: string;
              }
            | {
                readonly __typename: 'UserItemType';
                readonly id: string;
                readonly name: string;
              }
          >;
        }
    >;
    readonly signals: ReadonlyArray<{
      readonly __typename: 'Signal';
      readonly id: string;
      readonly type: string;
      readonly name: string;
      readonly integration?: string | null;
      readonly integrationTitle?: string | null;
      readonly integrationLogoUrl?: string | null;
      readonly integrationLogoWithBackgroundUrl?: string | null;
      readonly docsUrl?: string | null;
      readonly description: string;
      readonly eligibleInputs: ReadonlyArray<GQLSignalInputType>;
      readonly shouldPromptForMatchingValues: boolean;
      readonly allowedInAutomatedRules: boolean;
      readonly recommendedThresholds?: {
        readonly __typename: 'RecommendedThresholds';
        readonly highPrecisionThreshold: string | number;
        readonly highRecallThreshold: string | number;
      } | null;
      readonly supportedLanguages:
        | { readonly __typename: 'AllLanguages'; readonly _?: boolean | null }
        | {
            readonly __typename: 'Languages';
            readonly languages: ReadonlyArray<GQLLanguage>;
          };
      readonly pricingStructure: {
        readonly __typename: 'SignalPricingStructure';
        readonly type: GQLSignalPricingStructureType;
      };
      readonly disabledInfo: {
        readonly __typename: 'DisabledInfo';
        readonly disabled: boolean;
        readonly disabledMessage?: string | null;
      };
      readonly outputType:
        | {
            readonly __typename: 'EnumSignalOutputType';
            readonly scalarType: GQLScalarType;
            readonly enum: ReadonlyArray<string>;
            readonly ordered: boolean;
          }
        | {
            readonly __typename: 'ScalarSignalOutputType';
            readonly scalarType: GQLScalarType;
          };
      readonly eligibleSubcategories: ReadonlyArray<{
        readonly __typename: 'SignalSubcategory';
        readonly id: string;
        readonly label: string;
        readonly description?: string | null;
        readonly childrenIds: ReadonlyArray<string>;
      }>;
    }>;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLCreateContentRuleMutationVariables = Exact<{
  input: GQLCreateContentRuleInput;
}>;

export type GQLCreateContentRuleMutation = {
  readonly __typename: 'Mutation';
  readonly createContentRule:
    | {
        readonly __typename: 'MutateContentRuleSuccessResponse';
        readonly data: {
          readonly __typename: 'ContentRule';
          readonly id: string;
        };
      }
    | { readonly __typename: 'RuleNameExistsError'; readonly title: string };
};

export type GQLUpdateContentRuleMutationVariables = Exact<{
  input: GQLUpdateContentRuleInput;
}>;

export type GQLUpdateContentRuleMutation = {
  readonly __typename: 'Mutation';
  readonly updateContentRule:
    | {
        readonly __typename: 'MutateContentRuleSuccessResponse';
        readonly data: {
          readonly __typename: 'ContentRule';
          readonly id: string;
        };
      }
    | { readonly __typename: 'NotFoundError'; readonly title: string }
    | {
        readonly __typename: 'RuleHasRunningBacktestsError';
        readonly title: string;
      }
    | { readonly __typename: 'RuleNameExistsError'; readonly title: string };
};

export type GQLCreateUserRuleMutationVariables = Exact<{
  input: GQLCreateUserRuleInput;
}>;

export type GQLCreateUserRuleMutation = {
  readonly __typename: 'Mutation';
  readonly createUserRule:
    | {
        readonly __typename: 'MutateUserRuleSuccessResponse';
        readonly data: { readonly __typename: 'UserRule'; readonly id: string };
      }
    | { readonly __typename: 'RuleNameExistsError'; readonly title: string };
};

export type GQLUpdateUserRuleMutationVariables = Exact<{
  input: GQLUpdateUserRuleInput;
}>;

export type GQLUpdateUserRuleMutation = {
  readonly __typename: 'Mutation';
  readonly updateUserRule:
    | {
        readonly __typename: 'MutateUserRuleSuccessResponse';
        readonly data: { readonly __typename: 'UserRule'; readonly id: string };
      }
    | { readonly __typename: 'NotFoundError'; readonly title: string }
    | {
        readonly __typename: 'RuleHasRunningBacktestsError';
        readonly title: string;
      }
    | { readonly __typename: 'RuleNameExistsError'; readonly title: string };
};

export type GQLRecentUserStrikeActionsQueryVariables = Exact<{
  input: GQLRecentUserStrikeActionsInput;
}>;

export type GQLRecentUserStrikeActionsQuery = {
  readonly __typename: 'Query';
  readonly recentUserStrikeActions: ReadonlyArray<{
    readonly __typename: 'RecentUserStrikeActions';
    readonly itemId: string;
    readonly itemTypeId: string;
    readonly creatorId?: string | null;
    readonly creatorTypeId?: string | null;
    readonly actionId: string;
    readonly source: string;
    readonly time: Date | string;
  }>;
};

export type GQLUserStrikeDistributionQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLUserStrikeDistributionQuery = {
  readonly __typename: 'Query';
  readonly getUserStrikeCountDistribution: ReadonlyArray<{
    readonly __typename: 'UserStrikeBucket';
    readonly numStrikes: number;
    readonly numUsers: number;
  }>;
};

export type GQLUserStrikeThresholdsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLUserStrikeThresholdsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly userStrikeTTL: number;
    readonly userStrikeThresholds: ReadonlyArray<{
      readonly __typename: 'UserStrikeThreshold';
      readonly id: string;
      readonly threshold: number;
      readonly actions: ReadonlyArray<string>;
      readonly actionParameters: JsonObject;
    }>;
  } | null;
};

export type GQLSetAllUserStrikeThresholdMutationVariables = Exact<{
  input: GQLSetAllUserStrikeThresholdsInput;
}>;

export type GQLSetAllUserStrikeThresholdMutation = {
  readonly __typename: 'Mutation';
  readonly setAllUserStrikeThresholds: {
    readonly __typename: 'SetAllUserStrikeThresholdsSuccessResponse';
    readonly _?: boolean | null;
  };
};

export type GQLUpdateUserStrikeTtlMutationVariables = Exact<{
  input: GQLUpdateUserStrikeTtlInput;
}>;

export type GQLUpdateUserStrikeTtlMutation = {
  readonly __typename: 'Mutation';
  readonly updateUserStrikeTTL: {
    readonly __typename: 'UpdateUserStrikeTTLSuccessResponse';
    readonly _?: boolean | null;
  };
};

export type GQLAccountSettingsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLAccountSettingsQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly email: string;
    readonly firstName: string;
    readonly lastName: string;
    readonly loginMethods: ReadonlyArray<string>;
  } | null;
};

export type GQLPersonalSafetySettingsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLPersonalSafetySettingsQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly interfacePreferences: {
      readonly __typename: 'UserInterfacePreferences';
      readonly moderatorSafetyMuteVideo: boolean;
      readonly moderatorSafetyGrayscale: boolean;
      readonly moderatorSafetyBlurLevel: number;
      readonly moderatorSafetySepia: boolean;
    };
  } | null;
};

export type GQLUpdateAccountInfoMutationVariables = Exact<{
  firstName?: InputMaybe<Scalars['String']['input']>;
  lastName?: InputMaybe<Scalars['String']['input']>;
}>;

export type GQLUpdateAccountInfoMutation = {
  readonly __typename: 'Mutation';
  readonly updateAccountInfo?: boolean | null;
};

export type GQLChangePasswordMutationVariables = Exact<{
  input: GQLChangePasswordInput;
}>;

export type GQLChangePasswordMutation = {
  readonly __typename: 'Mutation';
  readonly changePassword:
    | {
        readonly __typename: 'ChangePasswordError';
        readonly title: string;
        readonly detail?: string | null;
      }
    | {
        readonly __typename: 'ChangePasswordSuccessResponse';
        readonly _?: boolean | null;
      };
};

export type GQLRolesForOrgQueryVariables = Exact<{ [key: string]: never }>;

export type GQLRolesForOrgQuery = {
  readonly __typename: 'Query';
  readonly rolesForOrg: ReadonlyArray<{
    readonly __typename: 'Role';
    readonly id?: string | null;
    readonly key: GQLUserRole;
    readonly displayName: string;
    readonly description?: string | null;
    readonly isSystem: boolean;
    readonly isFallback: boolean;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
    readonly userCount: number;
  }>;
};

export type GQLManageUsersQueryVariables = Exact<{ [key: string]: never }>;

export type GQLManageUsersQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly name: string;
    readonly hasNCMECReportingEnabled: boolean;
    readonly users: ReadonlyArray<{
      readonly __typename: 'User';
      readonly id: string;
      readonly firstName: string;
      readonly lastName: string;
      readonly email: string;
      readonly role?: GQLUserRole | null;
      readonly createdAt: string;
      readonly approvedByAdmin?: boolean | null;
      readonly rejectedByAdmin?: boolean | null;
    }>;
    readonly pendingInvites: ReadonlyArray<{
      readonly __typename: 'PendingInvite';
      readonly id: string;
      readonly email: string;
      readonly role: GQLUserRole;
      readonly createdAt: Date | string;
    }>;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly email: string;
    readonly firstName: string;
    readonly lastName: string;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLDeleteUserMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteUserMutation = {
  readonly __typename: 'Mutation';
  readonly deleteUser?: boolean | null;
};

export type GQLUpdateRoleMutationVariables = Exact<{
  input: GQLUpdateRoleInput;
}>;

export type GQLUpdateRoleMutation = {
  readonly __typename: 'Mutation';
  readonly updateRole?: boolean | null;
};

export type GQLApproveUserMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLApproveUserMutation = {
  readonly __typename: 'Mutation';
  readonly approveUser?: boolean | null;
};

export type GQLRejectUserMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLRejectUserMutation = {
  readonly __typename: 'Mutation';
  readonly rejectUser?: boolean | null;
};

export type GQLDeleteInviteMutationVariables = Exact<{
  id: Scalars['ID']['input'];
}>;

export type GQLDeleteInviteMutation = {
  readonly __typename: 'Mutation';
  readonly deleteInvite?: boolean | null;
};

export type GQLGeneratePasswordResetTokenMutationVariables = Exact<{
  userId: Scalars['ID']['input'];
}>;

export type GQLGeneratePasswordResetTokenMutation = {
  readonly __typename: 'Mutation';
  readonly generatePasswordResetToken?: string | null;
};

export type GQLHasNcmecReportingEnabledQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLHasNcmecReportingEnabledQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly hasNCMECReportingEnabled: boolean;
  } | null;
};

export type GQLInviteUserMutationVariables = Exact<{
  input: GQLInviteUserInput;
}>;

export type GQLInviteUserMutation = {
  readonly __typename: 'Mutation';
  readonly inviteUser?: string | null;
};

export type GQLNcmecOrgSettingsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLNcmecOrgSettingsQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
  readonly ncmecOrgSettings?: {
    readonly __typename: 'NcmecOrgSettings';
    readonly username: string;
    readonly password: string;
    readonly contactEmail?: string | null;
    readonly moreInfoUrl?: string | null;
    readonly companyTemplate?: string | null;
    readonly legalUrl?: string | null;
    readonly ncmecPreservationEndpoint?: string | null;
    readonly ncmecAdditionalInfoEndpoint?: string | null;
    readonly defaultNcmecQueueId?: string | null;
    readonly defaultInternetDetailType?: GQLNcmecInternetDetailType | null;
    readonly termsOfService?: string | null;
    readonly contactPersonEmail?: string | null;
    readonly contactPersonFirstName?: string | null;
    readonly contactPersonLastName?: string | null;
    readonly contactPersonPhone?: string | null;
    readonly mediaReviewRequirement?: GQLNcmecMediaReviewRequirement | null;
    readonly minMediaToReview?: number | null;
  } | null;
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly hasNCMECReportingEnabled: boolean;
    readonly mrtQueues: ReadonlyArray<{
      readonly __typename: 'ManualReviewQueue';
      readonly id: string;
      readonly name: string;
    }>;
  } | null;
};

export type GQLUpdateNcmecOrgSettingsMutationVariables = Exact<{
  input: GQLNcmecOrgSettingsInput;
}>;

export type GQLUpdateNcmecOrgSettingsMutation = {
  readonly __typename: 'Mutation';
  readonly updateNcmecOrgSettings: {
    readonly __typename: 'UpdateNcmecOrgSettingsResponse';
    readonly success: boolean;
  };
};

export type GQLPermissionGroupsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLPermissionGroupsQuery = {
  readonly __typename: 'Query';
  readonly permissionGroups: ReadonlyArray<{
    readonly __typename: 'PermissionGroup';
    readonly key: string;
    readonly label: string;
    readonly description: string;
    readonly permissions: ReadonlyArray<{
      readonly __typename: 'PermissionGroupItem';
      readonly permission: GQLUserPermission;
      readonly label: string;
      readonly description: string;
    }>;
  }>;
};

export type GQLUpdateRolePermissionsMutationVariables = Exact<{
  input: GQLUpdateRolePermissionsInput;
}>;

export type GQLUpdateRolePermissionsMutation = {
  readonly __typename: 'Mutation';
  readonly updateRolePermissions: {
    readonly __typename: 'Role';
    readonly id?: string | null;
    readonly key: GQLUserRole;
    readonly displayName: string;
    readonly description?: string | null;
    readonly isSystem: boolean;
    readonly isFallback: boolean;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
    readonly userCount: number;
  };
};

export type GQLRenameRoleMutationVariables = Exact<{
  input: GQLRenameRoleInput;
}>;

export type GQLRenameRoleMutation = {
  readonly __typename: 'Mutation';
  readonly renameRole: {
    readonly __typename: 'Role';
    readonly id?: string | null;
    readonly key: GQLUserRole;
    readonly displayName: string;
    readonly description?: string | null;
    readonly isSystem: boolean;
    readonly isFallback: boolean;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
    readonly userCount: number;
  };
};

export type GQLDeploymentSettingsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLDeploymentSettingsQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly hasAppealsEnabled: boolean;
    readonly hasReportingRulesEnabled: boolean;
    readonly allowMultiplePoliciesPerAction: boolean;
    readonly requiresPolicyForDecisionsInMrt: boolean;
    readonly requiresDecisionReasonInMrt: boolean;
    readonly requiresDecisionReasonOnIgnoreInMrt: boolean;
    readonly previewJobsViewEnabled: boolean;
    readonly hideSkipButtonForNonAdmins: boolean;
    readonly userStrikeTTL: number;
    readonly samlEnabled: boolean;
    readonly ssoUrl?: string | null;
    readonly ssoCert?: string | null;
    readonly ignoreCallbackUrl?: string | null;
    readonly partialItemsEndpoint?: string | null;
    readonly partialItemsRequestHeaders?: JsonObject | null;
  } | null;
  readonly appealSettings?: {
    readonly __typename: 'AppealSettings';
    readonly appealsCallbackUrl?: string | null;
    readonly appealsCallbackHeaders?: JsonObject | null;
    readonly appealsCallbackBody?: JsonObject | null;
  } | null;
};

export type GQLUpdateHasAppealsEnabledMutationVariables = Exact<{
  enabled: Scalars['Boolean']['input'];
}>;

export type GQLUpdateHasAppealsEnabledMutation = {
  readonly __typename: 'Mutation';
  readonly updateHasAppealsEnabled: boolean;
};

export type GQLUpdateHasReportingRulesEnabledMutationVariables = Exact<{
  enabled: Scalars['Boolean']['input'];
}>;

export type GQLUpdateHasReportingRulesEnabledMutation = {
  readonly __typename: 'Mutation';
  readonly updateHasReportingRulesEnabled: boolean;
};

export type GQLUpdateAllowMultiplePoliciesPerActionMutationVariables = Exact<{
  enabled: Scalars['Boolean']['input'];
}>;

export type GQLUpdateAllowMultiplePoliciesPerActionMutation = {
  readonly __typename: 'Mutation';
  readonly updateAllowMultiplePoliciesPerAction: boolean;
};

export type GQLUpdateSamlEnabledMutationVariables = Exact<{
  enabled: Scalars['Boolean']['input'];
}>;

export type GQLUpdateSamlEnabledMutation = {
  readonly __typename: 'Mutation';
  readonly updateSamlEnabled: boolean;
};

export type GQLUpdateRequiresPolicyForDecisionsMutationVariables = Exact<{
  enabled: Scalars['Boolean']['input'];
}>;

export type GQLUpdateRequiresPolicyForDecisionsMutation = {
  readonly __typename: 'Mutation';
  readonly updateRequiresPolicyForDecisions: boolean;
};

export type GQLUpdateRequiresDecisionReasonMutationVariables = Exact<{
  enabled: Scalars['Boolean']['input'];
}>;

export type GQLUpdateRequiresDecisionReasonMutation = {
  readonly __typename: 'Mutation';
  readonly updateRequiresDecisionReason: boolean;
};

export type GQLUpdateRequiresDecisionReasonOnIgnoreMutationVariables = Exact<{
  enabled: Scalars['Boolean']['input'];
}>;

export type GQLUpdateRequiresDecisionReasonOnIgnoreMutation = {
  readonly __typename: 'Mutation';
  readonly updateRequiresDecisionReasonOnIgnore: boolean;
};

export type GQLUpdateHideSkipButtonForNonAdminsMutationVariables = Exact<{
  enabled: Scalars['Boolean']['input'];
}>;

export type GQLUpdateHideSkipButtonForNonAdminsMutation = {
  readonly __typename: 'Mutation';
  readonly updateHideSkipButtonForNonAdmins: boolean;
};

export type GQLUpdatePreviewJobsViewEnabledMutationVariables = Exact<{
  enabled: Scalars['Boolean']['input'];
}>;

export type GQLUpdatePreviewJobsViewEnabledMutation = {
  readonly __typename: 'Mutation';
  readonly updatePreviewJobsViewEnabled: boolean;
};

export type GQLUpdateIgnoreCallbackUrlMutationVariables = Exact<{
  url?: InputMaybe<Scalars['String']['input']>;
}>;

export type GQLUpdateIgnoreCallbackUrlMutation = {
  readonly __typename: 'Mutation';
  readonly updateIgnoreCallbackUrl: boolean;
};

export type GQLUpdateAppealSettingsMutationVariables = Exact<{
  input: GQLAppealSettingsInput;
}>;

export type GQLUpdateAppealSettingsMutation = {
  readonly __typename: 'Mutation';
  readonly updateAppealSettings: {
    readonly __typename: 'AppealSettings';
    readonly appealsCallbackUrl?: string | null;
    readonly appealsCallbackHeaders?: JsonObject | null;
    readonly appealsCallbackBody?: JsonObject | null;
  };
};

export type GQLOrgSettingsQueryVariables = Exact<{ [key: string]: never }>;

export type GQLOrgSettingsQuery = {
  readonly __typename: 'Query';
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly id: string;
    readonly name: string;
    readonly email: string;
    readonly websiteUrl: string;
    readonly onCallAlertEmail?: string | null;
  } | null;
  readonly me?: {
    readonly __typename: 'User';
    readonly id: string;
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
};

export type GQLUpdateOrgInfoMutationVariables = Exact<{
  input: GQLUpdateOrgInfoInput;
}>;

export type GQLUpdateOrgInfoMutation = {
  readonly __typename: 'Mutation';
  readonly updateOrgInfo: {
    readonly __typename: 'UpdateOrgInfoSuccessResponse';
    readonly _?: boolean | null;
  };
};

export type GQLUpdatePartialItemsSettingsMutationVariables = Exact<{
  input: GQLUpdatePartialItemsSettingsInput;
}>;

export type GQLUpdatePartialItemsSettingsMutation = {
  readonly __typename: 'Mutation';
  readonly updatePartialItemsSettings: boolean;
};

export type GQLUpdateSsoCredentialsMutationVariables = Exact<{
  input: GQLUpdateSsoCredentialsInput;
}>;

export type GQLUpdateSsoCredentialsMutation = {
  readonly __typename: 'Mutation';
  readonly updateSSOCredentials: boolean;
};

export type GQLOrgDefaultSafetySettingsQueryVariables = Exact<{
  [key: string]: never;
}>;

export type GQLOrgDefaultSafetySettingsQuery = {
  readonly __typename: 'Query';
  readonly me?: {
    readonly __typename: 'User';
    readonly permissions: ReadonlyArray<GQLUserPermission>;
  } | null;
  readonly myOrg?: {
    readonly __typename: 'Org';
    readonly defaultInterfacePreferences: {
      readonly __typename: 'UserInterfacePreferences';
      readonly moderatorSafetyMuteVideo: boolean;
      readonly moderatorSafetyGrayscale: boolean;
      readonly moderatorSafetyBlurLevel: number;
      readonly moderatorSafetySepia: boolean;
    };
  } | null;
};

export type GQLSetOrgDefaultSafetySettingsMutationVariables = Exact<{
  orgDefaultSafetySettings: GQLModeratorSafetySettingsInput;
}>;

export type GQLSetOrgDefaultSafetySettingsMutation = {
  readonly __typename: 'Mutation';
  readonly setOrgDefaultSafetySettings?: {
    readonly __typename: 'SetModeratorSafetySettingsSuccessResponse';
    readonly _?: boolean | null;
  } | null;
};

export const GQLCustomActionFragmentFragmentDoc = gql`
  fragment CustomActionFragment on CustomAction {
    id
    name
    description
    itemTypes {
      ... on ItemTypeBase {
        id
      }
    }
    callbackUrl
    callbackUrlHeaders
    callbackUrlBody
    parameters {
      name
      displayName
      description
      type
      required
      options {
        value
        label
      }
      min
      max
      maxLength
      defaultValue
    }
  }
`;
export const GQLManualReviewDecisionComponentFieldsFragmentDoc = gql`
  fragment ManualReviewDecisionComponentFields on ManualReviewDecisionComponentBase {
    type
    ... on UserOrRelatedActionDecisionComponent {
      itemTypeId
      itemIds
      actionIds
      policyIds
    }
    ... on RejectAppealDecisionComponent {
      appealId
    }
    ... on AcceptAppealDecisionComponent {
      appealId
    }
    ... on TransformJobAndRecreateInQueueDecisionComponent {
      newQueueId
      originalQueueId
    }
    ... on SubmitNCMECReportDecisionComponent {
      type
      reportedMedia {
        id
        typeId
        url
        fileAnnotations
        industryClassification
      }
    }
  }
`;
export const GQLDerivedFieldFieldsFragmentDoc = gql`
  fragment DerivedFieldFields on DerivedField {
    type
    name
    container {
      containerType
      keyScalarType
      valueScalarType
    }
    spec {
      derivationType
      source {
        ... on DerivedFieldFieldSource {
          name
          contentTypeId
        }
        ... on DerivedFieldFullItemSource {
          _
        }
        ... on DerivedFieldCoopInputSource {
          coopInput: name
        }
      }
    }
  }
`;
export const GQLItemTypeFragmentFragmentDoc = gql`
  fragment ItemTypeFragment on ItemTypeBase {
    id
    name
    description
    version
    schemaVariant
    hiddenFields
    baseFields {
      name
      required
      type
      container {
        containerType
        keyScalarType
        valueScalarType
      }
    }
    derivedFields {
      ...DerivedFieldFields
    }
    ... on UserItemType {
      schemaFieldRoles {
        displayName
        createdAt
        profileIcon
        backgroundImage
        isDeleted
        ipAddress
      }
    }
    ... on ContentItemType {
      schemaFieldRoles {
        displayName
        parentId
        threadId
        createdAt
        creatorId
        isDeleted
        ipAddress
      }
    }
    ... on ThreadItemType {
      schemaFieldRoles {
        displayName
        createdAt
        creatorId
        isDeleted
        ipAddress
      }
    }
  }
  ${GQLDerivedFieldFieldsFragmentDoc}
`;
export const GQLItemFieldsFragmentDoc = gql`
  fragment ItemFields on ItemBase {
    id
    submissionId
    submissionTime
    type {
      ...ItemTypeFragment
      ... on UserItemType {
        schemaFieldRoles {
          displayName
          createdAt
          profileIcon
          backgroundImage
          isDeleted
          ipAddress
        }
      }
      ... on ContentItemType {
        schemaFieldRoles {
          displayName
          parentId
          threadId
          createdAt
          creatorId
          isDeleted
          ipAddress
        }
      }
      ... on ThreadItemType {
        schemaFieldRoles {
          displayName
          createdAt
          creatorId
          isDeleted
          ipAddress
        }
      }
    }
    data
  }
  ${GQLItemTypeFragmentFragmentDoc}
`;
export const GQLJobFieldsFragmentDoc = gql`
  fragment JobFields on ManualReviewJob {
    id
    createdAt
    policyIds
    numTimesReported
    payload {
      ... on ContentManualReviewJobPayload {
        reportHistory {
          reporterId {
            id
            typeId
          }
          policyId
          reportId
          reason
          reportedAt
        }
        item {
          ... on ItemBase {
            ...ItemFields
          }
        }
        additionalContentItems {
          ... on ContentItem {
            ...ItemFields
          }
        }
        itemThreadContentItems {
          ... on ContentItem {
            ...ItemFields
          }
        }
        reportedForReasons {
          ... on ReportedForReason {
            reporterId {
              id
              typeId
            }
            reason
          }
        }
        enqueueSourceInfo {
          ... on ReportEnqueueSourceInfo {
            kind
          }
          ... on RuleExecutionEnqueueSourceInfo {
            kind
            rules {
              ... on ContentRule {
                id
                name
              }
              ... on UserRule {
                id
                name
              }
            }
          }
          ... on MrtJobEnqueueSourceInfo {
            kind
          }
          ... on PostActionsEnqueueSourceInfo {
            kind
          }
        }
      }
      ... on UserManualReviewJobPayload {
        reportHistory {
          reportId
          reporterId {
            id
            typeId
          }
          policyId
          reason
          reportedAt
        }
        item {
          ... on ItemBase {
            ...ItemFields
          }
          ... on UserItem {
            userStrikeCount
          }
        }
        itemThreadContentItems {
          ... on ContentItem {
            ...ItemFields
          }
        }
        reportedItems {
          id
          typeId
        }
        additionalContentItems {
          ... on ContentItem {
            ...ItemFields
          }
        }
        reportedForReasons {
          ... on ReportedForReason {
            reporterId {
              id
              typeId
            }
            reason
          }
        }
        enqueueSourceInfo {
          ... on ReportEnqueueSourceInfo {
            kind
          }
          ... on RuleExecutionEnqueueSourceInfo {
            kind
            rules {
              ... on ContentRule {
                id
                name
              }
              ... on UserRule {
                id
                name
              }
            }
          }
          ... on MrtJobEnqueueSourceInfo {
            kind
          }
          ... on PostActionsEnqueueSourceInfo {
            kind
          }
        }
      }
      ... on ThreadManualReviewJobPayload {
        reportHistory {
          reportId
          reporterId {
            id
            typeId
          }
          policyId
          reason
          reportedAt
        }
        item {
          ... on ItemBase {
            ...ItemFields
          }
        }
        reportedForReasons {
          ... on ReportedForReason {
            reporterId {
              id
              typeId
            }
            reason
          }
        }
        enqueueSourceInfo {
          ... on ReportEnqueueSourceInfo {
            kind
          }
          ... on RuleExecutionEnqueueSourceInfo {
            kind
            rules {
              ... on ContentRule {
                id
                name
              }
              ... on UserRule {
                id
                name
              }
            }
          }
          ... on MrtJobEnqueueSourceInfo {
            kind
          }
          ... on PostActionsEnqueueSourceInfo {
            kind
          }
        }
      }
      ... on ContentAppealManualReviewJobPayload {
        item {
          ... on ItemBase {
            ...ItemFields
          }
        }
        additionalContentItems {
          ... on ContentItem {
            ...ItemFields
          }
        }
        appealReason
        appealId
        actionsTaken
        appealerIdentifier {
          id
          typeId
        }
        enqueueSourceInfo {
          ... on AppealEnqueueSourceInfo {
            kind
          }
        }
      }
      ... on UserAppealManualReviewJobPayload {
        item {
          ... on ItemBase {
            ...ItemFields
          }
          ... on UserItem {
            userStrikeCount
          }
        }
        additionalContentItems {
          ... on ContentItem {
            ...ItemFields
          }
        }
        appealReason
        appealId
        actionsTaken
        appealerIdentifier {
          id
          typeId
        }
        enqueueSourceInfo {
          ... on AppealEnqueueSourceInfo {
            kind
          }
        }
      }
      ... on ThreadAppealManualReviewJobPayload {
        item {
          ... on ItemBase {
            ...ItemFields
          }
        }
        appealId
        appealReason
        actionsTaken
        appealerIdentifier {
          id
          typeId
        }
        enqueueSourceInfo {
          ... on AppealEnqueueSourceInfo {
            kind
          }
        }
      }
      ... on NcmecManualReviewJobPayload {
        item {
          ... on ItemBase {
            ...ItemFields
          }
        }
        allMediaItems {
          contentItem {
            ...ItemFields
          }
          isConfirmedCSAM
          isReported
        }
        enqueueSourceInfo {
          ... on ReportEnqueueSourceInfo {
            kind
          }
          ... on RuleExecutionEnqueueSourceInfo {
            kind
            rules {
              ... on ContentRule {
                id
                name
              }
              ... on UserRule {
                id
                name
              }
            }
          }
          ... on MrtJobEnqueueSourceInfo {
            kind
          }
          ... on PostActionsEnqueueSourceInfo {
            kind
          }
        }
      }
    }
  }
  ${GQLItemFieldsFragmentDoc}
`;
export const GQLManualReviewJobCommentFieldsFragmentDoc = gql`
  fragment ManualReviewJobCommentFields on ManualReviewJobComment {
    id
    createdAt
    commentText
    author {
      id
      firstName
      lastName
    }
  }
`;
export const GQLNcmecReportValuesFragmentDoc = gql`
  fragment NCMECReportValues on NCMECReport {
    ts
    reportId
    userId
    userItemType {
      name
    }
    reportedMedia {
      id
      xml
    }
    additionalFiles {
      url
      xml
      ncmecFileId
    }
    reviewerId
    reportXml
    reportedMessages {
      fileName
      csv
      ncmecFileId
    }
    isTest
  }
`;
export const GQLNcmecFailedSubmissionValuesFragmentDoc = gql`
  fragment NcmecFailedSubmissionValues on NcmecFailedSubmission {
    decisionId
    ts
    reviewerId
    userId
    userItemType {
      name
    }
    status
    retryCount
    lastError
  }
`;
export const GQLPolicyFieldsFragmentDoc = gql`
  fragment PolicyFields on Policy {
    id
    name
    policyText
    enforcementGuidelines
    parentId
    policyType
    userStrikeCount
    applyUserStrikeCountConfigToChildren
  }
`;
export const GQLRulesDashboardRuleFieldsFragmentFragmentDoc = gql`
  fragment RulesDashboardRuleFieldsFragment on Rule {
    id
    name
    creator {
      firstName
      lastName
    }
    createdAt
    updatedAt
    status
    policies {
      name
    }
    actions {
      ... on ActionBase {
        id
        name
      }
    }
  }
`;
export const GQLSampleReportingRuleExecutionResultFieldsFragmentDoc = gql`
  fragment SampleReportingRuleExecutionResultFields on ReportingRuleExecutionResult {
    ts
    itemId
    itemTypeName
    itemTypeId
    creatorId
    creatorTypeId
    itemData
    environment
    signalResults {
      signalName
      integration
      subcategory
      score
    }
  }
`;
export const GQLSampleRuleExecutionResultFieldsFragmentDoc = gql`
  fragment SampleRuleExecutionResultFields on RuleExecutionResult {
    ts
    contentId
    itemTypeName
    itemTypeId
    userId
    userTypeId
    content
    environment
    signalResults {
      signalName
      integration
      subcategory
      score
    }
  }
`;
export const GQLLeafConditionWithResultFieldsFragmentDoc = gql`
  fragment LeafConditionWithResultFields on LeafConditionWithResult {
    input {
      type
      name
      contentTypeId
      spec {
        derivationType
      }
    }
    signal {
      id
      type
      name
      subcategory
      args {
        __typename
      }
    }
    matchingValues {
      strings
      textBankIds
      locationBankIds
      imageBankIds
      locations {
        id
        name
        geometry {
          center {
            lat
            lng
          }
          radius
        }
        bounds {
          northeastCorner {
            lat
            lng
          }
          southwestCorner {
            lat
            lng
          }
        }
        googlePlaceInfo {
          id
        }
      }
    }
    comparator
    threshold
    result {
      outcome
      score
      matchedValue
    }
  }
`;
export const GQLSampleRuleExecutionResultConditionResultFieldsFragmentDoc = gql`
  fragment SampleRuleExecutionResultConditionResultFields on ConditionSetWithResult {
    conjunction
    conditions {
      ... on ConditionSetWithResult {
        conjunction
        conditions {
          ... on LeafConditionWithResult {
            ...LeafConditionWithResultFields
          }
        }
        result {
          outcome
          score
          matchedValue
        }
      }
      ... on LeafConditionWithResult {
        ...LeafConditionWithResultFields
      }
    }
    result {
      outcome
      score
      matchedValue
    }
  }
  ${GQLLeafConditionWithResultFieldsFragmentDoc}
`;
export const GQLLeafConditionFieldsFragmentDoc = gql`
  fragment LeafConditionFields on LeafCondition {
    input {
      type
      name
      contentTypeId
      contentTypeIds
      spec {
        source {
          ... on DerivedFieldFieldSource {
            name
            contentTypeId
          }
          ... on DerivedFieldFullItemSource {
            _
          }
          ... on DerivedFieldCoopInputSource {
            coopInput: name
          }
        }
        derivationType
      }
    }
    signal {
      id
      type
      name
      subcategory
      args {
        __typename
      }
    }
    matchingValues {
      strings
      textBankIds
      locationBankIds
      imageBankIds
      locations {
        id
        name
        geometry {
          center {
            lat
            lng
          }
          radius
        }
        bounds {
          northeastCorner {
            lat
            lng
          }
          southwestCorner {
            lat
            lng
          }
        }
      }
    }
    comparator
    threshold
  }
`;
export const GQLConditionSetFieldsFragmentDoc = gql`
  fragment ConditionSetFields on ConditionSet {
    conjunction
    conditions {
      ... on ConditionSet {
        conjunction
        conditions {
          ... on LeafCondition {
            ...LeafConditionFields
          }
        }
      }
      ... on LeafCondition {
        ...LeafConditionFields
      }
    }
  }
  ${GQLLeafConditionFieldsFragmentDoc}
`;
export const GQLReportingRuleFormRuleFieldsFragmentFragmentDoc = gql`
  fragment ReportingRuleFormRuleFieldsFragment on ReportingRule {
    __typename
    id
    name
    description
    status
    policies {
      id
    }
    conditionSet {
      ...ConditionSetFields
    }
    actions {
      ... on CustomAction {
        id
        name
        description
        itemTypes {
          ... on ItemTypeBase {
            id
            name
          }
        }
      }
      ... on EnqueueToMrtAction {
        id
        name
        description
        itemTypes {
          ... on ItemTypeBase {
            id
            name
          }
        }
      }
      ... on EnqueueToNcmecAction {
        id
        name
        description
        itemTypes {
          ... on ItemTypeBase {
            id
            name
          }
        }
      }
      ... on EnqueueAuthorToMrtAction {
        id
        name
        description
        itemTypes {
          ... on ItemTypeBase {
            id
            name
          }
        }
      }
    }
  }
  ${GQLConditionSetFieldsFragmentDoc}
`;
export const GQLSignalsFragmentFragmentDoc = gql`
  fragment SignalsFragment on Signal {
    id
    type
    name
    integration
    integrationTitle
    integrationLogoUrl
    integrationLogoWithBackgroundUrl
    docsUrl
    recommendedThresholds {
      highPrecisionThreshold
      highRecallThreshold
    }
    supportedLanguages {
      ... on AllLanguages {
        _
      }
      ... on Languages {
        languages
      }
    }
    pricingStructure {
      type
    }
    disabledInfo {
      disabled
      disabledMessage
    }
    description
    eligibleInputs
    outputType {
      ... on ScalarSignalOutputType {
        scalarType
      }
      ... on EnumSignalOutputType {
        scalarType
        enum
        ordered
      }
    }
    shouldPromptForMatchingValues
    allowedInAutomatedRules
    eligibleSubcategories {
      id
      label
      description
      childrenIds
    }
  }
`;
export const GQLRuleFormRuleFieldsFragmentFragmentDoc = gql`
  fragment RuleFormRuleFieldsFragment on Rule {
    __typename
    id
    name
    description
    status
    policies {
      id
    }
    tags
    maxDailyActions
    expirationTime
    conditionSet {
      ...ConditionSetFields
    }
    actions {
      ... on CustomAction {
        id
        name
        description
        parameters {
          name
          displayName
          description
          type
          required
          options {
            value
            label
          }
          min
          max
          maxLength
          defaultValue
        }
        configuredParameters
        itemTypes {
          ... on ItemTypeBase {
            id
            name
          }
        }
      }
      ... on EnqueueToMrtAction {
        id
        name
        description
        configuredParameters
        itemTypes {
          ... on ItemTypeBase {
            id
            name
          }
        }
      }
      ... on EnqueueToNcmecAction {
        id
        name
        description
        configuredParameters
        itemTypes {
          ... on ItemTypeBase {
            id
            name
          }
        }
      }
      ... on EnqueueAuthorToMrtAction {
        id
        name
        description
        configuredParameters
        itemTypes {
          ... on ItemTypeBase {
            id
            name
          }
        }
      }
    }
  }
  ${GQLConditionSetFieldsFragmentDoc}
`;
export const GQLActionFragmentFragmentDoc = gql`
  fragment ActionFragment on ActionBase {
    ... on CustomAction {
      id
      name
      description
      parameters {
        name
        displayName
        description
        type
        required
        options {
          value
          label
        }
        min
        max
        maxLength
        defaultValue
      }
      itemTypes {
        ... on ItemTypeBase {
          id
          name
        }
      }
    }
    ... on EnqueueToMrtAction {
      id
      name
      description
      itemTypes {
        ... on ItemTypeBase {
          id
          name
        }
      }
    }
    ... on EnqueueToNcmecAction {
      id
      name
      description
      itemTypes {
        ... on ItemTypeBase {
          id
          name
        }
      }
    }
    ... on EnqueueAuthorToMrtAction {
      id
      name
      description
      itemTypes {
        ... on ItemTypeBase {
          id
          name
        }
      }
    }
  }
`;
export const GQLApiAuthDocument = gql`
  query ApiAuth {
    apiKey
    myOrg {
      id
      publicSigningKey
    }
    me {
      id
      permissions
    }
  }
`;

/**
 * __useGQLApiAuthQuery__
 *
 * To run a query within a React component, call `useGQLApiAuthQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLApiAuthQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLApiAuthQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLApiAuthQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLApiAuthQuery,
    GQLApiAuthQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLApiAuthQuery, GQLApiAuthQueryVariables>(
    GQLApiAuthDocument,
    options,
  );
}
export function useGQLApiAuthLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLApiAuthQuery,
    GQLApiAuthQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLApiAuthQuery, GQLApiAuthQueryVariables>(
    GQLApiAuthDocument,
    options,
  );
}
// @ts-ignore
export function useGQLApiAuthSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLApiAuthQuery,
    GQLApiAuthQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLApiAuthQuery, GQLApiAuthQueryVariables>;
export function useGQLApiAuthSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLApiAuthQuery,
        GQLApiAuthQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLApiAuthQuery | undefined,
  GQLApiAuthQueryVariables
>;
export function useGQLApiAuthSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLApiAuthQuery,
        GQLApiAuthQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLApiAuthQuery, GQLApiAuthQueryVariables>(
    GQLApiAuthDocument,
    options,
  );
}
export type GQLApiAuthQueryHookResult = ReturnType<typeof useGQLApiAuthQuery>;
export type GQLApiAuthLazyQueryHookResult = ReturnType<
  typeof useGQLApiAuthLazyQuery
>;
export type GQLApiAuthSuspenseQueryHookResult = ReturnType<
  typeof useGQLApiAuthSuspenseQuery
>;
export type GQLApiAuthQueryResult = Apollo.QueryResult<
  GQLApiAuthQuery,
  GQLApiAuthQueryVariables
>;
export const GQLRotateApiKeyDocument = gql`
  mutation RotateApiKey($input: RotateApiKeyInput!) {
    rotateApiKey(input: $input) {
      ... on RotateApiKeySuccessResponse {
        apiKey
        record {
          id
          name
          description
          isActive
          createdAt
          lastUsedAt
          createdBy
        }
      }
      ... on RotateApiKeyError {
        title
        status
        type
        detail
        pointer
        requestId
      }
    }
  }
`;
export type GQLRotateApiKeyMutationFn = Apollo.MutationFunction<
  GQLRotateApiKeyMutation,
  GQLRotateApiKeyMutationVariables
>;

/**
 * __useGQLRotateApiKeyMutation__
 *
 * To run a mutation, you first call `useGQLRotateApiKeyMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLRotateApiKeyMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlRotateApiKeyMutation, { data, loading, error }] = useGQLRotateApiKeyMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLRotateApiKeyMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLRotateApiKeyMutation,
    GQLRotateApiKeyMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLRotateApiKeyMutation,
    GQLRotateApiKeyMutationVariables
  >(GQLRotateApiKeyDocument, options);
}
export type GQLRotateApiKeyMutationHookResult = ReturnType<
  typeof useGQLRotateApiKeyMutation
>;
export type GQLRotateApiKeyMutationResult =
  Apollo.MutationResult<GQLRotateApiKeyMutation>;
export type GQLRotateApiKeyMutationOptions = Apollo.BaseMutationOptions<
  GQLRotateApiKeyMutation,
  GQLRotateApiKeyMutationVariables
>;
export const GQLRotateWebhookSigningKeyDocument = gql`
  mutation RotateWebhookSigningKey {
    rotateWebhookSigningKey {
      ... on RotateWebhookSigningKeySuccessResponse {
        publicSigningKey
      }
      ... on RotateWebhookSigningKeyError {
        title
        status
        type
        detail
        pointer
        requestId
      }
    }
  }
`;
export type GQLRotateWebhookSigningKeyMutationFn = Apollo.MutationFunction<
  GQLRotateWebhookSigningKeyMutation,
  GQLRotateWebhookSigningKeyMutationVariables
>;

/**
 * __useGQLRotateWebhookSigningKeyMutation__
 *
 * To run a mutation, you first call `useGQLRotateWebhookSigningKeyMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLRotateWebhookSigningKeyMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlRotateWebhookSigningKeyMutation, { data, loading, error }] = useGQLRotateWebhookSigningKeyMutation({
 *   variables: {
 *   },
 * });
 */
export function useGQLRotateWebhookSigningKeyMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLRotateWebhookSigningKeyMutation,
    GQLRotateWebhookSigningKeyMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLRotateWebhookSigningKeyMutation,
    GQLRotateWebhookSigningKeyMutationVariables
  >(GQLRotateWebhookSigningKeyDocument, options);
}
export type GQLRotateWebhookSigningKeyMutationHookResult = ReturnType<
  typeof useGQLRotateWebhookSigningKeyMutation
>;
export type GQLRotateWebhookSigningKeyMutationResult =
  Apollo.MutationResult<GQLRotateWebhookSigningKeyMutation>;
export type GQLRotateWebhookSigningKeyMutationOptions =
  Apollo.BaseMutationOptions<
    GQLRotateWebhookSigningKeyMutation,
    GQLRotateWebhookSigningKeyMutationVariables
  >;
export const GQLHashBanksDocument = gql`
  query HashBanks {
    hashBanks {
      id
      name
      description
      hma_name
      enabled_ratio
      org_id
    }
  }
`;

/**
 * __useGQLHashBanksQuery__
 *
 * To run a query within a React component, call `useGQLHashBanksQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLHashBanksQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLHashBanksQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLHashBanksQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLHashBanksQuery,
    GQLHashBanksQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLHashBanksQuery, GQLHashBanksQueryVariables>(
    GQLHashBanksDocument,
    options,
  );
}
export function useGQLHashBanksLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLHashBanksQuery,
    GQLHashBanksQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLHashBanksQuery, GQLHashBanksQueryVariables>(
    GQLHashBanksDocument,
    options,
  );
}
// @ts-ignore
export function useGQLHashBanksSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLHashBanksQuery,
    GQLHashBanksQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLHashBanksQuery, GQLHashBanksQueryVariables>;
export function useGQLHashBanksSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLHashBanksQuery,
        GQLHashBanksQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLHashBanksQuery | undefined,
  GQLHashBanksQueryVariables
>;
export function useGQLHashBanksSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLHashBanksQuery,
        GQLHashBanksQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLHashBanksQuery, GQLHashBanksQueryVariables>(
    GQLHashBanksDocument,
    options,
  );
}
export type GQLHashBanksQueryHookResult = ReturnType<
  typeof useGQLHashBanksQuery
>;
export type GQLHashBanksLazyQueryHookResult = ReturnType<
  typeof useGQLHashBanksLazyQuery
>;
export type GQLHashBanksSuspenseQueryHookResult = ReturnType<
  typeof useGQLHashBanksSuspenseQuery
>;
export type GQLHashBanksQueryResult = Apollo.QueryResult<
  GQLHashBanksQuery,
  GQLHashBanksQueryVariables
>;
export const GQLHashBankByIdDocument = gql`
  query HashBankById($id: ID!) {
    hashBankById(id: $id) {
      id
      name
      description
      hma_name
      enabled_ratio
      org_id
      exchange {
        api
        enabled
        has_auth
        error
        last_fetch_succeeded
        last_fetch_time
        up_to_date
        fetched_items
        is_fetching
      }
    }
  }
`;

/**
 * __useGQLHashBankByIdQuery__
 *
 * To run a query within a React component, call `useGQLHashBankByIdQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLHashBankByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLHashBankByIdQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLHashBankByIdQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLHashBankByIdQuery,
    GQLHashBankByIdQueryVariables
  > &
    (
      | { variables: GQLHashBankByIdQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLHashBankByIdQuery, GQLHashBankByIdQueryVariables>(
    GQLHashBankByIdDocument,
    options,
  );
}
export function useGQLHashBankByIdLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLHashBankByIdQuery,
    GQLHashBankByIdQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLHashBankByIdQuery,
    GQLHashBankByIdQueryVariables
  >(GQLHashBankByIdDocument, options);
}
// @ts-ignore
export function useGQLHashBankByIdSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLHashBankByIdQuery,
    GQLHashBankByIdQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLHashBankByIdQuery,
  GQLHashBankByIdQueryVariables
>;
export function useGQLHashBankByIdSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLHashBankByIdQuery,
        GQLHashBankByIdQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLHashBankByIdQuery | undefined,
  GQLHashBankByIdQueryVariables
>;
export function useGQLHashBankByIdSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLHashBankByIdQuery,
        GQLHashBankByIdQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLHashBankByIdQuery,
    GQLHashBankByIdQueryVariables
  >(GQLHashBankByIdDocument, options);
}
export type GQLHashBankByIdQueryHookResult = ReturnType<
  typeof useGQLHashBankByIdQuery
>;
export type GQLHashBankByIdLazyQueryHookResult = ReturnType<
  typeof useGQLHashBankByIdLazyQuery
>;
export type GQLHashBankByIdSuspenseQueryHookResult = ReturnType<
  typeof useGQLHashBankByIdSuspenseQuery
>;
export type GQLHashBankByIdQueryResult = Apollo.QueryResult<
  GQLHashBankByIdQuery,
  GQLHashBankByIdQueryVariables
>;
export const GQLExchangeApisDocument = gql`
  query ExchangeApis {
    exchangeApis {
      name
      supports_auth
      has_auth
    }
  }
`;

/**
 * __useGQLExchangeApisQuery__
 *
 * To run a query within a React component, call `useGQLExchangeApisQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLExchangeApisQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLExchangeApisQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLExchangeApisQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLExchangeApisQuery,
    GQLExchangeApisQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLExchangeApisQuery, GQLExchangeApisQueryVariables>(
    GQLExchangeApisDocument,
    options,
  );
}
export function useGQLExchangeApisLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLExchangeApisQuery,
    GQLExchangeApisQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLExchangeApisQuery,
    GQLExchangeApisQueryVariables
  >(GQLExchangeApisDocument, options);
}
// @ts-ignore
export function useGQLExchangeApisSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLExchangeApisQuery,
    GQLExchangeApisQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLExchangeApisQuery,
  GQLExchangeApisQueryVariables
>;
export function useGQLExchangeApisSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLExchangeApisQuery,
        GQLExchangeApisQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLExchangeApisQuery | undefined,
  GQLExchangeApisQueryVariables
>;
export function useGQLExchangeApisSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLExchangeApisQuery,
        GQLExchangeApisQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLExchangeApisQuery,
    GQLExchangeApisQueryVariables
  >(GQLExchangeApisDocument, options);
}
export type GQLExchangeApisQueryHookResult = ReturnType<
  typeof useGQLExchangeApisQuery
>;
export type GQLExchangeApisLazyQueryHookResult = ReturnType<
  typeof useGQLExchangeApisLazyQuery
>;
export type GQLExchangeApisSuspenseQueryHookResult = ReturnType<
  typeof useGQLExchangeApisSuspenseQuery
>;
export type GQLExchangeApisQueryResult = Apollo.QueryResult<
  GQLExchangeApisQuery,
  GQLExchangeApisQueryVariables
>;
export const GQLExchangeApiSchemaDocument = gql`
  query ExchangeApiSchema($apiName: String!) {
    exchangeApiSchema(apiName: $apiName) {
      config_schema {
        fields {
          name
          type
          required
          default
          help
          choices
        }
      }
      credentials_schema {
        fields {
          name
          type
          required
          default
          help
          choices
        }
      }
    }
  }
`;

/**
 * __useGQLExchangeApiSchemaQuery__
 *
 * To run a query within a React component, call `useGQLExchangeApiSchemaQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLExchangeApiSchemaQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLExchangeApiSchemaQuery({
 *   variables: {
 *      apiName: // value for 'apiName'
 *   },
 * });
 */
export function useGQLExchangeApiSchemaQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLExchangeApiSchemaQuery,
    GQLExchangeApiSchemaQueryVariables
  > &
    (
      | { variables: GQLExchangeApiSchemaQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLExchangeApiSchemaQuery,
    GQLExchangeApiSchemaQueryVariables
  >(GQLExchangeApiSchemaDocument, options);
}
export function useGQLExchangeApiSchemaLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLExchangeApiSchemaQuery,
    GQLExchangeApiSchemaQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLExchangeApiSchemaQuery,
    GQLExchangeApiSchemaQueryVariables
  >(GQLExchangeApiSchemaDocument, options);
}
// @ts-ignore
export function useGQLExchangeApiSchemaSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLExchangeApiSchemaQuery,
    GQLExchangeApiSchemaQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLExchangeApiSchemaQuery,
  GQLExchangeApiSchemaQueryVariables
>;
export function useGQLExchangeApiSchemaSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLExchangeApiSchemaQuery,
        GQLExchangeApiSchemaQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLExchangeApiSchemaQuery | undefined,
  GQLExchangeApiSchemaQueryVariables
>;
export function useGQLExchangeApiSchemaSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLExchangeApiSchemaQuery,
        GQLExchangeApiSchemaQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLExchangeApiSchemaQuery,
    GQLExchangeApiSchemaQueryVariables
  >(GQLExchangeApiSchemaDocument, options);
}
export type GQLExchangeApiSchemaQueryHookResult = ReturnType<
  typeof useGQLExchangeApiSchemaQuery
>;
export type GQLExchangeApiSchemaLazyQueryHookResult = ReturnType<
  typeof useGQLExchangeApiSchemaLazyQuery
>;
export type GQLExchangeApiSchemaSuspenseQueryHookResult = ReturnType<
  typeof useGQLExchangeApiSchemaSuspenseQuery
>;
export type GQLExchangeApiSchemaQueryResult = Apollo.QueryResult<
  GQLExchangeApiSchemaQuery,
  GQLExchangeApiSchemaQueryVariables
>;
export const GQLCreateHashBankDocument = gql`
  mutation CreateHashBank($input: CreateHashBankInput!) {
    createHashBank(input: $input) {
      ... on MutateHashBankSuccessResponse {
        data {
          id
          name
          description
          hma_name
          enabled_ratio
          org_id
        }
        warning
      }
      ... on MatchingBankNameExistsError {
        title
        status
        type
        pointer
        detail
        requestId
      }
    }
  }
`;
export type GQLCreateHashBankMutationFn = Apollo.MutationFunction<
  GQLCreateHashBankMutation,
  GQLCreateHashBankMutationVariables
>;

/**
 * __useGQLCreateHashBankMutation__
 *
 * To run a mutation, you first call `useGQLCreateHashBankMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateHashBankMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateHashBankMutation, { data, loading, error }] = useGQLCreateHashBankMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateHashBankMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateHashBankMutation,
    GQLCreateHashBankMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateHashBankMutation,
    GQLCreateHashBankMutationVariables
  >(GQLCreateHashBankDocument, options);
}
export type GQLCreateHashBankMutationHookResult = ReturnType<
  typeof useGQLCreateHashBankMutation
>;
export type GQLCreateHashBankMutationResult =
  Apollo.MutationResult<GQLCreateHashBankMutation>;
export type GQLCreateHashBankMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateHashBankMutation,
  GQLCreateHashBankMutationVariables
>;
export const GQLUpdateHashBankDocument = gql`
  mutation UpdateHashBank($input: UpdateHashBankInput!) {
    updateHashBank(input: $input) {
      ... on MutateHashBankSuccessResponse {
        data {
          id
          name
          description
          hma_name
          enabled_ratio
          org_id
        }
      }
      ... on MatchingBankNameExistsError {
        title
        status
        type
        pointer
        detail
        requestId
      }
    }
  }
`;
export type GQLUpdateHashBankMutationFn = Apollo.MutationFunction<
  GQLUpdateHashBankMutation,
  GQLUpdateHashBankMutationVariables
>;

/**
 * __useGQLUpdateHashBankMutation__
 *
 * To run a mutation, you first call `useGQLUpdateHashBankMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateHashBankMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateHashBankMutation, { data, loading, error }] = useGQLUpdateHashBankMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateHashBankMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateHashBankMutation,
    GQLUpdateHashBankMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateHashBankMutation,
    GQLUpdateHashBankMutationVariables
  >(GQLUpdateHashBankDocument, options);
}
export type GQLUpdateHashBankMutationHookResult = ReturnType<
  typeof useGQLUpdateHashBankMutation
>;
export type GQLUpdateHashBankMutationResult =
  Apollo.MutationResult<GQLUpdateHashBankMutation>;
export type GQLUpdateHashBankMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateHashBankMutation,
  GQLUpdateHashBankMutationVariables
>;
export const GQLDeleteHashBankDocument = gql`
  mutation DeleteHashBank($id: ID!) {
    deleteHashBank(id: $id)
  }
`;
export type GQLDeleteHashBankMutationFn = Apollo.MutationFunction<
  GQLDeleteHashBankMutation,
  GQLDeleteHashBankMutationVariables
>;

/**
 * __useGQLDeleteHashBankMutation__
 *
 * To run a mutation, you first call `useGQLDeleteHashBankMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteHashBankMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteHashBankMutation, { data, loading, error }] = useGQLDeleteHashBankMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteHashBankMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteHashBankMutation,
    GQLDeleteHashBankMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteHashBankMutation,
    GQLDeleteHashBankMutationVariables
  >(GQLDeleteHashBankDocument, options);
}
export type GQLDeleteHashBankMutationHookResult = ReturnType<
  typeof useGQLDeleteHashBankMutation
>;
export type GQLDeleteHashBankMutationResult =
  Apollo.MutationResult<GQLDeleteHashBankMutation>;
export type GQLDeleteHashBankMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteHashBankMutation,
  GQLDeleteHashBankMutationVariables
>;
export const GQLUpdateExchangeCredentialsDocument = gql`
  mutation UpdateExchangeCredentials(
    $apiName: String!
    $credentialsJson: String!
  ) {
    updateExchangeCredentials(
      apiName: $apiName
      credentialsJson: $credentialsJson
    )
  }
`;
export type GQLUpdateExchangeCredentialsMutationFn = Apollo.MutationFunction<
  GQLUpdateExchangeCredentialsMutation,
  GQLUpdateExchangeCredentialsMutationVariables
>;

/**
 * __useGQLUpdateExchangeCredentialsMutation__
 *
 * To run a mutation, you first call `useGQLUpdateExchangeCredentialsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateExchangeCredentialsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateExchangeCredentialsMutation, { data, loading, error }] = useGQLUpdateExchangeCredentialsMutation({
 *   variables: {
 *      apiName: // value for 'apiName'
 *      credentialsJson: // value for 'credentialsJson'
 *   },
 * });
 */
export function useGQLUpdateExchangeCredentialsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateExchangeCredentialsMutation,
    GQLUpdateExchangeCredentialsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateExchangeCredentialsMutation,
    GQLUpdateExchangeCredentialsMutationVariables
  >(GQLUpdateExchangeCredentialsDocument, options);
}
export type GQLUpdateExchangeCredentialsMutationHookResult = ReturnType<
  typeof useGQLUpdateExchangeCredentialsMutation
>;
export type GQLUpdateExchangeCredentialsMutationResult =
  Apollo.MutationResult<GQLUpdateExchangeCredentialsMutation>;
export type GQLUpdateExchangeCredentialsMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateExchangeCredentialsMutation,
    GQLUpdateExchangeCredentialsMutationVariables
  >;
export const GQLUserAndOrgDocument = gql`
  query UserAndOrg {
    me {
      id
      email
    }
    myOrg {
      id
    }
  }
`;

/**
 * __useGQLUserAndOrgQuery__
 *
 * To run a query within a React component, call `useGQLUserAndOrgQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLUserAndOrgQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLUserAndOrgQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLUserAndOrgQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLUserAndOrgQuery,
    GQLUserAndOrgQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLUserAndOrgQuery, GQLUserAndOrgQueryVariables>(
    GQLUserAndOrgDocument,
    options,
  );
}
export function useGQLUserAndOrgLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLUserAndOrgQuery,
    GQLUserAndOrgQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLUserAndOrgQuery, GQLUserAndOrgQueryVariables>(
    GQLUserAndOrgDocument,
    options,
  );
}
// @ts-ignore
export function useGQLUserAndOrgSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLUserAndOrgQuery,
    GQLUserAndOrgQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLUserAndOrgQuery,
  GQLUserAndOrgQueryVariables
>;
export function useGQLUserAndOrgSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLUserAndOrgQuery,
        GQLUserAndOrgQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLUserAndOrgQuery | undefined,
  GQLUserAndOrgQueryVariables
>;
export function useGQLUserAndOrgSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLUserAndOrgQuery,
        GQLUserAndOrgQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLUserAndOrgQuery,
    GQLUserAndOrgQueryVariables
  >(GQLUserAndOrgDocument, options);
}
export type GQLUserAndOrgQueryHookResult = ReturnType<
  typeof useGQLUserAndOrgQuery
>;
export type GQLUserAndOrgLazyQueryHookResult = ReturnType<
  typeof useGQLUserAndOrgLazyQuery
>;
export type GQLUserAndOrgSuspenseQueryHookResult = ReturnType<
  typeof useGQLUserAndOrgSuspenseQuery
>;
export type GQLUserAndOrgQueryResult = Apollo.QueryResult<
  GQLUserAndOrgQuery,
  GQLUserAndOrgQueryVariables
>;
export const GQLLoggedInUserForRouteDocument = gql`
  query LoggedInUserForRoute {
    me {
      id
      approvedByAdmin
      rejectedByAdmin
    }
  }
`;

/**
 * __useGQLLoggedInUserForRouteQuery__
 *
 * To run a query within a React component, call `useGQLLoggedInUserForRouteQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLLoggedInUserForRouteQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLLoggedInUserForRouteQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLLoggedInUserForRouteQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLLoggedInUserForRouteQuery,
    GQLLoggedInUserForRouteQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLLoggedInUserForRouteQuery,
    GQLLoggedInUserForRouteQueryVariables
  >(GQLLoggedInUserForRouteDocument, options);
}
export function useGQLLoggedInUserForRouteLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLLoggedInUserForRouteQuery,
    GQLLoggedInUserForRouteQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLLoggedInUserForRouteQuery,
    GQLLoggedInUserForRouteQueryVariables
  >(GQLLoggedInUserForRouteDocument, options);
}
// @ts-ignore
export function useGQLLoggedInUserForRouteSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLLoggedInUserForRouteQuery,
    GQLLoggedInUserForRouteQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLLoggedInUserForRouteQuery,
  GQLLoggedInUserForRouteQueryVariables
>;
export function useGQLLoggedInUserForRouteSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLLoggedInUserForRouteQuery,
        GQLLoggedInUserForRouteQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLLoggedInUserForRouteQuery | undefined,
  GQLLoggedInUserForRouteQueryVariables
>;
export function useGQLLoggedInUserForRouteSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLLoggedInUserForRouteQuery,
        GQLLoggedInUserForRouteQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLLoggedInUserForRouteQuery,
    GQLLoggedInUserForRouteQueryVariables
  >(GQLLoggedInUserForRouteDocument, options);
}
export type GQLLoggedInUserForRouteQueryHookResult = ReturnType<
  typeof useGQLLoggedInUserForRouteQuery
>;
export type GQLLoggedInUserForRouteLazyQueryHookResult = ReturnType<
  typeof useGQLLoggedInUserForRouteLazyQuery
>;
export type GQLLoggedInUserForRouteSuspenseQueryHookResult = ReturnType<
  typeof useGQLLoggedInUserForRouteSuspenseQuery
>;
export type GQLLoggedInUserForRouteQueryResult = Apollo.QueryResult<
  GQLLoggedInUserForRouteQuery,
  GQLLoggedInUserForRouteQueryVariables
>;
export const GQLPermissionGatedRouteLoggedInUserDocument = gql`
  query PermissionGatedRouteLoggedInUser {
    me {
      id
      permissions
    }
  }
`;

/**
 * __useGQLPermissionGatedRouteLoggedInUserQuery__
 *
 * To run a query within a React component, call `useGQLPermissionGatedRouteLoggedInUserQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLPermissionGatedRouteLoggedInUserQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLPermissionGatedRouteLoggedInUserQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLPermissionGatedRouteLoggedInUserQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLPermissionGatedRouteLoggedInUserQuery,
    GQLPermissionGatedRouteLoggedInUserQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLPermissionGatedRouteLoggedInUserQuery,
    GQLPermissionGatedRouteLoggedInUserQueryVariables
  >(GQLPermissionGatedRouteLoggedInUserDocument, options);
}
export function useGQLPermissionGatedRouteLoggedInUserLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLPermissionGatedRouteLoggedInUserQuery,
    GQLPermissionGatedRouteLoggedInUserQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLPermissionGatedRouteLoggedInUserQuery,
    GQLPermissionGatedRouteLoggedInUserQueryVariables
  >(GQLPermissionGatedRouteLoggedInUserDocument, options);
}
// @ts-ignore
export function useGQLPermissionGatedRouteLoggedInUserSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLPermissionGatedRouteLoggedInUserQuery,
    GQLPermissionGatedRouteLoggedInUserQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLPermissionGatedRouteLoggedInUserQuery,
  GQLPermissionGatedRouteLoggedInUserQueryVariables
>;
export function useGQLPermissionGatedRouteLoggedInUserSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPermissionGatedRouteLoggedInUserQuery,
        GQLPermissionGatedRouteLoggedInUserQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLPermissionGatedRouteLoggedInUserQuery | undefined,
  GQLPermissionGatedRouteLoggedInUserQueryVariables
>;
export function useGQLPermissionGatedRouteLoggedInUserSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPermissionGatedRouteLoggedInUserQuery,
        GQLPermissionGatedRouteLoggedInUserQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLPermissionGatedRouteLoggedInUserQuery,
    GQLPermissionGatedRouteLoggedInUserQueryVariables
  >(GQLPermissionGatedRouteLoggedInUserDocument, options);
}
export type GQLPermissionGatedRouteLoggedInUserQueryHookResult = ReturnType<
  typeof useGQLPermissionGatedRouteLoggedInUserQuery
>;
export type GQLPermissionGatedRouteLoggedInUserLazyQueryHookResult = ReturnType<
  typeof useGQLPermissionGatedRouteLoggedInUserLazyQuery
>;
export type GQLPermissionGatedRouteLoggedInUserSuspenseQueryHookResult =
  ReturnType<typeof useGQLPermissionGatedRouteLoggedInUserSuspenseQuery>;
export type GQLPermissionGatedRouteLoggedInUserQueryResult = Apollo.QueryResult<
  GQLPermissionGatedRouteLoggedInUserQuery,
  GQLPermissionGatedRouteLoggedInUserQueryVariables
>;
export const GQLLoginDocument = gql`
  mutation Login($input: LoginInput!) {
    login(input: $input) {
      ... on LoginSuccessResponse {
        user {
          id
          email
        }
      }
      ... on LoginUserDoesNotExistError {
        title
        status
      }
      ... on LoginIncorrectPasswordError {
        title
        status
      }
      ... on LoginSsoRequiredError {
        title
        status
      }
    }
  }
`;
export type GQLLoginMutationFn = Apollo.MutationFunction<
  GQLLoginMutation,
  GQLLoginMutationVariables
>;

/**
 * __useGQLLoginMutation__
 *
 * To run a mutation, you first call `useGQLLoginMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLLoginMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlLoginMutation, { data, loading, error }] = useGQLLoginMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLLoginMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLLoginMutation,
    GQLLoginMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<GQLLoginMutation, GQLLoginMutationVariables>(
    GQLLoginDocument,
    options,
  );
}
export type GQLLoginMutationHookResult = ReturnType<typeof useGQLLoginMutation>;
export type GQLLoginMutationResult = Apollo.MutationResult<GQLLoginMutation>;
export type GQLLoginMutationOptions = Apollo.BaseMutationOptions<
  GQLLoginMutation,
  GQLLoginMutationVariables
>;
export const GQLGetSsoRedirectUrlDocument = gql`
  query GetSSORedirectUrl($emailAddress: String!) {
    getSSORedirectUrl(emailAddress: $emailAddress)
  }
`;

/**
 * __useGQLGetSsoRedirectUrlQuery__
 *
 * To run a query within a React component, call `useGQLGetSsoRedirectUrlQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetSsoRedirectUrlQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetSsoRedirectUrlQuery({
 *   variables: {
 *      emailAddress: // value for 'emailAddress'
 *   },
 * });
 */
export function useGQLGetSsoRedirectUrlQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetSsoRedirectUrlQuery,
    GQLGetSsoRedirectUrlQueryVariables
  > &
    (
      | { variables: GQLGetSsoRedirectUrlQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetSsoRedirectUrlQuery,
    GQLGetSsoRedirectUrlQueryVariables
  >(GQLGetSsoRedirectUrlDocument, options);
}
export function useGQLGetSsoRedirectUrlLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetSsoRedirectUrlQuery,
    GQLGetSsoRedirectUrlQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetSsoRedirectUrlQuery,
    GQLGetSsoRedirectUrlQueryVariables
  >(GQLGetSsoRedirectUrlDocument, options);
}
// @ts-ignore
export function useGQLGetSsoRedirectUrlSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetSsoRedirectUrlQuery,
    GQLGetSsoRedirectUrlQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetSsoRedirectUrlQuery,
  GQLGetSsoRedirectUrlQueryVariables
>;
export function useGQLGetSsoRedirectUrlSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetSsoRedirectUrlQuery,
        GQLGetSsoRedirectUrlQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetSsoRedirectUrlQuery | undefined,
  GQLGetSsoRedirectUrlQueryVariables
>;
export function useGQLGetSsoRedirectUrlSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetSsoRedirectUrlQuery,
        GQLGetSsoRedirectUrlQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetSsoRedirectUrlQuery,
    GQLGetSsoRedirectUrlQueryVariables
  >(GQLGetSsoRedirectUrlDocument, options);
}
export type GQLGetSsoRedirectUrlQueryHookResult = ReturnType<
  typeof useGQLGetSsoRedirectUrlQuery
>;
export type GQLGetSsoRedirectUrlLazyQueryHookResult = ReturnType<
  typeof useGQLGetSsoRedirectUrlLazyQuery
>;
export type GQLGetSsoRedirectUrlSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetSsoRedirectUrlSuspenseQuery
>;
export type GQLGetSsoRedirectUrlQueryResult = Apollo.QueryResult<
  GQLGetSsoRedirectUrlQuery,
  GQLGetSsoRedirectUrlQueryVariables
>;
export const GQLRejectedUserDocument = gql`
  query RejectedUser {
    me {
      id
    }
  }
`;

/**
 * __useGQLRejectedUserQuery__
 *
 * To run a query within a React component, call `useGQLRejectedUserQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRejectedUserQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRejectedUserQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLRejectedUserQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLRejectedUserQuery,
    GQLRejectedUserQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLRejectedUserQuery, GQLRejectedUserQueryVariables>(
    GQLRejectedUserDocument,
    options,
  );
}
export function useGQLRejectedUserLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRejectedUserQuery,
    GQLRejectedUserQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLRejectedUserQuery,
    GQLRejectedUserQueryVariables
  >(GQLRejectedUserDocument, options);
}
// @ts-ignore
export function useGQLRejectedUserSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRejectedUserQuery,
    GQLRejectedUserQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRejectedUserQuery,
  GQLRejectedUserQueryVariables
>;
export function useGQLRejectedUserSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRejectedUserQuery,
        GQLRejectedUserQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRejectedUserQuery | undefined,
  GQLRejectedUserQueryVariables
>;
export function useGQLRejectedUserSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRejectedUserQuery,
        GQLRejectedUserQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRejectedUserQuery,
    GQLRejectedUserQueryVariables
  >(GQLRejectedUserDocument, options);
}
export type GQLRejectedUserQueryHookResult = ReturnType<
  typeof useGQLRejectedUserQuery
>;
export type GQLRejectedUserLazyQueryHookResult = ReturnType<
  typeof useGQLRejectedUserLazyQuery
>;
export type GQLRejectedUserSuspenseQueryHookResult = ReturnType<
  typeof useGQLRejectedUserSuspenseQuery
>;
export type GQLRejectedUserQueryResult = Apollo.QueryResult<
  GQLRejectedUserQuery,
  GQLRejectedUserQueryVariables
>;
export const GQLDeleteRejectedUserDocument = gql`
  mutation DeleteRejectedUser($id: ID!) {
    deleteUser(id: $id)
  }
`;
export type GQLDeleteRejectedUserMutationFn = Apollo.MutationFunction<
  GQLDeleteRejectedUserMutation,
  GQLDeleteRejectedUserMutationVariables
>;

/**
 * __useGQLDeleteRejectedUserMutation__
 *
 * To run a mutation, you first call `useGQLDeleteRejectedUserMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteRejectedUserMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteRejectedUserMutation, { data, loading, error }] = useGQLDeleteRejectedUserMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteRejectedUserMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteRejectedUserMutation,
    GQLDeleteRejectedUserMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteRejectedUserMutation,
    GQLDeleteRejectedUserMutationVariables
  >(GQLDeleteRejectedUserDocument, options);
}
export type GQLDeleteRejectedUserMutationHookResult = ReturnType<
  typeof useGQLDeleteRejectedUserMutation
>;
export type GQLDeleteRejectedUserMutationResult =
  Apollo.MutationResult<GQLDeleteRejectedUserMutation>;
export type GQLDeleteRejectedUserMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteRejectedUserMutation,
  GQLDeleteRejectedUserMutationVariables
>;
export const GQLInviteUserTokenDocument = gql`
  query InviteUserToken($token: String!) {
    inviteUserToken(token: $token) {
      ... on InviteUserTokenSuccessResponse {
        tokenData {
          token
          email
          role
          orgId
          samlEnabled
        }
      }
      ... on InviteUserTokenExpiredError {
        title
      }
      ... on InviteUserTokenMissingError {
        title
      }
    }
  }
`;

/**
 * __useGQLInviteUserTokenQuery__
 *
 * To run a query within a React component, call `useGQLInviteUserTokenQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLInviteUserTokenQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLInviteUserTokenQuery({
 *   variables: {
 *      token: // value for 'token'
 *   },
 * });
 */
export function useGQLInviteUserTokenQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLInviteUserTokenQuery,
    GQLInviteUserTokenQueryVariables
  > &
    (
      | { variables: GQLInviteUserTokenQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLInviteUserTokenQuery,
    GQLInviteUserTokenQueryVariables
  >(GQLInviteUserTokenDocument, options);
}
export function useGQLInviteUserTokenLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLInviteUserTokenQuery,
    GQLInviteUserTokenQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLInviteUserTokenQuery,
    GQLInviteUserTokenQueryVariables
  >(GQLInviteUserTokenDocument, options);
}
// @ts-ignore
export function useGQLInviteUserTokenSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLInviteUserTokenQuery,
    GQLInviteUserTokenQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLInviteUserTokenQuery,
  GQLInviteUserTokenQueryVariables
>;
export function useGQLInviteUserTokenSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLInviteUserTokenQuery,
        GQLInviteUserTokenQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLInviteUserTokenQuery | undefined,
  GQLInviteUserTokenQueryVariables
>;
export function useGQLInviteUserTokenSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLInviteUserTokenQuery,
        GQLInviteUserTokenQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLInviteUserTokenQuery,
    GQLInviteUserTokenQueryVariables
  >(GQLInviteUserTokenDocument, options);
}
export type GQLInviteUserTokenQueryHookResult = ReturnType<
  typeof useGQLInviteUserTokenQuery
>;
export type GQLInviteUserTokenLazyQueryHookResult = ReturnType<
  typeof useGQLInviteUserTokenLazyQuery
>;
export type GQLInviteUserTokenSuspenseQueryHookResult = ReturnType<
  typeof useGQLInviteUserTokenSuspenseQuery
>;
export type GQLInviteUserTokenQueryResult = Apollo.QueryResult<
  GQLInviteUserTokenQuery,
  GQLInviteUserTokenQueryVariables
>;
export const GQLSignUpDocument = gql`
  mutation SignUp($input: SignUpInput!) {
    signUp(input: $input) {
      ... on SignUpSuccessResponse {
        data {
          id
          loginMethods
        }
      }
      ... on SignUpUserExistsError {
        title
      }
    }
  }
`;
export type GQLSignUpMutationFn = Apollo.MutationFunction<
  GQLSignUpMutation,
  GQLSignUpMutationVariables
>;

/**
 * __useGQLSignUpMutation__
 *
 * To run a mutation, you first call `useGQLSignUpMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLSignUpMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlSignUpMutation, { data, loading, error }] = useGQLSignUpMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLSignUpMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLSignUpMutation,
    GQLSignUpMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<GQLSignUpMutation, GQLSignUpMutationVariables>(
    GQLSignUpDocument,
    options,
  );
}
export type GQLSignUpMutationHookResult = ReturnType<
  typeof useGQLSignUpMutation
>;
export type GQLSignUpMutationResult = Apollo.MutationResult<GQLSignUpMutation>;
export type GQLSignUpMutationOptions = Apollo.BaseMutationOptions<
  GQLSignUpMutation,
  GQLSignUpMutationVariables
>;
export const GQLSendPasswordResetDocument = gql`
  mutation SendPasswordReset($input: SendPasswordResetInput!) {
    sendPasswordReset(input: $input)
  }
`;
export type GQLSendPasswordResetMutationFn = Apollo.MutationFunction<
  GQLSendPasswordResetMutation,
  GQLSendPasswordResetMutationVariables
>;

/**
 * __useGQLSendPasswordResetMutation__
 *
 * To run a mutation, you first call `useGQLSendPasswordResetMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLSendPasswordResetMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlSendPasswordResetMutation, { data, loading, error }] = useGQLSendPasswordResetMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLSendPasswordResetMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLSendPasswordResetMutation,
    GQLSendPasswordResetMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLSendPasswordResetMutation,
    GQLSendPasswordResetMutationVariables
  >(GQLSendPasswordResetDocument, options);
}
export type GQLSendPasswordResetMutationHookResult = ReturnType<
  typeof useGQLSendPasswordResetMutation
>;
export type GQLSendPasswordResetMutationResult =
  Apollo.MutationResult<GQLSendPasswordResetMutation>;
export type GQLSendPasswordResetMutationOptions = Apollo.BaseMutationOptions<
  GQLSendPasswordResetMutation,
  GQLSendPasswordResetMutationVariables
>;
export const GQLResetPasswordDocument = gql`
  mutation ResetPassword($input: ResetPasswordInput!) {
    resetPassword(input: $input)
  }
`;
export type GQLResetPasswordMutationFn = Apollo.MutationFunction<
  GQLResetPasswordMutation,
  GQLResetPasswordMutationVariables
>;

/**
 * __useGQLResetPasswordMutation__
 *
 * To run a mutation, you first call `useGQLResetPasswordMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLResetPasswordMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlResetPasswordMutation, { data, loading, error }] = useGQLResetPasswordMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLResetPasswordMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLResetPasswordMutation,
    GQLResetPasswordMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLResetPasswordMutation,
    GQLResetPasswordMutationVariables
  >(GQLResetPasswordDocument, options);
}
export type GQLResetPasswordMutationHookResult = ReturnType<
  typeof useGQLResetPasswordMutation
>;
export type GQLResetPasswordMutationResult =
  Apollo.MutationResult<GQLResetPasswordMutation>;
export type GQLResetPasswordMutationOptions = Apollo.BaseMutationOptions<
  GQLResetPasswordMutation,
  GQLResetPasswordMutationVariables
>;
export const GQLDashboardOrgDocument = gql`
  query DashboardOrg {
    myOrg {
      id
      name
      hasReportingRulesEnabled
      hasNCMECReportingEnabled
      hasAppealsEnabled
      isDemoOrg
    }
    me {
      id
      permissions
      email
    }
  }
`;

/**
 * __useGQLDashboardOrgQuery__
 *
 * To run a query within a React component, call `useGQLDashboardOrgQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLDashboardOrgQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLDashboardOrgQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLDashboardOrgQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLDashboardOrgQuery,
    GQLDashboardOrgQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLDashboardOrgQuery, GQLDashboardOrgQueryVariables>(
    GQLDashboardOrgDocument,
    options,
  );
}
export function useGQLDashboardOrgLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLDashboardOrgQuery,
    GQLDashboardOrgQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLDashboardOrgQuery,
    GQLDashboardOrgQueryVariables
  >(GQLDashboardOrgDocument, options);
}
// @ts-ignore
export function useGQLDashboardOrgSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLDashboardOrgQuery,
    GQLDashboardOrgQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLDashboardOrgQuery,
  GQLDashboardOrgQueryVariables
>;
export function useGQLDashboardOrgSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLDashboardOrgQuery,
        GQLDashboardOrgQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLDashboardOrgQuery | undefined,
  GQLDashboardOrgQueryVariables
>;
export function useGQLDashboardOrgSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLDashboardOrgQuery,
        GQLDashboardOrgQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLDashboardOrgQuery,
    GQLDashboardOrgQueryVariables
  >(GQLDashboardOrgDocument, options);
}
export type GQLDashboardOrgQueryHookResult = ReturnType<
  typeof useGQLDashboardOrgQuery
>;
export type GQLDashboardOrgLazyQueryHookResult = ReturnType<
  typeof useGQLDashboardOrgLazyQuery
>;
export type GQLDashboardOrgSuspenseQueryHookResult = ReturnType<
  typeof useGQLDashboardOrgSuspenseQuery
>;
export type GQLDashboardOrgQueryResult = Apollo.QueryResult<
  GQLDashboardOrgQuery,
  GQLDashboardOrgQueryVariables
>;
export const GQLLogoutDocument = gql`
  mutation Logout {
    logout
  }
`;
export type GQLLogoutMutationFn = Apollo.MutationFunction<
  GQLLogoutMutation,
  GQLLogoutMutationVariables
>;

/**
 * __useGQLLogoutMutation__
 *
 * To run a mutation, you first call `useGQLLogoutMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLLogoutMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlLogoutMutation, { data, loading, error }] = useGQLLogoutMutation({
 *   variables: {
 *   },
 * });
 */
export function useGQLLogoutMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLLogoutMutation,
    GQLLogoutMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<GQLLogoutMutation, GQLLogoutMutationVariables>(
    GQLLogoutDocument,
    options,
  );
}
export type GQLLogoutMutationHookResult = ReturnType<
  typeof useGQLLogoutMutation
>;
export type GQLLogoutMutationResult = Apollo.MutationResult<GQLLogoutMutation>;
export type GQLLogoutMutationOptions = Apollo.BaseMutationOptions<
  GQLLogoutMutation,
  GQLLogoutMutationVariables
>;
export const GQLActionDocument = gql`
  query Action($id: ID!) {
    action(id: $id) {
      ... on CustomAction {
        ...CustomActionFragment
      }
    }
  }
  ${GQLCustomActionFragmentFragmentDoc}
`;

/**
 * __useGQLActionQuery__
 *
 * To run a query within a React component, call `useGQLActionQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLActionQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLActionQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLActionQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLActionQuery,
    GQLActionQueryVariables
  > &
    (
      { variables: GQLActionQueryVariables; skip?: boolean } | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLActionQuery, GQLActionQueryVariables>(
    GQLActionDocument,
    options,
  );
}
export function useGQLActionLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLActionQuery,
    GQLActionQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLActionQuery, GQLActionQueryVariables>(
    GQLActionDocument,
    options,
  );
}
// @ts-ignore
export function useGQLActionSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLActionQuery,
    GQLActionQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLActionQuery, GQLActionQueryVariables>;
export function useGQLActionSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<GQLActionQuery, GQLActionQueryVariables>,
): Apollo.UseSuspenseQueryResult<
  GQLActionQuery | undefined,
  GQLActionQueryVariables
>;
export function useGQLActionSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<GQLActionQuery, GQLActionQueryVariables>,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLActionQuery, GQLActionQueryVariables>(
    GQLActionDocument,
    options,
  );
}
export type GQLActionQueryHookResult = ReturnType<typeof useGQLActionQuery>;
export type GQLActionLazyQueryHookResult = ReturnType<
  typeof useGQLActionLazyQuery
>;
export type GQLActionSuspenseQueryHookResult = ReturnType<
  typeof useGQLActionSuspenseQuery
>;
export type GQLActionQueryResult = Apollo.QueryResult<
  GQLActionQuery,
  GQLActionQueryVariables
>;
export const GQLActionFormDocument = gql`
  query ActionForm {
    myOrg {
      itemTypes {
        ... on ItemTypeBase {
          id
          name
        }
      }
    }
    me {
      permissions
    }
  }
`;

/**
 * __useGQLActionFormQuery__
 *
 * To run a query within a React component, call `useGQLActionFormQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLActionFormQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLActionFormQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLActionFormQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLActionFormQuery,
    GQLActionFormQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLActionFormQuery, GQLActionFormQueryVariables>(
    GQLActionFormDocument,
    options,
  );
}
export function useGQLActionFormLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLActionFormQuery,
    GQLActionFormQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLActionFormQuery, GQLActionFormQueryVariables>(
    GQLActionFormDocument,
    options,
  );
}
// @ts-ignore
export function useGQLActionFormSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLActionFormQuery,
    GQLActionFormQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLActionFormQuery,
  GQLActionFormQueryVariables
>;
export function useGQLActionFormSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLActionFormQuery,
        GQLActionFormQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLActionFormQuery | undefined,
  GQLActionFormQueryVariables
>;
export function useGQLActionFormSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLActionFormQuery,
        GQLActionFormQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLActionFormQuery,
    GQLActionFormQueryVariables
  >(GQLActionFormDocument, options);
}
export type GQLActionFormQueryHookResult = ReturnType<
  typeof useGQLActionFormQuery
>;
export type GQLActionFormLazyQueryHookResult = ReturnType<
  typeof useGQLActionFormLazyQuery
>;
export type GQLActionFormSuspenseQueryHookResult = ReturnType<
  typeof useGQLActionFormSuspenseQuery
>;
export type GQLActionFormQueryResult = Apollo.QueryResult<
  GQLActionFormQuery,
  GQLActionFormQueryVariables
>;
export const GQLCreateActionDocument = gql`
  mutation CreateAction($input: CreateActionInput!) {
    createAction(input: $input) {
      ... on MutateActionSuccessResponse {
        data {
          ... on CustomAction {
            ...CustomActionFragment
          }
        }
      }
      ... on ActionNameExistsError {
        title
        status
        type
      }
    }
  }
  ${GQLCustomActionFragmentFragmentDoc}
`;
export type GQLCreateActionMutationFn = Apollo.MutationFunction<
  GQLCreateActionMutation,
  GQLCreateActionMutationVariables
>;

/**
 * __useGQLCreateActionMutation__
 *
 * To run a mutation, you first call `useGQLCreateActionMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateActionMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateActionMutation, { data, loading, error }] = useGQLCreateActionMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateActionMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateActionMutation,
    GQLCreateActionMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateActionMutation,
    GQLCreateActionMutationVariables
  >(GQLCreateActionDocument, options);
}
export type GQLCreateActionMutationHookResult = ReturnType<
  typeof useGQLCreateActionMutation
>;
export type GQLCreateActionMutationResult =
  Apollo.MutationResult<GQLCreateActionMutation>;
export type GQLCreateActionMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateActionMutation,
  GQLCreateActionMutationVariables
>;
export const GQLUpdateActionDocument = gql`
  mutation UpdateAction($input: UpdateActionInput!) {
    updateAction(input: $input) {
      ... on MutateActionSuccessResponse {
        data {
          ... on CustomAction {
            ...CustomActionFragment
          }
        }
      }
      ... on ActionNameExistsError {
        title
        status
        type
      }
    }
  }
  ${GQLCustomActionFragmentFragmentDoc}
`;
export type GQLUpdateActionMutationFn = Apollo.MutationFunction<
  GQLUpdateActionMutation,
  GQLUpdateActionMutationVariables
>;

/**
 * __useGQLUpdateActionMutation__
 *
 * To run a mutation, you first call `useGQLUpdateActionMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateActionMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateActionMutation, { data, loading, error }] = useGQLUpdateActionMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateActionMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateActionMutation,
    GQLUpdateActionMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateActionMutation,
    GQLUpdateActionMutationVariables
  >(GQLUpdateActionDocument, options);
}
export type GQLUpdateActionMutationHookResult = ReturnType<
  typeof useGQLUpdateActionMutation
>;
export type GQLUpdateActionMutationResult =
  Apollo.MutationResult<GQLUpdateActionMutation>;
export type GQLUpdateActionMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateActionMutation,
  GQLUpdateActionMutationVariables
>;
export const GQLActionsDocument = gql`
  query Actions {
    myOrg {
      actions {
        ... on ActionBase {
          id
          name
          description
          penalty
          applyUserStrikes
        }
        ... on CustomAction {
          parameters {
            name
            displayName
            description
            type
            required
            options {
              value
              label
            }
            min
            max
            maxLength
            defaultValue
          }
        }
      }
    }
    me {
      permissions
    }
  }
`;

/**
 * __useGQLActionsQuery__
 *
 * To run a query within a React component, call `useGQLActionsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLActionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLActionsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLActionsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLActionsQuery,
    GQLActionsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLActionsQuery, GQLActionsQueryVariables>(
    GQLActionsDocument,
    options,
  );
}
export function useGQLActionsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLActionsQuery,
    GQLActionsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLActionsQuery, GQLActionsQueryVariables>(
    GQLActionsDocument,
    options,
  );
}
// @ts-ignore
export function useGQLActionsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLActionsQuery,
    GQLActionsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLActionsQuery, GQLActionsQueryVariables>;
export function useGQLActionsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLActionsQuery,
        GQLActionsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLActionsQuery | undefined,
  GQLActionsQueryVariables
>;
export function useGQLActionsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLActionsQuery,
        GQLActionsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLActionsQuery, GQLActionsQueryVariables>(
    GQLActionsDocument,
    options,
  );
}
export type GQLActionsQueryHookResult = ReturnType<typeof useGQLActionsQuery>;
export type GQLActionsLazyQueryHookResult = ReturnType<
  typeof useGQLActionsLazyQuery
>;
export type GQLActionsSuspenseQueryHookResult = ReturnType<
  typeof useGQLActionsSuspenseQuery
>;
export type GQLActionsQueryResult = Apollo.QueryResult<
  GQLActionsQuery,
  GQLActionsQueryVariables
>;
export const GQLDeleteActionDocument = gql`
  mutation DeleteAction($id: ID!) {
    deleteAction(id: $id)
  }
`;
export type GQLDeleteActionMutationFn = Apollo.MutationFunction<
  GQLDeleteActionMutation,
  GQLDeleteActionMutationVariables
>;

/**
 * __useGQLDeleteActionMutation__
 *
 * To run a mutation, you first call `useGQLDeleteActionMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteActionMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteActionMutation, { data, loading, error }] = useGQLDeleteActionMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteActionMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteActionMutation,
    GQLDeleteActionMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteActionMutation,
    GQLDeleteActionMutationVariables
  >(GQLDeleteActionDocument, options);
}
export type GQLDeleteActionMutationHookResult = ReturnType<
  typeof useGQLDeleteActionMutation
>;
export type GQLDeleteActionMutationResult =
  Apollo.MutationResult<GQLDeleteActionMutation>;
export type GQLDeleteActionMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteActionMutation,
  GQLDeleteActionMutationVariables
>;
export const GQLCreateLocationBankDocument = gql`
  mutation CreateLocationBank($input: CreateLocationBankInput!) {
    createLocationBank(input: $input) {
      ... on MutateLocationBankSuccessResponse {
        data {
          id
        }
      }
    }
  }
`;
export type GQLCreateLocationBankMutationFn = Apollo.MutationFunction<
  GQLCreateLocationBankMutation,
  GQLCreateLocationBankMutationVariables
>;

/**
 * __useGQLCreateLocationBankMutation__
 *
 * To run a mutation, you first call `useGQLCreateLocationBankMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateLocationBankMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateLocationBankMutation, { data, loading, error }] = useGQLCreateLocationBankMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateLocationBankMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateLocationBankMutation,
    GQLCreateLocationBankMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateLocationBankMutation,
    GQLCreateLocationBankMutationVariables
  >(GQLCreateLocationBankDocument, options);
}
export type GQLCreateLocationBankMutationHookResult = ReturnType<
  typeof useGQLCreateLocationBankMutation
>;
export type GQLCreateLocationBankMutationResult =
  Apollo.MutationResult<GQLCreateLocationBankMutation>;
export type GQLCreateLocationBankMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateLocationBankMutation,
  GQLCreateLocationBankMutationVariables
>;
export const GQLUpdateLocationBankDocument = gql`
  mutation UpdateLocationBank($input: UpdateLocationBankInput!) {
    updateLocationBank(input: $input) {
      ... on MutateLocationBankSuccessResponse {
        data {
          id
        }
      }
    }
  }
`;
export type GQLUpdateLocationBankMutationFn = Apollo.MutationFunction<
  GQLUpdateLocationBankMutation,
  GQLUpdateLocationBankMutationVariables
>;

/**
 * __useGQLUpdateLocationBankMutation__
 *
 * To run a mutation, you first call `useGQLUpdateLocationBankMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateLocationBankMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateLocationBankMutation, { data, loading, error }] = useGQLUpdateLocationBankMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateLocationBankMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateLocationBankMutation,
    GQLUpdateLocationBankMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateLocationBankMutation,
    GQLUpdateLocationBankMutationVariables
  >(GQLUpdateLocationBankDocument, options);
}
export type GQLUpdateLocationBankMutationHookResult = ReturnType<
  typeof useGQLUpdateLocationBankMutation
>;
export type GQLUpdateLocationBankMutationResult =
  Apollo.MutationResult<GQLUpdateLocationBankMutation>;
export type GQLUpdateLocationBankMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateLocationBankMutation,
  GQLUpdateLocationBankMutationVariables
>;
export const GQLLocationBankDocument = gql`
  query LocationBank($id: ID!) {
    locationBank(id: $id) {
      id
      name
      description
      locations {
        id
        name
        geometry {
          center {
            lat
            lng
          }
          radius
        }
        googlePlaceInfo {
          id
        }
        bounds {
          northeastCorner {
            lat
            lng
          }
          southwestCorner {
            lat
            lng
          }
        }
      }
    }
  }
`;

/**
 * __useGQLLocationBankQuery__
 *
 * To run a query within a React component, call `useGQLLocationBankQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLLocationBankQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLLocationBankQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLLocationBankQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLLocationBankQuery,
    GQLLocationBankQueryVariables
  > &
    (
      | { variables: GQLLocationBankQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLLocationBankQuery, GQLLocationBankQueryVariables>(
    GQLLocationBankDocument,
    options,
  );
}
export function useGQLLocationBankLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLLocationBankQuery,
    GQLLocationBankQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLLocationBankQuery,
    GQLLocationBankQueryVariables
  >(GQLLocationBankDocument, options);
}
// @ts-ignore
export function useGQLLocationBankSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLLocationBankQuery,
    GQLLocationBankQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLLocationBankQuery,
  GQLLocationBankQueryVariables
>;
export function useGQLLocationBankSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLLocationBankQuery,
        GQLLocationBankQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLLocationBankQuery | undefined,
  GQLLocationBankQueryVariables
>;
export function useGQLLocationBankSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLLocationBankQuery,
        GQLLocationBankQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLLocationBankQuery,
    GQLLocationBankQueryVariables
  >(GQLLocationBankDocument, options);
}
export type GQLLocationBankQueryHookResult = ReturnType<
  typeof useGQLLocationBankQuery
>;
export type GQLLocationBankLazyQueryHookResult = ReturnType<
  typeof useGQLLocationBankLazyQuery
>;
export type GQLLocationBankSuspenseQueryHookResult = ReturnType<
  typeof useGQLLocationBankSuspenseQuery
>;
export type GQLLocationBankQueryResult = Apollo.QueryResult<
  GQLLocationBankQuery,
  GQLLocationBankQueryVariables
>;
export const GQLLocationBankFormDocument = gql`
  query LocationBankForm {
    me {
      permissions
    }
  }
`;

/**
 * __useGQLLocationBankFormQuery__
 *
 * To run a query within a React component, call `useGQLLocationBankFormQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLLocationBankFormQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLLocationBankFormQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLLocationBankFormQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLLocationBankFormQuery,
    GQLLocationBankFormQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLLocationBankFormQuery,
    GQLLocationBankFormQueryVariables
  >(GQLLocationBankFormDocument, options);
}
export function useGQLLocationBankFormLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLLocationBankFormQuery,
    GQLLocationBankFormQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLLocationBankFormQuery,
    GQLLocationBankFormQueryVariables
  >(GQLLocationBankFormDocument, options);
}
// @ts-ignore
export function useGQLLocationBankFormSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLLocationBankFormQuery,
    GQLLocationBankFormQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLLocationBankFormQuery,
  GQLLocationBankFormQueryVariables
>;
export function useGQLLocationBankFormSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLLocationBankFormQuery,
        GQLLocationBankFormQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLLocationBankFormQuery | undefined,
  GQLLocationBankFormQueryVariables
>;
export function useGQLLocationBankFormSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLLocationBankFormQuery,
        GQLLocationBankFormQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLLocationBankFormQuery,
    GQLLocationBankFormQueryVariables
  >(GQLLocationBankFormDocument, options);
}
export type GQLLocationBankFormQueryHookResult = ReturnType<
  typeof useGQLLocationBankFormQuery
>;
export type GQLLocationBankFormLazyQueryHookResult = ReturnType<
  typeof useGQLLocationBankFormLazyQuery
>;
export type GQLLocationBankFormSuspenseQueryHookResult = ReturnType<
  typeof useGQLLocationBankFormSuspenseQuery
>;
export type GQLLocationBankFormQueryResult = Apollo.QueryResult<
  GQLLocationBankFormQuery,
  GQLLocationBankFormQueryVariables
>;
export const GQLLocationBanksDocument = gql`
  query LocationBanks {
    myOrg {
      banks {
        locationBanks {
          id
          name
          description
        }
      }
    }
    me {
      permissions
    }
  }
`;

/**
 * __useGQLLocationBanksQuery__
 *
 * To run a query within a React component, call `useGQLLocationBanksQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLLocationBanksQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLLocationBanksQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLLocationBanksQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLLocationBanksQuery,
    GQLLocationBanksQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLLocationBanksQuery, GQLLocationBanksQueryVariables>(
    GQLLocationBanksDocument,
    options,
  );
}
export function useGQLLocationBanksLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLLocationBanksQuery,
    GQLLocationBanksQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLLocationBanksQuery,
    GQLLocationBanksQueryVariables
  >(GQLLocationBanksDocument, options);
}
// @ts-ignore
export function useGQLLocationBanksSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLLocationBanksQuery,
    GQLLocationBanksQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLLocationBanksQuery,
  GQLLocationBanksQueryVariables
>;
export function useGQLLocationBanksSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLLocationBanksQuery,
        GQLLocationBanksQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLLocationBanksQuery | undefined,
  GQLLocationBanksQueryVariables
>;
export function useGQLLocationBanksSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLLocationBanksQuery,
        GQLLocationBanksQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLLocationBanksQuery,
    GQLLocationBanksQueryVariables
  >(GQLLocationBanksDocument, options);
}
export type GQLLocationBanksQueryHookResult = ReturnType<
  typeof useGQLLocationBanksQuery
>;
export type GQLLocationBanksLazyQueryHookResult = ReturnType<
  typeof useGQLLocationBanksLazyQuery
>;
export type GQLLocationBanksSuspenseQueryHookResult = ReturnType<
  typeof useGQLLocationBanksSuspenseQuery
>;
export type GQLLocationBanksQueryResult = Apollo.QueryResult<
  GQLLocationBanksQuery,
  GQLLocationBanksQueryVariables
>;
export const GQLDeleteLocationBankDocument = gql`
  mutation DeleteLocationBank($id: ID!) {
    deleteLocationBank(id: $id)
  }
`;
export type GQLDeleteLocationBankMutationFn = Apollo.MutationFunction<
  GQLDeleteLocationBankMutation,
  GQLDeleteLocationBankMutationVariables
>;

/**
 * __useGQLDeleteLocationBankMutation__
 *
 * To run a mutation, you first call `useGQLDeleteLocationBankMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteLocationBankMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteLocationBankMutation, { data, loading, error }] = useGQLDeleteLocationBankMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteLocationBankMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteLocationBankMutation,
    GQLDeleteLocationBankMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteLocationBankMutation,
    GQLDeleteLocationBankMutationVariables
  >(GQLDeleteLocationBankDocument, options);
}
export type GQLDeleteLocationBankMutationHookResult = ReturnType<
  typeof useGQLDeleteLocationBankMutation
>;
export type GQLDeleteLocationBankMutationResult =
  Apollo.MutationResult<GQLDeleteLocationBankMutation>;
export type GQLDeleteLocationBankMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteLocationBankMutation,
  GQLDeleteLocationBankMutationVariables
>;
export const GQLCreateTextBankDocument = gql`
  mutation CreateTextBank($input: CreateTextBankInput!) {
    createTextBank(input: $input) {
      success
      error
    }
  }
`;
export type GQLCreateTextBankMutationFn = Apollo.MutationFunction<
  GQLCreateTextBankMutation,
  GQLCreateTextBankMutationVariables
>;

/**
 * __useGQLCreateTextBankMutation__
 *
 * To run a mutation, you first call `useGQLCreateTextBankMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateTextBankMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateTextBankMutation, { data, loading, error }] = useGQLCreateTextBankMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateTextBankMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateTextBankMutation,
    GQLCreateTextBankMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateTextBankMutation,
    GQLCreateTextBankMutationVariables
  >(GQLCreateTextBankDocument, options);
}
export type GQLCreateTextBankMutationHookResult = ReturnType<
  typeof useGQLCreateTextBankMutation
>;
export type GQLCreateTextBankMutationResult =
  Apollo.MutationResult<GQLCreateTextBankMutation>;
export type GQLCreateTextBankMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateTextBankMutation,
  GQLCreateTextBankMutationVariables
>;
export const GQLUpdateTextBankDocument = gql`
  mutation UpdateTextBank($input: UpdateTextBankInput!) {
    updateTextBank(input: $input) {
      success
      error
    }
  }
`;
export type GQLUpdateTextBankMutationFn = Apollo.MutationFunction<
  GQLUpdateTextBankMutation,
  GQLUpdateTextBankMutationVariables
>;

/**
 * __useGQLUpdateTextBankMutation__
 *
 * To run a mutation, you first call `useGQLUpdateTextBankMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateTextBankMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateTextBankMutation, { data, loading, error }] = useGQLUpdateTextBankMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateTextBankMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateTextBankMutation,
    GQLUpdateTextBankMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateTextBankMutation,
    GQLUpdateTextBankMutationVariables
  >(GQLUpdateTextBankDocument, options);
}
export type GQLUpdateTextBankMutationHookResult = ReturnType<
  typeof useGQLUpdateTextBankMutation
>;
export type GQLUpdateTextBankMutationResult =
  Apollo.MutationResult<GQLUpdateTextBankMutation>;
export type GQLUpdateTextBankMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateTextBankMutation,
  GQLUpdateTextBankMutationVariables
>;
export const GQLTextBankDocument = gql`
  query TextBank($id: ID!) {
    textBank(id: $id) {
      id
      name
      description
      type
      strings
    }
  }
`;

/**
 * __useGQLTextBankQuery__
 *
 * To run a query within a React component, call `useGQLTextBankQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLTextBankQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLTextBankQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLTextBankQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLTextBankQuery,
    GQLTextBankQueryVariables
  > &
    (
      | { variables: GQLTextBankQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLTextBankQuery, GQLTextBankQueryVariables>(
    GQLTextBankDocument,
    options,
  );
}
export function useGQLTextBankLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLTextBankQuery,
    GQLTextBankQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLTextBankQuery, GQLTextBankQueryVariables>(
    GQLTextBankDocument,
    options,
  );
}
// @ts-ignore
export function useGQLTextBankSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLTextBankQuery,
    GQLTextBankQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLTextBankQuery, GQLTextBankQueryVariables>;
export function useGQLTextBankSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLTextBankQuery,
        GQLTextBankQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLTextBankQuery | undefined,
  GQLTextBankQueryVariables
>;
export function useGQLTextBankSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLTextBankQuery,
        GQLTextBankQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLTextBankQuery, GQLTextBankQueryVariables>(
    GQLTextBankDocument,
    options,
  );
}
export type GQLTextBankQueryHookResult = ReturnType<typeof useGQLTextBankQuery>;
export type GQLTextBankLazyQueryHookResult = ReturnType<
  typeof useGQLTextBankLazyQuery
>;
export type GQLTextBankSuspenseQueryHookResult = ReturnType<
  typeof useGQLTextBankSuspenseQuery
>;
export type GQLTextBankQueryResult = Apollo.QueryResult<
  GQLTextBankQuery,
  GQLTextBankQueryVariables
>;
export const GQLTextBankFormDocument = gql`
  query TextBankForm {
    me {
      permissions
    }
  }
`;

/**
 * __useGQLTextBankFormQuery__
 *
 * To run a query within a React component, call `useGQLTextBankFormQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLTextBankFormQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLTextBankFormQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLTextBankFormQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLTextBankFormQuery,
    GQLTextBankFormQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLTextBankFormQuery, GQLTextBankFormQueryVariables>(
    GQLTextBankFormDocument,
    options,
  );
}
export function useGQLTextBankFormLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLTextBankFormQuery,
    GQLTextBankFormQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLTextBankFormQuery,
    GQLTextBankFormQueryVariables
  >(GQLTextBankFormDocument, options);
}
// @ts-ignore
export function useGQLTextBankFormSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLTextBankFormQuery,
    GQLTextBankFormQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLTextBankFormQuery,
  GQLTextBankFormQueryVariables
>;
export function useGQLTextBankFormSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLTextBankFormQuery,
        GQLTextBankFormQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLTextBankFormQuery | undefined,
  GQLTextBankFormQueryVariables
>;
export function useGQLTextBankFormSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLTextBankFormQuery,
        GQLTextBankFormQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLTextBankFormQuery,
    GQLTextBankFormQueryVariables
  >(GQLTextBankFormDocument, options);
}
export type GQLTextBankFormQueryHookResult = ReturnType<
  typeof useGQLTextBankFormQuery
>;
export type GQLTextBankFormLazyQueryHookResult = ReturnType<
  typeof useGQLTextBankFormLazyQuery
>;
export type GQLTextBankFormSuspenseQueryHookResult = ReturnType<
  typeof useGQLTextBankFormSuspenseQuery
>;
export type GQLTextBankFormQueryResult = Apollo.QueryResult<
  GQLTextBankFormQuery,
  GQLTextBankFormQueryVariables
>;
export const GQLTextBanksDocument = gql`
  query TextBanks {
    myOrg {
      banks {
        textBanks {
          id
          name
          description
          type
        }
      }
    }
    me {
      permissions
    }
  }
`;

/**
 * __useGQLTextBanksQuery__
 *
 * To run a query within a React component, call `useGQLTextBanksQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLTextBanksQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLTextBanksQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLTextBanksQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLTextBanksQuery,
    GQLTextBanksQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLTextBanksQuery, GQLTextBanksQueryVariables>(
    GQLTextBanksDocument,
    options,
  );
}
export function useGQLTextBanksLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLTextBanksQuery,
    GQLTextBanksQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLTextBanksQuery, GQLTextBanksQueryVariables>(
    GQLTextBanksDocument,
    options,
  );
}
// @ts-ignore
export function useGQLTextBanksSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLTextBanksQuery,
    GQLTextBanksQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLTextBanksQuery, GQLTextBanksQueryVariables>;
export function useGQLTextBanksSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLTextBanksQuery,
        GQLTextBanksQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLTextBanksQuery | undefined,
  GQLTextBanksQueryVariables
>;
export function useGQLTextBanksSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLTextBanksQuery,
        GQLTextBanksQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLTextBanksQuery, GQLTextBanksQueryVariables>(
    GQLTextBanksDocument,
    options,
  );
}
export type GQLTextBanksQueryHookResult = ReturnType<
  typeof useGQLTextBanksQuery
>;
export type GQLTextBanksLazyQueryHookResult = ReturnType<
  typeof useGQLTextBanksLazyQuery
>;
export type GQLTextBanksSuspenseQueryHookResult = ReturnType<
  typeof useGQLTextBanksSuspenseQuery
>;
export type GQLTextBanksQueryResult = Apollo.QueryResult<
  GQLTextBanksQuery,
  GQLTextBanksQueryVariables
>;
export const GQLDeleteTextBankDocument = gql`
  mutation DeleteTextBank($id: ID!) {
    deleteTextBank(id: $id)
  }
`;
export type GQLDeleteTextBankMutationFn = Apollo.MutationFunction<
  GQLDeleteTextBankMutation,
  GQLDeleteTextBankMutationVariables
>;

/**
 * __useGQLDeleteTextBankMutation__
 *
 * To run a mutation, you first call `useGQLDeleteTextBankMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteTextBankMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteTextBankMutation, { data, loading, error }] = useGQLDeleteTextBankMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteTextBankMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteTextBankMutation,
    GQLDeleteTextBankMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteTextBankMutation,
    GQLDeleteTextBankMutationVariables
  >(GQLDeleteTextBankDocument, options);
}
export type GQLDeleteTextBankMutationHookResult = ReturnType<
  typeof useGQLDeleteTextBankMutation
>;
export type GQLDeleteTextBankMutationResult =
  Apollo.MutationResult<GQLDeleteTextBankMutation>;
export type GQLDeleteTextBankMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteTextBankMutation,
  GQLDeleteTextBankMutationVariables
>;
export const GQLBulkActionsFormDataDocument = gql`
  query BulkActionsFormData {
    myOrg {
      id
      itemTypes {
        ... on ItemTypeBase {
          id
          name
        }
      }
      actions {
        ... on ActionBase {
          id
          name
          parameters {
            name
            displayName
            description
            type
            required
            options {
              value
              label
            }
            min
            max
            maxLength
            defaultValue
          }
        }
        ... on CustomAction {
          itemTypes {
            ... on ItemTypeBase {
              id
            }
          }
        }
        ... on EnqueueToMrtAction {
          itemTypes {
            ... on ItemTypeBase {
              id
            }
          }
        }
        ... on EnqueueToNcmecAction {
          itemTypes {
            ... on ItemTypeBase {
              id
            }
          }
        }
        ... on EnqueueAuthorToMrtAction {
          itemTypes {
            ... on ItemTypeBase {
              id
            }
          }
        }
      }
      policies {
        id
        name
        parentId
      }
      allowMultiplePoliciesPerAction
    }
    me {
      permissions
    }
  }
`;

/**
 * __useGQLBulkActionsFormDataQuery__
 *
 * To run a query within a React component, call `useGQLBulkActionsFormDataQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLBulkActionsFormDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLBulkActionsFormDataQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLBulkActionsFormDataQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLBulkActionsFormDataQuery,
    GQLBulkActionsFormDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLBulkActionsFormDataQuery,
    GQLBulkActionsFormDataQueryVariables
  >(GQLBulkActionsFormDataDocument, options);
}
export function useGQLBulkActionsFormDataLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLBulkActionsFormDataQuery,
    GQLBulkActionsFormDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLBulkActionsFormDataQuery,
    GQLBulkActionsFormDataQueryVariables
  >(GQLBulkActionsFormDataDocument, options);
}
// @ts-ignore
export function useGQLBulkActionsFormDataSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLBulkActionsFormDataQuery,
    GQLBulkActionsFormDataQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLBulkActionsFormDataQuery,
  GQLBulkActionsFormDataQueryVariables
>;
export function useGQLBulkActionsFormDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLBulkActionsFormDataQuery,
        GQLBulkActionsFormDataQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLBulkActionsFormDataQuery | undefined,
  GQLBulkActionsFormDataQueryVariables
>;
export function useGQLBulkActionsFormDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLBulkActionsFormDataQuery,
        GQLBulkActionsFormDataQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLBulkActionsFormDataQuery,
    GQLBulkActionsFormDataQueryVariables
  >(GQLBulkActionsFormDataDocument, options);
}
export type GQLBulkActionsFormDataQueryHookResult = ReturnType<
  typeof useGQLBulkActionsFormDataQuery
>;
export type GQLBulkActionsFormDataLazyQueryHookResult = ReturnType<
  typeof useGQLBulkActionsFormDataLazyQuery
>;
export type GQLBulkActionsFormDataSuspenseQueryHookResult = ReturnType<
  typeof useGQLBulkActionsFormDataSuspenseQuery
>;
export type GQLBulkActionsFormDataQueryResult = Apollo.QueryResult<
  GQLBulkActionsFormDataQuery,
  GQLBulkActionsFormDataQueryVariables
>;
export const GQLBulkActionExecutionDocument = gql`
  mutation BulkActionExecution($input: ExecuteBulkActionInput!) {
    bulkExecuteActions(input: $input) {
      results {
        itemId
        actionId
        success
      }
    }
  }
`;
export type GQLBulkActionExecutionMutationFn = Apollo.MutationFunction<
  GQLBulkActionExecutionMutation,
  GQLBulkActionExecutionMutationVariables
>;

/**
 * __useGQLBulkActionExecutionMutation__
 *
 * To run a mutation, you first call `useGQLBulkActionExecutionMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLBulkActionExecutionMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlBulkActionExecutionMutation, { data, loading, error }] = useGQLBulkActionExecutionMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLBulkActionExecutionMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLBulkActionExecutionMutation,
    GQLBulkActionExecutionMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLBulkActionExecutionMutation,
    GQLBulkActionExecutionMutationVariables
  >(GQLBulkActionExecutionDocument, options);
}
export type GQLBulkActionExecutionMutationHookResult = ReturnType<
  typeof useGQLBulkActionExecutionMutation
>;
export type GQLBulkActionExecutionMutationResult =
  Apollo.MutationResult<GQLBulkActionExecutionMutation>;
export type GQLBulkActionExecutionMutationOptions = Apollo.BaseMutationOptions<
  GQLBulkActionExecutionMutation,
  GQLBulkActionExecutionMutationVariables
>;
export const GQLMatchingBankIdsDocument = gql`
  query MatchingBankIds {
    myOrg {
      banks {
        textBanks {
          id
          name
          description
          type
        }
        locationBanks {
          id
          name
          description
          locations {
            id
          }
        }
        hashBanks {
          id
          name
          description
          enabled_ratio
        }
      }
    }
  }
`;

/**
 * __useGQLMatchingBankIdsQuery__
 *
 * To run a query within a React component, call `useGQLMatchingBankIdsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLMatchingBankIdsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLMatchingBankIdsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLMatchingBankIdsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLMatchingBankIdsQuery,
    GQLMatchingBankIdsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLMatchingBankIdsQuery,
    GQLMatchingBankIdsQueryVariables
  >(GQLMatchingBankIdsDocument, options);
}
export function useGQLMatchingBankIdsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLMatchingBankIdsQuery,
    GQLMatchingBankIdsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLMatchingBankIdsQuery,
    GQLMatchingBankIdsQueryVariables
  >(GQLMatchingBankIdsDocument, options);
}
// @ts-ignore
export function useGQLMatchingBankIdsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLMatchingBankIdsQuery,
    GQLMatchingBankIdsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLMatchingBankIdsQuery,
  GQLMatchingBankIdsQueryVariables
>;
export function useGQLMatchingBankIdsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLMatchingBankIdsQuery,
        GQLMatchingBankIdsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLMatchingBankIdsQuery | undefined,
  GQLMatchingBankIdsQueryVariables
>;
export function useGQLMatchingBankIdsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLMatchingBankIdsQuery,
        GQLMatchingBankIdsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLMatchingBankIdsQuery,
    GQLMatchingBankIdsQueryVariables
  >(GQLMatchingBankIdsDocument, options);
}
export type GQLMatchingBankIdsQueryHookResult = ReturnType<
  typeof useGQLMatchingBankIdsQuery
>;
export type GQLMatchingBankIdsLazyQueryHookResult = ReturnType<
  typeof useGQLMatchingBankIdsLazyQuery
>;
export type GQLMatchingBankIdsSuspenseQueryHookResult = ReturnType<
  typeof useGQLMatchingBankIdsSuspenseQuery
>;
export type GQLMatchingBankIdsQueryResult = Apollo.QueryResult<
  GQLMatchingBankIdsQuery,
  GQLMatchingBankIdsQueryVariables
>;
export const GQLSetIntegrationConfigDocument = gql`
  mutation SetIntegrationConfig($input: SetIntegrationConfigInput!) {
    setIntegrationConfig(input: $input) {
      ... on SetIntegrationConfigSuccessResponse {
        config {
          name
        }
      }
      ... on IntegrationConfigTooManyCredentialsError {
        title
      }
      ... on IntegrationNoInputCredentialsError {
        title
      }
      ... on IntegrationEmptyInputCredentialsError {
        title
      }
    }
  }
`;
export type GQLSetIntegrationConfigMutationFn = Apollo.MutationFunction<
  GQLSetIntegrationConfigMutation,
  GQLSetIntegrationConfigMutationVariables
>;

/**
 * __useGQLSetIntegrationConfigMutation__
 *
 * To run a mutation, you first call `useGQLSetIntegrationConfigMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLSetIntegrationConfigMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlSetIntegrationConfigMutation, { data, loading, error }] = useGQLSetIntegrationConfigMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLSetIntegrationConfigMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLSetIntegrationConfigMutation,
    GQLSetIntegrationConfigMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLSetIntegrationConfigMutation,
    GQLSetIntegrationConfigMutationVariables
  >(GQLSetIntegrationConfigDocument, options);
}
export type GQLSetIntegrationConfigMutationHookResult = ReturnType<
  typeof useGQLSetIntegrationConfigMutation
>;
export type GQLSetIntegrationConfigMutationResult =
  Apollo.MutationResult<GQLSetIntegrationConfigMutation>;
export type GQLSetIntegrationConfigMutationOptions = Apollo.BaseMutationOptions<
  GQLSetIntegrationConfigMutation,
  GQLSetIntegrationConfigMutationVariables
>;
export const GQLSetPluginIntegrationConfigDocument = gql`
  mutation SetPluginIntegrationConfig(
    $input: SetPluginIntegrationConfigInput!
  ) {
    setPluginIntegrationConfig(input: $input) {
      ... on SetIntegrationConfigSuccessResponse {
        config {
          name
        }
      }
      ... on IntegrationConfigTooManyCredentialsError {
        title
      }
      ... on IntegrationNoInputCredentialsError {
        title
      }
      ... on IntegrationEmptyInputCredentialsError {
        title
      }
    }
  }
`;
export type GQLSetPluginIntegrationConfigMutationFn = Apollo.MutationFunction<
  GQLSetPluginIntegrationConfigMutation,
  GQLSetPluginIntegrationConfigMutationVariables
>;

/**
 * __useGQLSetPluginIntegrationConfigMutation__
 *
 * To run a mutation, you first call `useGQLSetPluginIntegrationConfigMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLSetPluginIntegrationConfigMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlSetPluginIntegrationConfigMutation, { data, loading, error }] = useGQLSetPluginIntegrationConfigMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLSetPluginIntegrationConfigMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLSetPluginIntegrationConfigMutation,
    GQLSetPluginIntegrationConfigMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLSetPluginIntegrationConfigMutation,
    GQLSetPluginIntegrationConfigMutationVariables
  >(GQLSetPluginIntegrationConfigDocument, options);
}
export type GQLSetPluginIntegrationConfigMutationHookResult = ReturnType<
  typeof useGQLSetPluginIntegrationConfigMutation
>;
export type GQLSetPluginIntegrationConfigMutationResult =
  Apollo.MutationResult<GQLSetPluginIntegrationConfigMutation>;
export type GQLSetPluginIntegrationConfigMutationOptions =
  Apollo.BaseMutationOptions<
    GQLSetPluginIntegrationConfigMutation,
    GQLSetPluginIntegrationConfigMutationVariables
  >;
export const GQLIntegrationConfigDocument = gql`
  query IntegrationConfig($name: String!) {
    integrationConfig(name: $name) {
      ... on IntegrationConfigSuccessResult {
        config {
          name
          title
          docsUrl
          requiresConfig
          logoUrl
          logoWithBackgroundUrl
          modelCard {
            modelName
            version
            releaseDate
            sections {
              id
              title
              subsections {
                title
                fields {
                  label
                  value
                }
              }
              fields {
                label
                value
              }
            }
          }
          modelCardLearnMoreUrl
          apiCredential {
            ... on GoogleContentSafetyApiIntegrationApiCredential {
              apiKey
            }
            ... on OpenAiIntegrationApiCredential {
              apiKey
            }
            ... on ZentropiIntegrationApiCredential {
              apiKey
              labelerVersions {
                id
                label
              }
            }
            ... on PluginIntegrationApiCredential {
              credential
            }
          }
        }
      }
      ... on IntegrationConfigUnsupportedIntegrationError {
        title
      }
      ... on IntegrationConfigUnsupportedIntegrationError {
        title
      }
    }
  }
`;

/**
 * __useGQLIntegrationConfigQuery__
 *
 * To run a query within a React component, call `useGQLIntegrationConfigQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLIntegrationConfigQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLIntegrationConfigQuery({
 *   variables: {
 *      name: // value for 'name'
 *   },
 * });
 */
export function useGQLIntegrationConfigQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLIntegrationConfigQuery,
    GQLIntegrationConfigQueryVariables
  > &
    (
      | { variables: GQLIntegrationConfigQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLIntegrationConfigQuery,
    GQLIntegrationConfigQueryVariables
  >(GQLIntegrationConfigDocument, options);
}
export function useGQLIntegrationConfigLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLIntegrationConfigQuery,
    GQLIntegrationConfigQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLIntegrationConfigQuery,
    GQLIntegrationConfigQueryVariables
  >(GQLIntegrationConfigDocument, options);
}
// @ts-ignore
export function useGQLIntegrationConfigSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLIntegrationConfigQuery,
    GQLIntegrationConfigQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLIntegrationConfigQuery,
  GQLIntegrationConfigQueryVariables
>;
export function useGQLIntegrationConfigSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLIntegrationConfigQuery,
        GQLIntegrationConfigQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLIntegrationConfigQuery | undefined,
  GQLIntegrationConfigQueryVariables
>;
export function useGQLIntegrationConfigSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLIntegrationConfigQuery,
        GQLIntegrationConfigQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLIntegrationConfigQuery,
    GQLIntegrationConfigQueryVariables
  >(GQLIntegrationConfigDocument, options);
}
export type GQLIntegrationConfigQueryHookResult = ReturnType<
  typeof useGQLIntegrationConfigQuery
>;
export type GQLIntegrationConfigLazyQueryHookResult = ReturnType<
  typeof useGQLIntegrationConfigLazyQuery
>;
export type GQLIntegrationConfigSuspenseQueryHookResult = ReturnType<
  typeof useGQLIntegrationConfigSuspenseQuery
>;
export type GQLIntegrationConfigQueryResult = Apollo.QueryResult<
  GQLIntegrationConfigQuery,
  GQLIntegrationConfigQueryVariables
>;
export const GQLMyIntegrationsDocument = gql`
  query MyIntegrations {
    myOrg {
      integrationConfigs {
        name
      }
    }
  }
`;

/**
 * __useGQLMyIntegrationsQuery__
 *
 * To run a query within a React component, call `useGQLMyIntegrationsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLMyIntegrationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLMyIntegrationsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLMyIntegrationsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLMyIntegrationsQuery,
    GQLMyIntegrationsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLMyIntegrationsQuery,
    GQLMyIntegrationsQueryVariables
  >(GQLMyIntegrationsDocument, options);
}
export function useGQLMyIntegrationsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLMyIntegrationsQuery,
    GQLMyIntegrationsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLMyIntegrationsQuery,
    GQLMyIntegrationsQueryVariables
  >(GQLMyIntegrationsDocument, options);
}
// @ts-ignore
export function useGQLMyIntegrationsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLMyIntegrationsQuery,
    GQLMyIntegrationsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLMyIntegrationsQuery,
  GQLMyIntegrationsQueryVariables
>;
export function useGQLMyIntegrationsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLMyIntegrationsQuery,
        GQLMyIntegrationsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLMyIntegrationsQuery | undefined,
  GQLMyIntegrationsQueryVariables
>;
export function useGQLMyIntegrationsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLMyIntegrationsQuery,
        GQLMyIntegrationsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLMyIntegrationsQuery,
    GQLMyIntegrationsQueryVariables
  >(GQLMyIntegrationsDocument, options);
}
export type GQLMyIntegrationsQueryHookResult = ReturnType<
  typeof useGQLMyIntegrationsQuery
>;
export type GQLMyIntegrationsLazyQueryHookResult = ReturnType<
  typeof useGQLMyIntegrationsLazyQuery
>;
export type GQLMyIntegrationsSuspenseQueryHookResult = ReturnType<
  typeof useGQLMyIntegrationsSuspenseQuery
>;
export type GQLMyIntegrationsQueryResult = Apollo.QueryResult<
  GQLMyIntegrationsQuery,
  GQLMyIntegrationsQueryVariables
>;
export const GQLAvailableIntegrationsDocument = gql`
  query AvailableIntegrations {
    availableIntegrations {
      name
      title
      docsUrl
      requiresConfig
      logoUrl
      logoWithBackgroundUrl
    }
  }
`;

/**
 * __useGQLAvailableIntegrationsQuery__
 *
 * To run a query within a React component, call `useGQLAvailableIntegrationsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLAvailableIntegrationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLAvailableIntegrationsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLAvailableIntegrationsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLAvailableIntegrationsQuery,
    GQLAvailableIntegrationsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLAvailableIntegrationsQuery,
    GQLAvailableIntegrationsQueryVariables
  >(GQLAvailableIntegrationsDocument, options);
}
export function useGQLAvailableIntegrationsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLAvailableIntegrationsQuery,
    GQLAvailableIntegrationsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLAvailableIntegrationsQuery,
    GQLAvailableIntegrationsQueryVariables
  >(GQLAvailableIntegrationsDocument, options);
}
// @ts-ignore
export function useGQLAvailableIntegrationsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLAvailableIntegrationsQuery,
    GQLAvailableIntegrationsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLAvailableIntegrationsQuery,
  GQLAvailableIntegrationsQueryVariables
>;
export function useGQLAvailableIntegrationsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLAvailableIntegrationsQuery,
        GQLAvailableIntegrationsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLAvailableIntegrationsQuery | undefined,
  GQLAvailableIntegrationsQueryVariables
>;
export function useGQLAvailableIntegrationsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLAvailableIntegrationsQuery,
        GQLAvailableIntegrationsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLAvailableIntegrationsQuery,
    GQLAvailableIntegrationsQueryVariables
  >(GQLAvailableIntegrationsDocument, options);
}
export type GQLAvailableIntegrationsQueryHookResult = ReturnType<
  typeof useGQLAvailableIntegrationsQuery
>;
export type GQLAvailableIntegrationsLazyQueryHookResult = ReturnType<
  typeof useGQLAvailableIntegrationsLazyQuery
>;
export type GQLAvailableIntegrationsSuspenseQueryHookResult = ReturnType<
  typeof useGQLAvailableIntegrationsSuspenseQuery
>;
export type GQLAvailableIntegrationsQueryResult = Apollo.QueryResult<
  GQLAvailableIntegrationsQuery,
  GQLAvailableIntegrationsQueryVariables
>;
export const GQLInvestigationItemTypesDocument = gql`
  query InvestigationItemTypes {
    myOrg {
      itemTypes {
        ...ItemTypeFragment
      }
    }
  }
  ${GQLItemTypeFragmentFragmentDoc}
`;

/**
 * __useGQLInvestigationItemTypesQuery__
 *
 * To run a query within a React component, call `useGQLInvestigationItemTypesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLInvestigationItemTypesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLInvestigationItemTypesQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLInvestigationItemTypesQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLInvestigationItemTypesQuery,
    GQLInvestigationItemTypesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLInvestigationItemTypesQuery,
    GQLInvestigationItemTypesQueryVariables
  >(GQLInvestigationItemTypesDocument, options);
}
export function useGQLInvestigationItemTypesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLInvestigationItemTypesQuery,
    GQLInvestigationItemTypesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLInvestigationItemTypesQuery,
    GQLInvestigationItemTypesQueryVariables
  >(GQLInvestigationItemTypesDocument, options);
}
// @ts-ignore
export function useGQLInvestigationItemTypesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLInvestigationItemTypesQuery,
    GQLInvestigationItemTypesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLInvestigationItemTypesQuery,
  GQLInvestigationItemTypesQueryVariables
>;
export function useGQLInvestigationItemTypesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLInvestigationItemTypesQuery,
        GQLInvestigationItemTypesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLInvestigationItemTypesQuery | undefined,
  GQLInvestigationItemTypesQueryVariables
>;
export function useGQLInvestigationItemTypesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLInvestigationItemTypesQuery,
        GQLInvestigationItemTypesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLInvestigationItemTypesQuery,
    GQLInvestigationItemTypesQueryVariables
  >(GQLInvestigationItemTypesDocument, options);
}
export type GQLInvestigationItemTypesQueryHookResult = ReturnType<
  typeof useGQLInvestigationItemTypesQuery
>;
export type GQLInvestigationItemTypesLazyQueryHookResult = ReturnType<
  typeof useGQLInvestigationItemTypesLazyQuery
>;
export type GQLInvestigationItemTypesSuspenseQueryHookResult = ReturnType<
  typeof useGQLInvestigationItemTypesSuspenseQuery
>;
export type GQLInvestigationItemTypesQueryResult = Apollo.QueryResult<
  GQLInvestigationItemTypesQuery,
  GQLInvestigationItemTypesQueryVariables
>;
export const GQLGetOrgDataDocument = gql`
  query GetOrgData {
    myOrg {
      actions {
        ... on ActionBase {
          id
          name
          penalty
          itemTypes {
            ... on ItemTypeBase {
              id
              name
            }
          }
        }
      }
      itemTypes {
        ...ItemTypeFragment
      }
      policies {
        id
        name
        parentId
      }
      rules {
        id
        actions {
          ... on ActionBase {
            id
            name
          }
        }
      }
      requiresPolicyForDecisionsInMrt
      allowMultiplePoliciesPerAction
    }
  }
  ${GQLItemTypeFragmentFragmentDoc}
`;

/**
 * __useGQLGetOrgDataQuery__
 *
 * To run a query within a React component, call `useGQLGetOrgDataQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetOrgDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetOrgDataQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLGetOrgDataQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLGetOrgDataQuery,
    GQLGetOrgDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLGetOrgDataQuery, GQLGetOrgDataQueryVariables>(
    GQLGetOrgDataDocument,
    options,
  );
}
export function useGQLGetOrgDataLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetOrgDataQuery,
    GQLGetOrgDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLGetOrgDataQuery, GQLGetOrgDataQueryVariables>(
    GQLGetOrgDataDocument,
    options,
  );
}
// @ts-ignore
export function useGQLGetOrgDataSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetOrgDataQuery,
    GQLGetOrgDataQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetOrgDataQuery,
  GQLGetOrgDataQueryVariables
>;
export function useGQLGetOrgDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetOrgDataQuery,
        GQLGetOrgDataQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetOrgDataQuery | undefined,
  GQLGetOrgDataQueryVariables
>;
export function useGQLGetOrgDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetOrgDataQuery,
        GQLGetOrgDataQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetOrgDataQuery,
    GQLGetOrgDataQueryVariables
  >(GQLGetOrgDataDocument, options);
}
export type GQLGetOrgDataQueryHookResult = ReturnType<
  typeof useGQLGetOrgDataQuery
>;
export type GQLGetOrgDataLazyQueryHookResult = ReturnType<
  typeof useGQLGetOrgDataLazyQuery
>;
export type GQLGetOrgDataSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetOrgDataSuspenseQuery
>;
export type GQLGetOrgDataQueryResult = Apollo.QueryResult<
  GQLGetOrgDataQuery,
  GQLGetOrgDataQueryVariables
>;
export const GQLGetItemsWithIdDocument = gql`
  query GetItemsWithId($id: ID!, $typeId: ID) {
    itemsWithId(itemId: $id, typeId: $typeId, returnFirstResultOnly: true) {
      isSynthetic
      latest {
        ... on ItemBase {
          id
          data
          submissionId
          submissionTime
          type {
            ... on ItemTypeBase {
              id
              name
              version
              schemaVariant
              baseFields {
                name
                type
                required
                container {
                  containerType
                  keyScalarType
                  valueScalarType
                }
              }
              ... on ContentItemType {
                schemaFieldRoles {
                  displayName
                  parentId
                  threadId
                  createdAt
                  creatorId
                  ipAddress
                }
              }
              ... on UserItemType {
                schemaFieldRoles {
                  displayName
                  createdAt
                  profileIcon
                  ipAddress
                }
              }
              ... on ThreadItemType {
                schemaFieldRoles {
                  displayName
                  createdAt
                  creatorId
                  ipAddress
                }
              }
            }
          }
        }
        ... on UserItem {
          userStrikeCount
        }
      }
    }
  }
`;

/**
 * __useGQLGetItemsWithIdQuery__
 *
 * To run a query within a React component, call `useGQLGetItemsWithIdQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetItemsWithIdQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetItemsWithIdQuery({
 *   variables: {
 *      id: // value for 'id'
 *      typeId: // value for 'typeId'
 *   },
 * });
 */
export function useGQLGetItemsWithIdQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetItemsWithIdQuery,
    GQLGetItemsWithIdQueryVariables
  > &
    (
      | { variables: GQLGetItemsWithIdQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetItemsWithIdQuery,
    GQLGetItemsWithIdQueryVariables
  >(GQLGetItemsWithIdDocument, options);
}
export function useGQLGetItemsWithIdLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetItemsWithIdQuery,
    GQLGetItemsWithIdQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetItemsWithIdQuery,
    GQLGetItemsWithIdQueryVariables
  >(GQLGetItemsWithIdDocument, options);
}
// @ts-ignore
export function useGQLGetItemsWithIdSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetItemsWithIdQuery,
    GQLGetItemsWithIdQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetItemsWithIdQuery,
  GQLGetItemsWithIdQueryVariables
>;
export function useGQLGetItemsWithIdSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetItemsWithIdQuery,
        GQLGetItemsWithIdQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetItemsWithIdQuery | undefined,
  GQLGetItemsWithIdQueryVariables
>;
export function useGQLGetItemsWithIdSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetItemsWithIdQuery,
        GQLGetItemsWithIdQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetItemsWithIdQuery,
    GQLGetItemsWithIdQueryVariables
  >(GQLGetItemsWithIdDocument, options);
}
export type GQLGetItemsWithIdQueryHookResult = ReturnType<
  typeof useGQLGetItemsWithIdQuery
>;
export type GQLGetItemsWithIdLazyQueryHookResult = ReturnType<
  typeof useGQLGetItemsWithIdLazyQuery
>;
export type GQLGetItemsWithIdSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetItemsWithIdSuspenseQuery
>;
export type GQLGetItemsWithIdQueryResult = Apollo.QueryResult<
  GQLGetItemsWithIdQuery,
  GQLGetItemsWithIdQueryVariables
>;
export const GQLInvestigationItemsDocument = gql`
  query InvestigationItems(
    $itemIdentifier: ItemIdentifierInput!
    $submissionTime: DateTime
  ) {
    itemWithHistory(
      itemIdentifier: $itemIdentifier
      submissionTime: $submissionTime
    ) {
      ... on ItemHistoryResult {
        item {
          ... on ItemBase {
            id
            submissionId
            type {
              ... on ItemTypeBase {
                id
              }
            }
          }
        }
        executions {
          date
          ts
          contentId
          itemTypeName
          itemTypeId
          userId
          userTypeId
          content
          environment
          passed
          ruleId
          ruleName
          policies
          tags
          result {
            conjunction
            conditions {
              ... on ConditionSetWithResult {
                conjunction
                conditions {
                  ... on LeafConditionWithResult {
                    ...LeafConditionWithResultFields
                  }
                }
                result {
                  outcome
                  score
                  matchedValue
                }
              }
              ... on LeafConditionWithResult {
                ...LeafConditionWithResultFields
              }
            }
            result {
              outcome
              score
              matchedValue
            }
          }
        }
      }
      ... on NotFoundError {
        title
      }
    }
  }
  ${GQLLeafConditionWithResultFieldsFragmentDoc}
`;

/**
 * __useGQLInvestigationItemsQuery__
 *
 * To run a query within a React component, call `useGQLInvestigationItemsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLInvestigationItemsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLInvestigationItemsQuery({
 *   variables: {
 *      itemIdentifier: // value for 'itemIdentifier'
 *      submissionTime: // value for 'submissionTime'
 *   },
 * });
 */
export function useGQLInvestigationItemsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLInvestigationItemsQuery,
    GQLInvestigationItemsQueryVariables
  > &
    (
      | { variables: GQLInvestigationItemsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLInvestigationItemsQuery,
    GQLInvestigationItemsQueryVariables
  >(GQLInvestigationItemsDocument, options);
}
export function useGQLInvestigationItemsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLInvestigationItemsQuery,
    GQLInvestigationItemsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLInvestigationItemsQuery,
    GQLInvestigationItemsQueryVariables
  >(GQLInvestigationItemsDocument, options);
}
// @ts-ignore
export function useGQLInvestigationItemsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLInvestigationItemsQuery,
    GQLInvestigationItemsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLInvestigationItemsQuery,
  GQLInvestigationItemsQueryVariables
>;
export function useGQLInvestigationItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLInvestigationItemsQuery,
        GQLInvestigationItemsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLInvestigationItemsQuery | undefined,
  GQLInvestigationItemsQueryVariables
>;
export function useGQLInvestigationItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLInvestigationItemsQuery,
        GQLInvestigationItemsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLInvestigationItemsQuery,
    GQLInvestigationItemsQueryVariables
  >(GQLInvestigationItemsDocument, options);
}
export type GQLInvestigationItemsQueryHookResult = ReturnType<
  typeof useGQLInvestigationItemsQuery
>;
export type GQLInvestigationItemsLazyQueryHookResult = ReturnType<
  typeof useGQLInvestigationItemsLazyQuery
>;
export type GQLInvestigationItemsSuspenseQueryHookResult = ReturnType<
  typeof useGQLInvestigationItemsSuspenseQuery
>;
export type GQLInvestigationItemsQueryResult = Apollo.QueryResult<
  GQLInvestigationItemsQuery,
  GQLInvestigationItemsQueryVariables
>;
export const GQLGetItemsByIpAddressDocument = gql`
  query GetItemsByIpAddress($ipAddress: String!, $limit: Int) {
    latestItemsByIpAddress(ipAddress: $ipAddress, limit: $limit) {
      latest {
        ... on ItemBase {
          id
          submissionId
          submissionTime
          type {
            ... on ItemTypeBase {
              id
              name
              version
            }
          }
        }
      }
    }
  }
`;

/**
 * __useGQLGetItemsByIpAddressQuery__
 *
 * To run a query within a React component, call `useGQLGetItemsByIpAddressQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetItemsByIpAddressQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetItemsByIpAddressQuery({
 *   variables: {
 *      ipAddress: // value for 'ipAddress'
 *      limit: // value for 'limit'
 *   },
 * });
 */
export function useGQLGetItemsByIpAddressQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetItemsByIpAddressQuery,
    GQLGetItemsByIpAddressQueryVariables
  > &
    (
      | { variables: GQLGetItemsByIpAddressQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetItemsByIpAddressQuery,
    GQLGetItemsByIpAddressQueryVariables
  >(GQLGetItemsByIpAddressDocument, options);
}
export function useGQLGetItemsByIpAddressLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetItemsByIpAddressQuery,
    GQLGetItemsByIpAddressQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetItemsByIpAddressQuery,
    GQLGetItemsByIpAddressQueryVariables
  >(GQLGetItemsByIpAddressDocument, options);
}
// @ts-ignore
export function useGQLGetItemsByIpAddressSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetItemsByIpAddressQuery,
    GQLGetItemsByIpAddressQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetItemsByIpAddressQuery,
  GQLGetItemsByIpAddressQueryVariables
>;
export function useGQLGetItemsByIpAddressSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetItemsByIpAddressQuery,
        GQLGetItemsByIpAddressQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetItemsByIpAddressQuery | undefined,
  GQLGetItemsByIpAddressQueryVariables
>;
export function useGQLGetItemsByIpAddressSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetItemsByIpAddressQuery,
        GQLGetItemsByIpAddressQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetItemsByIpAddressQuery,
    GQLGetItemsByIpAddressQueryVariables
  >(GQLGetItemsByIpAddressDocument, options);
}
export type GQLGetItemsByIpAddressQueryHookResult = ReturnType<
  typeof useGQLGetItemsByIpAddressQuery
>;
export type GQLGetItemsByIpAddressLazyQueryHookResult = ReturnType<
  typeof useGQLGetItemsByIpAddressLazyQuery
>;
export type GQLGetItemsByIpAddressSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetItemsByIpAddressSuspenseQuery
>;
export type GQLGetItemsByIpAddressQueryResult = Apollo.QueryResult<
  GQLGetItemsByIpAddressQuery,
  GQLGetItemsByIpAddressQueryVariables
>;
export const GQLGetAuthorInfoDocument = gql`
  query GetAuthorInfo($userIdentifiers: [ItemIdentifierInput!]!) {
    latestItemSubmissions(itemIdentifiers: $userIdentifiers) {
      ... on UserItem {
        id
        data
        submissionId
        submissionTime
        type {
          ... on UserItemType {
            id
            baseFields {
              name
              required
              type
              container {
                containerType
                keyScalarType
                valueScalarType
              }
            }
            schemaFieldRoles {
              displayName
              createdAt
              profileIcon
            }
          }
        }
      }
    }
  }
`;

/**
 * __useGQLGetAuthorInfoQuery__
 *
 * To run a query within a React component, call `useGQLGetAuthorInfoQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetAuthorInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetAuthorInfoQuery({
 *   variables: {
 *      userIdentifiers: // value for 'userIdentifiers'
 *   },
 * });
 */
export function useGQLGetAuthorInfoQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetAuthorInfoQuery,
    GQLGetAuthorInfoQueryVariables
  > &
    (
      | { variables: GQLGetAuthorInfoQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLGetAuthorInfoQuery, GQLGetAuthorInfoQueryVariables>(
    GQLGetAuthorInfoDocument,
    options,
  );
}
export function useGQLGetAuthorInfoLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetAuthorInfoQuery,
    GQLGetAuthorInfoQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetAuthorInfoQuery,
    GQLGetAuthorInfoQueryVariables
  >(GQLGetAuthorInfoDocument, options);
}
// @ts-ignore
export function useGQLGetAuthorInfoSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetAuthorInfoQuery,
    GQLGetAuthorInfoQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetAuthorInfoQuery,
  GQLGetAuthorInfoQueryVariables
>;
export function useGQLGetAuthorInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetAuthorInfoQuery,
        GQLGetAuthorInfoQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetAuthorInfoQuery | undefined,
  GQLGetAuthorInfoQueryVariables
>;
export function useGQLGetAuthorInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetAuthorInfoQuery,
        GQLGetAuthorInfoQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetAuthorInfoQuery,
    GQLGetAuthorInfoQueryVariables
  >(GQLGetAuthorInfoDocument, options);
}
export type GQLGetAuthorInfoQueryHookResult = ReturnType<
  typeof useGQLGetAuthorInfoQuery
>;
export type GQLGetAuthorInfoLazyQueryHookResult = ReturnType<
  typeof useGQLGetAuthorInfoLazyQuery
>;
export type GQLGetAuthorInfoSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetAuthorInfoSuspenseQuery
>;
export type GQLGetAuthorInfoQueryResult = Apollo.QueryResult<
  GQLGetAuthorInfoQuery,
  GQLGetAuthorInfoQueryVariables
>;
export const GQLItemTypeDocument = gql`
  query ItemType($id: ID!) {
    itemType(id: $id) {
      ...ItemTypeFragment
    }
  }
  ${GQLItemTypeFragmentFragmentDoc}
`;

/**
 * __useGQLItemTypeQuery__
 *
 * To run a query within a React component, call `useGQLItemTypeQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLItemTypeQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLItemTypeQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLItemTypeQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLItemTypeQuery,
    GQLItemTypeQueryVariables
  > &
    (
      | { variables: GQLItemTypeQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLItemTypeQuery, GQLItemTypeQueryVariables>(
    GQLItemTypeDocument,
    options,
  );
}
export function useGQLItemTypeLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLItemTypeQuery,
    GQLItemTypeQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLItemTypeQuery, GQLItemTypeQueryVariables>(
    GQLItemTypeDocument,
    options,
  );
}
// @ts-ignore
export function useGQLItemTypeSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLItemTypeQuery,
    GQLItemTypeQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLItemTypeQuery, GQLItemTypeQueryVariables>;
export function useGQLItemTypeSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLItemTypeQuery,
        GQLItemTypeQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLItemTypeQuery | undefined,
  GQLItemTypeQueryVariables
>;
export function useGQLItemTypeSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLItemTypeQuery,
        GQLItemTypeQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLItemTypeQuery, GQLItemTypeQueryVariables>(
    GQLItemTypeDocument,
    options,
  );
}
export type GQLItemTypeQueryHookResult = ReturnType<typeof useGQLItemTypeQuery>;
export type GQLItemTypeLazyQueryHookResult = ReturnType<
  typeof useGQLItemTypeLazyQuery
>;
export type GQLItemTypeSuspenseQueryHookResult = ReturnType<
  typeof useGQLItemTypeSuspenseQuery
>;
export type GQLItemTypeQueryResult = Apollo.QueryResult<
  GQLItemTypeQuery,
  GQLItemTypeQueryVariables
>;
export const GQLItemTypeFormOrgDocument = gql`
  query ItemTypeFormOrg {
    myOrg {
      id
    }
  }
`;

/**
 * __useGQLItemTypeFormOrgQuery__
 *
 * To run a query within a React component, call `useGQLItemTypeFormOrgQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLItemTypeFormOrgQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLItemTypeFormOrgQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLItemTypeFormOrgQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLItemTypeFormOrgQuery,
    GQLItemTypeFormOrgQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLItemTypeFormOrgQuery,
    GQLItemTypeFormOrgQueryVariables
  >(GQLItemTypeFormOrgDocument, options);
}
export function useGQLItemTypeFormOrgLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLItemTypeFormOrgQuery,
    GQLItemTypeFormOrgQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLItemTypeFormOrgQuery,
    GQLItemTypeFormOrgQueryVariables
  >(GQLItemTypeFormOrgDocument, options);
}
// @ts-ignore
export function useGQLItemTypeFormOrgSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLItemTypeFormOrgQuery,
    GQLItemTypeFormOrgQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLItemTypeFormOrgQuery,
  GQLItemTypeFormOrgQueryVariables
>;
export function useGQLItemTypeFormOrgSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLItemTypeFormOrgQuery,
        GQLItemTypeFormOrgQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLItemTypeFormOrgQuery | undefined,
  GQLItemTypeFormOrgQueryVariables
>;
export function useGQLItemTypeFormOrgSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLItemTypeFormOrgQuery,
        GQLItemTypeFormOrgQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLItemTypeFormOrgQuery,
    GQLItemTypeFormOrgQueryVariables
  >(GQLItemTypeFormOrgDocument, options);
}
export type GQLItemTypeFormOrgQueryHookResult = ReturnType<
  typeof useGQLItemTypeFormOrgQuery
>;
export type GQLItemTypeFormOrgLazyQueryHookResult = ReturnType<
  typeof useGQLItemTypeFormOrgLazyQuery
>;
export type GQLItemTypeFormOrgSuspenseQueryHookResult = ReturnType<
  typeof useGQLItemTypeFormOrgSuspenseQuery
>;
export type GQLItemTypeFormOrgQueryResult = Apollo.QueryResult<
  GQLItemTypeFormOrgQuery,
  GQLItemTypeFormOrgQueryVariables
>;
export const GQLDeleteItemTypeDocument = gql`
  mutation DeleteItemType($id: ID!) {
    deleteItemType(id: $id) {
      ... on DeleteItemTypeSuccessResponse {
        _
      }
      ... on CannotDeleteDefaultUserError {
        title
      }
    }
  }
`;
export type GQLDeleteItemTypeMutationFn = Apollo.MutationFunction<
  GQLDeleteItemTypeMutation,
  GQLDeleteItemTypeMutationVariables
>;

/**
 * __useGQLDeleteItemTypeMutation__
 *
 * To run a mutation, you first call `useGQLDeleteItemTypeMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteItemTypeMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteItemTypeMutation, { data, loading, error }] = useGQLDeleteItemTypeMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteItemTypeMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteItemTypeMutation,
    GQLDeleteItemTypeMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteItemTypeMutation,
    GQLDeleteItemTypeMutationVariables
  >(GQLDeleteItemTypeDocument, options);
}
export type GQLDeleteItemTypeMutationHookResult = ReturnType<
  typeof useGQLDeleteItemTypeMutation
>;
export type GQLDeleteItemTypeMutationResult =
  Apollo.MutationResult<GQLDeleteItemTypeMutation>;
export type GQLDeleteItemTypeMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteItemTypeMutation,
  GQLDeleteItemTypeMutationVariables
>;
export const GQLCreateContentTypeDocument = gql`
  mutation CreateContentType($input: CreateContentItemTypeInput!) {
    createContentItemType(input: $input) {
      ... on MutateContentTypeSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLCreateContentTypeMutationFn = Apollo.MutationFunction<
  GQLCreateContentTypeMutation,
  GQLCreateContentTypeMutationVariables
>;

/**
 * __useGQLCreateContentTypeMutation__
 *
 * To run a mutation, you first call `useGQLCreateContentTypeMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateContentTypeMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateContentTypeMutation, { data, loading, error }] = useGQLCreateContentTypeMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateContentTypeMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateContentTypeMutation,
    GQLCreateContentTypeMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateContentTypeMutation,
    GQLCreateContentTypeMutationVariables
  >(GQLCreateContentTypeDocument, options);
}
export type GQLCreateContentTypeMutationHookResult = ReturnType<
  typeof useGQLCreateContentTypeMutation
>;
export type GQLCreateContentTypeMutationResult =
  Apollo.MutationResult<GQLCreateContentTypeMutation>;
export type GQLCreateContentTypeMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateContentTypeMutation,
  GQLCreateContentTypeMutationVariables
>;
export const GQLUpdateContentTypeDocument = gql`
  mutation UpdateContentType($input: UpdateContentItemTypeInput!) {
    updateContentItemType(input: $input) {
      ... on MutateContentTypeSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLUpdateContentTypeMutationFn = Apollo.MutationFunction<
  GQLUpdateContentTypeMutation,
  GQLUpdateContentTypeMutationVariables
>;

/**
 * __useGQLUpdateContentTypeMutation__
 *
 * To run a mutation, you first call `useGQLUpdateContentTypeMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateContentTypeMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateContentTypeMutation, { data, loading, error }] = useGQLUpdateContentTypeMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateContentTypeMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateContentTypeMutation,
    GQLUpdateContentTypeMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateContentTypeMutation,
    GQLUpdateContentTypeMutationVariables
  >(GQLUpdateContentTypeDocument, options);
}
export type GQLUpdateContentTypeMutationHookResult = ReturnType<
  typeof useGQLUpdateContentTypeMutation
>;
export type GQLUpdateContentTypeMutationResult =
  Apollo.MutationResult<GQLUpdateContentTypeMutation>;
export type GQLUpdateContentTypeMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateContentTypeMutation,
  GQLUpdateContentTypeMutationVariables
>;
export const GQLCreateUserTypeDocument = gql`
  mutation CreateUserType($input: CreateUserItemTypeInput!) {
    createUserItemType(input: $input) {
      ... on MutateUserTypeSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLCreateUserTypeMutationFn = Apollo.MutationFunction<
  GQLCreateUserTypeMutation,
  GQLCreateUserTypeMutationVariables
>;

/**
 * __useGQLCreateUserTypeMutation__
 *
 * To run a mutation, you first call `useGQLCreateUserTypeMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateUserTypeMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateUserTypeMutation, { data, loading, error }] = useGQLCreateUserTypeMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateUserTypeMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateUserTypeMutation,
    GQLCreateUserTypeMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateUserTypeMutation,
    GQLCreateUserTypeMutationVariables
  >(GQLCreateUserTypeDocument, options);
}
export type GQLCreateUserTypeMutationHookResult = ReturnType<
  typeof useGQLCreateUserTypeMutation
>;
export type GQLCreateUserTypeMutationResult =
  Apollo.MutationResult<GQLCreateUserTypeMutation>;
export type GQLCreateUserTypeMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateUserTypeMutation,
  GQLCreateUserTypeMutationVariables
>;
export const GQLUpdateUserTypeDocument = gql`
  mutation UpdateUserType($input: UpdateUserItemTypeInput!) {
    updateUserItemType(input: $input) {
      ... on MutateUserTypeSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLUpdateUserTypeMutationFn = Apollo.MutationFunction<
  GQLUpdateUserTypeMutation,
  GQLUpdateUserTypeMutationVariables
>;

/**
 * __useGQLUpdateUserTypeMutation__
 *
 * To run a mutation, you first call `useGQLUpdateUserTypeMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateUserTypeMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateUserTypeMutation, { data, loading, error }] = useGQLUpdateUserTypeMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateUserTypeMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateUserTypeMutation,
    GQLUpdateUserTypeMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateUserTypeMutation,
    GQLUpdateUserTypeMutationVariables
  >(GQLUpdateUserTypeDocument, options);
}
export type GQLUpdateUserTypeMutationHookResult = ReturnType<
  typeof useGQLUpdateUserTypeMutation
>;
export type GQLUpdateUserTypeMutationResult =
  Apollo.MutationResult<GQLUpdateUserTypeMutation>;
export type GQLUpdateUserTypeMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateUserTypeMutation,
  GQLUpdateUserTypeMutationVariables
>;
export const GQLCreateThreadTypeDocument = gql`
  mutation CreateThreadType($input: CreateThreadItemTypeInput!) {
    createThreadItemType(input: $input) {
      ... on MutateThreadTypeSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLCreateThreadTypeMutationFn = Apollo.MutationFunction<
  GQLCreateThreadTypeMutation,
  GQLCreateThreadTypeMutationVariables
>;

/**
 * __useGQLCreateThreadTypeMutation__
 *
 * To run a mutation, you first call `useGQLCreateThreadTypeMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateThreadTypeMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateThreadTypeMutation, { data, loading, error }] = useGQLCreateThreadTypeMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateThreadTypeMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateThreadTypeMutation,
    GQLCreateThreadTypeMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateThreadTypeMutation,
    GQLCreateThreadTypeMutationVariables
  >(GQLCreateThreadTypeDocument, options);
}
export type GQLCreateThreadTypeMutationHookResult = ReturnType<
  typeof useGQLCreateThreadTypeMutation
>;
export type GQLCreateThreadTypeMutationResult =
  Apollo.MutationResult<GQLCreateThreadTypeMutation>;
export type GQLCreateThreadTypeMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateThreadTypeMutation,
  GQLCreateThreadTypeMutationVariables
>;
export const GQLUpdateThreadTypeDocument = gql`
  mutation UpdateThreadType($input: UpdateThreadItemTypeInput!) {
    updateThreadItemType(input: $input) {
      ... on MutateThreadTypeSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLUpdateThreadTypeMutationFn = Apollo.MutationFunction<
  GQLUpdateThreadTypeMutation,
  GQLUpdateThreadTypeMutationVariables
>;

/**
 * __useGQLUpdateThreadTypeMutation__
 *
 * To run a mutation, you first call `useGQLUpdateThreadTypeMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateThreadTypeMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateThreadTypeMutation, { data, loading, error }] = useGQLUpdateThreadTypeMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateThreadTypeMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateThreadTypeMutation,
    GQLUpdateThreadTypeMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateThreadTypeMutation,
    GQLUpdateThreadTypeMutationVariables
  >(GQLUpdateThreadTypeDocument, options);
}
export type GQLUpdateThreadTypeMutationHookResult = ReturnType<
  typeof useGQLUpdateThreadTypeMutation
>;
export type GQLUpdateThreadTypeMutationResult =
  Apollo.MutationResult<GQLUpdateThreadTypeMutation>;
export type GQLUpdateThreadTypeMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateThreadTypeMutation,
  GQLUpdateThreadTypeMutationVariables
>;
export const GQLItemTypesDocument = gql`
  query ItemTypes {
    myOrg {
      itemTypes {
        ... on ItemTypeBase {
          ...ItemTypeFragment
        }
        ... on UserItemType {
          isDefaultUserType
        }
      }
    }
    me {
      permissions
    }
  }
  ${GQLItemTypeFragmentFragmentDoc}
`;

/**
 * __useGQLItemTypesQuery__
 *
 * To run a query within a React component, call `useGQLItemTypesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLItemTypesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLItemTypesQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLItemTypesQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLItemTypesQuery,
    GQLItemTypesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLItemTypesQuery, GQLItemTypesQueryVariables>(
    GQLItemTypesDocument,
    options,
  );
}
export function useGQLItemTypesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLItemTypesQuery,
    GQLItemTypesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLItemTypesQuery, GQLItemTypesQueryVariables>(
    GQLItemTypesDocument,
    options,
  );
}
// @ts-ignore
export function useGQLItemTypesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLItemTypesQuery,
    GQLItemTypesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLItemTypesQuery, GQLItemTypesQueryVariables>;
export function useGQLItemTypesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLItemTypesQuery,
        GQLItemTypesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLItemTypesQuery | undefined,
  GQLItemTypesQueryVariables
>;
export function useGQLItemTypesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLItemTypesQuery,
        GQLItemTypesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLItemTypesQuery, GQLItemTypesQueryVariables>(
    GQLItemTypesDocument,
    options,
  );
}
export type GQLItemTypesQueryHookResult = ReturnType<
  typeof useGQLItemTypesQuery
>;
export type GQLItemTypesLazyQueryHookResult = ReturnType<
  typeof useGQLItemTypesLazyQuery
>;
export type GQLItemTypesSuspenseQueryHookResult = ReturnType<
  typeof useGQLItemTypesSuspenseQuery
>;
export type GQLItemTypesQueryResult = Apollo.QueryResult<
  GQLItemTypesQuery,
  GQLItemTypesQueryVariables
>;
export const GQLItemActionHistoryDocument = gql`
  query ItemActionHistory(
    $itemIdentifier: ItemIdentifierInput!
    $submissionTime: DateTime
  ) {
    itemActionHistory(
      itemIdentifier: $itemIdentifier
      submissionTime: $submissionTime
    ) {
      ... on ItemAction {
        itemId
        itemTypeId
        itemCreatorId
        itemCreatorTypeId
        actionId
        actorId
        jobId
        policies
        ruleIds
        ts
      }
    }
    myOrg {
      users {
        id
        firstName
        lastName
      }
      actions {
        ... on ActionBase {
          id
          name
        }
      }
      policies {
        id
        name
      }
      itemTypes {
        ... on ItemTypeBase {
          id
          name
        }
      }
      rules {
        ... on ContentRule {
          id
          name
        }
        ... on UserRule {
          id
          name
        }
      }
    }
  }
`;

/**
 * __useGQLItemActionHistoryQuery__
 *
 * To run a query within a React component, call `useGQLItemActionHistoryQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLItemActionHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLItemActionHistoryQuery({
 *   variables: {
 *      itemIdentifier: // value for 'itemIdentifier'
 *      submissionTime: // value for 'submissionTime'
 *   },
 * });
 */
export function useGQLItemActionHistoryQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLItemActionHistoryQuery,
    GQLItemActionHistoryQueryVariables
  > &
    (
      | { variables: GQLItemActionHistoryQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLItemActionHistoryQuery,
    GQLItemActionHistoryQueryVariables
  >(GQLItemActionHistoryDocument, options);
}
export function useGQLItemActionHistoryLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLItemActionHistoryQuery,
    GQLItemActionHistoryQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLItemActionHistoryQuery,
    GQLItemActionHistoryQueryVariables
  >(GQLItemActionHistoryDocument, options);
}
// @ts-ignore
export function useGQLItemActionHistorySuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLItemActionHistoryQuery,
    GQLItemActionHistoryQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLItemActionHistoryQuery,
  GQLItemActionHistoryQueryVariables
>;
export function useGQLItemActionHistorySuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLItemActionHistoryQuery,
        GQLItemActionHistoryQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLItemActionHistoryQuery | undefined,
  GQLItemActionHistoryQueryVariables
>;
export function useGQLItemActionHistorySuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLItemActionHistoryQuery,
        GQLItemActionHistoryQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLItemActionHistoryQuery,
    GQLItemActionHistoryQueryVariables
  >(GQLItemActionHistoryDocument, options);
}
export type GQLItemActionHistoryQueryHookResult = ReturnType<
  typeof useGQLItemActionHistoryQuery
>;
export type GQLItemActionHistoryLazyQueryHookResult = ReturnType<
  typeof useGQLItemActionHistoryLazyQuery
>;
export type GQLItemActionHistorySuspenseQueryHookResult = ReturnType<
  typeof useGQLItemActionHistorySuspenseQuery
>;
export type GQLItemActionHistoryQueryResult = Apollo.QueryResult<
  GQLItemActionHistoryQuery,
  GQLItemActionHistoryQueryVariables
>;
export const GQLGetDecidedJobFromJobIdDocument = gql`
  query getDecidedJobFromJobId($id: String!) {
    getDecidedJobFromJobId(id: $id) {
      job {
        ...JobFields
      }
      decision {
        id
        queueId
        reviewerId
        itemId
        itemTypeId
        jobId
        decisionReason
        decisions {
          ... on ManualReviewDecisionComponentBase {
            ...ManualReviewDecisionComponentFields
          }
        }
        relatedActions {
          ... on ManualReviewDecisionComponentBase {
            ...ManualReviewDecisionComponentFields
          }
        }
        createdAt
      }
    }
  }
  ${GQLJobFieldsFragmentDoc}
  ${GQLManualReviewDecisionComponentFieldsFragmentDoc}
`;

/**
 * __useGQLGetDecidedJobFromJobIdQuery__
 *
 * To run a query within a React component, call `useGQLGetDecidedJobFromJobIdQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetDecidedJobFromJobIdQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetDecidedJobFromJobIdQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLGetDecidedJobFromJobIdQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetDecidedJobFromJobIdQuery,
    GQLGetDecidedJobFromJobIdQueryVariables
  > &
    (
      | { variables: GQLGetDecidedJobFromJobIdQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetDecidedJobFromJobIdQuery,
    GQLGetDecidedJobFromJobIdQueryVariables
  >(GQLGetDecidedJobFromJobIdDocument, options);
}
export function useGQLGetDecidedJobFromJobIdLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetDecidedJobFromJobIdQuery,
    GQLGetDecidedJobFromJobIdQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetDecidedJobFromJobIdQuery,
    GQLGetDecidedJobFromJobIdQueryVariables
  >(GQLGetDecidedJobFromJobIdDocument, options);
}
// @ts-ignore
export function useGQLGetDecidedJobFromJobIdSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetDecidedJobFromJobIdQuery,
    GQLGetDecidedJobFromJobIdQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetDecidedJobFromJobIdQuery,
  GQLGetDecidedJobFromJobIdQueryVariables
>;
export function useGQLGetDecidedJobFromJobIdSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetDecidedJobFromJobIdQuery,
        GQLGetDecidedJobFromJobIdQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetDecidedJobFromJobIdQuery | undefined,
  GQLGetDecidedJobFromJobIdQueryVariables
>;
export function useGQLGetDecidedJobFromJobIdSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetDecidedJobFromJobIdQuery,
        GQLGetDecidedJobFromJobIdQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetDecidedJobFromJobIdQuery,
    GQLGetDecidedJobFromJobIdQueryVariables
  >(GQLGetDecidedJobFromJobIdDocument, options);
}
export type GQLGetDecidedJobFromJobIdQueryHookResult = ReturnType<
  typeof useGQLGetDecidedJobFromJobIdQuery
>;
export type GQLGetDecidedJobFromJobIdLazyQueryHookResult = ReturnType<
  typeof useGQLGetDecidedJobFromJobIdLazyQuery
>;
export type GQLGetDecidedJobFromJobIdSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetDecidedJobFromJobIdSuspenseQuery
>;
export type GQLGetDecidedJobFromJobIdQueryResult = Apollo.QueryResult<
  GQLGetDecidedJobFromJobIdQuery,
  GQLGetDecidedJobFromJobIdQueryVariables
>;
export const GQLManualReviewMetricsDocument = gql`
  query ManualReviewMetrics {
    getTotalPendingJobsCount
    reportingInsights {
      totalIngestedReportsByDay {
        date
        count
      }
    }
  }
`;

/**
 * __useGQLManualReviewMetricsQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewMetricsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewMetricsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewMetricsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLManualReviewMetricsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManualReviewMetricsQuery,
    GQLManualReviewMetricsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewMetricsQuery,
    GQLManualReviewMetricsQueryVariables
  >(GQLManualReviewMetricsDocument, options);
}
export function useGQLManualReviewMetricsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewMetricsQuery,
    GQLManualReviewMetricsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewMetricsQuery,
    GQLManualReviewMetricsQueryVariables
  >(GQLManualReviewMetricsDocument, options);
}
// @ts-ignore
export function useGQLManualReviewMetricsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewMetricsQuery,
    GQLManualReviewMetricsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewMetricsQuery,
  GQLManualReviewMetricsQueryVariables
>;
export function useGQLManualReviewMetricsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewMetricsQuery,
        GQLManualReviewMetricsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewMetricsQuery | undefined,
  GQLManualReviewMetricsQueryVariables
>;
export function useGQLManualReviewMetricsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewMetricsQuery,
        GQLManualReviewMetricsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewMetricsQuery,
    GQLManualReviewMetricsQueryVariables
  >(GQLManualReviewMetricsDocument, options);
}
export type GQLManualReviewMetricsQueryHookResult = ReturnType<
  typeof useGQLManualReviewMetricsQuery
>;
export type GQLManualReviewMetricsLazyQueryHookResult = ReturnType<
  typeof useGQLManualReviewMetricsLazyQuery
>;
export type GQLManualReviewMetricsSuspenseQueryHookResult = ReturnType<
  typeof useGQLManualReviewMetricsSuspenseQuery
>;
export type GQLManualReviewMetricsQueryResult = Apollo.QueryResult<
  GQLManualReviewMetricsQuery,
  GQLManualReviewMetricsQueryVariables
>;
export const GQLGetAverageTimeToReviewDocument = gql`
  query getAverageTimeToReview($input: TimeToActionInput!) {
    getTimeToAction(input: $input) {
      timeToAction
      queueId
    }
  }
`;

/**
 * __useGQLGetAverageTimeToReviewQuery__
 *
 * To run a query within a React component, call `useGQLGetAverageTimeToReviewQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetAverageTimeToReviewQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetAverageTimeToReviewQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLGetAverageTimeToReviewQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetAverageTimeToReviewQuery,
    GQLGetAverageTimeToReviewQueryVariables
  > &
    (
      | { variables: GQLGetAverageTimeToReviewQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetAverageTimeToReviewQuery,
    GQLGetAverageTimeToReviewQueryVariables
  >(GQLGetAverageTimeToReviewDocument, options);
}
export function useGQLGetAverageTimeToReviewLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetAverageTimeToReviewQuery,
    GQLGetAverageTimeToReviewQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetAverageTimeToReviewQuery,
    GQLGetAverageTimeToReviewQueryVariables
  >(GQLGetAverageTimeToReviewDocument, options);
}
// @ts-ignore
export function useGQLGetAverageTimeToReviewSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetAverageTimeToReviewQuery,
    GQLGetAverageTimeToReviewQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetAverageTimeToReviewQuery,
  GQLGetAverageTimeToReviewQueryVariables
>;
export function useGQLGetAverageTimeToReviewSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetAverageTimeToReviewQuery,
        GQLGetAverageTimeToReviewQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetAverageTimeToReviewQuery | undefined,
  GQLGetAverageTimeToReviewQueryVariables
>;
export function useGQLGetAverageTimeToReviewSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetAverageTimeToReviewQuery,
        GQLGetAverageTimeToReviewQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetAverageTimeToReviewQuery,
    GQLGetAverageTimeToReviewQueryVariables
  >(GQLGetAverageTimeToReviewDocument, options);
}
export type GQLGetAverageTimeToReviewQueryHookResult = ReturnType<
  typeof useGQLGetAverageTimeToReviewQuery
>;
export type GQLGetAverageTimeToReviewLazyQueryHookResult = ReturnType<
  typeof useGQLGetAverageTimeToReviewLazyQuery
>;
export type GQLGetAverageTimeToReviewSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetAverageTimeToReviewSuspenseQuery
>;
export type GQLGetAverageTimeToReviewQueryResult = Apollo.QueryResult<
  GQLGetAverageTimeToReviewQuery,
  GQLGetAverageTimeToReviewQueryVariables
>;
export const GQLGetDecisionsTableDocument = gql`
  query getDecisionsTable($input: GetDecisionCountsTableInput!) {
    getDecisionsTable(input: $input) {
      count
      type
      action_id
      queue_id
      reviewer_id
    }
    myOrg {
      actions {
        ... on ActionBase {
          id
          name
        }
      }
      users {
        id
        firstName
        lastName
      }
      mrtQueues {
        id
        name
      }
    }
  }
`;

/**
 * __useGQLGetDecisionsTableQuery__
 *
 * To run a query within a React component, call `useGQLGetDecisionsTableQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetDecisionsTableQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetDecisionsTableQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLGetDecisionsTableQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetDecisionsTableQuery,
    GQLGetDecisionsTableQueryVariables
  > &
    (
      | { variables: GQLGetDecisionsTableQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetDecisionsTableQuery,
    GQLGetDecisionsTableQueryVariables
  >(GQLGetDecisionsTableDocument, options);
}
export function useGQLGetDecisionsTableLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetDecisionsTableQuery,
    GQLGetDecisionsTableQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetDecisionsTableQuery,
    GQLGetDecisionsTableQueryVariables
  >(GQLGetDecisionsTableDocument, options);
}
// @ts-ignore
export function useGQLGetDecisionsTableSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetDecisionsTableQuery,
    GQLGetDecisionsTableQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetDecisionsTableQuery,
  GQLGetDecisionsTableQueryVariables
>;
export function useGQLGetDecisionsTableSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetDecisionsTableQuery,
        GQLGetDecisionsTableQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetDecisionsTableQuery | undefined,
  GQLGetDecisionsTableQueryVariables
>;
export function useGQLGetDecisionsTableSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetDecisionsTableQuery,
        GQLGetDecisionsTableQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetDecisionsTableQuery,
    GQLGetDecisionsTableQueryVariables
  >(GQLGetDecisionsTableDocument, options);
}
export type GQLGetDecisionsTableQueryHookResult = ReturnType<
  typeof useGQLGetDecisionsTableQuery
>;
export type GQLGetDecisionsTableLazyQueryHookResult = ReturnType<
  typeof useGQLGetDecisionsTableLazyQuery
>;
export type GQLGetDecisionsTableSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetDecisionsTableSuspenseQuery
>;
export type GQLGetDecisionsTableQueryResult = Apollo.QueryResult<
  GQLGetDecisionsTableQuery,
  GQLGetDecisionsTableQueryVariables
>;
export const GQLQueueFormDataDocument = gql`
  query QueueFormData {
    myOrg {
      hasAppealsEnabled
      hasPartialItemsEndpoint
      users {
        id
        firstName
        lastName
        role
      }
      actions {
        ... on ActionBase {
          id
          name
        }
      }
      usersWhoCanReviewEveryQueue {
        id
      }
    }
  }
`;

/**
 * __useGQLQueueFormDataQuery__
 *
 * To run a query within a React component, call `useGQLQueueFormDataQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLQueueFormDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLQueueFormDataQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLQueueFormDataQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLQueueFormDataQuery,
    GQLQueueFormDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLQueueFormDataQuery, GQLQueueFormDataQueryVariables>(
    GQLQueueFormDataDocument,
    options,
  );
}
export function useGQLQueueFormDataLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLQueueFormDataQuery,
    GQLQueueFormDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLQueueFormDataQuery,
    GQLQueueFormDataQueryVariables
  >(GQLQueueFormDataDocument, options);
}
// @ts-ignore
export function useGQLQueueFormDataSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLQueueFormDataQuery,
    GQLQueueFormDataQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLQueueFormDataQuery,
  GQLQueueFormDataQueryVariables
>;
export function useGQLQueueFormDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLQueueFormDataQuery,
        GQLQueueFormDataQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLQueueFormDataQuery | undefined,
  GQLQueueFormDataQueryVariables
>;
export function useGQLQueueFormDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLQueueFormDataQuery,
        GQLQueueFormDataQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLQueueFormDataQuery,
    GQLQueueFormDataQueryVariables
  >(GQLQueueFormDataDocument, options);
}
export type GQLQueueFormDataQueryHookResult = ReturnType<
  typeof useGQLQueueFormDataQuery
>;
export type GQLQueueFormDataLazyQueryHookResult = ReturnType<
  typeof useGQLQueueFormDataLazyQuery
>;
export type GQLQueueFormDataSuspenseQueryHookResult = ReturnType<
  typeof useGQLQueueFormDataSuspenseQuery
>;
export type GQLQueueFormDataQueryResult = Apollo.QueryResult<
  GQLQueueFormDataQuery,
  GQLQueueFormDataQueryVariables
>;
export const GQLManualReviewQueueDocument = gql`
  query ManualReviewQueue($id: ID!) {
    manualReviewQueue(id: $id) {
      ... on ManualReviewQueue {
        id
        name
        description
        explicitlyAssignedReviewers {
          id
        }
        hiddenActionIds
        isAppealsQueue
        autoCloseJobs
        clearReportsDisposition
        clearReportsScope
        clearReportsTriggerActionIds
      }
    }
  }
`;

/**
 * __useGQLManualReviewQueueQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewQueueQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewQueueQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewQueueQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLManualReviewQueueQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLManualReviewQueueQuery,
    GQLManualReviewQueueQueryVariables
  > &
    (
      | { variables: GQLManualReviewQueueQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewQueueQuery,
    GQLManualReviewQueueQueryVariables
  >(GQLManualReviewQueueDocument, options);
}
export function useGQLManualReviewQueueLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewQueueQuery,
    GQLManualReviewQueueQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewQueueQuery,
    GQLManualReviewQueueQueryVariables
  >(GQLManualReviewQueueDocument, options);
}
// @ts-ignore
export function useGQLManualReviewQueueSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewQueueQuery,
    GQLManualReviewQueueQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewQueueQuery,
  GQLManualReviewQueueQueryVariables
>;
export function useGQLManualReviewQueueSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewQueueQuery,
        GQLManualReviewQueueQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewQueueQuery | undefined,
  GQLManualReviewQueueQueryVariables
>;
export function useGQLManualReviewQueueSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewQueueQuery,
        GQLManualReviewQueueQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewQueueQuery,
    GQLManualReviewQueueQueryVariables
  >(GQLManualReviewQueueDocument, options);
}
export type GQLManualReviewQueueQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueueQuery
>;
export type GQLManualReviewQueueLazyQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueueLazyQuery
>;
export type GQLManualReviewQueueSuspenseQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueueSuspenseQuery
>;
export type GQLManualReviewQueueQueryResult = Apollo.QueryResult<
  GQLManualReviewQueueQuery,
  GQLManualReviewQueueQueryVariables
>;
export const GQLCreateManualReviewQueueDocument = gql`
  mutation CreateManualReviewQueue($input: CreateManualReviewQueueInput!) {
    createManualReviewQueue(input: $input) {
      ... on MutateManualReviewQueueSuccessResponse {
        data {
          ... on ManualReviewQueue {
            id
            name
            description
          }
        }
      }
      ... on ManualReviewQueueNameExistsError {
        title
        status
        type
      }
    }
  }
`;
export type GQLCreateManualReviewQueueMutationFn = Apollo.MutationFunction<
  GQLCreateManualReviewQueueMutation,
  GQLCreateManualReviewQueueMutationVariables
>;

/**
 * __useGQLCreateManualReviewQueueMutation__
 *
 * To run a mutation, you first call `useGQLCreateManualReviewQueueMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateManualReviewQueueMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateManualReviewQueueMutation, { data, loading, error }] = useGQLCreateManualReviewQueueMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateManualReviewQueueMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateManualReviewQueueMutation,
    GQLCreateManualReviewQueueMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateManualReviewQueueMutation,
    GQLCreateManualReviewQueueMutationVariables
  >(GQLCreateManualReviewQueueDocument, options);
}
export type GQLCreateManualReviewQueueMutationHookResult = ReturnType<
  typeof useGQLCreateManualReviewQueueMutation
>;
export type GQLCreateManualReviewQueueMutationResult =
  Apollo.MutationResult<GQLCreateManualReviewQueueMutation>;
export type GQLCreateManualReviewQueueMutationOptions =
  Apollo.BaseMutationOptions<
    GQLCreateManualReviewQueueMutation,
    GQLCreateManualReviewQueueMutationVariables
  >;
export const GQLUpdateManualReviewQueueDocument = gql`
  mutation UpdateManualReviewQueue($input: UpdateManualReviewQueueInput!) {
    updateManualReviewQueue(input: $input) {
      ... on MutateManualReviewQueueSuccessResponse {
        data {
          ... on ManualReviewQueue {
            id
            name
            description
          }
        }
      }
      ... on ManualReviewQueueNameExistsError {
        title
        status
        type
      }
      ... on NotFoundError {
        title
        status
        type
      }
    }
  }
`;
export type GQLUpdateManualReviewQueueMutationFn = Apollo.MutationFunction<
  GQLUpdateManualReviewQueueMutation,
  GQLUpdateManualReviewQueueMutationVariables
>;

/**
 * __useGQLUpdateManualReviewQueueMutation__
 *
 * To run a mutation, you first call `useGQLUpdateManualReviewQueueMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateManualReviewQueueMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateManualReviewQueueMutation, { data, loading, error }] = useGQLUpdateManualReviewQueueMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateManualReviewQueueMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateManualReviewQueueMutation,
    GQLUpdateManualReviewQueueMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateManualReviewQueueMutation,
    GQLUpdateManualReviewQueueMutationVariables
  >(GQLUpdateManualReviewQueueDocument, options);
}
export type GQLUpdateManualReviewQueueMutationHookResult = ReturnType<
  typeof useGQLUpdateManualReviewQueueMutation
>;
export type GQLUpdateManualReviewQueueMutationResult =
  Apollo.MutationResult<GQLUpdateManualReviewQueueMutation>;
export type GQLUpdateManualReviewQueueMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateManualReviewQueueMutation,
    GQLUpdateManualReviewQueueMutationVariables
  >;
export const GQLManualReviewQueueJobsPreviewDocument = gql`
  query ManualReviewQueueJobsPreview($queueIds: [ID!]) {
    myOrg {
      policies {
        id
        name
      }
    }
    me {
      id
      permissions
      reviewableQueues(queueIds: $queueIds) {
        id
        name
        description
        pendingJobCount
        jobs {
          id
          createdAt
          policyIds
          payload {
            ... on ContentManualReviewJobPayload {
              item {
                ... on ItemBase {
                  ...ItemFields
                }
              }
            }
            ... on UserManualReviewJobPayload {
              item {
                ... on ItemBase {
                  ...ItemFields
                }
              }
            }
            ... on ThreadManualReviewJobPayload {
              item {
                ... on ItemBase {
                  ...ItemFields
                }
              }
            }
            ... on ContentAppealManualReviewJobPayload {
              item {
                ... on ItemBase {
                  ...ItemFields
                }
              }
            }
            ... on UserAppealManualReviewJobPayload {
              item {
                ... on ItemBase {
                  ...ItemFields
                }
              }
            }
            ... on ThreadAppealManualReviewJobPayload {
              item {
                ... on ItemBase {
                  ...ItemFields
                }
              }
            }
            ... on NcmecManualReviewJobPayload {
              item {
                ... on ItemBase {
                  ...ItemFields
                }
              }
            }
          }
        }
      }
    }
  }
  ${GQLItemFieldsFragmentDoc}
`;

/**
 * __useGQLManualReviewQueueJobsPreviewQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewQueueJobsPreviewQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewQueueJobsPreviewQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewQueueJobsPreviewQuery({
 *   variables: {
 *      queueIds: // value for 'queueIds'
 *   },
 * });
 */
export function useGQLManualReviewQueueJobsPreviewQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManualReviewQueueJobsPreviewQuery,
    GQLManualReviewQueueJobsPreviewQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewQueueJobsPreviewQuery,
    GQLManualReviewQueueJobsPreviewQueryVariables
  >(GQLManualReviewQueueJobsPreviewDocument, options);
}
export function useGQLManualReviewQueueJobsPreviewLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewQueueJobsPreviewQuery,
    GQLManualReviewQueueJobsPreviewQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewQueueJobsPreviewQuery,
    GQLManualReviewQueueJobsPreviewQueryVariables
  >(GQLManualReviewQueueJobsPreviewDocument, options);
}
// @ts-ignore
export function useGQLManualReviewQueueJobsPreviewSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewQueueJobsPreviewQuery,
    GQLManualReviewQueueJobsPreviewQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewQueueJobsPreviewQuery,
  GQLManualReviewQueueJobsPreviewQueryVariables
>;
export function useGQLManualReviewQueueJobsPreviewSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewQueueJobsPreviewQuery,
        GQLManualReviewQueueJobsPreviewQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewQueueJobsPreviewQuery | undefined,
  GQLManualReviewQueueJobsPreviewQueryVariables
>;
export function useGQLManualReviewQueueJobsPreviewSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewQueueJobsPreviewQuery,
        GQLManualReviewQueueJobsPreviewQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewQueueJobsPreviewQuery,
    GQLManualReviewQueueJobsPreviewQueryVariables
  >(GQLManualReviewQueueJobsPreviewDocument, options);
}
export type GQLManualReviewQueueJobsPreviewQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueueJobsPreviewQuery
>;
export type GQLManualReviewQueueJobsPreviewLazyQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueueJobsPreviewLazyQuery
>;
export type GQLManualReviewQueueJobsPreviewSuspenseQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueueJobsPreviewSuspenseQuery
>;
export type GQLManualReviewQueueJobsPreviewQueryResult = Apollo.QueryResult<
  GQLManualReviewQueueJobsPreviewQuery,
  GQLManualReviewQueueJobsPreviewQueryVariables
>;
export const GQLManualReviewQueuesDocument = gql`
  query ManualReviewQueues {
    myOrg {
      hasAppealsEnabled
      previewJobsViewEnabled
    }
    me {
      id
      permissions
      favoriteMRTQueues {
        id
      }
      reviewableQueues {
        id
        name
        description
        pendingJobCount
        oldestJobCreatedAt
        isDefaultQueue
        isAppealsQueue
      }
    }
  }
`;

/**
 * __useGQLManualReviewQueuesQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewQueuesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewQueuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewQueuesQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLManualReviewQueuesQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManualReviewQueuesQuery,
    GQLManualReviewQueuesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewQueuesQuery,
    GQLManualReviewQueuesQueryVariables
  >(GQLManualReviewQueuesDocument, options);
}
export function useGQLManualReviewQueuesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewQueuesQuery,
    GQLManualReviewQueuesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewQueuesQuery,
    GQLManualReviewQueuesQueryVariables
  >(GQLManualReviewQueuesDocument, options);
}
// @ts-ignore
export function useGQLManualReviewQueuesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewQueuesQuery,
    GQLManualReviewQueuesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewQueuesQuery,
  GQLManualReviewQueuesQueryVariables
>;
export function useGQLManualReviewQueuesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewQueuesQuery,
        GQLManualReviewQueuesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewQueuesQuery | undefined,
  GQLManualReviewQueuesQueryVariables
>;
export function useGQLManualReviewQueuesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewQueuesQuery,
        GQLManualReviewQueuesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewQueuesQuery,
    GQLManualReviewQueuesQueryVariables
  >(GQLManualReviewQueuesDocument, options);
}
export type GQLManualReviewQueuesQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueuesQuery
>;
export type GQLManualReviewQueuesLazyQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueuesLazyQuery
>;
export type GQLManualReviewQueuesSuspenseQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueuesSuspenseQuery
>;
export type GQLManualReviewQueuesQueryResult = Apollo.QueryResult<
  GQLManualReviewQueuesQuery,
  GQLManualReviewQueuesQueryVariables
>;
export const GQLRoutingRulesDocument = gql`
  query RoutingRules {
    myOrg {
      id
      routingRules {
        id
        name
        destinationQueue {
          id
        }
      }
    }
  }
`;

/**
 * __useGQLRoutingRulesQuery__
 *
 * To run a query within a React component, call `useGQLRoutingRulesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRoutingRulesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRoutingRulesQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLRoutingRulesQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLRoutingRulesQuery,
    GQLRoutingRulesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLRoutingRulesQuery, GQLRoutingRulesQueryVariables>(
    GQLRoutingRulesDocument,
    options,
  );
}
export function useGQLRoutingRulesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRoutingRulesQuery,
    GQLRoutingRulesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLRoutingRulesQuery,
    GQLRoutingRulesQueryVariables
  >(GQLRoutingRulesDocument, options);
}
// @ts-ignore
export function useGQLRoutingRulesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRoutingRulesQuery,
    GQLRoutingRulesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRoutingRulesQuery,
  GQLRoutingRulesQueryVariables
>;
export function useGQLRoutingRulesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRoutingRulesQuery,
        GQLRoutingRulesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRoutingRulesQuery | undefined,
  GQLRoutingRulesQueryVariables
>;
export function useGQLRoutingRulesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRoutingRulesQuery,
        GQLRoutingRulesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRoutingRulesQuery,
    GQLRoutingRulesQueryVariables
  >(GQLRoutingRulesDocument, options);
}
export type GQLRoutingRulesQueryHookResult = ReturnType<
  typeof useGQLRoutingRulesQuery
>;
export type GQLRoutingRulesLazyQueryHookResult = ReturnType<
  typeof useGQLRoutingRulesLazyQuery
>;
export type GQLRoutingRulesSuspenseQueryHookResult = ReturnType<
  typeof useGQLRoutingRulesSuspenseQuery
>;
export type GQLRoutingRulesQueryResult = Apollo.QueryResult<
  GQLRoutingRulesQuery,
  GQLRoutingRulesQueryVariables
>;
export const GQLDeleteManualReviewQueueDocument = gql`
  mutation DeleteManualReviewQueue($id: ID!) {
    deleteManualReviewQueue(id: $id)
  }
`;
export type GQLDeleteManualReviewQueueMutationFn = Apollo.MutationFunction<
  GQLDeleteManualReviewQueueMutation,
  GQLDeleteManualReviewQueueMutationVariables
>;

/**
 * __useGQLDeleteManualReviewQueueMutation__
 *
 * To run a mutation, you first call `useGQLDeleteManualReviewQueueMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteManualReviewQueueMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteManualReviewQueueMutation, { data, loading, error }] = useGQLDeleteManualReviewQueueMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteManualReviewQueueMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteManualReviewQueueMutation,
    GQLDeleteManualReviewQueueMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteManualReviewQueueMutation,
    GQLDeleteManualReviewQueueMutationVariables
  >(GQLDeleteManualReviewQueueDocument, options);
}
export type GQLDeleteManualReviewQueueMutationHookResult = ReturnType<
  typeof useGQLDeleteManualReviewQueueMutation
>;
export type GQLDeleteManualReviewQueueMutationResult =
  Apollo.MutationResult<GQLDeleteManualReviewQueueMutation>;
export type GQLDeleteManualReviewQueueMutationOptions =
  Apollo.BaseMutationOptions<
    GQLDeleteManualReviewQueueMutation,
    GQLDeleteManualReviewQueueMutationVariables
  >;
export const GQLDeleteAllJobsFromQueueDocument = gql`
  mutation DeleteAllJobsFromQueue($queueId: ID!) {
    deleteAllJobsFromQueue(queueId: $queueId) {
      ... on DeleteAllJobsFromQueueSuccessResponse {
        _
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLDeleteAllJobsFromQueueMutationFn = Apollo.MutationFunction<
  GQLDeleteAllJobsFromQueueMutation,
  GQLDeleteAllJobsFromQueueMutationVariables
>;

/**
 * __useGQLDeleteAllJobsFromQueueMutation__
 *
 * To run a mutation, you first call `useGQLDeleteAllJobsFromQueueMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteAllJobsFromQueueMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteAllJobsFromQueueMutation, { data, loading, error }] = useGQLDeleteAllJobsFromQueueMutation({
 *   variables: {
 *      queueId: // value for 'queueId'
 *   },
 * });
 */
export function useGQLDeleteAllJobsFromQueueMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteAllJobsFromQueueMutation,
    GQLDeleteAllJobsFromQueueMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteAllJobsFromQueueMutation,
    GQLDeleteAllJobsFromQueueMutationVariables
  >(GQLDeleteAllJobsFromQueueDocument, options);
}
export type GQLDeleteAllJobsFromQueueMutationHookResult = ReturnType<
  typeof useGQLDeleteAllJobsFromQueueMutation
>;
export type GQLDeleteAllJobsFromQueueMutationResult =
  Apollo.MutationResult<GQLDeleteAllJobsFromQueueMutation>;
export type GQLDeleteAllJobsFromQueueMutationOptions =
  Apollo.BaseMutationOptions<
    GQLDeleteAllJobsFromQueueMutation,
    GQLDeleteAllJobsFromQueueMutationVariables
  >;
export const GQLAddFavoriteMrtQueueDocument = gql`
  mutation AddFavoriteMRTQueue($queueId: ID!) {
    addFavoriteMRTQueue(queueId: $queueId) {
      ... on AddFavoriteMRTQueueSuccessResponse {
        _
      }
    }
  }
`;
export type GQLAddFavoriteMrtQueueMutationFn = Apollo.MutationFunction<
  GQLAddFavoriteMrtQueueMutation,
  GQLAddFavoriteMrtQueueMutationVariables
>;

/**
 * __useGQLAddFavoriteMrtQueueMutation__
 *
 * To run a mutation, you first call `useGQLAddFavoriteMrtQueueMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLAddFavoriteMrtQueueMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlAddFavoriteMrtQueueMutation, { data, loading, error }] = useGQLAddFavoriteMrtQueueMutation({
 *   variables: {
 *      queueId: // value for 'queueId'
 *   },
 * });
 */
export function useGQLAddFavoriteMrtQueueMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLAddFavoriteMrtQueueMutation,
    GQLAddFavoriteMrtQueueMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLAddFavoriteMrtQueueMutation,
    GQLAddFavoriteMrtQueueMutationVariables
  >(GQLAddFavoriteMrtQueueDocument, options);
}
export type GQLAddFavoriteMrtQueueMutationHookResult = ReturnType<
  typeof useGQLAddFavoriteMrtQueueMutation
>;
export type GQLAddFavoriteMrtQueueMutationResult =
  Apollo.MutationResult<GQLAddFavoriteMrtQueueMutation>;
export type GQLAddFavoriteMrtQueueMutationOptions = Apollo.BaseMutationOptions<
  GQLAddFavoriteMrtQueueMutation,
  GQLAddFavoriteMrtQueueMutationVariables
>;
export const GQLRemoveFavoriteMrtQueueDocument = gql`
  mutation RemoveFavoriteMRTQueue($queueId: ID!) {
    removeFavoriteMRTQueue(queueId: $queueId) {
      ... on RemoveFavoriteMRTQueueSuccessResponse {
        _
      }
    }
  }
`;
export type GQLRemoveFavoriteMrtQueueMutationFn = Apollo.MutationFunction<
  GQLRemoveFavoriteMrtQueueMutation,
  GQLRemoveFavoriteMrtQueueMutationVariables
>;

/**
 * __useGQLRemoveFavoriteMrtQueueMutation__
 *
 * To run a mutation, you first call `useGQLRemoveFavoriteMrtQueueMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLRemoveFavoriteMrtQueueMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlRemoveFavoriteMrtQueueMutation, { data, loading, error }] = useGQLRemoveFavoriteMrtQueueMutation({
 *   variables: {
 *      queueId: // value for 'queueId'
 *   },
 * });
 */
export function useGQLRemoveFavoriteMrtQueueMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLRemoveFavoriteMrtQueueMutation,
    GQLRemoveFavoriteMrtQueueMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLRemoveFavoriteMrtQueueMutation,
    GQLRemoveFavoriteMrtQueueMutationVariables
  >(GQLRemoveFavoriteMrtQueueDocument, options);
}
export type GQLRemoveFavoriteMrtQueueMutationHookResult = ReturnType<
  typeof useGQLRemoveFavoriteMrtQueueMutation
>;
export type GQLRemoveFavoriteMrtQueueMutationResult =
  Apollo.MutationResult<GQLRemoveFavoriteMrtQueueMutation>;
export type GQLRemoveFavoriteMrtQueueMutationOptions =
  Apollo.BaseMutationOptions<
    GQLRemoveFavoriteMrtQueueMutation,
    GQLRemoveFavoriteMrtQueueMutationVariables
  >;
export const GQLGetResolvedJobsForUserDocument = gql`
  query getResolvedJobsForUser($timeZone: String!) {
    getResolvedJobsForUser(timeZone: $timeZone)
  }
`;

/**
 * __useGQLGetResolvedJobsForUserQuery__
 *
 * To run a query within a React component, call `useGQLGetResolvedJobsForUserQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetResolvedJobsForUserQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetResolvedJobsForUserQuery({
 *   variables: {
 *      timeZone: // value for 'timeZone'
 *   },
 * });
 */
export function useGQLGetResolvedJobsForUserQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetResolvedJobsForUserQuery,
    GQLGetResolvedJobsForUserQueryVariables
  > &
    (
      | { variables: GQLGetResolvedJobsForUserQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetResolvedJobsForUserQuery,
    GQLGetResolvedJobsForUserQueryVariables
  >(GQLGetResolvedJobsForUserDocument, options);
}
export function useGQLGetResolvedJobsForUserLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetResolvedJobsForUserQuery,
    GQLGetResolvedJobsForUserQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetResolvedJobsForUserQuery,
    GQLGetResolvedJobsForUserQueryVariables
  >(GQLGetResolvedJobsForUserDocument, options);
}
// @ts-ignore
export function useGQLGetResolvedJobsForUserSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetResolvedJobsForUserQuery,
    GQLGetResolvedJobsForUserQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetResolvedJobsForUserQuery,
  GQLGetResolvedJobsForUserQueryVariables
>;
export function useGQLGetResolvedJobsForUserSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetResolvedJobsForUserQuery,
        GQLGetResolvedJobsForUserQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetResolvedJobsForUserQuery | undefined,
  GQLGetResolvedJobsForUserQueryVariables
>;
export function useGQLGetResolvedJobsForUserSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetResolvedJobsForUserQuery,
        GQLGetResolvedJobsForUserQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetResolvedJobsForUserQuery,
    GQLGetResolvedJobsForUserQueryVariables
  >(GQLGetResolvedJobsForUserDocument, options);
}
export type GQLGetResolvedJobsForUserQueryHookResult = ReturnType<
  typeof useGQLGetResolvedJobsForUserQuery
>;
export type GQLGetResolvedJobsForUserLazyQueryHookResult = ReturnType<
  typeof useGQLGetResolvedJobsForUserLazyQuery
>;
export type GQLGetResolvedJobsForUserSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetResolvedJobsForUserSuspenseQuery
>;
export type GQLGetResolvedJobsForUserQueryResult = Apollo.QueryResult<
  GQLGetResolvedJobsForUserQuery,
  GQLGetResolvedJobsForUserQueryVariables
>;
export const GQLGetSkippedJobsForUserDocument = gql`
  query getSkippedJobsForUser($timeZone: String!) {
    getSkippedJobsForUser(timeZone: $timeZone)
  }
`;

/**
 * __useGQLGetSkippedJobsForUserQuery__
 *
 * To run a query within a React component, call `useGQLGetSkippedJobsForUserQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetSkippedJobsForUserQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetSkippedJobsForUserQuery({
 *   variables: {
 *      timeZone: // value for 'timeZone'
 *   },
 * });
 */
export function useGQLGetSkippedJobsForUserQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetSkippedJobsForUserQuery,
    GQLGetSkippedJobsForUserQueryVariables
  > &
    (
      | { variables: GQLGetSkippedJobsForUserQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetSkippedJobsForUserQuery,
    GQLGetSkippedJobsForUserQueryVariables
  >(GQLGetSkippedJobsForUserDocument, options);
}
export function useGQLGetSkippedJobsForUserLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetSkippedJobsForUserQuery,
    GQLGetSkippedJobsForUserQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetSkippedJobsForUserQuery,
    GQLGetSkippedJobsForUserQueryVariables
  >(GQLGetSkippedJobsForUserDocument, options);
}
// @ts-ignore
export function useGQLGetSkippedJobsForUserSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetSkippedJobsForUserQuery,
    GQLGetSkippedJobsForUserQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetSkippedJobsForUserQuery,
  GQLGetSkippedJobsForUserQueryVariables
>;
export function useGQLGetSkippedJobsForUserSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetSkippedJobsForUserQuery,
        GQLGetSkippedJobsForUserQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetSkippedJobsForUserQuery | undefined,
  GQLGetSkippedJobsForUserQueryVariables
>;
export function useGQLGetSkippedJobsForUserSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetSkippedJobsForUserQuery,
        GQLGetSkippedJobsForUserQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetSkippedJobsForUserQuery,
    GQLGetSkippedJobsForUserQueryVariables
  >(GQLGetSkippedJobsForUserDocument, options);
}
export type GQLGetSkippedJobsForUserQueryHookResult = ReturnType<
  typeof useGQLGetSkippedJobsForUserQuery
>;
export type GQLGetSkippedJobsForUserLazyQueryHookResult = ReturnType<
  typeof useGQLGetSkippedJobsForUserLazyQuery
>;
export type GQLGetSkippedJobsForUserSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetSkippedJobsForUserSuspenseQuery
>;
export type GQLGetSkippedJobsForUserQueryResult = Apollo.QueryResult<
  GQLGetSkippedJobsForUserQuery,
  GQLGetSkippedJobsForUserQueryVariables
>;
export const GQLRecentDecisionsSummaryDataDocument = gql`
  query RecentDecisionsSummaryData {
    myOrg {
      users {
        id
        firstName
        lastName
      }
      mrtQueues {
        id
        name
      }
      actions {
        ... on ActionBase {
          id
          name
        }
      }
      policies {
        id
        name
      }
      itemTypes {
        ... on ItemTypeBase {
          id
          name
        }
      }
    }
  }
`;

/**
 * __useGQLRecentDecisionsSummaryDataQuery__
 *
 * To run a query within a React component, call `useGQLRecentDecisionsSummaryDataQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRecentDecisionsSummaryDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRecentDecisionsSummaryDataQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLRecentDecisionsSummaryDataQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLRecentDecisionsSummaryDataQuery,
    GQLRecentDecisionsSummaryDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLRecentDecisionsSummaryDataQuery,
    GQLRecentDecisionsSummaryDataQueryVariables
  >(GQLRecentDecisionsSummaryDataDocument, options);
}
export function useGQLRecentDecisionsSummaryDataLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRecentDecisionsSummaryDataQuery,
    GQLRecentDecisionsSummaryDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLRecentDecisionsSummaryDataQuery,
    GQLRecentDecisionsSummaryDataQueryVariables
  >(GQLRecentDecisionsSummaryDataDocument, options);
}
// @ts-ignore
export function useGQLRecentDecisionsSummaryDataSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRecentDecisionsSummaryDataQuery,
    GQLRecentDecisionsSummaryDataQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRecentDecisionsSummaryDataQuery,
  GQLRecentDecisionsSummaryDataQueryVariables
>;
export function useGQLRecentDecisionsSummaryDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRecentDecisionsSummaryDataQuery,
        GQLRecentDecisionsSummaryDataQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRecentDecisionsSummaryDataQuery | undefined,
  GQLRecentDecisionsSummaryDataQueryVariables
>;
export function useGQLRecentDecisionsSummaryDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRecentDecisionsSummaryDataQuery,
        GQLRecentDecisionsSummaryDataQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRecentDecisionsSummaryDataQuery,
    GQLRecentDecisionsSummaryDataQueryVariables
  >(GQLRecentDecisionsSummaryDataDocument, options);
}
export type GQLRecentDecisionsSummaryDataQueryHookResult = ReturnType<
  typeof useGQLRecentDecisionsSummaryDataQuery
>;
export type GQLRecentDecisionsSummaryDataLazyQueryHookResult = ReturnType<
  typeof useGQLRecentDecisionsSummaryDataLazyQuery
>;
export type GQLRecentDecisionsSummaryDataSuspenseQueryHookResult = ReturnType<
  typeof useGQLRecentDecisionsSummaryDataSuspenseQuery
>;
export type GQLRecentDecisionsSummaryDataQueryResult = Apollo.QueryResult<
  GQLRecentDecisionsSummaryDataQuery,
  GQLRecentDecisionsSummaryDataQueryVariables
>;
export const GQLOrgLookupDataDocument = gql`
  query OrgLookupData {
    myOrg {
      id
      actions {
        ... on ActionBase {
          id
          name
        }
      }
      policies {
        id
        name
      }
      users {
        id
        firstName
        lastName
      }
      mrtQueues {
        id
        name
      }
    }
  }
`;

/**
 * __useGQLOrgLookupDataQuery__
 *
 * To run a query within a React component, call `useGQLOrgLookupDataQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLOrgLookupDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLOrgLookupDataQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLOrgLookupDataQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLOrgLookupDataQuery,
    GQLOrgLookupDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLOrgLookupDataQuery, GQLOrgLookupDataQueryVariables>(
    GQLOrgLookupDataDocument,
    options,
  );
}
export function useGQLOrgLookupDataLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLOrgLookupDataQuery,
    GQLOrgLookupDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLOrgLookupDataQuery,
    GQLOrgLookupDataQueryVariables
  >(GQLOrgLookupDataDocument, options);
}
// @ts-ignore
export function useGQLOrgLookupDataSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLOrgLookupDataQuery,
    GQLOrgLookupDataQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLOrgLookupDataQuery,
  GQLOrgLookupDataQueryVariables
>;
export function useGQLOrgLookupDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLOrgLookupDataQuery,
        GQLOrgLookupDataQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLOrgLookupDataQuery | undefined,
  GQLOrgLookupDataQueryVariables
>;
export function useGQLOrgLookupDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLOrgLookupDataQuery,
        GQLOrgLookupDataQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLOrgLookupDataQuery,
    GQLOrgLookupDataQueryVariables
  >(GQLOrgLookupDataDocument, options);
}
export type GQLOrgLookupDataQueryHookResult = ReturnType<
  typeof useGQLOrgLookupDataQuery
>;
export type GQLOrgLookupDataLazyQueryHookResult = ReturnType<
  typeof useGQLOrgLookupDataLazyQuery
>;
export type GQLOrgLookupDataSuspenseQueryHookResult = ReturnType<
  typeof useGQLOrgLookupDataSuspenseQuery
>;
export type GQLOrgLookupDataQueryResult = Apollo.QueryResult<
  GQLOrgLookupDataQuery,
  GQLOrgLookupDataQueryVariables
>;
export const GQLGetRecentDecisionsDocument = gql`
  query GetRecentDecisions($input: RecentDecisionsInput!) {
    getRecentDecisions(input: $input) {
      id
      jobId
      queueId
      reviewerId
      itemId
      itemTypeId
      decisions {
        ... on ManualReviewDecisionComponentBase {
          ...ManualReviewDecisionComponentFields
        }
      }
      relatedActions {
        ... on ManualReviewDecisionComponentBase {
          ...ManualReviewDecisionComponentFields
        }
      }
      createdAt
      decisionReason
    }
  }
  ${GQLManualReviewDecisionComponentFieldsFragmentDoc}
`;

/**
 * __useGQLGetRecentDecisionsQuery__
 *
 * To run a query within a React component, call `useGQLGetRecentDecisionsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetRecentDecisionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetRecentDecisionsQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLGetRecentDecisionsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetRecentDecisionsQuery,
    GQLGetRecentDecisionsQueryVariables
  > &
    (
      | { variables: GQLGetRecentDecisionsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetRecentDecisionsQuery,
    GQLGetRecentDecisionsQueryVariables
  >(GQLGetRecentDecisionsDocument, options);
}
export function useGQLGetRecentDecisionsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetRecentDecisionsQuery,
    GQLGetRecentDecisionsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetRecentDecisionsQuery,
    GQLGetRecentDecisionsQueryVariables
  >(GQLGetRecentDecisionsDocument, options);
}
// @ts-ignore
export function useGQLGetRecentDecisionsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetRecentDecisionsQuery,
    GQLGetRecentDecisionsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetRecentDecisionsQuery,
  GQLGetRecentDecisionsQueryVariables
>;
export function useGQLGetRecentDecisionsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetRecentDecisionsQuery,
        GQLGetRecentDecisionsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetRecentDecisionsQuery | undefined,
  GQLGetRecentDecisionsQueryVariables
>;
export function useGQLGetRecentDecisionsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetRecentDecisionsQuery,
        GQLGetRecentDecisionsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetRecentDecisionsQuery,
    GQLGetRecentDecisionsQueryVariables
  >(GQLGetRecentDecisionsDocument, options);
}
export type GQLGetRecentDecisionsQueryHookResult = ReturnType<
  typeof useGQLGetRecentDecisionsQuery
>;
export type GQLGetRecentDecisionsLazyQueryHookResult = ReturnType<
  typeof useGQLGetRecentDecisionsLazyQuery
>;
export type GQLGetRecentDecisionsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetRecentDecisionsSuspenseQuery
>;
export type GQLGetRecentDecisionsQueryResult = Apollo.QueryResult<
  GQLGetRecentDecisionsQuery,
  GQLGetRecentDecisionsQueryVariables
>;
export const GQLGetSkipsForRecentDecisionsDocument = gql`
  query getSkipsForRecentDecisions($input: RecentDecisionsInput!) {
    getSkipsForRecentDecisions(input: $input) {
      jobId
      userId
      queueId
      ts
    }
  }
`;

/**
 * __useGQLGetSkipsForRecentDecisionsQuery__
 *
 * To run a query within a React component, call `useGQLGetSkipsForRecentDecisionsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetSkipsForRecentDecisionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetSkipsForRecentDecisionsQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLGetSkipsForRecentDecisionsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetSkipsForRecentDecisionsQuery,
    GQLGetSkipsForRecentDecisionsQueryVariables
  > &
    (
      | {
          variables: GQLGetSkipsForRecentDecisionsQueryVariables;
          skip?: boolean;
        }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetSkipsForRecentDecisionsQuery,
    GQLGetSkipsForRecentDecisionsQueryVariables
  >(GQLGetSkipsForRecentDecisionsDocument, options);
}
export function useGQLGetSkipsForRecentDecisionsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetSkipsForRecentDecisionsQuery,
    GQLGetSkipsForRecentDecisionsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetSkipsForRecentDecisionsQuery,
    GQLGetSkipsForRecentDecisionsQueryVariables
  >(GQLGetSkipsForRecentDecisionsDocument, options);
}
// @ts-ignore
export function useGQLGetSkipsForRecentDecisionsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetSkipsForRecentDecisionsQuery,
    GQLGetSkipsForRecentDecisionsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetSkipsForRecentDecisionsQuery,
  GQLGetSkipsForRecentDecisionsQueryVariables
>;
export function useGQLGetSkipsForRecentDecisionsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetSkipsForRecentDecisionsQuery,
        GQLGetSkipsForRecentDecisionsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetSkipsForRecentDecisionsQuery | undefined,
  GQLGetSkipsForRecentDecisionsQueryVariables
>;
export function useGQLGetSkipsForRecentDecisionsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetSkipsForRecentDecisionsQuery,
        GQLGetSkipsForRecentDecisionsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetSkipsForRecentDecisionsQuery,
    GQLGetSkipsForRecentDecisionsQueryVariables
  >(GQLGetSkipsForRecentDecisionsDocument, options);
}
export type GQLGetSkipsForRecentDecisionsQueryHookResult = ReturnType<
  typeof useGQLGetSkipsForRecentDecisionsQuery
>;
export type GQLGetSkipsForRecentDecisionsLazyQueryHookResult = ReturnType<
  typeof useGQLGetSkipsForRecentDecisionsLazyQuery
>;
export type GQLGetSkipsForRecentDecisionsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetSkipsForRecentDecisionsSuspenseQuery
>;
export type GQLGetSkipsForRecentDecisionsQueryResult = Apollo.QueryResult<
  GQLGetSkipsForRecentDecisionsQuery,
  GQLGetSkipsForRecentDecisionsQueryVariables
>;
export const GQLGetDecidedJobDocument = gql`
  query GetDecidedJob($id: ID!) {
    getDecidedJob(id: $id) {
      ...JobFields
    }
  }
  ${GQLJobFieldsFragmentDoc}
`;

/**
 * __useGQLGetDecidedJobQuery__
 *
 * To run a query within a React component, call `useGQLGetDecidedJobQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetDecidedJobQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetDecidedJobQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLGetDecidedJobQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetDecidedJobQuery,
    GQLGetDecidedJobQueryVariables
  > &
    (
      | { variables: GQLGetDecidedJobQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLGetDecidedJobQuery, GQLGetDecidedJobQueryVariables>(
    GQLGetDecidedJobDocument,
    options,
  );
}
export function useGQLGetDecidedJobLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetDecidedJobQuery,
    GQLGetDecidedJobQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetDecidedJobQuery,
    GQLGetDecidedJobQueryVariables
  >(GQLGetDecidedJobDocument, options);
}
// @ts-ignore
export function useGQLGetDecidedJobSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetDecidedJobQuery,
    GQLGetDecidedJobQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetDecidedJobQuery,
  GQLGetDecidedJobQueryVariables
>;
export function useGQLGetDecidedJobSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetDecidedJobQuery,
        GQLGetDecidedJobQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetDecidedJobQuery | undefined,
  GQLGetDecidedJobQueryVariables
>;
export function useGQLGetDecidedJobSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetDecidedJobQuery,
        GQLGetDecidedJobQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetDecidedJobQuery,
    GQLGetDecidedJobQueryVariables
  >(GQLGetDecidedJobDocument, options);
}
export type GQLGetDecidedJobQueryHookResult = ReturnType<
  typeof useGQLGetDecidedJobQuery
>;
export type GQLGetDecidedJobLazyQueryHookResult = ReturnType<
  typeof useGQLGetDecidedJobLazyQuery
>;
export type GQLGetDecidedJobSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetDecidedJobSuspenseQuery
>;
export type GQLGetDecidedJobQueryResult = Apollo.QueryResult<
  GQLGetDecidedJobQuery,
  GQLGetDecidedJobQueryVariables
>;
export const GQLManualReviewSafetySettingsDocument = gql`
  query ManualReviewSafetySettings {
    me {
      interfacePreferences {
        moderatorSafetyMuteVideo
        moderatorSafetyGrayscale
        moderatorSafetyBlurLevel
        moderatorSafetySepia
      }
    }
  }
`;

/**
 * __useGQLManualReviewSafetySettingsQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewSafetySettingsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewSafetySettingsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewSafetySettingsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLManualReviewSafetySettingsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManualReviewSafetySettingsQuery,
    GQLManualReviewSafetySettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewSafetySettingsQuery,
    GQLManualReviewSafetySettingsQueryVariables
  >(GQLManualReviewSafetySettingsDocument, options);
}
export function useGQLManualReviewSafetySettingsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewSafetySettingsQuery,
    GQLManualReviewSafetySettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewSafetySettingsQuery,
    GQLManualReviewSafetySettingsQueryVariables
  >(GQLManualReviewSafetySettingsDocument, options);
}
// @ts-ignore
export function useGQLManualReviewSafetySettingsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewSafetySettingsQuery,
    GQLManualReviewSafetySettingsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewSafetySettingsQuery,
  GQLManualReviewSafetySettingsQueryVariables
>;
export function useGQLManualReviewSafetySettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewSafetySettingsQuery,
        GQLManualReviewSafetySettingsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewSafetySettingsQuery | undefined,
  GQLManualReviewSafetySettingsQueryVariables
>;
export function useGQLManualReviewSafetySettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewSafetySettingsQuery,
        GQLManualReviewSafetySettingsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewSafetySettingsQuery,
    GQLManualReviewSafetySettingsQueryVariables
  >(GQLManualReviewSafetySettingsDocument, options);
}
export type GQLManualReviewSafetySettingsQueryHookResult = ReturnType<
  typeof useGQLManualReviewSafetySettingsQuery
>;
export type GQLManualReviewSafetySettingsLazyQueryHookResult = ReturnType<
  typeof useGQLManualReviewSafetySettingsLazyQuery
>;
export type GQLManualReviewSafetySettingsSuspenseQueryHookResult = ReturnType<
  typeof useGQLManualReviewSafetySettingsSuspenseQuery
>;
export type GQLManualReviewSafetySettingsQueryResult = Apollo.QueryResult<
  GQLManualReviewSafetySettingsQuery,
  GQLManualReviewSafetySettingsQueryVariables
>;
export const GQLSetModeratorSafetySettingsDocument = gql`
  mutation SetModeratorSafetySettings(
    $moderatorSafetySettings: ModeratorSafetySettingsInput!
  ) {
    setModeratorSafetySettings(
      moderatorSafetySettings: $moderatorSafetySettings
    ) {
      _
    }
  }
`;
export type GQLSetModeratorSafetySettingsMutationFn = Apollo.MutationFunction<
  GQLSetModeratorSafetySettingsMutation,
  GQLSetModeratorSafetySettingsMutationVariables
>;

/**
 * __useGQLSetModeratorSafetySettingsMutation__
 *
 * To run a mutation, you first call `useGQLSetModeratorSafetySettingsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLSetModeratorSafetySettingsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlSetModeratorSafetySettingsMutation, { data, loading, error }] = useGQLSetModeratorSafetySettingsMutation({
 *   variables: {
 *      moderatorSafetySettings: // value for 'moderatorSafetySettings'
 *   },
 * });
 */
export function useGQLSetModeratorSafetySettingsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLSetModeratorSafetySettingsMutation,
    GQLSetModeratorSafetySettingsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLSetModeratorSafetySettingsMutation,
    GQLSetModeratorSafetySettingsMutationVariables
  >(GQLSetModeratorSafetySettingsDocument, options);
}
export type GQLSetModeratorSafetySettingsMutationHookResult = ReturnType<
  typeof useGQLSetModeratorSafetySettingsMutation
>;
export type GQLSetModeratorSafetySettingsMutationResult =
  Apollo.MutationResult<GQLSetModeratorSafetySettingsMutation>;
export type GQLSetModeratorSafetySettingsMutationOptions =
  Apollo.BaseMutationOptions<
    GQLSetModeratorSafetySettingsMutation,
    GQLSetModeratorSafetySettingsMutationVariables
  >;
export const GQLInvalidateReportsFromReporterDocument = gql`
  mutation InvalidateReportsFromReporter(
    $input: InvalidateReportsFromReporterInput!
  ) {
    invalidateReportsFromReporter(input: $input) {
      queuesScanned
      jobsScanned
      jobsScrubbed
      jobsDeleted
      reportsRemoved
      truncated
    }
  }
`;
export type GQLInvalidateReportsFromReporterMutationFn =
  Apollo.MutationFunction<
    GQLInvalidateReportsFromReporterMutation,
    GQLInvalidateReportsFromReporterMutationVariables
  >;

/**
 * __useGQLInvalidateReportsFromReporterMutation__
 *
 * To run a mutation, you first call `useGQLInvalidateReportsFromReporterMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLInvalidateReportsFromReporterMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlInvalidateReportsFromReporterMutation, { data, loading, error }] = useGQLInvalidateReportsFromReporterMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLInvalidateReportsFromReporterMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLInvalidateReportsFromReporterMutation,
    GQLInvalidateReportsFromReporterMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLInvalidateReportsFromReporterMutation,
    GQLInvalidateReportsFromReporterMutationVariables
  >(GQLInvalidateReportsFromReporterDocument, options);
}
export type GQLInvalidateReportsFromReporterMutationHookResult = ReturnType<
  typeof useGQLInvalidateReportsFromReporterMutation
>;
export type GQLInvalidateReportsFromReporterMutationResult =
  Apollo.MutationResult<GQLInvalidateReportsFromReporterMutation>;
export type GQLInvalidateReportsFromReporterMutationOptions =
  Apollo.BaseMutationOptions<
    GQLInvalidateReportsFromReporterMutation,
    GQLInvalidateReportsFromReporterMutationVariables
  >;
export const GQLManualReviewJobInfoDocument = gql`
  query ManualReviewJobInfo($jobIds: [ID!]) {
    myOrg {
      id
      policies {
        id
        name
        parentId
        policyText
        enforcementGuidelines
      }
      itemTypes {
        ...ItemTypeFragment
      }
      actions {
        ... on ActionBase {
          id
          name
          penalty
          itemTypes {
            ... on ItemTypeBase {
              id
              name
            }
          }
        }
        ... on CustomAction {
          id
          name
          penalty
          itemTypes {
            ... on ItemTypeBase {
              id
              name
            }
          }
          parameters {
            name
            displayName
            description
            type
            required
            options {
              value
              label
            }
            min
            max
            maxLength
            defaultValue
          }
        }
      }
      mrtQueues {
        id
        name
        isAppealsQueue
        autoCloseJobs
      }
      hasNCMECReportingEnabled
      requiresPolicyForDecisionsInMrt
      requiresDecisionReasonInMrt
      requiresDecisionReasonOnIgnoreInMrt
      allowMultiplePoliciesPerAction
      hideSkipButtonForNonAdmins
    }
    me {
      id
      permissions
      reviewableQueues {
        id
        name
        pendingJobCount
        hiddenActionIds
        jobs(ids: $jobIds) {
          ...JobFields
        }
      }
      permissions
    }
  }
  ${GQLItemTypeFragmentFragmentDoc}
  ${GQLJobFieldsFragmentDoc}
`;

/**
 * __useGQLManualReviewJobInfoQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewJobInfoQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewJobInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewJobInfoQuery({
 *   variables: {
 *      jobIds: // value for 'jobIds'
 *   },
 * });
 */
export function useGQLManualReviewJobInfoQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManualReviewJobInfoQuery,
    GQLManualReviewJobInfoQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewJobInfoQuery,
    GQLManualReviewJobInfoQueryVariables
  >(GQLManualReviewJobInfoDocument, options);
}
export function useGQLManualReviewJobInfoLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewJobInfoQuery,
    GQLManualReviewJobInfoQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewJobInfoQuery,
    GQLManualReviewJobInfoQueryVariables
  >(GQLManualReviewJobInfoDocument, options);
}
// @ts-ignore
export function useGQLManualReviewJobInfoSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewJobInfoQuery,
    GQLManualReviewJobInfoQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewJobInfoQuery,
  GQLManualReviewJobInfoQueryVariables
>;
export function useGQLManualReviewJobInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewJobInfoQuery,
        GQLManualReviewJobInfoQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewJobInfoQuery | undefined,
  GQLManualReviewJobInfoQueryVariables
>;
export function useGQLManualReviewJobInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewJobInfoQuery,
        GQLManualReviewJobInfoQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewJobInfoQuery,
    GQLManualReviewJobInfoQueryVariables
  >(GQLManualReviewJobInfoDocument, options);
}
export type GQLManualReviewJobInfoQueryHookResult = ReturnType<
  typeof useGQLManualReviewJobInfoQuery
>;
export type GQLManualReviewJobInfoLazyQueryHookResult = ReturnType<
  typeof useGQLManualReviewJobInfoLazyQuery
>;
export type GQLManualReviewJobInfoSuspenseQueryHookResult = ReturnType<
  typeof useGQLManualReviewJobInfoSuspenseQuery
>;
export type GQLManualReviewJobInfoQueryResult = Apollo.QueryResult<
  GQLManualReviewJobInfoQuery,
  GQLManualReviewJobInfoQueryVariables
>;
export const GQLDequeueManualReviewJobDocument = gql`
  mutation DequeueManualReviewJob($queueId: ID!) {
    dequeueManualReviewJob(queueId: $queueId) {
      ... on DequeueManualReviewJobSuccessResponse {
        job {
          ...JobFields
        }
        lockToken
        numPendingJobs
      }
    }
  }
  ${GQLJobFieldsFragmentDoc}
`;
export type GQLDequeueManualReviewJobMutationFn = Apollo.MutationFunction<
  GQLDequeueManualReviewJobMutation,
  GQLDequeueManualReviewJobMutationVariables
>;

/**
 * __useGQLDequeueManualReviewJobMutation__
 *
 * To run a mutation, you first call `useGQLDequeueManualReviewJobMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDequeueManualReviewJobMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDequeueManualReviewJobMutation, { data, loading, error }] = useGQLDequeueManualReviewJobMutation({
 *   variables: {
 *      queueId: // value for 'queueId'
 *   },
 * });
 */
export function useGQLDequeueManualReviewJobMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDequeueManualReviewJobMutation,
    GQLDequeueManualReviewJobMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDequeueManualReviewJobMutation,
    GQLDequeueManualReviewJobMutationVariables
  >(GQLDequeueManualReviewJobDocument, options);
}
export type GQLDequeueManualReviewJobMutationHookResult = ReturnType<
  typeof useGQLDequeueManualReviewJobMutation
>;
export type GQLDequeueManualReviewJobMutationResult =
  Apollo.MutationResult<GQLDequeueManualReviewJobMutation>;
export type GQLDequeueManualReviewJobMutationOptions =
  Apollo.BaseMutationOptions<
    GQLDequeueManualReviewJobMutation,
    GQLDequeueManualReviewJobMutationVariables
  >;
export const GQLSubmitManualReviewDecisionDocument = gql`
  mutation SubmitManualReviewDecision($input: SubmitDecisionInput!) {
    submitManualReviewDecision(input: $input) {
      ... on SubmitDecisionSuccessResponse {
        success
      }
      ... on JobHasAlreadyBeenSubmittedError {
        title
        status
        type
      }
      ... on SubmittedJobActionNotFoundError {
        title
        status
        type
      }
      ... on NoJobWithIdInQueueError {
        title
        status
        type
      }
      ... on RecordingJobDecisionFailedError {
        title
        status
        type
        detail
      }
      ... on MissingRequiredDecisionReasonError {
        title
        status
        type
      }
      ... on MissingRequiredPolicyForDecisionError {
        title
        status
        type
      }
    }
  }
`;
export type GQLSubmitManualReviewDecisionMutationFn = Apollo.MutationFunction<
  GQLSubmitManualReviewDecisionMutation,
  GQLSubmitManualReviewDecisionMutationVariables
>;

/**
 * __useGQLSubmitManualReviewDecisionMutation__
 *
 * To run a mutation, you first call `useGQLSubmitManualReviewDecisionMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLSubmitManualReviewDecisionMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlSubmitManualReviewDecisionMutation, { data, loading, error }] = useGQLSubmitManualReviewDecisionMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLSubmitManualReviewDecisionMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLSubmitManualReviewDecisionMutation,
    GQLSubmitManualReviewDecisionMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLSubmitManualReviewDecisionMutation,
    GQLSubmitManualReviewDecisionMutationVariables
  >(GQLSubmitManualReviewDecisionDocument, options);
}
export type GQLSubmitManualReviewDecisionMutationHookResult = ReturnType<
  typeof useGQLSubmitManualReviewDecisionMutation
>;
export type GQLSubmitManualReviewDecisionMutationResult =
  Apollo.MutationResult<GQLSubmitManualReviewDecisionMutation>;
export type GQLSubmitManualReviewDecisionMutationOptions =
  Apollo.BaseMutationOptions<
    GQLSubmitManualReviewDecisionMutation,
    GQLSubmitManualReviewDecisionMutationVariables
  >;
export const GQLLogSkipDocument = gql`
  mutation LogSkip($input: LogSkipInput!) {
    logSkip(input: $input)
  }
`;
export type GQLLogSkipMutationFn = Apollo.MutationFunction<
  GQLLogSkipMutation,
  GQLLogSkipMutationVariables
>;

/**
 * __useGQLLogSkipMutation__
 *
 * To run a mutation, you first call `useGQLLogSkipMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLLogSkipMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlLogSkipMutation, { data, loading, error }] = useGQLLogSkipMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLLogSkipMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLLogSkipMutation,
    GQLLogSkipMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<GQLLogSkipMutation, GQLLogSkipMutationVariables>(
    GQLLogSkipDocument,
    options,
  );
}
export type GQLLogSkipMutationHookResult = ReturnType<
  typeof useGQLLogSkipMutation
>;
export type GQLLogSkipMutationResult =
  Apollo.MutationResult<GQLLogSkipMutation>;
export type GQLLogSkipMutationOptions = Apollo.BaseMutationOptions<
  GQLLogSkipMutation,
  GQLLogSkipMutationVariables
>;
export const GQLReleaseJobLockDocument = gql`
  mutation ReleaseJobLock($input: ReleaseJobLockInput!) {
    releaseJobLock(input: $input)
  }
`;
export type GQLReleaseJobLockMutationFn = Apollo.MutationFunction<
  GQLReleaseJobLockMutation,
  GQLReleaseJobLockMutationVariables
>;

/**
 * __useGQLReleaseJobLockMutation__
 *
 * To run a mutation, you first call `useGQLReleaseJobLockMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLReleaseJobLockMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlReleaseJobLockMutation, { data, loading, error }] = useGQLReleaseJobLockMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLReleaseJobLockMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLReleaseJobLockMutation,
    GQLReleaseJobLockMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLReleaseJobLockMutation,
    GQLReleaseJobLockMutationVariables
  >(GQLReleaseJobLockDocument, options);
}
export type GQLReleaseJobLockMutationHookResult = ReturnType<
  typeof useGQLReleaseJobLockMutation
>;
export type GQLReleaseJobLockMutationResult =
  Apollo.MutationResult<GQLReleaseJobLockMutation>;
export type GQLReleaseJobLockMutationOptions = Apollo.BaseMutationOptions<
  GQLReleaseJobLockMutation,
  GQLReleaseJobLockMutationVariables
>;
export const GQLGetCommentsForJobDocument = gql`
  query GetCommentsForJob($jobId: ID!) {
    getCommentsForJob(jobId: $jobId) {
      ... on ManualReviewJobComment {
        ...ManualReviewJobCommentFields
      }
    }
  }
  ${GQLManualReviewJobCommentFieldsFragmentDoc}
`;

/**
 * __useGQLGetCommentsForJobQuery__
 *
 * To run a query within a React component, call `useGQLGetCommentsForJobQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetCommentsForJobQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetCommentsForJobQuery({
 *   variables: {
 *      jobId: // value for 'jobId'
 *   },
 * });
 */
export function useGQLGetCommentsForJobQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetCommentsForJobQuery,
    GQLGetCommentsForJobQueryVariables
  > &
    (
      | { variables: GQLGetCommentsForJobQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetCommentsForJobQuery,
    GQLGetCommentsForJobQueryVariables
  >(GQLGetCommentsForJobDocument, options);
}
export function useGQLGetCommentsForJobLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetCommentsForJobQuery,
    GQLGetCommentsForJobQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetCommentsForJobQuery,
    GQLGetCommentsForJobQueryVariables
  >(GQLGetCommentsForJobDocument, options);
}
// @ts-ignore
export function useGQLGetCommentsForJobSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetCommentsForJobQuery,
    GQLGetCommentsForJobQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetCommentsForJobQuery,
  GQLGetCommentsForJobQueryVariables
>;
export function useGQLGetCommentsForJobSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetCommentsForJobQuery,
        GQLGetCommentsForJobQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetCommentsForJobQuery | undefined,
  GQLGetCommentsForJobQueryVariables
>;
export function useGQLGetCommentsForJobSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetCommentsForJobQuery,
        GQLGetCommentsForJobQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetCommentsForJobQuery,
    GQLGetCommentsForJobQueryVariables
  >(GQLGetCommentsForJobDocument, options);
}
export type GQLGetCommentsForJobQueryHookResult = ReturnType<
  typeof useGQLGetCommentsForJobQuery
>;
export type GQLGetCommentsForJobLazyQueryHookResult = ReturnType<
  typeof useGQLGetCommentsForJobLazyQuery
>;
export type GQLGetCommentsForJobSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetCommentsForJobSuspenseQuery
>;
export type GQLGetCommentsForJobQueryResult = Apollo.QueryResult<
  GQLGetCommentsForJobQuery,
  GQLGetCommentsForJobQueryVariables
>;
export const GQLAddJobCommentDocument = gql`
  mutation AddJobComment($input: CreateManualReviewJobCommentInput!) {
    createManualReviewJobComment(input: $input) {
      ... on AddManualReviewJobCommentSuccessResponse {
        comment {
          ... on ManualReviewJobComment {
            ...ManualReviewJobCommentFields
          }
        }
      }
      ... on NotFoundError {
        title
      }
    }
  }
  ${GQLManualReviewJobCommentFieldsFragmentDoc}
`;
export type GQLAddJobCommentMutationFn = Apollo.MutationFunction<
  GQLAddJobCommentMutation,
  GQLAddJobCommentMutationVariables
>;

/**
 * __useGQLAddJobCommentMutation__
 *
 * To run a mutation, you first call `useGQLAddJobCommentMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLAddJobCommentMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlAddJobCommentMutation, { data, loading, error }] = useGQLAddJobCommentMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLAddJobCommentMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLAddJobCommentMutation,
    GQLAddJobCommentMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLAddJobCommentMutation,
    GQLAddJobCommentMutationVariables
  >(GQLAddJobCommentDocument, options);
}
export type GQLAddJobCommentMutationHookResult = ReturnType<
  typeof useGQLAddJobCommentMutation
>;
export type GQLAddJobCommentMutationResult =
  Apollo.MutationResult<GQLAddJobCommentMutation>;
export type GQLAddJobCommentMutationOptions = Apollo.BaseMutationOptions<
  GQLAddJobCommentMutation,
  GQLAddJobCommentMutationVariables
>;
export const GQLDeleteJobCommentDocument = gql`
  mutation DeleteJobComment($input: DeleteManualReviewJobCommentInput!) {
    deleteManualReviewJobComment(input: $input)
  }
`;
export type GQLDeleteJobCommentMutationFn = Apollo.MutationFunction<
  GQLDeleteJobCommentMutation,
  GQLDeleteJobCommentMutationVariables
>;

/**
 * __useGQLDeleteJobCommentMutation__
 *
 * To run a mutation, you first call `useGQLDeleteJobCommentMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteJobCommentMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteJobCommentMutation, { data, loading, error }] = useGQLDeleteJobCommentMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLDeleteJobCommentMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteJobCommentMutation,
    GQLDeleteJobCommentMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteJobCommentMutation,
    GQLDeleteJobCommentMutationVariables
  >(GQLDeleteJobCommentDocument, options);
}
export type GQLDeleteJobCommentMutationHookResult = ReturnType<
  typeof useGQLDeleteJobCommentMutation
>;
export type GQLDeleteJobCommentMutationResult =
  Apollo.MutationResult<GQLDeleteJobCommentMutation>;
export type GQLDeleteJobCommentMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteJobCommentMutation,
  GQLDeleteJobCommentMutationVariables
>;
export const GQLGetThreadHistoryDocument = gql`
  query getThreadHistory(
    $threadIdentifier: ItemIdentifierInput!
    $endDate: DateTime
  ) {
    threadHistory(threadIdentifier: $threadIdentifier, endDate: $endDate) {
      latest {
        ... on ContentItem {
          id
          submissionId
          data
          type {
            id
            name
            baseFields {
              name
              type
              required
              container {
                containerType
                keyScalarType
                valueScalarType
              }
            }
            schemaFieldRoles {
              displayName
              parentId
              threadId
              createdAt
              creatorId
            }
          }
        }
      }
    }
  }
`;

/**
 * __useGQLGetThreadHistoryQuery__
 *
 * To run a query within a React component, call `useGQLGetThreadHistoryQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetThreadHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetThreadHistoryQuery({
 *   variables: {
 *      threadIdentifier: // value for 'threadIdentifier'
 *      endDate: // value for 'endDate'
 *   },
 * });
 */
export function useGQLGetThreadHistoryQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetThreadHistoryQuery,
    GQLGetThreadHistoryQueryVariables
  > &
    (
      | { variables: GQLGetThreadHistoryQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetThreadHistoryQuery,
    GQLGetThreadHistoryQueryVariables
  >(GQLGetThreadHistoryDocument, options);
}
export function useGQLGetThreadHistoryLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetThreadHistoryQuery,
    GQLGetThreadHistoryQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetThreadHistoryQuery,
    GQLGetThreadHistoryQueryVariables
  >(GQLGetThreadHistoryDocument, options);
}
// @ts-ignore
export function useGQLGetThreadHistorySuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetThreadHistoryQuery,
    GQLGetThreadHistoryQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetThreadHistoryQuery,
  GQLGetThreadHistoryQueryVariables
>;
export function useGQLGetThreadHistorySuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetThreadHistoryQuery,
        GQLGetThreadHistoryQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetThreadHistoryQuery | undefined,
  GQLGetThreadHistoryQueryVariables
>;
export function useGQLGetThreadHistorySuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetThreadHistoryQuery,
        GQLGetThreadHistoryQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetThreadHistoryQuery,
    GQLGetThreadHistoryQueryVariables
  >(GQLGetThreadHistoryDocument, options);
}
export type GQLGetThreadHistoryQueryHookResult = ReturnType<
  typeof useGQLGetThreadHistoryQuery
>;
export type GQLGetThreadHistoryLazyQueryHookResult = ReturnType<
  typeof useGQLGetThreadHistoryLazyQuery
>;
export type GQLGetThreadHistorySuspenseQueryHookResult = ReturnType<
  typeof useGQLGetThreadHistorySuspenseQuery
>;
export type GQLGetThreadHistoryQueryResult = Apollo.QueryResult<
  GQLGetThreadHistoryQuery,
  GQLGetThreadHistoryQueryVariables
>;
export const GQLGetRelatedItemsDocument = gql`
  query getRelatedItems($itemIdentifiers: [ItemIdentifierInput!]!) {
    latestItemSubmissions(itemIdentifiers: $itemIdentifiers) {
      ... on UserItem {
        id
        submissionId
        submissionTime
        data
        type {
          id
          name
          baseFields {
            name
            type
            required
            container {
              containerType
              keyScalarType
              valueScalarType
            }
          }
          schemaFieldRoles {
            displayName
            createdAt
            profileIcon
            backgroundImage
          }
        }
      }
      ... on ContentItem {
        id
        submissionId
        submissionTime
        data
        type {
          id
          name
          baseFields {
            name
            type
            required
            container {
              containerType
              keyScalarType
              valueScalarType
            }
          }
          schemaFieldRoles {
            displayName
          }
        }
      }
      ... on ThreadItem {
        id
        submissionId
        submissionTime
        data
        type {
          id
          name
          baseFields {
            name
            type
            required
            container {
              containerType
              keyScalarType
              valueScalarType
            }
          }
          schemaFieldRoles {
            displayName
          }
        }
      }
    }
  }
`;

/**
 * __useGQLGetRelatedItemsQuery__
 *
 * To run a query within a React component, call `useGQLGetRelatedItemsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetRelatedItemsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetRelatedItemsQuery({
 *   variables: {
 *      itemIdentifiers: // value for 'itemIdentifiers'
 *   },
 * });
 */
export function useGQLGetRelatedItemsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetRelatedItemsQuery,
    GQLGetRelatedItemsQueryVariables
  > &
    (
      | { variables: GQLGetRelatedItemsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetRelatedItemsQuery,
    GQLGetRelatedItemsQueryVariables
  >(GQLGetRelatedItemsDocument, options);
}
export function useGQLGetRelatedItemsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetRelatedItemsQuery,
    GQLGetRelatedItemsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetRelatedItemsQuery,
    GQLGetRelatedItemsQueryVariables
  >(GQLGetRelatedItemsDocument, options);
}
// @ts-ignore
export function useGQLGetRelatedItemsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetRelatedItemsQuery,
    GQLGetRelatedItemsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetRelatedItemsQuery,
  GQLGetRelatedItemsQueryVariables
>;
export function useGQLGetRelatedItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetRelatedItemsQuery,
        GQLGetRelatedItemsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetRelatedItemsQuery | undefined,
  GQLGetRelatedItemsQueryVariables
>;
export function useGQLGetRelatedItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetRelatedItemsQuery,
        GQLGetRelatedItemsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetRelatedItemsQuery,
    GQLGetRelatedItemsQueryVariables
  >(GQLGetRelatedItemsDocument, options);
}
export type GQLGetRelatedItemsQueryHookResult = ReturnType<
  typeof useGQLGetRelatedItemsQuery
>;
export type GQLGetRelatedItemsLazyQueryHookResult = ReturnType<
  typeof useGQLGetRelatedItemsLazyQuery
>;
export type GQLGetRelatedItemsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetRelatedItemsSuspenseQuery
>;
export type GQLGetRelatedItemsQueryResult = Apollo.QueryResult<
  GQLGetRelatedItemsQuery,
  GQLGetRelatedItemsQueryVariables
>;
export const GQLItemTypeHiddenFieldsDocument = gql`
  query ItemTypeHiddenFields {
    myOrg {
      itemTypes {
        ... on ItemTypeBase {
          id
          hiddenFields
        }
      }
    }
  }
`;

/**
 * __useGQLItemTypeHiddenFieldsQuery__
 *
 * To run a query within a React component, call `useGQLItemTypeHiddenFieldsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLItemTypeHiddenFieldsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLItemTypeHiddenFieldsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLItemTypeHiddenFieldsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLItemTypeHiddenFieldsQuery,
    GQLItemTypeHiddenFieldsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLItemTypeHiddenFieldsQuery,
    GQLItemTypeHiddenFieldsQueryVariables
  >(GQLItemTypeHiddenFieldsDocument, options);
}
export function useGQLItemTypeHiddenFieldsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLItemTypeHiddenFieldsQuery,
    GQLItemTypeHiddenFieldsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLItemTypeHiddenFieldsQuery,
    GQLItemTypeHiddenFieldsQueryVariables
  >(GQLItemTypeHiddenFieldsDocument, options);
}
// @ts-ignore
export function useGQLItemTypeHiddenFieldsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLItemTypeHiddenFieldsQuery,
    GQLItemTypeHiddenFieldsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLItemTypeHiddenFieldsQuery,
  GQLItemTypeHiddenFieldsQueryVariables
>;
export function useGQLItemTypeHiddenFieldsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLItemTypeHiddenFieldsQuery,
        GQLItemTypeHiddenFieldsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLItemTypeHiddenFieldsQuery | undefined,
  GQLItemTypeHiddenFieldsQueryVariables
>;
export function useGQLItemTypeHiddenFieldsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLItemTypeHiddenFieldsQuery,
        GQLItemTypeHiddenFieldsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLItemTypeHiddenFieldsQuery,
    GQLItemTypeHiddenFieldsQueryVariables
  >(GQLItemTypeHiddenFieldsDocument, options);
}
export type GQLItemTypeHiddenFieldsQueryHookResult = ReturnType<
  typeof useGQLItemTypeHiddenFieldsQuery
>;
export type GQLItemTypeHiddenFieldsLazyQueryHookResult = ReturnType<
  typeof useGQLItemTypeHiddenFieldsLazyQuery
>;
export type GQLItemTypeHiddenFieldsSuspenseQueryHookResult = ReturnType<
  typeof useGQLItemTypeHiddenFieldsSuspenseQuery
>;
export type GQLItemTypeHiddenFieldsQueryResult = Apollo.QueryResult<
  GQLItemTypeHiddenFieldsQuery,
  GQLItemTypeHiddenFieldsQueryVariables
>;
export const GQLAllManualReviewQueuesDocument = gql`
  query AllManualReviewQueues {
    myOrg {
      mrtQueues {
        id
        name
      }
    }
  }
`;

/**
 * __useGQLAllManualReviewQueuesQuery__
 *
 * To run a query within a React component, call `useGQLAllManualReviewQueuesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLAllManualReviewQueuesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLAllManualReviewQueuesQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLAllManualReviewQueuesQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLAllManualReviewQueuesQuery,
    GQLAllManualReviewQueuesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLAllManualReviewQueuesQuery,
    GQLAllManualReviewQueuesQueryVariables
  >(GQLAllManualReviewQueuesDocument, options);
}
export function useGQLAllManualReviewQueuesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLAllManualReviewQueuesQuery,
    GQLAllManualReviewQueuesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLAllManualReviewQueuesQuery,
    GQLAllManualReviewQueuesQueryVariables
  >(GQLAllManualReviewQueuesDocument, options);
}
// @ts-ignore
export function useGQLAllManualReviewQueuesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLAllManualReviewQueuesQuery,
    GQLAllManualReviewQueuesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLAllManualReviewQueuesQuery,
  GQLAllManualReviewQueuesQueryVariables
>;
export function useGQLAllManualReviewQueuesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLAllManualReviewQueuesQuery,
        GQLAllManualReviewQueuesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLAllManualReviewQueuesQuery | undefined,
  GQLAllManualReviewQueuesQueryVariables
>;
export function useGQLAllManualReviewQueuesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLAllManualReviewQueuesQuery,
        GQLAllManualReviewQueuesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLAllManualReviewQueuesQuery,
    GQLAllManualReviewQueuesQueryVariables
  >(GQLAllManualReviewQueuesDocument, options);
}
export type GQLAllManualReviewQueuesQueryHookResult = ReturnType<
  typeof useGQLAllManualReviewQueuesQuery
>;
export type GQLAllManualReviewQueuesLazyQueryHookResult = ReturnType<
  typeof useGQLAllManualReviewQueuesLazyQuery
>;
export type GQLAllManualReviewQueuesSuspenseQueryHookResult = ReturnType<
  typeof useGQLAllManualReviewQueuesSuspenseQuery
>;
export type GQLAllManualReviewQueuesQueryResult = Apollo.QueryResult<
  GQLAllManualReviewQueuesQuery,
  GQLAllManualReviewQueuesQueryVariables
>;
export const GQLGetLatestUserSubmittedItemsWithThreadsDocument = gql`
  query getLatestUserSubmittedItemsWithThreads(
    $userId: ItemIdentifierInput!
    $reportedMessages: [ItemIdentifierInput!]!
  ) {
    ncmecThreads(userId: $userId, reportedMessages: $reportedMessages) {
      threadId
      threadTypeId
      messages {
        message {
          ... on ContentItem {
            id
            submissionId
            data
            type {
              id
              name
              baseFields {
                name
                type
                required
                container {
                  containerType
                  keyScalarType
                  valueScalarType
                }
              }
              schemaFieldRoles {
                displayName
                parentId
                threadId
                createdAt
                creatorId
              }
            }
          }
        }
        ipAddress {
          ip
          port
        }
      }
    }
  }
`;

/**
 * __useGQLGetLatestUserSubmittedItemsWithThreadsQuery__
 *
 * To run a query within a React component, call `useGQLGetLatestUserSubmittedItemsWithThreadsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetLatestUserSubmittedItemsWithThreadsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetLatestUserSubmittedItemsWithThreadsQuery({
 *   variables: {
 *      userId: // value for 'userId'
 *      reportedMessages: // value for 'reportedMessages'
 *   },
 * });
 */
export function useGQLGetLatestUserSubmittedItemsWithThreadsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetLatestUserSubmittedItemsWithThreadsQuery,
    GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
  > &
    (
      | {
          variables: GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables;
          skip?: boolean;
        }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetLatestUserSubmittedItemsWithThreadsQuery,
    GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
  >(GQLGetLatestUserSubmittedItemsWithThreadsDocument, options);
}
export function useGQLGetLatestUserSubmittedItemsWithThreadsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetLatestUserSubmittedItemsWithThreadsQuery,
    GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetLatestUserSubmittedItemsWithThreadsQuery,
    GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
  >(GQLGetLatestUserSubmittedItemsWithThreadsDocument, options);
}
// @ts-ignore
export function useGQLGetLatestUserSubmittedItemsWithThreadsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetLatestUserSubmittedItemsWithThreadsQuery,
    GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetLatestUserSubmittedItemsWithThreadsQuery,
  GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
>;
export function useGQLGetLatestUserSubmittedItemsWithThreadsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetLatestUserSubmittedItemsWithThreadsQuery,
        GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetLatestUserSubmittedItemsWithThreadsQuery | undefined,
  GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
>;
export function useGQLGetLatestUserSubmittedItemsWithThreadsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetLatestUserSubmittedItemsWithThreadsQuery,
        GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetLatestUserSubmittedItemsWithThreadsQuery,
    GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
  >(GQLGetLatestUserSubmittedItemsWithThreadsDocument, options);
}
export type GQLGetLatestUserSubmittedItemsWithThreadsQueryHookResult =
  ReturnType<typeof useGQLGetLatestUserSubmittedItemsWithThreadsQuery>;
export type GQLGetLatestUserSubmittedItemsWithThreadsLazyQueryHookResult =
  ReturnType<typeof useGQLGetLatestUserSubmittedItemsWithThreadsLazyQuery>;
export type GQLGetLatestUserSubmittedItemsWithThreadsSuspenseQueryHookResult =
  ReturnType<typeof useGQLGetLatestUserSubmittedItemsWithThreadsSuspenseQuery>;
export type GQLGetLatestUserSubmittedItemsWithThreadsQueryResult =
  Apollo.QueryResult<
    GQLGetLatestUserSubmittedItemsWithThreadsQuery,
    GQLGetLatestUserSubmittedItemsWithThreadsQueryVariables
  >;
export const GQLNcmecMediaReviewPolicyDocument = gql`
  query NcmecMediaReviewPolicy {
    myOrg {
      ncmecMediaReviewRequirement
      ncmecMinMediaToReview
    }
  }
`;

/**
 * __useGQLNcmecMediaReviewPolicyQuery__
 *
 * To run a query within a React component, call `useGQLNcmecMediaReviewPolicyQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLNcmecMediaReviewPolicyQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLNcmecMediaReviewPolicyQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLNcmecMediaReviewPolicyQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLNcmecMediaReviewPolicyQuery,
    GQLNcmecMediaReviewPolicyQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLNcmecMediaReviewPolicyQuery,
    GQLNcmecMediaReviewPolicyQueryVariables
  >(GQLNcmecMediaReviewPolicyDocument, options);
}
export function useGQLNcmecMediaReviewPolicyLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLNcmecMediaReviewPolicyQuery,
    GQLNcmecMediaReviewPolicyQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLNcmecMediaReviewPolicyQuery,
    GQLNcmecMediaReviewPolicyQueryVariables
  >(GQLNcmecMediaReviewPolicyDocument, options);
}
// @ts-ignore
export function useGQLNcmecMediaReviewPolicySuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLNcmecMediaReviewPolicyQuery,
    GQLNcmecMediaReviewPolicyQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLNcmecMediaReviewPolicyQuery,
  GQLNcmecMediaReviewPolicyQueryVariables
>;
export function useGQLNcmecMediaReviewPolicySuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLNcmecMediaReviewPolicyQuery,
        GQLNcmecMediaReviewPolicyQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLNcmecMediaReviewPolicyQuery | undefined,
  GQLNcmecMediaReviewPolicyQueryVariables
>;
export function useGQLNcmecMediaReviewPolicySuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLNcmecMediaReviewPolicyQuery,
        GQLNcmecMediaReviewPolicyQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLNcmecMediaReviewPolicyQuery,
    GQLNcmecMediaReviewPolicyQueryVariables
  >(GQLNcmecMediaReviewPolicyDocument, options);
}
export type GQLNcmecMediaReviewPolicyQueryHookResult = ReturnType<
  typeof useGQLNcmecMediaReviewPolicyQuery
>;
export type GQLNcmecMediaReviewPolicyLazyQueryHookResult = ReturnType<
  typeof useGQLNcmecMediaReviewPolicyLazyQuery
>;
export type GQLNcmecMediaReviewPolicySuspenseQueryHookResult = ReturnType<
  typeof useGQLNcmecMediaReviewPolicySuspenseQuery
>;
export type GQLNcmecMediaReviewPolicyQueryResult = Apollo.QueryResult<
  GQLNcmecMediaReviewPolicyQuery,
  GQLNcmecMediaReviewPolicyQueryVariables
>;
export const GQLGetMoreInfoForThreadItemsDocument = gql`
  query getMoreInfoForThreadItems($ids: [ItemIdentifierInput!]!) {
    partialItems(input: $ids) {
      ... on PartialItemsSuccessResponse {
        items {
          ... on ThreadItem {
            id
            submissionId
            type {
              id
              name
              baseFields {
                name
                type
                required
                container {
                  containerType
                  keyScalarType
                  valueScalarType
                }
              }
            }
            data
          }
        }
      }
      ... on PartialItemsMissingEndpointError {
        title
        status
        type
      }
      ... on PartialItemsEndpointResponseError {
        title
        status
        type
      }
      ... on PartialItemsInvalidResponseError {
        title
        status
        type
      }
    }
  }
`;

/**
 * __useGQLGetMoreInfoForThreadItemsQuery__
 *
 * To run a query within a React component, call `useGQLGetMoreInfoForThreadItemsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetMoreInfoForThreadItemsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetMoreInfoForThreadItemsQuery({
 *   variables: {
 *      ids: // value for 'ids'
 *   },
 * });
 */
export function useGQLGetMoreInfoForThreadItemsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetMoreInfoForThreadItemsQuery,
    GQLGetMoreInfoForThreadItemsQueryVariables
  > &
    (
      | {
          variables: GQLGetMoreInfoForThreadItemsQueryVariables;
          skip?: boolean;
        }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetMoreInfoForThreadItemsQuery,
    GQLGetMoreInfoForThreadItemsQueryVariables
  >(GQLGetMoreInfoForThreadItemsDocument, options);
}
export function useGQLGetMoreInfoForThreadItemsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetMoreInfoForThreadItemsQuery,
    GQLGetMoreInfoForThreadItemsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetMoreInfoForThreadItemsQuery,
    GQLGetMoreInfoForThreadItemsQueryVariables
  >(GQLGetMoreInfoForThreadItemsDocument, options);
}
// @ts-ignore
export function useGQLGetMoreInfoForThreadItemsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetMoreInfoForThreadItemsQuery,
    GQLGetMoreInfoForThreadItemsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetMoreInfoForThreadItemsQuery,
  GQLGetMoreInfoForThreadItemsQueryVariables
>;
export function useGQLGetMoreInfoForThreadItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetMoreInfoForThreadItemsQuery,
        GQLGetMoreInfoForThreadItemsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetMoreInfoForThreadItemsQuery | undefined,
  GQLGetMoreInfoForThreadItemsQueryVariables
>;
export function useGQLGetMoreInfoForThreadItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetMoreInfoForThreadItemsQuery,
        GQLGetMoreInfoForThreadItemsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetMoreInfoForThreadItemsQuery,
    GQLGetMoreInfoForThreadItemsQueryVariables
  >(GQLGetMoreInfoForThreadItemsDocument, options);
}
export type GQLGetMoreInfoForThreadItemsQueryHookResult = ReturnType<
  typeof useGQLGetMoreInfoForThreadItemsQuery
>;
export type GQLGetMoreInfoForThreadItemsLazyQueryHookResult = ReturnType<
  typeof useGQLGetMoreInfoForThreadItemsLazyQuery
>;
export type GQLGetMoreInfoForThreadItemsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetMoreInfoForThreadItemsSuspenseQuery
>;
export type GQLGetMoreInfoForThreadItemsQueryResult = Apollo.QueryResult<
  GQLGetMoreInfoForThreadItemsQuery,
  GQLGetMoreInfoForThreadItemsQueryVariables
>;
export const GQLGetMoreInfoForPartialItemsDocument = gql`
  query getMoreInfoForPartialItems($ids: [ItemIdentifierInput!]!) {
    partialItems(input: $ids) {
      ... on PartialItemsSuccessResponse {
        items {
          ...ItemFields
        }
      }
      ... on PartialItemsMissingEndpointError {
        title
        status
        type
      }
      ... on PartialItemsEndpointResponseError {
        title
        status
        type
      }
      ... on PartialItemsInvalidResponseError {
        title
        status
        type
      }
    }
  }
  ${GQLItemFieldsFragmentDoc}
`;

/**
 * __useGQLGetMoreInfoForPartialItemsQuery__
 *
 * To run a query within a React component, call `useGQLGetMoreInfoForPartialItemsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetMoreInfoForPartialItemsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetMoreInfoForPartialItemsQuery({
 *   variables: {
 *      ids: // value for 'ids'
 *   },
 * });
 */
export function useGQLGetMoreInfoForPartialItemsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetMoreInfoForPartialItemsQuery,
    GQLGetMoreInfoForPartialItemsQueryVariables
  > &
    (
      | {
          variables: GQLGetMoreInfoForPartialItemsQueryVariables;
          skip?: boolean;
        }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetMoreInfoForPartialItemsQuery,
    GQLGetMoreInfoForPartialItemsQueryVariables
  >(GQLGetMoreInfoForPartialItemsDocument, options);
}
export function useGQLGetMoreInfoForPartialItemsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetMoreInfoForPartialItemsQuery,
    GQLGetMoreInfoForPartialItemsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetMoreInfoForPartialItemsQuery,
    GQLGetMoreInfoForPartialItemsQueryVariables
  >(GQLGetMoreInfoForPartialItemsDocument, options);
}
// @ts-ignore
export function useGQLGetMoreInfoForPartialItemsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetMoreInfoForPartialItemsQuery,
    GQLGetMoreInfoForPartialItemsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetMoreInfoForPartialItemsQuery,
  GQLGetMoreInfoForPartialItemsQueryVariables
>;
export function useGQLGetMoreInfoForPartialItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetMoreInfoForPartialItemsQuery,
        GQLGetMoreInfoForPartialItemsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetMoreInfoForPartialItemsQuery | undefined,
  GQLGetMoreInfoForPartialItemsQueryVariables
>;
export function useGQLGetMoreInfoForPartialItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetMoreInfoForPartialItemsQuery,
        GQLGetMoreInfoForPartialItemsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetMoreInfoForPartialItemsQuery,
    GQLGetMoreInfoForPartialItemsQueryVariables
  >(GQLGetMoreInfoForPartialItemsDocument, options);
}
export type GQLGetMoreInfoForPartialItemsQueryHookResult = ReturnType<
  typeof useGQLGetMoreInfoForPartialItemsQuery
>;
export type GQLGetMoreInfoForPartialItemsLazyQueryHookResult = ReturnType<
  typeof useGQLGetMoreInfoForPartialItemsLazyQuery
>;
export type GQLGetMoreInfoForPartialItemsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetMoreInfoForPartialItemsSuspenseQuery
>;
export type GQLGetMoreInfoForPartialItemsQueryResult = Apollo.QueryResult<
  GQLGetMoreInfoForPartialItemsQuery,
  GQLGetMoreInfoForPartialItemsQueryVariables
>;
export const GQLGetExistingJobsForItemDocument = gql`
  query getExistingJobsForItem($itemId: ID!, $itemTypeId: ID!) {
    getExistingJobsForItem(itemId: $itemId, itemTypeId: $itemTypeId) {
      queueId
      job {
        createdAt
      }
    }
    myOrg {
      mrtQueues {
        id
        name
      }
    }
  }
`;

/**
 * __useGQLGetExistingJobsForItemQuery__
 *
 * To run a query within a React component, call `useGQLGetExistingJobsForItemQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetExistingJobsForItemQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetExistingJobsForItemQuery({
 *   variables: {
 *      itemId: // value for 'itemId'
 *      itemTypeId: // value for 'itemTypeId'
 *   },
 * });
 */
export function useGQLGetExistingJobsForItemQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetExistingJobsForItemQuery,
    GQLGetExistingJobsForItemQueryVariables
  > &
    (
      | { variables: GQLGetExistingJobsForItemQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetExistingJobsForItemQuery,
    GQLGetExistingJobsForItemQueryVariables
  >(GQLGetExistingJobsForItemDocument, options);
}
export function useGQLGetExistingJobsForItemLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetExistingJobsForItemQuery,
    GQLGetExistingJobsForItemQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetExistingJobsForItemQuery,
    GQLGetExistingJobsForItemQueryVariables
  >(GQLGetExistingJobsForItemDocument, options);
}
// @ts-ignore
export function useGQLGetExistingJobsForItemSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetExistingJobsForItemQuery,
    GQLGetExistingJobsForItemQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetExistingJobsForItemQuery,
  GQLGetExistingJobsForItemQueryVariables
>;
export function useGQLGetExistingJobsForItemSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetExistingJobsForItemQuery,
        GQLGetExistingJobsForItemQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetExistingJobsForItemQuery | undefined,
  GQLGetExistingJobsForItemQueryVariables
>;
export function useGQLGetExistingJobsForItemSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetExistingJobsForItemQuery,
        GQLGetExistingJobsForItemQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetExistingJobsForItemQuery,
    GQLGetExistingJobsForItemQueryVariables
  >(GQLGetExistingJobsForItemDocument, options);
}
export type GQLGetExistingJobsForItemQueryHookResult = ReturnType<
  typeof useGQLGetExistingJobsForItemQuery
>;
export type GQLGetExistingJobsForItemLazyQueryHookResult = ReturnType<
  typeof useGQLGetExistingJobsForItemLazyQuery
>;
export type GQLGetExistingJobsForItemSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetExistingJobsForItemSuspenseQuery
>;
export type GQLGetExistingJobsForItemQueryResult = Apollo.QueryResult<
  GQLGetExistingJobsForItemQuery,
  GQLGetExistingJobsForItemQueryVariables
>;
export const GQLGetLatestUserSubmittedItemsDocument = gql`
  query getLatestUserSubmittedItems(
    $itemIdentifier: ItemIdentifierInput!
    $oldestReturnedSubmissionDate: DateTime
    $earliestReturnedSubmissionDate: DateTime
  ) {
    latestItemsCreatedBy(
      itemIdentifier: $itemIdentifier
      oldestReturnedSubmissionDate: $oldestReturnedSubmissionDate
      earliestReturnedSubmissionDate: $earliestReturnedSubmissionDate
    ) {
      latest {
        ... on ContentItem {
          id
          submissionId
          data
          type {
            id
            name
            baseFields {
              name
              type
              required
              container {
                containerType
                keyScalarType
                valueScalarType
              }
            }
            schemaFieldRoles {
              displayName
              parentId
              threadId
              createdAt
              creatorId
            }
          }
        }
        ... on ThreadItem {
          id
          submissionId
          data
          type {
            id
            name
            baseFields {
              name
              type
              required
              container {
                containerType
                keyScalarType
                valueScalarType
              }
            }
            schemaFieldRoles {
              displayName
              createdAt
              creatorId
            }
          }
        }
      }
    }
  }
`;

/**
 * __useGQLGetLatestUserSubmittedItemsQuery__
 *
 * To run a query within a React component, call `useGQLGetLatestUserSubmittedItemsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetLatestUserSubmittedItemsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetLatestUserSubmittedItemsQuery({
 *   variables: {
 *      itemIdentifier: // value for 'itemIdentifier'
 *      oldestReturnedSubmissionDate: // value for 'oldestReturnedSubmissionDate'
 *      earliestReturnedSubmissionDate: // value for 'earliestReturnedSubmissionDate'
 *   },
 * });
 */
export function useGQLGetLatestUserSubmittedItemsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetLatestUserSubmittedItemsQuery,
    GQLGetLatestUserSubmittedItemsQueryVariables
  > &
    (
      | {
          variables: GQLGetLatestUserSubmittedItemsQueryVariables;
          skip?: boolean;
        }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetLatestUserSubmittedItemsQuery,
    GQLGetLatestUserSubmittedItemsQueryVariables
  >(GQLGetLatestUserSubmittedItemsDocument, options);
}
export function useGQLGetLatestUserSubmittedItemsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetLatestUserSubmittedItemsQuery,
    GQLGetLatestUserSubmittedItemsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetLatestUserSubmittedItemsQuery,
    GQLGetLatestUserSubmittedItemsQueryVariables
  >(GQLGetLatestUserSubmittedItemsDocument, options);
}
// @ts-ignore
export function useGQLGetLatestUserSubmittedItemsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetLatestUserSubmittedItemsQuery,
    GQLGetLatestUserSubmittedItemsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetLatestUserSubmittedItemsQuery,
  GQLGetLatestUserSubmittedItemsQueryVariables
>;
export function useGQLGetLatestUserSubmittedItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetLatestUserSubmittedItemsQuery,
        GQLGetLatestUserSubmittedItemsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetLatestUserSubmittedItemsQuery | undefined,
  GQLGetLatestUserSubmittedItemsQueryVariables
>;
export function useGQLGetLatestUserSubmittedItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetLatestUserSubmittedItemsQuery,
        GQLGetLatestUserSubmittedItemsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetLatestUserSubmittedItemsQuery,
    GQLGetLatestUserSubmittedItemsQueryVariables
  >(GQLGetLatestUserSubmittedItemsDocument, options);
}
export type GQLGetLatestUserSubmittedItemsQueryHookResult = ReturnType<
  typeof useGQLGetLatestUserSubmittedItemsQuery
>;
export type GQLGetLatestUserSubmittedItemsLazyQueryHookResult = ReturnType<
  typeof useGQLGetLatestUserSubmittedItemsLazyQuery
>;
export type GQLGetLatestUserSubmittedItemsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetLatestUserSubmittedItemsSuspenseQuery
>;
export type GQLGetLatestUserSubmittedItemsQueryResult = Apollo.QueryResult<
  GQLGetLatestUserSubmittedItemsQuery,
  GQLGetLatestUserSubmittedItemsQueryVariables
>;
export const GQLOrgDataDocument = gql`
  query OrgData {
    myOrg {
      id
      name
    }
  }
`;

/**
 * __useGQLOrgDataQuery__
 *
 * To run a query within a React component, call `useGQLOrgDataQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLOrgDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLOrgDataQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLOrgDataQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLOrgDataQuery,
    GQLOrgDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLOrgDataQuery, GQLOrgDataQueryVariables>(
    GQLOrgDataDocument,
    options,
  );
}
export function useGQLOrgDataLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLOrgDataQuery,
    GQLOrgDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLOrgDataQuery, GQLOrgDataQueryVariables>(
    GQLOrgDataDocument,
    options,
  );
}
// @ts-ignore
export function useGQLOrgDataSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLOrgDataQuery,
    GQLOrgDataQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLOrgDataQuery, GQLOrgDataQueryVariables>;
export function useGQLOrgDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLOrgDataQuery,
        GQLOrgDataQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLOrgDataQuery | undefined,
  GQLOrgDataQueryVariables
>;
export function useGQLOrgDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLOrgDataQuery,
        GQLOrgDataQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLOrgDataQuery, GQLOrgDataQueryVariables>(
    GQLOrgDataDocument,
    options,
  );
}
export type GQLOrgDataQueryHookResult = ReturnType<typeof useGQLOrgDataQuery>;
export type GQLOrgDataLazyQueryHookResult = ReturnType<
  typeof useGQLOrgDataLazyQuery
>;
export type GQLOrgDataSuspenseQueryHookResult = ReturnType<
  typeof useGQLOrgDataSuspenseQuery
>;
export type GQLOrgDataQueryResult = Apollo.QueryResult<
  GQLOrgDataQuery,
  GQLOrgDataQueryVariables
>;
export const GQLGetMoreInfoForItemsDocument = gql`
  query getMoreInfoForItems($ids: [ItemIdentifierInput!]!) {
    partialItems(input: $ids) {
      ... on PartialItemsSuccessResponse {
        items {
          ... on UserItem {
            id
            submissionId
            type {
              baseFields {
                name
                type
                required
                container {
                  containerType
                  keyScalarType
                  valueScalarType
                }
              }
              schemaFieldRoles {
                displayName
                createdAt
                profileIcon
                backgroundImage
              }
              id
            }
            data
          }
        }
      }
      ... on PartialItemsMissingEndpointError {
        title
        status
        type
      }
      ... on PartialItemsEndpointResponseError {
        title
        status
        type
      }
      ... on PartialItemsInvalidResponseError {
        title
        status
        type
      }
    }
  }
`;

/**
 * __useGQLGetMoreInfoForItemsQuery__
 *
 * To run a query within a React component, call `useGQLGetMoreInfoForItemsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetMoreInfoForItemsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetMoreInfoForItemsQuery({
 *   variables: {
 *      ids: // value for 'ids'
 *   },
 * });
 */
export function useGQLGetMoreInfoForItemsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetMoreInfoForItemsQuery,
    GQLGetMoreInfoForItemsQueryVariables
  > &
    (
      | { variables: GQLGetMoreInfoForItemsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetMoreInfoForItemsQuery,
    GQLGetMoreInfoForItemsQueryVariables
  >(GQLGetMoreInfoForItemsDocument, options);
}
export function useGQLGetMoreInfoForItemsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetMoreInfoForItemsQuery,
    GQLGetMoreInfoForItemsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetMoreInfoForItemsQuery,
    GQLGetMoreInfoForItemsQueryVariables
  >(GQLGetMoreInfoForItemsDocument, options);
}
// @ts-ignore
export function useGQLGetMoreInfoForItemsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetMoreInfoForItemsQuery,
    GQLGetMoreInfoForItemsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetMoreInfoForItemsQuery,
  GQLGetMoreInfoForItemsQueryVariables
>;
export function useGQLGetMoreInfoForItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetMoreInfoForItemsQuery,
        GQLGetMoreInfoForItemsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetMoreInfoForItemsQuery | undefined,
  GQLGetMoreInfoForItemsQueryVariables
>;
export function useGQLGetMoreInfoForItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetMoreInfoForItemsQuery,
        GQLGetMoreInfoForItemsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetMoreInfoForItemsQuery,
    GQLGetMoreInfoForItemsQueryVariables
  >(GQLGetMoreInfoForItemsDocument, options);
}
export type GQLGetMoreInfoForItemsQueryHookResult = ReturnType<
  typeof useGQLGetMoreInfoForItemsQuery
>;
export type GQLGetMoreInfoForItemsLazyQueryHookResult = ReturnType<
  typeof useGQLGetMoreInfoForItemsLazyQuery
>;
export type GQLGetMoreInfoForItemsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetMoreInfoForItemsSuspenseQuery
>;
export type GQLGetMoreInfoForItemsQueryResult = Apollo.QueryResult<
  GQLGetMoreInfoForItemsQuery,
  GQLGetMoreInfoForItemsQueryVariables
>;
export const GQLGetUserItemsDocument = gql`
  query getUserItems($itemIdentifiers: [ItemIdentifierInput!]!) {
    latestItemSubmissions(itemIdentifiers: $itemIdentifiers) {
      ... on UserItem {
        id
        submissionId
        submissionTime
        data
        userStrikeCount
        type {
          id
          name
          baseFields {
            name
            type
            required
            container {
              containerType
              keyScalarType
              valueScalarType
            }
          }
          schemaFieldRoles {
            displayName
            createdAt
            profileIcon
            backgroundImage
          }
        }
      }
    }
  }
`;

/**
 * __useGQLGetUserItemsQuery__
 *
 * To run a query within a React component, call `useGQLGetUserItemsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetUserItemsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetUserItemsQuery({
 *   variables: {
 *      itemIdentifiers: // value for 'itemIdentifiers'
 *   },
 * });
 */
export function useGQLGetUserItemsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetUserItemsQuery,
    GQLGetUserItemsQueryVariables
  > &
    (
      | { variables: GQLGetUserItemsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLGetUserItemsQuery, GQLGetUserItemsQueryVariables>(
    GQLGetUserItemsDocument,
    options,
  );
}
export function useGQLGetUserItemsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetUserItemsQuery,
    GQLGetUserItemsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetUserItemsQuery,
    GQLGetUserItemsQueryVariables
  >(GQLGetUserItemsDocument, options);
}
// @ts-ignore
export function useGQLGetUserItemsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetUserItemsQuery,
    GQLGetUserItemsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetUserItemsQuery,
  GQLGetUserItemsQueryVariables
>;
export function useGQLGetUserItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetUserItemsQuery,
        GQLGetUserItemsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetUserItemsQuery | undefined,
  GQLGetUserItemsQueryVariables
>;
export function useGQLGetUserItemsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetUserItemsQuery,
        GQLGetUserItemsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetUserItemsQuery,
    GQLGetUserItemsQueryVariables
  >(GQLGetUserItemsDocument, options);
}
export type GQLGetUserItemsQueryHookResult = ReturnType<
  typeof useGQLGetUserItemsQuery
>;
export type GQLGetUserItemsLazyQueryHookResult = ReturnType<
  typeof useGQLGetUserItemsLazyQuery
>;
export type GQLGetUserItemsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetUserItemsSuspenseQuery
>;
export type GQLGetUserItemsQueryResult = Apollo.QueryResult<
  GQLGetUserItemsQuery,
  GQLGetUserItemsQueryVariables
>;
export const GQLManualReviewHasAppealsEnabledDocument = gql`
  query ManualReviewHasAppealsEnabled {
    myOrg {
      hasAppealsEnabled
    }
  }
`;

/**
 * __useGQLManualReviewHasAppealsEnabledQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewHasAppealsEnabledQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewHasAppealsEnabledQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewHasAppealsEnabledQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLManualReviewHasAppealsEnabledQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManualReviewHasAppealsEnabledQuery,
    GQLManualReviewHasAppealsEnabledQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewHasAppealsEnabledQuery,
    GQLManualReviewHasAppealsEnabledQueryVariables
  >(GQLManualReviewHasAppealsEnabledDocument, options);
}
export function useGQLManualReviewHasAppealsEnabledLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewHasAppealsEnabledQuery,
    GQLManualReviewHasAppealsEnabledQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewHasAppealsEnabledQuery,
    GQLManualReviewHasAppealsEnabledQueryVariables
  >(GQLManualReviewHasAppealsEnabledDocument, options);
}
// @ts-ignore
export function useGQLManualReviewHasAppealsEnabledSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewHasAppealsEnabledQuery,
    GQLManualReviewHasAppealsEnabledQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewHasAppealsEnabledQuery,
  GQLManualReviewHasAppealsEnabledQueryVariables
>;
export function useGQLManualReviewHasAppealsEnabledSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewHasAppealsEnabledQuery,
        GQLManualReviewHasAppealsEnabledQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewHasAppealsEnabledQuery | undefined,
  GQLManualReviewHasAppealsEnabledQueryVariables
>;
export function useGQLManualReviewHasAppealsEnabledSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewHasAppealsEnabledQuery,
        GQLManualReviewHasAppealsEnabledQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewHasAppealsEnabledQuery,
    GQLManualReviewHasAppealsEnabledQueryVariables
  >(GQLManualReviewHasAppealsEnabledDocument, options);
}
export type GQLManualReviewHasAppealsEnabledQueryHookResult = ReturnType<
  typeof useGQLManualReviewHasAppealsEnabledQuery
>;
export type GQLManualReviewHasAppealsEnabledLazyQueryHookResult = ReturnType<
  typeof useGQLManualReviewHasAppealsEnabledLazyQuery
>;
export type GQLManualReviewHasAppealsEnabledSuspenseQueryHookResult =
  ReturnType<typeof useGQLManualReviewHasAppealsEnabledSuspenseQuery>;
export type GQLManualReviewHasAppealsEnabledQueryResult = Apollo.QueryResult<
  GQLManualReviewHasAppealsEnabledQuery,
  GQLManualReviewHasAppealsEnabledQueryVariables
>;
export const GQLDeleteRoutingRuleDocument = gql`
  mutation DeleteRoutingRule($input: DeleteRoutingRuleInput!) {
    deleteRoutingRule(input: $input)
  }
`;
export type GQLDeleteRoutingRuleMutationFn = Apollo.MutationFunction<
  GQLDeleteRoutingRuleMutation,
  GQLDeleteRoutingRuleMutationVariables
>;

/**
 * __useGQLDeleteRoutingRuleMutation__
 *
 * To run a mutation, you first call `useGQLDeleteRoutingRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteRoutingRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteRoutingRuleMutation, { data, loading, error }] = useGQLDeleteRoutingRuleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLDeleteRoutingRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteRoutingRuleMutation,
    GQLDeleteRoutingRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteRoutingRuleMutation,
    GQLDeleteRoutingRuleMutationVariables
  >(GQLDeleteRoutingRuleDocument, options);
}
export type GQLDeleteRoutingRuleMutationHookResult = ReturnType<
  typeof useGQLDeleteRoutingRuleMutation
>;
export type GQLDeleteRoutingRuleMutationResult =
  Apollo.MutationResult<GQLDeleteRoutingRuleMutation>;
export type GQLDeleteRoutingRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteRoutingRuleMutation,
  GQLDeleteRoutingRuleMutationVariables
>;
export const GQLManualReviewQueueRoutingRulesDocument = gql`
  query ManualReviewQueueRoutingRules {
    myOrg {
      itemTypes {
        ...ItemTypeFragment
        ... on ItemTypeBase {
          derivedFields {
            ...DerivedFieldFields
          }
        }
      }
      routingRules {
        id
        name
        description
        itemTypes {
          ...ItemTypeFragment
        }
        conditionSet {
          ...ConditionSetFields
        }
        destinationQueue {
          id
          name
        }
      }
      appealsRoutingRules {
        id
        name
        description
        itemTypes {
          ...ItemTypeFragment
        }
        conditionSet {
          ...ConditionSetFields
        }
        destinationQueue {
          id
          name
        }
      }
      signals {
        ...SignalsFragment
      }
    }
    me {
      id
      reviewableQueues {
        id
        name
        isAppealsQueue
      }
    }
  }
  ${GQLItemTypeFragmentFragmentDoc}
  ${GQLDerivedFieldFieldsFragmentDoc}
  ${GQLConditionSetFieldsFragmentDoc}
  ${GQLSignalsFragmentFragmentDoc}
`;

/**
 * __useGQLManualReviewQueueRoutingRulesQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewQueueRoutingRulesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewQueueRoutingRulesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewQueueRoutingRulesQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLManualReviewQueueRoutingRulesQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManualReviewQueueRoutingRulesQuery,
    GQLManualReviewQueueRoutingRulesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewQueueRoutingRulesQuery,
    GQLManualReviewQueueRoutingRulesQueryVariables
  >(GQLManualReviewQueueRoutingRulesDocument, options);
}
export function useGQLManualReviewQueueRoutingRulesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewQueueRoutingRulesQuery,
    GQLManualReviewQueueRoutingRulesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewQueueRoutingRulesQuery,
    GQLManualReviewQueueRoutingRulesQueryVariables
  >(GQLManualReviewQueueRoutingRulesDocument, options);
}
// @ts-ignore
export function useGQLManualReviewQueueRoutingRulesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewQueueRoutingRulesQuery,
    GQLManualReviewQueueRoutingRulesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewQueueRoutingRulesQuery,
  GQLManualReviewQueueRoutingRulesQueryVariables
>;
export function useGQLManualReviewQueueRoutingRulesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewQueueRoutingRulesQuery,
        GQLManualReviewQueueRoutingRulesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewQueueRoutingRulesQuery | undefined,
  GQLManualReviewQueueRoutingRulesQueryVariables
>;
export function useGQLManualReviewQueueRoutingRulesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewQueueRoutingRulesQuery,
        GQLManualReviewQueueRoutingRulesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewQueueRoutingRulesQuery,
    GQLManualReviewQueueRoutingRulesQueryVariables
  >(GQLManualReviewQueueRoutingRulesDocument, options);
}
export type GQLManualReviewQueueRoutingRulesQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueueRoutingRulesQuery
>;
export type GQLManualReviewQueueRoutingRulesLazyQueryHookResult = ReturnType<
  typeof useGQLManualReviewQueueRoutingRulesLazyQuery
>;
export type GQLManualReviewQueueRoutingRulesSuspenseQueryHookResult =
  ReturnType<typeof useGQLManualReviewQueueRoutingRulesSuspenseQuery>;
export type GQLManualReviewQueueRoutingRulesQueryResult = Apollo.QueryResult<
  GQLManualReviewQueueRoutingRulesQuery,
  GQLManualReviewQueueRoutingRulesQueryVariables
>;
export const GQLCreateRoutingRuleDocument = gql`
  mutation CreateRoutingRule($input: CreateRoutingRuleInput!) {
    createRoutingRule(input: $input) {
      ... on MutateRoutingRuleSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLCreateRoutingRuleMutationFn = Apollo.MutationFunction<
  GQLCreateRoutingRuleMutation,
  GQLCreateRoutingRuleMutationVariables
>;

/**
 * __useGQLCreateRoutingRuleMutation__
 *
 * To run a mutation, you first call `useGQLCreateRoutingRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateRoutingRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateRoutingRuleMutation, { data, loading, error }] = useGQLCreateRoutingRuleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateRoutingRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateRoutingRuleMutation,
    GQLCreateRoutingRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateRoutingRuleMutation,
    GQLCreateRoutingRuleMutationVariables
  >(GQLCreateRoutingRuleDocument, options);
}
export type GQLCreateRoutingRuleMutationHookResult = ReturnType<
  typeof useGQLCreateRoutingRuleMutation
>;
export type GQLCreateRoutingRuleMutationResult =
  Apollo.MutationResult<GQLCreateRoutingRuleMutation>;
export type GQLCreateRoutingRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateRoutingRuleMutation,
  GQLCreateRoutingRuleMutationVariables
>;
export const GQLUpdateRoutingRuleDocument = gql`
  mutation UpdateRoutingRule($input: UpdateRoutingRuleInput!) {
    updateRoutingRule(input: $input) {
      ... on MutateRoutingRuleSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLUpdateRoutingRuleMutationFn = Apollo.MutationFunction<
  GQLUpdateRoutingRuleMutation,
  GQLUpdateRoutingRuleMutationVariables
>;

/**
 * __useGQLUpdateRoutingRuleMutation__
 *
 * To run a mutation, you first call `useGQLUpdateRoutingRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateRoutingRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateRoutingRuleMutation, { data, loading, error }] = useGQLUpdateRoutingRuleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateRoutingRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateRoutingRuleMutation,
    GQLUpdateRoutingRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateRoutingRuleMutation,
    GQLUpdateRoutingRuleMutationVariables
  >(GQLUpdateRoutingRuleDocument, options);
}
export type GQLUpdateRoutingRuleMutationHookResult = ReturnType<
  typeof useGQLUpdateRoutingRuleMutation
>;
export type GQLUpdateRoutingRuleMutationResult =
  Apollo.MutationResult<GQLUpdateRoutingRuleMutation>;
export type GQLUpdateRoutingRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateRoutingRuleMutation,
  GQLUpdateRoutingRuleMutationVariables
>;
export const GQLReorderRoutingRulesDocument = gql`
  mutation ReorderRoutingRules($input: ReorderRoutingRulesInput!) {
    reorderRoutingRules(input: $input) {
      ... on MutateRoutingRulesOrderSuccessResponse {
        data {
          id
        }
      }
    }
  }
`;
export type GQLReorderRoutingRulesMutationFn = Apollo.MutationFunction<
  GQLReorderRoutingRulesMutation,
  GQLReorderRoutingRulesMutationVariables
>;

/**
 * __useGQLReorderRoutingRulesMutation__
 *
 * To run a mutation, you first call `useGQLReorderRoutingRulesMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLReorderRoutingRulesMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlReorderRoutingRulesMutation, { data, loading, error }] = useGQLReorderRoutingRulesMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLReorderRoutingRulesMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLReorderRoutingRulesMutation,
    GQLReorderRoutingRulesMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLReorderRoutingRulesMutation,
    GQLReorderRoutingRulesMutationVariables
  >(GQLReorderRoutingRulesDocument, options);
}
export type GQLReorderRoutingRulesMutationHookResult = ReturnType<
  typeof useGQLReorderRoutingRulesMutation
>;
export type GQLReorderRoutingRulesMutationResult =
  Apollo.MutationResult<GQLReorderRoutingRulesMutation>;
export type GQLReorderRoutingRulesMutationOptions = Apollo.BaseMutationOptions<
  GQLReorderRoutingRulesMutation,
  GQLReorderRoutingRulesMutationVariables
>;
export const GQLManualReviewChartConfigurationSettingsDocument = gql`
  query ManualReviewChartConfigurationSettings {
    me {
      interfacePreferences {
        mrtChartConfigurations {
          ... on GetDecisionCountSettings {
            title
            metric
            decisionGroupBy: groupBy
            filterBy {
              startDate
              endDate
              type
              actionIds
              policyIds
              queueIds
              reviewerIds
              itemTypeIds
            }
            timeDivision
          }
          ... on GetJobCreationCountSettings {
            title
            metric
            jobCreationGroupBy: groupBy
            filterBy {
              startDate
              endDate
              policyIds
              queueIds
              itemTypeIds
              ruleIds
              sources
            }
            timeDivision
          }
        }
      }
    }
  }
`;

/**
 * __useGQLManualReviewChartConfigurationSettingsQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewChartConfigurationSettingsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewChartConfigurationSettingsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewChartConfigurationSettingsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLManualReviewChartConfigurationSettingsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManualReviewChartConfigurationSettingsQuery,
    GQLManualReviewChartConfigurationSettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewChartConfigurationSettingsQuery,
    GQLManualReviewChartConfigurationSettingsQueryVariables
  >(GQLManualReviewChartConfigurationSettingsDocument, options);
}
export function useGQLManualReviewChartConfigurationSettingsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewChartConfigurationSettingsQuery,
    GQLManualReviewChartConfigurationSettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewChartConfigurationSettingsQuery,
    GQLManualReviewChartConfigurationSettingsQueryVariables
  >(GQLManualReviewChartConfigurationSettingsDocument, options);
}
// @ts-ignore
export function useGQLManualReviewChartConfigurationSettingsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewChartConfigurationSettingsQuery,
    GQLManualReviewChartConfigurationSettingsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewChartConfigurationSettingsQuery,
  GQLManualReviewChartConfigurationSettingsQueryVariables
>;
export function useGQLManualReviewChartConfigurationSettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewChartConfigurationSettingsQuery,
        GQLManualReviewChartConfigurationSettingsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewChartConfigurationSettingsQuery | undefined,
  GQLManualReviewChartConfigurationSettingsQueryVariables
>;
export function useGQLManualReviewChartConfigurationSettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewChartConfigurationSettingsQuery,
        GQLManualReviewChartConfigurationSettingsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewChartConfigurationSettingsQuery,
    GQLManualReviewChartConfigurationSettingsQueryVariables
  >(GQLManualReviewChartConfigurationSettingsDocument, options);
}
export type GQLManualReviewChartConfigurationSettingsQueryHookResult =
  ReturnType<typeof useGQLManualReviewChartConfigurationSettingsQuery>;
export type GQLManualReviewChartConfigurationSettingsLazyQueryHookResult =
  ReturnType<typeof useGQLManualReviewChartConfigurationSettingsLazyQuery>;
export type GQLManualReviewChartConfigurationSettingsSuspenseQueryHookResult =
  ReturnType<typeof useGQLManualReviewChartConfigurationSettingsSuspenseQuery>;
export type GQLManualReviewChartConfigurationSettingsQueryResult =
  Apollo.QueryResult<
    GQLManualReviewChartConfigurationSettingsQuery,
    GQLManualReviewChartConfigurationSettingsQueryVariables
  >;
export const GQLSetMrtChartConfigurationSettingsDocument = gql`
  mutation SetMrtChartConfigurationSettings(
    $mrtChartConfigurationSettings: ManualReviewChartConfigurationsInput!
  ) {
    setMrtChartConfigurationSettings(
      mrtChartConfigurationSettings: $mrtChartConfigurationSettings
    ) {
      _
    }
  }
`;
export type GQLSetMrtChartConfigurationSettingsMutationFn =
  Apollo.MutationFunction<
    GQLSetMrtChartConfigurationSettingsMutation,
    GQLSetMrtChartConfigurationSettingsMutationVariables
  >;

/**
 * __useGQLSetMrtChartConfigurationSettingsMutation__
 *
 * To run a mutation, you first call `useGQLSetMrtChartConfigurationSettingsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLSetMrtChartConfigurationSettingsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlSetMrtChartConfigurationSettingsMutation, { data, loading, error }] = useGQLSetMrtChartConfigurationSettingsMutation({
 *   variables: {
 *      mrtChartConfigurationSettings: // value for 'mrtChartConfigurationSettings'
 *   },
 * });
 */
export function useGQLSetMrtChartConfigurationSettingsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLSetMrtChartConfigurationSettingsMutation,
    GQLSetMrtChartConfigurationSettingsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLSetMrtChartConfigurationSettingsMutation,
    GQLSetMrtChartConfigurationSettingsMutationVariables
  >(GQLSetMrtChartConfigurationSettingsDocument, options);
}
export type GQLSetMrtChartConfigurationSettingsMutationHookResult = ReturnType<
  typeof useGQLSetMrtChartConfigurationSettingsMutation
>;
export type GQLSetMrtChartConfigurationSettingsMutationResult =
  Apollo.MutationResult<GQLSetMrtChartConfigurationSettingsMutation>;
export type GQLSetMrtChartConfigurationSettingsMutationOptions =
  Apollo.BaseMutationOptions<
    GQLSetMrtChartConfigurationSettingsMutation,
    GQLSetMrtChartConfigurationSettingsMutationVariables
  >;
export const GQLManualReviewDecisionInsightsOrgInfoDocument = gql`
  query ManualReviewDecisionInsightsOrgInfo {
    myOrg {
      id
      actions {
        ... on ActionBase {
          id
          name
        }
      }
      users {
        id
        firstName
        lastName
      }
      policies {
        id
        name
      }
      mrtQueues {
        id
        name
      }
      itemTypes {
        ... on ItemTypeBase {
          id
          name
        }
      }
      rules {
        ... on ContentRule {
          id
          name
        }
        ... on UserRule {
          id
          name
        }
      }
    }
  }
`;

/**
 * __useGQLManualReviewDecisionInsightsOrgInfoQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewDecisionInsightsOrgInfoQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewDecisionInsightsOrgInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewDecisionInsightsOrgInfoQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLManualReviewDecisionInsightsOrgInfoQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManualReviewDecisionInsightsOrgInfoQuery,
    GQLManualReviewDecisionInsightsOrgInfoQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewDecisionInsightsOrgInfoQuery,
    GQLManualReviewDecisionInsightsOrgInfoQueryVariables
  >(GQLManualReviewDecisionInsightsOrgInfoDocument, options);
}
export function useGQLManualReviewDecisionInsightsOrgInfoLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewDecisionInsightsOrgInfoQuery,
    GQLManualReviewDecisionInsightsOrgInfoQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewDecisionInsightsOrgInfoQuery,
    GQLManualReviewDecisionInsightsOrgInfoQueryVariables
  >(GQLManualReviewDecisionInsightsOrgInfoDocument, options);
}
// @ts-ignore
export function useGQLManualReviewDecisionInsightsOrgInfoSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewDecisionInsightsOrgInfoQuery,
    GQLManualReviewDecisionInsightsOrgInfoQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewDecisionInsightsOrgInfoQuery,
  GQLManualReviewDecisionInsightsOrgInfoQueryVariables
>;
export function useGQLManualReviewDecisionInsightsOrgInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewDecisionInsightsOrgInfoQuery,
        GQLManualReviewDecisionInsightsOrgInfoQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewDecisionInsightsOrgInfoQuery | undefined,
  GQLManualReviewDecisionInsightsOrgInfoQueryVariables
>;
export function useGQLManualReviewDecisionInsightsOrgInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewDecisionInsightsOrgInfoQuery,
        GQLManualReviewDecisionInsightsOrgInfoQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewDecisionInsightsOrgInfoQuery,
    GQLManualReviewDecisionInsightsOrgInfoQueryVariables
  >(GQLManualReviewDecisionInsightsOrgInfoDocument, options);
}
export type GQLManualReviewDecisionInsightsOrgInfoQueryHookResult = ReturnType<
  typeof useGQLManualReviewDecisionInsightsOrgInfoQuery
>;
export type GQLManualReviewDecisionInsightsOrgInfoLazyQueryHookResult =
  ReturnType<typeof useGQLManualReviewDecisionInsightsOrgInfoLazyQuery>;
export type GQLManualReviewDecisionInsightsOrgInfoSuspenseQueryHookResult =
  ReturnType<typeof useGQLManualReviewDecisionInsightsOrgInfoSuspenseQuery>;
export type GQLManualReviewDecisionInsightsOrgInfoQueryResult =
  Apollo.QueryResult<
    GQLManualReviewDecisionInsightsOrgInfoQuery,
    GQLManualReviewDecisionInsightsOrgInfoQueryVariables
  >;
export const GQLGetDecisionCountsDocument = gql`
  query getDecisionCounts($input: GetDecisionCountInput!) {
    getDecisionCounts(input: $input) {
      count
      time
      type
      action_id
      policy_id
      queue_id
      reviewer_id
    }
  }
`;

/**
 * __useGQLGetDecisionCountsQuery__
 *
 * To run a query within a React component, call `useGQLGetDecisionCountsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetDecisionCountsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetDecisionCountsQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLGetDecisionCountsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetDecisionCountsQuery,
    GQLGetDecisionCountsQueryVariables
  > &
    (
      | { variables: GQLGetDecisionCountsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetDecisionCountsQuery,
    GQLGetDecisionCountsQueryVariables
  >(GQLGetDecisionCountsDocument, options);
}
export function useGQLGetDecisionCountsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetDecisionCountsQuery,
    GQLGetDecisionCountsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetDecisionCountsQuery,
    GQLGetDecisionCountsQueryVariables
  >(GQLGetDecisionCountsDocument, options);
}
// @ts-ignore
export function useGQLGetDecisionCountsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetDecisionCountsQuery,
    GQLGetDecisionCountsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetDecisionCountsQuery,
  GQLGetDecisionCountsQueryVariables
>;
export function useGQLGetDecisionCountsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetDecisionCountsQuery,
        GQLGetDecisionCountsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetDecisionCountsQuery | undefined,
  GQLGetDecisionCountsQueryVariables
>;
export function useGQLGetDecisionCountsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetDecisionCountsQuery,
        GQLGetDecisionCountsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetDecisionCountsQuery,
    GQLGetDecisionCountsQueryVariables
  >(GQLGetDecisionCountsDocument, options);
}
export type GQLGetDecisionCountsQueryHookResult = ReturnType<
  typeof useGQLGetDecisionCountsQuery
>;
export type GQLGetDecisionCountsLazyQueryHookResult = ReturnType<
  typeof useGQLGetDecisionCountsLazyQuery
>;
export type GQLGetDecisionCountsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetDecisionCountsSuspenseQuery
>;
export type GQLGetDecisionCountsQueryResult = Apollo.QueryResult<
  GQLGetDecisionCountsQuery,
  GQLGetDecisionCountsQueryVariables
>;
export const GQLGetJobCreationCountsDocument = gql`
  query getJobCreationCounts($input: GetJobCreationCountInput!) {
    getJobCreationCounts(input: $input) {
      count
      time
      policyId
      queueId
      itemTypeId
      ruleId
      source
    }
  }
`;

/**
 * __useGQLGetJobCreationCountsQuery__
 *
 * To run a query within a React component, call `useGQLGetJobCreationCountsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetJobCreationCountsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetJobCreationCountsQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLGetJobCreationCountsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetJobCreationCountsQuery,
    GQLGetJobCreationCountsQueryVariables
  > &
    (
      | { variables: GQLGetJobCreationCountsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetJobCreationCountsQuery,
    GQLGetJobCreationCountsQueryVariables
  >(GQLGetJobCreationCountsDocument, options);
}
export function useGQLGetJobCreationCountsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetJobCreationCountsQuery,
    GQLGetJobCreationCountsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetJobCreationCountsQuery,
    GQLGetJobCreationCountsQueryVariables
  >(GQLGetJobCreationCountsDocument, options);
}
// @ts-ignore
export function useGQLGetJobCreationCountsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetJobCreationCountsQuery,
    GQLGetJobCreationCountsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetJobCreationCountsQuery,
  GQLGetJobCreationCountsQueryVariables
>;
export function useGQLGetJobCreationCountsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetJobCreationCountsQuery,
        GQLGetJobCreationCountsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetJobCreationCountsQuery | undefined,
  GQLGetJobCreationCountsQueryVariables
>;
export function useGQLGetJobCreationCountsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetJobCreationCountsQuery,
        GQLGetJobCreationCountsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetJobCreationCountsQuery,
    GQLGetJobCreationCountsQueryVariables
  >(GQLGetJobCreationCountsDocument, options);
}
export type GQLGetJobCreationCountsQueryHookResult = ReturnType<
  typeof useGQLGetJobCreationCountsQuery
>;
export type GQLGetJobCreationCountsLazyQueryHookResult = ReturnType<
  typeof useGQLGetJobCreationCountsLazyQuery
>;
export type GQLGetJobCreationCountsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetJobCreationCountsSuspenseQuery
>;
export type GQLGetJobCreationCountsQueryResult = Apollo.QueryResult<
  GQLGetJobCreationCountsQuery,
  GQLGetJobCreationCountsQueryVariables
>;
export const GQLGetResolvedJobCountsDocument = gql`
  query getResolvedJobCounts($input: GetResolvedJobCountInput!) {
    getResolvedJobCounts(input: $input) {
      count
      time
      reviewerId
      queueId
    }
  }
`;

/**
 * __useGQLGetResolvedJobCountsQuery__
 *
 * To run a query within a React component, call `useGQLGetResolvedJobCountsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetResolvedJobCountsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetResolvedJobCountsQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLGetResolvedJobCountsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetResolvedJobCountsQuery,
    GQLGetResolvedJobCountsQueryVariables
  > &
    (
      | { variables: GQLGetResolvedJobCountsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetResolvedJobCountsQuery,
    GQLGetResolvedJobCountsQueryVariables
  >(GQLGetResolvedJobCountsDocument, options);
}
export function useGQLGetResolvedJobCountsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetResolvedJobCountsQuery,
    GQLGetResolvedJobCountsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetResolvedJobCountsQuery,
    GQLGetResolvedJobCountsQueryVariables
  >(GQLGetResolvedJobCountsDocument, options);
}
// @ts-ignore
export function useGQLGetResolvedJobCountsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetResolvedJobCountsQuery,
    GQLGetResolvedJobCountsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetResolvedJobCountsQuery,
  GQLGetResolvedJobCountsQueryVariables
>;
export function useGQLGetResolvedJobCountsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetResolvedJobCountsQuery,
        GQLGetResolvedJobCountsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetResolvedJobCountsQuery | undefined,
  GQLGetResolvedJobCountsQueryVariables
>;
export function useGQLGetResolvedJobCountsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetResolvedJobCountsQuery,
        GQLGetResolvedJobCountsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetResolvedJobCountsQuery,
    GQLGetResolvedJobCountsQueryVariables
  >(GQLGetResolvedJobCountsDocument, options);
}
export type GQLGetResolvedJobCountsQueryHookResult = ReturnType<
  typeof useGQLGetResolvedJobCountsQuery
>;
export type GQLGetResolvedJobCountsLazyQueryHookResult = ReturnType<
  typeof useGQLGetResolvedJobCountsLazyQuery
>;
export type GQLGetResolvedJobCountsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetResolvedJobCountsSuspenseQuery
>;
export type GQLGetResolvedJobCountsQueryResult = Apollo.QueryResult<
  GQLGetResolvedJobCountsQuery,
  GQLGetResolvedJobCountsQueryVariables
>;
export const GQLGetSkippedJobCountsDocument = gql`
  query getSkippedJobCounts($input: GetSkippedJobCountInput!) {
    getSkippedJobCounts(input: $input) {
      count
      time
      reviewerId
      queueId
    }
  }
`;

/**
 * __useGQLGetSkippedJobCountsQuery__
 *
 * To run a query within a React component, call `useGQLGetSkippedJobCountsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetSkippedJobCountsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetSkippedJobCountsQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLGetSkippedJobCountsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetSkippedJobCountsQuery,
    GQLGetSkippedJobCountsQueryVariables
  > &
    (
      | { variables: GQLGetSkippedJobCountsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetSkippedJobCountsQuery,
    GQLGetSkippedJobCountsQueryVariables
  >(GQLGetSkippedJobCountsDocument, options);
}
export function useGQLGetSkippedJobCountsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetSkippedJobCountsQuery,
    GQLGetSkippedJobCountsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetSkippedJobCountsQuery,
    GQLGetSkippedJobCountsQueryVariables
  >(GQLGetSkippedJobCountsDocument, options);
}
// @ts-ignore
export function useGQLGetSkippedJobCountsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetSkippedJobCountsQuery,
    GQLGetSkippedJobCountsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetSkippedJobCountsQuery,
  GQLGetSkippedJobCountsQueryVariables
>;
export function useGQLGetSkippedJobCountsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetSkippedJobCountsQuery,
        GQLGetSkippedJobCountsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetSkippedJobCountsQuery | undefined,
  GQLGetSkippedJobCountsQueryVariables
>;
export function useGQLGetSkippedJobCountsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetSkippedJobCountsQuery,
        GQLGetSkippedJobCountsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetSkippedJobCountsQuery,
    GQLGetSkippedJobCountsQueryVariables
  >(GQLGetSkippedJobCountsDocument, options);
}
export type GQLGetSkippedJobCountsQueryHookResult = ReturnType<
  typeof useGQLGetSkippedJobCountsQuery
>;
export type GQLGetSkippedJobCountsLazyQueryHookResult = ReturnType<
  typeof useGQLGetSkippedJobCountsLazyQuery
>;
export type GQLGetSkippedJobCountsSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetSkippedJobCountsSuspenseQuery
>;
export type GQLGetSkippedJobCountsQueryResult = Apollo.QueryResult<
  GQLGetSkippedJobCountsQuery,
  GQLGetSkippedJobCountsQueryVariables
>;
export const GQLManualReviewDecisionInsightsFilterByInfoDocument = gql`
  query ManualReviewDecisionInsightsFilterByInfo {
    myOrg {
      actions {
        ... on ActionBase {
          id
          name
        }
      }
      itemTypes {
        ... on ItemTypeBase {
          id
          name
        }
      }
      users {
        id
        firstName
        lastName
      }
      policies {
        id
        name
      }
      mrtQueues {
        id
        name
      }
      rules {
        ... on Rule {
          id
          name
        }
      }
    }
  }
`;

/**
 * __useGQLManualReviewDecisionInsightsFilterByInfoQuery__
 *
 * To run a query within a React component, call `useGQLManualReviewDecisionInsightsFilterByInfoQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManualReviewDecisionInsightsFilterByInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManualReviewDecisionInsightsFilterByInfoQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLManualReviewDecisionInsightsFilterByInfoQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManualReviewDecisionInsightsFilterByInfoQuery,
    GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLManualReviewDecisionInsightsFilterByInfoQuery,
    GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
  >(GQLManualReviewDecisionInsightsFilterByInfoDocument, options);
}
export function useGQLManualReviewDecisionInsightsFilterByInfoLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManualReviewDecisionInsightsFilterByInfoQuery,
    GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLManualReviewDecisionInsightsFilterByInfoQuery,
    GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
  >(GQLManualReviewDecisionInsightsFilterByInfoDocument, options);
}
// @ts-ignore
export function useGQLManualReviewDecisionInsightsFilterByInfoSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManualReviewDecisionInsightsFilterByInfoQuery,
    GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewDecisionInsightsFilterByInfoQuery,
  GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
>;
export function useGQLManualReviewDecisionInsightsFilterByInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewDecisionInsightsFilterByInfoQuery,
        GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManualReviewDecisionInsightsFilterByInfoQuery | undefined,
  GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
>;
export function useGQLManualReviewDecisionInsightsFilterByInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManualReviewDecisionInsightsFilterByInfoQuery,
        GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManualReviewDecisionInsightsFilterByInfoQuery,
    GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
  >(GQLManualReviewDecisionInsightsFilterByInfoDocument, options);
}
export type GQLManualReviewDecisionInsightsFilterByInfoQueryHookResult =
  ReturnType<typeof useGQLManualReviewDecisionInsightsFilterByInfoQuery>;
export type GQLManualReviewDecisionInsightsFilterByInfoLazyQueryHookResult =
  ReturnType<typeof useGQLManualReviewDecisionInsightsFilterByInfoLazyQuery>;
export type GQLManualReviewDecisionInsightsFilterByInfoSuspenseQueryHookResult =
  ReturnType<
    typeof useGQLManualReviewDecisionInsightsFilterByInfoSuspenseQuery
  >;
export type GQLManualReviewDecisionInsightsFilterByInfoQueryResult =
  Apollo.QueryResult<
    GQLManualReviewDecisionInsightsFilterByInfoQuery,
    GQLManualReviewDecisionInsightsFilterByInfoQueryVariables
  >;
export const GQLAllNcmecReportsDocument = gql`
  query AllNCMECReports {
    myOrg {
      hasNCMECReportingEnabled
      ncmecReports {
        ...NCMECReportValues
      }
      failedNcmecSubmissions {
        ...NcmecFailedSubmissionValues
      }
      users {
        id
        firstName
        lastName
      }
    }
  }
  ${GQLNcmecReportValuesFragmentDoc}
  ${GQLNcmecFailedSubmissionValuesFragmentDoc}
`;

/**
 * __useGQLAllNcmecReportsQuery__
 *
 * To run a query within a React component, call `useGQLAllNcmecReportsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLAllNcmecReportsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLAllNcmecReportsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLAllNcmecReportsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLAllNcmecReportsQuery,
    GQLAllNcmecReportsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLAllNcmecReportsQuery,
    GQLAllNcmecReportsQueryVariables
  >(GQLAllNcmecReportsDocument, options);
}
export function useGQLAllNcmecReportsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLAllNcmecReportsQuery,
    GQLAllNcmecReportsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLAllNcmecReportsQuery,
    GQLAllNcmecReportsQueryVariables
  >(GQLAllNcmecReportsDocument, options);
}
// @ts-ignore
export function useGQLAllNcmecReportsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLAllNcmecReportsQuery,
    GQLAllNcmecReportsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLAllNcmecReportsQuery,
  GQLAllNcmecReportsQueryVariables
>;
export function useGQLAllNcmecReportsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLAllNcmecReportsQuery,
        GQLAllNcmecReportsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLAllNcmecReportsQuery | undefined,
  GQLAllNcmecReportsQueryVariables
>;
export function useGQLAllNcmecReportsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLAllNcmecReportsQuery,
        GQLAllNcmecReportsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLAllNcmecReportsQuery,
    GQLAllNcmecReportsQueryVariables
  >(GQLAllNcmecReportsDocument, options);
}
export type GQLAllNcmecReportsQueryHookResult = ReturnType<
  typeof useGQLAllNcmecReportsQuery
>;
export type GQLAllNcmecReportsLazyQueryHookResult = ReturnType<
  typeof useGQLAllNcmecReportsLazyQuery
>;
export type GQLAllNcmecReportsSuspenseQueryHookResult = ReturnType<
  typeof useGQLAllNcmecReportsSuspenseQuery
>;
export type GQLAllNcmecReportsQueryResult = Apollo.QueryResult<
  GQLAllNcmecReportsQuery,
  GQLAllNcmecReportsQueryVariables
>;
export const GQLPermissionsDocument = gql`
  query Permissions {
    me {
      permissions
    }
  }
`;

/**
 * __useGQLPermissionsQuery__
 *
 * To run a query within a React component, call `useGQLPermissionsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLPermissionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLPermissionsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLPermissionsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLPermissionsQuery,
    GQLPermissionsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLPermissionsQuery, GQLPermissionsQueryVariables>(
    GQLPermissionsDocument,
    options,
  );
}
export function useGQLPermissionsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLPermissionsQuery,
    GQLPermissionsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLPermissionsQuery, GQLPermissionsQueryVariables>(
    GQLPermissionsDocument,
    options,
  );
}
// @ts-ignore
export function useGQLPermissionsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLPermissionsQuery,
    GQLPermissionsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLPermissionsQuery,
  GQLPermissionsQueryVariables
>;
export function useGQLPermissionsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPermissionsQuery,
        GQLPermissionsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLPermissionsQuery | undefined,
  GQLPermissionsQueryVariables
>;
export function useGQLPermissionsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPermissionsQuery,
        GQLPermissionsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLPermissionsQuery,
    GQLPermissionsQueryVariables
  >(GQLPermissionsDocument, options);
}
export type GQLPermissionsQueryHookResult = ReturnType<
  typeof useGQLPermissionsQuery
>;
export type GQLPermissionsLazyQueryHookResult = ReturnType<
  typeof useGQLPermissionsLazyQuery
>;
export type GQLPermissionsSuspenseQueryHookResult = ReturnType<
  typeof useGQLPermissionsSuspenseQuery
>;
export type GQLPermissionsQueryResult = Apollo.QueryResult<
  GQLPermissionsQuery,
  GQLPermissionsQueryVariables
>;
export const GQLGetNcmecReportDocument = gql`
  query GetNCMECReport($reportId: ID!) {
    ncmecReportById(reportId: $reportId) {
      ...NCMECReportValues
    }
  }
  ${GQLNcmecReportValuesFragmentDoc}
`;

/**
 * __useGQLGetNcmecReportQuery__
 *
 * To run a query within a React component, call `useGQLGetNcmecReportQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetNcmecReportQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetNcmecReportQuery({
 *   variables: {
 *      reportId: // value for 'reportId'
 *   },
 * });
 */
export function useGQLGetNcmecReportQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetNcmecReportQuery,
    GQLGetNcmecReportQueryVariables
  > &
    (
      | { variables: GQLGetNcmecReportQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetNcmecReportQuery,
    GQLGetNcmecReportQueryVariables
  >(GQLGetNcmecReportDocument, options);
}
export function useGQLGetNcmecReportLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetNcmecReportQuery,
    GQLGetNcmecReportQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetNcmecReportQuery,
    GQLGetNcmecReportQueryVariables
  >(GQLGetNcmecReportDocument, options);
}
// @ts-ignore
export function useGQLGetNcmecReportSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetNcmecReportQuery,
    GQLGetNcmecReportQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetNcmecReportQuery,
  GQLGetNcmecReportQueryVariables
>;
export function useGQLGetNcmecReportSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetNcmecReportQuery,
        GQLGetNcmecReportQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetNcmecReportQuery | undefined,
  GQLGetNcmecReportQueryVariables
>;
export function useGQLGetNcmecReportSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetNcmecReportQuery,
        GQLGetNcmecReportQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetNcmecReportQuery,
    GQLGetNcmecReportQueryVariables
  >(GQLGetNcmecReportDocument, options);
}
export type GQLGetNcmecReportQueryHookResult = ReturnType<
  typeof useGQLGetNcmecReportQuery
>;
export type GQLGetNcmecReportLazyQueryHookResult = ReturnType<
  typeof useGQLGetNcmecReportLazyQuery
>;
export type GQLGetNcmecReportSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetNcmecReportSuspenseQuery
>;
export type GQLGetNcmecReportQueryResult = Apollo.QueryResult<
  GQLGetNcmecReportQuery,
  GQLGetNcmecReportQueryVariables
>;
export const GQLRetryNcmecSubmissionDocument = gql`
  mutation RetryNcmecSubmission($decisionId: ID!) {
    retryNcmecSubmission(decisionId: $decisionId) {
      success
      error
    }
  }
`;
export type GQLRetryNcmecSubmissionMutationFn = Apollo.MutationFunction<
  GQLRetryNcmecSubmissionMutation,
  GQLRetryNcmecSubmissionMutationVariables
>;

/**
 * __useGQLRetryNcmecSubmissionMutation__
 *
 * To run a mutation, you first call `useGQLRetryNcmecSubmissionMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLRetryNcmecSubmissionMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlRetryNcmecSubmissionMutation, { data, loading, error }] = useGQLRetryNcmecSubmissionMutation({
 *   variables: {
 *      decisionId: // value for 'decisionId'
 *   },
 * });
 */
export function useGQLRetryNcmecSubmissionMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLRetryNcmecSubmissionMutation,
    GQLRetryNcmecSubmissionMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLRetryNcmecSubmissionMutation,
    GQLRetryNcmecSubmissionMutationVariables
  >(GQLRetryNcmecSubmissionDocument, options);
}
export type GQLRetryNcmecSubmissionMutationHookResult = ReturnType<
  typeof useGQLRetryNcmecSubmissionMutation
>;
export type GQLRetryNcmecSubmissionMutationResult =
  Apollo.MutationResult<GQLRetryNcmecSubmissionMutation>;
export type GQLRetryNcmecSubmissionMutationOptions = Apollo.BaseMutationOptions<
  GQLRetryNcmecSubmissionMutation,
  GQLRetryNcmecSubmissionMutationVariables
>;
export const GQLIsWarehouseAvailableDocument = gql`
  query IsWarehouseAvailable {
    isWarehouseAvailable
  }
`;

/**
 * __useGQLIsWarehouseAvailableQuery__
 *
 * To run a query within a React component, call `useGQLIsWarehouseAvailableQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLIsWarehouseAvailableQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLIsWarehouseAvailableQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLIsWarehouseAvailableQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLIsWarehouseAvailableQuery,
    GQLIsWarehouseAvailableQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLIsWarehouseAvailableQuery,
    GQLIsWarehouseAvailableQueryVariables
  >(GQLIsWarehouseAvailableDocument, options);
}
export function useGQLIsWarehouseAvailableLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLIsWarehouseAvailableQuery,
    GQLIsWarehouseAvailableQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLIsWarehouseAvailableQuery,
    GQLIsWarehouseAvailableQueryVariables
  >(GQLIsWarehouseAvailableDocument, options);
}
// @ts-ignore
export function useGQLIsWarehouseAvailableSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLIsWarehouseAvailableQuery,
    GQLIsWarehouseAvailableQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLIsWarehouseAvailableQuery,
  GQLIsWarehouseAvailableQueryVariables
>;
export function useGQLIsWarehouseAvailableSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLIsWarehouseAvailableQuery,
        GQLIsWarehouseAvailableQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLIsWarehouseAvailableQuery | undefined,
  GQLIsWarehouseAvailableQueryVariables
>;
export function useGQLIsWarehouseAvailableSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLIsWarehouseAvailableQuery,
        GQLIsWarehouseAvailableQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLIsWarehouseAvailableQuery,
    GQLIsWarehouseAvailableQueryVariables
  >(GQLIsWarehouseAvailableDocument, options);
}
export type GQLIsWarehouseAvailableQueryHookResult = ReturnType<
  typeof useGQLIsWarehouseAvailableQuery
>;
export type GQLIsWarehouseAvailableLazyQueryHookResult = ReturnType<
  typeof useGQLIsWarehouseAvailableLazyQuery
>;
export type GQLIsWarehouseAvailableSuspenseQueryHookResult = ReturnType<
  typeof useGQLIsWarehouseAvailableSuspenseQuery
>;
export type GQLIsWarehouseAvailableQueryResult = Apollo.QueryResult<
  GQLIsWarehouseAvailableQuery,
  GQLIsWarehouseAvailableQueryVariables
>;
export const GQLTotalPendingJobsDocument = gql`
  query TotalPendingJobs {
    getTotalPendingJobsCount
  }
`;

/**
 * __useGQLTotalPendingJobsQuery__
 *
 * To run a query within a React component, call `useGQLTotalPendingJobsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLTotalPendingJobsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLTotalPendingJobsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLTotalPendingJobsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLTotalPendingJobsQuery,
    GQLTotalPendingJobsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLTotalPendingJobsQuery,
    GQLTotalPendingJobsQueryVariables
  >(GQLTotalPendingJobsDocument, options);
}
export function useGQLTotalPendingJobsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLTotalPendingJobsQuery,
    GQLTotalPendingJobsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLTotalPendingJobsQuery,
    GQLTotalPendingJobsQueryVariables
  >(GQLTotalPendingJobsDocument, options);
}
// @ts-ignore
export function useGQLTotalPendingJobsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLTotalPendingJobsQuery,
    GQLTotalPendingJobsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLTotalPendingJobsQuery,
  GQLTotalPendingJobsQueryVariables
>;
export function useGQLTotalPendingJobsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLTotalPendingJobsQuery,
        GQLTotalPendingJobsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLTotalPendingJobsQuery | undefined,
  GQLTotalPendingJobsQueryVariables
>;
export function useGQLTotalPendingJobsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLTotalPendingJobsQuery,
        GQLTotalPendingJobsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLTotalPendingJobsQuery,
    GQLTotalPendingJobsQueryVariables
  >(GQLTotalPendingJobsDocument, options);
}
export type GQLTotalPendingJobsQueryHookResult = ReturnType<
  typeof useGQLTotalPendingJobsQuery
>;
export type GQLTotalPendingJobsLazyQueryHookResult = ReturnType<
  typeof useGQLTotalPendingJobsLazyQuery
>;
export type GQLTotalPendingJobsSuspenseQueryHookResult = ReturnType<
  typeof useGQLTotalPendingJobsSuspenseQuery
>;
export type GQLTotalPendingJobsQueryResult = Apollo.QueryResult<
  GQLTotalPendingJobsQuery,
  GQLTotalPendingJobsQueryVariables
>;
export const GQLRuleNamesAndIdsDocument = gql`
  query RuleNamesAndIds {
    myOrg {
      rules {
        id
        name
      }
    }
  }
`;

/**
 * __useGQLRuleNamesAndIdsQuery__
 *
 * To run a query within a React component, call `useGQLRuleNamesAndIdsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRuleNamesAndIdsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRuleNamesAndIdsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLRuleNamesAndIdsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLRuleNamesAndIdsQuery,
    GQLRuleNamesAndIdsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLRuleNamesAndIdsQuery,
    GQLRuleNamesAndIdsQueryVariables
  >(GQLRuleNamesAndIdsDocument, options);
}
export function useGQLRuleNamesAndIdsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRuleNamesAndIdsQuery,
    GQLRuleNamesAndIdsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLRuleNamesAndIdsQuery,
    GQLRuleNamesAndIdsQueryVariables
  >(GQLRuleNamesAndIdsDocument, options);
}
// @ts-ignore
export function useGQLRuleNamesAndIdsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRuleNamesAndIdsQuery,
    GQLRuleNamesAndIdsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRuleNamesAndIdsQuery,
  GQLRuleNamesAndIdsQueryVariables
>;
export function useGQLRuleNamesAndIdsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRuleNamesAndIdsQuery,
        GQLRuleNamesAndIdsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRuleNamesAndIdsQuery | undefined,
  GQLRuleNamesAndIdsQueryVariables
>;
export function useGQLRuleNamesAndIdsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRuleNamesAndIdsQuery,
        GQLRuleNamesAndIdsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRuleNamesAndIdsQuery,
    GQLRuleNamesAndIdsQueryVariables
  >(GQLRuleNamesAndIdsDocument, options);
}
export type GQLRuleNamesAndIdsQueryHookResult = ReturnType<
  typeof useGQLRuleNamesAndIdsQuery
>;
export type GQLRuleNamesAndIdsLazyQueryHookResult = ReturnType<
  typeof useGQLRuleNamesAndIdsLazyQuery
>;
export type GQLRuleNamesAndIdsSuspenseQueryHookResult = ReturnType<
  typeof useGQLRuleNamesAndIdsSuspenseQuery
>;
export type GQLRuleNamesAndIdsQueryResult = Apollo.QueryResult<
  GQLRuleNamesAndIdsQuery,
  GQLRuleNamesAndIdsQueryVariables
>;
export const GQLDataForOverviewChartsDocument = gql`
  query DataForOverviewCharts {
    myOrg {
      users {
        id
        firstName
        lastName
      }
      rules {
        id
        name
      }
    }
  }
`;

/**
 * __useGQLDataForOverviewChartsQuery__
 *
 * To run a query within a React component, call `useGQLDataForOverviewChartsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLDataForOverviewChartsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLDataForOverviewChartsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLDataForOverviewChartsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLDataForOverviewChartsQuery,
    GQLDataForOverviewChartsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLDataForOverviewChartsQuery,
    GQLDataForOverviewChartsQueryVariables
  >(GQLDataForOverviewChartsDocument, options);
}
export function useGQLDataForOverviewChartsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLDataForOverviewChartsQuery,
    GQLDataForOverviewChartsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLDataForOverviewChartsQuery,
    GQLDataForOverviewChartsQueryVariables
  >(GQLDataForOverviewChartsDocument, options);
}
// @ts-ignore
export function useGQLDataForOverviewChartsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLDataForOverviewChartsQuery,
    GQLDataForOverviewChartsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLDataForOverviewChartsQuery,
  GQLDataForOverviewChartsQueryVariables
>;
export function useGQLDataForOverviewChartsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLDataForOverviewChartsQuery,
        GQLDataForOverviewChartsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLDataForOverviewChartsQuery | undefined,
  GQLDataForOverviewChartsQueryVariables
>;
export function useGQLDataForOverviewChartsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLDataForOverviewChartsQuery,
        GQLDataForOverviewChartsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLDataForOverviewChartsQuery,
    GQLDataForOverviewChartsQueryVariables
  >(GQLDataForOverviewChartsDocument, options);
}
export type GQLDataForOverviewChartsQueryHookResult = ReturnType<
  typeof useGQLDataForOverviewChartsQuery
>;
export type GQLDataForOverviewChartsLazyQueryHookResult = ReturnType<
  typeof useGQLDataForOverviewChartsLazyQuery
>;
export type GQLDataForOverviewChartsSuspenseQueryHookResult = ReturnType<
  typeof useGQLDataForOverviewChartsSuspenseQuery
>;
export type GQLDataForOverviewChartsQueryResult = Apollo.QueryResult<
  GQLDataForOverviewChartsQuery,
  GQLDataForOverviewChartsQueryVariables
>;
export const GQLViolationsPerPolicyDocument = gql`
  query ViolationsPerPolicy($input: TopPolicyViolationsInput!) {
    topPolicyViolations(input: $input) {
      count
      policyId
    }
  }
`;

/**
 * __useGQLViolationsPerPolicyQuery__
 *
 * To run a query within a React component, call `useGQLViolationsPerPolicyQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLViolationsPerPolicyQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLViolationsPerPolicyQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLViolationsPerPolicyQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLViolationsPerPolicyQuery,
    GQLViolationsPerPolicyQueryVariables
  > &
    (
      | { variables: GQLViolationsPerPolicyQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLViolationsPerPolicyQuery,
    GQLViolationsPerPolicyQueryVariables
  >(GQLViolationsPerPolicyDocument, options);
}
export function useGQLViolationsPerPolicyLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLViolationsPerPolicyQuery,
    GQLViolationsPerPolicyQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLViolationsPerPolicyQuery,
    GQLViolationsPerPolicyQueryVariables
  >(GQLViolationsPerPolicyDocument, options);
}
// @ts-ignore
export function useGQLViolationsPerPolicySuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLViolationsPerPolicyQuery,
    GQLViolationsPerPolicyQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLViolationsPerPolicyQuery,
  GQLViolationsPerPolicyQueryVariables
>;
export function useGQLViolationsPerPolicySuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLViolationsPerPolicyQuery,
        GQLViolationsPerPolicyQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLViolationsPerPolicyQuery | undefined,
  GQLViolationsPerPolicyQueryVariables
>;
export function useGQLViolationsPerPolicySuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLViolationsPerPolicyQuery,
        GQLViolationsPerPolicyQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLViolationsPerPolicyQuery,
    GQLViolationsPerPolicyQueryVariables
  >(GQLViolationsPerPolicyDocument, options);
}
export type GQLViolationsPerPolicyQueryHookResult = ReturnType<
  typeof useGQLViolationsPerPolicyQuery
>;
export type GQLViolationsPerPolicyLazyQueryHookResult = ReturnType<
  typeof useGQLViolationsPerPolicyLazyQuery
>;
export type GQLViolationsPerPolicySuspenseQueryHookResult = ReturnType<
  typeof useGQLViolationsPerPolicySuspenseQuery
>;
export type GQLViolationsPerPolicyQueryResult = Apollo.QueryResult<
  GQLViolationsPerPolicyQuery,
  GQLViolationsPerPolicyQueryVariables
>;
export const GQLPoliciesDocument = gql`
  query Policies {
    myOrg {
      policies {
        ...PolicyFields
      }
    }
  }
  ${GQLPolicyFieldsFragmentDoc}
`;

/**
 * __useGQLPoliciesQuery__
 *
 * To run a query within a React component, call `useGQLPoliciesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLPoliciesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLPoliciesQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLPoliciesQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLPoliciesQuery,
    GQLPoliciesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLPoliciesQuery, GQLPoliciesQueryVariables>(
    GQLPoliciesDocument,
    options,
  );
}
export function useGQLPoliciesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLPoliciesQuery,
    GQLPoliciesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLPoliciesQuery, GQLPoliciesQueryVariables>(
    GQLPoliciesDocument,
    options,
  );
}
// @ts-ignore
export function useGQLPoliciesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLPoliciesQuery,
    GQLPoliciesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLPoliciesQuery, GQLPoliciesQueryVariables>;
export function useGQLPoliciesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPoliciesQuery,
        GQLPoliciesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLPoliciesQuery | undefined,
  GQLPoliciesQueryVariables
>;
export function useGQLPoliciesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPoliciesQuery,
        GQLPoliciesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLPoliciesQuery, GQLPoliciesQueryVariables>(
    GQLPoliciesDocument,
    options,
  );
}
export type GQLPoliciesQueryHookResult = ReturnType<typeof useGQLPoliciesQuery>;
export type GQLPoliciesLazyQueryHookResult = ReturnType<
  typeof useGQLPoliciesLazyQuery
>;
export type GQLPoliciesSuspenseQueryHookResult = ReturnType<
  typeof useGQLPoliciesSuspenseQuery
>;
export type GQLPoliciesQueryResult = Apollo.QueryResult<
  GQLPoliciesQuery,
  GQLPoliciesQueryVariables
>;
export const GQLPoliciesWithModelsDocument = gql`
  query PoliciesWithModels {
    myOrg {
      policies {
        ...PolicyFields
      }
    }
    me {
      permissions
    }
  }
  ${GQLPolicyFieldsFragmentDoc}
`;

/**
 * __useGQLPoliciesWithModelsQuery__
 *
 * To run a query within a React component, call `useGQLPoliciesWithModelsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLPoliciesWithModelsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLPoliciesWithModelsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLPoliciesWithModelsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLPoliciesWithModelsQuery,
    GQLPoliciesWithModelsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLPoliciesWithModelsQuery,
    GQLPoliciesWithModelsQueryVariables
  >(GQLPoliciesWithModelsDocument, options);
}
export function useGQLPoliciesWithModelsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLPoliciesWithModelsQuery,
    GQLPoliciesWithModelsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLPoliciesWithModelsQuery,
    GQLPoliciesWithModelsQueryVariables
  >(GQLPoliciesWithModelsDocument, options);
}
// @ts-ignore
export function useGQLPoliciesWithModelsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLPoliciesWithModelsQuery,
    GQLPoliciesWithModelsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLPoliciesWithModelsQuery,
  GQLPoliciesWithModelsQueryVariables
>;
export function useGQLPoliciesWithModelsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPoliciesWithModelsQuery,
        GQLPoliciesWithModelsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLPoliciesWithModelsQuery | undefined,
  GQLPoliciesWithModelsQueryVariables
>;
export function useGQLPoliciesWithModelsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPoliciesWithModelsQuery,
        GQLPoliciesWithModelsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLPoliciesWithModelsQuery,
    GQLPoliciesWithModelsQueryVariables
  >(GQLPoliciesWithModelsDocument, options);
}
export type GQLPoliciesWithModelsQueryHookResult = ReturnType<
  typeof useGQLPoliciesWithModelsQuery
>;
export type GQLPoliciesWithModelsLazyQueryHookResult = ReturnType<
  typeof useGQLPoliciesWithModelsLazyQuery
>;
export type GQLPoliciesWithModelsSuspenseQueryHookResult = ReturnType<
  typeof useGQLPoliciesWithModelsSuspenseQuery
>;
export type GQLPoliciesWithModelsQueryResult = Apollo.QueryResult<
  GQLPoliciesWithModelsQuery,
  GQLPoliciesWithModelsQueryVariables
>;
export const GQLAddPoliciesDocument = gql`
  mutation AddPolicies($policies: [AddPolicyInput!]!) {
    addPolicies(policies: $policies) {
      policies {
        ...PolicyFields
      }
      failures
    }
  }
  ${GQLPolicyFieldsFragmentDoc}
`;
export type GQLAddPoliciesMutationFn = Apollo.MutationFunction<
  GQLAddPoliciesMutation,
  GQLAddPoliciesMutationVariables
>;

/**
 * __useGQLAddPoliciesMutation__
 *
 * To run a mutation, you first call `useGQLAddPoliciesMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLAddPoliciesMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlAddPoliciesMutation, { data, loading, error }] = useGQLAddPoliciesMutation({
 *   variables: {
 *      policies: // value for 'policies'
 *   },
 * });
 */
export function useGQLAddPoliciesMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLAddPoliciesMutation,
    GQLAddPoliciesMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLAddPoliciesMutation,
    GQLAddPoliciesMutationVariables
  >(GQLAddPoliciesDocument, options);
}
export type GQLAddPoliciesMutationHookResult = ReturnType<
  typeof useGQLAddPoliciesMutation
>;
export type GQLAddPoliciesMutationResult =
  Apollo.MutationResult<GQLAddPoliciesMutation>;
export type GQLAddPoliciesMutationOptions = Apollo.BaseMutationOptions<
  GQLAddPoliciesMutation,
  GQLAddPoliciesMutationVariables
>;
export const GQLUpdatePolicyDocument = gql`
  mutation UpdatePolicy($input: UpdatePolicyInput!) {
    updatePolicy(input: $input) {
      ...PolicyFields
    }
  }
  ${GQLPolicyFieldsFragmentDoc}
`;
export type GQLUpdatePolicyMutationFn = Apollo.MutationFunction<
  GQLUpdatePolicyMutation,
  GQLUpdatePolicyMutationVariables
>;

/**
 * __useGQLUpdatePolicyMutation__
 *
 * To run a mutation, you first call `useGQLUpdatePolicyMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdatePolicyMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdatePolicyMutation, { data, loading, error }] = useGQLUpdatePolicyMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdatePolicyMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdatePolicyMutation,
    GQLUpdatePolicyMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdatePolicyMutation,
    GQLUpdatePolicyMutationVariables
  >(GQLUpdatePolicyDocument, options);
}
export type GQLUpdatePolicyMutationHookResult = ReturnType<
  typeof useGQLUpdatePolicyMutation
>;
export type GQLUpdatePolicyMutationResult =
  Apollo.MutationResult<GQLUpdatePolicyMutation>;
export type GQLUpdatePolicyMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdatePolicyMutation,
  GQLUpdatePolicyMutationVariables
>;
export const GQLDeletePolicyDocument = gql`
  mutation DeletePolicy($id: ID!) {
    deletePolicy(id: $id)
  }
`;
export type GQLDeletePolicyMutationFn = Apollo.MutationFunction<
  GQLDeletePolicyMutation,
  GQLDeletePolicyMutationVariables
>;

/**
 * __useGQLDeletePolicyMutation__
 *
 * To run a mutation, you first call `useGQLDeletePolicyMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeletePolicyMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeletePolicyMutation, { data, loading, error }] = useGQLDeletePolicyMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeletePolicyMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeletePolicyMutation,
    GQLDeletePolicyMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeletePolicyMutation,
    GQLDeletePolicyMutationVariables
  >(GQLDeletePolicyDocument, options);
}
export type GQLDeletePolicyMutationHookResult = ReturnType<
  typeof useGQLDeletePolicyMutation
>;
export type GQLDeletePolicyMutationResult =
  Apollo.MutationResult<GQLDeletePolicyMutation>;
export type GQLDeletePolicyMutationOptions = Apollo.BaseMutationOptions<
  GQLDeletePolicyMutation,
  GQLDeletePolicyMutationVariables
>;
export const GQLIsDemoOrgDocument = gql`
  query IsDemoOrg {
    myOrg {
      isDemoOrg
    }
  }
`;

/**
 * __useGQLIsDemoOrgQuery__
 *
 * To run a query within a React component, call `useGQLIsDemoOrgQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLIsDemoOrgQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLIsDemoOrgQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLIsDemoOrgQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLIsDemoOrgQuery,
    GQLIsDemoOrgQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLIsDemoOrgQuery, GQLIsDemoOrgQueryVariables>(
    GQLIsDemoOrgDocument,
    options,
  );
}
export function useGQLIsDemoOrgLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLIsDemoOrgQuery,
    GQLIsDemoOrgQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLIsDemoOrgQuery, GQLIsDemoOrgQueryVariables>(
    GQLIsDemoOrgDocument,
    options,
  );
}
// @ts-ignore
export function useGQLIsDemoOrgSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLIsDemoOrgQuery,
    GQLIsDemoOrgQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLIsDemoOrgQuery, GQLIsDemoOrgQueryVariables>;
export function useGQLIsDemoOrgSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLIsDemoOrgQuery,
        GQLIsDemoOrgQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLIsDemoOrgQuery | undefined,
  GQLIsDemoOrgQueryVariables
>;
export function useGQLIsDemoOrgSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLIsDemoOrgQuery,
        GQLIsDemoOrgQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLIsDemoOrgQuery, GQLIsDemoOrgQueryVariables>(
    GQLIsDemoOrgDocument,
    options,
  );
}
export type GQLIsDemoOrgQueryHookResult = ReturnType<
  typeof useGQLIsDemoOrgQuery
>;
export type GQLIsDemoOrgLazyQueryHookResult = ReturnType<
  typeof useGQLIsDemoOrgLazyQuery
>;
export type GQLIsDemoOrgSuspenseQueryHookResult = ReturnType<
  typeof useGQLIsDemoOrgSuspenseQuery
>;
export type GQLIsDemoOrgQueryResult = Apollo.QueryResult<
  GQLIsDemoOrgQuery,
  GQLIsDemoOrgQueryVariables
>;
export const GQLReportingRulesDocument = gql`
  query ReportingRules {
    myOrg {
      id
      name
      reportingRules {
        id
        name
        creator {
          firstName
          lastName
        }
        status
        policies {
          name
        }
        actions {
          ... on ActionBase {
            id
            name
          }
        }
        itemTypes {
          ... on ItemTypeBase {
            id
            name
          }
        }
      }
    }
    me {
      permissions
    }
  }
`;

/**
 * __useGQLReportingRulesQuery__
 *
 * To run a query within a React component, call `useGQLReportingRulesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLReportingRulesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLReportingRulesQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLReportingRulesQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLReportingRulesQuery,
    GQLReportingRulesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLReportingRulesQuery,
    GQLReportingRulesQueryVariables
  >(GQLReportingRulesDocument, options);
}
export function useGQLReportingRulesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLReportingRulesQuery,
    GQLReportingRulesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLReportingRulesQuery,
    GQLReportingRulesQueryVariables
  >(GQLReportingRulesDocument, options);
}
// @ts-ignore
export function useGQLReportingRulesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLReportingRulesQuery,
    GQLReportingRulesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRulesQuery,
  GQLReportingRulesQueryVariables
>;
export function useGQLReportingRulesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRulesQuery,
        GQLReportingRulesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRulesQuery | undefined,
  GQLReportingRulesQueryVariables
>;
export function useGQLReportingRulesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRulesQuery,
        GQLReportingRulesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLReportingRulesQuery,
    GQLReportingRulesQueryVariables
  >(GQLReportingRulesDocument, options);
}
export type GQLReportingRulesQueryHookResult = ReturnType<
  typeof useGQLReportingRulesQuery
>;
export type GQLReportingRulesLazyQueryHookResult = ReturnType<
  typeof useGQLReportingRulesLazyQuery
>;
export type GQLReportingRulesSuspenseQueryHookResult = ReturnType<
  typeof useGQLReportingRulesSuspenseQuery
>;
export type GQLReportingRulesQueryResult = Apollo.QueryResult<
  GQLReportingRulesQuery,
  GQLReportingRulesQueryVariables
>;
export const GQLCreateReportingRuleDocument = gql`
  mutation CreateReportingRule($input: CreateReportingRuleInput!) {
    createReportingRule(input: $input) {
      ... on MutateReportingRuleSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLCreateReportingRuleMutationFn = Apollo.MutationFunction<
  GQLCreateReportingRuleMutation,
  GQLCreateReportingRuleMutationVariables
>;

/**
 * __useGQLCreateReportingRuleMutation__
 *
 * To run a mutation, you first call `useGQLCreateReportingRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateReportingRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateReportingRuleMutation, { data, loading, error }] = useGQLCreateReportingRuleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateReportingRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateReportingRuleMutation,
    GQLCreateReportingRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateReportingRuleMutation,
    GQLCreateReportingRuleMutationVariables
  >(GQLCreateReportingRuleDocument, options);
}
export type GQLCreateReportingRuleMutationHookResult = ReturnType<
  typeof useGQLCreateReportingRuleMutation
>;
export type GQLCreateReportingRuleMutationResult =
  Apollo.MutationResult<GQLCreateReportingRuleMutation>;
export type GQLCreateReportingRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateReportingRuleMutation,
  GQLCreateReportingRuleMutationVariables
>;
export const GQLUpdateReportingRuleDocument = gql`
  mutation UpdateReportingRule($input: UpdateReportingRuleInput!) {
    updateReportingRule(input: $input) {
      ... on MutateReportingRuleSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLUpdateReportingRuleMutationFn = Apollo.MutationFunction<
  GQLUpdateReportingRuleMutation,
  GQLUpdateReportingRuleMutationVariables
>;

/**
 * __useGQLUpdateReportingRuleMutation__
 *
 * To run a mutation, you first call `useGQLUpdateReportingRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateReportingRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateReportingRuleMutation, { data, loading, error }] = useGQLUpdateReportingRuleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateReportingRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateReportingRuleMutation,
    GQLUpdateReportingRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateReportingRuleMutation,
    GQLUpdateReportingRuleMutationVariables
  >(GQLUpdateReportingRuleDocument, options);
}
export type GQLUpdateReportingRuleMutationHookResult = ReturnType<
  typeof useGQLUpdateReportingRuleMutation
>;
export type GQLUpdateReportingRuleMutationResult =
  Apollo.MutationResult<GQLUpdateReportingRuleMutation>;
export type GQLUpdateReportingRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateReportingRuleMutation,
  GQLUpdateReportingRuleMutationVariables
>;
export const GQLDeleteReportingRuleDocument = gql`
  mutation DeleteReportingRule($id: ID!) {
    deleteReportingRule(id: $id)
  }
`;
export type GQLDeleteReportingRuleMutationFn = Apollo.MutationFunction<
  GQLDeleteReportingRuleMutation,
  GQLDeleteReportingRuleMutationVariables
>;

/**
 * __useGQLDeleteReportingRuleMutation__
 *
 * To run a mutation, you first call `useGQLDeleteReportingRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteReportingRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteReportingRuleMutation, { data, loading, error }] = useGQLDeleteReportingRuleMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteReportingRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteReportingRuleMutation,
    GQLDeleteReportingRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteReportingRuleMutation,
    GQLDeleteReportingRuleMutationVariables
  >(GQLDeleteReportingRuleDocument, options);
}
export type GQLDeleteReportingRuleMutationHookResult = ReturnType<
  typeof useGQLDeleteReportingRuleMutation
>;
export type GQLDeleteReportingRuleMutationResult =
  Apollo.MutationResult<GQLDeleteReportingRuleMutation>;
export type GQLDeleteReportingRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteReportingRuleMutation,
  GQLDeleteReportingRuleMutationVariables
>;
export const GQLRulesDocument = gql`
  query Rules {
    myOrg {
      id
      name
      rules {
        conditionSet {
          ...ConditionSetFields
        }
        ... on ContentRule {
          ...RulesDashboardRuleFieldsFragment
          itemTypes {
            ... on ItemTypeBase {
              id
              name
            }
          }
        }
        ... on UserRule {
          ...RulesDashboardRuleFieldsFragment
        }
      }
    }
    me {
      permissions
      favoriteRules {
        id
      }
    }
  }
  ${GQLConditionSetFieldsFragmentDoc}
  ${GQLRulesDashboardRuleFieldsFragmentFragmentDoc}
`;

/**
 * __useGQLRulesQuery__
 *
 * To run a query within a React component, call `useGQLRulesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRulesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRulesQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLRulesQuery(
  baseOptions?: Apollo.QueryHookOptions<GQLRulesQuery, GQLRulesQueryVariables>,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLRulesQuery, GQLRulesQueryVariables>(
    GQLRulesDocument,
    options,
  );
}
export function useGQLRulesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRulesQuery,
    GQLRulesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLRulesQuery, GQLRulesQueryVariables>(
    GQLRulesDocument,
    options,
  );
}
// @ts-ignore
export function useGQLRulesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRulesQuery,
    GQLRulesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLRulesQuery, GQLRulesQueryVariables>;
export function useGQLRulesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<GQLRulesQuery, GQLRulesQueryVariables>,
): Apollo.UseSuspenseQueryResult<
  GQLRulesQuery | undefined,
  GQLRulesQueryVariables
>;
export function useGQLRulesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<GQLRulesQuery, GQLRulesQueryVariables>,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLRulesQuery, GQLRulesQueryVariables>(
    GQLRulesDocument,
    options,
  );
}
export type GQLRulesQueryHookResult = ReturnType<typeof useGQLRulesQuery>;
export type GQLRulesLazyQueryHookResult = ReturnType<
  typeof useGQLRulesLazyQuery
>;
export type GQLRulesSuspenseQueryHookResult = ReturnType<
  typeof useGQLRulesSuspenseQuery
>;
export type GQLRulesQueryResult = Apollo.QueryResult<
  GQLRulesQuery,
  GQLRulesQueryVariables
>;
export const GQLDeleteRuleDocument = gql`
  mutation DeleteRule($id: ID!) {
    deleteRule(id: $id)
  }
`;
export type GQLDeleteRuleMutationFn = Apollo.MutationFunction<
  GQLDeleteRuleMutation,
  GQLDeleteRuleMutationVariables
>;

/**
 * __useGQLDeleteRuleMutation__
 *
 * To run a mutation, you first call `useGQLDeleteRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteRuleMutation, { data, loading, error }] = useGQLDeleteRuleMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteRuleMutation,
    GQLDeleteRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteRuleMutation,
    GQLDeleteRuleMutationVariables
  >(GQLDeleteRuleDocument, options);
}
export type GQLDeleteRuleMutationHookResult = ReturnType<
  typeof useGQLDeleteRuleMutation
>;
export type GQLDeleteRuleMutationResult =
  Apollo.MutationResult<GQLDeleteRuleMutation>;
export type GQLDeleteRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteRuleMutation,
  GQLDeleteRuleMutationVariables
>;
export const GQLAddFavoriteRuleDocument = gql`
  mutation AddFavoriteRule($ruleId: ID!) {
    addFavoriteRule(ruleId: $ruleId) {
      ... on AddFavoriteRuleSuccessResponse {
        _
      }
    }
  }
`;
export type GQLAddFavoriteRuleMutationFn = Apollo.MutationFunction<
  GQLAddFavoriteRuleMutation,
  GQLAddFavoriteRuleMutationVariables
>;

/**
 * __useGQLAddFavoriteRuleMutation__
 *
 * To run a mutation, you first call `useGQLAddFavoriteRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLAddFavoriteRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlAddFavoriteRuleMutation, { data, loading, error }] = useGQLAddFavoriteRuleMutation({
 *   variables: {
 *      ruleId: // value for 'ruleId'
 *   },
 * });
 */
export function useGQLAddFavoriteRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLAddFavoriteRuleMutation,
    GQLAddFavoriteRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLAddFavoriteRuleMutation,
    GQLAddFavoriteRuleMutationVariables
  >(GQLAddFavoriteRuleDocument, options);
}
export type GQLAddFavoriteRuleMutationHookResult = ReturnType<
  typeof useGQLAddFavoriteRuleMutation
>;
export type GQLAddFavoriteRuleMutationResult =
  Apollo.MutationResult<GQLAddFavoriteRuleMutation>;
export type GQLAddFavoriteRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLAddFavoriteRuleMutation,
  GQLAddFavoriteRuleMutationVariables
>;
export const GQLRemoveFavoriteRuleDocument = gql`
  mutation RemoveFavoriteRule($ruleId: ID!) {
    removeFavoriteRule(ruleId: $ruleId) {
      ... on RemoveFavoriteRuleSuccessResponse {
        _
      }
    }
  }
`;
export type GQLRemoveFavoriteRuleMutationFn = Apollo.MutationFunction<
  GQLRemoveFavoriteRuleMutation,
  GQLRemoveFavoriteRuleMutationVariables
>;

/**
 * __useGQLRemoveFavoriteRuleMutation__
 *
 * To run a mutation, you first call `useGQLRemoveFavoriteRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLRemoveFavoriteRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlRemoveFavoriteRuleMutation, { data, loading, error }] = useGQLRemoveFavoriteRuleMutation({
 *   variables: {
 *      ruleId: // value for 'ruleId'
 *   },
 * });
 */
export function useGQLRemoveFavoriteRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLRemoveFavoriteRuleMutation,
    GQLRemoveFavoriteRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLRemoveFavoriteRuleMutation,
    GQLRemoveFavoriteRuleMutationVariables
  >(GQLRemoveFavoriteRuleDocument, options);
}
export type GQLRemoveFavoriteRuleMutationHookResult = ReturnType<
  typeof useGQLRemoveFavoriteRuleMutation
>;
export type GQLRemoveFavoriteRuleMutationResult =
  Apollo.MutationResult<GQLRemoveFavoriteRuleMutation>;
export type GQLRemoveFavoriteRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLRemoveFavoriteRuleMutation,
  GQLRemoveFavoriteRuleMutationVariables
>;
export const GQLRulesDashboardInsightsDocument = gql`
  query RulesDashboardInsights {
    allRuleInsights {
      actionedSubmissionsByPolicyByDay {
        date
        count
        policy {
          name
          id
        }
      }
      actionedSubmissionsByTagByDay {
        date
        count
        tag
      }
      actionedSubmissionsByActionByDay {
        date
        count
        action {
          name
        }
      }
      actionedSubmissionsByDay {
        date
        count
      }
      totalSubmissionsByDay {
        date
        count
      }
    }
  }
`;

/**
 * __useGQLRulesDashboardInsightsQuery__
 *
 * To run a query within a React component, call `useGQLRulesDashboardInsightsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRulesDashboardInsightsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRulesDashboardInsightsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLRulesDashboardInsightsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLRulesDashboardInsightsQuery,
    GQLRulesDashboardInsightsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLRulesDashboardInsightsQuery,
    GQLRulesDashboardInsightsQueryVariables
  >(GQLRulesDashboardInsightsDocument, options);
}
export function useGQLRulesDashboardInsightsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRulesDashboardInsightsQuery,
    GQLRulesDashboardInsightsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLRulesDashboardInsightsQuery,
    GQLRulesDashboardInsightsQueryVariables
  >(GQLRulesDashboardInsightsDocument, options);
}
// @ts-ignore
export function useGQLRulesDashboardInsightsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRulesDashboardInsightsQuery,
    GQLRulesDashboardInsightsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRulesDashboardInsightsQuery,
  GQLRulesDashboardInsightsQueryVariables
>;
export function useGQLRulesDashboardInsightsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRulesDashboardInsightsQuery,
        GQLRulesDashboardInsightsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRulesDashboardInsightsQuery | undefined,
  GQLRulesDashboardInsightsQueryVariables
>;
export function useGQLRulesDashboardInsightsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRulesDashboardInsightsQuery,
        GQLRulesDashboardInsightsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRulesDashboardInsightsQuery,
    GQLRulesDashboardInsightsQueryVariables
  >(GQLRulesDashboardInsightsDocument, options);
}
export type GQLRulesDashboardInsightsQueryHookResult = ReturnType<
  typeof useGQLRulesDashboardInsightsQuery
>;
export type GQLRulesDashboardInsightsLazyQueryHookResult = ReturnType<
  typeof useGQLRulesDashboardInsightsLazyQuery
>;
export type GQLRulesDashboardInsightsSuspenseQueryHookResult = ReturnType<
  typeof useGQLRulesDashboardInsightsSuspenseQuery
>;
export type GQLRulesDashboardInsightsQueryResult = Apollo.QueryResult<
  GQLRulesDashboardInsightsQuery,
  GQLRulesDashboardInsightsQueryVariables
>;
export const GQLPolicyRollupDataDocument = gql`
  query PolicyRollupData {
    myOrg {
      id
      policies {
        id
        name
        parentId
      }
    }
  }
`;

/**
 * __useGQLPolicyRollupDataQuery__
 *
 * To run a query within a React component, call `useGQLPolicyRollupDataQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLPolicyRollupDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLPolicyRollupDataQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLPolicyRollupDataQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLPolicyRollupDataQuery,
    GQLPolicyRollupDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLPolicyRollupDataQuery,
    GQLPolicyRollupDataQueryVariables
  >(GQLPolicyRollupDataDocument, options);
}
export function useGQLPolicyRollupDataLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLPolicyRollupDataQuery,
    GQLPolicyRollupDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLPolicyRollupDataQuery,
    GQLPolicyRollupDataQueryVariables
  >(GQLPolicyRollupDataDocument, options);
}
// @ts-ignore
export function useGQLPolicyRollupDataSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLPolicyRollupDataQuery,
    GQLPolicyRollupDataQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLPolicyRollupDataQuery,
  GQLPolicyRollupDataQueryVariables
>;
export function useGQLPolicyRollupDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPolicyRollupDataQuery,
        GQLPolicyRollupDataQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLPolicyRollupDataQuery | undefined,
  GQLPolicyRollupDataQueryVariables
>;
export function useGQLPolicyRollupDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPolicyRollupDataQuery,
        GQLPolicyRollupDataQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLPolicyRollupDataQuery,
    GQLPolicyRollupDataQueryVariables
  >(GQLPolicyRollupDataDocument, options);
}
export type GQLPolicyRollupDataQueryHookResult = ReturnType<
  typeof useGQLPolicyRollupDataQuery
>;
export type GQLPolicyRollupDataLazyQueryHookResult = ReturnType<
  typeof useGQLPolicyRollupDataLazyQuery
>;
export type GQLPolicyRollupDataSuspenseQueryHookResult = ReturnType<
  typeof useGQLPolicyRollupDataSuspenseQuery
>;
export type GQLPolicyRollupDataQueryResult = Apollo.QueryResult<
  GQLPolicyRollupDataQuery,
  GQLPolicyRollupDataQueryVariables
>;
export const GQLActionStatisticsDataDocument = gql`
  query ActionStatisticsData($input: ActionStatisticsInput!) {
    actionStatistics(input: $input) {
      item_type_id
      action_id
      policy_id
      rule_id
      source
      count
      time
      count
    }
  }
`;

/**
 * __useGQLActionStatisticsDataQuery__
 *
 * To run a query within a React component, call `useGQLActionStatisticsDataQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLActionStatisticsDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLActionStatisticsDataQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLActionStatisticsDataQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLActionStatisticsDataQuery,
    GQLActionStatisticsDataQueryVariables
  > &
    (
      | { variables: GQLActionStatisticsDataQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLActionStatisticsDataQuery,
    GQLActionStatisticsDataQueryVariables
  >(GQLActionStatisticsDataDocument, options);
}
export function useGQLActionStatisticsDataLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLActionStatisticsDataQuery,
    GQLActionStatisticsDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLActionStatisticsDataQuery,
    GQLActionStatisticsDataQueryVariables
  >(GQLActionStatisticsDataDocument, options);
}
// @ts-ignore
export function useGQLActionStatisticsDataSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLActionStatisticsDataQuery,
    GQLActionStatisticsDataQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLActionStatisticsDataQuery,
  GQLActionStatisticsDataQueryVariables
>;
export function useGQLActionStatisticsDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLActionStatisticsDataQuery,
        GQLActionStatisticsDataQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLActionStatisticsDataQuery | undefined,
  GQLActionStatisticsDataQueryVariables
>;
export function useGQLActionStatisticsDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLActionStatisticsDataQuery,
        GQLActionStatisticsDataQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLActionStatisticsDataQuery,
    GQLActionStatisticsDataQueryVariables
  >(GQLActionStatisticsDataDocument, options);
}
export type GQLActionStatisticsDataQueryHookResult = ReturnType<
  typeof useGQLActionStatisticsDataQuery
>;
export type GQLActionStatisticsDataLazyQueryHookResult = ReturnType<
  typeof useGQLActionStatisticsDataLazyQuery
>;
export type GQLActionStatisticsDataSuspenseQueryHookResult = ReturnType<
  typeof useGQLActionStatisticsDataSuspenseQuery
>;
export type GQLActionStatisticsDataQueryResult = Apollo.QueryResult<
  GQLActionStatisticsDataQuery,
  GQLActionStatisticsDataQueryVariables
>;
export const GQLReportingRuleInfoDocument = gql`
  query ReportingRuleInfo($id: ID!) {
    reportingRule(id: $id) {
      name
    }
  }
`;

/**
 * __useGQLReportingRuleInfoQuery__
 *
 * To run a query within a React component, call `useGQLReportingRuleInfoQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLReportingRuleInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLReportingRuleInfoQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLReportingRuleInfoQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLReportingRuleInfoQuery,
    GQLReportingRuleInfoQueryVariables
  > &
    (
      | { variables: GQLReportingRuleInfoQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLReportingRuleInfoQuery,
    GQLReportingRuleInfoQueryVariables
  >(GQLReportingRuleInfoDocument, options);
}
export function useGQLReportingRuleInfoLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLReportingRuleInfoQuery,
    GQLReportingRuleInfoQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLReportingRuleInfoQuery,
    GQLReportingRuleInfoQueryVariables
  >(GQLReportingRuleInfoDocument, options);
}
// @ts-ignore
export function useGQLReportingRuleInfoSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLReportingRuleInfoQuery,
    GQLReportingRuleInfoQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRuleInfoQuery,
  GQLReportingRuleInfoQueryVariables
>;
export function useGQLReportingRuleInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRuleInfoQuery,
        GQLReportingRuleInfoQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRuleInfoQuery | undefined,
  GQLReportingRuleInfoQueryVariables
>;
export function useGQLReportingRuleInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRuleInfoQuery,
        GQLReportingRuleInfoQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLReportingRuleInfoQuery,
    GQLReportingRuleInfoQueryVariables
  >(GQLReportingRuleInfoDocument, options);
}
export type GQLReportingRuleInfoQueryHookResult = ReturnType<
  typeof useGQLReportingRuleInfoQuery
>;
export type GQLReportingRuleInfoLazyQueryHookResult = ReturnType<
  typeof useGQLReportingRuleInfoLazyQuery
>;
export type GQLReportingRuleInfoSuspenseQueryHookResult = ReturnType<
  typeof useGQLReportingRuleInfoSuspenseQuery
>;
export type GQLReportingRuleInfoQueryResult = Apollo.QueryResult<
  GQLReportingRuleInfoQuery,
  GQLReportingRuleInfoQueryVariables
>;
export const GQLRuleInfoDocument = gql`
  query RuleInfo($id: ID!) {
    me {
      permissions
    }
    rule(id: $id) {
      name
    }
  }
`;

/**
 * __useGQLRuleInfoQuery__
 *
 * To run a query within a React component, call `useGQLRuleInfoQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRuleInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRuleInfoQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLRuleInfoQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLRuleInfoQuery,
    GQLRuleInfoQueryVariables
  > &
    (
      | { variables: GQLRuleInfoQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLRuleInfoQuery, GQLRuleInfoQueryVariables>(
    GQLRuleInfoDocument,
    options,
  );
}
export function useGQLRuleInfoLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRuleInfoQuery,
    GQLRuleInfoQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLRuleInfoQuery, GQLRuleInfoQueryVariables>(
    GQLRuleInfoDocument,
    options,
  );
}
// @ts-ignore
export function useGQLRuleInfoSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRuleInfoQuery,
    GQLRuleInfoQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLRuleInfoQuery, GQLRuleInfoQueryVariables>;
export function useGQLRuleInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRuleInfoQuery,
        GQLRuleInfoQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRuleInfoQuery | undefined,
  GQLRuleInfoQueryVariables
>;
export function useGQLRuleInfoSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRuleInfoQuery,
        GQLRuleInfoQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLRuleInfoQuery, GQLRuleInfoQueryVariables>(
    GQLRuleInfoDocument,
    options,
  );
}
export type GQLRuleInfoQueryHookResult = ReturnType<typeof useGQLRuleInfoQuery>;
export type GQLRuleInfoLazyQueryHookResult = ReturnType<
  typeof useGQLRuleInfoLazyQuery
>;
export type GQLRuleInfoSuspenseQueryHookResult = ReturnType<
  typeof useGQLRuleInfoSuspenseQuery
>;
export type GQLRuleInfoQueryResult = Apollo.QueryResult<
  GQLRuleInfoQuery,
  GQLRuleInfoQueryVariables
>;
export const GQLSpotTestRuleDocument = gql`
  query SpotTestRule($ruleId: ID!, $item: SpotTestItemInput!) {
    spotTestRule(ruleId: $ruleId, item: $item) {
      ... on RuleExecutionResult {
        ...SampleRuleExecutionResultFields
        result {
          ...SampleRuleExecutionResultConditionResultFields
        }
      }
    }
  }
  ${GQLSampleRuleExecutionResultFieldsFragmentDoc}
  ${GQLSampleRuleExecutionResultConditionResultFieldsFragmentDoc}
`;

/**
 * __useGQLSpotTestRuleQuery__
 *
 * To run a query within a React component, call `useGQLSpotTestRuleQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLSpotTestRuleQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLSpotTestRuleQuery({
 *   variables: {
 *      ruleId: // value for 'ruleId'
 *      item: // value for 'item'
 *   },
 * });
 */
export function useGQLSpotTestRuleQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLSpotTestRuleQuery,
    GQLSpotTestRuleQueryVariables
  > &
    (
      | { variables: GQLSpotTestRuleQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLSpotTestRuleQuery, GQLSpotTestRuleQueryVariables>(
    GQLSpotTestRuleDocument,
    options,
  );
}
export function useGQLSpotTestRuleLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLSpotTestRuleQuery,
    GQLSpotTestRuleQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLSpotTestRuleQuery,
    GQLSpotTestRuleQueryVariables
  >(GQLSpotTestRuleDocument, options);
}
// @ts-ignore
export function useGQLSpotTestRuleSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLSpotTestRuleQuery,
    GQLSpotTestRuleQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLSpotTestRuleQuery,
  GQLSpotTestRuleQueryVariables
>;
export function useGQLSpotTestRuleSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLSpotTestRuleQuery,
        GQLSpotTestRuleQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLSpotTestRuleQuery | undefined,
  GQLSpotTestRuleQueryVariables
>;
export function useGQLSpotTestRuleSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLSpotTestRuleQuery,
        GQLSpotTestRuleQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLSpotTestRuleQuery,
    GQLSpotTestRuleQueryVariables
  >(GQLSpotTestRuleDocument, options);
}
export type GQLSpotTestRuleQueryHookResult = ReturnType<
  typeof useGQLSpotTestRuleQuery
>;
export type GQLSpotTestRuleLazyQueryHookResult = ReturnType<
  typeof useGQLSpotTestRuleLazyQuery
>;
export type GQLSpotTestRuleSuspenseQueryHookResult = ReturnType<
  typeof useGQLSpotTestRuleSuspenseQuery
>;
export type GQLSpotTestRuleQueryResult = Apollo.QueryResult<
  GQLSpotTestRuleQuery,
  GQLSpotTestRuleQueryVariables
>;
export const GQLReportingRulePassRateAnalyticsDocument = gql`
  query ReportingRulePassRateAnalytics($id: ID!) {
    rule(id: $id) {
      insights {
        passRateData {
          date
          totalMatches
          totalRequests
        }
      }
    }
  }
`;

/**
 * __useGQLReportingRulePassRateAnalyticsQuery__
 *
 * To run a query within a React component, call `useGQLReportingRulePassRateAnalyticsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLReportingRulePassRateAnalyticsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLReportingRulePassRateAnalyticsQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLReportingRulePassRateAnalyticsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLReportingRulePassRateAnalyticsQuery,
    GQLReportingRulePassRateAnalyticsQueryVariables
  > &
    (
      | {
          variables: GQLReportingRulePassRateAnalyticsQueryVariables;
          skip?: boolean;
        }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLReportingRulePassRateAnalyticsQuery,
    GQLReportingRulePassRateAnalyticsQueryVariables
  >(GQLReportingRulePassRateAnalyticsDocument, options);
}
export function useGQLReportingRulePassRateAnalyticsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLReportingRulePassRateAnalyticsQuery,
    GQLReportingRulePassRateAnalyticsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLReportingRulePassRateAnalyticsQuery,
    GQLReportingRulePassRateAnalyticsQueryVariables
  >(GQLReportingRulePassRateAnalyticsDocument, options);
}
// @ts-ignore
export function useGQLReportingRulePassRateAnalyticsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLReportingRulePassRateAnalyticsQuery,
    GQLReportingRulePassRateAnalyticsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRulePassRateAnalyticsQuery,
  GQLReportingRulePassRateAnalyticsQueryVariables
>;
export function useGQLReportingRulePassRateAnalyticsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRulePassRateAnalyticsQuery,
        GQLReportingRulePassRateAnalyticsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRulePassRateAnalyticsQuery | undefined,
  GQLReportingRulePassRateAnalyticsQueryVariables
>;
export function useGQLReportingRulePassRateAnalyticsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRulePassRateAnalyticsQuery,
        GQLReportingRulePassRateAnalyticsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLReportingRulePassRateAnalyticsQuery,
    GQLReportingRulePassRateAnalyticsQueryVariables
  >(GQLReportingRulePassRateAnalyticsDocument, options);
}
export type GQLReportingRulePassRateAnalyticsQueryHookResult = ReturnType<
  typeof useGQLReportingRulePassRateAnalyticsQuery
>;
export type GQLReportingRulePassRateAnalyticsLazyQueryHookResult = ReturnType<
  typeof useGQLReportingRulePassRateAnalyticsLazyQuery
>;
export type GQLReportingRulePassRateAnalyticsSuspenseQueryHookResult =
  ReturnType<typeof useGQLReportingRulePassRateAnalyticsSuspenseQuery>;
export type GQLReportingRulePassRateAnalyticsQueryResult = Apollo.QueryResult<
  GQLReportingRulePassRateAnalyticsQuery,
  GQLReportingRulePassRateAnalyticsQueryVariables
>;
export const GQLReportingRuleInsightsCurrentVersionSamplesDocument = gql`
  query ReportingRuleInsightsCurrentVersionSamples($id: ID!) {
    reportingRule(id: $id) {
      id
      name
      itemTypes {
        ... on ItemTypeBase {
          id
          name
          baseFields {
            name
            type
          }
          derivedFields {
            name
            type
          }
        }
      }
      insights {
        samples: latestVersionSamples {
          ...SampleReportingRuleExecutionResultFields
        }
      }
    }
  }
  ${GQLSampleReportingRuleExecutionResultFieldsFragmentDoc}
`;

/**
 * __useGQLReportingRuleInsightsCurrentVersionSamplesQuery__
 *
 * To run a query within a React component, call `useGQLReportingRuleInsightsCurrentVersionSamplesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLReportingRuleInsightsCurrentVersionSamplesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLReportingRuleInsightsCurrentVersionSamplesQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLReportingRuleInsightsCurrentVersionSamplesQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLReportingRuleInsightsCurrentVersionSamplesQuery,
    GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
  > &
    (
      | {
          variables: GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables;
          skip?: boolean;
        }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLReportingRuleInsightsCurrentVersionSamplesQuery,
    GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
  >(GQLReportingRuleInsightsCurrentVersionSamplesDocument, options);
}
export function useGQLReportingRuleInsightsCurrentVersionSamplesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLReportingRuleInsightsCurrentVersionSamplesQuery,
    GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLReportingRuleInsightsCurrentVersionSamplesQuery,
    GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
  >(GQLReportingRuleInsightsCurrentVersionSamplesDocument, options);
}
// @ts-ignore
export function useGQLReportingRuleInsightsCurrentVersionSamplesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLReportingRuleInsightsCurrentVersionSamplesQuery,
    GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRuleInsightsCurrentVersionSamplesQuery,
  GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
>;
export function useGQLReportingRuleInsightsCurrentVersionSamplesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRuleInsightsCurrentVersionSamplesQuery,
        GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRuleInsightsCurrentVersionSamplesQuery | undefined,
  GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
>;
export function useGQLReportingRuleInsightsCurrentVersionSamplesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRuleInsightsCurrentVersionSamplesQuery,
        GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLReportingRuleInsightsCurrentVersionSamplesQuery,
    GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
  >(GQLReportingRuleInsightsCurrentVersionSamplesDocument, options);
}
export type GQLReportingRuleInsightsCurrentVersionSamplesQueryHookResult =
  ReturnType<typeof useGQLReportingRuleInsightsCurrentVersionSamplesQuery>;
export type GQLReportingRuleInsightsCurrentVersionSamplesLazyQueryHookResult =
  ReturnType<typeof useGQLReportingRuleInsightsCurrentVersionSamplesLazyQuery>;
export type GQLReportingRuleInsightsCurrentVersionSamplesSuspenseQueryHookResult =
  ReturnType<
    typeof useGQLReportingRuleInsightsCurrentVersionSamplesSuspenseQuery
  >;
export type GQLReportingRuleInsightsCurrentVersionSamplesQueryResult =
  Apollo.QueryResult<
    GQLReportingRuleInsightsCurrentVersionSamplesQuery,
    GQLReportingRuleInsightsCurrentVersionSamplesQueryVariables
  >;
export const GQLReportingRuleInsightsPriorVersionSamplesDocument = gql`
  query ReportingRuleInsightsPriorVersionSamples($id: ID!) {
    reportingRule(id: $id) {
      name
      itemTypes {
        ... on ItemTypeBase {
          id
          name
          baseFields {
            name
            type
          }
          derivedFields {
            name
            type
          }
        }
      }
      insights {
        samples: priorVersionSamples {
          ...SampleReportingRuleExecutionResultFields
        }
      }
    }
  }
  ${GQLSampleReportingRuleExecutionResultFieldsFragmentDoc}
`;

/**
 * __useGQLReportingRuleInsightsPriorVersionSamplesQuery__
 *
 * To run a query within a React component, call `useGQLReportingRuleInsightsPriorVersionSamplesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLReportingRuleInsightsPriorVersionSamplesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLReportingRuleInsightsPriorVersionSamplesQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLReportingRuleInsightsPriorVersionSamplesQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLReportingRuleInsightsPriorVersionSamplesQuery,
    GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
  > &
    (
      | {
          variables: GQLReportingRuleInsightsPriorVersionSamplesQueryVariables;
          skip?: boolean;
        }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLReportingRuleInsightsPriorVersionSamplesQuery,
    GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
  >(GQLReportingRuleInsightsPriorVersionSamplesDocument, options);
}
export function useGQLReportingRuleInsightsPriorVersionSamplesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLReportingRuleInsightsPriorVersionSamplesQuery,
    GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLReportingRuleInsightsPriorVersionSamplesQuery,
    GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
  >(GQLReportingRuleInsightsPriorVersionSamplesDocument, options);
}
// @ts-ignore
export function useGQLReportingRuleInsightsPriorVersionSamplesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLReportingRuleInsightsPriorVersionSamplesQuery,
    GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRuleInsightsPriorVersionSamplesQuery,
  GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
>;
export function useGQLReportingRuleInsightsPriorVersionSamplesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRuleInsightsPriorVersionSamplesQuery,
        GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRuleInsightsPriorVersionSamplesQuery | undefined,
  GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
>;
export function useGQLReportingRuleInsightsPriorVersionSamplesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRuleInsightsPriorVersionSamplesQuery,
        GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLReportingRuleInsightsPriorVersionSamplesQuery,
    GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
  >(GQLReportingRuleInsightsPriorVersionSamplesDocument, options);
}
export type GQLReportingRuleInsightsPriorVersionSamplesQueryHookResult =
  ReturnType<typeof useGQLReportingRuleInsightsPriorVersionSamplesQuery>;
export type GQLReportingRuleInsightsPriorVersionSamplesLazyQueryHookResult =
  ReturnType<typeof useGQLReportingRuleInsightsPriorVersionSamplesLazyQuery>;
export type GQLReportingRuleInsightsPriorVersionSamplesSuspenseQueryHookResult =
  ReturnType<
    typeof useGQLReportingRuleInsightsPriorVersionSamplesSuspenseQuery
  >;
export type GQLReportingRuleInsightsPriorVersionSamplesQueryResult =
  Apollo.QueryResult<
    GQLReportingRuleInsightsPriorVersionSamplesQuery,
    GQLReportingRuleInsightsPriorVersionSamplesQueryVariables
  >;
export const GQLRulePassRateAnalyticsDocument = gql`
  query RulePassRateAnalytics($id: ID!) {
    rule(id: $id) {
      insights {
        passRateData {
          date
          totalMatches
          totalRequests
        }
      }
    }
    allRuleInsights {
      totalSubmissionsByDay {
        date
        count
      }
    }
  }
`;

/**
 * __useGQLRulePassRateAnalyticsQuery__
 *
 * To run a query within a React component, call `useGQLRulePassRateAnalyticsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRulePassRateAnalyticsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRulePassRateAnalyticsQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLRulePassRateAnalyticsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLRulePassRateAnalyticsQuery,
    GQLRulePassRateAnalyticsQueryVariables
  > &
    (
      | { variables: GQLRulePassRateAnalyticsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLRulePassRateAnalyticsQuery,
    GQLRulePassRateAnalyticsQueryVariables
  >(GQLRulePassRateAnalyticsDocument, options);
}
export function useGQLRulePassRateAnalyticsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRulePassRateAnalyticsQuery,
    GQLRulePassRateAnalyticsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLRulePassRateAnalyticsQuery,
    GQLRulePassRateAnalyticsQueryVariables
  >(GQLRulePassRateAnalyticsDocument, options);
}
// @ts-ignore
export function useGQLRulePassRateAnalyticsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRulePassRateAnalyticsQuery,
    GQLRulePassRateAnalyticsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRulePassRateAnalyticsQuery,
  GQLRulePassRateAnalyticsQueryVariables
>;
export function useGQLRulePassRateAnalyticsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRulePassRateAnalyticsQuery,
        GQLRulePassRateAnalyticsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRulePassRateAnalyticsQuery | undefined,
  GQLRulePassRateAnalyticsQueryVariables
>;
export function useGQLRulePassRateAnalyticsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRulePassRateAnalyticsQuery,
        GQLRulePassRateAnalyticsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRulePassRateAnalyticsQuery,
    GQLRulePassRateAnalyticsQueryVariables
  >(GQLRulePassRateAnalyticsDocument, options);
}
export type GQLRulePassRateAnalyticsQueryHookResult = ReturnType<
  typeof useGQLRulePassRateAnalyticsQuery
>;
export type GQLRulePassRateAnalyticsLazyQueryHookResult = ReturnType<
  typeof useGQLRulePassRateAnalyticsLazyQuery
>;
export type GQLRulePassRateAnalyticsSuspenseQueryHookResult = ReturnType<
  typeof useGQLRulePassRateAnalyticsSuspenseQuery
>;
export type GQLRulePassRateAnalyticsQueryResult = Apollo.QueryResult<
  GQLRulePassRateAnalyticsQuery,
  GQLRulePassRateAnalyticsQueryVariables
>;
export const GQLRuleInsightsTableAllSignalsDocument = gql`
  query RuleInsightsTableAllSignals {
    myOrg {
      signals(customOnly: false) {
        id
        integration
        eligibleSubcategories {
          id
          label
        }
      }
    }
  }
`;

/**
 * __useGQLRuleInsightsTableAllSignalsQuery__
 *
 * To run a query within a React component, call `useGQLRuleInsightsTableAllSignalsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRuleInsightsTableAllSignalsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRuleInsightsTableAllSignalsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLRuleInsightsTableAllSignalsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLRuleInsightsTableAllSignalsQuery,
    GQLRuleInsightsTableAllSignalsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLRuleInsightsTableAllSignalsQuery,
    GQLRuleInsightsTableAllSignalsQueryVariables
  >(GQLRuleInsightsTableAllSignalsDocument, options);
}
export function useGQLRuleInsightsTableAllSignalsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRuleInsightsTableAllSignalsQuery,
    GQLRuleInsightsTableAllSignalsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLRuleInsightsTableAllSignalsQuery,
    GQLRuleInsightsTableAllSignalsQueryVariables
  >(GQLRuleInsightsTableAllSignalsDocument, options);
}
// @ts-ignore
export function useGQLRuleInsightsTableAllSignalsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRuleInsightsTableAllSignalsQuery,
    GQLRuleInsightsTableAllSignalsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRuleInsightsTableAllSignalsQuery,
  GQLRuleInsightsTableAllSignalsQueryVariables
>;
export function useGQLRuleInsightsTableAllSignalsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRuleInsightsTableAllSignalsQuery,
        GQLRuleInsightsTableAllSignalsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRuleInsightsTableAllSignalsQuery | undefined,
  GQLRuleInsightsTableAllSignalsQueryVariables
>;
export function useGQLRuleInsightsTableAllSignalsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRuleInsightsTableAllSignalsQuery,
        GQLRuleInsightsTableAllSignalsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRuleInsightsTableAllSignalsQuery,
    GQLRuleInsightsTableAllSignalsQueryVariables
  >(GQLRuleInsightsTableAllSignalsDocument, options);
}
export type GQLRuleInsightsTableAllSignalsQueryHookResult = ReturnType<
  typeof useGQLRuleInsightsTableAllSignalsQuery
>;
export type GQLRuleInsightsTableAllSignalsLazyQueryHookResult = ReturnType<
  typeof useGQLRuleInsightsTableAllSignalsLazyQuery
>;
export type GQLRuleInsightsTableAllSignalsSuspenseQueryHookResult = ReturnType<
  typeof useGQLRuleInsightsTableAllSignalsSuspenseQuery
>;
export type GQLRuleInsightsTableAllSignalsQueryResult = Apollo.QueryResult<
  GQLRuleInsightsTableAllSignalsQuery,
  GQLRuleInsightsTableAllSignalsQueryVariables
>;
export const GQLRuleInsightsCurrentVersionSamplesDocument = gql`
  query RuleInsightsCurrentVersionSamples($id: ID!) {
    rule(id: $id) {
      ... on ContentRule {
        __typename
        name
        insights {
          samples: latestVersionSamples {
            ...SampleRuleExecutionResultFields
          }
        }
        itemTypes {
          ... on ItemTypeBase {
            id
            name
            baseFields {
              name
              type
            }
            derivedFields {
              name
              type
            }
          }
        }
      }
      ... on UserRule {
        __typename
        name
        insights {
          samples: latestVersionSamples {
            ...SampleRuleExecutionResultFields
          }
        }
      }
    }
  }
  ${GQLSampleRuleExecutionResultFieldsFragmentDoc}
`;

/**
 * __useGQLRuleInsightsCurrentVersionSamplesQuery__
 *
 * To run a query within a React component, call `useGQLRuleInsightsCurrentVersionSamplesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRuleInsightsCurrentVersionSamplesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRuleInsightsCurrentVersionSamplesQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLRuleInsightsCurrentVersionSamplesQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLRuleInsightsCurrentVersionSamplesQuery,
    GQLRuleInsightsCurrentVersionSamplesQueryVariables
  > &
    (
      | {
          variables: GQLRuleInsightsCurrentVersionSamplesQueryVariables;
          skip?: boolean;
        }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLRuleInsightsCurrentVersionSamplesQuery,
    GQLRuleInsightsCurrentVersionSamplesQueryVariables
  >(GQLRuleInsightsCurrentVersionSamplesDocument, options);
}
export function useGQLRuleInsightsCurrentVersionSamplesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRuleInsightsCurrentVersionSamplesQuery,
    GQLRuleInsightsCurrentVersionSamplesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLRuleInsightsCurrentVersionSamplesQuery,
    GQLRuleInsightsCurrentVersionSamplesQueryVariables
  >(GQLRuleInsightsCurrentVersionSamplesDocument, options);
}
// @ts-ignore
export function useGQLRuleInsightsCurrentVersionSamplesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRuleInsightsCurrentVersionSamplesQuery,
    GQLRuleInsightsCurrentVersionSamplesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRuleInsightsCurrentVersionSamplesQuery,
  GQLRuleInsightsCurrentVersionSamplesQueryVariables
>;
export function useGQLRuleInsightsCurrentVersionSamplesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRuleInsightsCurrentVersionSamplesQuery,
        GQLRuleInsightsCurrentVersionSamplesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRuleInsightsCurrentVersionSamplesQuery | undefined,
  GQLRuleInsightsCurrentVersionSamplesQueryVariables
>;
export function useGQLRuleInsightsCurrentVersionSamplesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRuleInsightsCurrentVersionSamplesQuery,
        GQLRuleInsightsCurrentVersionSamplesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRuleInsightsCurrentVersionSamplesQuery,
    GQLRuleInsightsCurrentVersionSamplesQueryVariables
  >(GQLRuleInsightsCurrentVersionSamplesDocument, options);
}
export type GQLRuleInsightsCurrentVersionSamplesQueryHookResult = ReturnType<
  typeof useGQLRuleInsightsCurrentVersionSamplesQuery
>;
export type GQLRuleInsightsCurrentVersionSamplesLazyQueryHookResult =
  ReturnType<typeof useGQLRuleInsightsCurrentVersionSamplesLazyQuery>;
export type GQLRuleInsightsCurrentVersionSamplesSuspenseQueryHookResult =
  ReturnType<typeof useGQLRuleInsightsCurrentVersionSamplesSuspenseQuery>;
export type GQLRuleInsightsCurrentVersionSamplesQueryResult =
  Apollo.QueryResult<
    GQLRuleInsightsCurrentVersionSamplesQuery,
    GQLRuleInsightsCurrentVersionSamplesQueryVariables
  >;
export const GQLRuleInsightsPriorVersionSamplesDocument = gql`
  query RuleInsightsPriorVersionSamples($id: ID!) {
    rule(id: $id) {
      ... on ContentRule {
        name
        insights {
          samples: priorVersionSamples {
            ...SampleRuleExecutionResultFields
          }
        }
        itemTypes {
          ... on ItemTypeBase {
            name
            id
            baseFields {
              name
              type
              container {
                keyScalarType
                valueScalarType
              }
            }
            derivedFields {
              name
              type
              container {
                keyScalarType
                valueScalarType
              }
            }
          }
        }
      }
      ... on UserRule {
        name
        insights {
          samples: priorVersionSamples {
            ...SampleRuleExecutionResultFields
          }
        }
      }
    }
  }
  ${GQLSampleRuleExecutionResultFieldsFragmentDoc}
`;

/**
 * __useGQLRuleInsightsPriorVersionSamplesQuery__
 *
 * To run a query within a React component, call `useGQLRuleInsightsPriorVersionSamplesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRuleInsightsPriorVersionSamplesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRuleInsightsPriorVersionSamplesQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLRuleInsightsPriorVersionSamplesQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLRuleInsightsPriorVersionSamplesQuery,
    GQLRuleInsightsPriorVersionSamplesQueryVariables
  > &
    (
      | {
          variables: GQLRuleInsightsPriorVersionSamplesQueryVariables;
          skip?: boolean;
        }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLRuleInsightsPriorVersionSamplesQuery,
    GQLRuleInsightsPriorVersionSamplesQueryVariables
  >(GQLRuleInsightsPriorVersionSamplesDocument, options);
}
export function useGQLRuleInsightsPriorVersionSamplesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRuleInsightsPriorVersionSamplesQuery,
    GQLRuleInsightsPriorVersionSamplesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLRuleInsightsPriorVersionSamplesQuery,
    GQLRuleInsightsPriorVersionSamplesQueryVariables
  >(GQLRuleInsightsPriorVersionSamplesDocument, options);
}
// @ts-ignore
export function useGQLRuleInsightsPriorVersionSamplesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRuleInsightsPriorVersionSamplesQuery,
    GQLRuleInsightsPriorVersionSamplesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRuleInsightsPriorVersionSamplesQuery,
  GQLRuleInsightsPriorVersionSamplesQueryVariables
>;
export function useGQLRuleInsightsPriorVersionSamplesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRuleInsightsPriorVersionSamplesQuery,
        GQLRuleInsightsPriorVersionSamplesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRuleInsightsPriorVersionSamplesQuery | undefined,
  GQLRuleInsightsPriorVersionSamplesQueryVariables
>;
export function useGQLRuleInsightsPriorVersionSamplesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRuleInsightsPriorVersionSamplesQuery,
        GQLRuleInsightsPriorVersionSamplesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRuleInsightsPriorVersionSamplesQuery,
    GQLRuleInsightsPriorVersionSamplesQueryVariables
  >(GQLRuleInsightsPriorVersionSamplesDocument, options);
}
export type GQLRuleInsightsPriorVersionSamplesQueryHookResult = ReturnType<
  typeof useGQLRuleInsightsPriorVersionSamplesQuery
>;
export type GQLRuleInsightsPriorVersionSamplesLazyQueryHookResult = ReturnType<
  typeof useGQLRuleInsightsPriorVersionSamplesLazyQuery
>;
export type GQLRuleInsightsPriorVersionSamplesSuspenseQueryHookResult =
  ReturnType<typeof useGQLRuleInsightsPriorVersionSamplesSuspenseQuery>;
export type GQLRuleInsightsPriorVersionSamplesQueryResult = Apollo.QueryResult<
  GQLRuleInsightsPriorVersionSamplesQuery,
  GQLRuleInsightsPriorVersionSamplesQueryVariables
>;
export const GQLGetFullResultForRuleDocument = gql`
  query GetFullResultForRule($input: GetFullResultForItemInput!) {
    getFullRuleResultForItem(input: $input) {
      ... on RuleExecutionResult {
        ...SampleRuleExecutionResultFields
        result {
          ...SampleRuleExecutionResultConditionResultFields
        }
      }
      ... on NotFoundError {
        title
      }
    }
  }
  ${GQLSampleRuleExecutionResultFieldsFragmentDoc}
  ${GQLSampleRuleExecutionResultConditionResultFieldsFragmentDoc}
`;

/**
 * __useGQLGetFullResultForRuleQuery__
 *
 * To run a query within a React component, call `useGQLGetFullResultForRuleQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLGetFullResultForRuleQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLGetFullResultForRuleQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLGetFullResultForRuleQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLGetFullResultForRuleQuery,
    GQLGetFullResultForRuleQueryVariables
  > &
    (
      | { variables: GQLGetFullResultForRuleQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLGetFullResultForRuleQuery,
    GQLGetFullResultForRuleQueryVariables
  >(GQLGetFullResultForRuleDocument, options);
}
export function useGQLGetFullResultForRuleLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLGetFullResultForRuleQuery,
    GQLGetFullResultForRuleQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLGetFullResultForRuleQuery,
    GQLGetFullResultForRuleQueryVariables
  >(GQLGetFullResultForRuleDocument, options);
}
// @ts-ignore
export function useGQLGetFullResultForRuleSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLGetFullResultForRuleQuery,
    GQLGetFullResultForRuleQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLGetFullResultForRuleQuery,
  GQLGetFullResultForRuleQueryVariables
>;
export function useGQLGetFullResultForRuleSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetFullResultForRuleQuery,
        GQLGetFullResultForRuleQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLGetFullResultForRuleQuery | undefined,
  GQLGetFullResultForRuleQueryVariables
>;
export function useGQLGetFullResultForRuleSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLGetFullResultForRuleQuery,
        GQLGetFullResultForRuleQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLGetFullResultForRuleQuery,
    GQLGetFullResultForRuleQueryVariables
  >(GQLGetFullResultForRuleDocument, options);
}
export type GQLGetFullResultForRuleQueryHookResult = ReturnType<
  typeof useGQLGetFullResultForRuleQuery
>;
export type GQLGetFullResultForRuleLazyQueryHookResult = ReturnType<
  typeof useGQLGetFullResultForRuleLazyQuery
>;
export type GQLGetFullResultForRuleSuspenseQueryHookResult = ReturnType<
  typeof useGQLGetFullResultForRuleSuspenseQuery
>;
export type GQLGetFullResultForRuleQueryResult = Apollo.QueryResult<
  GQLGetFullResultForRuleQuery,
  GQLGetFullResultForRuleQueryVariables
>;
export const GQLMatchingBankNamesDocument = gql`
  query MatchingBankNames {
    myOrg {
      banks {
        textBanks {
          id
          name
        }
        locationBanks {
          id
          name
        }
        hashBanks {
          id
          name
        }
      }
    }
  }
`;

/**
 * __useGQLMatchingBankNamesQuery__
 *
 * To run a query within a React component, call `useGQLMatchingBankNamesQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLMatchingBankNamesQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLMatchingBankNamesQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLMatchingBankNamesQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLMatchingBankNamesQuery,
    GQLMatchingBankNamesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLMatchingBankNamesQuery,
    GQLMatchingBankNamesQueryVariables
  >(GQLMatchingBankNamesDocument, options);
}
export function useGQLMatchingBankNamesLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLMatchingBankNamesQuery,
    GQLMatchingBankNamesQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLMatchingBankNamesQuery,
    GQLMatchingBankNamesQueryVariables
  >(GQLMatchingBankNamesDocument, options);
}
// @ts-ignore
export function useGQLMatchingBankNamesSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLMatchingBankNamesQuery,
    GQLMatchingBankNamesQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLMatchingBankNamesQuery,
  GQLMatchingBankNamesQueryVariables
>;
export function useGQLMatchingBankNamesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLMatchingBankNamesQuery,
        GQLMatchingBankNamesQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLMatchingBankNamesQuery | undefined,
  GQLMatchingBankNamesQueryVariables
>;
export function useGQLMatchingBankNamesSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLMatchingBankNamesQuery,
        GQLMatchingBankNamesQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLMatchingBankNamesQuery,
    GQLMatchingBankNamesQueryVariables
  >(GQLMatchingBankNamesDocument, options);
}
export type GQLMatchingBankNamesQueryHookResult = ReturnType<
  typeof useGQLMatchingBankNamesQuery
>;
export type GQLMatchingBankNamesLazyQueryHookResult = ReturnType<
  typeof useGQLMatchingBankNamesLazyQuery
>;
export type GQLMatchingBankNamesSuspenseQueryHookResult = ReturnType<
  typeof useGQLMatchingBankNamesSuspenseQuery
>;
export type GQLMatchingBankNamesQueryResult = Apollo.QueryResult<
  GQLMatchingBankNamesQuery,
  GQLMatchingBankNamesQueryVariables
>;
export const GQLReportingRuleDocument = gql`
  query ReportingRule($id: ID!) {
    reportingRule(id: $id) {
      ...ReportingRuleFormRuleFieldsFragment
      itemTypes {
        ... on ItemTypeBase {
          ...ItemTypeFragment
        }
      }
    }
  }
  ${GQLReportingRuleFormRuleFieldsFragmentFragmentDoc}
  ${GQLItemTypeFragmentFragmentDoc}
`;

/**
 * __useGQLReportingRuleQuery__
 *
 * To run a query within a React component, call `useGQLReportingRuleQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLReportingRuleQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLReportingRuleQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLReportingRuleQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLReportingRuleQuery,
    GQLReportingRuleQueryVariables
  > &
    (
      | { variables: GQLReportingRuleQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLReportingRuleQuery, GQLReportingRuleQueryVariables>(
    GQLReportingRuleDocument,
    options,
  );
}
export function useGQLReportingRuleLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLReportingRuleQuery,
    GQLReportingRuleQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLReportingRuleQuery,
    GQLReportingRuleQueryVariables
  >(GQLReportingRuleDocument, options);
}
// @ts-ignore
export function useGQLReportingRuleSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLReportingRuleQuery,
    GQLReportingRuleQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRuleQuery,
  GQLReportingRuleQueryVariables
>;
export function useGQLReportingRuleSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRuleQuery,
        GQLReportingRuleQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRuleQuery | undefined,
  GQLReportingRuleQueryVariables
>;
export function useGQLReportingRuleSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRuleQuery,
        GQLReportingRuleQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLReportingRuleQuery,
    GQLReportingRuleQueryVariables
  >(GQLReportingRuleDocument, options);
}
export type GQLReportingRuleQueryHookResult = ReturnType<
  typeof useGQLReportingRuleQuery
>;
export type GQLReportingRuleLazyQueryHookResult = ReturnType<
  typeof useGQLReportingRuleLazyQuery
>;
export type GQLReportingRuleSuspenseQueryHookResult = ReturnType<
  typeof useGQLReportingRuleSuspenseQuery
>;
export type GQLReportingRuleQueryResult = Apollo.QueryResult<
  GQLReportingRuleQuery,
  GQLReportingRuleQueryVariables
>;
export const GQLReportingRuleFormOrgDataDocument = gql`
  query ReportingRuleFormOrgData {
    myOrg {
      policies {
        id
        name
        parentId
      }
      itemTypes {
        ... on ItemTypeBase {
          ...ItemTypeFragment
        }
      }
      signals {
        ...SignalsFragment
      }
      actions {
        ...ActionFragment
      }
    }
    me {
      permissions
    }
  }
  ${GQLItemTypeFragmentFragmentDoc}
  ${GQLSignalsFragmentFragmentDoc}
  ${GQLActionFragmentFragmentDoc}
`;

/**
 * __useGQLReportingRuleFormOrgDataQuery__
 *
 * To run a query within a React component, call `useGQLReportingRuleFormOrgDataQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLReportingRuleFormOrgDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLReportingRuleFormOrgDataQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLReportingRuleFormOrgDataQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLReportingRuleFormOrgDataQuery,
    GQLReportingRuleFormOrgDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLReportingRuleFormOrgDataQuery,
    GQLReportingRuleFormOrgDataQueryVariables
  >(GQLReportingRuleFormOrgDataDocument, options);
}
export function useGQLReportingRuleFormOrgDataLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLReportingRuleFormOrgDataQuery,
    GQLReportingRuleFormOrgDataQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLReportingRuleFormOrgDataQuery,
    GQLReportingRuleFormOrgDataQueryVariables
  >(GQLReportingRuleFormOrgDataDocument, options);
}
// @ts-ignore
export function useGQLReportingRuleFormOrgDataSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLReportingRuleFormOrgDataQuery,
    GQLReportingRuleFormOrgDataQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRuleFormOrgDataQuery,
  GQLReportingRuleFormOrgDataQueryVariables
>;
export function useGQLReportingRuleFormOrgDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRuleFormOrgDataQuery,
        GQLReportingRuleFormOrgDataQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLReportingRuleFormOrgDataQuery | undefined,
  GQLReportingRuleFormOrgDataQueryVariables
>;
export function useGQLReportingRuleFormOrgDataSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLReportingRuleFormOrgDataQuery,
        GQLReportingRuleFormOrgDataQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLReportingRuleFormOrgDataQuery,
    GQLReportingRuleFormOrgDataQueryVariables
  >(GQLReportingRuleFormOrgDataDocument, options);
}
export type GQLReportingRuleFormOrgDataQueryHookResult = ReturnType<
  typeof useGQLReportingRuleFormOrgDataQuery
>;
export type GQLReportingRuleFormOrgDataLazyQueryHookResult = ReturnType<
  typeof useGQLReportingRuleFormOrgDataLazyQuery
>;
export type GQLReportingRuleFormOrgDataSuspenseQueryHookResult = ReturnType<
  typeof useGQLReportingRuleFormOrgDataSuspenseQuery
>;
export type GQLReportingRuleFormOrgDataQueryResult = Apollo.QueryResult<
  GQLReportingRuleFormOrgDataQuery,
  GQLReportingRuleFormOrgDataQueryVariables
>;
export const GQLRuleDocument = gql`
  query Rule($id: ID!) {
    rule(id: $id) {
      ... on ContentRule {
        ...RuleFormRuleFieldsFragment
        itemTypes {
          ...ItemTypeFragment
        }
      }
      ... on UserRule {
        ...RuleFormRuleFieldsFragment
      }
    }
  }
  ${GQLRuleFormRuleFieldsFragmentFragmentDoc}
  ${GQLItemTypeFragmentFragmentDoc}
`;

/**
 * __useGQLRuleQuery__
 *
 * To run a query within a React component, call `useGQLRuleQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRuleQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRuleQuery({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLRuleQuery(
  baseOptions: Apollo.QueryHookOptions<GQLRuleQuery, GQLRuleQueryVariables> &
    ({ variables: GQLRuleQueryVariables; skip?: boolean } | { skip: boolean }),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLRuleQuery, GQLRuleQueryVariables>(
    GQLRuleDocument,
    options,
  );
}
export function useGQLRuleLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRuleQuery,
    GQLRuleQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLRuleQuery, GQLRuleQueryVariables>(
    GQLRuleDocument,
    options,
  );
}
// @ts-ignore
export function useGQLRuleSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRuleQuery,
    GQLRuleQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<GQLRuleQuery, GQLRuleQueryVariables>;
export function useGQLRuleSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<GQLRuleQuery, GQLRuleQueryVariables>,
): Apollo.UseSuspenseQueryResult<
  GQLRuleQuery | undefined,
  GQLRuleQueryVariables
>;
export function useGQLRuleSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<GQLRuleQuery, GQLRuleQueryVariables>,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<GQLRuleQuery, GQLRuleQueryVariables>(
    GQLRuleDocument,
    options,
  );
}
export type GQLRuleQueryHookResult = ReturnType<typeof useGQLRuleQuery>;
export type GQLRuleLazyQueryHookResult = ReturnType<typeof useGQLRuleLazyQuery>;
export type GQLRuleSuspenseQueryHookResult = ReturnType<
  typeof useGQLRuleSuspenseQuery
>;
export type GQLRuleQueryResult = Apollo.QueryResult<
  GQLRuleQuery,
  GQLRuleQueryVariables
>;
export const GQLContentRuleFormConfigDocument = gql`
  query ContentRuleFormConfig {
    myOrg {
      policies {
        id
        name
        parentId
      }
      itemTypes {
        ...ItemTypeFragment
      }
      actions {
        ...ActionFragment
      }
      signals {
        ...SignalsFragment
      }
    }
    me {
      permissions
    }
  }
  ${GQLItemTypeFragmentFragmentDoc}
  ${GQLActionFragmentFragmentDoc}
  ${GQLSignalsFragmentFragmentDoc}
`;

/**
 * __useGQLContentRuleFormConfigQuery__
 *
 * To run a query within a React component, call `useGQLContentRuleFormConfigQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLContentRuleFormConfigQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLContentRuleFormConfigQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLContentRuleFormConfigQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLContentRuleFormConfigQuery,
    GQLContentRuleFormConfigQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLContentRuleFormConfigQuery,
    GQLContentRuleFormConfigQueryVariables
  >(GQLContentRuleFormConfigDocument, options);
}
export function useGQLContentRuleFormConfigLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLContentRuleFormConfigQuery,
    GQLContentRuleFormConfigQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLContentRuleFormConfigQuery,
    GQLContentRuleFormConfigQueryVariables
  >(GQLContentRuleFormConfigDocument, options);
}
// @ts-ignore
export function useGQLContentRuleFormConfigSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLContentRuleFormConfigQuery,
    GQLContentRuleFormConfigQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLContentRuleFormConfigQuery,
  GQLContentRuleFormConfigQueryVariables
>;
export function useGQLContentRuleFormConfigSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLContentRuleFormConfigQuery,
        GQLContentRuleFormConfigQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLContentRuleFormConfigQuery | undefined,
  GQLContentRuleFormConfigQueryVariables
>;
export function useGQLContentRuleFormConfigSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLContentRuleFormConfigQuery,
        GQLContentRuleFormConfigQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLContentRuleFormConfigQuery,
    GQLContentRuleFormConfigQueryVariables
  >(GQLContentRuleFormConfigDocument, options);
}
export type GQLContentRuleFormConfigQueryHookResult = ReturnType<
  typeof useGQLContentRuleFormConfigQuery
>;
export type GQLContentRuleFormConfigLazyQueryHookResult = ReturnType<
  typeof useGQLContentRuleFormConfigLazyQuery
>;
export type GQLContentRuleFormConfigSuspenseQueryHookResult = ReturnType<
  typeof useGQLContentRuleFormConfigSuspenseQuery
>;
export type GQLContentRuleFormConfigQueryResult = Apollo.QueryResult<
  GQLContentRuleFormConfigQuery,
  GQLContentRuleFormConfigQueryVariables
>;
export const GQLCreateContentRuleDocument = gql`
  mutation CreateContentRule($input: CreateContentRuleInput!) {
    createContentRule(input: $input) {
      ... on MutateContentRuleSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLCreateContentRuleMutationFn = Apollo.MutationFunction<
  GQLCreateContentRuleMutation,
  GQLCreateContentRuleMutationVariables
>;

/**
 * __useGQLCreateContentRuleMutation__
 *
 * To run a mutation, you first call `useGQLCreateContentRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateContentRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateContentRuleMutation, { data, loading, error }] = useGQLCreateContentRuleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateContentRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateContentRuleMutation,
    GQLCreateContentRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateContentRuleMutation,
    GQLCreateContentRuleMutationVariables
  >(GQLCreateContentRuleDocument, options);
}
export type GQLCreateContentRuleMutationHookResult = ReturnType<
  typeof useGQLCreateContentRuleMutation
>;
export type GQLCreateContentRuleMutationResult =
  Apollo.MutationResult<GQLCreateContentRuleMutation>;
export type GQLCreateContentRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateContentRuleMutation,
  GQLCreateContentRuleMutationVariables
>;
export const GQLUpdateContentRuleDocument = gql`
  mutation UpdateContentRule($input: UpdateContentRuleInput!) {
    updateContentRule(input: $input) {
      ... on MutateContentRuleSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLUpdateContentRuleMutationFn = Apollo.MutationFunction<
  GQLUpdateContentRuleMutation,
  GQLUpdateContentRuleMutationVariables
>;

/**
 * __useGQLUpdateContentRuleMutation__
 *
 * To run a mutation, you first call `useGQLUpdateContentRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateContentRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateContentRuleMutation, { data, loading, error }] = useGQLUpdateContentRuleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateContentRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateContentRuleMutation,
    GQLUpdateContentRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateContentRuleMutation,
    GQLUpdateContentRuleMutationVariables
  >(GQLUpdateContentRuleDocument, options);
}
export type GQLUpdateContentRuleMutationHookResult = ReturnType<
  typeof useGQLUpdateContentRuleMutation
>;
export type GQLUpdateContentRuleMutationResult =
  Apollo.MutationResult<GQLUpdateContentRuleMutation>;
export type GQLUpdateContentRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateContentRuleMutation,
  GQLUpdateContentRuleMutationVariables
>;
export const GQLCreateUserRuleDocument = gql`
  mutation CreateUserRule($input: CreateUserRuleInput!) {
    createUserRule(input: $input) {
      ... on MutateUserRuleSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLCreateUserRuleMutationFn = Apollo.MutationFunction<
  GQLCreateUserRuleMutation,
  GQLCreateUserRuleMutationVariables
>;

/**
 * __useGQLCreateUserRuleMutation__
 *
 * To run a mutation, you first call `useGQLCreateUserRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLCreateUserRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlCreateUserRuleMutation, { data, loading, error }] = useGQLCreateUserRuleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLCreateUserRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLCreateUserRuleMutation,
    GQLCreateUserRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLCreateUserRuleMutation,
    GQLCreateUserRuleMutationVariables
  >(GQLCreateUserRuleDocument, options);
}
export type GQLCreateUserRuleMutationHookResult = ReturnType<
  typeof useGQLCreateUserRuleMutation
>;
export type GQLCreateUserRuleMutationResult =
  Apollo.MutationResult<GQLCreateUserRuleMutation>;
export type GQLCreateUserRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLCreateUserRuleMutation,
  GQLCreateUserRuleMutationVariables
>;
export const GQLUpdateUserRuleDocument = gql`
  mutation UpdateUserRule($input: UpdateUserRuleInput!) {
    updateUserRule(input: $input) {
      ... on MutateUserRuleSuccessResponse {
        data {
          id
        }
      }
      ... on Error {
        title
      }
    }
  }
`;
export type GQLUpdateUserRuleMutationFn = Apollo.MutationFunction<
  GQLUpdateUserRuleMutation,
  GQLUpdateUserRuleMutationVariables
>;

/**
 * __useGQLUpdateUserRuleMutation__
 *
 * To run a mutation, you first call `useGQLUpdateUserRuleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateUserRuleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateUserRuleMutation, { data, loading, error }] = useGQLUpdateUserRuleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateUserRuleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateUserRuleMutation,
    GQLUpdateUserRuleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateUserRuleMutation,
    GQLUpdateUserRuleMutationVariables
  >(GQLUpdateUserRuleDocument, options);
}
export type GQLUpdateUserRuleMutationHookResult = ReturnType<
  typeof useGQLUpdateUserRuleMutation
>;
export type GQLUpdateUserRuleMutationResult =
  Apollo.MutationResult<GQLUpdateUserRuleMutation>;
export type GQLUpdateUserRuleMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateUserRuleMutation,
  GQLUpdateUserRuleMutationVariables
>;
export const GQLRecentUserStrikeActionsDocument = gql`
  query RecentUserStrikeActions($input: RecentUserStrikeActionsInput!) {
    recentUserStrikeActions(input: $input) {
      itemId
      itemTypeId
      creatorId
      creatorTypeId
      actionId
      source
      time
    }
  }
`;

/**
 * __useGQLRecentUserStrikeActionsQuery__
 *
 * To run a query within a React component, call `useGQLRecentUserStrikeActionsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRecentUserStrikeActionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRecentUserStrikeActionsQuery({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLRecentUserStrikeActionsQuery(
  baseOptions: Apollo.QueryHookOptions<
    GQLRecentUserStrikeActionsQuery,
    GQLRecentUserStrikeActionsQueryVariables
  > &
    (
      | { variables: GQLRecentUserStrikeActionsQueryVariables; skip?: boolean }
      | { skip: boolean }
    ),
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLRecentUserStrikeActionsQuery,
    GQLRecentUserStrikeActionsQueryVariables
  >(GQLRecentUserStrikeActionsDocument, options);
}
export function useGQLRecentUserStrikeActionsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRecentUserStrikeActionsQuery,
    GQLRecentUserStrikeActionsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLRecentUserStrikeActionsQuery,
    GQLRecentUserStrikeActionsQueryVariables
  >(GQLRecentUserStrikeActionsDocument, options);
}
// @ts-ignore
export function useGQLRecentUserStrikeActionsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRecentUserStrikeActionsQuery,
    GQLRecentUserStrikeActionsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRecentUserStrikeActionsQuery,
  GQLRecentUserStrikeActionsQueryVariables
>;
export function useGQLRecentUserStrikeActionsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRecentUserStrikeActionsQuery,
        GQLRecentUserStrikeActionsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRecentUserStrikeActionsQuery | undefined,
  GQLRecentUserStrikeActionsQueryVariables
>;
export function useGQLRecentUserStrikeActionsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRecentUserStrikeActionsQuery,
        GQLRecentUserStrikeActionsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRecentUserStrikeActionsQuery,
    GQLRecentUserStrikeActionsQueryVariables
  >(GQLRecentUserStrikeActionsDocument, options);
}
export type GQLRecentUserStrikeActionsQueryHookResult = ReturnType<
  typeof useGQLRecentUserStrikeActionsQuery
>;
export type GQLRecentUserStrikeActionsLazyQueryHookResult = ReturnType<
  typeof useGQLRecentUserStrikeActionsLazyQuery
>;
export type GQLRecentUserStrikeActionsSuspenseQueryHookResult = ReturnType<
  typeof useGQLRecentUserStrikeActionsSuspenseQuery
>;
export type GQLRecentUserStrikeActionsQueryResult = Apollo.QueryResult<
  GQLRecentUserStrikeActionsQuery,
  GQLRecentUserStrikeActionsQueryVariables
>;
export const GQLUserStrikeDistributionDocument = gql`
  query UserStrikeDistribution {
    getUserStrikeCountDistribution {
      numStrikes
      numUsers
    }
  }
`;

/**
 * __useGQLUserStrikeDistributionQuery__
 *
 * To run a query within a React component, call `useGQLUserStrikeDistributionQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLUserStrikeDistributionQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLUserStrikeDistributionQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLUserStrikeDistributionQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLUserStrikeDistributionQuery,
    GQLUserStrikeDistributionQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLUserStrikeDistributionQuery,
    GQLUserStrikeDistributionQueryVariables
  >(GQLUserStrikeDistributionDocument, options);
}
export function useGQLUserStrikeDistributionLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLUserStrikeDistributionQuery,
    GQLUserStrikeDistributionQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLUserStrikeDistributionQuery,
    GQLUserStrikeDistributionQueryVariables
  >(GQLUserStrikeDistributionDocument, options);
}
// @ts-ignore
export function useGQLUserStrikeDistributionSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLUserStrikeDistributionQuery,
    GQLUserStrikeDistributionQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLUserStrikeDistributionQuery,
  GQLUserStrikeDistributionQueryVariables
>;
export function useGQLUserStrikeDistributionSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLUserStrikeDistributionQuery,
        GQLUserStrikeDistributionQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLUserStrikeDistributionQuery | undefined,
  GQLUserStrikeDistributionQueryVariables
>;
export function useGQLUserStrikeDistributionSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLUserStrikeDistributionQuery,
        GQLUserStrikeDistributionQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLUserStrikeDistributionQuery,
    GQLUserStrikeDistributionQueryVariables
  >(GQLUserStrikeDistributionDocument, options);
}
export type GQLUserStrikeDistributionQueryHookResult = ReturnType<
  typeof useGQLUserStrikeDistributionQuery
>;
export type GQLUserStrikeDistributionLazyQueryHookResult = ReturnType<
  typeof useGQLUserStrikeDistributionLazyQuery
>;
export type GQLUserStrikeDistributionSuspenseQueryHookResult = ReturnType<
  typeof useGQLUserStrikeDistributionSuspenseQuery
>;
export type GQLUserStrikeDistributionQueryResult = Apollo.QueryResult<
  GQLUserStrikeDistributionQuery,
  GQLUserStrikeDistributionQueryVariables
>;
export const GQLUserStrikeThresholdsDocument = gql`
  query UserStrikeThresholds {
    myOrg {
      userStrikeThresholds {
        id
        threshold
        actions
        actionParameters
      }
      userStrikeTTL
    }
  }
`;

/**
 * __useGQLUserStrikeThresholdsQuery__
 *
 * To run a query within a React component, call `useGQLUserStrikeThresholdsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLUserStrikeThresholdsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLUserStrikeThresholdsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLUserStrikeThresholdsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLUserStrikeThresholdsQuery,
    GQLUserStrikeThresholdsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLUserStrikeThresholdsQuery,
    GQLUserStrikeThresholdsQueryVariables
  >(GQLUserStrikeThresholdsDocument, options);
}
export function useGQLUserStrikeThresholdsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLUserStrikeThresholdsQuery,
    GQLUserStrikeThresholdsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLUserStrikeThresholdsQuery,
    GQLUserStrikeThresholdsQueryVariables
  >(GQLUserStrikeThresholdsDocument, options);
}
// @ts-ignore
export function useGQLUserStrikeThresholdsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLUserStrikeThresholdsQuery,
    GQLUserStrikeThresholdsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLUserStrikeThresholdsQuery,
  GQLUserStrikeThresholdsQueryVariables
>;
export function useGQLUserStrikeThresholdsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLUserStrikeThresholdsQuery,
        GQLUserStrikeThresholdsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLUserStrikeThresholdsQuery | undefined,
  GQLUserStrikeThresholdsQueryVariables
>;
export function useGQLUserStrikeThresholdsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLUserStrikeThresholdsQuery,
        GQLUserStrikeThresholdsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLUserStrikeThresholdsQuery,
    GQLUserStrikeThresholdsQueryVariables
  >(GQLUserStrikeThresholdsDocument, options);
}
export type GQLUserStrikeThresholdsQueryHookResult = ReturnType<
  typeof useGQLUserStrikeThresholdsQuery
>;
export type GQLUserStrikeThresholdsLazyQueryHookResult = ReturnType<
  typeof useGQLUserStrikeThresholdsLazyQuery
>;
export type GQLUserStrikeThresholdsSuspenseQueryHookResult = ReturnType<
  typeof useGQLUserStrikeThresholdsSuspenseQuery
>;
export type GQLUserStrikeThresholdsQueryResult = Apollo.QueryResult<
  GQLUserStrikeThresholdsQuery,
  GQLUserStrikeThresholdsQueryVariables
>;
export const GQLSetAllUserStrikeThresholdDocument = gql`
  mutation SetAllUserStrikeThreshold($input: SetAllUserStrikeThresholdsInput!) {
    setAllUserStrikeThresholds(input: $input) {
      ... on SetAllUserStrikeThresholdsSuccessResponse {
        _
      }
    }
  }
`;
export type GQLSetAllUserStrikeThresholdMutationFn = Apollo.MutationFunction<
  GQLSetAllUserStrikeThresholdMutation,
  GQLSetAllUserStrikeThresholdMutationVariables
>;

/**
 * __useGQLSetAllUserStrikeThresholdMutation__
 *
 * To run a mutation, you first call `useGQLSetAllUserStrikeThresholdMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLSetAllUserStrikeThresholdMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlSetAllUserStrikeThresholdMutation, { data, loading, error }] = useGQLSetAllUserStrikeThresholdMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLSetAllUserStrikeThresholdMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLSetAllUserStrikeThresholdMutation,
    GQLSetAllUserStrikeThresholdMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLSetAllUserStrikeThresholdMutation,
    GQLSetAllUserStrikeThresholdMutationVariables
  >(GQLSetAllUserStrikeThresholdDocument, options);
}
export type GQLSetAllUserStrikeThresholdMutationHookResult = ReturnType<
  typeof useGQLSetAllUserStrikeThresholdMutation
>;
export type GQLSetAllUserStrikeThresholdMutationResult =
  Apollo.MutationResult<GQLSetAllUserStrikeThresholdMutation>;
export type GQLSetAllUserStrikeThresholdMutationOptions =
  Apollo.BaseMutationOptions<
    GQLSetAllUserStrikeThresholdMutation,
    GQLSetAllUserStrikeThresholdMutationVariables
  >;
export const GQLUpdateUserStrikeTtlDocument = gql`
  mutation UpdateUserStrikeTTL($input: UpdateUserStrikeTTLInput!) {
    updateUserStrikeTTL(input: $input) {
      ... on UpdateUserStrikeTTLSuccessResponse {
        _
      }
    }
  }
`;
export type GQLUpdateUserStrikeTtlMutationFn = Apollo.MutationFunction<
  GQLUpdateUserStrikeTtlMutation,
  GQLUpdateUserStrikeTtlMutationVariables
>;

/**
 * __useGQLUpdateUserStrikeTtlMutation__
 *
 * To run a mutation, you first call `useGQLUpdateUserStrikeTtlMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateUserStrikeTtlMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateUserStrikeTtlMutation, { data, loading, error }] = useGQLUpdateUserStrikeTtlMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateUserStrikeTtlMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateUserStrikeTtlMutation,
    GQLUpdateUserStrikeTtlMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateUserStrikeTtlMutation,
    GQLUpdateUserStrikeTtlMutationVariables
  >(GQLUpdateUserStrikeTtlDocument, options);
}
export type GQLUpdateUserStrikeTtlMutationHookResult = ReturnType<
  typeof useGQLUpdateUserStrikeTtlMutation
>;
export type GQLUpdateUserStrikeTtlMutationResult =
  Apollo.MutationResult<GQLUpdateUserStrikeTtlMutation>;
export type GQLUpdateUserStrikeTtlMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateUserStrikeTtlMutation,
  GQLUpdateUserStrikeTtlMutationVariables
>;
export const GQLAccountSettingsDocument = gql`
  query AccountSettings {
    me {
      id
      email
      firstName
      lastName
      loginMethods
    }
  }
`;

/**
 * __useGQLAccountSettingsQuery__
 *
 * To run a query within a React component, call `useGQLAccountSettingsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLAccountSettingsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLAccountSettingsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLAccountSettingsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLAccountSettingsQuery,
    GQLAccountSettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLAccountSettingsQuery,
    GQLAccountSettingsQueryVariables
  >(GQLAccountSettingsDocument, options);
}
export function useGQLAccountSettingsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLAccountSettingsQuery,
    GQLAccountSettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLAccountSettingsQuery,
    GQLAccountSettingsQueryVariables
  >(GQLAccountSettingsDocument, options);
}
// @ts-ignore
export function useGQLAccountSettingsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLAccountSettingsQuery,
    GQLAccountSettingsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLAccountSettingsQuery,
  GQLAccountSettingsQueryVariables
>;
export function useGQLAccountSettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLAccountSettingsQuery,
        GQLAccountSettingsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLAccountSettingsQuery | undefined,
  GQLAccountSettingsQueryVariables
>;
export function useGQLAccountSettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLAccountSettingsQuery,
        GQLAccountSettingsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLAccountSettingsQuery,
    GQLAccountSettingsQueryVariables
  >(GQLAccountSettingsDocument, options);
}
export type GQLAccountSettingsQueryHookResult = ReturnType<
  typeof useGQLAccountSettingsQuery
>;
export type GQLAccountSettingsLazyQueryHookResult = ReturnType<
  typeof useGQLAccountSettingsLazyQuery
>;
export type GQLAccountSettingsSuspenseQueryHookResult = ReturnType<
  typeof useGQLAccountSettingsSuspenseQuery
>;
export type GQLAccountSettingsQueryResult = Apollo.QueryResult<
  GQLAccountSettingsQuery,
  GQLAccountSettingsQueryVariables
>;
export const GQLPersonalSafetySettingsDocument = gql`
  query PersonalSafetySettings {
    me {
      interfacePreferences {
        moderatorSafetyMuteVideo
        moderatorSafetyGrayscale
        moderatorSafetyBlurLevel
        moderatorSafetySepia
      }
    }
  }
`;

/**
 * __useGQLPersonalSafetySettingsQuery__
 *
 * To run a query within a React component, call `useGQLPersonalSafetySettingsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLPersonalSafetySettingsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLPersonalSafetySettingsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLPersonalSafetySettingsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLPersonalSafetySettingsQuery,
    GQLPersonalSafetySettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLPersonalSafetySettingsQuery,
    GQLPersonalSafetySettingsQueryVariables
  >(GQLPersonalSafetySettingsDocument, options);
}
export function useGQLPersonalSafetySettingsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLPersonalSafetySettingsQuery,
    GQLPersonalSafetySettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLPersonalSafetySettingsQuery,
    GQLPersonalSafetySettingsQueryVariables
  >(GQLPersonalSafetySettingsDocument, options);
}
// @ts-ignore
export function useGQLPersonalSafetySettingsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLPersonalSafetySettingsQuery,
    GQLPersonalSafetySettingsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLPersonalSafetySettingsQuery,
  GQLPersonalSafetySettingsQueryVariables
>;
export function useGQLPersonalSafetySettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPersonalSafetySettingsQuery,
        GQLPersonalSafetySettingsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLPersonalSafetySettingsQuery | undefined,
  GQLPersonalSafetySettingsQueryVariables
>;
export function useGQLPersonalSafetySettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPersonalSafetySettingsQuery,
        GQLPersonalSafetySettingsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLPersonalSafetySettingsQuery,
    GQLPersonalSafetySettingsQueryVariables
  >(GQLPersonalSafetySettingsDocument, options);
}
export type GQLPersonalSafetySettingsQueryHookResult = ReturnType<
  typeof useGQLPersonalSafetySettingsQuery
>;
export type GQLPersonalSafetySettingsLazyQueryHookResult = ReturnType<
  typeof useGQLPersonalSafetySettingsLazyQuery
>;
export type GQLPersonalSafetySettingsSuspenseQueryHookResult = ReturnType<
  typeof useGQLPersonalSafetySettingsSuspenseQuery
>;
export type GQLPersonalSafetySettingsQueryResult = Apollo.QueryResult<
  GQLPersonalSafetySettingsQuery,
  GQLPersonalSafetySettingsQueryVariables
>;
export const GQLUpdateAccountInfoDocument = gql`
  mutation UpdateAccountInfo($firstName: String, $lastName: String) {
    updateAccountInfo(firstName: $firstName, lastName: $lastName)
  }
`;
export type GQLUpdateAccountInfoMutationFn = Apollo.MutationFunction<
  GQLUpdateAccountInfoMutation,
  GQLUpdateAccountInfoMutationVariables
>;

/**
 * __useGQLUpdateAccountInfoMutation__
 *
 * To run a mutation, you first call `useGQLUpdateAccountInfoMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateAccountInfoMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateAccountInfoMutation, { data, loading, error }] = useGQLUpdateAccountInfoMutation({
 *   variables: {
 *      firstName: // value for 'firstName'
 *      lastName: // value for 'lastName'
 *   },
 * });
 */
export function useGQLUpdateAccountInfoMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateAccountInfoMutation,
    GQLUpdateAccountInfoMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateAccountInfoMutation,
    GQLUpdateAccountInfoMutationVariables
  >(GQLUpdateAccountInfoDocument, options);
}
export type GQLUpdateAccountInfoMutationHookResult = ReturnType<
  typeof useGQLUpdateAccountInfoMutation
>;
export type GQLUpdateAccountInfoMutationResult =
  Apollo.MutationResult<GQLUpdateAccountInfoMutation>;
export type GQLUpdateAccountInfoMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateAccountInfoMutation,
  GQLUpdateAccountInfoMutationVariables
>;
export const GQLChangePasswordDocument = gql`
  mutation ChangePassword($input: ChangePasswordInput!) {
    changePassword(input: $input) {
      __typename
      ... on ChangePasswordSuccessResponse {
        _
      }
      ... on ChangePasswordError {
        title
        detail
      }
    }
  }
`;
export type GQLChangePasswordMutationFn = Apollo.MutationFunction<
  GQLChangePasswordMutation,
  GQLChangePasswordMutationVariables
>;

/**
 * __useGQLChangePasswordMutation__
 *
 * To run a mutation, you first call `useGQLChangePasswordMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLChangePasswordMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlChangePasswordMutation, { data, loading, error }] = useGQLChangePasswordMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLChangePasswordMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLChangePasswordMutation,
    GQLChangePasswordMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLChangePasswordMutation,
    GQLChangePasswordMutationVariables
  >(GQLChangePasswordDocument, options);
}
export type GQLChangePasswordMutationHookResult = ReturnType<
  typeof useGQLChangePasswordMutation
>;
export type GQLChangePasswordMutationResult =
  Apollo.MutationResult<GQLChangePasswordMutation>;
export type GQLChangePasswordMutationOptions = Apollo.BaseMutationOptions<
  GQLChangePasswordMutation,
  GQLChangePasswordMutationVariables
>;
export const GQLRolesForOrgDocument = gql`
  query RolesForOrg {
    rolesForOrg {
      id
      key
      displayName
      description
      isSystem
      isFallback
      permissions
      userCount
    }
  }
`;

/**
 * __useGQLRolesForOrgQuery__
 *
 * To run a query within a React component, call `useGQLRolesForOrgQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLRolesForOrgQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLRolesForOrgQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLRolesForOrgQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLRolesForOrgQuery,
    GQLRolesForOrgQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLRolesForOrgQuery, GQLRolesForOrgQueryVariables>(
    GQLRolesForOrgDocument,
    options,
  );
}
export function useGQLRolesForOrgLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLRolesForOrgQuery,
    GQLRolesForOrgQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLRolesForOrgQuery, GQLRolesForOrgQueryVariables>(
    GQLRolesForOrgDocument,
    options,
  );
}
// @ts-ignore
export function useGQLRolesForOrgSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLRolesForOrgQuery,
    GQLRolesForOrgQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLRolesForOrgQuery,
  GQLRolesForOrgQueryVariables
>;
export function useGQLRolesForOrgSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRolesForOrgQuery,
        GQLRolesForOrgQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLRolesForOrgQuery | undefined,
  GQLRolesForOrgQueryVariables
>;
export function useGQLRolesForOrgSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLRolesForOrgQuery,
        GQLRolesForOrgQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLRolesForOrgQuery,
    GQLRolesForOrgQueryVariables
  >(GQLRolesForOrgDocument, options);
}
export type GQLRolesForOrgQueryHookResult = ReturnType<
  typeof useGQLRolesForOrgQuery
>;
export type GQLRolesForOrgLazyQueryHookResult = ReturnType<
  typeof useGQLRolesForOrgLazyQuery
>;
export type GQLRolesForOrgSuspenseQueryHookResult = ReturnType<
  typeof useGQLRolesForOrgSuspenseQuery
>;
export type GQLRolesForOrgQueryResult = Apollo.QueryResult<
  GQLRolesForOrgQuery,
  GQLRolesForOrgQueryVariables
>;
export const GQLManageUsersDocument = gql`
  query ManageUsers {
    myOrg {
      id
      name
      hasNCMECReportingEnabled
      users {
        id
        firstName
        lastName
        email
        role
        createdAt
        approvedByAdmin
        rejectedByAdmin
      }
      pendingInvites {
        id
        email
        role
        createdAt
      }
    }
    me {
      id
      email
      firstName
      lastName
      permissions
    }
  }
`;

/**
 * __useGQLManageUsersQuery__
 *
 * To run a query within a React component, call `useGQLManageUsersQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLManageUsersQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLManageUsersQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLManageUsersQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLManageUsersQuery,
    GQLManageUsersQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLManageUsersQuery, GQLManageUsersQueryVariables>(
    GQLManageUsersDocument,
    options,
  );
}
export function useGQLManageUsersLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLManageUsersQuery,
    GQLManageUsersQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLManageUsersQuery, GQLManageUsersQueryVariables>(
    GQLManageUsersDocument,
    options,
  );
}
// @ts-ignore
export function useGQLManageUsersSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLManageUsersQuery,
    GQLManageUsersQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLManageUsersQuery,
  GQLManageUsersQueryVariables
>;
export function useGQLManageUsersSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManageUsersQuery,
        GQLManageUsersQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLManageUsersQuery | undefined,
  GQLManageUsersQueryVariables
>;
export function useGQLManageUsersSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLManageUsersQuery,
        GQLManageUsersQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLManageUsersQuery,
    GQLManageUsersQueryVariables
  >(GQLManageUsersDocument, options);
}
export type GQLManageUsersQueryHookResult = ReturnType<
  typeof useGQLManageUsersQuery
>;
export type GQLManageUsersLazyQueryHookResult = ReturnType<
  typeof useGQLManageUsersLazyQuery
>;
export type GQLManageUsersSuspenseQueryHookResult = ReturnType<
  typeof useGQLManageUsersSuspenseQuery
>;
export type GQLManageUsersQueryResult = Apollo.QueryResult<
  GQLManageUsersQuery,
  GQLManageUsersQueryVariables
>;
export const GQLDeleteUserDocument = gql`
  mutation DeleteUser($id: ID!) {
    deleteUser(id: $id)
  }
`;
export type GQLDeleteUserMutationFn = Apollo.MutationFunction<
  GQLDeleteUserMutation,
  GQLDeleteUserMutationVariables
>;

/**
 * __useGQLDeleteUserMutation__
 *
 * To run a mutation, you first call `useGQLDeleteUserMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteUserMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteUserMutation, { data, loading, error }] = useGQLDeleteUserMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteUserMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteUserMutation,
    GQLDeleteUserMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteUserMutation,
    GQLDeleteUserMutationVariables
  >(GQLDeleteUserDocument, options);
}
export type GQLDeleteUserMutationHookResult = ReturnType<
  typeof useGQLDeleteUserMutation
>;
export type GQLDeleteUserMutationResult =
  Apollo.MutationResult<GQLDeleteUserMutation>;
export type GQLDeleteUserMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteUserMutation,
  GQLDeleteUserMutationVariables
>;
export const GQLUpdateRoleDocument = gql`
  mutation UpdateRole($input: UpdateRoleInput!) {
    updateRole(input: $input)
  }
`;
export type GQLUpdateRoleMutationFn = Apollo.MutationFunction<
  GQLUpdateRoleMutation,
  GQLUpdateRoleMutationVariables
>;

/**
 * __useGQLUpdateRoleMutation__
 *
 * To run a mutation, you first call `useGQLUpdateRoleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateRoleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateRoleMutation, { data, loading, error }] = useGQLUpdateRoleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateRoleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateRoleMutation,
    GQLUpdateRoleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateRoleMutation,
    GQLUpdateRoleMutationVariables
  >(GQLUpdateRoleDocument, options);
}
export type GQLUpdateRoleMutationHookResult = ReturnType<
  typeof useGQLUpdateRoleMutation
>;
export type GQLUpdateRoleMutationResult =
  Apollo.MutationResult<GQLUpdateRoleMutation>;
export type GQLUpdateRoleMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateRoleMutation,
  GQLUpdateRoleMutationVariables
>;
export const GQLApproveUserDocument = gql`
  mutation ApproveUser($id: ID!) {
    approveUser(id: $id)
  }
`;
export type GQLApproveUserMutationFn = Apollo.MutationFunction<
  GQLApproveUserMutation,
  GQLApproveUserMutationVariables
>;

/**
 * __useGQLApproveUserMutation__
 *
 * To run a mutation, you first call `useGQLApproveUserMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLApproveUserMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlApproveUserMutation, { data, loading, error }] = useGQLApproveUserMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLApproveUserMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLApproveUserMutation,
    GQLApproveUserMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLApproveUserMutation,
    GQLApproveUserMutationVariables
  >(GQLApproveUserDocument, options);
}
export type GQLApproveUserMutationHookResult = ReturnType<
  typeof useGQLApproveUserMutation
>;
export type GQLApproveUserMutationResult =
  Apollo.MutationResult<GQLApproveUserMutation>;
export type GQLApproveUserMutationOptions = Apollo.BaseMutationOptions<
  GQLApproveUserMutation,
  GQLApproveUserMutationVariables
>;
export const GQLRejectUserDocument = gql`
  mutation RejectUser($id: ID!) {
    rejectUser(id: $id)
  }
`;
export type GQLRejectUserMutationFn = Apollo.MutationFunction<
  GQLRejectUserMutation,
  GQLRejectUserMutationVariables
>;

/**
 * __useGQLRejectUserMutation__
 *
 * To run a mutation, you first call `useGQLRejectUserMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLRejectUserMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlRejectUserMutation, { data, loading, error }] = useGQLRejectUserMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLRejectUserMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLRejectUserMutation,
    GQLRejectUserMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLRejectUserMutation,
    GQLRejectUserMutationVariables
  >(GQLRejectUserDocument, options);
}
export type GQLRejectUserMutationHookResult = ReturnType<
  typeof useGQLRejectUserMutation
>;
export type GQLRejectUserMutationResult =
  Apollo.MutationResult<GQLRejectUserMutation>;
export type GQLRejectUserMutationOptions = Apollo.BaseMutationOptions<
  GQLRejectUserMutation,
  GQLRejectUserMutationVariables
>;
export const GQLDeleteInviteDocument = gql`
  mutation DeleteInvite($id: ID!) {
    deleteInvite(id: $id)
  }
`;
export type GQLDeleteInviteMutationFn = Apollo.MutationFunction<
  GQLDeleteInviteMutation,
  GQLDeleteInviteMutationVariables
>;

/**
 * __useGQLDeleteInviteMutation__
 *
 * To run a mutation, you first call `useGQLDeleteInviteMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLDeleteInviteMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlDeleteInviteMutation, { data, loading, error }] = useGQLDeleteInviteMutation({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useGQLDeleteInviteMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLDeleteInviteMutation,
    GQLDeleteInviteMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLDeleteInviteMutation,
    GQLDeleteInviteMutationVariables
  >(GQLDeleteInviteDocument, options);
}
export type GQLDeleteInviteMutationHookResult = ReturnType<
  typeof useGQLDeleteInviteMutation
>;
export type GQLDeleteInviteMutationResult =
  Apollo.MutationResult<GQLDeleteInviteMutation>;
export type GQLDeleteInviteMutationOptions = Apollo.BaseMutationOptions<
  GQLDeleteInviteMutation,
  GQLDeleteInviteMutationVariables
>;
export const GQLGeneratePasswordResetTokenDocument = gql`
  mutation GeneratePasswordResetToken($userId: ID!) {
    generatePasswordResetToken(userId: $userId)
  }
`;
export type GQLGeneratePasswordResetTokenMutationFn = Apollo.MutationFunction<
  GQLGeneratePasswordResetTokenMutation,
  GQLGeneratePasswordResetTokenMutationVariables
>;

/**
 * __useGQLGeneratePasswordResetTokenMutation__
 *
 * To run a mutation, you first call `useGQLGeneratePasswordResetTokenMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLGeneratePasswordResetTokenMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlGeneratePasswordResetTokenMutation, { data, loading, error }] = useGQLGeneratePasswordResetTokenMutation({
 *   variables: {
 *      userId: // value for 'userId'
 *   },
 * });
 */
export function useGQLGeneratePasswordResetTokenMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLGeneratePasswordResetTokenMutation,
    GQLGeneratePasswordResetTokenMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLGeneratePasswordResetTokenMutation,
    GQLGeneratePasswordResetTokenMutationVariables
  >(GQLGeneratePasswordResetTokenDocument, options);
}
export type GQLGeneratePasswordResetTokenMutationHookResult = ReturnType<
  typeof useGQLGeneratePasswordResetTokenMutation
>;
export type GQLGeneratePasswordResetTokenMutationResult =
  Apollo.MutationResult<GQLGeneratePasswordResetTokenMutation>;
export type GQLGeneratePasswordResetTokenMutationOptions =
  Apollo.BaseMutationOptions<
    GQLGeneratePasswordResetTokenMutation,
    GQLGeneratePasswordResetTokenMutationVariables
  >;
export const GQLHasNcmecReportingEnabledDocument = gql`
  query HasNcmecReportingEnabled {
    myOrg {
      hasNCMECReportingEnabled
    }
  }
`;

/**
 * __useGQLHasNcmecReportingEnabledQuery__
 *
 * To run a query within a React component, call `useGQLHasNcmecReportingEnabledQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLHasNcmecReportingEnabledQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLHasNcmecReportingEnabledQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLHasNcmecReportingEnabledQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLHasNcmecReportingEnabledQuery,
    GQLHasNcmecReportingEnabledQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLHasNcmecReportingEnabledQuery,
    GQLHasNcmecReportingEnabledQueryVariables
  >(GQLHasNcmecReportingEnabledDocument, options);
}
export function useGQLHasNcmecReportingEnabledLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLHasNcmecReportingEnabledQuery,
    GQLHasNcmecReportingEnabledQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLHasNcmecReportingEnabledQuery,
    GQLHasNcmecReportingEnabledQueryVariables
  >(GQLHasNcmecReportingEnabledDocument, options);
}
// @ts-ignore
export function useGQLHasNcmecReportingEnabledSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLHasNcmecReportingEnabledQuery,
    GQLHasNcmecReportingEnabledQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLHasNcmecReportingEnabledQuery,
  GQLHasNcmecReportingEnabledQueryVariables
>;
export function useGQLHasNcmecReportingEnabledSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLHasNcmecReportingEnabledQuery,
        GQLHasNcmecReportingEnabledQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLHasNcmecReportingEnabledQuery | undefined,
  GQLHasNcmecReportingEnabledQueryVariables
>;
export function useGQLHasNcmecReportingEnabledSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLHasNcmecReportingEnabledQuery,
        GQLHasNcmecReportingEnabledQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLHasNcmecReportingEnabledQuery,
    GQLHasNcmecReportingEnabledQueryVariables
  >(GQLHasNcmecReportingEnabledDocument, options);
}
export type GQLHasNcmecReportingEnabledQueryHookResult = ReturnType<
  typeof useGQLHasNcmecReportingEnabledQuery
>;
export type GQLHasNcmecReportingEnabledLazyQueryHookResult = ReturnType<
  typeof useGQLHasNcmecReportingEnabledLazyQuery
>;
export type GQLHasNcmecReportingEnabledSuspenseQueryHookResult = ReturnType<
  typeof useGQLHasNcmecReportingEnabledSuspenseQuery
>;
export type GQLHasNcmecReportingEnabledQueryResult = Apollo.QueryResult<
  GQLHasNcmecReportingEnabledQuery,
  GQLHasNcmecReportingEnabledQueryVariables
>;
export const GQLInviteUserDocument = gql`
  mutation InviteUser($input: InviteUserInput!) {
    inviteUser(input: $input)
  }
`;
export type GQLInviteUserMutationFn = Apollo.MutationFunction<
  GQLInviteUserMutation,
  GQLInviteUserMutationVariables
>;

/**
 * __useGQLInviteUserMutation__
 *
 * To run a mutation, you first call `useGQLInviteUserMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLInviteUserMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlInviteUserMutation, { data, loading, error }] = useGQLInviteUserMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLInviteUserMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLInviteUserMutation,
    GQLInviteUserMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLInviteUserMutation,
    GQLInviteUserMutationVariables
  >(GQLInviteUserDocument, options);
}
export type GQLInviteUserMutationHookResult = ReturnType<
  typeof useGQLInviteUserMutation
>;
export type GQLInviteUserMutationResult =
  Apollo.MutationResult<GQLInviteUserMutation>;
export type GQLInviteUserMutationOptions = Apollo.BaseMutationOptions<
  GQLInviteUserMutation,
  GQLInviteUserMutationVariables
>;
export const GQLNcmecOrgSettingsDocument = gql`
  query NcmecOrgSettings {
    me {
      permissions
    }
    ncmecOrgSettings {
      username
      password
      contactEmail
      moreInfoUrl
      companyTemplate
      legalUrl
      ncmecPreservationEndpoint
      ncmecAdditionalInfoEndpoint
      defaultNcmecQueueId
      defaultInternetDetailType
      termsOfService
      contactPersonEmail
      contactPersonFirstName
      contactPersonLastName
      contactPersonPhone
      mediaReviewRequirement
      minMediaToReview
    }
    myOrg {
      hasNCMECReportingEnabled
      mrtQueues {
        id
        name
      }
    }
  }
`;

/**
 * __useGQLNcmecOrgSettingsQuery__
 *
 * To run a query within a React component, call `useGQLNcmecOrgSettingsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLNcmecOrgSettingsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLNcmecOrgSettingsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLNcmecOrgSettingsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLNcmecOrgSettingsQuery,
    GQLNcmecOrgSettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLNcmecOrgSettingsQuery,
    GQLNcmecOrgSettingsQueryVariables
  >(GQLNcmecOrgSettingsDocument, options);
}
export function useGQLNcmecOrgSettingsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLNcmecOrgSettingsQuery,
    GQLNcmecOrgSettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLNcmecOrgSettingsQuery,
    GQLNcmecOrgSettingsQueryVariables
  >(GQLNcmecOrgSettingsDocument, options);
}
// @ts-ignore
export function useGQLNcmecOrgSettingsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLNcmecOrgSettingsQuery,
    GQLNcmecOrgSettingsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLNcmecOrgSettingsQuery,
  GQLNcmecOrgSettingsQueryVariables
>;
export function useGQLNcmecOrgSettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLNcmecOrgSettingsQuery,
        GQLNcmecOrgSettingsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLNcmecOrgSettingsQuery | undefined,
  GQLNcmecOrgSettingsQueryVariables
>;
export function useGQLNcmecOrgSettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLNcmecOrgSettingsQuery,
        GQLNcmecOrgSettingsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLNcmecOrgSettingsQuery,
    GQLNcmecOrgSettingsQueryVariables
  >(GQLNcmecOrgSettingsDocument, options);
}
export type GQLNcmecOrgSettingsQueryHookResult = ReturnType<
  typeof useGQLNcmecOrgSettingsQuery
>;
export type GQLNcmecOrgSettingsLazyQueryHookResult = ReturnType<
  typeof useGQLNcmecOrgSettingsLazyQuery
>;
export type GQLNcmecOrgSettingsSuspenseQueryHookResult = ReturnType<
  typeof useGQLNcmecOrgSettingsSuspenseQuery
>;
export type GQLNcmecOrgSettingsQueryResult = Apollo.QueryResult<
  GQLNcmecOrgSettingsQuery,
  GQLNcmecOrgSettingsQueryVariables
>;
export const GQLUpdateNcmecOrgSettingsDocument = gql`
  mutation UpdateNcmecOrgSettings($input: NcmecOrgSettingsInput!) {
    updateNcmecOrgSettings(input: $input) {
      success
    }
  }
`;
export type GQLUpdateNcmecOrgSettingsMutationFn = Apollo.MutationFunction<
  GQLUpdateNcmecOrgSettingsMutation,
  GQLUpdateNcmecOrgSettingsMutationVariables
>;

/**
 * __useGQLUpdateNcmecOrgSettingsMutation__
 *
 * To run a mutation, you first call `useGQLUpdateNcmecOrgSettingsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateNcmecOrgSettingsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateNcmecOrgSettingsMutation, { data, loading, error }] = useGQLUpdateNcmecOrgSettingsMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateNcmecOrgSettingsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateNcmecOrgSettingsMutation,
    GQLUpdateNcmecOrgSettingsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateNcmecOrgSettingsMutation,
    GQLUpdateNcmecOrgSettingsMutationVariables
  >(GQLUpdateNcmecOrgSettingsDocument, options);
}
export type GQLUpdateNcmecOrgSettingsMutationHookResult = ReturnType<
  typeof useGQLUpdateNcmecOrgSettingsMutation
>;
export type GQLUpdateNcmecOrgSettingsMutationResult =
  Apollo.MutationResult<GQLUpdateNcmecOrgSettingsMutation>;
export type GQLUpdateNcmecOrgSettingsMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateNcmecOrgSettingsMutation,
    GQLUpdateNcmecOrgSettingsMutationVariables
  >;
export const GQLPermissionGroupsDocument = gql`
  query PermissionGroups {
    permissionGroups {
      key
      label
      description
      permissions {
        permission
        label
        description
      }
    }
  }
`;

/**
 * __useGQLPermissionGroupsQuery__
 *
 * To run a query within a React component, call `useGQLPermissionGroupsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLPermissionGroupsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLPermissionGroupsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLPermissionGroupsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLPermissionGroupsQuery,
    GQLPermissionGroupsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLPermissionGroupsQuery,
    GQLPermissionGroupsQueryVariables
  >(GQLPermissionGroupsDocument, options);
}
export function useGQLPermissionGroupsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLPermissionGroupsQuery,
    GQLPermissionGroupsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLPermissionGroupsQuery,
    GQLPermissionGroupsQueryVariables
  >(GQLPermissionGroupsDocument, options);
}
// @ts-ignore
export function useGQLPermissionGroupsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLPermissionGroupsQuery,
    GQLPermissionGroupsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLPermissionGroupsQuery,
  GQLPermissionGroupsQueryVariables
>;
export function useGQLPermissionGroupsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPermissionGroupsQuery,
        GQLPermissionGroupsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLPermissionGroupsQuery | undefined,
  GQLPermissionGroupsQueryVariables
>;
export function useGQLPermissionGroupsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLPermissionGroupsQuery,
        GQLPermissionGroupsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLPermissionGroupsQuery,
    GQLPermissionGroupsQueryVariables
  >(GQLPermissionGroupsDocument, options);
}
export type GQLPermissionGroupsQueryHookResult = ReturnType<
  typeof useGQLPermissionGroupsQuery
>;
export type GQLPermissionGroupsLazyQueryHookResult = ReturnType<
  typeof useGQLPermissionGroupsLazyQuery
>;
export type GQLPermissionGroupsSuspenseQueryHookResult = ReturnType<
  typeof useGQLPermissionGroupsSuspenseQuery
>;
export type GQLPermissionGroupsQueryResult = Apollo.QueryResult<
  GQLPermissionGroupsQuery,
  GQLPermissionGroupsQueryVariables
>;
export const GQLUpdateRolePermissionsDocument = gql`
  mutation UpdateRolePermissions($input: UpdateRolePermissionsInput!) {
    updateRolePermissions(input: $input) {
      id
      key
      displayName
      description
      isSystem
      isFallback
      permissions
      userCount
    }
  }
`;
export type GQLUpdateRolePermissionsMutationFn = Apollo.MutationFunction<
  GQLUpdateRolePermissionsMutation,
  GQLUpdateRolePermissionsMutationVariables
>;

/**
 * __useGQLUpdateRolePermissionsMutation__
 *
 * To run a mutation, you first call `useGQLUpdateRolePermissionsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateRolePermissionsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateRolePermissionsMutation, { data, loading, error }] = useGQLUpdateRolePermissionsMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateRolePermissionsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateRolePermissionsMutation,
    GQLUpdateRolePermissionsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateRolePermissionsMutation,
    GQLUpdateRolePermissionsMutationVariables
  >(GQLUpdateRolePermissionsDocument, options);
}
export type GQLUpdateRolePermissionsMutationHookResult = ReturnType<
  typeof useGQLUpdateRolePermissionsMutation
>;
export type GQLUpdateRolePermissionsMutationResult =
  Apollo.MutationResult<GQLUpdateRolePermissionsMutation>;
export type GQLUpdateRolePermissionsMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateRolePermissionsMutation,
    GQLUpdateRolePermissionsMutationVariables
  >;
export const GQLRenameRoleDocument = gql`
  mutation RenameRole($input: RenameRoleInput!) {
    renameRole(input: $input) {
      id
      key
      displayName
      description
      isSystem
      isFallback
      permissions
      userCount
    }
  }
`;
export type GQLRenameRoleMutationFn = Apollo.MutationFunction<
  GQLRenameRoleMutation,
  GQLRenameRoleMutationVariables
>;

/**
 * __useGQLRenameRoleMutation__
 *
 * To run a mutation, you first call `useGQLRenameRoleMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLRenameRoleMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlRenameRoleMutation, { data, loading, error }] = useGQLRenameRoleMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLRenameRoleMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLRenameRoleMutation,
    GQLRenameRoleMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLRenameRoleMutation,
    GQLRenameRoleMutationVariables
  >(GQLRenameRoleDocument, options);
}
export type GQLRenameRoleMutationHookResult = ReturnType<
  typeof useGQLRenameRoleMutation
>;
export type GQLRenameRoleMutationResult =
  Apollo.MutationResult<GQLRenameRoleMutation>;
export type GQLRenameRoleMutationOptions = Apollo.BaseMutationOptions<
  GQLRenameRoleMutation,
  GQLRenameRoleMutationVariables
>;
export const GQLDeploymentSettingsDocument = gql`
  query DeploymentSettings {
    me {
      id
      permissions
    }
    myOrg {
      id
      hasAppealsEnabled
      hasReportingRulesEnabled
      allowMultiplePoliciesPerAction
      requiresPolicyForDecisionsInMrt
      requiresDecisionReasonInMrt
      requiresDecisionReasonOnIgnoreInMrt
      previewJobsViewEnabled
      hideSkipButtonForNonAdmins
      userStrikeTTL
      samlEnabled
      ssoUrl
      ssoCert
      ignoreCallbackUrl
      partialItemsEndpoint
      partialItemsRequestHeaders
    }
    appealSettings {
      appealsCallbackUrl
      appealsCallbackHeaders
      appealsCallbackBody
    }
  }
`;

/**
 * __useGQLDeploymentSettingsQuery__
 *
 * To run a query within a React component, call `useGQLDeploymentSettingsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLDeploymentSettingsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLDeploymentSettingsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLDeploymentSettingsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLDeploymentSettingsQuery,
    GQLDeploymentSettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLDeploymentSettingsQuery,
    GQLDeploymentSettingsQueryVariables
  >(GQLDeploymentSettingsDocument, options);
}
export function useGQLDeploymentSettingsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLDeploymentSettingsQuery,
    GQLDeploymentSettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLDeploymentSettingsQuery,
    GQLDeploymentSettingsQueryVariables
  >(GQLDeploymentSettingsDocument, options);
}
// @ts-ignore
export function useGQLDeploymentSettingsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLDeploymentSettingsQuery,
    GQLDeploymentSettingsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLDeploymentSettingsQuery,
  GQLDeploymentSettingsQueryVariables
>;
export function useGQLDeploymentSettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLDeploymentSettingsQuery,
        GQLDeploymentSettingsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLDeploymentSettingsQuery | undefined,
  GQLDeploymentSettingsQueryVariables
>;
export function useGQLDeploymentSettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLDeploymentSettingsQuery,
        GQLDeploymentSettingsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLDeploymentSettingsQuery,
    GQLDeploymentSettingsQueryVariables
  >(GQLDeploymentSettingsDocument, options);
}
export type GQLDeploymentSettingsQueryHookResult = ReturnType<
  typeof useGQLDeploymentSettingsQuery
>;
export type GQLDeploymentSettingsLazyQueryHookResult = ReturnType<
  typeof useGQLDeploymentSettingsLazyQuery
>;
export type GQLDeploymentSettingsSuspenseQueryHookResult = ReturnType<
  typeof useGQLDeploymentSettingsSuspenseQuery
>;
export type GQLDeploymentSettingsQueryResult = Apollo.QueryResult<
  GQLDeploymentSettingsQuery,
  GQLDeploymentSettingsQueryVariables
>;
export const GQLUpdateHasAppealsEnabledDocument = gql`
  mutation UpdateHasAppealsEnabled($enabled: Boolean!) {
    updateHasAppealsEnabled(enabled: $enabled)
  }
`;
export type GQLUpdateHasAppealsEnabledMutationFn = Apollo.MutationFunction<
  GQLUpdateHasAppealsEnabledMutation,
  GQLUpdateHasAppealsEnabledMutationVariables
>;

/**
 * __useGQLUpdateHasAppealsEnabledMutation__
 *
 * To run a mutation, you first call `useGQLUpdateHasAppealsEnabledMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateHasAppealsEnabledMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateHasAppealsEnabledMutation, { data, loading, error }] = useGQLUpdateHasAppealsEnabledMutation({
 *   variables: {
 *      enabled: // value for 'enabled'
 *   },
 * });
 */
export function useGQLUpdateHasAppealsEnabledMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateHasAppealsEnabledMutation,
    GQLUpdateHasAppealsEnabledMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateHasAppealsEnabledMutation,
    GQLUpdateHasAppealsEnabledMutationVariables
  >(GQLUpdateHasAppealsEnabledDocument, options);
}
export type GQLUpdateHasAppealsEnabledMutationHookResult = ReturnType<
  typeof useGQLUpdateHasAppealsEnabledMutation
>;
export type GQLUpdateHasAppealsEnabledMutationResult =
  Apollo.MutationResult<GQLUpdateHasAppealsEnabledMutation>;
export type GQLUpdateHasAppealsEnabledMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateHasAppealsEnabledMutation,
    GQLUpdateHasAppealsEnabledMutationVariables
  >;
export const GQLUpdateHasReportingRulesEnabledDocument = gql`
  mutation UpdateHasReportingRulesEnabled($enabled: Boolean!) {
    updateHasReportingRulesEnabled(enabled: $enabled)
  }
`;
export type GQLUpdateHasReportingRulesEnabledMutationFn =
  Apollo.MutationFunction<
    GQLUpdateHasReportingRulesEnabledMutation,
    GQLUpdateHasReportingRulesEnabledMutationVariables
  >;

/**
 * __useGQLUpdateHasReportingRulesEnabledMutation__
 *
 * To run a mutation, you first call `useGQLUpdateHasReportingRulesEnabledMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateHasReportingRulesEnabledMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateHasReportingRulesEnabledMutation, { data, loading, error }] = useGQLUpdateHasReportingRulesEnabledMutation({
 *   variables: {
 *      enabled: // value for 'enabled'
 *   },
 * });
 */
export function useGQLUpdateHasReportingRulesEnabledMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateHasReportingRulesEnabledMutation,
    GQLUpdateHasReportingRulesEnabledMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateHasReportingRulesEnabledMutation,
    GQLUpdateHasReportingRulesEnabledMutationVariables
  >(GQLUpdateHasReportingRulesEnabledDocument, options);
}
export type GQLUpdateHasReportingRulesEnabledMutationHookResult = ReturnType<
  typeof useGQLUpdateHasReportingRulesEnabledMutation
>;
export type GQLUpdateHasReportingRulesEnabledMutationResult =
  Apollo.MutationResult<GQLUpdateHasReportingRulesEnabledMutation>;
export type GQLUpdateHasReportingRulesEnabledMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateHasReportingRulesEnabledMutation,
    GQLUpdateHasReportingRulesEnabledMutationVariables
  >;
export const GQLUpdateAllowMultiplePoliciesPerActionDocument = gql`
  mutation UpdateAllowMultiplePoliciesPerAction($enabled: Boolean!) {
    updateAllowMultiplePoliciesPerAction(enabled: $enabled)
  }
`;
export type GQLUpdateAllowMultiplePoliciesPerActionMutationFn =
  Apollo.MutationFunction<
    GQLUpdateAllowMultiplePoliciesPerActionMutation,
    GQLUpdateAllowMultiplePoliciesPerActionMutationVariables
  >;

/**
 * __useGQLUpdateAllowMultiplePoliciesPerActionMutation__
 *
 * To run a mutation, you first call `useGQLUpdateAllowMultiplePoliciesPerActionMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateAllowMultiplePoliciesPerActionMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateAllowMultiplePoliciesPerActionMutation, { data, loading, error }] = useGQLUpdateAllowMultiplePoliciesPerActionMutation({
 *   variables: {
 *      enabled: // value for 'enabled'
 *   },
 * });
 */
export function useGQLUpdateAllowMultiplePoliciesPerActionMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateAllowMultiplePoliciesPerActionMutation,
    GQLUpdateAllowMultiplePoliciesPerActionMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateAllowMultiplePoliciesPerActionMutation,
    GQLUpdateAllowMultiplePoliciesPerActionMutationVariables
  >(GQLUpdateAllowMultiplePoliciesPerActionDocument, options);
}
export type GQLUpdateAllowMultiplePoliciesPerActionMutationHookResult =
  ReturnType<typeof useGQLUpdateAllowMultiplePoliciesPerActionMutation>;
export type GQLUpdateAllowMultiplePoliciesPerActionMutationResult =
  Apollo.MutationResult<GQLUpdateAllowMultiplePoliciesPerActionMutation>;
export type GQLUpdateAllowMultiplePoliciesPerActionMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateAllowMultiplePoliciesPerActionMutation,
    GQLUpdateAllowMultiplePoliciesPerActionMutationVariables
  >;
export const GQLUpdateSamlEnabledDocument = gql`
  mutation UpdateSamlEnabled($enabled: Boolean!) {
    updateSamlEnabled(enabled: $enabled)
  }
`;
export type GQLUpdateSamlEnabledMutationFn = Apollo.MutationFunction<
  GQLUpdateSamlEnabledMutation,
  GQLUpdateSamlEnabledMutationVariables
>;

/**
 * __useGQLUpdateSamlEnabledMutation__
 *
 * To run a mutation, you first call `useGQLUpdateSamlEnabledMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateSamlEnabledMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateSamlEnabledMutation, { data, loading, error }] = useGQLUpdateSamlEnabledMutation({
 *   variables: {
 *      enabled: // value for 'enabled'
 *   },
 * });
 */
export function useGQLUpdateSamlEnabledMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateSamlEnabledMutation,
    GQLUpdateSamlEnabledMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateSamlEnabledMutation,
    GQLUpdateSamlEnabledMutationVariables
  >(GQLUpdateSamlEnabledDocument, options);
}
export type GQLUpdateSamlEnabledMutationHookResult = ReturnType<
  typeof useGQLUpdateSamlEnabledMutation
>;
export type GQLUpdateSamlEnabledMutationResult =
  Apollo.MutationResult<GQLUpdateSamlEnabledMutation>;
export type GQLUpdateSamlEnabledMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateSamlEnabledMutation,
  GQLUpdateSamlEnabledMutationVariables
>;
export const GQLUpdateRequiresPolicyForDecisionsDocument = gql`
  mutation UpdateRequiresPolicyForDecisions($enabled: Boolean!) {
    updateRequiresPolicyForDecisions(enabled: $enabled)
  }
`;
export type GQLUpdateRequiresPolicyForDecisionsMutationFn =
  Apollo.MutationFunction<
    GQLUpdateRequiresPolicyForDecisionsMutation,
    GQLUpdateRequiresPolicyForDecisionsMutationVariables
  >;

/**
 * __useGQLUpdateRequiresPolicyForDecisionsMutation__
 *
 * To run a mutation, you first call `useGQLUpdateRequiresPolicyForDecisionsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateRequiresPolicyForDecisionsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateRequiresPolicyForDecisionsMutation, { data, loading, error }] = useGQLUpdateRequiresPolicyForDecisionsMutation({
 *   variables: {
 *      enabled: // value for 'enabled'
 *   },
 * });
 */
export function useGQLUpdateRequiresPolicyForDecisionsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateRequiresPolicyForDecisionsMutation,
    GQLUpdateRequiresPolicyForDecisionsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateRequiresPolicyForDecisionsMutation,
    GQLUpdateRequiresPolicyForDecisionsMutationVariables
  >(GQLUpdateRequiresPolicyForDecisionsDocument, options);
}
export type GQLUpdateRequiresPolicyForDecisionsMutationHookResult = ReturnType<
  typeof useGQLUpdateRequiresPolicyForDecisionsMutation
>;
export type GQLUpdateRequiresPolicyForDecisionsMutationResult =
  Apollo.MutationResult<GQLUpdateRequiresPolicyForDecisionsMutation>;
export type GQLUpdateRequiresPolicyForDecisionsMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateRequiresPolicyForDecisionsMutation,
    GQLUpdateRequiresPolicyForDecisionsMutationVariables
  >;
export const GQLUpdateRequiresDecisionReasonDocument = gql`
  mutation UpdateRequiresDecisionReason($enabled: Boolean!) {
    updateRequiresDecisionReason(enabled: $enabled)
  }
`;
export type GQLUpdateRequiresDecisionReasonMutationFn = Apollo.MutationFunction<
  GQLUpdateRequiresDecisionReasonMutation,
  GQLUpdateRequiresDecisionReasonMutationVariables
>;

/**
 * __useGQLUpdateRequiresDecisionReasonMutation__
 *
 * To run a mutation, you first call `useGQLUpdateRequiresDecisionReasonMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateRequiresDecisionReasonMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateRequiresDecisionReasonMutation, { data, loading, error }] = useGQLUpdateRequiresDecisionReasonMutation({
 *   variables: {
 *      enabled: // value for 'enabled'
 *   },
 * });
 */
export function useGQLUpdateRequiresDecisionReasonMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateRequiresDecisionReasonMutation,
    GQLUpdateRequiresDecisionReasonMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateRequiresDecisionReasonMutation,
    GQLUpdateRequiresDecisionReasonMutationVariables
  >(GQLUpdateRequiresDecisionReasonDocument, options);
}
export type GQLUpdateRequiresDecisionReasonMutationHookResult = ReturnType<
  typeof useGQLUpdateRequiresDecisionReasonMutation
>;
export type GQLUpdateRequiresDecisionReasonMutationResult =
  Apollo.MutationResult<GQLUpdateRequiresDecisionReasonMutation>;
export type GQLUpdateRequiresDecisionReasonMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateRequiresDecisionReasonMutation,
    GQLUpdateRequiresDecisionReasonMutationVariables
  >;
export const GQLUpdateRequiresDecisionReasonOnIgnoreDocument = gql`
  mutation UpdateRequiresDecisionReasonOnIgnore($enabled: Boolean!) {
    updateRequiresDecisionReasonOnIgnore(enabled: $enabled)
  }
`;
export type GQLUpdateRequiresDecisionReasonOnIgnoreMutationFn =
  Apollo.MutationFunction<
    GQLUpdateRequiresDecisionReasonOnIgnoreMutation,
    GQLUpdateRequiresDecisionReasonOnIgnoreMutationVariables
  >;

/**
 * __useGQLUpdateRequiresDecisionReasonOnIgnoreMutation__
 *
 * To run a mutation, you first call `useGQLUpdateRequiresDecisionReasonOnIgnoreMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateRequiresDecisionReasonOnIgnoreMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateRequiresDecisionReasonOnIgnoreMutation, { data, loading, error }] = useGQLUpdateRequiresDecisionReasonOnIgnoreMutation({
 *   variables: {
 *      enabled: // value for 'enabled'
 *   },
 * });
 */
export function useGQLUpdateRequiresDecisionReasonOnIgnoreMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateRequiresDecisionReasonOnIgnoreMutation,
    GQLUpdateRequiresDecisionReasonOnIgnoreMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateRequiresDecisionReasonOnIgnoreMutation,
    GQLUpdateRequiresDecisionReasonOnIgnoreMutationVariables
  >(GQLUpdateRequiresDecisionReasonOnIgnoreDocument, options);
}
export type GQLUpdateRequiresDecisionReasonOnIgnoreMutationHookResult =
  ReturnType<typeof useGQLUpdateRequiresDecisionReasonOnIgnoreMutation>;
export type GQLUpdateRequiresDecisionReasonOnIgnoreMutationResult =
  Apollo.MutationResult<GQLUpdateRequiresDecisionReasonOnIgnoreMutation>;
export type GQLUpdateRequiresDecisionReasonOnIgnoreMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateRequiresDecisionReasonOnIgnoreMutation,
    GQLUpdateRequiresDecisionReasonOnIgnoreMutationVariables
  >;
export const GQLUpdateHideSkipButtonForNonAdminsDocument = gql`
  mutation UpdateHideSkipButtonForNonAdmins($enabled: Boolean!) {
    updateHideSkipButtonForNonAdmins(enabled: $enabled)
  }
`;
export type GQLUpdateHideSkipButtonForNonAdminsMutationFn =
  Apollo.MutationFunction<
    GQLUpdateHideSkipButtonForNonAdminsMutation,
    GQLUpdateHideSkipButtonForNonAdminsMutationVariables
  >;

/**
 * __useGQLUpdateHideSkipButtonForNonAdminsMutation__
 *
 * To run a mutation, you first call `useGQLUpdateHideSkipButtonForNonAdminsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateHideSkipButtonForNonAdminsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateHideSkipButtonForNonAdminsMutation, { data, loading, error }] = useGQLUpdateHideSkipButtonForNonAdminsMutation({
 *   variables: {
 *      enabled: // value for 'enabled'
 *   },
 * });
 */
export function useGQLUpdateHideSkipButtonForNonAdminsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateHideSkipButtonForNonAdminsMutation,
    GQLUpdateHideSkipButtonForNonAdminsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateHideSkipButtonForNonAdminsMutation,
    GQLUpdateHideSkipButtonForNonAdminsMutationVariables
  >(GQLUpdateHideSkipButtonForNonAdminsDocument, options);
}
export type GQLUpdateHideSkipButtonForNonAdminsMutationHookResult = ReturnType<
  typeof useGQLUpdateHideSkipButtonForNonAdminsMutation
>;
export type GQLUpdateHideSkipButtonForNonAdminsMutationResult =
  Apollo.MutationResult<GQLUpdateHideSkipButtonForNonAdminsMutation>;
export type GQLUpdateHideSkipButtonForNonAdminsMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateHideSkipButtonForNonAdminsMutation,
    GQLUpdateHideSkipButtonForNonAdminsMutationVariables
  >;
export const GQLUpdatePreviewJobsViewEnabledDocument = gql`
  mutation UpdatePreviewJobsViewEnabled($enabled: Boolean!) {
    updatePreviewJobsViewEnabled(enabled: $enabled)
  }
`;
export type GQLUpdatePreviewJobsViewEnabledMutationFn = Apollo.MutationFunction<
  GQLUpdatePreviewJobsViewEnabledMutation,
  GQLUpdatePreviewJobsViewEnabledMutationVariables
>;

/**
 * __useGQLUpdatePreviewJobsViewEnabledMutation__
 *
 * To run a mutation, you first call `useGQLUpdatePreviewJobsViewEnabledMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdatePreviewJobsViewEnabledMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdatePreviewJobsViewEnabledMutation, { data, loading, error }] = useGQLUpdatePreviewJobsViewEnabledMutation({
 *   variables: {
 *      enabled: // value for 'enabled'
 *   },
 * });
 */
export function useGQLUpdatePreviewJobsViewEnabledMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdatePreviewJobsViewEnabledMutation,
    GQLUpdatePreviewJobsViewEnabledMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdatePreviewJobsViewEnabledMutation,
    GQLUpdatePreviewJobsViewEnabledMutationVariables
  >(GQLUpdatePreviewJobsViewEnabledDocument, options);
}
export type GQLUpdatePreviewJobsViewEnabledMutationHookResult = ReturnType<
  typeof useGQLUpdatePreviewJobsViewEnabledMutation
>;
export type GQLUpdatePreviewJobsViewEnabledMutationResult =
  Apollo.MutationResult<GQLUpdatePreviewJobsViewEnabledMutation>;
export type GQLUpdatePreviewJobsViewEnabledMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdatePreviewJobsViewEnabledMutation,
    GQLUpdatePreviewJobsViewEnabledMutationVariables
  >;
export const GQLUpdateIgnoreCallbackUrlDocument = gql`
  mutation UpdateIgnoreCallbackUrl($url: String) {
    updateIgnoreCallbackUrl(url: $url)
  }
`;
export type GQLUpdateIgnoreCallbackUrlMutationFn = Apollo.MutationFunction<
  GQLUpdateIgnoreCallbackUrlMutation,
  GQLUpdateIgnoreCallbackUrlMutationVariables
>;

/**
 * __useGQLUpdateIgnoreCallbackUrlMutation__
 *
 * To run a mutation, you first call `useGQLUpdateIgnoreCallbackUrlMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateIgnoreCallbackUrlMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateIgnoreCallbackUrlMutation, { data, loading, error }] = useGQLUpdateIgnoreCallbackUrlMutation({
 *   variables: {
 *      url: // value for 'url'
 *   },
 * });
 */
export function useGQLUpdateIgnoreCallbackUrlMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateIgnoreCallbackUrlMutation,
    GQLUpdateIgnoreCallbackUrlMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateIgnoreCallbackUrlMutation,
    GQLUpdateIgnoreCallbackUrlMutationVariables
  >(GQLUpdateIgnoreCallbackUrlDocument, options);
}
export type GQLUpdateIgnoreCallbackUrlMutationHookResult = ReturnType<
  typeof useGQLUpdateIgnoreCallbackUrlMutation
>;
export type GQLUpdateIgnoreCallbackUrlMutationResult =
  Apollo.MutationResult<GQLUpdateIgnoreCallbackUrlMutation>;
export type GQLUpdateIgnoreCallbackUrlMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdateIgnoreCallbackUrlMutation,
    GQLUpdateIgnoreCallbackUrlMutationVariables
  >;
export const GQLUpdateAppealSettingsDocument = gql`
  mutation UpdateAppealSettings($input: AppealSettingsInput!) {
    updateAppealSettings(input: $input) {
      appealsCallbackUrl
      appealsCallbackHeaders
      appealsCallbackBody
    }
  }
`;
export type GQLUpdateAppealSettingsMutationFn = Apollo.MutationFunction<
  GQLUpdateAppealSettingsMutation,
  GQLUpdateAppealSettingsMutationVariables
>;

/**
 * __useGQLUpdateAppealSettingsMutation__
 *
 * To run a mutation, you first call `useGQLUpdateAppealSettingsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateAppealSettingsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateAppealSettingsMutation, { data, loading, error }] = useGQLUpdateAppealSettingsMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateAppealSettingsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateAppealSettingsMutation,
    GQLUpdateAppealSettingsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateAppealSettingsMutation,
    GQLUpdateAppealSettingsMutationVariables
  >(GQLUpdateAppealSettingsDocument, options);
}
export type GQLUpdateAppealSettingsMutationHookResult = ReturnType<
  typeof useGQLUpdateAppealSettingsMutation
>;
export type GQLUpdateAppealSettingsMutationResult =
  Apollo.MutationResult<GQLUpdateAppealSettingsMutation>;
export type GQLUpdateAppealSettingsMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateAppealSettingsMutation,
  GQLUpdateAppealSettingsMutationVariables
>;
export const GQLOrgSettingsDocument = gql`
  query OrgSettings {
    myOrg {
      id
      name
      email
      websiteUrl
      onCallAlertEmail
    }
    me {
      id
      permissions
    }
  }
`;

/**
 * __useGQLOrgSettingsQuery__
 *
 * To run a query within a React component, call `useGQLOrgSettingsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLOrgSettingsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLOrgSettingsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLOrgSettingsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLOrgSettingsQuery,
    GQLOrgSettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<GQLOrgSettingsQuery, GQLOrgSettingsQueryVariables>(
    GQLOrgSettingsDocument,
    options,
  );
}
export function useGQLOrgSettingsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLOrgSettingsQuery,
    GQLOrgSettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<GQLOrgSettingsQuery, GQLOrgSettingsQueryVariables>(
    GQLOrgSettingsDocument,
    options,
  );
}
// @ts-ignore
export function useGQLOrgSettingsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLOrgSettingsQuery,
    GQLOrgSettingsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLOrgSettingsQuery,
  GQLOrgSettingsQueryVariables
>;
export function useGQLOrgSettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLOrgSettingsQuery,
        GQLOrgSettingsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLOrgSettingsQuery | undefined,
  GQLOrgSettingsQueryVariables
>;
export function useGQLOrgSettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLOrgSettingsQuery,
        GQLOrgSettingsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLOrgSettingsQuery,
    GQLOrgSettingsQueryVariables
  >(GQLOrgSettingsDocument, options);
}
export type GQLOrgSettingsQueryHookResult = ReturnType<
  typeof useGQLOrgSettingsQuery
>;
export type GQLOrgSettingsLazyQueryHookResult = ReturnType<
  typeof useGQLOrgSettingsLazyQuery
>;
export type GQLOrgSettingsSuspenseQueryHookResult = ReturnType<
  typeof useGQLOrgSettingsSuspenseQuery
>;
export type GQLOrgSettingsQueryResult = Apollo.QueryResult<
  GQLOrgSettingsQuery,
  GQLOrgSettingsQueryVariables
>;
export const GQLUpdateOrgInfoDocument = gql`
  mutation UpdateOrgInfo($input: UpdateOrgInfoInput!) {
    updateOrgInfo(input: $input) {
      _
    }
  }
`;
export type GQLUpdateOrgInfoMutationFn = Apollo.MutationFunction<
  GQLUpdateOrgInfoMutation,
  GQLUpdateOrgInfoMutationVariables
>;

/**
 * __useGQLUpdateOrgInfoMutation__
 *
 * To run a mutation, you first call `useGQLUpdateOrgInfoMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateOrgInfoMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateOrgInfoMutation, { data, loading, error }] = useGQLUpdateOrgInfoMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateOrgInfoMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateOrgInfoMutation,
    GQLUpdateOrgInfoMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateOrgInfoMutation,
    GQLUpdateOrgInfoMutationVariables
  >(GQLUpdateOrgInfoDocument, options);
}
export type GQLUpdateOrgInfoMutationHookResult = ReturnType<
  typeof useGQLUpdateOrgInfoMutation
>;
export type GQLUpdateOrgInfoMutationResult =
  Apollo.MutationResult<GQLUpdateOrgInfoMutation>;
export type GQLUpdateOrgInfoMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateOrgInfoMutation,
  GQLUpdateOrgInfoMutationVariables
>;
export const GQLUpdatePartialItemsSettingsDocument = gql`
  mutation UpdatePartialItemsSettings(
    $input: UpdatePartialItemsSettingsInput!
  ) {
    updatePartialItemsSettings(input: $input)
  }
`;
export type GQLUpdatePartialItemsSettingsMutationFn = Apollo.MutationFunction<
  GQLUpdatePartialItemsSettingsMutation,
  GQLUpdatePartialItemsSettingsMutationVariables
>;

/**
 * __useGQLUpdatePartialItemsSettingsMutation__
 *
 * To run a mutation, you first call `useGQLUpdatePartialItemsSettingsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdatePartialItemsSettingsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdatePartialItemsSettingsMutation, { data, loading, error }] = useGQLUpdatePartialItemsSettingsMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdatePartialItemsSettingsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdatePartialItemsSettingsMutation,
    GQLUpdatePartialItemsSettingsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdatePartialItemsSettingsMutation,
    GQLUpdatePartialItemsSettingsMutationVariables
  >(GQLUpdatePartialItemsSettingsDocument, options);
}
export type GQLUpdatePartialItemsSettingsMutationHookResult = ReturnType<
  typeof useGQLUpdatePartialItemsSettingsMutation
>;
export type GQLUpdatePartialItemsSettingsMutationResult =
  Apollo.MutationResult<GQLUpdatePartialItemsSettingsMutation>;
export type GQLUpdatePartialItemsSettingsMutationOptions =
  Apollo.BaseMutationOptions<
    GQLUpdatePartialItemsSettingsMutation,
    GQLUpdatePartialItemsSettingsMutationVariables
  >;
export const GQLUpdateSsoCredentialsDocument = gql`
  mutation UpdateSSOCredentials($input: UpdateSSOCredentialsInput!) {
    updateSSOCredentials(input: $input)
  }
`;
export type GQLUpdateSsoCredentialsMutationFn = Apollo.MutationFunction<
  GQLUpdateSsoCredentialsMutation,
  GQLUpdateSsoCredentialsMutationVariables
>;

/**
 * __useGQLUpdateSsoCredentialsMutation__
 *
 * To run a mutation, you first call `useGQLUpdateSsoCredentialsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLUpdateSsoCredentialsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlUpdateSsoCredentialsMutation, { data, loading, error }] = useGQLUpdateSsoCredentialsMutation({
 *   variables: {
 *      input: // value for 'input'
 *   },
 * });
 */
export function useGQLUpdateSsoCredentialsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLUpdateSsoCredentialsMutation,
    GQLUpdateSsoCredentialsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLUpdateSsoCredentialsMutation,
    GQLUpdateSsoCredentialsMutationVariables
  >(GQLUpdateSsoCredentialsDocument, options);
}
export type GQLUpdateSsoCredentialsMutationHookResult = ReturnType<
  typeof useGQLUpdateSsoCredentialsMutation
>;
export type GQLUpdateSsoCredentialsMutationResult =
  Apollo.MutationResult<GQLUpdateSsoCredentialsMutation>;
export type GQLUpdateSsoCredentialsMutationOptions = Apollo.BaseMutationOptions<
  GQLUpdateSsoCredentialsMutation,
  GQLUpdateSsoCredentialsMutationVariables
>;
export const GQLOrgDefaultSafetySettingsDocument = gql`
  query OrgDefaultSafetySettings {
    me {
      permissions
    }
    myOrg {
      defaultInterfacePreferences {
        moderatorSafetyMuteVideo
        moderatorSafetyGrayscale
        moderatorSafetyBlurLevel
        moderatorSafetySepia
      }
    }
  }
`;

/**
 * __useGQLOrgDefaultSafetySettingsQuery__
 *
 * To run a query within a React component, call `useGQLOrgDefaultSafetySettingsQuery` and pass it any options that fit your needs.
 * When your component renders, `useGQLOrgDefaultSafetySettingsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useGQLOrgDefaultSafetySettingsQuery({
 *   variables: {
 *   },
 * });
 */
export function useGQLOrgDefaultSafetySettingsQuery(
  baseOptions?: Apollo.QueryHookOptions<
    GQLOrgDefaultSafetySettingsQuery,
    GQLOrgDefaultSafetySettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useQuery<
    GQLOrgDefaultSafetySettingsQuery,
    GQLOrgDefaultSafetySettingsQueryVariables
  >(GQLOrgDefaultSafetySettingsDocument, options);
}
export function useGQLOrgDefaultSafetySettingsLazyQuery(
  baseOptions?: Apollo.LazyQueryHookOptions<
    GQLOrgDefaultSafetySettingsQuery,
    GQLOrgDefaultSafetySettingsQueryVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useLazyQuery<
    GQLOrgDefaultSafetySettingsQuery,
    GQLOrgDefaultSafetySettingsQueryVariables
  >(GQLOrgDefaultSafetySettingsDocument, options);
}
// @ts-ignore
export function useGQLOrgDefaultSafetySettingsSuspenseQuery(
  baseOptions?: Apollo.SuspenseQueryHookOptions<
    GQLOrgDefaultSafetySettingsQuery,
    GQLOrgDefaultSafetySettingsQueryVariables
  >,
): Apollo.UseSuspenseQueryResult<
  GQLOrgDefaultSafetySettingsQuery,
  GQLOrgDefaultSafetySettingsQueryVariables
>;
export function useGQLOrgDefaultSafetySettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLOrgDefaultSafetySettingsQuery,
        GQLOrgDefaultSafetySettingsQueryVariables
      >,
): Apollo.UseSuspenseQueryResult<
  GQLOrgDefaultSafetySettingsQuery | undefined,
  GQLOrgDefaultSafetySettingsQueryVariables
>;
export function useGQLOrgDefaultSafetySettingsSuspenseQuery(
  baseOptions?:
    | Apollo.SkipToken
    | Apollo.SuspenseQueryHookOptions<
        GQLOrgDefaultSafetySettingsQuery,
        GQLOrgDefaultSafetySettingsQueryVariables
      >,
) {
  const options =
    baseOptions === Apollo.skipToken
      ? baseOptions
      : { ...defaultOptions, ...baseOptions };
  return Apollo.useSuspenseQuery<
    GQLOrgDefaultSafetySettingsQuery,
    GQLOrgDefaultSafetySettingsQueryVariables
  >(GQLOrgDefaultSafetySettingsDocument, options);
}
export type GQLOrgDefaultSafetySettingsQueryHookResult = ReturnType<
  typeof useGQLOrgDefaultSafetySettingsQuery
>;
export type GQLOrgDefaultSafetySettingsLazyQueryHookResult = ReturnType<
  typeof useGQLOrgDefaultSafetySettingsLazyQuery
>;
export type GQLOrgDefaultSafetySettingsSuspenseQueryHookResult = ReturnType<
  typeof useGQLOrgDefaultSafetySettingsSuspenseQuery
>;
export type GQLOrgDefaultSafetySettingsQueryResult = Apollo.QueryResult<
  GQLOrgDefaultSafetySettingsQuery,
  GQLOrgDefaultSafetySettingsQueryVariables
>;
export const GQLSetOrgDefaultSafetySettingsDocument = gql`
  mutation SetOrgDefaultSafetySettings(
    $orgDefaultSafetySettings: ModeratorSafetySettingsInput!
  ) {
    setOrgDefaultSafetySettings(
      orgDefaultSafetySettings: $orgDefaultSafetySettings
    ) {
      _
    }
  }
`;
export type GQLSetOrgDefaultSafetySettingsMutationFn = Apollo.MutationFunction<
  GQLSetOrgDefaultSafetySettingsMutation,
  GQLSetOrgDefaultSafetySettingsMutationVariables
>;

/**
 * __useGQLSetOrgDefaultSafetySettingsMutation__
 *
 * To run a mutation, you first call `useGQLSetOrgDefaultSafetySettingsMutation` within a React component and pass it any options that fit your needs.
 * When your component renders, `useGQLSetOrgDefaultSafetySettingsMutation` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [gqlSetOrgDefaultSafetySettingsMutation, { data, loading, error }] = useGQLSetOrgDefaultSafetySettingsMutation({
 *   variables: {
 *      orgDefaultSafetySettings: // value for 'orgDefaultSafetySettings'
 *   },
 * });
 */
export function useGQLSetOrgDefaultSafetySettingsMutation(
  baseOptions?: Apollo.MutationHookOptions<
    GQLSetOrgDefaultSafetySettingsMutation,
    GQLSetOrgDefaultSafetySettingsMutationVariables
  >,
) {
  const options = { ...defaultOptions, ...baseOptions };
  return Apollo.useMutation<
    GQLSetOrgDefaultSafetySettingsMutation,
    GQLSetOrgDefaultSafetySettingsMutationVariables
  >(GQLSetOrgDefaultSafetySettingsDocument, options);
}
export type GQLSetOrgDefaultSafetySettingsMutationHookResult = ReturnType<
  typeof useGQLSetOrgDefaultSafetySettingsMutation
>;
export type GQLSetOrgDefaultSafetySettingsMutationResult =
  Apollo.MutationResult<GQLSetOrgDefaultSafetySettingsMutation>;
export type GQLSetOrgDefaultSafetySettingsMutationOptions =
  Apollo.BaseMutationOptions<
    GQLSetOrgDefaultSafetySettingsMutation,
    GQLSetOrgDefaultSafetySettingsMutationVariables
  >;
export const namedOperations = {
  Query: {
    ApiAuth: 'ApiAuth',
    HashBanks: 'HashBanks',
    HashBankById: 'HashBankById',
    ExchangeApis: 'ExchangeApis',
    ExchangeApiSchema: 'ExchangeApiSchema',
    UserAndOrg: 'UserAndOrg',
    LoggedInUserForRoute: 'LoggedInUserForRoute',
    PermissionGatedRouteLoggedInUser: 'PermissionGatedRouteLoggedInUser',
    GetSSORedirectUrl: 'GetSSORedirectUrl',
    RejectedUser: 'RejectedUser',
    InviteUserToken: 'InviteUserToken',
    DashboardOrg: 'DashboardOrg',
    Action: 'Action',
    ActionForm: 'ActionForm',
    Actions: 'Actions',
    LocationBank: 'LocationBank',
    LocationBankForm: 'LocationBankForm',
    LocationBanks: 'LocationBanks',
    TextBank: 'TextBank',
    TextBankForm: 'TextBankForm',
    TextBanks: 'TextBanks',
    BulkActionsFormData: 'BulkActionsFormData',
    MatchingBankIds: 'MatchingBankIds',
    IntegrationConfig: 'IntegrationConfig',
    MyIntegrations: 'MyIntegrations',
    AvailableIntegrations: 'AvailableIntegrations',
    InvestigationItemTypes: 'InvestigationItemTypes',
    GetOrgData: 'GetOrgData',
    GetItemsWithId: 'GetItemsWithId',
    InvestigationItems: 'InvestigationItems',
    GetItemsByIpAddress: 'GetItemsByIpAddress',
    GetAuthorInfo: 'GetAuthorInfo',
    ItemType: 'ItemType',
    ItemTypeFormOrg: 'ItemTypeFormOrg',
    ItemTypes: 'ItemTypes',
    ItemActionHistory: 'ItemActionHistory',
    getDecidedJobFromJobId: 'getDecidedJobFromJobId',
    ManualReviewMetrics: 'ManualReviewMetrics',
    getAverageTimeToReview: 'getAverageTimeToReview',
    getDecisionsTable: 'getDecisionsTable',
    QueueFormData: 'QueueFormData',
    ManualReviewQueue: 'ManualReviewQueue',
    ManualReviewQueueJobsPreview: 'ManualReviewQueueJobsPreview',
    ManualReviewQueues: 'ManualReviewQueues',
    RoutingRules: 'RoutingRules',
    getResolvedJobsForUser: 'getResolvedJobsForUser',
    getSkippedJobsForUser: 'getSkippedJobsForUser',
    RecentDecisionsSummaryData: 'RecentDecisionsSummaryData',
    OrgLookupData: 'OrgLookupData',
    GetRecentDecisions: 'GetRecentDecisions',
    getSkipsForRecentDecisions: 'getSkipsForRecentDecisions',
    GetDecidedJob: 'GetDecidedJob',
    ManualReviewSafetySettings: 'ManualReviewSafetySettings',
    ManualReviewJobInfo: 'ManualReviewJobInfo',
    GetCommentsForJob: 'GetCommentsForJob',
    getThreadHistory: 'getThreadHistory',
    getRelatedItems: 'getRelatedItems',
    ItemTypeHiddenFields: 'ItemTypeHiddenFields',
    AllManualReviewQueues: 'AllManualReviewQueues',
    getLatestUserSubmittedItemsWithThreads:
      'getLatestUserSubmittedItemsWithThreads',
    NcmecMediaReviewPolicy: 'NcmecMediaReviewPolicy',
    getMoreInfoForThreadItems: 'getMoreInfoForThreadItems',
    getMoreInfoForPartialItems: 'getMoreInfoForPartialItems',
    getExistingJobsForItem: 'getExistingJobsForItem',
    getLatestUserSubmittedItems: 'getLatestUserSubmittedItems',
    OrgData: 'OrgData',
    getMoreInfoForItems: 'getMoreInfoForItems',
    getUserItems: 'getUserItems',
    ManualReviewHasAppealsEnabled: 'ManualReviewHasAppealsEnabled',
    ManualReviewQueueRoutingRules: 'ManualReviewQueueRoutingRules',
    ManualReviewChartConfigurationSettings:
      'ManualReviewChartConfigurationSettings',
    ManualReviewDecisionInsightsOrgInfo: 'ManualReviewDecisionInsightsOrgInfo',
    getDecisionCounts: 'getDecisionCounts',
    getJobCreationCounts: 'getJobCreationCounts',
    getResolvedJobCounts: 'getResolvedJobCounts',
    getSkippedJobCounts: 'getSkippedJobCounts',
    ManualReviewDecisionInsightsFilterByInfo:
      'ManualReviewDecisionInsightsFilterByInfo',
    AllNCMECReports: 'AllNCMECReports',
    Permissions: 'Permissions',
    GetNCMECReport: 'GetNCMECReport',
    IsWarehouseAvailable: 'IsWarehouseAvailable',
    TotalPendingJobs: 'TotalPendingJobs',
    RuleNamesAndIds: 'RuleNamesAndIds',
    DataForOverviewCharts: 'DataForOverviewCharts',
    ViolationsPerPolicy: 'ViolationsPerPolicy',
    Policies: 'Policies',
    PoliciesWithModels: 'PoliciesWithModels',
    IsDemoOrg: 'IsDemoOrg',
    ReportingRules: 'ReportingRules',
    Rules: 'Rules',
    RulesDashboardInsights: 'RulesDashboardInsights',
    PolicyRollupData: 'PolicyRollupData',
    ActionStatisticsData: 'ActionStatisticsData',
    ReportingRuleInfo: 'ReportingRuleInfo',
    RuleInfo: 'RuleInfo',
    SpotTestRule: 'SpotTestRule',
    ReportingRulePassRateAnalytics: 'ReportingRulePassRateAnalytics',
    ReportingRuleInsightsCurrentVersionSamples:
      'ReportingRuleInsightsCurrentVersionSamples',
    ReportingRuleInsightsPriorVersionSamples:
      'ReportingRuleInsightsPriorVersionSamples',
    RulePassRateAnalytics: 'RulePassRateAnalytics',
    RuleInsightsTableAllSignals: 'RuleInsightsTableAllSignals',
    RuleInsightsCurrentVersionSamples: 'RuleInsightsCurrentVersionSamples',
    RuleInsightsPriorVersionSamples: 'RuleInsightsPriorVersionSamples',
    GetFullResultForRule: 'GetFullResultForRule',
    MatchingBankNames: 'MatchingBankNames',
    ReportingRule: 'ReportingRule',
    ReportingRuleFormOrgData: 'ReportingRuleFormOrgData',
    Rule: 'Rule',
    ContentRuleFormConfig: 'ContentRuleFormConfig',
    RecentUserStrikeActions: 'RecentUserStrikeActions',
    UserStrikeDistribution: 'UserStrikeDistribution',
    UserStrikeThresholds: 'UserStrikeThresholds',
    AccountSettings: 'AccountSettings',
    PersonalSafetySettings: 'PersonalSafetySettings',
    RolesForOrg: 'RolesForOrg',
    ManageUsers: 'ManageUsers',
    HasNcmecReportingEnabled: 'HasNcmecReportingEnabled',
    NcmecOrgSettings: 'NcmecOrgSettings',
    PermissionGroups: 'PermissionGroups',
    DeploymentSettings: 'DeploymentSettings',
    OrgSettings: 'OrgSettings',
    OrgDefaultSafetySettings: 'OrgDefaultSafetySettings',
  },
  Mutation: {
    RotateApiKey: 'RotateApiKey',
    RotateWebhookSigningKey: 'RotateWebhookSigningKey',
    CreateHashBank: 'CreateHashBank',
    UpdateHashBank: 'UpdateHashBank',
    DeleteHashBank: 'DeleteHashBank',
    UpdateExchangeCredentials: 'UpdateExchangeCredentials',
    Login: 'Login',
    DeleteRejectedUser: 'DeleteRejectedUser',
    SignUp: 'SignUp',
    SendPasswordReset: 'SendPasswordReset',
    ResetPassword: 'ResetPassword',
    Logout: 'Logout',
    CreateAction: 'CreateAction',
    UpdateAction: 'UpdateAction',
    DeleteAction: 'DeleteAction',
    CreateLocationBank: 'CreateLocationBank',
    UpdateLocationBank: 'UpdateLocationBank',
    DeleteLocationBank: 'DeleteLocationBank',
    CreateTextBank: 'CreateTextBank',
    UpdateTextBank: 'UpdateTextBank',
    DeleteTextBank: 'DeleteTextBank',
    BulkActionExecution: 'BulkActionExecution',
    SetIntegrationConfig: 'SetIntegrationConfig',
    SetPluginIntegrationConfig: 'SetPluginIntegrationConfig',
    DeleteItemType: 'DeleteItemType',
    CreateContentType: 'CreateContentType',
    UpdateContentType: 'UpdateContentType',
    CreateUserType: 'CreateUserType',
    UpdateUserType: 'UpdateUserType',
    CreateThreadType: 'CreateThreadType',
    UpdateThreadType: 'UpdateThreadType',
    CreateManualReviewQueue: 'CreateManualReviewQueue',
    UpdateManualReviewQueue: 'UpdateManualReviewQueue',
    DeleteManualReviewQueue: 'DeleteManualReviewQueue',
    DeleteAllJobsFromQueue: 'DeleteAllJobsFromQueue',
    AddFavoriteMRTQueue: 'AddFavoriteMRTQueue',
    RemoveFavoriteMRTQueue: 'RemoveFavoriteMRTQueue',
    SetModeratorSafetySettings: 'SetModeratorSafetySettings',
    InvalidateReportsFromReporter: 'InvalidateReportsFromReporter',
    DequeueManualReviewJob: 'DequeueManualReviewJob',
    SubmitManualReviewDecision: 'SubmitManualReviewDecision',
    LogSkip: 'LogSkip',
    ReleaseJobLock: 'ReleaseJobLock',
    AddJobComment: 'AddJobComment',
    DeleteJobComment: 'DeleteJobComment',
    DeleteRoutingRule: 'DeleteRoutingRule',
    CreateRoutingRule: 'CreateRoutingRule',
    UpdateRoutingRule: 'UpdateRoutingRule',
    ReorderRoutingRules: 'ReorderRoutingRules',
    SetMrtChartConfigurationSettings: 'SetMrtChartConfigurationSettings',
    RetryNcmecSubmission: 'RetryNcmecSubmission',
    AddPolicies: 'AddPolicies',
    UpdatePolicy: 'UpdatePolicy',
    DeletePolicy: 'DeletePolicy',
    CreateReportingRule: 'CreateReportingRule',
    UpdateReportingRule: 'UpdateReportingRule',
    DeleteReportingRule: 'DeleteReportingRule',
    DeleteRule: 'DeleteRule',
    AddFavoriteRule: 'AddFavoriteRule',
    RemoveFavoriteRule: 'RemoveFavoriteRule',
    CreateContentRule: 'CreateContentRule',
    UpdateContentRule: 'UpdateContentRule',
    CreateUserRule: 'CreateUserRule',
    UpdateUserRule: 'UpdateUserRule',
    SetAllUserStrikeThreshold: 'SetAllUserStrikeThreshold',
    UpdateUserStrikeTTL: 'UpdateUserStrikeTTL',
    UpdateAccountInfo: 'UpdateAccountInfo',
    ChangePassword: 'ChangePassword',
    DeleteUser: 'DeleteUser',
    UpdateRole: 'UpdateRole',
    ApproveUser: 'ApproveUser',
    RejectUser: 'RejectUser',
    DeleteInvite: 'DeleteInvite',
    GeneratePasswordResetToken: 'GeneratePasswordResetToken',
    InviteUser: 'InviteUser',
    UpdateNcmecOrgSettings: 'UpdateNcmecOrgSettings',
    UpdateRolePermissions: 'UpdateRolePermissions',
    RenameRole: 'RenameRole',
    UpdateHasAppealsEnabled: 'UpdateHasAppealsEnabled',
    UpdateHasReportingRulesEnabled: 'UpdateHasReportingRulesEnabled',
    UpdateAllowMultiplePoliciesPerAction:
      'UpdateAllowMultiplePoliciesPerAction',
    UpdateSamlEnabled: 'UpdateSamlEnabled',
    UpdateRequiresPolicyForDecisions: 'UpdateRequiresPolicyForDecisions',
    UpdateRequiresDecisionReason: 'UpdateRequiresDecisionReason',
    UpdateRequiresDecisionReasonOnIgnore:
      'UpdateRequiresDecisionReasonOnIgnore',
    UpdateHideSkipButtonForNonAdmins: 'UpdateHideSkipButtonForNonAdmins',
    UpdatePreviewJobsViewEnabled: 'UpdatePreviewJobsViewEnabled',
    UpdateIgnoreCallbackUrl: 'UpdateIgnoreCallbackUrl',
    UpdateAppealSettings: 'UpdateAppealSettings',
    UpdateOrgInfo: 'UpdateOrgInfo',
    UpdatePartialItemsSettings: 'UpdatePartialItemsSettings',
    UpdateSSOCredentials: 'UpdateSSOCredentials',
    SetOrgDefaultSafetySettings: 'SetOrgDefaultSafetySettings',
  },
  Fragment: {
    CustomActionFragment: 'CustomActionFragment',
    ItemFields: 'ItemFields',
    ManualReviewDecisionComponentFields: 'ManualReviewDecisionComponentFields',
    JobFields: 'JobFields',
    ManualReviewJobCommentFields: 'ManualReviewJobCommentFields',
    NCMECReportValues: 'NCMECReportValues',
    NcmecFailedSubmissionValues: 'NcmecFailedSubmissionValues',
    PolicyFields: 'PolicyFields',
    RulesDashboardRuleFieldsFragment: 'RulesDashboardRuleFieldsFragment',
    SampleReportingRuleExecutionResultFields:
      'SampleReportingRuleExecutionResultFields',
    LeafConditionWithResultFields: 'LeafConditionWithResultFields',
    SampleRuleExecutionResultFields: 'SampleRuleExecutionResultFields',
    SampleRuleExecutionResultConditionResultFields:
      'SampleRuleExecutionResultConditionResultFields',
    ReportingRuleFormRuleFieldsFragment: 'ReportingRuleFormRuleFieldsFragment',
    DerivedFieldFields: 'DerivedFieldFields',
    ItemTypeFragment: 'ItemTypeFragment',
    SignalsFragment: 'SignalsFragment',
    LeafConditionFields: 'LeafConditionFields',
    ConditionSetFields: 'ConditionSetFields',
    RuleFormRuleFieldsFragment: 'RuleFormRuleFieldsFragment',
    ActionFragment: 'ActionFragment',
  },
};
