stacker.news/api/typeDefs/vault.js

30 lines
544 B
JavaScript
Raw Normal View History

import { gql } from 'graphql-tag'
export default gql`
2024-10-23 00:53:56 +00:00
type VaultEntry {
id: ID!
key: String!
2024-10-27 07:43:45 +00:00
iv: String!
value: String!
createdAt: Date!
updatedAt: Date!
}
2024-10-23 00:53:56 +00:00
input VaultEntryInput {
key: String!
2024-10-27 07:43:45 +00:00
iv: String!
2024-10-23 00:53:56 +00:00
value: String!
walletId: ID
}
extend type Query {
2024-10-23 00:53:56 +00:00
getVaultEntry(key: String!): VaultEntry
getVaultEntries(keysFilter: [String!]): [VaultEntry!]!
}
extend type Mutation {
clearVault: Boolean
2024-10-23 00:53:56 +00:00
updateVaultKey(entries: [VaultEntryInput!]!, hash: String!): Boolean
}
`