Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ blocks/**/.env
**/pkg
libs/@blockprotocol/type-system/typescript/src/generated
libs/@local/codec/typescript/src/generated
libs/@local/graph/authorization/typescript/src/generated
libs/@local/graph/store/typescript/src/generated

# vscode config
**/.vscode/settings.json
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ members = [
"libs/@local/effect-dns/hickory",
"libs/@local/graph/api",
"libs/@local/graph/authentication/",
"libs/@local/graph/authorization",
"libs/@local/graph/authorization/rust",
"libs/@local/graph/embeddings",
"libs/@local/graph/migrations",
"libs/@local/graph/migrations-macros",
"libs/@local/graph/postgres-store",
"libs/@local/graph/store",
"libs/@local/graph/store/rust",
"libs/@local/graph/temporal-versioning",
"libs/@local/graph/type-defs",
"libs/@local/graph/type-fetcher",
Expand Down Expand Up @@ -80,12 +80,12 @@ hash-codegen.path = "libs/@local/codegen"
hash-config.path = "libs/@local/config"
hash-graph-api.path = "libs/@local/graph/api"
hash-graph-authentication.path = "libs/@local/graph/authentication/"
hash-graph-authorization.path = "libs/@local/graph/authorization"
hash-graph-authorization.path = "libs/@local/graph/authorization/rust"
hash-graph-embeddings.path = "libs/@local/graph/embeddings"
hash-graph-migrations.path = "libs/@local/graph/migrations"
hash-graph-migrations-macros.path = "libs/@local/graph/migrations-macros"
hash-graph-postgres-store.path = "libs/@local/graph/postgres-store"
hash-graph-store.path = "libs/@local/graph/store"
hash-graph-store.path = "libs/@local/graph/store/rust"
hash-graph-temporal-versioning.path = "libs/@local/graph/temporal-versioning"
hash-graph-test-data.path = "tests/graph/test-data/rust"
hash-graph-type-defs.path = "libs/@local/graph/type-defs"
Expand Down
2 changes: 2 additions & 0 deletions apps/hash-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@
"@local/advanced-types": "workspace:*",
"@local/harpc-client": "workspace:*",
"@local/hash-backend-utils": "workspace:*",
"@local/hash-graph-authorization": "workspace:*",
"@local/hash-graph-client": "workspace:*",
"@local/hash-graph-sdk": "workspace:*",
"@local/hash-graph-store": "workspace:*",
"@local/hash-isomorphic-utils": "workspace:*",
"@local/petrinaut-optimizer-client": "workspace:*",
"@local/status": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions apps/hash-api/src/graph/knowledge/primitive/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import type {
WebId,
} from "@blockprotocol/type-system";
import type { Subtype } from "@local/advanced-types/subtype";
import type { ActionName } from "@local/hash-graph-authorization/types";
import type {
AllFilter,
DiffEntityResult,
Expand All @@ -67,9 +68,8 @@ import type {
UserPermissions,
UserPermissionsOnEntities,
} from "@local/hash-graph-sdk/authorization";
import type { TraversalPath } from "@local/hash-graph-store/types";
import type { UserProperties } from "@local/hash-isomorphic-utils/system-types/user";
import type { ActionName } from "@rust/hash-graph-authorization/types";
import type { TraversalPath } from "@rust/hash-graph-store/types";

/** @todo: potentially directly export this from the subgraph package */
export type PropertyValue = PropertyObject[BaseUrl];
Expand Down
2 changes: 1 addition & 1 deletion apps/hash-api/src/graph/knowledge/system-types/org.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ import type {
OntologyTypeVersion,
WebId,
} from "@blockprotocol/type-system";
import type { PolicyId } from "@local/hash-graph-authorization/types";
import type {
Organization,
OrganizationNamePropertyValueWithMetadata,
OrganizationPropertiesWithMetadata,
} from "@local/hash-isomorphic-utils/system-types/shared";
import type { PolicyId } from "@rust/hash-graph-authorization/types";

export type Org = {
webId: WebId;
Expand Down
1 change: 1 addition & 0 deletions apps/hash-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@local/advanced-types": "workspace:*",
"@local/hash-graph-client": "workspace:*",
"@local/hash-graph-sdk": "workspace:*",
"@local/hash-graph-store": "workspace:*",
"@local/hash-isomorphic-utils": "workspace:*",
"@local/status": "workspace:*",
"@mantine/hooks": "8.3.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ import type {
VersionedUrl,
} from "@blockprotocol/type-system";
import type { HashEntity } from "@local/hash-graph-sdk/entity";
import type { File as FileEntity } from "@local/hash-isomorphic-utils/system-types/shared";
import type {
EntityTraversalPath,
GraphResolveDepths,
TraversalPath,
} from "@rust/hash-graph-store/types";
} from "@local/hash-graph-store/types";
import type { File as FileEntity } from "@local/hash-isomorphic-utils/system-types/shared";

/* Entity CRU */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import type {
PropertyTypeWithMetadata,
VersionedUrl,
} from "@blockprotocol/type-system";
import type { GraphResolveDepths } from "@local/hash-graph-store/types";
import type { EmptyObject } from "@local/hash-isomorphic-utils/util";
import type { GraphResolveDepths } from "@rust/hash-graph-store/types";

type SystemDefinedOntologyTypeProperties = "$id" | "kind" | "$schema";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type { EntityRootType, Subgraph } from "@blockprotocol/graph";
import type {
EntityTraversalPath,
GraphResolveDepths,
} from "@rust/hash-graph-store/types";
} from "@local/hash-graph-store/types";

export const useEntityById = ({
entityId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ import type {
} from "@blockprotocol/graph";
import type { EntityId, EntityUuid } from "@blockprotocol/type-system";
import type { HashEntity, HashLinkEntity } from "@local/hash-graph-sdk/entity";
import type {
EntityTraversalPath,
GraphResolveDepths,
} from "@local/hash-graph-store/types";
import type { BlockCollectionContentItem } from "@local/hash-isomorphic-utils/entity";
import type { HasSpatiallyPositionedContent } from "@local/hash-isomorphic-utils/system-types/canvas";
import type {
Block,
HasIndexedContent,
} from "@local/hash-isomorphic-utils/system-types/shared";
import type { TextToken } from "@local/hash-isomorphic-utils/types";
import type {
EntityTraversalPath,
GraphResolveDepths,
} from "@rust/hash-graph-store/types";

/**
* The depths required to fetch the contents for blocks to render, rooted at a BlockCollection
Expand Down
2 changes: 1 addition & 1 deletion apps/hash-frontend/src/pages/shared/entity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import type { EntityEditorProps } from "./entity/entity-editor";
import type { EntityRootType, Subgraph } from "@blockprotocol/graph";
import type { EntityId, PropertyObject } from "@blockprotocol/type-system";
import type { VersionedUrl } from "@blockprotocol/type-system/slim";
import type { EntityTraversalPath } from "@rust/hash-graph-store/types";
import type { EntityTraversalPath } from "@local/hash-graph-store/types";

interface EntityProps {
entityId: EntityId;
Expand Down
2 changes: 1 addition & 1 deletion apps/hash-frontend/src/shared/use-user-or-org.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import type {
ActorGroupEntityUuid,
Entity,
} from "@blockprotocol/type-system";
import type { TraversalPath } from "@local/hash-graph-store/types";
import type { Organization } from "@local/hash-isomorphic-utils/system-types/shared";
import type { User } from "@local/hash-isomorphic-utils/system-types/user";
import type { TraversalPath } from "@rust/hash-graph-store/types";

export const useUserOrOrg = (
params: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,3 @@ postgres = ["dep:postgres-types", "dep:bytes"]

[lints]
workspace = true


[package.metadata.sync.turborepo]
extra-dependencies = [
{ name = "@blockprotocol/type-system", version = "workspace:*" },
]
extra-dev-dependencies = [
{ name = "@local/tsconfig", version = "workspace:*" },
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,20 @@
"version": "0.0.0-private",
"private": true,
"license": "AGPL-3",
"type": "module",
"typesVersions": {
"*": {
"types": [
"./types/index.snap.d.ts"
]
}
},
"exports": {
"./types": "./types/index.snap.js"
},
"scripts": {
"build:types": "INSTA_UPDATE=always mise exec --env dev cargo:cargo-insta -- cargo-insta test --features codegen --test codegen",
"doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-authorization --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info",
"fix:clippy": "just clippy --fix",
"lint:clippy": "just clippy",
"lint:tsc": "tsc --noEmit",
"test:integration": "cargo hack nextest run --feature-powerset --all-targets --filterset \"kind(test) | kind(bench)\"",
"test:unit": "mise run test:unit @rust/hash-graph-authorization --test-strategy=powerset -- --all-targets --filterset 'not kind(test) & not kind(bench)'"
},
"dependencies": {
"@blockprotocol/type-system": "workspace:*",
"@blockprotocol/type-system-rs": "workspace:*",
"@rust/error-stack": "workspace:*",
"@rust/hash-codec": "workspace:*"
},
"devDependencies": {
"@local/tsconfig": "workspace:*",
"@rust/hash-codegen": "workspace:*",
"typescript": "5.9.3"
"@rust/hash-codegen": "workspace:*"
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions libs/@local/graph/authorization/tsconfig.json

This file was deleted.

Loading
Loading