@zeroin.earth/appwrite-graphql 0.16.2 → 0.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ var utils = require('jotai/utils');
8
8
  var react = require('react');
9
9
  var immer = require('immer');
10
10
 
11
- function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Account_User"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},E={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Identity_Provider"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Identity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"provider"}}]}}]},P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AccountGet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Account_User"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Account_User"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateAnonymousSession"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateAnonymousSession"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateEmailToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phrase"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateEmailToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"phrase"},value:{kind:"Variable",name:{kind:"Name",value:"phrase"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},Q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateJWT"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateJWT"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"jwt"}}]}}]}}]},G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMagicURLToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phrase"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMagicURLToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}},{kind:"Argument",name:{kind:"Name",value:"phrase"},value:{kind:"Variable",name:{kind:"Name",value:"phrase"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMfaAuthenticator"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMfaAuthenticator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"secret"}},{kind:"Field",name:{kind:"Name",value:"uri"}}]}}]}}]},J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMfaChallenge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"factor"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMfaChallenge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"factor"},value:{kind:"Variable",name:{kind:"Name",value:"factor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recoveryCodes"}}]}}]}}]},B={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePhoneToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phone"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreatePhoneToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"phone"},value:{kind:"Variable",name:{kind:"Name",value:"phone"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},W={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePhoneVerification"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreatePhoneVerification"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteIdentity"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"identityId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteIdentity"},arguments:[{kind:"Argument",name:{kind:"Name",value:"identityId"},value:{kind:"Variable",name:{kind:"Name",value:"identityId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},X={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMfaAuthenticator"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteMfaAuthenticator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mfa"}}]}}]}}]},H={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sessionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sessionId"},value:{kind:"Variable",name:{kind:"Name",value:"sessionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGetMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recoveryCodes"}}]}}]}}]},ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPrefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGetPrefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sessionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGetSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sessionId"},value:{kind:"Variable",name:{kind:"Name",value:"sessionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},te={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListIdentities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListIdentities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"identities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Identity_Provider"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Identity_Provider"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Identity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"provider"}}]}}]},ae={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListMfaFactors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListMfaFactors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totp"}},{kind:"Field",name:{kind:"Name",value:"phone"}},{kind:"Field",name:{kind:"Name",value:"email"}}]}}]}}]},ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"osName"}},{kind:"Field",name:{kind:"Name",value:"clientName"}}]}}]}}]}}]},oe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateEmailPasswordSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateEmailPasswordSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},re={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListLogs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListLogs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"logs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"event"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"userEmail"}},{kind:"Field",name:{kind:"Name",value:"userName"}},{kind:"Field",name:{kind:"Name",value:"mode"}},{kind:"Field",name:{kind:"Name",value:"ip"}},{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"osCode"}},{kind:"Field",name:{kind:"Name",value:"osName"}},{kind:"Field",name:{kind:"Name",value:"osVersion"}},{kind:"Field",name:{kind:"Name",value:"clientType"}},{kind:"Field",name:{kind:"Name",value:"clientCode"}},{kind:"Field",name:{kind:"Name",value:"clientName"}},{kind:"Field",name:{kind:"Name",value:"clientVersion"}},{kind:"Field",name:{kind:"Name",value:"clientEngine"}},{kind:"Field",name:{kind:"Name",value:"clientEngineVersion"}},{kind:"Field",name:{kind:"Name",value:"deviceName"}},{kind:"Field",name:{kind:"Name",value:"deviceBrand"}},{kind:"Field",name:{kind:"Name",value:"deviceModel"}},{kind:"Field",name:{kind:"Name",value:"countryCode"}},{kind:"Field",name:{kind:"Name",value:"countryName"}}]}}]}}]}}]},se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateRecovery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateRecovery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},ue={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateRecovery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateRecovery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},ce={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}}]}}]}}]},de={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"VerifyEmail"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateEmail"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateEmail"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}}]}}]}}]},pe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMagicURLSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMagicURLSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},me={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMFA"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mfa"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMFA"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mfa"},value:{kind:"Variable",name:{kind:"Name",value:"mfa"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mfa"}}]}}]}}]},ye={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMfaAuthenticator"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMfaAuthenticator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mfa"}}]}}]}}]},Se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMfaChallenge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"challengeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMfaChallenge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"challengeId"},value:{kind:"Variable",name:{kind:"Name",value:"challengeId"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},ke={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recoveryCodes"}}]}}]}}]},fe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateName"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},ge={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePassword"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"oldPassword"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePassword"},arguments:[{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}},{kind:"Argument",name:{kind:"Name",value:"oldPassword"},value:{kind:"Variable",name:{kind:"Name",value:"oldPassword"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},ve={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePhone"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phone"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePhone"},arguments:[{kind:"Argument",name:{kind:"Name",value:"phone"},value:{kind:"Variable",name:{kind:"Name",value:"phone"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"phone"}}]}}]}}]},be={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePhoneSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePhoneSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},Me={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePhoneVerification"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePhoneVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},Ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePrefs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prefs"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePrefs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"prefs"},value:{kind:"Variable",name:{kind:"Name",value:"prefs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]}}]},De={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sessionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sessionId"},value:{kind:"Variable",name:{kind:"Name",value:"sessionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},xe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateVerification"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"secret"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"userId"}}]}}]}}]},Ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesListDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"documents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]}}]},$e={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permissions"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesCreateDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}},{kind:"Argument",name:{kind:"Name",value:"permissions"},value:{kind:"Variable",name:{kind:"Name",value:"permissions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]},Ce={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesDeleteDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Ae={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesGetDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},we={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permissions"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesUpdateDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}},{kind:"Argument",name:{kind:"Name",value:"permissions"},value:{kind:"Variable",name:{kind:"Name",value:"permissions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]},Te={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateExecution"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"functionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"body"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"async"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"method"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"functionsCreateExecution"},arguments:[{kind:"Argument",name:{kind:"Name",value:"functionId"},value:{kind:"Variable",name:{kind:"Name",value:"functionId"}}},{kind:"Argument",name:{kind:"Name",value:"body"},value:{kind:"Variable",name:{kind:"Name",value:"body"}}},{kind:"Argument",name:{kind:"Name",value:"async"},value:{kind:"Variable",name:{kind:"Name",value:"async"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"method"},value:{kind:"Variable",name:{kind:"Name",value:"method"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"responseStatusCode"}},{kind:"Field",name:{kind:"Name",value:"responseBody"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]}}]},Ue={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetFunctionExecution"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"functionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"executionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"functionsGetExecution"},arguments:[{kind:"Argument",name:{kind:"Name",value:"functionId"},value:{kind:"Variable",name:{kind:"Name",value:"functionId"}}},{kind:"Argument",name:{kind:"Name",value:"executionId"},value:{kind:"Variable",name:{kind:"Name",value:"executionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]}}]};var Xe={"\n fragment Account_User on User {\n _id\n name\n email\n prefs {\n data\n }\n }\n":F,"\n fragment Identity_Provider on Identity {\n _id\n userId\n provider\n }\n":E,"\n query AccountGet {\n accountGet {\n ...Account_User\n }\n }\n":P,"\n mutation CreateAnonymousSession {\n accountCreateAnonymousSession {\n _id\n expire\n current\n }\n }\n":R,"\n mutation CreateEmailToken($userId: String!, $email: String!, $phrase: Boolean) {\n accountCreateEmailToken(userId: $userId, email: $email, phrase: $phrase) {\n expire\n }\n }\n":L,"\n mutation CreateJWT {\n accountCreateJWT {\n jwt\n }\n }\n":Q,"\n mutation CreateMagicURLToken($userId: String!, $email: String!, $url: String, $phrase: Boolean) {\n accountCreateMagicURLToken(userId: $userId, email: $email, url: $url, phrase: $phrase) {\n expire\n }\n }\n":G,"\n mutation CreateMfaAuthenticator($type: String!) {\n accountCreateMfaAuthenticator(type: $type) {\n secret\n uri\n }\n }\n":O,"\n mutation CreateMfaChallenge($factor: String!) {\n accountCreateMfaChallenge(factor: $factor) {\n userId\n expire\n }\n }\n":J,"\n mutation CreateMfaRecoveryCodes {\n accountCreateMfaRecoveryCodes {\n recoveryCodes\n }\n }\n":K,"\n mutation CreatePhoneToken($userId: String!, $phone: String!) {\n accountCreatePhoneToken(userId: $userId, phone: $phone) {\n expire\n }\n }\n":B,"\n mutation CreatePhoneVerification {\n accountCreatePhoneVerification {\n expire\n }\n }\n":W,"\n mutation CreateSession($userId: String!, $secret: String!) {\n accountCreateSession(userId: $userId, secret: $secret) {\n userId\n expire\n current\n }\n }\n":j,"\n mutation DeleteIdentity($identityId: String!) {\n accountDeleteIdentity(identityId: $identityId) {\n status\n }\n }\n":z,"\n mutation DeleteMfaAuthenticator($type: String!, $otp: String!) {\n accountDeleteMfaAuthenticator(type: $type, otp: $otp) {\n mfa\n }\n }\n":X,"\n mutation DeleteSession($sessionId: String!) {\n accountDeleteSession(sessionId: $sessionId) {\n status\n }\n }\n":H,"\n mutation DeleteSessions {\n accountDeleteSessions {\n status\n }\n }\n":Y,"\n query GetMfaRecoveryCodes {\n accountGetMfaRecoveryCodes {\n recoveryCodes\n }\n }\n":Z,"\n query GetPrefs {\n accountGetPrefs {\n data\n }\n }\n":ee,"\n query GetSession($sessionId: String!) {\n accountGetSession(sessionId: $sessionId) {\n userId\n expire\n current\n }\n }\n":ne,"\n query ListIdentities {\n accountListIdentities {\n total\n identities {\n ...Identity_Provider\n }\n }\n }\n":te,"\n query ListMfaFactors {\n accountListMfaFactors {\n totp\n phone\n email\n }\n }\n":ae,"\n query ListSessions {\n accountListSessions {\n sessions {\n _id\n _createdAt\n osName\n clientName\n }\n }\n }\n":ie,"\n mutation CreateEmailPasswordSession($email: String!, $password: String!) {\n accountCreateEmailPasswordSession(email: $email, password: $password) {\n userId\n expire\n current\n }\n }\n":oe,"\n query ListLogs($queries: [String!]) {\n accountListLogs(queries: $queries) {\n total\n logs {\n event\n userId\n userEmail\n userName\n mode\n ip\n time\n osCode\n osName\n osVersion\n clientType\n clientCode\n clientName\n clientVersion\n clientEngine\n clientEngineVersion\n deviceName\n deviceBrand\n deviceModel\n countryCode\n countryName\n }\n }\n }\n":re,"\n mutation CreateRecovery($email: String!, $url: String!) {\n accountCreateRecovery(email: $email, url: $url) {\n expire\n }\n }\n":se,"\n mutation UpdateRecovery($userId: String!, $secret: String!, $password: String!) {\n accountUpdateRecovery(userId: $userId, secret: $secret, password: $password) {\n expire\n }\n }\n":ue,"\n mutation CreateAccount($userId: String!, $name: String, $email: String!, $password: String!) {\n accountCreate(userId: $userId, name: $name, email: $email, password: $password) {\n name\n email\n }\n }\n":ce,"\n mutation VerifyEmail($url: String!) {\n accountCreateVerification(url: $url) {\n expire\n }\n }\n":de,"\n mutation UpdateEmail($email: String!, $password: String!) {\n accountUpdateEmail(email: $email, password: $password) {\n name\n email\n }\n }\n":le,"\n mutation UpdateMagicURLSession($userId: String!, $secret: String!) {\n accountUpdateMagicURLSession(userId: $userId, secret: $secret) {\n userId\n expire\n current\n }\n }\n":pe,"\n mutation UpdateMFA($mfa: Boolean!) {\n accountUpdateMFA(mfa: $mfa) {\n mfa\n }\n }\n":me,"\n mutation UpdateMfaAuthenticator($type: String!, $otp: String!) {\n accountUpdateMfaAuthenticator(type: $type, otp: $otp) {\n mfa\n }\n }\n":ye,"\n mutation UpdateMfaChallenge($challengeId: String!, $otp: String!) {\n accountUpdateMfaChallenge(challengeId: $challengeId, otp: $otp) {\n status\n }\n }\n":Se,"\n mutation UpdateMfaRecoveryCodes {\n accountUpdateMfaRecoveryCodes {\n recoveryCodes\n }\n }\n":ke,"\n mutation UpdateName($name: String!) {\n accountUpdateName(name: $name) {\n name\n }\n }\n":fe,"\n mutation UpdatePassword($password: String!, $oldPassword: String!) {\n accountUpdatePassword(password: $password, oldPassword: $oldPassword) {\n status\n }\n }\n":ge,"\n mutation UpdatePhone($phone: String!, $password: String!) {\n accountUpdatePhone(phone: $phone, password: $password) {\n phone\n }\n }\n":ve,"\n mutation UpdatePhoneSession($userId: String!, $secret: String!) {\n accountUpdatePhoneSession(userId: $userId, secret: $secret) {\n userId\n expire\n current\n }\n }\n":be,"\n mutation UpdatePhoneVerification($userId: String!, $secret: String!) {\n accountUpdatePhoneVerification(userId: $userId, secret: $secret) {\n expire\n }\n }\n":Me,"\n mutation UpdatePrefs($prefs: JSON!) {\n accountUpdatePrefs(prefs: $prefs) {\n prefs {\n data\n }\n }\n }\n":Ne,"\n mutation UpdateSession($sessionId: String!) {\n accountUpdateSession(sessionId: $sessionId) {\n userId\n expire\n current\n }\n }\n":De,"\n mutation UpdateVerification($userId: String!, $secret: String!) {\n accountUpdateVerification(userId: $userId, secret: $secret) {\n secret\n expire\n userId\n }\n }\n":xe,"\n query ListDocuments($databaseId: String!, $collectionId: String!, $queries: [String!]) {\n databasesListDocuments(\n databaseId: $databaseId\n collectionId: $collectionId\n queries: $queries\n ) {\n total\n documents {\n _id\n data\n }\n }\n }\n":Ie,"\n mutation CreateDocument(\n $databaseId: String!\n $collectionId: String!\n $documentId: String!\n $data: JSON!\n $permissions: [String!]\n ) {\n databasesCreateDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n data: $data\n permissions: $permissions\n ) {\n _id\n }\n }\n":$e,"\n mutation DeleteDocument($databaseId: String!, $collectionId: String!, $documentId: String!) {\n databasesDeleteDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n ) {\n status\n }\n }\n":Ce,"\n query GetDocument($databaseId: String!, $collectionId: String!, $documentId: String!) {\n databasesGetDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n ) {\n _id\n data\n }\n }\n":Ae,"\n mutation UpdateDocument(\n $databaseId: String!\n $collectionId: String!\n $documentId: String!\n $data: JSON\n $permissions: [String!]\n ) {\n databasesUpdateDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n data: $data\n permissions: $permissions\n ) {\n _id\n }\n }\n":we,"\n mutation CreateExecution(\n $functionId: String!\n $body: String\n $async: Boolean\n $path: String\n $method: String # $headers: JSON\n ) {\n functionsCreateExecution(\n functionId: $functionId\n body: $body\n async: $async\n path: $path\n method: $method # headers: $headers\n ) {\n _id\n status\n responseStatusCode\n responseBody\n errors\n duration\n }\n }\n":Te,"\n query GetFunctionExecution($functionId: String!, $executionId: String!) {\n functionsGetExecution(functionId: $functionId, executionId: $executionId) {\n status\n errors\n duration\n }\n }\n":Ue};function o(e){return Xe[e]??{}}var he=o(`
11
+ function Oe(e,a){return a}var U={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Account_User"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},V={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Identity_Provider"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Identity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"provider"}}]}}]},q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AccountGet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Account_User"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Account_User"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},_={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateAnonymousSession"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateAnonymousSession"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},F={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateEmailToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phrase"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateEmailToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"phrase"},value:{kind:"Variable",name:{kind:"Name",value:"phrase"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},E={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateJWT"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateJWT"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"jwt"}}]}}]}}]},P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMagicURLToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phrase"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMagicURLToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}},{kind:"Argument",name:{kind:"Name",value:"phrase"},value:{kind:"Variable",name:{kind:"Name",value:"phrase"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMfaAuthenticator"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMfaAuthenticator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"secret"}},{kind:"Field",name:{kind:"Name",value:"uri"}}]}}]}}]},L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMfaChallenge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"factor"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMfaChallenge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"factor"},value:{kind:"Variable",name:{kind:"Name",value:"factor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},Q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recoveryCodes"}}]}}]}}]},G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePhoneToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phone"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreatePhoneToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"phone"},value:{kind:"Variable",name:{kind:"Name",value:"phone"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePhoneVerification"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreatePhoneVerification"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},B={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteIdentity"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"identityId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteIdentity"},arguments:[{kind:"Argument",name:{kind:"Name",value:"identityId"},value:{kind:"Variable",name:{kind:"Name",value:"identityId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMfaAuthenticator"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteMfaAuthenticator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mfa"}}]}}]}}]},W={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sessionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sessionId"},value:{kind:"Variable",name:{kind:"Name",value:"sessionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGetMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recoveryCodes"}}]}}]}}]},X={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPrefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGetPrefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},H={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sessionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGetSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sessionId"},value:{kind:"Variable",name:{kind:"Name",value:"sessionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListIdentities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListIdentities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"identities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Identity_Provider"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Identity_Provider"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Identity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"provider"}}]}}]},Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListMfaFactors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListMfaFactors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totp"}},{kind:"Field",name:{kind:"Name",value:"phone"}},{kind:"Field",name:{kind:"Name",value:"email"}}]}}]}}]},ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"osName"}},{kind:"Field",name:{kind:"Name",value:"clientName"}}]}}]}}]}}]},ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateEmailPasswordSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateEmailPasswordSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},te={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListLogs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListLogs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"logs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"event"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"userEmail"}},{kind:"Field",name:{kind:"Name",value:"userName"}},{kind:"Field",name:{kind:"Name",value:"mode"}},{kind:"Field",name:{kind:"Name",value:"ip"}},{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"osCode"}},{kind:"Field",name:{kind:"Name",value:"osName"}},{kind:"Field",name:{kind:"Name",value:"osVersion"}},{kind:"Field",name:{kind:"Name",value:"clientType"}},{kind:"Field",name:{kind:"Name",value:"clientCode"}},{kind:"Field",name:{kind:"Name",value:"clientName"}},{kind:"Field",name:{kind:"Name",value:"clientVersion"}},{kind:"Field",name:{kind:"Name",value:"clientEngine"}},{kind:"Field",name:{kind:"Name",value:"clientEngineVersion"}},{kind:"Field",name:{kind:"Name",value:"deviceName"}},{kind:"Field",name:{kind:"Name",value:"deviceBrand"}},{kind:"Field",name:{kind:"Name",value:"deviceModel"}},{kind:"Field",name:{kind:"Name",value:"countryCode"}},{kind:"Field",name:{kind:"Name",value:"countryName"}}]}}]}}]}}]},ae={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateRecovery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateRecovery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateRecovery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateRecovery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},oe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}}]}}]}}]},re={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"VerifyEmail"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateEmail"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateEmail"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}}]}}]}}]},ue={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMagicURLSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMagicURLSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},ce={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMFA"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mfa"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMFA"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mfa"},value:{kind:"Variable",name:{kind:"Name",value:"mfa"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mfa"}}]}}]}}]},de={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMfaAuthenticator"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMfaAuthenticator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mfa"}}]}}]}}]},le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMfaChallenge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"challengeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMfaChallenge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"challengeId"},value:{kind:"Variable",name:{kind:"Name",value:"challengeId"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},pe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recoveryCodes"}}]}}]}}]},me={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateName"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},ye={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePassword"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"oldPassword"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePassword"},arguments:[{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}},{kind:"Argument",name:{kind:"Name",value:"oldPassword"},value:{kind:"Variable",name:{kind:"Name",value:"oldPassword"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePhone"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phone"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePhone"},arguments:[{kind:"Argument",name:{kind:"Name",value:"phone"},value:{kind:"Variable",name:{kind:"Name",value:"phone"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"phone"}}]}}]}}]},ke={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePhoneSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePhoneSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},fe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePhoneVerification"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePhoneVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},ge={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePrefs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prefs"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePrefs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"prefs"},value:{kind:"Variable",name:{kind:"Name",value:"prefs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]}}]},ve={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sessionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sessionId"},value:{kind:"Variable",name:{kind:"Name",value:"sessionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},be={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateVerification"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"secret"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"userId"}}]}}]}}]},Me={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesListDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"documents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]}}]},Ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permissions"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesCreateDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}},{kind:"Argument",name:{kind:"Name",value:"permissions"},value:{kind:"Variable",name:{kind:"Name",value:"permissions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]},De={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesDeleteDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},xe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesGetDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},Ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permissions"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesUpdateDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}},{kind:"Argument",name:{kind:"Name",value:"permissions"},value:{kind:"Variable",name:{kind:"Name",value:"permissions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]},Ce={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateExecution"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"functionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"body"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"async"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"method"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"functionsCreateExecution"},arguments:[{kind:"Argument",name:{kind:"Name",value:"functionId"},value:{kind:"Variable",name:{kind:"Name",value:"functionId"}}},{kind:"Argument",name:{kind:"Name",value:"body"},value:{kind:"Variable",name:{kind:"Name",value:"body"}}},{kind:"Argument",name:{kind:"Name",value:"async"},value:{kind:"Variable",name:{kind:"Name",value:"async"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"method"},value:{kind:"Variable",name:{kind:"Name",value:"method"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"responseStatusCode"}},{kind:"Field",name:{kind:"Name",value:"responseBody"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]}}]},$e={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetFunctionExecution"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"functionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"executionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"functionsGetExecution"},arguments:[{kind:"Argument",name:{kind:"Name",value:"functionId"},value:{kind:"Variable",name:{kind:"Name",value:"functionId"}}},{kind:"Argument",name:{kind:"Name",value:"executionId"},value:{kind:"Variable",name:{kind:"Name",value:"executionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"responseBody"}},{kind:"Field",name:{kind:"Name",value:"requestPath"}}]}}]}}]};var Be={"\n fragment Account_User on User {\n _id\n name\n email\n prefs {\n data\n }\n }\n":U,"\n fragment Identity_Provider on Identity {\n _id\n userId\n provider\n }\n":V,"\n query AccountGet {\n accountGet {\n ...Account_User\n }\n }\n":q,"\n mutation CreateAnonymousSession {\n accountCreateAnonymousSession {\n _id\n expire\n current\n }\n }\n":_,"\n mutation CreateEmailToken($userId: String!, $email: String!, $phrase: Boolean) {\n accountCreateEmailToken(userId: $userId, email: $email, phrase: $phrase) {\n expire\n }\n }\n":F,"\n mutation CreateJWT {\n accountCreateJWT {\n jwt\n }\n }\n":E,"\n mutation CreateMagicURLToken($userId: String!, $email: String!, $url: String, $phrase: Boolean) {\n accountCreateMagicURLToken(userId: $userId, email: $email, url: $url, phrase: $phrase) {\n expire\n }\n }\n":P,"\n mutation CreateMfaAuthenticator($type: String!) {\n accountCreateMfaAuthenticator(type: $type) {\n secret\n uri\n }\n }\n":R,"\n mutation CreateMfaChallenge($factor: String!) {\n accountCreateMfaChallenge(factor: $factor) {\n userId\n expire\n }\n }\n":L,"\n mutation CreateMfaRecoveryCodes {\n accountCreateMfaRecoveryCodes {\n recoveryCodes\n }\n }\n":Q,"\n mutation CreatePhoneToken($userId: String!, $phone: String!) {\n accountCreatePhoneToken(userId: $userId, phone: $phone) {\n expire\n }\n }\n":G,"\n mutation CreatePhoneVerification {\n accountCreatePhoneVerification {\n expire\n }\n }\n":O,"\n mutation CreateSession($userId: String!, $secret: String!) {\n accountCreateSession(userId: $userId, secret: $secret) {\n userId\n expire\n current\n }\n }\n":J,"\n mutation DeleteIdentity($identityId: String!) {\n accountDeleteIdentity(identityId: $identityId) {\n status\n }\n }\n":B,"\n mutation DeleteMfaAuthenticator($type: String!, $otp: String!) {\n accountDeleteMfaAuthenticator(type: $type, otp: $otp) {\n mfa\n }\n }\n":K,"\n mutation DeleteSession($sessionId: String!) {\n accountDeleteSession(sessionId: $sessionId) {\n status\n }\n }\n":W,"\n mutation DeleteSessions {\n accountDeleteSessions {\n status\n }\n }\n":j,"\n query GetMfaRecoveryCodes {\n accountGetMfaRecoveryCodes {\n recoveryCodes\n }\n }\n":z,"\n query GetPrefs {\n accountGetPrefs {\n data\n }\n }\n":X,"\n query GetSession($sessionId: String!) {\n accountGetSession(sessionId: $sessionId) {\n userId\n expire\n current\n }\n }\n":H,"\n query ListIdentities {\n accountListIdentities {\n total\n identities {\n ...Identity_Provider\n }\n }\n }\n":Y,"\n query ListMfaFactors {\n accountListMfaFactors {\n totp\n phone\n email\n }\n }\n":Z,"\n query ListSessions {\n accountListSessions {\n sessions {\n _id\n _createdAt\n osName\n clientName\n }\n }\n }\n":ee,"\n mutation CreateEmailPasswordSession($email: String!, $password: String!) {\n accountCreateEmailPasswordSession(email: $email, password: $password) {\n userId\n expire\n current\n }\n }\n":ne,"\n query ListLogs($queries: [String!]) {\n accountListLogs(queries: $queries) {\n total\n logs {\n event\n userId\n userEmail\n userName\n mode\n ip\n time\n osCode\n osName\n osVersion\n clientType\n clientCode\n clientName\n clientVersion\n clientEngine\n clientEngineVersion\n deviceName\n deviceBrand\n deviceModel\n countryCode\n countryName\n }\n }\n }\n":te,"\n mutation CreateRecovery($email: String!, $url: String!) {\n accountCreateRecovery(email: $email, url: $url) {\n expire\n }\n }\n":ae,"\n mutation UpdateRecovery($userId: String!, $secret: String!, $password: String!) {\n accountUpdateRecovery(userId: $userId, secret: $secret, password: $password) {\n expire\n }\n }\n":ie,"\n mutation CreateAccount($userId: String!, $name: String, $email: String!, $password: String!) {\n accountCreate(userId: $userId, name: $name, email: $email, password: $password) {\n name\n email\n }\n }\n":oe,"\n mutation VerifyEmail($url: String!) {\n accountCreateVerification(url: $url) {\n expire\n }\n }\n":re,"\n mutation UpdateEmail($email: String!, $password: String!) {\n accountUpdateEmail(email: $email, password: $password) {\n name\n email\n }\n }\n":se,"\n mutation UpdateMagicURLSession($userId: String!, $secret: String!) {\n accountUpdateMagicURLSession(userId: $userId, secret: $secret) {\n userId\n expire\n current\n }\n }\n":ue,"\n mutation UpdateMFA($mfa: Boolean!) {\n accountUpdateMFA(mfa: $mfa) {\n mfa\n }\n }\n":ce,"\n mutation UpdateMfaAuthenticator($type: String!, $otp: String!) {\n accountUpdateMfaAuthenticator(type: $type, otp: $otp) {\n mfa\n }\n }\n":de,"\n mutation UpdateMfaChallenge($challengeId: String!, $otp: String!) {\n accountUpdateMfaChallenge(challengeId: $challengeId, otp: $otp) {\n status\n }\n }\n":le,"\n mutation UpdateMfaRecoveryCodes {\n accountUpdateMfaRecoveryCodes {\n recoveryCodes\n }\n }\n":pe,"\n mutation UpdateName($name: String!) {\n accountUpdateName(name: $name) {\n name\n }\n }\n":me,"\n mutation UpdatePassword($password: String!, $oldPassword: String!) {\n accountUpdatePassword(password: $password, oldPassword: $oldPassword) {\n status\n }\n }\n":ye,"\n mutation UpdatePhone($phone: String!, $password: String!) {\n accountUpdatePhone(phone: $phone, password: $password) {\n phone\n }\n }\n":Se,"\n mutation UpdatePhoneSession($userId: String!, $secret: String!) {\n accountUpdatePhoneSession(userId: $userId, secret: $secret) {\n userId\n expire\n current\n }\n }\n":ke,"\n mutation UpdatePhoneVerification($userId: String!, $secret: String!) {\n accountUpdatePhoneVerification(userId: $userId, secret: $secret) {\n expire\n }\n }\n":fe,"\n mutation UpdatePrefs($prefs: JSON!) {\n accountUpdatePrefs(prefs: $prefs) {\n prefs {\n data\n }\n }\n }\n":ge,"\n mutation UpdateSession($sessionId: String!) {\n accountUpdateSession(sessionId: $sessionId) {\n userId\n expire\n current\n }\n }\n":ve,"\n mutation UpdateVerification($userId: String!, $secret: String!) {\n accountUpdateVerification(userId: $userId, secret: $secret) {\n secret\n expire\n userId\n }\n }\n":be,"\n query ListDocuments($databaseId: String!, $collectionId: String!, $queries: [String!]) {\n databasesListDocuments(\n databaseId: $databaseId\n collectionId: $collectionId\n queries: $queries\n ) {\n total\n documents {\n _id\n data\n }\n }\n }\n":Me,"\n mutation CreateDocument(\n $databaseId: String!\n $collectionId: String!\n $documentId: String!\n $data: JSON!\n $permissions: [String!]\n ) {\n databasesCreateDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n data: $data\n permissions: $permissions\n ) {\n _id\n }\n }\n":Ne,"\n mutation DeleteDocument($databaseId: String!, $collectionId: String!, $documentId: String!) {\n databasesDeleteDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n ) {\n status\n }\n }\n":De,"\n query GetDocument($databaseId: String!, $collectionId: String!, $documentId: String!) {\n databasesGetDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n ) {\n _id\n data\n }\n }\n":xe,"\n mutation UpdateDocument(\n $databaseId: String!\n $collectionId: String!\n $documentId: String!\n $data: JSON\n $permissions: [String!]\n ) {\n databasesUpdateDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n data: $data\n permissions: $permissions\n ) {\n _id\n }\n }\n":Ie,"\n mutation CreateExecution(\n $functionId: String!\n $body: String\n $async: Boolean\n $path: String\n $method: String # $headers: JSON\n ) {\n functionsCreateExecution(\n functionId: $functionId\n body: $body\n async: $async\n path: $path\n method: $method # headers: $headers\n ) {\n _id\n status\n responseStatusCode\n responseBody\n errors\n duration\n }\n }\n":Ce,"\n query GetFunctionExecution($functionId: String!, $executionId: String!) {\n functionsGetExecution(functionId: $functionId, executionId: $executionId) {\n status\n errors\n duration\n responseBody\n requestPath\n }\n }\n":$e};function r(e){return Be[e]??{}}var Ae=r(`
12
12
  fragment Account_User on User {
13
13
  _id
14
14
  name
@@ -17,19 +17,19 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
17
17
  data
18
18
  }
19
19
  }
20
- `),Ve=o(`
20
+ `),we=r(`
21
21
  fragment Identity_Provider on Identity {
22
22
  _id
23
23
  userId
24
24
  provider
25
25
  }
26
- `);var Ye=process.env.APPWRITE_ENDPOINT??process.env.EXPO_PUBLIC_APPWRITE_URL??process.env.NEXT_PUBLIC_APPWRITE_URL??"http://localhost/v1",Ze=process.env.APPWRITE_PROJECT_ID??process.env.EXPO_PUBLIC_APPWRITE_PROJECT_ID??process.env.NEXT_PUBLIC_APPWRITE_PROJECT_ID??"[PROJECT_ID]",D=new appwrite.Client;D.setEndpoint(Ye).setProject(Ze);var Pe=e=>({client:e.client,query:async({query:a,variables:n})=>{let{data:t,errors:i}=await e.query({query:graphql.print(a),variables:n});return {data:t,errors:i}},mutation:async({query:a,variables:n})=>{let{data:t,errors:i}=await e.mutation({query:graphql.print(a),variables:n});return {data:t,errors:i}}}),Fe=jotai.atom({account:new appwrite.Account(D),databases:new appwrite.Databases(D),graphql:Pe(new appwrite.Graphql(D))}),x=jotai.atom(e=>e(Fe),(e,a,{endpoint:n,projectId:t})=>{let i=new appwrite.Client;i.setEndpoint(n).setProject(t);let s=new appwrite.Account(i),c=new appwrite.Databases(i),d=new appwrite.Graphql(i);a(Fe,{account:s,databases:c,graphql:Pe(d)});});function r(){let{account:e,databases:a,graphql:n}=jotai.useAtomValue(x);return {account:e,databases:a,graphql:n}}var an=new reactQuery.QueryClient,Re=jotai.atom(an);function p(){let[e]=jotai.useAtom(Re);return e}function u(e){let a=p();return reactQuery.useMutation(e,a)}function m(e){let a=p();return reactQuery.useQuery(e,a)}function _(e){let a=p(),n=reactQuery.useQuery({...e,enabled:!1},a);return {run:n.refetch,query:n}}function f(e){let a=p();return reactQuery.useSuspenseQuery(e,a)}function ln({endpoint:e,projectId:a,children:n}){return utils.useHydrateAtoms([[x,{endpoint:e,projectId:a}]]),n}var yn=o(`
26
+ `);var We=process.env.APPWRITE_ENDPOINT??process.env.EXPO_PUBLIC_APPWRITE_URL??process.env.NEXT_PUBLIC_APPWRITE_URL??"http://localhost/v1",je=process.env.APPWRITE_PROJECT_ID??process.env.EXPO_PUBLIC_APPWRITE_PROJECT_ID??process.env.NEXT_PUBLIC_APPWRITE_PROJECT_ID??"[PROJECT_ID]",v=new appwrite.Client;v.setEndpoint(We).setProject(je);var qe=e=>({client:e.client,query:async({query:a,variables:n})=>{let{data:t,errors:i}=await e.query({query:graphql.print(a),variables:n});return {data:t,errors:i}},mutation:async({query:a,variables:n})=>{let{data:t,errors:i}=await e.mutation({query:graphql.print(a),variables:n});return {data:t,errors:i}}}),Ue=jotai.atom({account:new appwrite.Account(v),databases:new appwrite.Databases(v),graphql:qe(new appwrite.Graphql(v))}),b=jotai.atom(e=>e(Ue),(e,a,{endpoint:n,projectId:t})=>{let i=new appwrite.Client;i.setEndpoint(n).setProject(t);let s=new appwrite.Account(i),c=new appwrite.Databases(i),d=new appwrite.Graphql(i);a(Ue,{account:s,databases:c,graphql:qe(d)});});function o(){let{account:e,databases:a,graphql:n}=jotai.useAtomValue(b);return {account:e,databases:a,graphql:n}}var Ye=new reactQuery.QueryClient,_e=jotai.atom(Ye);function l(){let[e]=jotai.useAtom(_e);return e}function u(e){let a=l();return reactQuery.useMutation(e,a)}function m(e){let a=l();return reactQuery.useQuery(e,a)}function k(e){let a=l(),n=reactQuery.useQuery({...e,enabled:!1},a);return {run:n.refetch,query:n}}function f(e){let a=l();return reactQuery.useSuspenseQuery(e,a)}function rn({endpoint:e,projectId:a,children:n}){return utils.useHydrateAtoms([[b,{endpoint:e,projectId:a}]]),n}var cn=r(`
27
27
  query AccountGet {
28
28
  accountGet {
29
29
  ...Account_User
30
30
  }
31
31
  }
32
- `);function Sn(){let{graphql:e}=r(),a=p(),n=_(Qe(e));return react.useEffect(()=>Ge(e,a),[e.client,a]),n}function kn(){let{graphql:e}=r(),a=p(),n=m(Qe(e));return react.useEffect(()=>Ge(e,a),[e.client,a]),n}function Qe(e){return {queryKey:["appwrite","account"],queryFn:async()=>{let{data:a,errors:n}=await e.query({query:yn});if(n)throw n;return a.accountGet},retry:!1}}function Ge(e,a){return e.client.subscribe("account",n=>{if(n.events.some(i=>i.endsWith("prefs"))){a.setQueryData(["appwrite","account"],i=>immer.produce(i,s=>{s&&(s.prefs=immer.castDraft(n.payload.prefs));}));return}a.setQueryData(["appwrite","account"],n.payload);})}var fn=o(`
32
+ `);function dn(){let{graphql:e}=o(),a=l(),n=k(Ee(e));return react.useEffect(()=>Pe(e,a),[e.client,a]),n}function ln(){let{graphql:e}=o(),a=l(),n=m(Ee(e));return react.useEffect(()=>Pe(e,a),[e.client,a]),n}function Ee(e){return {queryKey:["appwrite","account"],queryFn:async()=>{let{data:a,errors:n}=await e.query({query:cn});if(n)throw n;return a.accountGet},retry:!1}}function Pe(e,a){return e.client.subscribe("account",n=>{if(n.events.some(i=>i.endsWith("prefs"))){a.setQueryData(["appwrite","account"],i=>immer.produce(i,s=>{s&&(s.prefs=immer.castDraft(n.payload.prefs));}));return}a.setQueryData(["appwrite","account"],n.payload);})}var pn=r(`
33
33
  mutation CreateAnonymousSession {
34
34
  accountCreateAnonymousSession {
35
35
  _id
@@ -37,57 +37,57 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
37
37
  current
38
38
  }
39
39
  }
40
- `);function gn(){let{graphql:e}=r();return {...u({mutationFn:async()=>{let{data:n,errors:t}=await e.mutation({query:fn});if(t)throw t;return n.accountCreateAnonymousSession}})}}var vn=o(`
40
+ `);function mn(){let{graphql:e}=o();return {...u({mutationFn:async()=>{let{data:n,errors:t}=await e.mutation({query:pn});if(t)throw t;return n.accountCreateAnonymousSession}})}}var yn=r(`
41
41
  mutation CreateEmailToken($userId: String!, $email: String!, $phrase: Boolean) {
42
42
  accountCreateEmailToken(userId: $userId, email: $email, phrase: $phrase) {
43
43
  expire
44
44
  }
45
45
  }
46
- `);function bn(){let{graphql:e}=r();return {...u({mutationFn:async({userId:n,email:t,phrase:i})=>{let{data:s,errors:c}=await e.mutation({query:vn,variables:{userId:n,email:t,phrase:i}});if(c)throw c;return s.accountCreateEmailToken}})}}var Oe=o(`
46
+ `);function Sn(){let{graphql:e}=o();return {...u({mutationFn:async({userId:n,email:t,phrase:i})=>{let{data:s,errors:c}=await e.mutation({query:yn,variables:{userId:n,email:t,phrase:i}});if(c)throw c;return s.accountCreateEmailToken}})}}var Re=r(`
47
47
  mutation CreateJWT {
48
48
  accountCreateJWT {
49
49
  jwt
50
50
  }
51
51
  }
52
- `);function Mn({gcTime:e=6e5}={}){let{graphql:a}=r(),n=p();return {...u({gcTime:e,mutationKey:["appwrite","jwt"],mutationFn:async()=>{let{data:i,errors:s}=await a.mutation({query:Oe});if(s)throw s;return i.accountCreateJWT},onSuccess:i=>{a.client.setJWT(i.jwt),n.setQueryData(["appwrite","jwt"],i.jwt,{updatedAt:Date.now()});}})}}function Nn({gcTime:e=6e5}={}){let{graphql:a}=r();return {...f({gcTime:e,queryKey:["appwrite","jwt"],queryFn:async()=>{let{data:t,errors:i}=await a.mutation({query:Oe});if(i)throw i;return a.client.setJWT(t.accountCreateJWT.jwt),t.accountCreateJWT}})}}var Dn=o(`
52
+ `);function kn({gcTime:e=6e5}={}){let{graphql:a}=o(),n=l();return {...u({gcTime:e,mutationKey:["appwrite","jwt"],mutationFn:async()=>{let{data:i,errors:s}=await a.mutation({query:Re});if(s)throw s;return i.accountCreateJWT},onSuccess:i=>{a.client.setJWT(i.jwt),n.setQueryData(["appwrite","jwt"],i.jwt,{updatedAt:Date.now()});}})}}function fn({gcTime:e=6e5}={}){let{graphql:a}=o();return {...f({gcTime:e,queryKey:["appwrite","jwt"],queryFn:async()=>{let{data:t,errors:i}=await a.mutation({query:Re});if(i)throw i;return a.client.setJWT(t.accountCreateJWT.jwt),t.accountCreateJWT}})}}var gn=r(`
53
53
  mutation CreateMagicURLToken($userId: String!, $email: String!, $url: String, $phrase: Boolean) {
54
54
  accountCreateMagicURLToken(userId: $userId, email: $email, url: $url, phrase: $phrase) {
55
55
  expire
56
56
  }
57
57
  }
58
- `);function xn(){let{graphql:e}=r();return {...u({mutationFn:async({userId:n,email:t,url:i,phrase:s})=>{let{data:c,errors:d}=await e.mutation({query:Dn,variables:{userId:n,email:t,url:i,phrase:s}});if(d)throw d;return c.accountCreateMagicURLToken}})}}var In=o(`
58
+ `);function vn(){let{graphql:e}=o();return {...u({mutationFn:async({userId:n,email:t,url:i,phrase:s})=>{let{data:c,errors:d}=await e.mutation({query:gn,variables:{userId:n,email:t,url:i,phrase:s}});if(d)throw d;return c.accountCreateMagicURLToken}})}}var bn=r(`
59
59
  mutation CreateMfaAuthenticator($type: String!) {
60
60
  accountCreateMfaAuthenticator(type: $type) {
61
61
  secret
62
62
  uri
63
63
  }
64
64
  }
65
- `);function $n(){let{graphql:e}=r();return {...u({mutationFn:async({type:n="totp"})=>{let{data:t,errors:i}=await e.mutation({query:In,variables:{type:n}});if(i)throw i;return t.accountCreateMfaAuthenticator}})}}var Cn=o(`
65
+ `);function Mn(){let{graphql:e}=o();return {...u({mutationFn:async({type:n="totp"})=>{let{data:t,errors:i}=await e.mutation({query:bn,variables:{type:n}});if(i)throw i;return t.accountCreateMfaAuthenticator}})}}var Nn=r(`
66
66
  mutation CreateMfaChallenge($factor: String!) {
67
67
  accountCreateMfaChallenge(factor: $factor) {
68
68
  userId
69
69
  expire
70
70
  }
71
71
  }
72
- `);function An(){let{graphql:e}=r();return {...u({mutationFn:async({factor:n})=>{let{data:t,errors:i}=await e.mutation({query:Cn,variables:{factor:n}});if(i)throw i;return t.accountCreateMfaChallenge}})}}var wn=o(`
72
+ `);function Dn(){let{graphql:e}=o();return {...u({mutationFn:async({factor:n})=>{let{data:t,errors:i}=await e.mutation({query:Nn,variables:{factor:n}});if(i)throw i;return t.accountCreateMfaChallenge}})}}var xn=r(`
73
73
  mutation CreateMfaRecoveryCodes {
74
74
  accountCreateMfaRecoveryCodes {
75
75
  recoveryCodes
76
76
  }
77
77
  }
78
- `);function Tn(){let{graphql:e}=r();return {...u({mutationFn:async()=>{let{data:n,errors:t}=await e.mutation({query:wn});if(t)throw t;return n.accountCreateMfaRecoveryCodes}})}}var Un=o(`
78
+ `);function In(){let{graphql:e}=o();return {...u({mutationFn:async()=>{let{data:n,errors:t}=await e.mutation({query:xn});if(t)throw t;return n.accountCreateMfaRecoveryCodes}})}}var Cn=r(`
79
79
  mutation CreatePhoneToken($userId: String!, $phone: String!) {
80
80
  accountCreatePhoneToken(userId: $userId, phone: $phone) {
81
81
  expire
82
82
  }
83
83
  }
84
- `);function hn(){let{graphql:e}=r();return {...u({mutationFn:async({userId:n,phone:t})=>{let{data:i,errors:s}=await e.mutation({query:Un,variables:{userId:n,phone:t}});if(s)throw s;return i.accountCreatePhoneToken}})}}var Vn=o(`
84
+ `);function $n(){let{graphql:e}=o();return {...u({mutationFn:async({userId:n,phone:t})=>{let{data:i,errors:s}=await e.mutation({query:Cn,variables:{userId:n,phone:t}});if(s)throw s;return i.accountCreatePhoneToken}})}}var An=r(`
85
85
  mutation CreatePhoneVerification {
86
86
  accountCreatePhoneVerification {
87
87
  expire
88
88
  }
89
89
  }
90
- `);function qn(){let{graphql:e}=r();return {...u({mutationFn:async()=>{let{data:n,errors:t}=await e.mutation({query:Vn});if(t)throw t;return n.accountCreatePhoneVerification}})}}var _n=o(`
90
+ `);function wn(){let{graphql:e}=o();return {...u({mutationFn:async()=>{let{data:n,errors:t}=await e.mutation({query:An});if(t)throw t;return n.accountCreatePhoneVerification}})}}var hn=r(`
91
91
  mutation CreateSession($userId: String!, $secret: String!) {
92
92
  accountCreateSession(userId: $userId, secret: $secret) {
93
93
  userId
@@ -95,43 +95,43 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
95
95
  current
96
96
  }
97
97
  }
98
- `);function Fn(){let{graphql:e}=r();return {...u({mutationFn:async({userId:n,secret:t})=>{let{data:i,errors:s}=await e.mutation({query:_n,variables:{userId:n,secret:t}});if(s)throw s;return i.accountCreateSession}})}}var En=o(`
98
+ `);function Tn(){let{graphql:e}=o();return {...u({mutationFn:async({userId:n,secret:t})=>{let{data:i,errors:s}=await e.mutation({query:hn,variables:{userId:n,secret:t}});if(s)throw s;return i.accountCreateSession}})}}var Un=r(`
99
99
  mutation DeleteIdentity($identityId: String!) {
100
100
  accountDeleteIdentity(identityId: $identityId) {
101
101
  status
102
102
  }
103
103
  }
104
- `);function Pn(){let{graphql:e}=r();return {...u({mutationFn:async({identityId:n})=>{let{data:t,errors:i}=await e.mutation({query:En,variables:{identityId:n}});if(i)throw i;return t?.accountDeleteIdentity??{status:!1}}})}}var Rn=o(`
104
+ `);function Vn(){let{graphql:e}=o();return {...u({mutationFn:async({identityId:n})=>{let{data:t,errors:i}=await e.mutation({query:Un,variables:{identityId:n}});if(i)throw i;return t?.accountDeleteIdentity??{status:!1}}})}}var qn=r(`
105
105
  mutation DeleteMfaAuthenticator($type: String!, $otp: String!) {
106
106
  accountDeleteMfaAuthenticator(type: $type, otp: $otp) {
107
107
  mfa
108
108
  }
109
109
  }
110
- `);function Ln(){let{graphql:e}=r();return {...u({mutationFn:async({type:n="totp",otp:t})=>{let{data:i,errors:s}=await e.mutation({query:Rn,variables:{type:n,otp:t}});if(s)throw s;return i.accountDeleteMfaAuthenticator}})}}var Qn=o(`
110
+ `);function _n(){let{graphql:e}=o();return {...u({mutationFn:async({type:n="totp",otp:t})=>{let{data:i,errors:s}=await e.mutation({query:qn,variables:{type:n,otp:t}});if(s)throw s;return i.accountDeleteMfaAuthenticator}})}}var Fn=r(`
111
111
  mutation DeleteSession($sessionId: String!) {
112
112
  accountDeleteSession(sessionId: $sessionId) {
113
113
  status
114
114
  }
115
115
  }
116
- `);function Gn(){let{graphql:e}=r();return {...u({mutationFn:async({sessionId:n})=>{let{data:t,errors:i}=await e.mutation({query:Qn,variables:{sessionId:n}});if(i)throw i;return t?.accountDeleteSession??{status:!1}}})}}var On=o(`
116
+ `);function En(){let{graphql:e}=o();return {...u({mutationFn:async({sessionId:n})=>{let{data:t,errors:i}=await e.mutation({query:Fn,variables:{sessionId:n}});if(i)throw i;return t?.accountDeleteSession??{status:!1}}})}}var Pn=r(`
117
117
  mutation DeleteSessions {
118
118
  accountDeleteSessions {
119
119
  status
120
120
  }
121
121
  }
122
- `);function Jn(){let{graphql:e}=r();return {...u({mutationFn:async()=>{let{data:n,errors:t}=await e.mutation({query:On});if(t)throw t;return n?.accountDeleteSessions??{status:!1}}})}}var Kn=o(`
122
+ `);function Rn(){let{graphql:e}=o();return {...u({mutationFn:async()=>{let{data:n,errors:t}=await e.mutation({query:Pn});if(t)throw t;return n?.accountDeleteSessions??{status:!1}}})}}var Ln=r(`
123
123
  query GetMfaRecoveryCodes {
124
124
  accountGetMfaRecoveryCodes {
125
125
  recoveryCodes
126
126
  }
127
127
  }
128
- `);function Bn(){let{graphql:e}=r();return {...m({queryKey:["appwrite","account","mfa","recovery-codes"],queryFn:async()=>{let{data:n,errors:t}=await e.query({query:Kn});if(t)throw t;return n.accountGetMfaRecoveryCodes}})}}var Wn=o(`
128
+ `);function Qn(){let{graphql:e}=o();return {...m({queryKey:["appwrite","account","mfa","recovery-codes"],queryFn:async()=>{let{data:n,errors:t}=await e.query({query:Ln});if(t)throw t;return n.accountGetMfaRecoveryCodes}})}}var Gn=r(`
129
129
  query GetPrefs {
130
130
  accountGetPrefs {
131
131
  data
132
132
  }
133
133
  }
134
- `);function jn(){let{graphql:e}=r();return {...m({queryKey:["appwrite","account","prefs"],queryFn:async()=>{let{data:n,errors:t}=await e.query({query:Wn});if(t)throw t;return n.accountGetPrefs}})}}var zn=o(`
134
+ `);function On(){let{graphql:e}=o();return {...m({queryKey:["appwrite","account","prefs"],queryFn:async()=>{let{data:n,errors:t}=await e.query({query:Gn});if(t)throw t;return n.accountGetPrefs}})}}var Jn=r(`
135
135
  query GetSession($sessionId: String!) {
136
136
  accountGetSession(sessionId: $sessionId) {
137
137
  userId
@@ -139,7 +139,7 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
139
139
  current
140
140
  }
141
141
  }
142
- `);function Xn({sessionId:e}){let{graphql:a}=r();return m({queryKey:["appwrite","account","session",e],queryFn:async()=>{let{data:t,errors:i}=await a.query({query:zn,variables:{sessionId:e}});if(i)throw i;return t.accountGetSession}})}var Hn=o(`
142
+ `);function Bn({sessionId:e}){let{graphql:a}=o();return m({queryKey:["appwrite","account","session",e],queryFn:async()=>{let{data:t,errors:i}=await a.query({query:Jn,variables:{sessionId:e}});if(i)throw i;return t.accountGetSession}})}var Kn=r(`
143
143
  query ListIdentities {
144
144
  accountListIdentities {
145
145
  total
@@ -148,7 +148,7 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
148
148
  }
149
149
  }
150
150
  }
151
- `);function Yn(){let{graphql:e}=r();return {...m({queryKey:["appwrite","account","identities"],queryFn:async()=>{let{data:n,errors:t}=await e.query({query:Hn});if(t)throw t;return n.accountListIdentities}})}}var Zn=o(`
151
+ `);function Wn(){let{graphql:e}=o();return {...m({queryKey:["appwrite","account","identities"],queryFn:async()=>{let{data:n,errors:t}=await e.query({query:Kn});if(t)throw t;return n.accountListIdentities}})}}var jn=r(`
152
152
  query ListMfaFactors {
153
153
  accountListMfaFactors {
154
154
  totp
@@ -156,7 +156,7 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
156
156
  email
157
157
  }
158
158
  }
159
- `);function et(){let{graphql:e}=r();return {...m({queryKey:["appwrite","account","mfa","factors"],queryFn:async()=>{let{data:n,errors:t}=await e.query({query:Zn});if(t)throw t;return n.accountListMfaFactors}})}}var nt=o(`
159
+ `);function zn(){let{graphql:e}=o();return {...m({queryKey:["appwrite","account","mfa","factors"],queryFn:async()=>{let{data:n,errors:t}=await e.query({query:jn});if(t)throw t;return n.accountListMfaFactors}})}}var Xn=r(`
160
160
  query ListSessions {
161
161
  accountListSessions {
162
162
  sessions {
@@ -167,7 +167,7 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
167
167
  }
168
168
  }
169
169
  }
170
- `);function tt(){let{graphql:e}=r();return {...m({queryKey:["appwrite","account","sessions"],queryFn:async()=>{let{data:n,errors:t}=await e.query({query:nt});if(t)throw t;return n.accountListSessions}})}}var at=o(`
170
+ `);function Hn(){let{graphql:e}=o();return {...m({queryKey:["appwrite","account","sessions"],queryFn:async()=>{let{data:n,errors:t}=await e.query({query:Xn});if(t)throw t;return n.accountListSessions}})}}var Yn=r(`
171
171
  mutation CreateEmailPasswordSession($email: String!, $password: String!) {
172
172
  accountCreateEmailPasswordSession(email: $email, password: $password) {
173
173
  userId
@@ -175,13 +175,13 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
175
175
  current
176
176
  }
177
177
  }
178
- `);function it(){let{account:e,graphql:a}=r(),n=u({mutationFn:async({email:i,password:s})=>{let{data:c,errors:d}=await a.mutation({query:at,variables:{email:i,password:s}});if(d)throw d;return c.accountCreateEmailPasswordSession}}),t=u({mutationFn:async({provider:i,success:s,failure:c})=>e.createOAuth2Session(i,s,c)});return {login:n,oAuthLogin:t}}var ot=o(`
178
+ `);function Zn(){let{account:e,graphql:a}=o(),n=u({mutationFn:async({email:i,password:s})=>{let{data:c,errors:d}=await a.mutation({query:Yn,variables:{email:i,password:s}});if(d)throw d;return c.accountCreateEmailPasswordSession}}),t=u({mutationFn:async({provider:i,success:s,failure:c})=>e.createOAuth2Session(i,s,c)});return {login:n,oAuthLogin:t}}var et=r(`
179
179
  mutation DeleteSession($sessionId: String!) {
180
180
  accountDeleteSession(sessionId: $sessionId) {
181
181
  status
182
182
  }
183
183
  }
184
- `);function rt(){let{graphql:e}=r(),a=p(),n=u({mutationFn:async({sessionId:t})=>{let{data:i,errors:s}=await e.mutation({query:ot,variables:{sessionId:t}});if(s)throw s;return i?.accountDeleteSession??{status:!1}},onSuccess:async()=>{a.setQueryData(["appwrite"],null),a.setQueryData(["appwrite","account"],null),a.invalidateQueries({queryKey:["appwrite"]}),a.invalidateQueries({queryKey:["appwrite","account"]}),a.removeQueries({queryKey:["appwrite"]}),a.removeQueries({queryKey:["appwrite","account"]}),a.clear();}});return {...n,mutate:n.mutate}}var st=o(`
184
+ `);function nt(){let{graphql:e}=o(),a=l(),n=u({mutationFn:async({sessionId:t})=>{let{data:i,errors:s}=await e.mutation({query:et,variables:{sessionId:t}});if(s)throw s;return i?.accountDeleteSession??{status:!1}},onSuccess:async()=>{a.setQueryData(["appwrite"],null),a.setQueryData(["appwrite","account"],null),a.invalidateQueries({queryKey:["appwrite"]}),a.invalidateQueries({queryKey:["appwrite","account"]}),a.removeQueries({queryKey:["appwrite"]}),a.removeQueries({queryKey:["appwrite","account"]}),a.clear();}});return {...n,mutate:n.mutate}}var tt=r(`
185
185
  query ListLogs($queries: [String!]) {
186
186
  accountListLogs(queries: $queries) {
187
187
  total
@@ -210,39 +210,39 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
210
210
  }
211
211
  }
212
212
  }
213
- `);function ut({queries:e}){let{graphql:a}=r();return {...m({queryKey:["appwrite","account","logs",e],queryFn:async()=>{let{data:t,errors:i}=await a.query({query:st,variables:{queries:e}});if(i)throw i;return t.accountListLogs}})}}var ct=o(`
213
+ `);function at({queries:e}){let{graphql:a}=o();return {...m({queryKey:["appwrite","account","logs",e],queryFn:async()=>{let{data:t,errors:i}=await a.query({query:tt,variables:{queries:e}});if(i)throw i;return t.accountListLogs}})}}var it=r(`
214
214
  mutation CreateRecovery($email: String!, $url: String!) {
215
215
  accountCreateRecovery(email: $email, url: $url) {
216
216
  expire
217
217
  }
218
218
  }
219
- `);function dt(){let{graphql:e}=r();return {...u({mutationFn:async({email:n,url:t})=>{let{data:i,errors:s}=await e.mutation({query:ct,variables:{email:n,url:t}});if(s)throw s;return i.accountCreateRecovery},onSuccess:async(n,t)=>{localStorage.setItem("email",t.email);}})}}var lt=o(`
219
+ `);function ot(){let{graphql:e}=o();return {...u({mutationFn:async({email:n,url:t})=>{let{data:i,errors:s}=await e.mutation({query:it,variables:{email:n,url:t}});if(s)throw s;return i.accountCreateRecovery},onSuccess:async(n,t)=>{localStorage?.setItem("email",t.email);}})}}var rt=r(`
220
220
  mutation UpdateRecovery($userId: String!, $secret: String!, $password: String!) {
221
221
  accountUpdateRecovery(userId: $userId, secret: $secret, password: $password) {
222
222
  expire
223
223
  }
224
224
  }
225
- `);function pt(){let{graphql:e}=r();return {...u({mutationFn:async({userId:n,secret:t,password:i})=>{let{data:s,errors:c}=await e.mutation({query:lt,variables:{userId:n,secret:t,password:i}});if(c)throw c;return s.accountUpdateRecovery??{}}})}}var mt=o(`
225
+ `);function st(){let{graphql:e}=o();return {...u({mutationFn:async({userId:n,secret:t,password:i})=>{let{data:s,errors:c}=await e.mutation({query:rt,variables:{userId:n,secret:t,password:i}});if(c)throw c;return s.accountUpdateRecovery??{}}})}}var ut=r(`
226
226
  mutation CreateAccount($userId: String!, $name: String, $email: String!, $password: String!) {
227
227
  accountCreate(userId: $userId, name: $name, email: $email, password: $password) {
228
228
  name
229
229
  email
230
230
  }
231
231
  }
232
- `),yt=o(`
232
+ `),ct=r(`
233
233
  mutation VerifyEmail($url: String!) {
234
234
  accountCreateVerification(url: $url) {
235
235
  expire
236
236
  }
237
237
  }
238
- `);function St(){let{graphql:e}=r(),a=u({mutationFn:async({userId:t,email:i,password:s,name:c})=>{let{data:d,errors:l}=await e.mutation({query:mt,variables:{userId:t??appwrite.ID.unique(),name:c,email:i,password:s}});if(l)throw l;return d.accountCreate}}),n=u({mutationFn:async({verifyUrl:t})=>{let{data:i,errors:s}=await e.mutation({query:yt,variables:{url:t}});if(s)throw s;return i.accountCreateVerification}});return {signUp:a,verifyEmail:n}}var kt=o(`
238
+ `);function dt(){let{graphql:e}=o(),a=u({mutationFn:async({userId:t,email:i,password:s,name:c})=>{let{data:d,errors:p}=await e.mutation({query:ut,variables:{userId:t??appwrite.ID.unique(),name:c,email:i,password:s}});if(p)throw p;return d.accountCreate}}),n=u({mutationFn:async({verifyUrl:t})=>{let{data:i,errors:s}=await e.mutation({query:ct,variables:{url:t}});if(s)throw s;return i.accountCreateVerification}});return {signUp:a,verifyEmail:n}}var lt=r(`
239
239
  mutation UpdateEmail($email: String!, $password: String!) {
240
240
  accountUpdateEmail(email: $email, password: $password) {
241
241
  name
242
242
  email
243
243
  }
244
244
  }
245
- `);function ft(){let{graphql:e}=r();return {...u({mutationFn:async({email:n,password:t})=>{let{data:i,errors:s}=await e.mutation({query:kt,variables:{email:n,password:t}});if(s)throw s;return i.accountUpdateEmail}})}}var gt=o(`
245
+ `);function pt(){let{graphql:e}=o();return {...u({mutationFn:async({email:n,password:t})=>{let{data:i,errors:s}=await e.mutation({query:lt,variables:{email:n,password:t}});if(s)throw s;return i.accountUpdateEmail}})}}var mt=r(`
246
246
  mutation UpdateMagicURLSession($userId: String!, $secret: String!) {
247
247
  accountUpdateMagicURLSession(userId: $userId, secret: $secret) {
248
248
  userId
@@ -250,49 +250,49 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
250
250
  current
251
251
  }
252
252
  }
253
- `);function vt(){let{graphql:e}=r();return {...u({mutationFn:async({userId:n,secret:t})=>{let{data:i,errors:s}=await e.mutation({query:gt,variables:{userId:n,secret:t}});if(s)throw s;return i.accountUpdateMagicURLSession}})}}var bt=o(`
253
+ `);function yt(){let{graphql:e}=o();return {...u({mutationFn:async({userId:n,secret:t})=>{let{data:i,errors:s}=await e.mutation({query:mt,variables:{userId:n,secret:t}});if(s)throw s;return i.accountUpdateMagicURLSession}})}}var St=r(`
254
254
  mutation UpdateMFA($mfa: Boolean!) {
255
255
  accountUpdateMFA(mfa: $mfa) {
256
256
  mfa
257
257
  }
258
258
  }
259
- `);function Mt(){let{graphql:e}=r();return {...u({mutationFn:async({mfa:n})=>{let{data:t,errors:i}=await e.mutation({query:bt,variables:{mfa:n}});if(i)throw i;return t.accountUpdateMFA}})}}var Nt=o(`
259
+ `);function kt(){let{graphql:e}=o();return {...u({mutationFn:async({mfa:n})=>{let{data:t,errors:i}=await e.mutation({query:St,variables:{mfa:n}});if(i)throw i;return t.accountUpdateMFA}})}}var ft=r(`
260
260
  mutation UpdateMfaAuthenticator($type: String!, $otp: String!) {
261
261
  accountUpdateMfaAuthenticator(type: $type, otp: $otp) {
262
262
  mfa
263
263
  }
264
264
  }
265
- `);function Dt(){let{graphql:e}=r();return {...u({mutationFn:async({type:n="totp",otp:t})=>{let{data:i,errors:s}=await e.mutation({query:Nt,variables:{type:n,otp:t}});if(s)throw s;return i.accountUpdateMfaAuthenticator}})}}var xt=o(`
265
+ `);function gt(){let{graphql:e}=o();return {...u({mutationFn:async({type:n="totp",otp:t})=>{let{data:i,errors:s}=await e.mutation({query:ft,variables:{type:n,otp:t}});if(s)throw s;return i.accountUpdateMfaAuthenticator}})}}var vt=r(`
266
266
  mutation UpdateMfaChallenge($challengeId: String!, $otp: String!) {
267
267
  accountUpdateMfaChallenge(challengeId: $challengeId, otp: $otp) {
268
268
  status
269
269
  }
270
270
  }
271
- `);function It(){let{graphql:e}=r();return {...u({mutationFn:async({challengeId:n,otp:t})=>{let{data:i,errors:s}=await e.mutation({query:xt,variables:{challengeId:n,otp:t}});if(s)throw s;return i?.accountUpdateMfaChallenge??{status:!1}}})}}var $t=o(`
271
+ `);function bt(){let{graphql:e}=o();return {...u({mutationFn:async({challengeId:n,otp:t})=>{let{data:i,errors:s}=await e.mutation({query:vt,variables:{challengeId:n,otp:t}});if(s)throw s;return i?.accountUpdateMfaChallenge??{status:!1}}})}}var Mt=r(`
272
272
  mutation UpdateMfaRecoveryCodes {
273
273
  accountUpdateMfaRecoveryCodes {
274
274
  recoveryCodes
275
275
  }
276
276
  }
277
- `);function Ct(){let{graphql:e}=r();return {...u({mutationFn:async()=>{let{data:n,errors:t}=await e.mutation({query:$t});if(t)throw t;return n.accountUpdateMfaRecoveryCodes}})}}var At=o(`
277
+ `);function Nt(){let{graphql:e}=o();return {...u({mutationFn:async()=>{let{data:n,errors:t}=await e.mutation({query:Mt});if(t)throw t;return n.accountUpdateMfaRecoveryCodes}})}}var Dt=r(`
278
278
  mutation UpdateName($name: String!) {
279
279
  accountUpdateName(name: $name) {
280
280
  name
281
281
  }
282
282
  }
283
- `);function wt(){let{graphql:e}=r();return {...u({mutationFn:async({name:n})=>{let{data:t,errors:i}=await e.mutation({query:At,variables:{name:n}});if(i)throw i;return t.accountUpdateName}})}}var Tt=o(`
283
+ `);function xt(){let{graphql:e}=o();return {...u({mutationFn:async({name:n})=>{let{data:t,errors:i}=await e.mutation({query:Dt,variables:{name:n}});if(i)throw i;return t.accountUpdateName}})}}var It=r(`
284
284
  mutation UpdatePassword($password: String!, $oldPassword: String!) {
285
285
  accountUpdatePassword(password: $password, oldPassword: $oldPassword) {
286
286
  status
287
287
  }
288
288
  }
289
- `);function Ut(){let{graphql:e}=r();return {...u({mutationFn:async({password:n,oldPassword:t})=>{let{data:i,errors:s}=await e.mutation({query:Tt,variables:{password:n,oldPassword:t}});if(s)throw s;return i?.accountUpdatePassword}})}}var ht=o(`
289
+ `);function Ct(){let{graphql:e}=o();return {...u({mutationFn:async({password:n,oldPassword:t})=>{let{data:i,errors:s}=await e.mutation({query:It,variables:{password:n,oldPassword:t}});if(s)throw s;return i?.accountUpdatePassword}})}}var $t=r(`
290
290
  mutation UpdatePhone($phone: String!, $password: String!) {
291
291
  accountUpdatePhone(phone: $phone, password: $password) {
292
292
  phone
293
293
  }
294
294
  }
295
- `);function Vt(){let{graphql:e}=r();return {...u({mutationFn:async({phone:n,password:t})=>{let{data:i,errors:s}=await e.mutation({query:ht,variables:{phone:n,password:t}});if(s)throw s;return i.accountUpdatePhone}})}}var qt=o(`
295
+ `);function At(){let{graphql:e}=o();return {...u({mutationFn:async({phone:n,password:t})=>{let{data:i,errors:s}=await e.mutation({query:$t,variables:{phone:n,password:t}});if(s)throw s;return i.accountUpdatePhone}})}}var wt=r(`
296
296
  mutation UpdatePhoneSession($userId: String!, $secret: String!) {
297
297
  accountUpdatePhoneSession(userId: $userId, secret: $secret) {
298
298
  userId
@@ -300,13 +300,13 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
300
300
  current
301
301
  }
302
302
  }
303
- `);function _t(){let{graphql:e}=r();return {...u({mutationFn:async({userId:n,secret:t})=>{let{data:i,errors:s}=await e.mutation({query:qt,variables:{userId:n,secret:t}});if(s)throw s;return i.accountUpdatePhoneSession}})}}var Ft=o(`
303
+ `);function ht(){let{graphql:e}=o();return {...u({mutationFn:async({userId:n,secret:t})=>{let{data:i,errors:s}=await e.mutation({query:wt,variables:{userId:n,secret:t}});if(s)throw s;return i.accountUpdatePhoneSession}})}}var Tt=r(`
304
304
  mutation UpdatePhoneVerification($userId: String!, $secret: String!) {
305
305
  accountUpdatePhoneVerification(userId: $userId, secret: $secret) {
306
306
  expire
307
307
  }
308
308
  }
309
- `);function Et(){let{graphql:e}=r();return {...u({mutationFn:async({userId:n,secret:t})=>{let{data:i,errors:s}=await e.mutation({query:Ft,variables:{userId:n,secret:t}});if(s)throw s;return i.accountUpdatePhoneVerification}})}}function Pt(){let{account:e}=r();return {...u({mutationFn:async({prefs:n})=>await e.updatePrefs(n)})}}var Rt=o(`
309
+ `);function Ut(){let{graphql:e}=o();return {...u({mutationFn:async({userId:n,secret:t})=>{let{data:i,errors:s}=await e.mutation({query:Tt,variables:{userId:n,secret:t}});if(s)throw s;return i.accountUpdatePhoneVerification}})}}function Vt(){let{account:e}=o();return {...u({mutationFn:async({prefs:n})=>await e.updatePrefs(n)})}}var qt=r(`
310
310
  mutation UpdateSession($sessionId: String!) {
311
311
  accountUpdateSession(sessionId: $sessionId) {
312
312
  userId
@@ -314,7 +314,7 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
314
314
  current
315
315
  }
316
316
  }
317
- `);function Lt(){let{graphql:e}=r();return {...u({mutationFn:async({sessionId:n})=>{let{data:t,errors:i}=await e.mutation({query:Rt,variables:{sessionId:n}});if(i)throw i;return t.accountUpdateSession}})}}var Qt=o(`
317
+ `);function _t(){let{graphql:e}=o();return {...u({mutationFn:async({sessionId:n})=>{let{data:t,errors:i}=await e.mutation({query:qt,variables:{sessionId:n}});if(i)throw i;return t.accountUpdateSession}})}}var Ft=r(`
318
318
  mutation UpdateVerification($userId: String!, $secret: String!) {
319
319
  accountUpdateVerification(userId: $userId, secret: $secret) {
320
320
  secret
@@ -322,7 +322,7 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
322
322
  userId
323
323
  }
324
324
  }
325
- `);function Gt(){let{graphql:e}=r(),a=p();return {...u({mutationFn:async({userId:t,secret:i})=>{if(!t||!i)throw new Error("Missing userId or secret");let{data:s,errors:c}=await e.mutation({query:Qt,variables:{userId:t,secret:i}});if(c)throw c;return s.accountUpdateVerification??{}},onSuccess:async()=>{a.setQueryData(["appwrite","account"],null);}})}}var Ke=o(`
325
+ `);function Et(){let{graphql:e}=o(),a=l();return {...u({mutationFn:async({userId:t,secret:i})=>{if(!t||!i)throw new Error("Missing userId or secret");let{data:s,errors:c}=await e.mutation({query:Ft,variables:{userId:t,secret:i}});if(c)throw c;return s.accountUpdateVerification??{}},onSuccess:async()=>{a.setQueryData(["appwrite","account"],null);}})}}var Qe=r(`
326
326
  query ListDocuments($databaseId: String!, $collectionId: String!, $queries: [String!]) {
327
327
  databasesListDocuments(
328
328
  databaseId: $databaseId
@@ -336,7 +336,7 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
336
336
  }
337
337
  }
338
338
  }
339
- `);function Ot({databaseId:e,collectionId:a,queries:n,subscribe:t=!0}){let{graphql:i}=r(),s=p(),c=m({queryKey:["appwrite","databases",e,a,{queries:n}],queryFn:async()=>{let{data:d,errors:l}=await i.query({query:Ke,variables:{databaseId:e,collectionId:a,queries:n}});if(l)throw l;let S=d.databasesListDocuments?.documents?.map(y=>({...y,...y?JSON.parse(y.data):{}}))??[];return {total:d.databasesListDocuments?.total??0,documents:S}}});return react.useEffect(()=>t?i.client.subscribe(`databases.${e}.collections.${a}.documents`,l=>{let[,S]=l.events[0].match(/\.(\w+)$/),y=l.payload;switch(S){case"create":case"update":case"delete":s.setQueryData(["appwrite","databases",e,a,"documents",y.$id],y),s.invalidateQueries({queryKey:["appwrite","databases",e,a,{queries:n}],exact:!0});break}}):void 0,[e,a,i.client,s,n,t]),{...c,documents:c.data?.documents,total:c.data?.total}}function Jt({databaseId:e,collectionId:a,queries:n,subscribe:t=!0}){let{graphql:i}=r(),s=p(),c=f({queryKey:["appwrite","databases",e,a,{queries:n}],queryFn:async()=>{let{data:d,errors:l}=await i.query({query:Ke,variables:{databaseId:e,collectionId:a,queries:n}});if(l)throw l;let S=d.databasesListDocuments?.documents?.map(y=>({...y,...y?JSON.parse(y.data):{}}))??[];return {total:d.databasesListDocuments?.total??0,documents:S}}});return react.useEffect(()=>t?i.client.subscribe(`databases.${e}.collections.${a}.documents`,l=>{let[,S]=l.events[0].match(/\.(\w+)$/),y=l.payload;switch(S){case"create":case"update":case"delete":s.setQueryData(["appwrite","databases",e,a,"documents",y.$id],y),s.invalidateQueries({queryKey:["appwrite","databases",e,a,{queries:n}],exact:!0});break}}):void 0,[e,a,i.client,s,n]),{...c,documents:c.data?.documents,total:c.data?.total}}function Kt(){let{databases:e}=r();return u({mutationFn:async({databaseId:n,collectionId:t,documentId:i,data:s,permissions:c})=>{let{data:d,errors:l}=await e.createDocument(n,t,i,s,c);if(l)throw l;return d}})}var Bt=o(`
339
+ `);function Pt({databaseId:e,collectionId:a,queries:n,subscribe:t=!0}){let{graphql:i}=o(),s=l(),c=m({queryKey:["appwrite","databases",e,a,{queries:n}],queryFn:async()=>{let{data:d,errors:p}=await i.query({query:Qe,variables:{databaseId:e,collectionId:a,queries:n}});if(p)throw p;let S=d.databasesListDocuments?.documents?.map(y=>({...y,...y?JSON.parse(y.data):{}}))??[];return {total:d.databasesListDocuments?.total??0,documents:S}}});return react.useEffect(()=>t?i.client.subscribe(`databases.${e}.collections.${a}.documents`,p=>{let[,S]=p.events[0].match(/\.(\w+)$/),y=p.payload;switch(S){case"create":case"update":case"delete":s.setQueryData(["appwrite","databases",e,a,"documents",y.$id],y),s.invalidateQueries({queryKey:["appwrite","databases",e,a,{queries:n}],exact:!0});break}}):void 0,[e,a,i.client,s,n,t]),{...c,documents:c.data?.documents,total:c.data?.total}}function Rt({databaseId:e,collectionId:a,queries:n,subscribe:t=!0}){let{graphql:i}=o(),s=l(),c=f({queryKey:["appwrite","databases",e,a,{queries:n}],queryFn:async()=>{let{data:d,errors:p}=await i.query({query:Qe,variables:{databaseId:e,collectionId:a,queries:n}});if(p)throw p;let S=d.databasesListDocuments?.documents?.map(y=>({...y,...y?JSON.parse(y.data):{}}))??[];return {total:d.databasesListDocuments?.total??0,documents:S}}});return react.useEffect(()=>t?i.client.subscribe(`databases.${e}.collections.${a}.documents`,p=>{let[,S]=p.events[0].match(/\.(\w+)$/),y=p.payload;switch(S){case"create":case"update":case"delete":s.setQueryData(["appwrite","databases",e,a,"documents",y.$id],y),s.invalidateQueries({queryKey:["appwrite","databases",e,a,{queries:n}],exact:!0});break}}):void 0,[e,a,i.client,s,n]),{...c,documents:c.data?.documents,total:c.data?.total}}function Lt(){let{databases:e}=o();return u({mutationFn:async({databaseId:n,collectionId:t,documentId:i,data:s,permissions:c})=>{let{data:d,errors:p}=await e.createDocument(n,t,i,s,c);if(p)throw p;return d}})}var Qt=r(`
340
340
  mutation DeleteDocument($databaseId: String!, $collectionId: String!, $documentId: String!) {
341
341
  databasesDeleteDocument(
342
342
  databaseId: $databaseId
@@ -346,7 +346,7 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
346
346
  status
347
347
  }
348
348
  }
349
- `);function Wt(){let{graphql:e}=r(),a=p();return {...u({mutationFn:async({databaseId:t,collectionId:i,documentId:s})=>{let{data:c,errors:d}=await e.mutation({query:Bt,variables:{databaseId:t,collectionId:i,documentId:s}});if(d)throw d;return c.databasesDeleteDocument},onSuccess:async(t,i)=>{a.setQueryData(["appwrite","databases",i.databaseId,i.collectionId,"documents",i.documentId],null),a.removeQueries({queryKey:["appwrite","databases",i.databaseId,i.collectionId,"documents",i.documentId]});}})}}var zt=o(`
349
+ `);function Gt(){let{graphql:e}=o(),a=l();return {...u({mutationFn:async({databaseId:t,collectionId:i,documentId:s})=>{let{data:c,errors:d}=await e.mutation({query:Qt,variables:{databaseId:t,collectionId:i,documentId:s}});if(d)throw d;return c.databasesDeleteDocument},onSuccess:async(t,i)=>{a.setQueryData(["appwrite","databases",i.databaseId,i.collectionId,"documents",i.documentId],null),a.removeQueries({queryKey:["appwrite","databases",i.databaseId,i.collectionId,"documents",i.documentId]});}})}}var Jt=r(`
350
350
  query GetDocument($databaseId: String!, $collectionId: String!, $documentId: String!) {
351
351
  databasesGetDocument(
352
352
  databaseId: $databaseId
@@ -357,7 +357,7 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
357
357
  data
358
358
  }
359
359
  }
360
- `);function Xt({databaseId:e,collectionId:a,documentId:n}){let{graphql:t}=r(),i=p(),s=m({queryKey:["appwrite","databases",e,a,"documents",n],queryFn:async()=>{let{data:c,errors:d}=await t.query({query:zt,variables:{databaseId:e,collectionId:a,documentId:n}});if(d)throw d;return {...c.databasesGetDocument,...c.databasesGetDocument?JSON.parse(c.databasesGetDocument.data):{}}}});return react.useEffect(()=>t.client.subscribe(`databases.${e}.collections.${a}.documents.${n}`,d=>{i.setQueryData(["appwrite","databases",e,a,"documents",n],d.payload);}),[e,a,n,t.client,i]),{...s}}function Ht(){let{databases:e}=r();return {...u({mutationFn:async({databaseId:n,collectionId:t,documentId:i,data:s,permissions:c})=>{let{data:d,errors:l}=await e.updateDocument(n,t,i,s,c);if(l)throw l;return d}})}}var Be=o(`
360
+ `);function Bt({databaseId:e,collectionId:a,documentId:n}){let{graphql:t}=o(),i=l(),s=m({queryKey:["appwrite","databases",e,a,"documents",n],queryFn:async()=>{let{data:c,errors:d}=await t.query({query:Jt,variables:{databaseId:e,collectionId:a,documentId:n}});if(d)throw d;return {...c.databasesGetDocument,...c.databasesGetDocument?JSON.parse(c.databasesGetDocument.data):{}}}});return react.useEffect(()=>t.client.subscribe(`databases.${e}.collections.${a}.documents.${n}`,d=>{i.setQueryData(["appwrite","databases",e,a,"documents",n],d.payload);}),[e,a,n,t.client,i]),{...s}}function Kt(){let{databases:e}=o();return {...u({mutationFn:async({databaseId:n,collectionId:t,documentId:i,data:s,permissions:c})=>{let{data:d,errors:p}=await e.updateDocument(n,t,i,s,c);if(p)throw p;return d}})}}var Ge=r(`
361
361
  mutation CreateExecution(
362
362
  $functionId: String!
363
363
  $body: String
@@ -380,74 +380,76 @@ function je(e,a){return a}var F={kind:"Document",definitions:[{kind:"FragmentDef
380
380
  duration
381
381
  }
382
382
  }
383
- `),We=o(`
383
+ `),Wt=r(`
384
384
  query GetFunctionExecution($functionId: String!, $executionId: String!) {
385
385
  functionsGetExecution(functionId: $functionId, executionId: $executionId) {
386
386
  status
387
387
  errors
388
388
  duration
389
+ responseBody
390
+ requestPath
389
391
  }
390
392
  }
391
- `);function Lu(){let{graphql:e}=r(),[a,n]=react.useState(null),[t,i]=react.useState(null),s=u({mutationFn:async({functionId:d,body:l={},async:S=!1,path:y="/",method:$="POST"})=>{i(d);let{data:g}=await e.mutation({query:Be,variables:{functionId:d,body:JSON.stringify(l),async:S,path:y,method:$}}),v=null,{_id:b,status:M,responseBody:C,errors:N}=g.functionsCreateExecution??{};if(M==="completed")return JSON.parse(C??"{}");if(M==="failed"&&N)throw new Error(N);n(b??null);let A=await new Promise((w,T)=>{v=e.client.subscribe(`executions.${b}`,k=>{switch(k.payload.status){case"completed":n(null),w(JSON.parse(k.payload.responseBody));break;case"failed":n(null),T(k.payload.errors);break}return 1});});return v?.(),A}}),c=m({queryKey:["appwrite","functions",t,a],queryFn:async()=>{if(!a||!t)return null;let{data:d}=await e.query({query:We,variables:{functionId:t,executionId:a}});return d.functionsGetExecution??{}}});return {executeFunction:s,currentExecution:c}}function Qu({functionId:e,body:a={},async:n=!1,path:t="/",method:i="POST"}){let{graphql:s}=r(),[c,d]=react.useState(null),[l,S]=react.useState(null),y=f({queryKey:["appwrite","functions",e,t],queryFn:async()=>{S(e);let{data:g}=await s.mutation({query:Be,variables:{functionId:e,body:JSON.stringify(a),async:n,path:t,method:i}}),v=null,{_id:b,status:M,responseBody:C,errors:N}=g.functionsCreateExecution??{};if(M==="completed")return JSON.parse(C??"{}");if(M==="failed"&&N)throw new Error(N);d(b??null);let A=await new Promise((w,T)=>{v=s.client.subscribe(`executions.${b}`,k=>{switch(k.payload.status){case"completed":d(null),w(JSON.parse(k.payload.responseBody));break;case"failed":d(null),T(k.payload.errors);break}return 1});});return v?.(),A}}),$=m({queryKey:["appwrite","functions",l,c],queryFn:async()=>{if(!c||!l)return null;let{data:g}=await s.query({query:We,variables:{functionId:l,executionId:c}});return g.functionsGetExecution??{}}});return {executeFunction:y,currentExecution:$}}exports.fragments = void 0;(n=>(n.Account_UserFragment=he,n.Identity_ProviderFragment=Ve))(exports.fragments||={});
393
+ `);function jt({currentExecution:e,currentFunction:a}){let{graphql:n}=o();return k({queryKey:["appwrite","functions",a,e],queryFn:async()=>{if(!e||!a)return null;let{data:i}=await n.query({query:Wt,variables:{functionId:a,executionId:e}});return i.functionsGetExecution??{}}})}function Pu(){let{graphql:e}=o(),[a,n]=react.useState(null),[t,i]=react.useState(null),s=jt({currentExecution:a,currentFunction:t});return {executeFunction:u({mutationFn:async({functionId:d,body:p={},async:S=!1,path:y="/",method:N="POST"})=>{i(d);let{data:D}=await e.mutation({query:Ge,variables:{functionId:d,body:JSON.stringify(p),async:S,path:y,method:N}}),{_id:x,status:I,responseBody:C,errors:g}=D.functionsCreateExecution??{};if(I==="failed")throw new Error(g);n(x??null);let $={};try{$=JSON.parse(C??"{}");}catch{}return $}}),currentExecution:s}}function Ru({functionId:e,body:a={},async:n=!1,path:t="/",method:i="POST"}){let{graphql:s}=o(),[c,d]=react.useState(null),[p,S]=react.useState(null);return {executeFunction:m({queryKey:["appwrite","functions",e,t],queryFn:async()=>{S(e);let{data:N}=await s.mutation({query:Ge,variables:{functionId:e,body:JSON.stringify(a),async:n,path:t,method:i}}),{_id:D,status:x,responseBody:I,errors:C}=N.functionsCreateExecution??{};if(x==="failed")throw new Error(C);d(D??null);let g={};try{g=JSON.parse(I??"{}");}catch{}return g}})}}exports.fragments = void 0;(n=>(n.Account_UserFragment=Ae,n.Identity_ProviderFragment=we))(exports.fragments||={});
392
394
 
393
- exports.AppwriteProvider = ln;
394
- exports.getFragmentData = je;
395
- exports.useAccount = kn;
396
- exports.useAppwrite = r;
397
- exports.useCollection = Ot;
398
- exports.useCreateAnonymousSession = gn;
399
- exports.useCreateDocument = Kt;
400
- exports.useCreateEmailToken = bn;
401
- exports.useCreateJWT = Mn;
402
- exports.useCreateMagicURLToken = xn;
403
- exports.useCreateMfaAuthenticator = $n;
404
- exports.useCreateMfaChallenge = An;
405
- exports.useCreateMfaRecoveryCodes = Tn;
406
- exports.useCreatePhoneToken = hn;
407
- exports.useCreatePhoneVerification = qn;
408
- exports.useCreateSession = Fn;
409
- exports.useDeleteDocument = Wt;
410
- exports.useDeleteIdentity = Pn;
411
- exports.useDeleteMfaAuthenticator = Ln;
412
- exports.useDeleteSession = Gn;
413
- exports.useDeleteSessions = Jn;
414
- exports.useDocument = Xt;
415
- exports.useFunction = Lu;
416
- exports.useGetMfaRecoveryCodes = Bn;
417
- exports.useGetPrefs = jn;
418
- exports.useGetSession = Xn;
419
- exports.useLazyAccount = Sn;
420
- exports.useLazyQuery = _;
421
- exports.useListIdentities = Yn;
422
- exports.useListMfaFactors = et;
423
- exports.useListSessions = tt;
424
- exports.useLogin = it;
425
- exports.useLogout = rt;
426
- exports.useLogs = ut;
395
+ exports.AppwriteProvider = rn;
396
+ exports.getFragmentData = Oe;
397
+ exports.useAccount = ln;
398
+ exports.useAppwrite = o;
399
+ exports.useCollection = Pt;
400
+ exports.useCreateAnonymousSession = mn;
401
+ exports.useCreateDocument = Lt;
402
+ exports.useCreateEmailToken = Sn;
403
+ exports.useCreateJWT = kn;
404
+ exports.useCreateMagicURLToken = vn;
405
+ exports.useCreateMfaAuthenticator = Mn;
406
+ exports.useCreateMfaChallenge = Dn;
407
+ exports.useCreateMfaRecoveryCodes = In;
408
+ exports.useCreatePhoneToken = $n;
409
+ exports.useCreatePhoneVerification = wn;
410
+ exports.useCreateSession = Tn;
411
+ exports.useDeleteDocument = Gt;
412
+ exports.useDeleteIdentity = Vn;
413
+ exports.useDeleteMfaAuthenticator = _n;
414
+ exports.useDeleteSession = En;
415
+ exports.useDeleteSessions = Rn;
416
+ exports.useDocument = Bt;
417
+ exports.useFunction = Pu;
418
+ exports.useGetMfaRecoveryCodes = Qn;
419
+ exports.useGetPrefs = On;
420
+ exports.useGetSession = Bn;
421
+ exports.useLazyAccount = dn;
422
+ exports.useLazyQuery = k;
423
+ exports.useListIdentities = Wn;
424
+ exports.useListMfaFactors = zn;
425
+ exports.useListSessions = Hn;
426
+ exports.useLogin = Zn;
427
+ exports.useLogout = nt;
428
+ exports.useLogs = at;
427
429
  exports.useMutation = u;
428
- exports.usePasswordRecovery = dt;
430
+ exports.usePasswordRecovery = ot;
429
431
  exports.useQuery = m;
430
- exports.useQueryClient = p;
431
- exports.useResetPassword = pt;
432
- exports.useSignUp = St;
433
- exports.useSuspenseCollection = Jt;
434
- exports.useSuspenseCreateJWT = Nn;
435
- exports.useSuspenseFunction = Qu;
432
+ exports.useQueryClient = l;
433
+ exports.useResetPassword = st;
434
+ exports.useSignUp = dt;
435
+ exports.useSuspenseCollection = Rt;
436
+ exports.useSuspenseCreateJWT = fn;
437
+ exports.useSuspenseFunction = Ru;
436
438
  exports.useSuspenseQuery = f;
437
- exports.useUpdateDocument = Ht;
438
- exports.useUpdateEmail = ft;
439
- exports.useUpdateMagicURLSession = vt;
440
- exports.useUpdateMfa = Mt;
441
- exports.useUpdateMfaAuthenticator = Dt;
442
- exports.useUpdateMfaChallenge = It;
443
- exports.useUpdateMfaRecoveryCodes = Ct;
444
- exports.useUpdateName = wt;
445
- exports.useUpdatePassword = Ut;
446
- exports.useUpdatePhone = Vt;
447
- exports.useUpdatePhoneSession = _t;
448
- exports.useUpdatePhoneVerification = Et;
449
- exports.useUpdatePrefs = Pt;
450
- exports.useUpdateSession = Lt;
451
- exports.useVerification = Gt;
439
+ exports.useUpdateDocument = Kt;
440
+ exports.useUpdateEmail = pt;
441
+ exports.useUpdateMagicURLSession = yt;
442
+ exports.useUpdateMfa = kt;
443
+ exports.useUpdateMfaAuthenticator = gt;
444
+ exports.useUpdateMfaChallenge = bt;
445
+ exports.useUpdateMfaRecoveryCodes = Nt;
446
+ exports.useUpdateName = xt;
447
+ exports.useUpdatePassword = Ct;
448
+ exports.useUpdatePhone = At;
449
+ exports.useUpdatePhoneSession = ht;
450
+ exports.useUpdatePhoneVerification = Ut;
451
+ exports.useUpdatePrefs = Vt;
452
+ exports.useUpdateSession = _t;
453
+ exports.useVerification = Et;
452
454
  //# sourceMappingURL=out.js.map
453
455
  //# sourceMappingURL=index.js.map