@blockprotocol/graph
Advanced tools
Comparing version 0.0.11-canary.19 to 0.0.11-canary.20
import { ServiceHandler } from "@blockprotocol/core"; | ||
import { GraphServiceJson } from "./graph-service-json.js"; | ||
import { graphMessages } from "./graph-service-json.js"; | ||
/** | ||
@@ -22,3 +22,3 @@ * Creates a handler for the graph service for the block. | ||
const expectedMessageSource = "embedder"; | ||
const messageJsonDefinition = GraphServiceJson.messages.find((message) => message.messageName === messageName && | ||
const messageJsonDefinition = graphMessages.find((message) => message.messageName === messageName && | ||
message.source === expectedMessageSource); | ||
@@ -25,0 +25,0 @@ if (!messageJsonDefinition) { |
import { ServiceHandler } from "@blockprotocol/core"; | ||
import { GraphServiceJson } from "./graph-service-json.js"; | ||
import { graphMessages } from "./graph-service-json.js"; | ||
/** | ||
@@ -27,3 +27,3 @@ * Creates a handler for the graph service for the embedder. | ||
const expectedMessageSource = "block"; | ||
const messageJsonDefinition = GraphServiceJson.messages.find((message) => message.messageName === messageName && | ||
const messageJsonDefinition = graphMessages.find((message) => message.messageName === messageName && | ||
message.source === expectedMessageSource); | ||
@@ -30,0 +30,0 @@ if (!messageJsonDefinition) { |
@@ -1,1 +0,1016 @@ | ||
export { default as GraphServiceJson } from "./graph-service.json"; | ||
import graphServiceJson from "./graph-service.json"; | ||
export { graphServiceJson }; | ||
declare const graphMessages: ({ | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
entityTypeId: { | ||
description: string; | ||
type: string; | ||
}; | ||
properties: { | ||
description: string; | ||
type: string; | ||
}; | ||
links: { | ||
description: string; | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
}; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
entity: { | ||
description: string; | ||
$ref: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: string[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
entityId: { | ||
description: string; | ||
type: string; | ||
}; | ||
properties: { | ||
description: string; | ||
type: string; | ||
}; | ||
entityTypeId?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
entityId: { | ||
description: string; | ||
type: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
description: string; | ||
type: string; | ||
properties?: undefined; | ||
required?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: string[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
operation: { | ||
description: string; | ||
$ref: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
operation: { | ||
description: string; | ||
$ref: string; | ||
}; | ||
results: { | ||
description: string; | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: string[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
schema: { | ||
description: string; | ||
type: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
entityType: { | ||
description: string; | ||
$ref: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: string[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
entityTypeId: { | ||
description: string; | ||
type: string; | ||
}; | ||
schema: { | ||
description: string; | ||
type: string; | ||
}; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
entityTypeId: { | ||
description: string; | ||
type: string; | ||
}; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
sourceEntityId: { | ||
description: string; | ||
type: string; | ||
}; | ||
destinationEntityId: { | ||
description: string; | ||
type: string; | ||
}; | ||
index: { | ||
description: string; | ||
type: string; | ||
}; | ||
path: { | ||
description: string; | ||
type: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
link: { | ||
description: string; | ||
$ref: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: string[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
linkId: { | ||
description: string; | ||
type: string; | ||
}; | ||
index: { | ||
description: string; | ||
type: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
linkId: { | ||
description: string; | ||
type: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
sourceEntityId: { | ||
description: string; | ||
type: string; | ||
}; | ||
operation: { | ||
description: string; | ||
$ref: string; | ||
}; | ||
path: { | ||
description: string; | ||
type: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
linkedAggregation: { | ||
description: string; | ||
$ref: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: string[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
aggregationId: { | ||
description: string; | ||
type: string; | ||
}; | ||
operation: { | ||
description: string; | ||
$ref: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
aggregationId: { | ||
description: string; | ||
type: string; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties?: undefined; | ||
required?: undefined; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: string[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: string; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
file: { | ||
description: string; | ||
}; | ||
url: { | ||
description: string; | ||
type: string; | ||
}; | ||
mediaType: { | ||
description: string; | ||
type: string; | ||
enum: string[]; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
entityId: { | ||
description: string; | ||
type?: undefined; | ||
}; | ||
url: { | ||
description: string; | ||
type: string; | ||
}; | ||
mediaType: { | ||
description: string; | ||
type: string; | ||
enum: string[]; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
linkedEntities?: undefined; | ||
linkGroups?: undefined; | ||
depth?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: string[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
$ref: string; | ||
type?: undefined; | ||
properties?: undefined; | ||
required?: undefined; | ||
description?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
properties: { | ||
linkedEntities: { | ||
description: string; | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
}; | ||
linkGroups: { | ||
description: string; | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
}; | ||
depth: { | ||
description: string; | ||
type: string; | ||
inclusiveMinimum: number; | ||
}; | ||
entityTypeId?: undefined; | ||
properties?: undefined; | ||
links?: undefined; | ||
entity?: undefined; | ||
entityId?: undefined; | ||
operation?: undefined; | ||
results?: undefined; | ||
schema?: undefined; | ||
entityType?: undefined; | ||
sourceEntityId?: undefined; | ||
destinationEntityId?: undefined; | ||
index?: undefined; | ||
path?: undefined; | ||
link?: undefined; | ||
linkId?: undefined; | ||
linkedAggregation?: undefined; | ||
aggregationId?: undefined; | ||
file?: undefined; | ||
url?: undefined; | ||
mediaType?: undefined; | ||
}; | ||
required: string[]; | ||
description?: undefined; | ||
$ref?: undefined; | ||
items?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
} | { | ||
messageName: string; | ||
description: string; | ||
source: string; | ||
respondedToBy: null; | ||
sentOnInitialization: boolean; | ||
data: { | ||
type: string; | ||
items: { | ||
$ref: string; | ||
}; | ||
properties?: undefined; | ||
required?: undefined; | ||
description?: undefined; | ||
$ref?: undefined; | ||
}; | ||
errorCodes: never[]; | ||
})[]; | ||
export { graphMessages }; |
@@ -1,2 +0,5 @@ | ||
export { default as GraphServiceJson } from "./graph-service.json" assert { type: "json" }; | ||
import graphServiceJson from "./graph-service.json" assert { type: "json" }; | ||
export { graphServiceJson }; | ||
const graphMessages = graphServiceJson.messages; | ||
export { graphMessages }; | ||
//# sourceMappingURL=graph-service-json.js.map |
export { GraphBlockHandler } from "./graph-block-handler.js"; | ||
export { GraphEmbedderHandler } from "./graph-embedder-handler.js"; | ||
export * from "./types.js"; | ||
export { useGraphEmbedderService } from "./react.js"; |
export { GraphBlockHandler } from "./graph-block-handler.js"; | ||
export { GraphEmbedderHandler } from "./graph-embedder-handler.js"; | ||
export * from "./types.js"; | ||
export { useGraphEmbedderService } from "./react.js"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@blockprotocol/graph", | ||
"version": "0.0.11-canary.19", | ||
"version": "0.0.11-canary.20", | ||
"description": "Implementation of the Block Protocol Graph service specification for blocks and embedding applications", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
106942
2591