import { DataStore } from './data-store'; export interface Context { dataStore: DataStore; } export declare const resolvers: { Message: { vc: (message: any, {}: {}, { dataStore }: Context) => Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; metaData: (message: any, {}: {}, { dataStore }: Context) => Promise; thread: (message: any, {}: {}, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; }; VerifiableClaim: { fields: (vc: any, {}: {}, { dataStore }: Context) => Promise<{ rowId: string; hash: string; parentHash: string; iss: { did: string; }; sub: { did: string; }; type: string; value: string; isObj: boolean; }[]>; inMessages: (vc: any, {}: {}, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; }; Identity: { shortId: (identity: any, {}: {}, { dataStore }: Context) => Promise; firstName: (identity: any, {}: {}, { dataStore }: Context) => Promise; lastName: (identity: any, {}: {}, { dataStore }: Context) => Promise; profileImage: (identity: any, {}: {}, { dataStore }: Context) => Promise; url: (identity: any, {}: {}, { dataStore }: Context) => Promise; description: (identity: any, {}: {}, { dataStore }: Context) => Promise; credentialsIssued: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; credentialsReceived: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; credentialsAll: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; messagesSent: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; messagesReceived: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; messagesAll: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; }; Query: { identity: (_: any, { did }: { did: string; }, { dataStore }: Context) => Promise<{ did: string; }>; identities: (_: any, { dids }: { dids: string[]; }, { dataStore }: Context) => Promise<{ did: string; }[] | { did: string; }[]>; messages: (_: any, { sender, receiver, threadId, limit, }: { sender: string; receiver: string; threadId: string; limit: number; }, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; message: (_: any, { id }: { id: string; }, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }>; credentials: (_: any, { iss, sub }: { iss: string; sub: string; }, { dataStore }: Context) => Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; credential: (_: any, { id }: { id: string; }, { dataStore }: Context) => Promise; }; Mutation: { deleteMessage: (_: any, { id }: { id: string; }, { dataStore }: Context) => Promise; }; }; export declare const typeDefs = "\n extend type Query {\n identity(did: ID!): Identity\n identities(dids: [ID!]): [Identity]\n messages(sender: ID, reveiver: ID, threadId: String, limit: Int): [Message]\n message(id: ID!): Message!\n credentials(iss: ID, sub: ID): [VerifiableClaim]\n credential(id:ID!): VerifiableClaim!\n }\n\n extend type Mutation {\n deleteMessage(hash: ID!): Boolean\n }\n\n extend type Identity {\n shortId: String\n firstName: String\n lastName: String\n profileImage: String\n url: String\n description: String\n messagesSent: [Message]\n messagesReceived: [Message]\n messagesAll: [Message]\n credentialsIssued: [VerifiableClaim]\n credentialsReceived: [VerifiableClaim]\n credentialsAll: [VerifiableClaim]\n }\n \n extend type Message {\n vc: [VerifiableClaim]\n }\n\n type VerifiableClaim {\n hash: ID!\n rowId: String!\n iss: Identity!\n sub: Identity!\n json: String!\n jwt: String!\n nbf: Int\n iat: Int\n exp: Int\n fields: [VerifiableClaimField]\n inMessages: [Message]\n }\n\n type VerifiableClaimField {\n rowId: String!\n hash: ID!\n parentHash: ID!\n iss: Identity!\n sub: Identity!\n type: String!\n value: String!\n isObj: Boolean!\n }\n\n"; declare const _default: { resolvers: { Message: { vc: (message: any, {}: {}, { dataStore }: Context) => Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; metaData: (message: any, {}: {}, { dataStore }: Context) => Promise; thread: (message: any, {}: {}, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; }; VerifiableClaim: { fields: (vc: any, {}: {}, { dataStore }: Context) => Promise<{ rowId: string; hash: string; parentHash: string; iss: { did: string; }; sub: { did: string; }; type: string; value: string; isObj: boolean; }[]>; inMessages: (vc: any, {}: {}, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; }; Identity: { shortId: (identity: any, {}: {}, { dataStore }: Context) => Promise; firstName: (identity: any, {}: {}, { dataStore }: Context) => Promise; lastName: (identity: any, {}: {}, { dataStore }: Context) => Promise; profileImage: (identity: any, {}: {}, { dataStore }: Context) => Promise; url: (identity: any, {}: {}, { dataStore }: Context) => Promise; description: (identity: any, {}: {}, { dataStore }: Context) => Promise; credentialsIssued: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; credentialsReceived: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; credentialsAll: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; messagesSent: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; messagesReceived: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; messagesAll: (identity: any, args: any, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; }; Query: { identity: (_: any, { did }: { did: string; }, { dataStore }: Context) => Promise<{ did: string; }>; identities: (_: any, { dids }: { dids: string[]; }, { dataStore }: Context) => Promise<{ did: string; }[] | { did: string; }[]>; messages: (_: any, { sender, receiver, threadId, limit, }: { sender: string; receiver: string; threadId: string; limit: number; }, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; message: (_: any, { id }: { id: string; }, { dataStore }: Context) => Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }>; credentials: (_: any, { iss, sub }: { iss: string; sub: string; }, { dataStore }: Context) => Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; credential: (_: any, { id }: { id: string; }, { dataStore }: Context) => Promise; }; Mutation: { deleteMessage: (_: any, { id }: { id: string; }, { dataStore }: Context) => Promise; }; }; typeDefs: string; }; export default _default; //# sourceMappingURL=graphql.d.ts.map