Constant QUERY
Source pub const QUERY: &str = "query AgentStatus {\n agentStatus {\n isInitialized\n isUnlocked\n did\n didDocument\n error\n }\n}\n\nmutation RequestCapability($authInfo: AuthInfoInput!) {\n agentRequestCapability(authInfo: $authInfo)\n}\n\nmutation RetrieveCapability($requestId: String!, $rand: String!) {\n agentGenerateJwt(requestId: $requestId, rand: $rand)\n}\n\nquery Me {\n agent {\n did\n directMessageLanguage\n perspective {\n links {\n author\n timestamp\n proof {\n signature\n key\n valid\n invalid\n }\n data {\n source\n predicate\n target\n }\n status\n }\n }\n }\n}\n\nquery GetApps {\n agentGetApps {\n requestId\n revoked\n auth {\n appName\n appDesc\n appUrl\n capabilities {\n with {\n domain\n pointers\n }\n can\n }\n }\n }\n}\n\nmutation RevokeToken($requestId: String!) {\n agentRevokeToken(requestId: $requestId) {\n requestId\n revoked\n auth {\n appName\n appDesc\n appUrl\n capabilities {\n with {\n domain\n pointers\n }\n can\n }\n }\n }\n}\n\nmutation RemoveApp($requestId: String!) {\n agentRemoveApp(requestId: $requestId) {\n requestId\n revoked\n auth {\n appName\n appDesc\n appUrl\n capabilities {\n with {\n domain\n pointers\n }\n can\n }\n }\n }\n}\n\nmutation Lock($passphrase: String!) {\n agentLock(passphrase: $passphrase) {\n isInitialized\n isUnlocked\n did\n didDocument\n error\n }\n}\n\nmutation Unlock($passphrase: String!, $holochain: Boolean!) {\n agentUnlock(passphrase: $passphrase, holochain: $holochain) {\n isInitialized\n isUnlocked\n did\n didDocument\n error\n }\n}\n\nquery ByDID($did: String!) {\n agentByDID(did: $did) {\n did\n directMessageLanguage\n perspective {\n links {\n author\n timestamp\n proof {\n signature\n key\n valid\n invalid\n }\n data {\n source\n predicate\n target\n }\n status\n }\n }\n }\n}\n\nmutation Generate($passphrase: String!) {\n agentGenerate(passphrase: $passphrase) {\n isInitialized\n isUnlocked\n did\n didDocument\n error\n }\n}\n\nmutation SignMessage($message: String!) {\n agentSignMessage(message: $message) {\n signature\n publicKey\n }\n}\n\nmutation AddEntanglementProofs($proofs: [EntanglementProofInput!]!) {\n agentAddEntanglementProofs(proofs: $proofs) {\n did\n didSigningKeyId\n deviceKeyType\n deviceKey\n deviceKeySignedByDid\n didSignedByDeviceKey\n }\n}\n\nmutation DeleteEntanglementProofs($proofs: [EntanglementProofInput!]!) {\n agentDeleteEntanglementProofs(proofs: $proofs) {\n did\n didSigningKeyId\n deviceKeyType\n deviceKey\n deviceKeySignedByDid\n didSignedByDeviceKey\n }\n}\n\nmutation EntanglementProofPreFlight(\n $deviceKey: String!\n $deviceKeyType: String!\n) {\n agentEntanglementProofPreFlight(\n deviceKey: $deviceKey\n deviceKeyType: $deviceKeyType\n ) {\n did\n didSigningKeyId\n deviceKeyType\n deviceKey\n deviceKeySignedByDid\n didSignedByDeviceKey\n }\n}\n\nsubscription SubscriptionAgentStatusChanged {\n agentStatusChanged {\n did\n didDocument\n error\n isInitialized\n isUnlocked\n }\n}\n";