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

//#region document-models/accounts/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 AccountEntry = {
  KycAmlStatus: Maybe<KycAmlStatusType>;
  account: Scalars["String"]["output"];
  accountTransactionsId: Maybe<Scalars["PHID"]["output"]>;
  budgetPath: Maybe<Scalars["String"]["output"]>;
  chain: Maybe<Array<Scalars["String"]["output"]>>;
  id: Scalars["OID"]["output"];
  name: Scalars["String"]["output"];
  owners: Maybe<Array<Scalars["String"]["output"]>>;
  type: AccountType;
};
type AccountType = "Destination" | "External" | "Internal" | "Source";
type AccountTypeInput = "Destination" | "External" | "Internal" | "Source";
type AccountsState = {
  accounts: Array<AccountEntry>;
};
type AddAccountInput = {
  KycAmlStatus?: InputMaybe<KycAmlStatusTypeInput>;
  account: Scalars["String"]["input"];
  accountTransactionsId?: InputMaybe<Scalars["PHID"]["input"]>;
  budgetPath?: InputMaybe<Scalars["String"]["input"]>;
  chain?: InputMaybe<Array<Scalars["String"]["input"]>>;
  id: Scalars["OID"]["input"];
  name: Scalars["String"]["input"];
  owners?: InputMaybe<Array<Scalars["String"]["input"]>>;
  type: AccountTypeInput;
};
type DeleteAccountInput = {
  id: Scalars["OID"]["input"];
};
type KycAmlStatusType = "FAILED" | "PASSED" | "PENDING";
type KycAmlStatusTypeInput = "FAILED" | "PASSED" | "PENDING";
type UpdateAccountInput = {
  KycAmlStatus?: InputMaybe<KycAmlStatusTypeInput>;
  account?: InputMaybe<Scalars["String"]["input"]>;
  accountTransactionsId?: InputMaybe<Scalars["PHID"]["input"]>;
  budgetPath?: InputMaybe<Scalars["String"]["input"]>;
  chain?: InputMaybe<Array<Scalars["String"]["input"]>>;
  id: Scalars["OID"]["input"];
  name?: InputMaybe<Scalars["String"]["input"]>;
  owners?: InputMaybe<Array<Scalars["String"]["input"]>>;
  type?: InputMaybe<AccountTypeInput>;
};
type UpdateKycStatusInput = {
  KycAmlStatus: KycAmlStatusTypeInput;
  id: Scalars["OID"]["input"];
};
//#endregion
//#region document-models/accounts/v1/gen/types.d.ts
type AccountsLocalState = Record<PropertyKey, never>;
type AccountsPHState = PHBaseState & {
  global: AccountsState;
  local: AccountsLocalState;
};
type AccountsDocument = PHDocument<AccountsPHState>;
//#endregion
//#region document-models/accounts/v1/gen/accounts/actions.d.ts
type AddAccountAction = Action & {
  type: "ADD_ACCOUNT";
  input: AddAccountInput;
};
type UpdateAccountAction = Action & {
  type: "UPDATE_ACCOUNT";
  input: UpdateAccountInput;
};
type DeleteAccountAction = Action & {
  type: "DELETE_ACCOUNT";
  input: DeleteAccountInput;
};
type UpdateKycStatusAction = Action & {
  type: "UPDATE_KYC_STATUS";
  input: UpdateKycStatusInput;
};
type AccountsAccountsAction = AddAccountAction | UpdateAccountAction | DeleteAccountAction | UpdateKycStatusAction;
//#endregion
//#region document-models/accounts/v1/gen/actions.d.ts
type AccountsAction = AccountsAccountsAction;
//#endregion
export { MakeOptional as C, UpdateKycStatusInput as D, UpdateAccountInput as E, MakeMaybe as S, Scalars as T, Incremental as _, UpdateAccountAction as a, KycAmlStatusTypeInput as b, AccountsLocalState as c, AccountType as d, AccountTypeInput as f, Exact as g, DeleteAccountInput as h, DeleteAccountAction as i, AccountsPHState as l, AddAccountInput as m, AccountsAccountsAction as n, UpdateKycStatusAction as o, AccountsState as p, AddAccountAction as r, AccountsDocument as s, AccountsAction as t, AccountEntry as u, InputMaybe as v, Maybe as w, MakeEmpty as x, KycAmlStatusType as y };
//# sourceMappingURL=actions-BOl4GPHp.d.ts.map