import { S as PHDocument, i as Action, x as PHBaseState } from "./index-otPBmxzq.js";

//#region document-models/grant-system/v1/gen/schema/types.d.ts
type Maybe<T> = T | null | undefined;
type InputMaybe<T> = T | null | undefined;
type Exact<T extends {
  [key: string]: unknown;
}> = { [K in keyof T]: T[K] };
type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
type MakeEmpty<T extends {
  [key: string]: unknown;
}, K extends keyof T> = { [_ in K]?: never };
type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never };
/** All built-in and custom scalars, mapped to their actual values */
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;
  };
  Address: {
    input: `${string}:0x${string}`;
    output: `${string}:0x${string}`;
  };
  Amount: {
    input: {
      unit?: string;
      value?: number;
    };
    output: {
      unit?: string;
      value?: number;
    };
  };
  Amount_Crypto: {
    input: {
      unit: string;
      value: string;
    };
    output: {
      unit: string;
      value: string;
    };
  };
  Amount_Currency: {
    input: {
      unit: string;
      value: string;
    };
    output: {
      unit: string;
      value: string;
    };
  };
  Amount_Fiat: {
    input: {
      unit: string;
      value: number;
    };
    output: {
      unit: string;
      value: number;
    };
  };
  Amount_Money: {
    input: number;
    output: number;
  };
  Amount_Percentage: {
    input: number;
    output: number;
  };
  Amount_Tokens: {
    input: number;
    output: number;
  };
  Attachment: {
    input: string;
    output: string;
  };
  Currency: {
    input: string;
    output: string;
  };
  Date: {
    input: string;
    output: string;
  };
  DateTime: {
    input: string;
    output: string;
  };
  EmailAddress: {
    input: string;
    output: string;
  };
  EthereumAddress: {
    input: string;
    output: string;
  };
  OID: {
    input: string;
    output: string;
  };
  OLabel: {
    input: string;
    output: string;
  };
  PHID: {
    input: string;
    output: string;
  };
  URL: {
    input: string;
    output: string;
  };
  Unknown: {
    input: unknown;
    output: unknown;
  };
  Upload: {
    input: File;
    output: File;
  };
};
type AddSameAsInput = {
  url: Scalars["URL"]["input"];
};
type AddSocialInput = {
  id: Scalars["OID"]["input"];
  platform: SocialPlatform;
  url: Scalars["URL"]["input"];
};
type ApproveVerificationInput = {
  method: VerificationMethod;
  verifiedAt: Scalars["DateTime"]["input"];
  verifiedBy: Scalars["String"]["input"];
};
type GrantSystemState = {
  code: Maybe<Scalars["String"]["output"]>;
  contactName: Maybe<Scalars["String"]["output"]>;
  coverImage: Maybe<Scalars["URL"]["output"]>;
  description: Maybe<Scalars["String"]["output"]>;
  email: Maybe<Scalars["EmailAddress"]["output"]>;
  extensions: Maybe<Scalars["String"]["output"]>;
  grantPoolsURI: Maybe<Scalars["URL"]["output"]>;
  image: Maybe<Scalars["URL"]["output"]>;
  name: Maybe<Scalars["String"]["output"]>;
  publisherWallet: Maybe<Scalars["EthereumAddress"]["output"]>;
  revocationReason: Maybe<Scalars["String"]["output"]>;
  revokedAt: Maybe<Scalars["DateTime"]["output"]>;
  sameAs: Array<Scalars["URL"]["output"]>;
  socials: Array<Social>;
  type: Maybe<GrantSystemType>;
  verificationMethod: Maybe<VerificationMethod>;
  verificationState: VerificationState;
  verifiedAt: Maybe<Scalars["DateTime"]["output"]>;
  verifiedBy: Maybe<Scalars["String"]["output"]>;
};
type GrantSystemType = "COMPANY" | "DAO" | "FOUNDATION" | "OTHER" | "PERSON" | "PROGRAM" | "PROTOCOL";
type ReinstateVerificationInput = {
  reinstatedBy: Scalars["String"]["input"];
  verifiedAt: Scalars["DateTime"]["input"];
};
type RejectVerificationInput = {
  reason: Scalars["String"]["input"];
  rejectedAt: Scalars["DateTime"]["input"];
};
type RemoveSameAsInput = {
  url: Scalars["URL"]["input"];
};
type RemoveSocialInput = {
  id: Scalars["OID"]["input"];
};
type RequestVerificationInput = {
  requestedAt: Scalars["DateTime"]["input"];
};
type RevokeVerificationInput = {
  reason: Scalars["String"]["input"];
  revokedAt: Scalars["DateTime"]["input"];
};
type SetCodeInput = {
  code?: InputMaybe<Scalars["String"]["input"]>;
};
type SetContactNameInput = {
  contactName?: InputMaybe<Scalars["String"]["input"]>;
};
type SetCoverImageInput = {
  coverImage?: InputMaybe<Scalars["URL"]["input"]>;
};
type SetDescriptionInput = {
  description?: InputMaybe<Scalars["String"]["input"]>;
};
type SetEmailInput = {
  email?: InputMaybe<Scalars["EmailAddress"]["input"]>;
};
type SetExtensionsInput = {
  extensions?: InputMaybe<Scalars["String"]["input"]>;
};
type SetGrantPoolsUriInput = {
  grantPoolsURI?: InputMaybe<Scalars["URL"]["input"]>;
};
type SetImageInput = {
  image?: InputMaybe<Scalars["URL"]["input"]>;
};
type SetOrgNameInput = {
  name: Scalars["String"]["input"];
};
type SetPublisherWalletInput = {
  publisherWallet: Scalars["EthereumAddress"]["input"];
};
type SetTypeInput = {
  type: GrantSystemType;
};
type Social = {
  id: Scalars["OID"]["output"];
  platform: SocialPlatform;
  url: Scalars["URL"]["output"];
};
type SocialPlatform = "DISCORD" | "FARCASTER" | "GITHUB" | "LENS" | "LINKEDIN" | "MIRROR" | "TELEGRAM" | "TWITTER" | "WEBSITE";
type SuspendVerificationInput = {
  reason: Scalars["String"]["input"];
  suspendedAt: Scalars["DateTime"]["input"];
};
type UpdateSocialUrlInput = {
  id: Scalars["OID"]["input"];
  url: Scalars["URL"]["input"];
};
type VerificationMethod = "DOMAIN_VERIFICATION" | "MANUAL_REVIEW" | "THIRD_PARTY_ATTESTATION" | "WALLET_SIGNATURE";
type VerificationState = "PENDING_REVIEW" | "REVOKED" | "SUSPENDED" | "UNVERIFIED" | "VERIFIED";
//#endregion
//#region document-models/grant-system/v1/gen/types.d.ts
type GrantSystemLocalState = Record<PropertyKey, never>;
type GrantSystemPHState = PHBaseState & {
  global: GrantSystemState;
  local: GrantSystemLocalState;
};
type GrantSystemDocument = PHDocument<GrantSystemPHState>;
//#endregion
//#region document-models/grant-system/v1/gen/identity/actions.d.ts
type SetTypeAction = Action & {
  type: "SET_TYPE";
  input: SetTypeInput;
};
type SetCodeAction = Action & {
  type: "SET_CODE";
  input: SetCodeInput;
};
type SetDescriptionAction = Action & {
  type: "SET_DESCRIPTION";
  input: SetDescriptionInput;
};
type SetGrantPoolsUriAction = Action & {
  type: "SET_GRANT_POOLS_URI";
  input: SetGrantPoolsUriInput;
};
type SetExtensionsAction = Action & {
  type: "SET_EXTENSIONS";
  input: SetExtensionsInput;
};
type SetImageAction = Action & {
  type: "SET_IMAGE";
  input: SetImageInput;
};
type SetCoverImageAction = Action & {
  type: "SET_COVER_IMAGE";
  input: SetCoverImageInput;
};
type SetEmailAction = Action & {
  type: "SET_EMAIL";
  input: SetEmailInput;
};
type SetContactNameAction = Action & {
  type: "SET_CONTACT_NAME";
  input: SetContactNameInput;
};
type SetOrgNameAction = Action & {
  type: "SET_ORG_NAME";
  input: SetOrgNameInput;
};
type GrantSystemIdentityAction = SetTypeAction | SetCodeAction | SetDescriptionAction | SetGrantPoolsUriAction | SetExtensionsAction | SetImageAction | SetCoverImageAction | SetEmailAction | SetContactNameAction | SetOrgNameAction;
//#endregion
//#region document-models/grant-system/v1/gen/links/actions.d.ts
type AddSameAsAction = Action & {
  type: "ADD_SAME_AS";
  input: AddSameAsInput;
};
type RemoveSameAsAction = Action & {
  type: "REMOVE_SAME_AS";
  input: RemoveSameAsInput;
};
type AddSocialAction = Action & {
  type: "ADD_SOCIAL";
  input: AddSocialInput;
};
type RemoveSocialAction = Action & {
  type: "REMOVE_SOCIAL";
  input: RemoveSocialInput;
};
type UpdateSocialUrlAction = Action & {
  type: "UPDATE_SOCIAL_URL";
  input: UpdateSocialUrlInput;
};
type GrantSystemLinksAction = AddSameAsAction | RemoveSameAsAction | AddSocialAction | RemoveSocialAction | UpdateSocialUrlAction;
//#endregion
//#region document-models/grant-system/v1/gen/verification/actions.d.ts
type SetPublisherWalletAction = Action & {
  type: "SET_PUBLISHER_WALLET";
  input: SetPublisherWalletInput;
};
type RequestVerificationAction = Action & {
  type: "REQUEST_VERIFICATION";
  input: RequestVerificationInput;
};
type ApproveVerificationAction = Action & {
  type: "APPROVE_VERIFICATION";
  input: ApproveVerificationInput;
};
type RejectVerificationAction = Action & {
  type: "REJECT_VERIFICATION";
  input: RejectVerificationInput;
};
type SuspendVerificationAction = Action & {
  type: "SUSPEND_VERIFICATION";
  input: SuspendVerificationInput;
};
type RevokeVerificationAction = Action & {
  type: "REVOKE_VERIFICATION";
  input: RevokeVerificationInput;
};
type ReinstateVerificationAction = Action & {
  type: "REINSTATE_VERIFICATION";
  input: ReinstateVerificationInput;
};
type GrantSystemVerificationAction = SetPublisherWalletAction | RequestVerificationAction | ApproveVerificationAction | RejectVerificationAction | SuspendVerificationAction | RevokeVerificationAction | ReinstateVerificationAction;
//#endregion
//#region document-models/grant-system/v1/gen/actions.d.ts
type GrantSystemAction = GrantSystemIdentityAction | GrantSystemLinksAction | GrantSystemVerificationAction;
//#endregion
export { SetEmailInput as $, AddSameAsInput as A, MakeOptional as B, SetGrantPoolsUriAction as C, GrantSystemDocument as D, SetTypeAction as E, GrantSystemType as F, RemoveSocialInput as G, ReinstateVerificationInput as H, Incremental as I, Scalars as J, RequestVerificationInput as K, InputMaybe as L, ApproveVerificationInput as M, Exact as N, GrantSystemLocalState as O, GrantSystemState as P, SetDescriptionInput as Q, MakeEmpty as R, SetExtensionsAction as S, SetOrgNameAction as T, RejectVerificationInput as U, Maybe as V, RemoveSameAsInput as W, SetContactNameInput as X, SetCodeInput as Y, SetCoverImageInput as Z, SetCodeAction as _, RejectVerificationAction as a, SetTypeInput as at, SetDescriptionAction as b, SetPublisherWalletAction as c, SuspendVerificationInput as ct, AddSocialAction as d, VerificationState as dt, SetExtensionsInput as et, GrantSystemLinksAction as f, GrantSystemIdentityAction as g, UpdateSocialUrlAction as h, ReinstateVerificationAction as i, SetPublisherWalletInput as it, AddSocialInput as j, GrantSystemPHState as k, SuspendVerificationAction as l, UpdateSocialUrlInput as lt, RemoveSocialAction as m, ApproveVerificationAction as n, SetImageInput as nt, RequestVerificationAction as o, Social as ot, RemoveSameAsAction as p, RevokeVerificationInput as q, GrantSystemVerificationAction as r, SetOrgNameInput as rt, RevokeVerificationAction as s, SocialPlatform as st, GrantSystemAction as t, SetGrantPoolsUriInput as tt, AddSameAsAction as u, VerificationMethod as ut, SetContactNameAction as v, SetImageAction as w, SetEmailAction as x, SetCoverImageAction as y, MakeMaybe as z };
//# sourceMappingURL=actions-fq3QfLpy.d.ts.map