@perspect3vism/ad4m
Advanced tools
Comparing version 0.1.17 to 0.1.18
@@ -37,2 +37,3 @@ "use strict"; | ||
fs_1.default.writeFileSync(__dirname + '/typeDefs.js', typeDefsFile); | ||
fs_1.default.writeFileSync(__dirname + '/src/typeDefs.js', typeDefsFile); | ||
}); |
@@ -1,8 +0,193 @@ | ||
"use strict"; | ||
// This is just a placeholder for the TS version of the index file. | ||
// buildSchema over-writes lib/typeDefs.js after tsc has run. | ||
// This way lib/index.js can stay the compiled version of index.ts, | ||
// where index.ts imports this file... | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.typeDefsString = void 0; | ||
exports.typeDefsString = ""; | ||
const typeDefsString = ` | ||
type Agent { | ||
did: String! | ||
directMessageLanguage: String | ||
perspective: Perspective | ||
} | ||
type AgentStatus { | ||
did: String | ||
didDocument: String | ||
error: String | ||
isInitialized: Boolean! | ||
isUnlocked: Boolean! | ||
} | ||
scalar DateTime | ||
type ExpressionProof { | ||
invalid: Boolean | ||
key: String! | ||
signature: String! | ||
valid: Boolean | ||
} | ||
input ExpressionProofInput { | ||
invalid: Boolean | ||
key: String! | ||
signature: String! | ||
valid: Boolean | ||
} | ||
type ExpressionRendered { | ||
author: String! | ||
data: String! | ||
icon: Icon! | ||
language: LanguageRef! | ||
proof: ExpressionProof! | ||
timestamp: String! | ||
} | ||
type Icon { | ||
code: String! | ||
} | ||
type LanguageHandle { | ||
address: String! | ||
constructorIcon: Icon | ||
icon: Icon | ||
name: String! | ||
settings: String | ||
settingsIcon: Icon | ||
} | ||
type LanguageMeta { | ||
address: String! | ||
author: String! | ||
description: String | ||
name: String! | ||
possibleTemplateParams: [String!] | ||
sourceCodeLink: String | ||
templateAppliedParams: String | ||
templateSourceLanguageAddress: String | ||
templated: Boolean | ||
} | ||
input LanguageMetaInput { | ||
description: String = "" | ||
name: String! | ||
possibleTemplateParams: [String!] | ||
sourceCodeLink: String | ||
} | ||
type LanguageRef { | ||
address: String! | ||
name: String! | ||
} | ||
type Link { | ||
predicate: String | ||
source: String! | ||
target: String! | ||
} | ||
type LinkExpression { | ||
author: String! | ||
data: Link! | ||
proof: ExpressionProof! | ||
timestamp: String! | ||
} | ||
input LinkExpressionInput { | ||
author: String! | ||
data: LinkInput! | ||
proof: ExpressionProofInput! | ||
timestamp: String! | ||
} | ||
input LinkInput { | ||
predicate: String | ||
source: String! | ||
target: String! | ||
} | ||
input LinkQuery { | ||
fromDate: DateTime | ||
predicate: String | ||
source: String | ||
target: String | ||
untilDate: DateTime | ||
} | ||
type Mutation { | ||
addTrustedAgents(agents: [String!]!): [String!]! | ||
agentGenerate(passphrase: String!): AgentStatus! | ||
agentImport(did: String!, didDocument: String!, keystore: String!, passphrase: String!): AgentStatus! | ||
agentLock(passphrase: String!): AgentStatus! | ||
agentUnlock(passphrase: String!): AgentStatus! | ||
agentUpdateDirectMessageLanguage(directMessageLanguage: String!): Agent! | ||
agentUpdatePublicPerspective(perspective: PerspectiveInput!): Agent! | ||
deleteTrustedAgents(agents: [String!]!): [String!]! | ||
expressionCreate(content: String!, languageAddress: String!): String! | ||
languageApplyTemplateAndPublish(sourceLanguageHash: String!, templateData: String!): LanguageRef! | ||
languagePublish(languageMeta: LanguageMetaInput!, languagePath: String!): LanguageMeta! | ||
languageWriteSettings(languageAddress: String!, settings: String!): Boolean! | ||
neighbourhoodJoinFromUrl(url: String!): PerspectiveHandle! | ||
neighbourhoodPublishFromPerspective(linkLanguage: String!, meta: PerspectiveInput!, perspectiveUUID: String!): String! | ||
perspectiveAdd(name: String!): PerspectiveHandle! | ||
perspectiveAddLink(link: LinkInput!, uuid: String!): LinkExpression! | ||
perspectiveRemove(uuid: String!): Boolean! | ||
perspectiveRemoveLink(link: LinkExpressionInput!, uuid: String!): Boolean! | ||
perspectiveUpdate(name: String!, uuid: String!): PerspectiveHandle | ||
perspectiveUpdateLink(newLink: LinkInput!, oldLink: LinkExpressionInput!, uuid: String!): LinkExpression! | ||
runtimeAddFriends(dids: [String!]!): [String!]! | ||
runtimeAddKnownLinkLanguageTemplates(addresses: [String!]!): [String!]! | ||
runtimeHcAddAgentInfos(agentInfos: String!): Boolean! | ||
runtimeOpenLink(url: String!): Boolean! | ||
runtimeQuit: Boolean! | ||
runtimeRemoveFriends(dids: [String!]!): [String!]! | ||
runtimeRemoveKnownLinkLanguageTemplates(addresses: [String!]!): [String!]! | ||
} | ||
type Neighbourhood { | ||
linkLanguage: String! | ||
meta: Perspective! | ||
} | ||
type Perspective { | ||
links: [LinkExpression!]! | ||
} | ||
type PerspectiveHandle { | ||
name: String! | ||
neighbourhood: Neighbourhood | ||
sharedUrl: String | ||
uuid: String! | ||
} | ||
input PerspectiveInput { | ||
links: [LinkExpressionInput!]! | ||
} | ||
type Query { | ||
agent: Agent! | ||
agentByDID(did: String!): Agent | ||
agentStatus: AgentStatus! | ||
expression(url: String!): ExpressionRendered | ||
expressionMany(urls: [String!]!): [ExpressionRendered]! | ||
expressionRaw(url: String!): String | ||
getTrustedAgents: [String!]! | ||
language(address: String!): LanguageHandle | ||
languageMeta(address: String!): LanguageMeta! | ||
languageSource(address: String!): String! | ||
languages(filter: String): [LanguageHandle!]! | ||
perspective(uuid: String!): PerspectiveHandle | ||
perspectiveQueryLinks(query: LinkQuery!, uuid: String!): [LinkExpression!] | ||
perspectiveSnapshot(uuid: String!): Perspective | ||
perspectives: [PerspectiveHandle!]! | ||
runtimeFriends: [String!]! | ||
runtimeHcAgentInfos: String! | ||
runtimeKnownLinkLanguageTemplates: [String!]! | ||
} | ||
type Subscription { | ||
agentUpdated: Agent | ||
perspectiveAdded: PerspectiveHandle | ||
perspectiveLinkAdded(uuid: String!): LinkExpression | ||
perspectiveLinkRemoved(uuid: String!): LinkExpression | ||
perspectiveRemoved: String | ||
perspectiveUpdated: PerspectiveHandle | ||
} | ||
` | ||
module.exports = { typeDefsString } |
{ | ||
"name": "@perspect3vism/ad4m", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"description": "*The Agent-Centric Distributed Application Meta-ontology* or just: *Agent-Centric DApp Meta-ontology* * A new meta-ontology for interoperable, decentralized application design * A spanning-layer to enable seamless integration between Holochain DNAs, blockchains, linked-data structures/ontologies and centralized back-ends * The basis for turning distinct, monolithic and siloed apps into a global, open and interoperable sense-making network", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -34,4 +34,5 @@ import "reflect-metadata"; | ||
fs.writeFileSync(__dirname+'/typeDefs.js', typeDefsFile) | ||
fs.writeFileSync(__dirname+'/src/typeDefs.js', typeDefsFile) | ||
}) | ||
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1094315
25608