Host workspace repositories on Central Gitea
This commit is contained in:
Vendored
+204
-275
@@ -1,84 +1,10 @@
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import type { ClassSchema } from "./schema_pb.js";
|
||||
import type { FunctionRef } from "../quixos/refs_pb.js";
|
||||
import type { PersistencePlan } from "./schema_pb.js";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
/**
|
||||
* Describes the file camino/api.proto.
|
||||
*/
|
||||
export declare const file_camino_api: GenFile;
|
||||
/**
|
||||
* @generated from message camino.RegisterSchemaRequest
|
||||
*/
|
||||
export type RegisterSchemaRequest = Message<"camino.RegisterSchemaRequest"> & {
|
||||
/**
|
||||
* @generated from field: string source_file = 1;
|
||||
*/
|
||||
sourceFile: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.RegisterSchemaRequest.
|
||||
* Use `create(RegisterSchemaRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const RegisterSchemaRequestSchema: GenMessage<RegisterSchemaRequest>;
|
||||
/**
|
||||
* @generated from message camino.RegisterSchemaResponse
|
||||
*/
|
||||
export type RegisterSchemaResponse = Message<"camino.RegisterSchemaResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated string class_ids = 1;
|
||||
*/
|
||||
classIds: string[];
|
||||
/**
|
||||
* @generated from field: repeated camino.ClassSchema classes = 2;
|
||||
*/
|
||||
classes: ClassSchema[];
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.RegisterSchemaResponse.
|
||||
* Use `create(RegisterSchemaResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const RegisterSchemaResponseSchema: GenMessage<RegisterSchemaResponse>;
|
||||
/**
|
||||
* @generated from message camino.ListClassesRequest
|
||||
*/
|
||||
export type ListClassesRequest = Message<"camino.ListClassesRequest"> & {};
|
||||
/**
|
||||
* Describes the message camino.ListClassesRequest.
|
||||
* Use `create(ListClassesRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ListClassesRequestSchema: GenMessage<ListClassesRequest>;
|
||||
/**
|
||||
* @generated from message camino.RegisteredClass
|
||||
*/
|
||||
export type RegisteredClass = Message<"camino.RegisteredClass"> & {
|
||||
/**
|
||||
* @generated from field: string id = 1;
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* @generated from field: camino.ClassSchema schema = 2;
|
||||
*/
|
||||
schema?: ClassSchema | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.RegisteredClass.
|
||||
* Use `create(RegisteredClassSchema)` to create a new message.
|
||||
*/
|
||||
export declare const RegisteredClassSchema: GenMessage<RegisteredClass>;
|
||||
/**
|
||||
* @generated from message camino.ListClassesResponse
|
||||
*/
|
||||
export type ListClassesResponse = Message<"camino.ListClassesResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated camino.RegisteredClass classes = 1;
|
||||
*/
|
||||
classes: RegisteredClass[];
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ListClassesResponse.
|
||||
* Use `create(ListClassesResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ListClassesResponseSchema: GenMessage<ListClassesResponse>;
|
||||
/**
|
||||
* @generated from message camino.NullValue
|
||||
*/
|
||||
@@ -155,47 +81,43 @@ export type CrdtValue = Message<"camino.CrdtValue"> & {
|
||||
*/
|
||||
export declare const CrdtValueSchema: GenMessage<CrdtValue>;
|
||||
/**
|
||||
* @generated from message camino.FieldValueSource
|
||||
* @generated from message camino.StateValueSource
|
||||
*/
|
||||
export type FieldValueSource = Message<"camino.FieldValueSource"> & {
|
||||
export type StateValueSource = Message<"camino.StateValueSource"> & {
|
||||
/**
|
||||
* @generated from field: string object_id = 1;
|
||||
*/
|
||||
objectId: string;
|
||||
/**
|
||||
* @generated from field: string field_name = 2;
|
||||
* @generated from field: string slot_id = 2;
|
||||
*/
|
||||
fieldName: string;
|
||||
slotId: string;
|
||||
/**
|
||||
* @generated from field: string field_type = 3;
|
||||
* @generated from field: string value_type_json = 3;
|
||||
*/
|
||||
fieldType: string;
|
||||
valueTypeJson: string;
|
||||
/**
|
||||
* @generated from field: string field_storage = 4;
|
||||
* @generated from field: string storage_policy_json = 4;
|
||||
*/
|
||||
fieldStorage: string;
|
||||
storagePolicyJson: string;
|
||||
/**
|
||||
* @generated from field: string conflict_strategy = 5;
|
||||
*/
|
||||
conflictStrategy: string;
|
||||
/**
|
||||
* @generated from field: uint64 revision = 6;
|
||||
* @generated from field: uint64 revision = 5;
|
||||
*/
|
||||
revision: bigint;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.FieldValueSource.
|
||||
* Use `create(FieldValueSourceSchema)` to create a new message.
|
||||
* Describes the message camino.StateValueSource.
|
||||
* Use `create(StateValueSourceSchema)` to create a new message.
|
||||
*/
|
||||
export declare const FieldValueSourceSchema: GenMessage<FieldValueSource>;
|
||||
export declare const StateValueSourceSchema: GenMessage<StateValueSource>;
|
||||
/**
|
||||
* @generated from message camino.ValueSource
|
||||
*/
|
||||
export type ValueSource = Message<"camino.ValueSource"> & {
|
||||
/**
|
||||
* @generated from field: camino.FieldValueSource field = 1;
|
||||
* @generated from field: camino.StateValueSource state = 1;
|
||||
*/
|
||||
field?: FieldValueSource | undefined;
|
||||
state?: StateValueSource | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ValueSource.
|
||||
@@ -283,18 +205,69 @@ export type Value = Message<"camino.Value"> & {
|
||||
* Use `create(ValueSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ValueSchema: GenMessage<Value>;
|
||||
/**
|
||||
* @generated from message camino.InstallPersistencePlanRequest
|
||||
*/
|
||||
export type InstallPersistencePlanRequest = Message<"camino.InstallPersistencePlanRequest"> & {
|
||||
/**
|
||||
* @generated from field: camino.PersistencePlan plan = 1;
|
||||
*/
|
||||
plan?: PersistencePlan | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.InstallPersistencePlanRequest.
|
||||
* Use `create(InstallPersistencePlanRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const InstallPersistencePlanRequestSchema: GenMessage<InstallPersistencePlanRequest>;
|
||||
/**
|
||||
* @generated from message camino.InstallPersistencePlanResponse
|
||||
*/
|
||||
export type InstallPersistencePlanResponse = Message<"camino.InstallPersistencePlanResponse"> & {
|
||||
/**
|
||||
* @generated from field: camino.PersistencePlan plan = 1;
|
||||
*/
|
||||
plan?: PersistencePlan | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.InstallPersistencePlanResponse.
|
||||
* Use `create(InstallPersistencePlanResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const InstallPersistencePlanResponseSchema: GenMessage<InstallPersistencePlanResponse>;
|
||||
/**
|
||||
* @generated from message camino.GetPersistencePlanRequest
|
||||
*/
|
||||
export type GetPersistencePlanRequest = Message<"camino.GetPersistencePlanRequest"> & {};
|
||||
/**
|
||||
* Describes the message camino.GetPersistencePlanRequest.
|
||||
* Use `create(GetPersistencePlanRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const GetPersistencePlanRequestSchema: GenMessage<GetPersistencePlanRequest>;
|
||||
/**
|
||||
* @generated from message camino.GetPersistencePlanResponse
|
||||
*/
|
||||
export type GetPersistencePlanResponse = Message<"camino.GetPersistencePlanResponse"> & {
|
||||
/**
|
||||
* @generated from field: camino.PersistencePlan plan = 1;
|
||||
*/
|
||||
plan?: PersistencePlan | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.GetPersistencePlanResponse.
|
||||
* Use `create(GetPersistencePlanResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const GetPersistencePlanResponseSchema: GenMessage<GetPersistencePlanResponse>;
|
||||
/**
|
||||
* @generated from message camino.CreateObjectRequest
|
||||
*/
|
||||
export type CreateObjectRequest = Message<"camino.CreateObjectRequest"> & {
|
||||
/**
|
||||
* @generated from field: string class_id = 1;
|
||||
* @generated from field: string atom_id = 1;
|
||||
*/
|
||||
classId: string;
|
||||
atomId: string;
|
||||
/**
|
||||
* @generated from field: map<string, camino.Value> fields = 2;
|
||||
* @generated from field: map<string, camino.Value> initial_state = 2;
|
||||
*/
|
||||
fields: {
|
||||
initialState: {
|
||||
[key: string]: Value;
|
||||
};
|
||||
};
|
||||
@@ -350,9 +323,9 @@ export declare const GetObjectResponseSchema: GenMessage<GetObjectResponse>;
|
||||
*/
|
||||
export type ListObjectsRequest = Message<"camino.ListObjectsRequest"> & {
|
||||
/**
|
||||
* @generated from field: string class_id = 1;
|
||||
* @generated from field: string atom_id = 1;
|
||||
*/
|
||||
classId: string;
|
||||
atomId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ListObjectsRequest.
|
||||
@@ -374,17 +347,49 @@ export type ListObjectsResponse = Message<"camino.ListObjectsResponse"> & {
|
||||
*/
|
||||
export declare const ListObjectsResponseSchema: GenMessage<ListObjectsResponse>;
|
||||
/**
|
||||
* @generated from message camino.SetFieldRequest
|
||||
* @generated from message camino.ReadStateRequest
|
||||
*/
|
||||
export type SetFieldRequest = Message<"camino.SetFieldRequest"> & {
|
||||
export type ReadStateRequest = Message<"camino.ReadStateRequest"> & {
|
||||
/**
|
||||
* @generated from field: string object_id = 1;
|
||||
*/
|
||||
objectId: string;
|
||||
/**
|
||||
* @generated from field: string field_name = 2;
|
||||
* @generated from field: string slot_id = 2;
|
||||
*/
|
||||
fieldName: string;
|
||||
slotId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ReadStateRequest.
|
||||
* Use `create(ReadStateRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ReadStateRequestSchema: GenMessage<ReadStateRequest>;
|
||||
/**
|
||||
* @generated from message camino.ReadStateResponse
|
||||
*/
|
||||
export type ReadStateResponse = Message<"camino.ReadStateResponse"> & {
|
||||
/**
|
||||
* @generated from field: camino.Value value = 1;
|
||||
*/
|
||||
value?: Value | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ReadStateResponse.
|
||||
* Use `create(ReadStateResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ReadStateResponseSchema: GenMessage<ReadStateResponse>;
|
||||
/**
|
||||
* @generated from message camino.WriteStateRequest
|
||||
*/
|
||||
export type WriteStateRequest = Message<"camino.WriteStateRequest"> & {
|
||||
/**
|
||||
* @generated from field: string object_id = 1;
|
||||
*/
|
||||
objectId: string;
|
||||
/**
|
||||
* @generated from field: string slot_id = 2;
|
||||
*/
|
||||
slotId: string;
|
||||
/**
|
||||
* @generated from field: camino.Value value = 3;
|
||||
*/
|
||||
@@ -395,102 +400,76 @@ export type SetFieldRequest = Message<"camino.SetFieldRequest"> & {
|
||||
clientMutationId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.SetFieldRequest.
|
||||
* Use `create(SetFieldRequestSchema)` to create a new message.
|
||||
* Describes the message camino.WriteStateRequest.
|
||||
* Use `create(WriteStateRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const SetFieldRequestSchema: GenMessage<SetFieldRequest>;
|
||||
export declare const WriteStateRequestSchema: GenMessage<WriteStateRequest>;
|
||||
/**
|
||||
* @generated from message camino.SetFieldResponse
|
||||
* @generated from message camino.WriteStateResponse
|
||||
*/
|
||||
export type SetFieldResponse = Message<"camino.SetFieldResponse"> & {
|
||||
export type WriteStateResponse = Message<"camino.WriteStateResponse"> & {
|
||||
/**
|
||||
* @generated from field: camino.CaminoObject object = 1;
|
||||
* @generated from field: camino.Value value = 1;
|
||||
*/
|
||||
value?: Value | undefined;
|
||||
/**
|
||||
* @generated from field: camino.CaminoObject object = 2;
|
||||
*/
|
||||
object?: CaminoObject | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.SetFieldResponse.
|
||||
* Use `create(SetFieldResponseSchema)` to create a new message.
|
||||
* Describes the message camino.WriteStateResponse.
|
||||
* Use `create(WriteStateResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const SetFieldResponseSchema: GenMessage<SetFieldResponse>;
|
||||
export declare const WriteStateResponseSchema: GenMessage<WriteStateResponse>;
|
||||
/**
|
||||
* @generated from message camino.AddEdgeRequest
|
||||
* @generated from message camino.ConnectEdgeRequest
|
||||
*/
|
||||
export type AddEdgeRequest = Message<"camino.AddEdgeRequest"> & {
|
||||
export type ConnectEdgeRequest = Message<"camino.ConnectEdgeRequest"> & {
|
||||
/**
|
||||
* @generated from field: string from_object_id = 1;
|
||||
* @generated from field: string edge_type_id = 1;
|
||||
*/
|
||||
fromObjectId: string;
|
||||
edgeTypeId: string;
|
||||
/**
|
||||
* @generated from field: string source_field = 2;
|
||||
* @generated from field: string projection_id = 2;
|
||||
*/
|
||||
sourceField: string;
|
||||
projectionId: string;
|
||||
/**
|
||||
* @generated from field: string to_object_id = 3;
|
||||
* @generated from field: string object_id = 3;
|
||||
*/
|
||||
toObjectId: string;
|
||||
objectId: string;
|
||||
/**
|
||||
* @generated from field: map<string, camino.Value> fields = 4;
|
||||
* @generated from field: string target_object_id = 4;
|
||||
*/
|
||||
fields: {
|
||||
[key: string]: Value;
|
||||
};
|
||||
targetObjectId: string;
|
||||
/**
|
||||
* @generated from field: optional int32 source_ordinal = 5;
|
||||
* @generated from field: optional int32 ordinal = 5;
|
||||
*/
|
||||
sourceOrdinal?: number | undefined;
|
||||
ordinal?: number | undefined;
|
||||
/**
|
||||
* @generated from field: optional int32 target_ordinal = 6;
|
||||
*/
|
||||
targetOrdinal?: number | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.AddEdgeRequest.
|
||||
* Use `create(AddEdgeRequestSchema)` to create a new message.
|
||||
* Describes the message camino.ConnectEdgeRequest.
|
||||
* Use `create(ConnectEdgeRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const AddEdgeRequestSchema: GenMessage<AddEdgeRequest>;
|
||||
export declare const ConnectEdgeRequestSchema: GenMessage<ConnectEdgeRequest>;
|
||||
/**
|
||||
* @generated from message camino.AddEdgeResponse
|
||||
* @generated from message camino.ConnectEdgeResponse
|
||||
*/
|
||||
export type AddEdgeResponse = Message<"camino.AddEdgeResponse"> & {
|
||||
export type ConnectEdgeResponse = Message<"camino.ConnectEdgeResponse"> & {
|
||||
/**
|
||||
* @generated from field: camino.CaminoEdge edge = 1;
|
||||
*/
|
||||
edge?: CaminoEdge | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.AddEdgeResponse.
|
||||
* Use `create(AddEdgeResponseSchema)` to create a new message.
|
||||
* Describes the message camino.ConnectEdgeResponse.
|
||||
* Use `create(ConnectEdgeResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const AddEdgeResponseSchema: GenMessage<AddEdgeResponse>;
|
||||
/**
|
||||
* @generated from message camino.ListEdgesRequest
|
||||
*/
|
||||
export type ListEdgesRequest = Message<"camino.ListEdgesRequest"> & {
|
||||
/**
|
||||
* @generated from field: string object_id = 1;
|
||||
*/
|
||||
objectId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ListEdgesRequest.
|
||||
* Use `create(ListEdgesRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ListEdgesRequestSchema: GenMessage<ListEdgesRequest>;
|
||||
/**
|
||||
* @generated from message camino.ListEdgesResponse
|
||||
*/
|
||||
export type ListEdgesResponse = Message<"camino.ListEdgesResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated camino.CaminoEdge edges = 1;
|
||||
*/
|
||||
edges: CaminoEdge[];
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ListEdgesResponse.
|
||||
* Use `create(ListEdgesResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ListEdgesResponseSchema: GenMessage<ListEdgesResponse>;
|
||||
export declare const ConnectEdgeResponseSchema: GenMessage<ConnectEdgeResponse>;
|
||||
/**
|
||||
* @generated from message camino.ResolveEdgeRequest
|
||||
*/
|
||||
@@ -500,9 +479,13 @@ export type ResolveEdgeRequest = Message<"camino.ResolveEdgeRequest"> & {
|
||||
*/
|
||||
objectId: string;
|
||||
/**
|
||||
* @generated from field: string projection = 2;
|
||||
* @generated from field: string edge_type_id = 2;
|
||||
*/
|
||||
projection: string;
|
||||
edgeTypeId: string;
|
||||
/**
|
||||
* @generated from field: string projection_id = 3;
|
||||
*/
|
||||
projectionId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ResolveEdgeRequest.
|
||||
@@ -517,14 +500,6 @@ export type ResolveEdgeResponse = Message<"camino.ResolveEdgeResponse"> & {
|
||||
* @generated from field: repeated camino.CaminoEdge edges = 1;
|
||||
*/
|
||||
edges: CaminoEdge[];
|
||||
/**
|
||||
* @generated from field: camino.CaminoObject materialized_object = 2;
|
||||
*/
|
||||
materializedObject?: CaminoObject | undefined;
|
||||
/**
|
||||
* @generated from field: bool created = 3;
|
||||
*/
|
||||
created: boolean;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ResolveEdgeResponse.
|
||||
@@ -532,33 +507,33 @@ export type ResolveEdgeResponse = Message<"camino.ResolveEdgeResponse"> & {
|
||||
*/
|
||||
export declare const ResolveEdgeResponseSchema: GenMessage<ResolveEdgeResponse>;
|
||||
/**
|
||||
* @generated from message camino.RemoveEdgeRequest
|
||||
* @generated from message camino.DisconnectEdgeRequest
|
||||
*/
|
||||
export type RemoveEdgeRequest = Message<"camino.RemoveEdgeRequest"> & {
|
||||
export type DisconnectEdgeRequest = Message<"camino.DisconnectEdgeRequest"> & {
|
||||
/**
|
||||
* @generated from field: string edge_id = 1;
|
||||
*/
|
||||
edgeId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.RemoveEdgeRequest.
|
||||
* Use `create(RemoveEdgeRequestSchema)` to create a new message.
|
||||
* Describes the message camino.DisconnectEdgeRequest.
|
||||
* Use `create(DisconnectEdgeRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const RemoveEdgeRequestSchema: GenMessage<RemoveEdgeRequest>;
|
||||
export declare const DisconnectEdgeRequestSchema: GenMessage<DisconnectEdgeRequest>;
|
||||
/**
|
||||
* @generated from message camino.RemoveEdgeResponse
|
||||
* @generated from message camino.DisconnectEdgeResponse
|
||||
*/
|
||||
export type RemoveEdgeResponse = Message<"camino.RemoveEdgeResponse"> & {
|
||||
export type DisconnectEdgeResponse = Message<"camino.DisconnectEdgeResponse"> & {
|
||||
/**
|
||||
* @generated from field: string edge_id = 1;
|
||||
*/
|
||||
edgeId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.RemoveEdgeResponse.
|
||||
* Use `create(RemoveEdgeResponseSchema)` to create a new message.
|
||||
* Describes the message camino.DisconnectEdgeResponse.
|
||||
* Use `create(DisconnectEdgeResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const RemoveEdgeResponseSchema: GenMessage<RemoveEdgeResponse>;
|
||||
export declare const DisconnectEdgeResponseSchema: GenMessage<DisconnectEdgeResponse>;
|
||||
/**
|
||||
* @generated from message camino.ListOpsRequest
|
||||
*/
|
||||
@@ -640,13 +615,13 @@ export type CaminoObject = Message<"camino.CaminoObject"> & {
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* @generated from field: string class_id = 2;
|
||||
* @generated from field: string atom_id = 2;
|
||||
*/
|
||||
classId: string;
|
||||
atomId: string;
|
||||
/**
|
||||
* @generated from field: uint32 schema_version = 3;
|
||||
* @generated from field: string workspace_revision_id = 3;
|
||||
*/
|
||||
schemaVersion: number;
|
||||
workspaceRevisionId: string;
|
||||
/**
|
||||
* @generated from field: string created_at = 4;
|
||||
*/
|
||||
@@ -656,23 +631,17 @@ export type CaminoObject = Message<"camino.CaminoObject"> & {
|
||||
*/
|
||||
updatedAt: string;
|
||||
/**
|
||||
* @generated from field: map<string, camino.Value> fields = 6;
|
||||
* @generated from field: map<string, camino.Value> state = 6;
|
||||
*/
|
||||
fields: {
|
||||
state: {
|
||||
[key: string]: Value;
|
||||
};
|
||||
/**
|
||||
* @generated from field: map<string, uint64> field_revisions = 7;
|
||||
* @generated from field: map<string, uint64> state_revisions = 7;
|
||||
*/
|
||||
fieldRevisions: {
|
||||
stateRevisions: {
|
||||
[key: string]: bigint;
|
||||
};
|
||||
/**
|
||||
* @generated from field: map<string, string> field_conflicts = 8;
|
||||
*/
|
||||
fieldConflicts: {
|
||||
[key: string]: string;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.CaminoObject.
|
||||
@@ -692,69 +661,33 @@ export type CaminoEdge = Message<"camino.CaminoEdge"> & {
|
||||
*/
|
||||
edgeTypeId: string;
|
||||
/**
|
||||
* @generated from field: string from_object_id = 3;
|
||||
* @generated from field: string first_object_id = 3;
|
||||
*/
|
||||
fromObjectId: string;
|
||||
firstObjectId: string;
|
||||
/**
|
||||
* @generated from field: string to_object_id = 4;
|
||||
* @generated from field: string second_object_id = 4;
|
||||
*/
|
||||
toObjectId: string;
|
||||
secondObjectId: string;
|
||||
/**
|
||||
* Legacy canonical source-side projection fields. Prefer endpoint fields.
|
||||
*
|
||||
* @generated from field: string source_field = 5;
|
||||
* @generated from field: string first_projection_id = 5;
|
||||
*/
|
||||
sourceField: string;
|
||||
firstProjectionId: string;
|
||||
/**
|
||||
* @generated from field: string cardinality = 6;
|
||||
* @generated from field: string second_projection_id = 6;
|
||||
*/
|
||||
cardinality: string;
|
||||
secondProjectionId: string;
|
||||
/**
|
||||
* @generated from field: string inverse = 7;
|
||||
* @generated from field: optional int32 first_ordinal = 7;
|
||||
*/
|
||||
inverse: string;
|
||||
firstOrdinal?: number | undefined;
|
||||
/**
|
||||
* @generated from field: map<string, camino.Value> fields = 8;
|
||||
* @generated from field: optional int32 second_ordinal = 8;
|
||||
*/
|
||||
fields: {
|
||||
[key: string]: Value;
|
||||
};
|
||||
secondOrdinal?: number | undefined;
|
||||
/**
|
||||
* @generated from field: optional int32 from_ordinal = 9;
|
||||
*/
|
||||
fromOrdinal?: number | undefined;
|
||||
/**
|
||||
* @generated from field: string created_at = 10;
|
||||
* @generated from field: string created_at = 9;
|
||||
*/
|
||||
createdAt: string;
|
||||
/**
|
||||
* @generated from field: string updated_at = 11;
|
||||
*/
|
||||
updatedAt: string;
|
||||
/**
|
||||
* @generated from field: string from_projection = 12;
|
||||
*/
|
||||
fromProjection: string;
|
||||
/**
|
||||
* @generated from field: string to_projection = 13;
|
||||
*/
|
||||
toProjection: string;
|
||||
/**
|
||||
* @generated from field: string from_cardinality = 14;
|
||||
*/
|
||||
fromCardinality: string;
|
||||
/**
|
||||
* @generated from field: string to_cardinality = 15;
|
||||
*/
|
||||
toCardinality: string;
|
||||
/**
|
||||
* @generated from field: optional int32 to_ordinal = 16;
|
||||
*/
|
||||
toOrdinal?: number | undefined;
|
||||
/**
|
||||
* @generated from field: string directionality = 17;
|
||||
*/
|
||||
directionality: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.CaminoEdge.
|
||||
@@ -786,15 +719,11 @@ export type CaminoOp = Message<"camino.CaminoOp"> & {
|
||||
*/
|
||||
actor: string;
|
||||
/**
|
||||
* @generated from field: quixos.FunctionRef function_ref = 6;
|
||||
*/
|
||||
functionRef?: FunctionRef | undefined;
|
||||
/**
|
||||
* @generated from field: string created_at = 7;
|
||||
* @generated from field: string created_at = 6;
|
||||
*/
|
||||
createdAt: string;
|
||||
/**
|
||||
* @generated from field: string client_mutation_id = 8;
|
||||
* @generated from field: string client_mutation_id = 7;
|
||||
*/
|
||||
clientMutationId: string;
|
||||
};
|
||||
@@ -808,20 +737,20 @@ export declare const CaminoOpSchema: GenMessage<CaminoOp>;
|
||||
*/
|
||||
export declare const CaminoService: GenService<{
|
||||
/**
|
||||
* @generated from rpc camino.CaminoService.RegisterSchema
|
||||
* @generated from rpc camino.CaminoService.InstallPersistencePlan
|
||||
*/
|
||||
registerSchema: {
|
||||
installPersistencePlan: {
|
||||
methodKind: "unary";
|
||||
input: typeof RegisterSchemaRequestSchema;
|
||||
output: typeof RegisterSchemaResponseSchema;
|
||||
input: typeof InstallPersistencePlanRequestSchema;
|
||||
output: typeof InstallPersistencePlanResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc camino.CaminoService.ListClasses
|
||||
* @generated from rpc camino.CaminoService.GetPersistencePlan
|
||||
*/
|
||||
listClasses: {
|
||||
getPersistencePlan: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListClassesRequestSchema;
|
||||
output: typeof ListClassesResponseSchema;
|
||||
input: typeof GetPersistencePlanRequestSchema;
|
||||
output: typeof GetPersistencePlanResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc camino.CaminoService.CreateObject
|
||||
@@ -848,28 +777,28 @@ export declare const CaminoService: GenService<{
|
||||
output: typeof ListObjectsResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc camino.CaminoService.SetField
|
||||
* @generated from rpc camino.CaminoService.ReadState
|
||||
*/
|
||||
setField: {
|
||||
readState: {
|
||||
methodKind: "unary";
|
||||
input: typeof SetFieldRequestSchema;
|
||||
output: typeof SetFieldResponseSchema;
|
||||
input: typeof ReadStateRequestSchema;
|
||||
output: typeof ReadStateResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc camino.CaminoService.AddEdge
|
||||
* @generated from rpc camino.CaminoService.WriteState
|
||||
*/
|
||||
addEdge: {
|
||||
writeState: {
|
||||
methodKind: "unary";
|
||||
input: typeof AddEdgeRequestSchema;
|
||||
output: typeof AddEdgeResponseSchema;
|
||||
input: typeof WriteStateRequestSchema;
|
||||
output: typeof WriteStateResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc camino.CaminoService.ListEdges
|
||||
* @generated from rpc camino.CaminoService.ConnectEdge
|
||||
*/
|
||||
listEdges: {
|
||||
connectEdge: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListEdgesRequestSchema;
|
||||
output: typeof ListEdgesResponseSchema;
|
||||
input: typeof ConnectEdgeRequestSchema;
|
||||
output: typeof ConnectEdgeResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc camino.CaminoService.ResolveEdge
|
||||
@@ -880,12 +809,12 @@ export declare const CaminoService: GenService<{
|
||||
output: typeof ResolveEdgeResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc camino.CaminoService.RemoveEdge
|
||||
* @generated from rpc camino.CaminoService.DisconnectEdge
|
||||
*/
|
||||
removeEdge: {
|
||||
disconnectEdge: {
|
||||
methodKind: "unary";
|
||||
input: typeof RemoveEdgeRequestSchema;
|
||||
output: typeof RemoveEdgeResponseSchema;
|
||||
input: typeof DisconnectEdgeRequestSchema;
|
||||
output: typeof DisconnectEdgeResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc camino.CaminoService.ListOps
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+70
-76
File diff suppressed because one or more lines are too long
Vendored
+128
-687
@@ -1,681 +1,201 @@
|
||||
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
||||
import type { FunctionRef } from "../quixos/refs_pb.js";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
/**
|
||||
* Describes the file camino/schema.proto.
|
||||
*/
|
||||
export declare const file_camino_schema: GenFile;
|
||||
/**
|
||||
* @generated from message camino.SymbolRef
|
||||
* @generated from message camino.AtomDefinition
|
||||
*/
|
||||
export type SymbolRef = Message<"camino.SymbolRef"> & {
|
||||
export type AtomDefinition = Message<"camino.AtomDefinition"> & {
|
||||
/**
|
||||
* @generated from field: string namespace = 1;
|
||||
* @generated from field: string atom_id = 1;
|
||||
*/
|
||||
namespace: string;
|
||||
atomId: string;
|
||||
/**
|
||||
* @generated from field: string name = 2;
|
||||
* @generated from field: string display_name = 2;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string version = 3;
|
||||
*/
|
||||
version: string;
|
||||
/**
|
||||
* @generated from field: string hash = 4;
|
||||
*/
|
||||
hash: string;
|
||||
displayName: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.SymbolRef.
|
||||
* Use `create(SymbolRefSchema)` to create a new message.
|
||||
* Describes the message camino.AtomDefinition.
|
||||
* Use `create(AtomDefinitionSchema)` to create a new message.
|
||||
*/
|
||||
export declare const SymbolRefSchema: GenMessage<SymbolRef>;
|
||||
export declare const AtomDefinitionSchema: GenMessage<AtomDefinition>;
|
||||
/**
|
||||
* @generated from message camino.Ref
|
||||
* @generated from message camino.AtomConformance
|
||||
*/
|
||||
export type Ref = Message<"camino.Ref"> & {
|
||||
export type AtomConformance = Message<"camino.AtomConformance"> & {
|
||||
/**
|
||||
* @generated from field: string object_id = 1;
|
||||
* @generated from field: string atom_id = 1;
|
||||
*/
|
||||
objectId: string;
|
||||
atomId: string;
|
||||
/**
|
||||
* @generated from field: string interface_revision_id = 2;
|
||||
*/
|
||||
interfaceRevisionId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.Ref.
|
||||
* Use `create(RefSchema)` to create a new message.
|
||||
* Describes the message camino.AtomConformance.
|
||||
* Use `create(AtomConformanceSchema)` to create a new message.
|
||||
*/
|
||||
export declare const RefSchema: GenMessage<Ref>;
|
||||
export declare const AtomConformanceSchema: GenMessage<AtomConformance>;
|
||||
/**
|
||||
* @generated from message camino.CustomField
|
||||
* @generated from message camino.StateAttachment
|
||||
*/
|
||||
export type CustomField = Message<"camino.CustomField"> & {};
|
||||
/**
|
||||
* Describes the message camino.CustomField.
|
||||
* Use `create(CustomFieldSchema)` to create a new message.
|
||||
*/
|
||||
export declare const CustomFieldSchema: GenMessage<CustomField>;
|
||||
/**
|
||||
* @generated from message camino.WatchStartResult
|
||||
*/
|
||||
export type WatchStartResult = Message<"camino.WatchStartResult"> & {
|
||||
export type StateAttachment = Message<"camino.StateAttachment"> & {
|
||||
/**
|
||||
* @generated from field: string watch_id = 1;
|
||||
* @generated from field: string slot_id = 1;
|
||||
*/
|
||||
watchId: string;
|
||||
slotId: string;
|
||||
/**
|
||||
* @generated from field: string attached_atom_id = 2;
|
||||
*/
|
||||
attachedAtomId: string;
|
||||
/**
|
||||
* @generated from field: string display_name = 3;
|
||||
*/
|
||||
displayName: string;
|
||||
/**
|
||||
* @generated from field: string value_type_json = 4;
|
||||
*/
|
||||
valueTypeJson: string;
|
||||
/**
|
||||
* @generated from field: string storage_policy_json = 5;
|
||||
*/
|
||||
storagePolicyJson: string;
|
||||
/**
|
||||
* @generated from field: string default_value_json = 6;
|
||||
*/
|
||||
defaultValueJson: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.WatchStartResult.
|
||||
* Use `create(WatchStartResultSchema)` to create a new message.
|
||||
* Describes the message camino.StateAttachment.
|
||||
* Use `create(StateAttachmentSchema)` to create a new message.
|
||||
*/
|
||||
export declare const WatchStartResultSchema: GenMessage<WatchStartResult>;
|
||||
export declare const StateAttachmentSchema: GenMessage<StateAttachment>;
|
||||
/**
|
||||
* @generated from message camino.WatchStopRequest
|
||||
* @generated from message camino.EndpointConstraint
|
||||
*/
|
||||
export type WatchStopRequest = Message<"camino.WatchStopRequest"> & {
|
||||
export type EndpointConstraint = Message<"camino.EndpointConstraint"> & {
|
||||
/**
|
||||
* @generated from field: string watch_id = 1;
|
||||
* @generated from oneof camino.EndpointConstraint.kind
|
||||
*/
|
||||
watchId: string;
|
||||
kind: {
|
||||
/**
|
||||
* @generated from field: string atom_id = 1;
|
||||
*/
|
||||
value: string;
|
||||
case: "atomId";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: string interface_revision_id = 2;
|
||||
*/
|
||||
value: string;
|
||||
case: "interfaceRevisionId";
|
||||
} | {
|
||||
case: undefined;
|
||||
value?: undefined;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.WatchStopRequest.
|
||||
* Use `create(WatchStopRequestSchema)` to create a new message.
|
||||
* Describes the message camino.EndpointConstraint.
|
||||
* Use `create(EndpointConstraintSchema)` to create a new message.
|
||||
*/
|
||||
export declare const WatchStopRequestSchema: GenMessage<WatchStopRequest>;
|
||||
export declare const EndpointConstraintSchema: GenMessage<EndpointConstraint>;
|
||||
/**
|
||||
* @generated from message camino.WatchStopResult
|
||||
* @generated from message camino.EdgeEndpoint
|
||||
*/
|
||||
export type WatchStopResult = Message<"camino.WatchStopResult"> & {};
|
||||
/**
|
||||
* Describes the message camino.WatchStopResult.
|
||||
* Use `create(WatchStopResultSchema)` to create a new message.
|
||||
*/
|
||||
export declare const WatchStopResultSchema: GenMessage<WatchStopResult>;
|
||||
/**
|
||||
* @generated from message camino.CrdtText
|
||||
*/
|
||||
export type CrdtText = Message<"camino.CrdtText"> & {
|
||||
export type EdgeEndpoint = Message<"camino.EdgeEndpoint"> & {
|
||||
/**
|
||||
* @generated from field: bytes payload = 1;
|
||||
* @generated from field: string projection_id = 1;
|
||||
*/
|
||||
payload: Uint8Array;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.CrdtText.
|
||||
* Use `create(CrdtTextSchema)` to create a new message.
|
||||
*/
|
||||
export declare const CrdtTextSchema: GenMessage<CrdtText>;
|
||||
/**
|
||||
* @generated from message camino.CrdtRichText
|
||||
*/
|
||||
export type CrdtRichText = Message<"camino.CrdtRichText"> & {
|
||||
projectionId: string;
|
||||
/**
|
||||
* @generated from field: bytes payload = 1;
|
||||
* @generated from field: string display_name = 2;
|
||||
*/
|
||||
payload: Uint8Array;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.CrdtRichText.
|
||||
* Use `create(CrdtRichTextSchema)` to create a new message.
|
||||
*/
|
||||
export declare const CrdtRichTextSchema: GenMessage<CrdtRichText>;
|
||||
/**
|
||||
* @generated from message camino.CrdtJson
|
||||
*/
|
||||
export type CrdtJson = Message<"camino.CrdtJson"> & {
|
||||
displayName: string;
|
||||
/**
|
||||
* @generated from field: bytes payload = 1;
|
||||
* @generated from field: camino.EndpointConstraint constraint = 3;
|
||||
*/
|
||||
payload: Uint8Array;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.CrdtJson.
|
||||
* Use `create(CrdtJsonSchema)` to create a new message.
|
||||
*/
|
||||
export declare const CrdtJsonSchema: GenMessage<CrdtJson>;
|
||||
/**
|
||||
* @generated from message camino.ClassSchema
|
||||
*/
|
||||
export type ClassSchema = Message<"camino.ClassSchema"> & {
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef id = 1;
|
||||
*/
|
||||
id?: SymbolRef | undefined;
|
||||
/**
|
||||
* @generated from field: uint32 version = 2;
|
||||
*/
|
||||
version: number;
|
||||
/**
|
||||
* @generated from field: repeated camino.FieldSchema fields = 3;
|
||||
*/
|
||||
fields: FieldSchema[];
|
||||
/**
|
||||
* @generated from field: repeated camino.EdgeSchema edges = 4;
|
||||
*/
|
||||
edges: EdgeSchema[];
|
||||
/**
|
||||
* @generated from field: repeated camino.MethodSchema methods = 5;
|
||||
*/
|
||||
methods: MethodSchema[];
|
||||
/**
|
||||
* @generated from field: repeated camino.MigrationSpec migrations = 6;
|
||||
*/
|
||||
migrations: MigrationSpec[];
|
||||
/**
|
||||
* @generated from field: string source_file = 7;
|
||||
*/
|
||||
sourceFile: string;
|
||||
/**
|
||||
* @generated from field: string proto_message = 8;
|
||||
*/
|
||||
protoMessage: string;
|
||||
/**
|
||||
* @generated from field: repeated camino.OperationServiceSchema operation_services = 9;
|
||||
*/
|
||||
operationServices: OperationServiceSchema[];
|
||||
/**
|
||||
* @generated from field: repeated camino.InterfaceImplementationSchema implements = 10;
|
||||
*/
|
||||
implements: InterfaceImplementationSchema[];
|
||||
/**
|
||||
* @generated from field: camino.ConstructorSpec constructor = 11;
|
||||
*/
|
||||
constructor$?: ConstructorSpec | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ClassSchema.
|
||||
* Use `create(ClassSchemaSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ClassSchemaSchema: GenMessage<ClassSchema>;
|
||||
/**
|
||||
* @generated from message camino.FieldSchema
|
||||
*/
|
||||
export type FieldSchema = Message<"camino.FieldSchema"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: uint32 tag = 2;
|
||||
*/
|
||||
tag: number;
|
||||
/**
|
||||
* @generated from field: camino.TypeRef type = 3;
|
||||
*/
|
||||
type?: TypeRef | undefined;
|
||||
/**
|
||||
* @generated from field: camino.ConflictStrategy conflict = 4;
|
||||
*/
|
||||
conflict: ConflictStrategy;
|
||||
/**
|
||||
* @generated from field: bool repeated = 5;
|
||||
*/
|
||||
repeated: boolean;
|
||||
/**
|
||||
* @generated from field: bool optional = 6;
|
||||
*/
|
||||
optional: boolean;
|
||||
/**
|
||||
* @generated from field: camino.FieldStorage storage = 7;
|
||||
*/
|
||||
storage?: FieldStorage | undefined;
|
||||
/**
|
||||
* @generated from field: camino.FieldOps ops = 8;
|
||||
*/
|
||||
ops?: FieldOps | undefined;
|
||||
/**
|
||||
* @generated from field: camino.InterfaceFieldContract interface_contract = 9;
|
||||
*/
|
||||
interfaceContract?: InterfaceFieldContract | undefined;
|
||||
/**
|
||||
* @generated from field: bool is_display_label = 10;
|
||||
*/
|
||||
isDisplayLabel: boolean;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.FieldSchema.
|
||||
* Use `create(FieldSchemaSchema)` to create a new message.
|
||||
*/
|
||||
export declare const FieldSchemaSchema: GenMessage<FieldSchema>;
|
||||
/**
|
||||
* @generated from message camino.FieldStorage
|
||||
*/
|
||||
export type FieldStorage = Message<"camino.FieldStorage"> & {
|
||||
/**
|
||||
* @generated from field: camino.FieldStorageKind kind = 1;
|
||||
*/
|
||||
kind: FieldStorageKind;
|
||||
/**
|
||||
* @generated from field: quixos.FunctionRef resolver = 2;
|
||||
*/
|
||||
resolver?: FunctionRef | undefined;
|
||||
/**
|
||||
* @generated from field: bool cache = 3;
|
||||
*/
|
||||
cache: boolean;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.FieldStorage.
|
||||
* Use `create(FieldStorageSchema)` to create a new message.
|
||||
*/
|
||||
export declare const FieldStorageSchema: GenMessage<FieldStorage>;
|
||||
/**
|
||||
* @generated from message camino.TypeRef
|
||||
*/
|
||||
export type TypeRef = Message<"camino.TypeRef"> & {
|
||||
/**
|
||||
* @generated from field: string proto_type = 1;
|
||||
*/
|
||||
protoType: string;
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef symbol = 2;
|
||||
*/
|
||||
symbol?: SymbolRef | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.TypeRef.
|
||||
* Use `create(TypeRefSchema)` to create a new message.
|
||||
*/
|
||||
export declare const TypeRefSchema: GenMessage<TypeRef>;
|
||||
/**
|
||||
* @generated from message camino.TypeBinding
|
||||
*/
|
||||
export type TypeBinding = Message<"camino.TypeBinding"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: camino.TypeRef type = 2;
|
||||
*/
|
||||
type?: TypeRef | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.TypeBinding.
|
||||
* Use `create(TypeBindingSchema)` to create a new message.
|
||||
*/
|
||||
export declare const TypeBindingSchema: GenMessage<TypeBinding>;
|
||||
/**
|
||||
* @generated from message camino.InterfaceFieldContract
|
||||
*/
|
||||
export type InterfaceFieldContract = Message<"camino.InterfaceFieldContract"> & {
|
||||
/**
|
||||
* @generated from field: bool required = 1;
|
||||
*/
|
||||
required: boolean;
|
||||
/**
|
||||
* @generated from field: bool readable = 2;
|
||||
*/
|
||||
readable: boolean;
|
||||
/**
|
||||
* @generated from field: bool writable = 3;
|
||||
*/
|
||||
writable: boolean;
|
||||
/**
|
||||
* @generated from field: bool watchable = 4;
|
||||
*/
|
||||
watchable: boolean;
|
||||
/**
|
||||
* @generated from field: string type_param = 5;
|
||||
*/
|
||||
typeParam: string;
|
||||
/**
|
||||
* @generated from field: camino.TypeRef type = 6;
|
||||
*/
|
||||
type?: TypeRef | undefined;
|
||||
/**
|
||||
* @generated from field: string ref_target_type_param = 7;
|
||||
*/
|
||||
refTargetTypeParam: string;
|
||||
/**
|
||||
* @generated from field: camino.Cardinality edge_cardinality = 8;
|
||||
*/
|
||||
edgeCardinality: Cardinality;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.InterfaceFieldContract.
|
||||
* Use `create(InterfaceFieldContractSchema)` to create a new message.
|
||||
*/
|
||||
export declare const InterfaceFieldContractSchema: GenMessage<InterfaceFieldContract>;
|
||||
/**
|
||||
* @generated from message camino.InterfaceImplementationSchema
|
||||
*/
|
||||
export type InterfaceImplementationSchema = Message<"camino.InterfaceImplementationSchema"> & {
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef interface = 1;
|
||||
*/
|
||||
interface?: SymbolRef | undefined;
|
||||
/**
|
||||
* @generated from field: repeated camino.TypeBinding type_bindings = 2;
|
||||
*/
|
||||
typeBindings: TypeBinding[];
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.InterfaceImplementationSchema.
|
||||
* Use `create(InterfaceImplementationSchemaSchema)` to create a new message.
|
||||
*/
|
||||
export declare const InterfaceImplementationSchemaSchema: GenMessage<InterfaceImplementationSchema>;
|
||||
/**
|
||||
* @generated from message camino.InterfaceSchema
|
||||
*/
|
||||
export type InterfaceSchema = Message<"camino.InterfaceSchema"> & {
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef id = 1;
|
||||
*/
|
||||
id?: SymbolRef | undefined;
|
||||
/**
|
||||
* @generated from field: uint32 version = 2;
|
||||
*/
|
||||
version: number;
|
||||
/**
|
||||
* @generated from field: repeated camino.FieldSchema fields = 3;
|
||||
*/
|
||||
fields: FieldSchema[];
|
||||
/**
|
||||
* @generated from field: string source_file = 4;
|
||||
*/
|
||||
sourceFile: string;
|
||||
/**
|
||||
* @generated from field: string proto_message = 5;
|
||||
*/
|
||||
protoMessage: string;
|
||||
/**
|
||||
* @generated from field: repeated string type_parameters = 6;
|
||||
*/
|
||||
typeParameters: string[];
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.InterfaceSchema.
|
||||
* Use `create(InterfaceSchemaSchema)` to create a new message.
|
||||
*/
|
||||
export declare const InterfaceSchemaSchema: GenMessage<InterfaceSchema>;
|
||||
/**
|
||||
* @generated from message camino.FieldOps
|
||||
*/
|
||||
export type FieldOps = Message<"camino.FieldOps"> & {
|
||||
/**
|
||||
* @generated from field: camino.FieldImplementation implementation = 1;
|
||||
*/
|
||||
implementation: FieldImplementation;
|
||||
/**
|
||||
* @generated from field: string service = 2;
|
||||
*/
|
||||
service: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.FieldOps.
|
||||
* Use `create(FieldOpsSchema)` to create a new message.
|
||||
*/
|
||||
export declare const FieldOpsSchema: GenMessage<FieldOps>;
|
||||
/**
|
||||
* @generated from message camino.EdgeSchema
|
||||
*/
|
||||
export type EdgeSchema = Message<"camino.EdgeSchema"> & {
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef id = 1;
|
||||
*/
|
||||
id?: SymbolRef | undefined;
|
||||
/**
|
||||
* Legacy/source-side projection fields. Prefer from_endpoint/to_endpoint.
|
||||
*
|
||||
* @generated from field: string source_field = 2;
|
||||
*/
|
||||
sourceField: string;
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef from_class = 3;
|
||||
*/
|
||||
fromClass?: SymbolRef | undefined;
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef to_class = 4;
|
||||
*/
|
||||
toClass?: SymbolRef | undefined;
|
||||
/**
|
||||
* @generated from field: camino.Cardinality cardinality = 5;
|
||||
*/
|
||||
cardinality: Cardinality;
|
||||
/**
|
||||
* @generated from field: string inverse = 6;
|
||||
*/
|
||||
inverse: string;
|
||||
/**
|
||||
* @generated from field: repeated camino.FieldSchema fields = 7;
|
||||
*/
|
||||
fields: FieldSchema[];
|
||||
/**
|
||||
* @generated from field: camino.EdgeEndpointSchema from_endpoint = 8;
|
||||
*/
|
||||
fromEndpoint?: EdgeEndpointSchema | undefined;
|
||||
/**
|
||||
* @generated from field: camino.EdgeEndpointSchema to_endpoint = 9;
|
||||
*/
|
||||
toEndpoint?: EdgeEndpointSchema | undefined;
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef declaring_class = 10;
|
||||
*/
|
||||
declaringClass?: SymbolRef | undefined;
|
||||
/**
|
||||
* @generated from field: repeated camino.SymbolRef tags = 11;
|
||||
*/
|
||||
tags: SymbolRef[];
|
||||
/**
|
||||
* @generated from field: repeated camino.SymbolRef implements = 12;
|
||||
*/
|
||||
implements: SymbolRef[];
|
||||
/**
|
||||
* @generated from field: bool undirected = 13;
|
||||
*/
|
||||
undirected: boolean;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.EdgeSchema.
|
||||
* Use `create(EdgeSchemaSchema)` to create a new message.
|
||||
*/
|
||||
export declare const EdgeSchemaSchema: GenMessage<EdgeSchema>;
|
||||
/**
|
||||
* @generated from message camino.EdgeEndpointSchema
|
||||
*/
|
||||
export type EdgeEndpointSchema = Message<"camino.EdgeEndpointSchema"> & {
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef class = 1;
|
||||
*/
|
||||
class?: SymbolRef | undefined;
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef interface = 2;
|
||||
*/
|
||||
interface?: SymbolRef | undefined;
|
||||
/**
|
||||
* @generated from field: string projection = 3;
|
||||
*/
|
||||
projection: string;
|
||||
constraint?: EndpointConstraint | undefined;
|
||||
/**
|
||||
* @generated from field: camino.Cardinality cardinality = 4;
|
||||
*/
|
||||
cardinality: Cardinality;
|
||||
/**
|
||||
* @generated from field: bool indexed = 5;
|
||||
* @generated from field: bool ordered = 5;
|
||||
*/
|
||||
indexed: boolean;
|
||||
/**
|
||||
* @generated from field: camino.EdgeMaterialization materialize = 6;
|
||||
*/
|
||||
materialize?: EdgeMaterialization | undefined;
|
||||
ordered: boolean;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.EdgeEndpointSchema.
|
||||
* Use `create(EdgeEndpointSchemaSchema)` to create a new message.
|
||||
* Describes the message camino.EdgeEndpoint.
|
||||
* Use `create(EdgeEndpointSchema)` to create a new message.
|
||||
*/
|
||||
export declare const EdgeEndpointSchemaSchema: GenMessage<EdgeEndpointSchema>;
|
||||
export declare const EdgeEndpointSchema: GenMessage<EdgeEndpoint>;
|
||||
/**
|
||||
* @generated from message camino.EdgeMaterialization
|
||||
* @generated from message camino.EdgeAttachment
|
||||
*/
|
||||
export type EdgeMaterialization = Message<"camino.EdgeMaterialization"> & {
|
||||
export type EdgeAttachment = Message<"camino.EdgeAttachment"> & {
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef class = 1;
|
||||
* @generated from field: string edge_type_id = 1;
|
||||
*/
|
||||
class?: SymbolRef | undefined;
|
||||
edgeTypeId: string;
|
||||
/**
|
||||
* @generated from field: string connect_projection = 2;
|
||||
* @generated from field: string display_name = 2;
|
||||
*/
|
||||
connectProjection: string;
|
||||
displayName: string;
|
||||
/**
|
||||
* @generated from field: camino.EdgeEndpoint first = 3;
|
||||
*/
|
||||
first?: EdgeEndpoint | undefined;
|
||||
/**
|
||||
* @generated from field: camino.EdgeEndpoint second = 4;
|
||||
*/
|
||||
second?: EdgeEndpoint | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.EdgeMaterialization.
|
||||
* Use `create(EdgeMaterializationSchema)` to create a new message.
|
||||
* Describes the message camino.EdgeAttachment.
|
||||
* Use `create(EdgeAttachmentSchema)` to create a new message.
|
||||
*/
|
||||
export declare const EdgeMaterializationSchema: GenMessage<EdgeMaterialization>;
|
||||
export declare const EdgeAttachmentSchema: GenMessage<EdgeAttachment>;
|
||||
/**
|
||||
* @generated from message camino.MethodSchema
|
||||
* Camino consumes this persistence-only projection of a checked workspace.
|
||||
* Interfaces, operation bindings, packages, and constructors stay in orch.
|
||||
*
|
||||
* @generated from message camino.PersistencePlan
|
||||
*/
|
||||
export type MethodSchema = Message<"camino.MethodSchema"> & {
|
||||
export type PersistencePlan = Message<"camino.PersistencePlan"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
* @generated from field: string workspace_id = 1;
|
||||
*/
|
||||
name: string;
|
||||
workspaceId: string;
|
||||
/**
|
||||
* @generated from field: quixos.FunctionRef function = 2;
|
||||
* @generated from field: string workspace_revision_id = 2;
|
||||
*/
|
||||
function?: FunctionRef | undefined;
|
||||
workspaceRevisionId: string;
|
||||
/**
|
||||
* @generated from field: repeated camino.AtomDefinition atoms = 3;
|
||||
*/
|
||||
atoms: AtomDefinition[];
|
||||
/**
|
||||
* @generated from field: repeated camino.AtomConformance conformances = 4;
|
||||
*/
|
||||
conformances: AtomConformance[];
|
||||
/**
|
||||
* @generated from field: repeated camino.StateAttachment states = 5;
|
||||
*/
|
||||
states: StateAttachment[];
|
||||
/**
|
||||
* @generated from field: repeated camino.EdgeAttachment edges = 6;
|
||||
*/
|
||||
edges: EdgeAttachment[];
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.MethodSchema.
|
||||
* Use `create(MethodSchemaSchema)` to create a new message.
|
||||
* Describes the message camino.PersistencePlan.
|
||||
* Use `create(PersistencePlanSchema)` to create a new message.
|
||||
*/
|
||||
export declare const MethodSchemaSchema: GenMessage<MethodSchema>;
|
||||
/**
|
||||
* @generated from message camino.MigrationSpec
|
||||
*/
|
||||
export type MigrationSpec = Message<"camino.MigrationSpec"> & {
|
||||
/**
|
||||
* @generated from field: uint32 from_version = 1;
|
||||
*/
|
||||
fromVersion: number;
|
||||
/**
|
||||
* @generated from field: uint32 to_version = 2;
|
||||
*/
|
||||
toVersion: number;
|
||||
/**
|
||||
* @generated from field: quixos.FunctionRef function = 3;
|
||||
*/
|
||||
function?: FunctionRef | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.MigrationSpec.
|
||||
* Use `create(MigrationSpecSchema)` to create a new message.
|
||||
*/
|
||||
export declare const MigrationSpecSchema: GenMessage<MigrationSpec>;
|
||||
/**
|
||||
* @generated from message camino.ConstructorSpec
|
||||
*/
|
||||
export type ConstructorSpec = Message<"camino.ConstructorSpec"> & {
|
||||
/**
|
||||
* @generated from field: quixos.FunctionRef function = 1;
|
||||
*/
|
||||
function?: FunctionRef | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.ConstructorSpec.
|
||||
* Use `create(ConstructorSpecSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ConstructorSpecSchema: GenMessage<ConstructorSpec>;
|
||||
/**
|
||||
* @generated from message camino.OperationSchema
|
||||
*/
|
||||
export type OperationSchema = Message<"camino.OperationSchema"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: camino.TypeRef input_type = 2;
|
||||
*/
|
||||
inputType?: TypeRef | undefined;
|
||||
/**
|
||||
* @generated from field: camino.TypeRef output_type = 3;
|
||||
*/
|
||||
outputType?: TypeRef | undefined;
|
||||
/**
|
||||
* @generated from field: quixos.FunctionRef function = 4;
|
||||
*/
|
||||
function?: FunctionRef | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.OperationSchema.
|
||||
* Use `create(OperationSchemaSchema)` to create a new message.
|
||||
*/
|
||||
export declare const OperationSchemaSchema: GenMessage<OperationSchema>;
|
||||
/**
|
||||
* @generated from message camino.OperationServiceSchema
|
||||
*/
|
||||
export type OperationServiceSchema = Message<"camino.OperationServiceSchema"> & {
|
||||
/**
|
||||
* @generated from field: string name = 1;
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* @generated from field: string full_name = 2;
|
||||
*/
|
||||
fullName: string;
|
||||
/**
|
||||
* @generated from field: repeated camino.OperationSchema operations = 3;
|
||||
*/
|
||||
operations: OperationSchema[];
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.OperationServiceSchema.
|
||||
* Use `create(OperationServiceSchemaSchema)` to create a new message.
|
||||
*/
|
||||
export declare const OperationServiceSchemaSchema: GenMessage<OperationServiceSchema>;
|
||||
/**
|
||||
* @generated from message camino.DocRefDeclaration
|
||||
*/
|
||||
export type DocRefDeclaration = Message<"camino.DocRefDeclaration"> & {
|
||||
/**
|
||||
* @generated from field: string local_name = 1;
|
||||
*/
|
||||
localName: string;
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef type = 2;
|
||||
*/
|
||||
type?: SymbolRef | undefined;
|
||||
/**
|
||||
* @generated from field: camino.SymbolRef target_class = 3;
|
||||
*/
|
||||
targetClass?: SymbolRef | undefined;
|
||||
/**
|
||||
* @generated from field: camino.DocRefStrength strength = 4;
|
||||
*/
|
||||
strength: DocRefStrength;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.DocRefDeclaration.
|
||||
* Use `create(DocRefDeclarationSchema)` to create a new message.
|
||||
*/
|
||||
export declare const DocRefDeclarationSchema: GenMessage<DocRefDeclaration>;
|
||||
/**
|
||||
* @generated from enum camino.ConflictStrategy
|
||||
*/
|
||||
export declare enum ConflictStrategy {
|
||||
/**
|
||||
* @generated from enum value: CONFLICT_STRATEGY_UNSPECIFIED = 0;
|
||||
*/
|
||||
CONFLICT_STRATEGY_UNSPECIFIED = 0,
|
||||
/**
|
||||
* @generated from enum value: REPLACE = 1;
|
||||
*/
|
||||
REPLACE = 1,
|
||||
/**
|
||||
* @generated from enum value: PRESERVE_CONFLICTS = 2;
|
||||
*/
|
||||
PRESERVE_CONFLICTS = 2,
|
||||
/**
|
||||
* @generated from enum value: CRDT = 3;
|
||||
*/
|
||||
CRDT = 3
|
||||
}
|
||||
/**
|
||||
* Describes the enum camino.ConflictStrategy.
|
||||
*/
|
||||
export declare const ConflictStrategySchema: GenEnum<ConflictStrategy>;
|
||||
export declare const PersistencePlanSchema: GenMessage<PersistencePlan>;
|
||||
/**
|
||||
* @generated from enum camino.Cardinality
|
||||
*/
|
||||
@@ -699,89 +219,10 @@ export declare enum Cardinality {
|
||||
/**
|
||||
* @generated from enum value: MANY_UNIQUE = 4;
|
||||
*/
|
||||
MANY_UNIQUE = 4,
|
||||
/**
|
||||
* @generated from enum value: MANY_ORDERED = 5;
|
||||
*/
|
||||
MANY_ORDERED = 5,
|
||||
/**
|
||||
* @generated from enum value: MANY_UNIQUE_ORDERED = 6;
|
||||
*/
|
||||
MANY_UNIQUE_ORDERED = 6
|
||||
MANY_UNIQUE = 4
|
||||
}
|
||||
/**
|
||||
* Describes the enum camino.Cardinality.
|
||||
*/
|
||||
export declare const CardinalitySchema: GenEnum<Cardinality>;
|
||||
/**
|
||||
* @generated from enum camino.DocRefStrength
|
||||
*/
|
||||
export declare enum DocRefStrength {
|
||||
/**
|
||||
* @generated from enum value: DOC_REF_STRENGTH_UNSPECIFIED = 0;
|
||||
*/
|
||||
DOC_REF_STRENGTH_UNSPECIFIED = 0,
|
||||
/**
|
||||
* @generated from enum value: SOFT_REF = 1;
|
||||
*/
|
||||
SOFT_REF = 1,
|
||||
/**
|
||||
* @generated from enum value: PROJECTED_EDGE = 2;
|
||||
*/
|
||||
PROJECTED_EDGE = 2
|
||||
}
|
||||
/**
|
||||
* Describes the enum camino.DocRefStrength.
|
||||
*/
|
||||
export declare const DocRefStrengthSchema: GenEnum<DocRefStrength>;
|
||||
/**
|
||||
* @generated from enum camino.FieldStorageKind
|
||||
*/
|
||||
export declare enum FieldStorageKind {
|
||||
/**
|
||||
* @generated from enum value: FIELD_STORAGE_KIND_UNSPECIFIED = 0;
|
||||
*/
|
||||
FIELD_STORAGE_KIND_UNSPECIFIED = 0,
|
||||
/**
|
||||
* @generated from enum value: STORED = 1;
|
||||
*/
|
||||
STORED = 1,
|
||||
/**
|
||||
* @generated from enum value: DERIVED = 2;
|
||||
*/
|
||||
DERIVED = 2,
|
||||
/**
|
||||
* @generated from enum value: LAZY = 3;
|
||||
*/
|
||||
LAZY = 3,
|
||||
/**
|
||||
* @generated from enum value: EXTERNAL = 4;
|
||||
*/
|
||||
EXTERNAL = 4,
|
||||
/**
|
||||
* @generated from enum value: STATIC_FINAL = 5;
|
||||
*/
|
||||
STATIC_FINAL = 5
|
||||
}
|
||||
/**
|
||||
* Describes the enum camino.FieldStorageKind.
|
||||
*/
|
||||
export declare const FieldStorageKindSchema: GenEnum<FieldStorageKind>;
|
||||
/**
|
||||
* @generated from enum camino.FieldImplementation
|
||||
*/
|
||||
export declare enum FieldImplementation {
|
||||
/**
|
||||
* @generated from enum value: FIELD_IMPLEMENTATION_UNSPECIFIED = 0;
|
||||
*/
|
||||
FIELD_IMPLEMENTATION_UNSPECIFIED = 0,
|
||||
/**
|
||||
* @generated from enum value: SERVICE = 1;
|
||||
*/
|
||||
SERVICE = 1
|
||||
}
|
||||
/**
|
||||
* Describes the enum camino.FieldImplementation.
|
||||
*/
|
||||
export declare const FieldImplementationSchema: GenEnum<FieldImplementation>;
|
||||
//# sourceMappingURL=schema_pb.d.ts.map
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+23
-232
File diff suppressed because one or more lines are too long
Vendored
-3
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
export {};
|
||||
//# sourceMappingURL=codegen-ts-runtime.d.ts.map
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"codegen-ts-runtime.d.ts","sourceRoot":"","sources":["../src/codegen-ts-runtime.ts"],"names":[],"mappings":""}
|
||||
Vendored
-527
@@ -1,527 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import protobuf from "protobufjs";
|
||||
import { compileCaminoSchema, loadCaminoSchemaRoot, } from "./schema-compiler.js";
|
||||
const usage = () => {
|
||||
console.error("Usage: camino-codegen-ts-runtime [--react-only] <class-schema.camino.proto> <out-dir> [implementation-import]");
|
||||
process.exit(1);
|
||||
};
|
||||
const required = (value) => value ?? usage();
|
||||
const stringLiteral = (value) => JSON.stringify(value);
|
||||
const upperFirst = (value) => value.length === 0 ? value : `${value[0]?.toUpperCase()}${value.slice(1)}`;
|
||||
const lowerFirst = (value) => value.length === 0 ? value : `${value[0]?.toLowerCase()}${value.slice(1)}`;
|
||||
const camel = (value) => value
|
||||
.split(/[^a-zA-Z0-9]+/)
|
||||
.filter(Boolean)
|
||||
.map((part, index) => index === 0 ? lowerFirst(part) : upperFirst(lowerFirst(part)))
|
||||
.join("");
|
||||
const isIdentifier = (value) => /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(value);
|
||||
const classId = (schema) => `${schema.id.namespace}:${schema.id.name}:${schema.id.version}:${schema.id.hash ?? ""}`;
|
||||
const symbolId = (value) => `${value.namespace}:${value.name}:${value.version}:${value.hash ?? ""}`;
|
||||
const normalizedProtoType = (value) => value.replace(/^\./, "");
|
||||
const declarationName = (value) => value.name;
|
||||
const tsTypeForTypeRef = (type, root) => {
|
||||
if (type.enumValues && type.enumValues.length > 0) {
|
||||
return type.enumValues.map(stringLiteral).join(" | ");
|
||||
}
|
||||
if (type.symbol) {
|
||||
return `ObjectRef<${stringLiteral(symbolId(type.symbol))}>`;
|
||||
}
|
||||
const protoType = normalizedProtoType(type.protoType);
|
||||
switch (protoType) {
|
||||
case "string":
|
||||
case "google.protobuf.StringValue":
|
||||
return "string";
|
||||
case "bool":
|
||||
case "google.protobuf.BoolValue":
|
||||
return "boolean";
|
||||
case "double":
|
||||
case "float":
|
||||
case "google.protobuf.DoubleValue":
|
||||
case "google.protobuf.FloatValue":
|
||||
case "int32":
|
||||
case "sint32":
|
||||
case "sfixed32":
|
||||
case "uint32":
|
||||
case "fixed32":
|
||||
case "int64":
|
||||
case "sint64":
|
||||
case "sfixed64":
|
||||
case "uint64":
|
||||
case "fixed64":
|
||||
case "google.protobuf.Int32Value":
|
||||
case "google.protobuf.UInt32Value":
|
||||
case "google.protobuf.Int64Value":
|
||||
case "google.protobuf.UInt64Value":
|
||||
return "number";
|
||||
case "bytes":
|
||||
case "google.protobuf.BytesValue":
|
||||
return "Uint8Array";
|
||||
default:
|
||||
if (protoType === "google.protobuf.Empty") {
|
||||
return "Record<string, never>";
|
||||
}
|
||||
try {
|
||||
const reflected = root?.lookup(protoType);
|
||||
if (reflected instanceof protobuf.Type || reflected instanceof protobuf.Enum) {
|
||||
return declarationName(reflected);
|
||||
}
|
||||
}
|
||||
catch {
|
||||
// Unknown imported message types remain opaque at this codegen boundary.
|
||||
}
|
||||
return "unknown";
|
||||
}
|
||||
};
|
||||
const tsTypeForField = (field, root) => tsTypeForTypeRef(field.type, root);
|
||||
const tsValueTypeForField = (field, root) => field.repeated ? `${tsTypeForField(field, root)}[]` : tsTypeForField(field, root);
|
||||
const tsFieldApiType = (field, root) => field.conflict === "crdt"
|
||||
? `CrdtField<${tsValueTypeForField(field, root)}>`
|
||||
: `Field<${tsValueTypeForField(field, root)}>`;
|
||||
const functionExportName = (fn, fallback) => {
|
||||
if (isIdentifier(fn.symbol)) {
|
||||
return fn.symbol;
|
||||
}
|
||||
const fallbackName = camel(fallback);
|
||||
if (isIdentifier(fallbackName)) {
|
||||
return fallbackName;
|
||||
}
|
||||
throw new Error(`Cannot generate TS export name for function ${fn.symbol}`);
|
||||
};
|
||||
const generatedWarning = `// @generated by camino-codegen-ts-runtime. Do not edit.\n`;
|
||||
const scalarTsType = (field, root) => {
|
||||
const primitive = tsTypeForTypeRef({ protoType: field.type }, root);
|
||||
if (primitive !== "unknown") {
|
||||
return primitive;
|
||||
}
|
||||
const resolved = field.resolvedType;
|
||||
if (resolved instanceof protobuf.Type || resolved instanceof protobuf.Enum) {
|
||||
return declarationName(resolved);
|
||||
}
|
||||
return "unknown";
|
||||
};
|
||||
const collectProtoDeclarations = (root, types) => {
|
||||
const declarations = new Map();
|
||||
const visit = (value) => {
|
||||
const key = value.fullName;
|
||||
if (declarations.has(key)) {
|
||||
return;
|
||||
}
|
||||
declarations.set(key, value);
|
||||
if (value instanceof protobuf.Type) {
|
||||
for (const field of value.fieldsArray) {
|
||||
if (field.resolvedType instanceof protobuf.Type ||
|
||||
field.resolvedType instanceof protobuf.Enum) {
|
||||
visit(field.resolvedType);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
for (const type of types) {
|
||||
if (type.symbol || !type.protoType) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
const reflected = root.lookup(normalizedProtoType(type.protoType));
|
||||
if (reflected instanceof protobuf.Type || reflected instanceof protobuf.Enum) {
|
||||
visit(reflected);
|
||||
}
|
||||
}
|
||||
catch {
|
||||
// Opaque imported types are represented as unknown by the generated API.
|
||||
}
|
||||
}
|
||||
return [...declarations.values()]
|
||||
.map((value) => {
|
||||
if (value instanceof protobuf.Enum) {
|
||||
return `export type ${declarationName(value)} = ${Object.keys(value.values)
|
||||
.map(stringLiteral)
|
||||
.join(" | ")};`;
|
||||
}
|
||||
const fields = value.fieldsArray.map((field) => {
|
||||
const fieldType = scalarTsType(field, root);
|
||||
const valueType = field.map
|
||||
? `Record<string, ${fieldType}>`
|
||||
: field.repeated
|
||||
? `${fieldType}[]`
|
||||
: fieldType;
|
||||
return ` ${JSON.stringify(field.name)}${field.optional ? "?" : ""}: ${valueType};`;
|
||||
});
|
||||
return `export type ${declarationName(value)} = {\n${fields.join("\n")}\n};`;
|
||||
})
|
||||
.join("\n\n");
|
||||
};
|
||||
const fieldTypeId = (field) => field.type.symbol ? symbolId(field.type.symbol) : field.type.protoType;
|
||||
const crdtStorageTypeId = (field) => field.type.protoType ||
|
||||
(field.type.symbol
|
||||
? `${field.type.symbol.namespace}.${field.type.symbol.name}`
|
||||
: fieldTypeId(field));
|
||||
const fieldStorageId = (field) => field.ops && field.storage.kind === "stored" ? "derived" : field.storage.kind;
|
||||
const interfaceTypeName = (implementation) => `${implementation.interface.name}Ref`;
|
||||
const renderInterfaceRefTypes = (schema) => schema.implements
|
||||
.map((implementation) => {
|
||||
const typeParams = implementation.typeBindings.map((binding) => binding.name);
|
||||
const generic = typeParams.length > 0 ? `<${typeParams.join(", ")}>` : "";
|
||||
const bindings = typeParams.length > 0
|
||||
? typeParams
|
||||
.map((param) => ` readonly ${param}: ${param};`)
|
||||
.join("\n")
|
||||
: " readonly value: unknown;";
|
||||
return `export type ${interfaceTypeName(implementation)}${generic} = ObjectRef<string> & {
|
||||
readonly $caminoInterfaces: {
|
||||
readonly ${stringLiteral(symbolId(implementation.interface))}: {
|
||||
${bindings}
|
||||
};
|
||||
};
|
||||
};`;
|
||||
})
|
||||
.join("\n\n");
|
||||
const interfaceMixins = (schema, root) => schema.implements.map((implementation) => {
|
||||
const typeArgs = implementation.typeBindings.map((binding) => tsTypeForTypeRef(binding.type, root));
|
||||
return `${interfaceTypeName(implementation)}${typeArgs.length > 0 ? `<${typeArgs.join(", ")}>` : ""}`;
|
||||
});
|
||||
const operationFunctionSpecs = (schema) => schema.fields.flatMap((field) => {
|
||||
const serviceName = field.ops?.service.replace(/^\./, "");
|
||||
if (!serviceName) {
|
||||
return [];
|
||||
}
|
||||
const service = schema.operationServices.find((candidate) => candidate.fullName === serviceName);
|
||||
if (!service) {
|
||||
throw new Error(`${schema.id.name}.${field.name} points to missing operation service ${field.ops?.service}`);
|
||||
}
|
||||
return service.operations.map((operation) => ({
|
||||
exportName: functionExportName(operation.function, `${field.name}_${operation.name}`),
|
||||
symbol: operation.function.symbol,
|
||||
...(operation.function.operation
|
||||
? { operation: operation.function.operation }
|
||||
: {}),
|
||||
packageNamespace: operation.function.packageNamespace,
|
||||
packageName: operation.function.packageName,
|
||||
field: {
|
||||
name: field.name,
|
||||
type: fieldTypeId(field),
|
||||
storage: fieldStorageId(field),
|
||||
conflict: field.conflict,
|
||||
},
|
||||
}));
|
||||
});
|
||||
const renderRuntime = (schema, root) => {
|
||||
const className = schema.id.name;
|
||||
const objectTypeName = `${className}Object`;
|
||||
const refTypeName = `${className}Ref`;
|
||||
const contextTypeName = `${className}Context`;
|
||||
const implementationTypeName = `${className}Implementation`;
|
||||
const serveName = `serve${className}Runtime`;
|
||||
const createObjectName = `create${className}Object`;
|
||||
const interfaceRefTypes = renderInterfaceRefTypes(schema);
|
||||
const refType = [`ObjectRef<${stringLiteral(classId(schema))}>`, ...interfaceMixins(schema, root)]
|
||||
.join(" & ");
|
||||
const edgeFields = new Set(schema.edges.map((edge) => edge.sourceField));
|
||||
const writableFields = schema.fields.filter((field) => field.storage.kind === "stored" &&
|
||||
!field.ops &&
|
||||
!edgeFields.has(field.name));
|
||||
const functionSpecs = [
|
||||
...(schema.constructorSpec
|
||||
? [
|
||||
{
|
||||
exportName: functionExportName(schema.constructorSpec.function, "constructor"),
|
||||
symbol: schema.constructorSpec.function.symbol,
|
||||
...(schema.constructorSpec.function.operation
|
||||
? { operation: schema.constructorSpec.function.operation }
|
||||
: {}),
|
||||
packageNamespace: schema.constructorSpec.function.packageNamespace,
|
||||
packageName: schema.constructorSpec.function.packageName,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
...schema.methods.map((method) => ({
|
||||
exportName: functionExportName(method.function, method.name),
|
||||
symbol: method.function.symbol,
|
||||
...(method.function.operation ? { operation: method.function.operation } : {}),
|
||||
packageNamespace: method.function.packageNamespace,
|
||||
packageName: method.function.packageName,
|
||||
})),
|
||||
...schema.fields.flatMap((field) => field.storage.resolver
|
||||
? [
|
||||
{
|
||||
exportName: functionExportName(field.storage.resolver, field.name),
|
||||
symbol: field.storage.resolver.symbol,
|
||||
...(field.storage.resolver.operation
|
||||
? { operation: field.storage.resolver.operation }
|
||||
: {}),
|
||||
packageNamespace: field.storage.resolver.packageNamespace,
|
||||
packageName: field.storage.resolver.packageName,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
...operationFunctionSpecs(schema),
|
||||
];
|
||||
const firstFunction = functionSpecs[0];
|
||||
if (!firstFunction) {
|
||||
throw new Error(`${schema.id.name} has no runtime functions to generate`);
|
||||
}
|
||||
const mixedPackage = functionSpecs.find((spec) => spec.packageNamespace !== firstFunction.packageNamespace ||
|
||||
spec.packageName !== firstFunction.packageName);
|
||||
if (mixedPackage) {
|
||||
throw new Error(`${schema.id.name} points to multiple packages; v0 TS runtime generation expects one package`);
|
||||
}
|
||||
return `${generatedWarning}import {
|
||||
type CaminoClient,
|
||||
createCrdtField,
|
||||
createField,
|
||||
type CrdtField,
|
||||
type Field,
|
||||
type FieldOperation,
|
||||
type InvokeRequest,
|
||||
objectRef,
|
||||
type ObjectRef,
|
||||
type RuntimeHandler,
|
||||
serveQuixosPackageRuntime,
|
||||
} from "@quixos/camino-package-runtime";
|
||||
|
||||
${collectProtoDeclarations(root, [
|
||||
...writableFields.map((field) => field.type),
|
||||
...schema.implements.flatMap((entry) => entry.typeBindings.map((binding) => binding.type)),
|
||||
])}
|
||||
|
||||
${interfaceRefTypes ? `${interfaceRefTypes}\n\n` : ""}export type ${refTypeName} = ${refType};
|
||||
|
||||
export type ${objectTypeName} = {
|
||||
id: ${refTypeName};
|
||||
${writableFields
|
||||
.map((field) => ` ${camel(field.name)}: ${tsFieldApiType(field, root)};`)
|
||||
.join("\n")}
|
||||
};
|
||||
|
||||
export type ${contextTypeName} = {
|
||||
object: ${objectTypeName};
|
||||
camino: CaminoClient;
|
||||
request: InvokeRequest;
|
||||
};
|
||||
|
||||
export type ${implementationTypeName} = {
|
||||
${functionSpecs
|
||||
.map((spec) => spec.operation
|
||||
? ` ${spec.exportName}: FieldOperation<${contextTypeName}>;`
|
||||
: ` ${spec.exportName}: RuntimeHandler<${contextTypeName}>;`)
|
||||
.filter((line, index, lines) => lines.indexOf(line) === index)
|
||||
.join("\n")}
|
||||
};
|
||||
|
||||
const packageNamespace = ${stringLiteral(firstFunction.packageNamespace)};
|
||||
const packageName = ${stringLiteral(firstFunction.packageName)};
|
||||
const runtimeProtocolVersion = ${stringLiteral("camino-orch-v0")};
|
||||
|
||||
const functions = [
|
||||
${functionSpecs
|
||||
.map((spec) => ` { exportName: ${stringLiteral(spec.exportName)}, symbol: ${stringLiteral(spec.symbol)}${spec.operation ? `, operation: ${stringLiteral(spec.operation)}` : ""}${spec.field
|
||||
? `, field: { name: ${stringLiteral(spec.field.name)}, type: ${stringLiteral(spec.field.type)}, storage: ${stringLiteral(spec.field.storage)}, conflict: ${stringLiteral(spec.field.conflict)} }`
|
||||
: ""} },`)
|
||||
.join("\n")}
|
||||
] as const;
|
||||
|
||||
export const ${createObjectName} = (
|
||||
camino: CaminoClient,
|
||||
objectId: string,
|
||||
): ${objectTypeName} => {
|
||||
const id = objectRef<${stringLiteral(classId(schema))}>(objectId) as ${refTypeName};
|
||||
return {
|
||||
id,
|
||||
${writableFields
|
||||
.map((fieldSchema) => fieldSchema.conflict === "crdt"
|
||||
? ` ${camel(fieldSchema.name)}: createCrdtField(camino, id, ${stringLiteral(fieldSchema.name)}, ${stringLiteral(crdtStorageTypeId(fieldSchema))}),`
|
||||
: ` ${camel(fieldSchema.name)}: createField(camino, id, ${stringLiteral(fieldSchema.name)}),`)
|
||||
.join("\n")}
|
||||
};
|
||||
};
|
||||
|
||||
export const create${className}Context = (
|
||||
camino: CaminoClient,
|
||||
request: InvokeRequest,
|
||||
): ${contextTypeName} => ({
|
||||
object: ${createObjectName}(camino, request.objectId),
|
||||
camino,
|
||||
request,
|
||||
});
|
||||
|
||||
export const ${serveName} = (implementation: ${implementationTypeName}) => {
|
||||
serveQuixosPackageRuntime({
|
||||
packageNamespace,
|
||||
packageName,
|
||||
runtimeProtocolVersion,
|
||||
functions,
|
||||
implementation,
|
||||
createContext: create${className}Context,
|
||||
});
|
||||
};
|
||||
`;
|
||||
};
|
||||
const implementationNamed = (schema, name) => schema.implements.find((entry) => entry.interface.namespace === "quixos.react" &&
|
||||
entry.interface.name === name);
|
||||
const requiredBinding = (implementation, name) => {
|
||||
const binding = implementation.typeBindings.find((entry) => entry.name === name);
|
||||
if (!binding) {
|
||||
throw new Error(`${implementation.interface.name} implementation is missing ${name}`);
|
||||
}
|
||||
return binding.type;
|
||||
};
|
||||
const renderReactClient = (schema, root) => {
|
||||
const react = implementationNamed(schema, "ReactComponent");
|
||||
const componentFor = implementationNamed(schema, "ReactComponentFor");
|
||||
if (!react || !componentFor) {
|
||||
return undefined;
|
||||
}
|
||||
const renderProps = requiredBinding(react, "RenderProps");
|
||||
const action = requiredBinding(react, "Action");
|
||||
const object = requiredBinding(componentFor, "Object");
|
||||
if (!object.symbol) {
|
||||
throw new Error(`${schema.id.name}.ReactComponentFor.Object must bind a class symbol`);
|
||||
}
|
||||
const edge = schema.edges.find((candidate) => candidate.sourceField === "for_object");
|
||||
if (!edge) {
|
||||
throw new Error(`${schema.id.name} must declare its ReactComponentFor edge`);
|
||||
}
|
||||
const componentEndpoint = edge.fromEndpoint.projection === "for_object"
|
||||
? edge.fromEndpoint
|
||||
: edge.toEndpoint.projection === "for_object"
|
||||
? edge.toEndpoint
|
||||
: undefined;
|
||||
const objectEndpoint = componentEndpoint === edge.fromEndpoint ? edge.toEndpoint : edge.fromEndpoint;
|
||||
if (!componentEndpoint || !objectEndpoint.projection) {
|
||||
throw new Error(`${schema.id.name}.for_object edge has no inverse projection`);
|
||||
}
|
||||
if (componentEndpoint.cardinality !== "exactly_one") {
|
||||
throw new Error(`${schema.id.name}.for_object must have exactly_one cardinality`);
|
||||
}
|
||||
if (!objectEndpoint.materialization ||
|
||||
symbolId(objectEndpoint.materialization.class) !== symbolId(schema.id)) {
|
||||
throw new Error(`${schema.id.name}.${objectEndpoint.projection} must materialize ${classId(schema)}`);
|
||||
}
|
||||
const className = schema.id.name;
|
||||
const componentName = className.endsWith("ReactComponent")
|
||||
? `${className.slice(0, -"ReactComponent".length)}Component`
|
||||
: className;
|
||||
const propsTypeName = `${componentName}Props`;
|
||||
const renderPropsType = tsTypeForTypeRef(renderProps, root);
|
||||
const actionType = tsTypeForTypeRef(action, root);
|
||||
const objectType = tsTypeForTypeRef(object, root);
|
||||
const declarations = collectProtoDeclarations(root, [renderProps, action]);
|
||||
return `${generatedWarning}import {
|
||||
createReactComponentFor,
|
||||
type ReactComponentHostProps,
|
||||
type ObjectRef,
|
||||
} from "@quixos/camino-react-runtime";
|
||||
|
||||
${declarations}
|
||||
|
||||
export type ${propsTypeName} = {
|
||||
forObject: ${objectType};
|
||||
} & ${renderPropsType} & ReactComponentHostProps<${actionType}>;
|
||||
|
||||
export const ${componentName} = createReactComponentFor<
|
||||
${objectType},
|
||||
${renderPropsType},
|
||||
${actionType}
|
||||
>({
|
||||
componentClassId: ${stringLiteral(classId(schema))},
|
||||
projection: ${stringLiteral(objectEndpoint.projection)},
|
||||
});
|
||||
`;
|
||||
};
|
||||
const reactRuntimeDeclaration = `${generatedWarning}declare module "@quixos/camino-react-runtime" {
|
||||
import type * as AutomergeNamespace from "@automerge/automerge";
|
||||
|
||||
export type ObjectRef<ClassId extends string> = string & {
|
||||
readonly $caminoClass: ClassId;
|
||||
};
|
||||
|
||||
export type LiveFieldProp<T> = {
|
||||
value: T;
|
||||
source: {
|
||||
objectId: string;
|
||||
fieldName: string;
|
||||
fieldType?: string;
|
||||
fieldStorage?: string;
|
||||
conflictStrategy?: string;
|
||||
revision?: string | number | bigint;
|
||||
};
|
||||
};
|
||||
|
||||
export type ReactComponentHostProps<Action> = {
|
||||
onAction?: (action: Action) => void;
|
||||
fallback?: unknown;
|
||||
className?: string;
|
||||
style?: Record<string, string | number | undefined>;
|
||||
onError?: (error: Error) => void;
|
||||
};
|
||||
|
||||
export type ReactComponentImplementationProps<CaminoProps, RenderProps, Action> = {
|
||||
camino: CaminoProps;
|
||||
render: RenderProps;
|
||||
dispatch: (action: Action) => void;
|
||||
};
|
||||
|
||||
export const createReactComponentFor: <
|
||||
ForObject extends ObjectRef<string>,
|
||||
RenderProps extends object,
|
||||
Action,
|
||||
>(config: {
|
||||
componentClassId: string;
|
||||
projection: string;
|
||||
}) => (props: {
|
||||
forObject: ForObject;
|
||||
} & RenderProps & ReactComponentHostProps<Action>) => any;
|
||||
|
||||
export const callObjectMethod: <Result = unknown>(
|
||||
object: ObjectRef<string>,
|
||||
methodName: string,
|
||||
input?: Record<string, unknown>,
|
||||
) => Promise<Result>;
|
||||
|
||||
export const h: (...args: any[]) => any;
|
||||
export const useLiveField: <T>(
|
||||
field: LiveFieldProp<T>,
|
||||
) => [T, (value: T) => void | Promise<void>];
|
||||
export const Automerge: typeof AutomergeNamespace;
|
||||
}
|
||||
`;
|
||||
const renderServer = (schema, implementationImport) => {
|
||||
const className = schema.id.name;
|
||||
return `${generatedWarning}import * as implementation from ${stringLiteral(implementationImport)};
|
||||
import { serve${className}Runtime } from "./${schema.id.namespace}.${className}.runtime.js";
|
||||
|
||||
serve${className}Runtime(implementation);
|
||||
`;
|
||||
};
|
||||
const main = async () => {
|
||||
const reactOnly = process.argv[2] === "--react-only";
|
||||
const offset = reactOnly ? 1 : 0;
|
||||
const sourceFile = required(process.argv[2 + offset]);
|
||||
const outDir = required(process.argv[3 + offset]);
|
||||
const implementationImport = process.argv[4 + offset] ?? "../task.impl.js";
|
||||
const compiled = await compileCaminoSchema(sourceFile);
|
||||
const { root } = await loadCaminoSchemaRoot(sourceFile);
|
||||
if (compiled.classes.length !== 1) {
|
||||
throw new Error(`Expected exactly one Camino class in ${sourceFile}, found ${compiled.classes.length}`);
|
||||
}
|
||||
const schema = compiled.classes[0];
|
||||
if (!schema) {
|
||||
throw new Error(`No Camino class found in ${sourceFile}`);
|
||||
}
|
||||
fs.mkdirSync(outDir, { recursive: true });
|
||||
const baseName = `${schema.id.namespace}.${schema.id.name}`;
|
||||
const reactClient = renderReactClient(schema, root);
|
||||
if (!reactOnly) {
|
||||
fs.writeFileSync(path.join(outDir, `${baseName}.runtime.ts`), renderRuntime(schema, root));
|
||||
fs.writeFileSync(path.join(outDir, `${baseName}.server.ts`), renderServer(schema, implementationImport));
|
||||
}
|
||||
if (reactClient) {
|
||||
fs.writeFileSync(path.join(outDir, `${baseName}.react.ts`), reactClient);
|
||||
fs.writeFileSync(path.join(outDir, "camino-react-runtime.d.ts"), reactRuntimeDeclaration);
|
||||
}
|
||||
else if (reactOnly) {
|
||||
throw new Error(`${schema.id.name} does not implement ReactComponentFor`);
|
||||
}
|
||||
};
|
||||
await main();
|
||||
Vendored
+67
-95
@@ -1,110 +1,82 @@
|
||||
import { type Client } from "@connectrpc/connect";
|
||||
import { type CaminoAutomergeDoc } from "@quixos/camino-datatypes/crdt-automerge";
|
||||
import http from "node:http";
|
||||
import { type Client, type ConnectRouter } from "@connectrpc/connect";
|
||||
import { CaminoService, type Value } from "./camino/api_pb.js";
|
||||
import { type InvokeRequest } from "./quixos/runtime_pb.js";
|
||||
declare const objectRefBrand: unique symbol;
|
||||
export type ObjectRef<ClassId extends string> = string & {
|
||||
readonly [objectRefBrand]: ClassId;
|
||||
};
|
||||
import { OrchestratorRuntime } from "./quixos/orch_pb.js";
|
||||
export type CaminoClient = Client<typeof CaminoService>;
|
||||
export type { InvokeRequest, Value };
|
||||
export type DerivedDependency = {
|
||||
kind: "object";
|
||||
export type OrchClient = Client<typeof OrchestratorRuntime>;
|
||||
export type RuntimeDependency = {
|
||||
kind: "state";
|
||||
objectId: string;
|
||||
attachmentId: string;
|
||||
} | {
|
||||
kind: "field";
|
||||
kind: "edge";
|
||||
objectId: string;
|
||||
fieldName: string;
|
||||
} | {
|
||||
kind: "edges";
|
||||
objectId: string;
|
||||
sourceField?: string;
|
||||
attachmentId: string;
|
||||
projectionId: string;
|
||||
};
|
||||
export declare const recordDerivedDependency: (dependency: DerivedDependency) => void;
|
||||
export declare const getActiveDerivedDependencies: () => DerivedDependency[];
|
||||
export declare const runWithDerivedDependencyTracking: <T>(fn: () => Promise<T> | T) => Promise<{
|
||||
value: T;
|
||||
dependencies: DerivedDependency[];
|
||||
}>;
|
||||
export type Field<T> = {
|
||||
get(): Promise<T | undefined>;
|
||||
export declare const objectRef: (objectId: string) => {
|
||||
$quixosRef: string;
|
||||
};
|
||||
export declare const liveValue: (value: Value) => {
|
||||
$quixosValue: Value;
|
||||
};
|
||||
export declare const jsToProtoValue: (value: unknown) => Value;
|
||||
export declare const protoValueToJs: (value: Value | undefined) => unknown;
|
||||
export declare const protoFieldsToJs: (fields: Record<string, Value>) => {
|
||||
[k: string]: unknown;
|
||||
};
|
||||
export type StatePort<T = unknown> = {
|
||||
slotId: string;
|
||||
get(): Promise<T>;
|
||||
live(): Promise<ReturnType<typeof liveValue>>;
|
||||
set(value: T): Promise<void>;
|
||||
};
|
||||
export type CrdtField<T> = Field<CaminoAutomergeDoc<T>> & {
|
||||
change(fn: (doc: {
|
||||
value: T;
|
||||
}) => void): Promise<CaminoAutomergeDoc<T>>;
|
||||
replaceFromJson(value: T): Promise<void>;
|
||||
export type EdgePort = {
|
||||
edgeTypeId: string;
|
||||
projectionId: string;
|
||||
resolve(): Promise<string[]>;
|
||||
connect(targetObjectId: string): Promise<void>;
|
||||
};
|
||||
export type LiveFieldValue<T> = {
|
||||
$caminoValue: T;
|
||||
$caminoSource: {
|
||||
field: {
|
||||
objectId: string;
|
||||
fieldName: string;
|
||||
fieldType?: string;
|
||||
fieldStorage?: string;
|
||||
conflictStrategy?: string;
|
||||
revision?: number | string | bigint;
|
||||
};
|
||||
};
|
||||
export type InterfacePort = {
|
||||
interfaceRevisionId: string;
|
||||
invoke(operationId: string, input?: Record<string, unknown>): Promise<unknown>;
|
||||
};
|
||||
export declare const liveFieldValue: <T>(params: {
|
||||
value: T;
|
||||
export type ConstructorPort = {
|
||||
atomId: string;
|
||||
construct(input?: Record<string, unknown>): Promise<string>;
|
||||
};
|
||||
export type RuntimePort = StatePort | EdgePort | InterfacePort | ConstructorPort;
|
||||
export type RuntimeContext = {
|
||||
objectId: string;
|
||||
fieldName: string;
|
||||
fieldType?: string;
|
||||
fieldStorage?: string;
|
||||
conflictStrategy?: string;
|
||||
revision?: number | string | bigint;
|
||||
}) => LiveFieldValue<T>;
|
||||
export type RuntimeHandler<Context> = (context: Context) => Promise<unknown> | unknown;
|
||||
export type FieldOperation<Context> = {
|
||||
get?: RuntimeHandler<Context>;
|
||||
set?: RuntimeHandler<Context>;
|
||||
watchStart?: RuntimeHandler<Context>;
|
||||
watchStop?: RuntimeHandler<Context>;
|
||||
input: Record<string, unknown>;
|
||||
inputProto: Record<string, Value>;
|
||||
ports: ReadonlyMap<string, RuntimePort>;
|
||||
state<T = unknown>(portId: string): StatePort<T>;
|
||||
edge(portId: string): EdgePort;
|
||||
interface(portId: string): InterfacePort;
|
||||
constructor(portId: string): ConstructorPort;
|
||||
};
|
||||
export declare const fieldOps: <Context>(operation: FieldOperation<Context>) => FieldOperation<Context>;
|
||||
export declare const derivedWithDeps: <Context>(operation: {
|
||||
get: RuntimeHandler<Context>;
|
||||
}) => FieldOperation<Context>;
|
||||
export type RuntimeFunctionSpec<ExportName extends string = string> = {
|
||||
exportName: ExportName;
|
||||
symbol: string;
|
||||
operation?: string;
|
||||
field?: {
|
||||
name: string;
|
||||
type?: string;
|
||||
storage?: string;
|
||||
conflict?: string;
|
||||
};
|
||||
export declare const createRuntimeContext: (camino: CaminoClient, orch: OrchClient, request: RuntimeRequest) => RuntimeContext;
|
||||
export type RuntimeHandler = (context: RuntimeContext) => unknown | Promise<unknown>;
|
||||
export type DerivedHandler = {
|
||||
kind: "derived";
|
||||
get: RuntimeHandler;
|
||||
};
|
||||
type FieldCodec = {
|
||||
fieldType?: string;
|
||||
conflictStrategy?: string;
|
||||
};
|
||||
export declare const jsToProtoValue: (value: unknown, codec?: FieldCodec) => Value;
|
||||
export declare const protoValueToJs: (value: Value | undefined) => unknown;
|
||||
export declare const jsObjectToProtoFields: (value: Record<string, unknown>) => {
|
||||
[k: string]: Value;
|
||||
};
|
||||
export declare const protoFieldsToJs: (fields: Record<string, Value> | undefined) => Record<string, unknown>;
|
||||
export declare const canonicalFieldParams: (params: Record<string, Value> | undefined) => string;
|
||||
export declare const fieldOperationKey: (params: {
|
||||
export declare const derived: (get: RuntimeHandler) => DerivedHandler;
|
||||
export declare const createPackageRuntimeRoutes: (config: {
|
||||
packageRevisionId: string;
|
||||
exports: Record<string, RuntimeHandler | DerivedHandler>;
|
||||
caminoUrl?: string;
|
||||
orchUrl?: string;
|
||||
}) => (router: ConnectRouter) => ConnectRouter;
|
||||
export declare const servePackageRuntime: (config: {
|
||||
packageRevisionId: string;
|
||||
exports: Record<string, RuntimeHandler | DerivedHandler>;
|
||||
}) => http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;
|
||||
type RuntimeRequest = {
|
||||
objectId: string;
|
||||
fieldName: string;
|
||||
input?: Record<string, Value>;
|
||||
}) => string;
|
||||
export declare const objectRef: <ClassId extends string>(objectId: string) => ObjectRef<ClassId>;
|
||||
export declare const createField: <T>(camino: CaminoClient, objectId: string, fieldName: string, codec?: FieldCodec) => Field<T>;
|
||||
export declare const createCrdtField: <T>(camino: CaminoClient, objectId: string, fieldName: string, fieldType: string) => CrdtField<T>;
|
||||
export declare const serveQuixosPackageRuntime: <Context, Spec extends readonly RuntimeFunctionSpec[]>(params: {
|
||||
packageNamespace: string;
|
||||
packageName: string;
|
||||
runtimeProtocolVersion: string;
|
||||
functions: Spec;
|
||||
implementation: { [Name in Spec[number]["exportName"]]: RuntimeHandler<Context> | FieldOperation<Context>; };
|
||||
createContext: (camino: CaminoClient, request: InvokeRequest) => Context;
|
||||
}) => void;
|
||||
input: Record<string, Value>;
|
||||
dependencies: import("./quixos/refs_pb.js").InjectedDependency[];
|
||||
};
|
||||
export {};
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAKL,KAAK,kBAAkB,EACxB,MAAM,yCAAyC,CAAC;AAKjD,OAAO,EACL,aAAa,EASb,KAAK,KAAK,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAOL,KAAK,aAAa,EAGnB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,CAAC,MAAM,cAAc,EAAE,OAAO,MAAM,CAAC;AAE5C,MAAM,MAAM,SAAS,CAAC,OAAO,SAAS,MAAM,IAAI,MAAM,GAAG;IACvD,QAAQ,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAExD,YAAY,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;AAErC,MAAM,MAAM,iBAAiB,GACzB;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAA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a,kBA0I9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY;IAC1C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAAC,CAAC;CAC1D,yEAaA,CAAC;AACF,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC7B,YAAY,EAAE,OAAO,qBAAqB,EAAE,kBAAkB,EAAE,CAAC;CAClE,CAAC"}
|
||||
Vendored
+328
-691
File diff suppressed because it is too large
Load Diff
Vendored
+470
@@ -0,0 +1,470 @@
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import type { CaminoObject, Value } from "../camino/api_pb.js";
|
||||
import type { PackageDescriptor } from "./package_pb.js";
|
||||
import type { CapabilityRef, PackageExportRef } from "./refs_pb.js";
|
||||
import type { DerivedDependency } from "./runtime_pb.js";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
/**
|
||||
* Describes the file quixos/orch.proto.
|
||||
*/
|
||||
export declare const file_quixos_orch: GenFile;
|
||||
/**
|
||||
* @generated from message quixos.orch.ConstructObjectRequest
|
||||
*/
|
||||
export type ConstructObjectRequest = Message<"quixos.orch.ConstructObjectRequest"> & {
|
||||
/**
|
||||
* @generated from field: string atom_id = 1;
|
||||
*/
|
||||
atomId: string;
|
||||
/**
|
||||
* @generated from field: map<string, camino.Value> input = 2;
|
||||
*/
|
||||
input: {
|
||||
[key: string]: Value;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.ConstructObjectRequest.
|
||||
* Use `create(ConstructObjectRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ConstructObjectRequestSchema: GenMessage<ConstructObjectRequest>;
|
||||
/**
|
||||
* @generated from message quixos.orch.ConstructObjectResponse
|
||||
*/
|
||||
export type ConstructObjectResponse = Message<"quixos.orch.ConstructObjectResponse"> & {
|
||||
/**
|
||||
* @generated from field: camino.CaminoObject object = 1;
|
||||
*/
|
||||
object?: CaminoObject | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.ConstructObjectResponse.
|
||||
* Use `create(ConstructObjectResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ConstructObjectResponseSchema: GenMessage<ConstructObjectResponse>;
|
||||
/**
|
||||
* @generated from message quixos.orch.InvokeCapabilityRequest
|
||||
*/
|
||||
export type InvokeCapabilityRequest = Message<"quixos.orch.InvokeCapabilityRequest"> & {
|
||||
/**
|
||||
* @generated from field: quixos.CapabilityRef capability = 1;
|
||||
*/
|
||||
capability?: CapabilityRef | undefined;
|
||||
/**
|
||||
* @generated from field: string object_id = 2;
|
||||
*/
|
||||
objectId: string;
|
||||
/**
|
||||
* @generated from field: map<string, camino.Value> input = 3;
|
||||
*/
|
||||
input: {
|
||||
[key: string]: Value;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.InvokeCapabilityRequest.
|
||||
* Use `create(InvokeCapabilityRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const InvokeCapabilityRequestSchema: GenMessage<InvokeCapabilityRequest>;
|
||||
/**
|
||||
* @generated from message quixos.orch.InvokeCapabilityResponse
|
||||
*/
|
||||
export type InvokeCapabilityResponse = Message<"quixos.orch.InvokeCapabilityResponse"> & {
|
||||
/**
|
||||
* @generated from field: string invocation_id = 1;
|
||||
*/
|
||||
invocationId: string;
|
||||
/**
|
||||
* @generated from field: quixos.orch.Activation activation = 2;
|
||||
*/
|
||||
activation?: Activation | undefined;
|
||||
/**
|
||||
* @generated from field: bool ok = 3;
|
||||
*/
|
||||
ok: boolean;
|
||||
/**
|
||||
* @generated from field: camino.Value result = 4;
|
||||
*/
|
||||
result?: Value | undefined;
|
||||
/**
|
||||
* @generated from field: string error = 5;
|
||||
*/
|
||||
error: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.InvokeCapabilityResponse.
|
||||
* Use `create(InvokeCapabilityResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const InvokeCapabilityResponseSchema: GenMessage<InvokeCapabilityResponse>;
|
||||
/**
|
||||
* @generated from message quixos.orch.WatchCapabilityRequest
|
||||
*/
|
||||
export type WatchCapabilityRequest = Message<"quixos.orch.WatchCapabilityRequest"> & {
|
||||
/**
|
||||
* @generated from field: quixos.CapabilityRef capability = 1;
|
||||
*/
|
||||
capability?: CapabilityRef | undefined;
|
||||
/**
|
||||
* @generated from field: string object_id = 2;
|
||||
*/
|
||||
objectId: string;
|
||||
/**
|
||||
* @generated from field: map<string, camino.Value> input = 3;
|
||||
*/
|
||||
input: {
|
||||
[key: string]: Value;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.WatchCapabilityRequest.
|
||||
* Use `create(WatchCapabilityRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const WatchCapabilityRequestSchema: GenMessage<WatchCapabilityRequest>;
|
||||
/**
|
||||
* @generated from message quixos.orch.WatchCapabilityEvent
|
||||
*/
|
||||
export type WatchCapabilityEvent = Message<"quixos.orch.WatchCapabilityEvent"> & {
|
||||
/**
|
||||
* @generated from field: string invocation_id = 1;
|
||||
*/
|
||||
invocationId: string;
|
||||
/**
|
||||
* @generated from field: quixos.orch.Activation activation = 2;
|
||||
*/
|
||||
activation?: Activation | undefined;
|
||||
/**
|
||||
* @generated from field: string watch_id = 3;
|
||||
*/
|
||||
watchId: string;
|
||||
/**
|
||||
* @generated from field: camino.Value value = 4;
|
||||
*/
|
||||
value?: Value | undefined;
|
||||
/**
|
||||
* @generated from field: repeated quixos.runtime.DerivedDependency dependencies = 5;
|
||||
*/
|
||||
dependencies: DerivedDependency[];
|
||||
/**
|
||||
* @generated from field: string error = 6;
|
||||
*/
|
||||
error: string;
|
||||
/**
|
||||
* @generated from field: bool initial = 7;
|
||||
*/
|
||||
initial: boolean;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.WatchCapabilityEvent.
|
||||
* Use `create(WatchCapabilityEventSchema)` to create a new message.
|
||||
*/
|
||||
export declare const WatchCapabilityEventSchema: GenMessage<WatchCapabilityEvent>;
|
||||
/**
|
||||
* @generated from message quixos.orch.GetWorkspaceRequest
|
||||
*/
|
||||
export type GetWorkspaceRequest = Message<"quixos.orch.GetWorkspaceRequest"> & {};
|
||||
/**
|
||||
* Describes the message quixos.orch.GetWorkspaceRequest.
|
||||
* Use `create(GetWorkspaceRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const GetWorkspaceRequestSchema: GenMessage<GetWorkspaceRequest>;
|
||||
/**
|
||||
* @generated from message quixos.orch.GetWorkspaceResponse
|
||||
*/
|
||||
export type GetWorkspaceResponse = Message<"quixos.orch.GetWorkspaceResponse"> & {
|
||||
/**
|
||||
* @generated from field: string workspace_id = 1;
|
||||
*/
|
||||
workspaceId: string;
|
||||
/**
|
||||
* @generated from field: string workspace_revision_id = 2;
|
||||
*/
|
||||
workspaceRevisionId: string;
|
||||
/**
|
||||
* @generated from field: string source_root_commit = 3;
|
||||
*/
|
||||
sourceRootCommit: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.GetWorkspaceResponse.
|
||||
* Use `create(GetWorkspaceResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const GetWorkspaceResponseSchema: GenMessage<GetWorkspaceResponse>;
|
||||
/**
|
||||
* @generated from message quixos.orch.ListActivationsRequest
|
||||
*/
|
||||
export type ListActivationsRequest = Message<"quixos.orch.ListActivationsRequest"> & {};
|
||||
/**
|
||||
* Describes the message quixos.orch.ListActivationsRequest.
|
||||
* Use `create(ListActivationsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ListActivationsRequestSchema: GenMessage<ListActivationsRequest>;
|
||||
/**
|
||||
* @generated from message quixos.orch.ListPackageDescriptorsRequest
|
||||
*/
|
||||
export type ListPackageDescriptorsRequest = Message<"quixos.orch.ListPackageDescriptorsRequest"> & {};
|
||||
/**
|
||||
* Describes the message quixos.orch.ListPackageDescriptorsRequest.
|
||||
* Use `create(ListPackageDescriptorsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ListPackageDescriptorsRequestSchema: GenMessage<ListPackageDescriptorsRequest>;
|
||||
/**
|
||||
* @generated from message quixos.orch.ListPackageDescriptorsResponse
|
||||
*/
|
||||
export type ListPackageDescriptorsResponse = Message<"quixos.orch.ListPackageDescriptorsResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated quixos.PackageDescriptor descriptors = 1;
|
||||
*/
|
||||
descriptors: PackageDescriptor[];
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.ListPackageDescriptorsResponse.
|
||||
* Use `create(ListPackageDescriptorsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ListPackageDescriptorsResponseSchema: GenMessage<ListPackageDescriptorsResponse>;
|
||||
/**
|
||||
* @generated from message quixos.orch.ListPackageRuntimesRequest
|
||||
*/
|
||||
export type ListPackageRuntimesRequest = Message<"quixos.orch.ListPackageRuntimesRequest"> & {};
|
||||
/**
|
||||
* Describes the message quixos.orch.ListPackageRuntimesRequest.
|
||||
* Use `create(ListPackageRuntimesRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ListPackageRuntimesRequestSchema: GenMessage<ListPackageRuntimesRequest>;
|
||||
/**
|
||||
* @generated from message quixos.orch.ListPackageRuntimesResponse
|
||||
*/
|
||||
export type ListPackageRuntimesResponse = Message<"quixos.orch.ListPackageRuntimesResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated quixos.orch.PackageRuntimeStatus runtimes = 1;
|
||||
*/
|
||||
runtimes: PackageRuntimeStatus[];
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.ListPackageRuntimesResponse.
|
||||
* Use `create(ListPackageRuntimesResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ListPackageRuntimesResponseSchema: GenMessage<ListPackageRuntimesResponse>;
|
||||
/**
|
||||
* @generated from message quixos.orch.ListActivationsResponse
|
||||
*/
|
||||
export type ListActivationsResponse = Message<"quixos.orch.ListActivationsResponse"> & {
|
||||
/**
|
||||
* @generated from field: repeated quixos.orch.Activation activations = 1;
|
||||
*/
|
||||
activations: Activation[];
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.ListActivationsResponse.
|
||||
* Use `create(ListActivationsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ListActivationsResponseSchema: GenMessage<ListActivationsResponse>;
|
||||
/**
|
||||
* @generated from message quixos.orch.CloseActivationRequest
|
||||
*/
|
||||
export type CloseActivationRequest = Message<"quixos.orch.CloseActivationRequest"> & {
|
||||
/**
|
||||
* @generated from field: string activation_id = 1;
|
||||
*/
|
||||
activationId: string;
|
||||
/**
|
||||
* @generated from field: string reason = 2;
|
||||
*/
|
||||
reason: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.CloseActivationRequest.
|
||||
* Use `create(CloseActivationRequestSchema)` to create a new message.
|
||||
*/
|
||||
export declare const CloseActivationRequestSchema: GenMessage<CloseActivationRequest>;
|
||||
/**
|
||||
* @generated from message quixos.orch.CloseActivationResponse
|
||||
*/
|
||||
export type CloseActivationResponse = Message<"quixos.orch.CloseActivationResponse"> & {
|
||||
/**
|
||||
* @generated from field: quixos.orch.Activation activation = 1;
|
||||
*/
|
||||
activation?: Activation | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.CloseActivationResponse.
|
||||
* Use `create(CloseActivationResponseSchema)` to create a new message.
|
||||
*/
|
||||
export declare const CloseActivationResponseSchema: GenMessage<CloseActivationResponse>;
|
||||
/**
|
||||
* @generated from message quixos.orch.Activation
|
||||
*/
|
||||
export type Activation = Message<"quixos.orch.Activation"> & {
|
||||
/**
|
||||
* @generated from field: string activation_id = 1;
|
||||
*/
|
||||
activationId: string;
|
||||
/**
|
||||
* @generated from field: quixos.PackageExportRef export = 2;
|
||||
*/
|
||||
export?: PackageExportRef | undefined;
|
||||
/**
|
||||
* @generated from field: string object_id = 3;
|
||||
*/
|
||||
objectId: string;
|
||||
/**
|
||||
* @generated from field: string state = 4;
|
||||
*/
|
||||
state: string;
|
||||
/**
|
||||
* @generated from field: uint32 demand = 5;
|
||||
*/
|
||||
demand: number;
|
||||
/**
|
||||
* @generated from field: string opened_at = 6;
|
||||
*/
|
||||
openedAt: string;
|
||||
/**
|
||||
* @generated from field: string last_used_at = 7;
|
||||
*/
|
||||
lastUsedAt: string;
|
||||
/**
|
||||
* @generated from field: string idle_deadline_at = 8;
|
||||
*/
|
||||
idleDeadlineAt: string;
|
||||
/**
|
||||
* @generated from field: string closed_at = 9;
|
||||
*/
|
||||
closedAt: string;
|
||||
/**
|
||||
* @generated from field: string close_reason = 10;
|
||||
*/
|
||||
closeReason: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.Activation.
|
||||
* Use `create(ActivationSchema)` to create a new message.
|
||||
*/
|
||||
export declare const ActivationSchema: GenMessage<Activation>;
|
||||
/**
|
||||
* @generated from message quixos.orch.PackageRuntimeStatus
|
||||
*/
|
||||
export type PackageRuntimeStatus = Message<"quixos.orch.PackageRuntimeStatus"> & {
|
||||
/**
|
||||
* @generated from field: string runtime_key = 1;
|
||||
*/
|
||||
runtimeKey: string;
|
||||
/**
|
||||
* @generated from field: string package_revision_id = 2;
|
||||
*/
|
||||
packageRevisionId: string;
|
||||
/**
|
||||
* @generated from field: string source_repository = 3;
|
||||
*/
|
||||
sourceRepository: string;
|
||||
/**
|
||||
* @generated from field: string source_commit = 4;
|
||||
*/
|
||||
sourceCommit: string;
|
||||
/**
|
||||
* @generated from field: string build_target = 5;
|
||||
*/
|
||||
buildTarget: string;
|
||||
/**
|
||||
* @generated from field: string server_path = 6;
|
||||
*/
|
||||
serverPath: string;
|
||||
/**
|
||||
* @generated from field: uint32 pid = 7;
|
||||
*/
|
||||
pid: number;
|
||||
/**
|
||||
* @generated from field: string state = 8;
|
||||
*/
|
||||
state: string;
|
||||
/**
|
||||
* @generated from field: string started_at = 9;
|
||||
*/
|
||||
startedAt: string;
|
||||
/**
|
||||
* @generated from field: string last_handshake_at = 10;
|
||||
*/
|
||||
lastHandshakeAt: string;
|
||||
/**
|
||||
* @generated from field: string runtime_protocol_version = 11;
|
||||
*/
|
||||
runtimeProtocolVersion: string;
|
||||
/**
|
||||
* @generated from field: uint32 advertised_export_count = 12;
|
||||
*/
|
||||
advertisedExportCount: number;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.orch.PackageRuntimeStatus.
|
||||
* Use `create(PackageRuntimeStatusSchema)` to create a new message.
|
||||
*/
|
||||
export declare const PackageRuntimeStatusSchema: GenMessage<PackageRuntimeStatus>;
|
||||
/**
|
||||
* @generated from service quixos.orch.OrchestratorRuntime
|
||||
*/
|
||||
export declare const OrchestratorRuntime: GenService<{
|
||||
/**
|
||||
* @generated from rpc quixos.orch.OrchestratorRuntime.InvokeCapability
|
||||
*/
|
||||
invokeCapability: {
|
||||
methodKind: "unary";
|
||||
input: typeof InvokeCapabilityRequestSchema;
|
||||
output: typeof InvokeCapabilityResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc quixos.orch.OrchestratorRuntime.WatchCapability
|
||||
*/
|
||||
watchCapability: {
|
||||
methodKind: "server_streaming";
|
||||
input: typeof WatchCapabilityRequestSchema;
|
||||
output: typeof WatchCapabilityEventSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc quixos.orch.OrchestratorRuntime.ConstructObject
|
||||
*/
|
||||
constructObject: {
|
||||
methodKind: "unary";
|
||||
input: typeof ConstructObjectRequestSchema;
|
||||
output: typeof ConstructObjectResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc quixos.orch.OrchestratorRuntime.GetWorkspace
|
||||
*/
|
||||
getWorkspace: {
|
||||
methodKind: "unary";
|
||||
input: typeof GetWorkspaceRequestSchema;
|
||||
output: typeof GetWorkspaceResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc quixos.orch.OrchestratorRuntime.ListPackageDescriptors
|
||||
*/
|
||||
listPackageDescriptors: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListPackageDescriptorsRequestSchema;
|
||||
output: typeof ListPackageDescriptorsResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc quixos.orch.OrchestratorRuntime.ListPackageRuntimes
|
||||
*/
|
||||
listPackageRuntimes: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListPackageRuntimesRequestSchema;
|
||||
output: typeof ListPackageRuntimesResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc quixos.orch.OrchestratorRuntime.ListActivations
|
||||
*/
|
||||
listActivations: {
|
||||
methodKind: "unary";
|
||||
input: typeof ListActivationsRequestSchema;
|
||||
output: typeof ListActivationsResponseSchema;
|
||||
};
|
||||
/**
|
||||
* @generated from rpc quixos.orch.OrchestratorRuntime.CloseActivation
|
||||
*/
|
||||
closeActivation: {
|
||||
methodKind: "unary";
|
||||
input: typeof CloseActivationRequestSchema;
|
||||
output: typeof CloseActivationResponseSchema;
|
||||
};
|
||||
}>;
|
||||
//# sourceMappingURL=orch_pb.d.ts.map
|
||||
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
+106
@@ -0,0 +1,106 @@
|
||||
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=js"
|
||||
// @generated from file quixos/orch.proto (package quixos.orch, syntax proto3)
|
||||
/* eslint-disable */
|
||||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
import { file_camino_api } from "../camino/api_pb.js";
|
||||
import { file_quixos_package } from "./package_pb.js";
|
||||
import { file_quixos_refs } from "./refs_pb.js";
|
||||
import { file_quixos_runtime } from "./runtime_pb.js";
|
||||
/**
|
||||
* Describes the file quixos/orch.proto.
|
||||
*/
|
||||
export const file_quixos_orch = /*@__PURE__*/ fileDesc("ChFxdWl4b3Mvb3JjaC5wcm90bxILcXVpeG9zLm9yY2gipQE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dHlFdmVudDABElwKD0NvbnN0cnVjdE9iamVjdBIjLnF1aXhvcy5vcmNoLkNvbnN0cnVjdE9iamVjdFJlcXVlc3QaJC5xdWl4b3Mub3JjaC5Db25zdHJ1Y3RPYmplY3RSZXNwb25zZRJTCgxHZXRXb3Jrc3BhY2USIC5xdWl4b3Mub3JjaC5HZXRXb3Jrc3BhY2VSZXF1ZXN0GiEucXVpeG9zLm9yY2guR2V0V29ya3NwYWNlUmVzcG9uc2UScQoWTGlzdFBhY2thZ2VEZXNjcmlwdG9ycxIqLnF1aXhvcy5vcmNoLkxpc3RQYWNrYWdlRGVzY3JpcHRvcnNSZXF1ZXN0GisucXVpeG9zLm9yY2guTGlzdFBhY2thZ2VEZXNjcmlwdG9yc1Jlc3BvbnNlEmgKE0xpc3RQYWNrYWdlUnVudGltZXMSJy5xdWl4b3Mub3JjaC5MaXN0UGFja2FnZVJ1bnRpbWVzUmVxdWVzdBooLnF1aXhvcy5vcmNoLkxpc3RQYWNrYWdlUnVudGltZXNSZXNwb25zZRJcCg9MaXN0QWN0aXZhdGlvbnMSIy5xdWl4b3Mub3JjaC5MaXN0QWN0aXZhdGlvbnNSZXF1ZXN0GiQucXVpeG9zLm9yY2guTGlzdEFjdGl2YXRpb25zUmVzcG9uc2USXAoPQ2xvc2VBY3RpdmF0aW9uEiMucXVpeG9zLm9yY2guQ2xvc2VBY3RpdmF0aW9uUmVxdWVzdBokLnF1aXhvcy5vcmNoLkNsb3NlQWN0aXZhdGlvblJlc3BvbnNlYgZwcm90bzM", [file_camino_api, file_quixos_package, file_quixos_refs, file_quixos_runtime]);
|
||||
/**
|
||||
* Describes the message quixos.orch.ConstructObjectRequest.
|
||||
* Use `create(ConstructObjectRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ConstructObjectRequestSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 0);
|
||||
/**
|
||||
* Describes the message quixos.orch.ConstructObjectResponse.
|
||||
* Use `create(ConstructObjectResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ConstructObjectResponseSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 1);
|
||||
/**
|
||||
* Describes the message quixos.orch.InvokeCapabilityRequest.
|
||||
* Use `create(InvokeCapabilityRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const InvokeCapabilityRequestSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 2);
|
||||
/**
|
||||
* Describes the message quixos.orch.InvokeCapabilityResponse.
|
||||
* Use `create(InvokeCapabilityResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const InvokeCapabilityResponseSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 3);
|
||||
/**
|
||||
* Describes the message quixos.orch.WatchCapabilityRequest.
|
||||
* Use `create(WatchCapabilityRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const WatchCapabilityRequestSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 4);
|
||||
/**
|
||||
* Describes the message quixos.orch.WatchCapabilityEvent.
|
||||
* Use `create(WatchCapabilityEventSchema)` to create a new message.
|
||||
*/
|
||||
export const WatchCapabilityEventSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 5);
|
||||
/**
|
||||
* Describes the message quixos.orch.GetWorkspaceRequest.
|
||||
* Use `create(GetWorkspaceRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const GetWorkspaceRequestSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 6);
|
||||
/**
|
||||
* Describes the message quixos.orch.GetWorkspaceResponse.
|
||||
* Use `create(GetWorkspaceResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const GetWorkspaceResponseSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 7);
|
||||
/**
|
||||
* Describes the message quixos.orch.ListActivationsRequest.
|
||||
* Use `create(ListActivationsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListActivationsRequestSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 8);
|
||||
/**
|
||||
* Describes the message quixos.orch.ListPackageDescriptorsRequest.
|
||||
* Use `create(ListPackageDescriptorsRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListPackageDescriptorsRequestSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 9);
|
||||
/**
|
||||
* Describes the message quixos.orch.ListPackageDescriptorsResponse.
|
||||
* Use `create(ListPackageDescriptorsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListPackageDescriptorsResponseSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 10);
|
||||
/**
|
||||
* Describes the message quixos.orch.ListPackageRuntimesRequest.
|
||||
* Use `create(ListPackageRuntimesRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const ListPackageRuntimesRequestSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 11);
|
||||
/**
|
||||
* Describes the message quixos.orch.ListPackageRuntimesResponse.
|
||||
* Use `create(ListPackageRuntimesResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListPackageRuntimesResponseSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 12);
|
||||
/**
|
||||
* Describes the message quixos.orch.ListActivationsResponse.
|
||||
* Use `create(ListActivationsResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const ListActivationsResponseSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 13);
|
||||
/**
|
||||
* Describes the message quixos.orch.CloseActivationRequest.
|
||||
* Use `create(CloseActivationRequestSchema)` to create a new message.
|
||||
*/
|
||||
export const CloseActivationRequestSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 14);
|
||||
/**
|
||||
* Describes the message quixos.orch.CloseActivationResponse.
|
||||
* Use `create(CloseActivationResponseSchema)` to create a new message.
|
||||
*/
|
||||
export const CloseActivationResponseSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 15);
|
||||
/**
|
||||
* Describes the message quixos.orch.Activation.
|
||||
* Use `create(ActivationSchema)` to create a new message.
|
||||
*/
|
||||
export const ActivationSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 16);
|
||||
/**
|
||||
* Describes the message quixos.orch.PackageRuntimeStatus.
|
||||
* Use `create(PackageRuntimeStatusSchema)` to create a new message.
|
||||
*/
|
||||
export const PackageRuntimeStatusSchema = /*@__PURE__*/ messageDesc(file_quixos_orch, 17);
|
||||
/**
|
||||
* @generated from service quixos.orch.OrchestratorRuntime
|
||||
*/
|
||||
export const OrchestratorRuntime = /*@__PURE__*/ serviceDesc(file_quixos_orch, 0);
|
||||
Vendored
+51
@@ -0,0 +1,51 @@
|
||||
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
/**
|
||||
* Describes the file quixos/package.proto.
|
||||
*/
|
||||
export declare const file_quixos_package: GenFile;
|
||||
/**
|
||||
* @generated from message quixos.PackageDescriptor
|
||||
*/
|
||||
export type PackageDescriptor = Message<"quixos.PackageDescriptor"> & {
|
||||
/**
|
||||
* @generated from field: string package_id = 1;
|
||||
*/
|
||||
packageId: string;
|
||||
/**
|
||||
* @generated from field: string package_revision_id = 2;
|
||||
*/
|
||||
packageRevisionId: string;
|
||||
/**
|
||||
* @generated from field: string runtime_protocol_version = 3;
|
||||
*/
|
||||
runtimeProtocolVersion: string;
|
||||
/**
|
||||
* @generated from field: repeated quixos.RuntimeExport exports = 4;
|
||||
*/
|
||||
exports: RuntimeExport[];
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.PackageDescriptor.
|
||||
* Use `create(PackageDescriptorSchema)` to create a new message.
|
||||
*/
|
||||
export declare const PackageDescriptorSchema: GenMessage<PackageDescriptor>;
|
||||
/**
|
||||
* @generated from message quixos.RuntimeExport
|
||||
*/
|
||||
export type RuntimeExport = Message<"quixos.RuntimeExport"> & {
|
||||
/**
|
||||
* @generated from field: string export_id = 1;
|
||||
*/
|
||||
exportId: string;
|
||||
/**
|
||||
* @generated from field: string runtime_symbol = 2;
|
||||
*/
|
||||
runtimeSymbol: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.RuntimeExport.
|
||||
* Use `create(RuntimeExportSchema)` to create a new message.
|
||||
*/
|
||||
export declare const RuntimeExportSchema: GenMessage<RuntimeExport>;
|
||||
//# sourceMappingURL=package_pb.d.ts.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"package_pb.d.ts","sourceRoot":"","sources":["../../src/quixos/package_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,OACgT,CAAC;AAEnV;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,0BAA0B,CAAC,GAAG;IACpE;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,iBAAiB,CAC7B,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,sBAAsB,CAAC,GAAG;IAC5D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,CACrB,CAAC"}
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=js"
|
||||
// @generated from file quixos/package.proto (package quixos, syntax proto3)
|
||||
/* eslint-disable */
|
||||
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
/**
|
||||
* Describes the file quixos/package.proto.
|
||||
*/
|
||||
export const file_quixos_package = /*@__PURE__*/ fileDesc("ChRxdWl4b3MvcGFja2FnZS5wcm90bxIGcXVpeG9zIo4BChFQYWNrYWdlRGVzY3JpcHRvchISCgpwYWNrYWdlX2lkGAEgASgJEhsKE3BhY2thZ2VfcmV2aXNpb25faWQYAiABKAkSIAoYcnVudGltZV9wcm90b2NvbF92ZXJzaW9uGAMgASgJEiYKB2V4cG9ydHMYBCADKAsyFS5xdWl4b3MuUnVudGltZUV4cG9ydCI6Cg1SdW50aW1lRXhwb3J0EhEKCWV4cG9ydF9pZBgBIAEoCRIWCg5ydW50aW1lX3N5bWJvbBgCIAEoCWIGcHJvdG8z");
|
||||
/**
|
||||
* Describes the message quixos.PackageDescriptor.
|
||||
* Use `create(PackageDescriptorSchema)` to create a new message.
|
||||
*/
|
||||
export const PackageDescriptorSchema = /*@__PURE__*/ messageDesc(file_quixos_package, 0);
|
||||
/**
|
||||
* Describes the message quixos.RuntimeExport.
|
||||
* Use `create(RuntimeExportSchema)` to create a new message.
|
||||
*/
|
||||
export const RuntimeExportSchema = /*@__PURE__*/ messageDesc(file_quixos_package, 1);
|
||||
Vendored
+90
-21
@@ -5,33 +5,102 @@ import type { Message } from "@bufbuild/protobuf";
|
||||
*/
|
||||
export declare const file_quixos_refs: GenFile;
|
||||
/**
|
||||
* @generated from message quixos.FunctionRef
|
||||
* @generated from message quixos.CapabilityRef
|
||||
*/
|
||||
export type FunctionRef = Message<"quixos.FunctionRef"> & {
|
||||
export type CapabilityRef = Message<"quixos.CapabilityRef"> & {
|
||||
/**
|
||||
* @generated from field: string package_namespace = 1;
|
||||
* @generated from field: string interface_revision_id = 1;
|
||||
*/
|
||||
packageNamespace: string;
|
||||
interfaceRevisionId: string;
|
||||
/**
|
||||
* @generated from field: string package_name = 2;
|
||||
* @generated from field: string operation_id = 2;
|
||||
*/
|
||||
packageName: string;
|
||||
/**
|
||||
* @generated from field: string symbol = 3;
|
||||
*/
|
||||
symbol: string;
|
||||
/**
|
||||
* @generated from field: string version_ref = 4;
|
||||
*/
|
||||
versionRef: string;
|
||||
/**
|
||||
* @generated from field: string operation = 5;
|
||||
*/
|
||||
operation: string;
|
||||
operationId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.FunctionRef.
|
||||
* Use `create(FunctionRefSchema)` to create a new message.
|
||||
* Describes the message quixos.CapabilityRef.
|
||||
* Use `create(CapabilityRefSchema)` to create a new message.
|
||||
*/
|
||||
export declare const FunctionRefSchema: GenMessage<FunctionRef>;
|
||||
export declare const CapabilityRefSchema: GenMessage<CapabilityRef>;
|
||||
/**
|
||||
* @generated from message quixos.PackageExportRef
|
||||
*/
|
||||
export type PackageExportRef = Message<"quixos.PackageExportRef"> & {
|
||||
/**
|
||||
* @generated from field: string package_revision_id = 1;
|
||||
*/
|
||||
packageRevisionId: string;
|
||||
/**
|
||||
* @generated from field: string export_id = 2;
|
||||
*/
|
||||
exportId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.PackageExportRef.
|
||||
* Use `create(PackageExportRefSchema)` to create a new message.
|
||||
*/
|
||||
export declare const PackageExportRefSchema: GenMessage<PackageExportRef>;
|
||||
/**
|
||||
* @generated from message quixos.InjectedDependency
|
||||
*/
|
||||
export type InjectedDependency = Message<"quixos.InjectedDependency"> & {
|
||||
/**
|
||||
* @generated from field: string port_id = 1;
|
||||
*/
|
||||
portId: string;
|
||||
/**
|
||||
* @generated from oneof quixos.InjectedDependency.binding
|
||||
*/
|
||||
binding: {
|
||||
/**
|
||||
* @generated from field: string state_slot_id = 2;
|
||||
*/
|
||||
value: string;
|
||||
case: "stateSlotId";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: quixos.EdgeDependency edge = 3;
|
||||
*/
|
||||
value: EdgeDependency;
|
||||
case: "edge";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: string receiver_interface_revision_id = 4;
|
||||
*/
|
||||
value: string;
|
||||
case: "receiverInterfaceRevisionId";
|
||||
} | {
|
||||
/**
|
||||
* @generated from field: string constructor_atom_id = 5;
|
||||
*/
|
||||
value: string;
|
||||
case: "constructorAtomId";
|
||||
} | {
|
||||
case: undefined;
|
||||
value?: undefined;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.InjectedDependency.
|
||||
* Use `create(InjectedDependencySchema)` to create a new message.
|
||||
*/
|
||||
export declare const InjectedDependencySchema: GenMessage<InjectedDependency>;
|
||||
/**
|
||||
* @generated from message quixos.EdgeDependency
|
||||
*/
|
||||
export type EdgeDependency = Message<"quixos.EdgeDependency"> & {
|
||||
/**
|
||||
* @generated from field: string edge_type_id = 1;
|
||||
*/
|
||||
edgeTypeId: string;
|
||||
/**
|
||||
* @generated from field: string projection_id = 2;
|
||||
*/
|
||||
projectionId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.EdgeDependency.
|
||||
* Use `create(EdgeDependencySchema)` to create a new message.
|
||||
*/
|
||||
export declare const EdgeDependencySchema: GenMessage<EdgeDependency>;
|
||||
//# sourceMappingURL=refs_pb.d.ts.map
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"refs_pb.d.ts","sourceRoot":"","sources":["../../src/quixos/refs_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAC8L,CAAC;AAE9N;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,GAAG;IACxD;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH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AE,MAAM,CAAC;QACd,IAAI,EAAE,6BAA6B,CAAC;KACrC,GAAG;QACF;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,mBAAmB,CAAC;KAC3B,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,kBAAkB,CAClC,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,uBAAuB,CAAC,GAAG;IAC9D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,cAAc,CAC1B,CAAC"}
|
||||
Vendored
+19
-4
@@ -5,9 +5,24 @@ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
||||
/**
|
||||
* Describes the file quixos/refs.proto.
|
||||
*/
|
||||
export const file_quixos_refs = /*@__PURE__*/ fileDesc("ChFxdWl4b3MvcmVmcy5wcm90bxIGcXVpeG9zInYKC0Z1bmN0aW9uUmVmEhkKEXBhY2thZ2VfbmFtZXNwYWNlGAEgASgJEhQKDHBhY2thZ2VfbmFtZRgCIAEoCRIOCgZzeW1ib2wYAyABKAkSEwoLdmVyc2lvbl9yZWYYBCABKAkSEQoJb3BlcmF0aW9uGAUgASgJYgZwcm90bzM");
|
||||
export const file_quixos_refs = /*@__PURE__*/ fileDesc("ChFxdWl4b3MvcmVmcy5wcm90bxIGcXVpeG9zIkQKDUNhcGFiaWxpdHlSZWYSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAEgASgJEhQKDG9wZXJhdGlvbl9pZBgCIAEoCSJCChBQYWNrYWdlRXhwb3J0UmVmEhsKE3BhY2thZ2VfcmV2aXNpb25faWQYASABKAkSEQoJZXhwb3J0X2lkGAIgASgJIroBChJJbmplY3RlZERlcGVuZGVuY3kSDwoHcG9ydF9pZBgBIAEoCRIXCg1zdGF0ZV9zbG90X2lkGAIgASgJSAASJgoEZWRnZRgDIAEoCzIWLnF1aXhvcy5FZGdlRGVwZW5kZW5jeUgAEigKHnJlY2VpdmVyX2ludGVyZmFjZV9yZXZpc2lvbl9pZBgEIAEoCUgAEh0KE2NvbnN0cnVjdG9yX2F0b21faWQYBSABKAlIAEIJCgdiaW5kaW5nIj0KDkVkZ2VEZXBlbmRlbmN5EhQKDGVkZ2VfdHlwZV9pZBgBIAEoCRIVCg1wcm9qZWN0aW9uX2lkGAIgASgJYgZwcm90bzM");
|
||||
/**
|
||||
* Describes the message quixos.FunctionRef.
|
||||
* Use `create(FunctionRefSchema)` to create a new message.
|
||||
* Describes the message quixos.CapabilityRef.
|
||||
* Use `create(CapabilityRefSchema)` to create a new message.
|
||||
*/
|
||||
export const FunctionRefSchema = /*@__PURE__*/ messageDesc(file_quixos_refs, 0);
|
||||
export const CapabilityRefSchema = /*@__PURE__*/ messageDesc(file_quixos_refs, 0);
|
||||
/**
|
||||
* Describes the message quixos.PackageExportRef.
|
||||
* Use `create(PackageExportRefSchema)` to create a new message.
|
||||
*/
|
||||
export const PackageExportRefSchema = /*@__PURE__*/ messageDesc(file_quixos_refs, 1);
|
||||
/**
|
||||
* Describes the message quixos.InjectedDependency.
|
||||
* Use `create(InjectedDependencySchema)` to create a new message.
|
||||
*/
|
||||
export const InjectedDependencySchema = /*@__PURE__*/ messageDesc(file_quixos_refs, 2);
|
||||
/**
|
||||
* Describes the message quixos.EdgeDependency.
|
||||
* Use `create(EdgeDependencySchema)` to create a new message.
|
||||
*/
|
||||
export const EdgeDependencySchema = /*@__PURE__*/ messageDesc(file_quixos_refs, 3);
|
||||
|
||||
Vendored
+22
-18
@@ -1,6 +1,6 @@
|
||||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
||||
import type { Value } from "../camino/api_pb.js";
|
||||
import type { FunctionRef } from "./refs_pb.js";
|
||||
import type { InjectedDependency, PackageExportRef } from "./refs_pb.js";
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
/**
|
||||
* Describes the file quixos/runtime.proto.
|
||||
@@ -25,21 +25,17 @@ export declare const HandshakeRequestSchema: GenMessage<HandshakeRequest>;
|
||||
*/
|
||||
export type HandshakeResponse = Message<"quixos.runtime.HandshakeResponse"> & {
|
||||
/**
|
||||
* @generated from field: string package_namespace = 1;
|
||||
* @generated from field: string package_revision_id = 1;
|
||||
*/
|
||||
packageNamespace: string;
|
||||
packageRevisionId: string;
|
||||
/**
|
||||
* @generated from field: string package_name = 2;
|
||||
*/
|
||||
packageName: string;
|
||||
/**
|
||||
* @generated from field: string runtime_protocol_version = 3;
|
||||
* @generated from field: string runtime_protocol_version = 2;
|
||||
*/
|
||||
runtimeProtocolVersion: string;
|
||||
/**
|
||||
* @generated from field: repeated quixos.FunctionRef functions = 4;
|
||||
* @generated from field: repeated string export_ids = 3;
|
||||
*/
|
||||
functions: FunctionRef[];
|
||||
exportIds: string[];
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.runtime.HandshakeResponse.
|
||||
@@ -55,9 +51,9 @@ export type InvokeRequest = Message<"quixos.runtime.InvokeRequest"> & {
|
||||
*/
|
||||
invocationId: string;
|
||||
/**
|
||||
* @generated from field: quixos.FunctionRef function = 2;
|
||||
* @generated from field: quixos.PackageExportRef export = 2;
|
||||
*/
|
||||
function?: FunctionRef | undefined;
|
||||
export?: PackageExportRef | undefined;
|
||||
/**
|
||||
* @generated from field: string object_id = 3;
|
||||
*/
|
||||
@@ -68,6 +64,10 @@ export type InvokeRequest = Message<"quixos.runtime.InvokeRequest"> & {
|
||||
input: {
|
||||
[key: string]: Value;
|
||||
};
|
||||
/**
|
||||
* @generated from field: repeated quixos.InjectedDependency dependencies = 5;
|
||||
*/
|
||||
dependencies: InjectedDependency[];
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.runtime.InvokeRequest.
|
||||
@@ -105,9 +105,9 @@ export type WatchRequest = Message<"quixos.runtime.WatchRequest"> & {
|
||||
*/
|
||||
invocationId: string;
|
||||
/**
|
||||
* @generated from field: quixos.FunctionRef function = 2;
|
||||
* @generated from field: quixos.PackageExportRef export = 2;
|
||||
*/
|
||||
function?: FunctionRef | undefined;
|
||||
export?: PackageExportRef | undefined;
|
||||
/**
|
||||
* @generated from field: string object_id = 3;
|
||||
*/
|
||||
@@ -118,6 +118,10 @@ export type WatchRequest = Message<"quixos.runtime.WatchRequest"> & {
|
||||
input: {
|
||||
[key: string]: Value;
|
||||
};
|
||||
/**
|
||||
* @generated from field: repeated quixos.InjectedDependency dependencies = 5;
|
||||
*/
|
||||
dependencies: InjectedDependency[];
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.runtime.WatchRequest.
|
||||
@@ -137,13 +141,13 @@ export type DerivedDependency = Message<"quixos.runtime.DerivedDependency"> & {
|
||||
*/
|
||||
objectId: string;
|
||||
/**
|
||||
* @generated from field: string field_name = 3;
|
||||
* @generated from field: string attachment_id = 3;
|
||||
*/
|
||||
fieldName: string;
|
||||
attachmentId: string;
|
||||
/**
|
||||
* @generated from field: string source_field = 4;
|
||||
* @generated from field: string projection_id = 4;
|
||||
*/
|
||||
sourceField: string;
|
||||
projectionId: string;
|
||||
};
|
||||
/**
|
||||
* Describes the message quixos.runtime.DerivedDependency.
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"runtime_pb.d.ts","sourceRoot":"","sources":["../../src/quixos/runtime_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,E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OAEG;IACH,MAAM,EAAE;QACN,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,mBAAmB,CAAC;QAClC,MAAM,EAAE,OAAO,oBAAoB,CAAC;KACrC,CAAC;IACF;;OAEG;IACH,KAAK,EAAE;QACL,UAAU,EAAE,kBAAkB,CAAC;QAC/B,KAAK,EAAE,OAAO,kBAAkB,CAAC;QACjC,MAAM,EAAE,OAAO,gBAAgB,CAAC;KACjC,CAAC;CACH,CACoC,CAAC"}
|
||||
Vendored
+1
-1
@@ -7,7 +7,7 @@ import { file_quixos_refs } from "./refs_pb.js";
|
||||
/**
|
||||
* Describes the file quixos/runtime.proto.
|
||||
*/
|
||||
export const file_quixos_runtime = /*@__PURE__*/ fileDesc("ChRxdWl4b3MvcnVudGltZS5wcm90bxIOcXVpeG9zLnJ1bnRpbWUiMQoQSGFuZHNoYWtlUmVxdWVzdBIdChVvcmNoX3Byb3RvY29sX3ZlcnNpb24YASABKAkijgEKEUhhbmRzaGFrZVJlc3BvbnNlEhkKEXBhY2thZ2VfbmFtZXNwYWNlGAEgASgJEhQKDHBhY2thZ2VfbmFtZRgCIAEoCRIgChhydW50aW1lX3Byb3RvY29sX3ZlcnNpb24YAyABKAkSJgoJZnVuY3Rpb25zGAQgAygLMhMucXVpeG9zLkZ1bmN0aW9uUmVmItYBCg1JbnZva2VSZXF1ZXN0EhUKDWludm9jYXRpb25faWQYASABKAkSJQoIZnVuY3Rpb24YAiABKAsyEy5xdWl4b3MuRnVuY3Rpb25SZWYSEQoJb2JqZWN0X2lkGAMgASgJEjcKBWlucHV0GAQgAygLMigucXVpeG9zLnJ1bnRpbWUuSW52b2tlUmVxdWVzdC5JbnB1dEVudHJ5GjsKCklucHV0RW50cnkSCwoDa2V5GAEgASgJEhwKBXZhbHVlGAIgASgLMg0uY2FtaW5vLlZhbHVlOgI4ASJKCg5JbnZva2VSZXNwb25zZRIKCgJvaxgBIAEoCBIdCgZyZXN1bHQYAiABKAsyDS5jYW1pb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bmN5EgwKBGtpbmQYASABKAkSEQoJb2JqZWN0X2lkGAIgASgJEhUKDWF0dGFjaG1lbnRfaWQYAyABKAkSFQoNcHJvamVjdGlvbl9pZBgEIAEoCSKVAQoKV2F0Y2hFdmVudBIQCgh3YXRjaF9pZBgBIAEoCRIcCgV2YWx1ZRgCIAEoCzINLmNhbWluby5WYWx1ZRI3CgxkZXBlbmRlbmNpZXMYAyADKAsyIS5xdWl4b3MucnVudGltZS5EZXJpdmVkRGVwZW5kZW5jeRINCgVlcnJvchgEIAEoCRIPCgdpbml0aWFsGAUgASgIMvABCg5QYWNrYWdlUnVudGltZRJQCglIYW5kc2hha2USIC5xdWl4b3MucnVudGltZS5IYW5kc2hha2VSZXF1ZXN0GiEucXVpeG9zLnJ1bnRpbWUuSGFuZHNoYWtlUmVzcG9uc2USRwoGSW52b2tlEh0ucXVpeG9zLnJ1bnRpbWUuSW52b2tlUmVxdWVzdBoeLnF1aXhvcy5ydW50aW1lLkludm9rZVJlc3BvbnNlEkMKBVdhdGNoEhwucXVpeG9zLnJ1bnRpbWUuV2F0Y2hSZXF1ZXN0GhoucXVpeG9zLnJ1bnRpbWUuV2F0Y2hFdmVudDABYgZwcm90bzM", [file_camino_api, file_quixos_refs]);
|
||||
/**
|
||||
* Describes the message quixos.runtime.HandshakeRequest.
|
||||
* Use `create(HandshakeRequestSchema)` to create a new message.
|
||||
|
||||
Vendored
-8
@@ -1,8 +0,0 @@
|
||||
import protobuf from "protobufjs";
|
||||
import type { SchemaCompileResult } from "./schema-ir.js";
|
||||
export declare const loadCaminoSchemaRoot: (sourceFile: string) => Promise<{
|
||||
absoluteSourceFile: string;
|
||||
root: protobuf.Root;
|
||||
}>;
|
||||
export declare const compileCaminoSchema: (sourceFile: string) => Promise<SchemaCompileResult>;
|
||||
//# sourceMappingURL=schema-compiler.d.ts.map
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"schema-compiler.d.ts","sourceRoot":"","sources":["../src/schema-compiler.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,EAeV,mBAAmB,EAIpB,MAAM,gBAAgB,CAAC;AAq2BxB,eAAO,MAAM,oBAAoB,GAC/B,YAAY,MAAM,KACjB,OAAO,CAAC;IAAE,kBAAkB,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAA;CAAE,CAqC7D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,KACjB,OAAO,CAAC,mBAAmB,CAsC7B,CAAC"}
|
||||
Vendored
-718
@@ -1,718 +0,0 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import protobuf from "protobufjs";
|
||||
const CLASS_OPTION = "(camino.class)";
|
||||
const INTERFACE_OPTION = "(camino.interface)";
|
||||
const IMPLEMENTS_OPTION = "(camino.implements)";
|
||||
const CONSTRUCTOR_OPTION = "(camino.constructor)";
|
||||
const METHOD_OPTION = "(camino.method)";
|
||||
const MIGRATION_OPTION = "(camino.migration)";
|
||||
const CONFLICT_OPTION = "(camino.conflict)";
|
||||
const EDGE_OPTION = "(camino.edge)";
|
||||
const FIELD_STORAGE_OPTION = "(camino.field_storage)";
|
||||
const FIELD_OPS_OPTION = "(camino.field_ops)";
|
||||
const INTERFACE_FIELD_OPTION = "(camino.interface_field)";
|
||||
const DISPLAY_LABEL_OPTION = "(camino.display_label)";
|
||||
const IMPL_OPTION = "(camino.impl)";
|
||||
const SCHEMA_NAMESPACE_OPTION = "(camino.schema_namespace)";
|
||||
const SCHEMA_VERSION_OPTION = "(camino.schema_version)";
|
||||
const enumName = (value) => String(value)
|
||||
.replace(/([a-z0-9])([A-Z])/g, "$1_$2")
|
||||
.replace(/-/g, "_")
|
||||
.toUpperCase();
|
||||
const lowerEnumName = (value) => enumName(value).toLowerCase();
|
||||
const getOption = (options, name) => {
|
||||
if (!options) {
|
||||
return undefined;
|
||||
}
|
||||
if (Object.hasOwn(options, name)) {
|
||||
return options[name];
|
||||
}
|
||||
const bareName = name.replace(/^\((.*)\)$/, "$1");
|
||||
if (Object.hasOwn(options, bareName)) {
|
||||
return options[bareName];
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
const getParsedOptions = (reflection) => {
|
||||
const parsedOptions = reflection
|
||||
.parsedOptions;
|
||||
return Array.isArray(parsedOptions)
|
||||
? parsedOptions.filter((option) => Boolean(option) && typeof option === "object" && !Array.isArray(option))
|
||||
: [];
|
||||
};
|
||||
const getReflectionOptions = (reflection, name) => {
|
||||
const parsedValues = getParsedOptions(reflection).flatMap((option) => {
|
||||
const value = getOption(option, name);
|
||||
return value === undefined ? [] : [value];
|
||||
});
|
||||
if (parsedValues.length > 0) {
|
||||
return parsedValues;
|
||||
}
|
||||
const value = getOption(reflection.options, name);
|
||||
return value === undefined ? [] : [value];
|
||||
};
|
||||
const getReflectionOption = (reflection, name) => getReflectionOptions(reflection, name)[0];
|
||||
const asObject = (value) => value && typeof value === "object" && !Array.isArray(value)
|
||||
? value
|
||||
: undefined;
|
||||
const asArray = (value) => Array.isArray(value) ? value : value === undefined ? [] : [value];
|
||||
const readString = (object, key) => {
|
||||
const value = object?.[key];
|
||||
return typeof value === "string" ? value : undefined;
|
||||
};
|
||||
const readNumber = (object, key) => {
|
||||
const value = object?.[key];
|
||||
return typeof value === "number" && Number.isFinite(value)
|
||||
? value
|
||||
: undefined;
|
||||
};
|
||||
const readBoolean = (object, key) => {
|
||||
const value = object?.[key];
|
||||
return typeof value === "boolean" ? value : undefined;
|
||||
};
|
||||
const symbolRefFromOption = (value, fallback) => {
|
||||
const object = asObject(value);
|
||||
if (!object) {
|
||||
return fallback;
|
||||
}
|
||||
return {
|
||||
namespace: readString(object, "namespace") ?? fallback.namespace,
|
||||
name: readString(object, "name") ?? fallback.name,
|
||||
version: readString(object, "version") ?? fallback.version,
|
||||
...(readString(object, "hash")
|
||||
? { hash: readString(object, "hash") }
|
||||
: {}),
|
||||
};
|
||||
};
|
||||
const typeRefFromOption = (value, fallbackVersion) => {
|
||||
const object = asObject(value);
|
||||
if (!object) {
|
||||
return undefined;
|
||||
}
|
||||
const symbol = asObject(object.symbol)
|
||||
? symbolRefFromOption(object.symbol, {
|
||||
namespace: "",
|
||||
name: "",
|
||||
version: fallbackVersion,
|
||||
})
|
||||
: undefined;
|
||||
const protoType = readString(object, "proto_type")?.replace(/^\./, "");
|
||||
const symbolProtoType = symbol?.namespace && symbol.name ? `${symbol.namespace}.${symbol.name}` : "";
|
||||
const resolvedProtoType = protoType ?? symbolProtoType;
|
||||
if (!resolvedProtoType) {
|
||||
return undefined;
|
||||
}
|
||||
return {
|
||||
protoType: resolvedProtoType,
|
||||
...(symbol?.namespace && symbol.name ? { symbol } : {}),
|
||||
};
|
||||
};
|
||||
const interfaceFieldContractFromOption = (value, schemaVersion) => {
|
||||
const object = asObject(value);
|
||||
if (!object) {
|
||||
return undefined;
|
||||
}
|
||||
const type = typeRefFromOption(object.type, schemaVersion);
|
||||
const refTargetTypeParam = readString(object, "ref_target_type_param");
|
||||
const edgeCardinality = object.edge_cardinality === undefined
|
||||
? undefined
|
||||
: cardinalityFromOption(object.edge_cardinality);
|
||||
return {
|
||||
required: readBoolean(object, "required") ?? false,
|
||||
readable: readBoolean(object, "readable") ?? false,
|
||||
writable: readBoolean(object, "writable") ?? false,
|
||||
watchable: readBoolean(object, "watchable") ?? false,
|
||||
...(readString(object, "type_param")
|
||||
? { typeParam: readString(object, "type_param") }
|
||||
: {}),
|
||||
...(type ? { type } : {}),
|
||||
...(refTargetTypeParam ? { refTargetTypeParam } : {}),
|
||||
...(edgeCardinality ? { edgeCardinality } : {}),
|
||||
};
|
||||
};
|
||||
const functionRefFromOption = (value) => {
|
||||
const object = asObject(value);
|
||||
if (!object) {
|
||||
throw new Error("Expected function ref option object");
|
||||
}
|
||||
const packageNamespace = readString(object, "package_namespace");
|
||||
const packageName = readString(object, "package_name");
|
||||
const symbol = readString(object, "symbol");
|
||||
if (!packageNamespace || !packageName || !symbol) {
|
||||
throw new Error("Function ref requires package_namespace, package_name, and symbol");
|
||||
}
|
||||
return {
|
||||
packageNamespace,
|
||||
packageName,
|
||||
symbol,
|
||||
...(readString(object, "operation")
|
||||
? { operation: readString(object, "operation") }
|
||||
: {}),
|
||||
...(readString(object, "version_ref")
|
||||
? { versionRef: readString(object, "version_ref") }
|
||||
: {}),
|
||||
};
|
||||
};
|
||||
const conflictFromOption = (value) => {
|
||||
const normalized = enumName(value);
|
||||
if (!value || normalized === "CONFLICT_STRATEGY_UNSPECIFIED") {
|
||||
return "preserve_conflicts";
|
||||
}
|
||||
if (normalized === "REPLACE") {
|
||||
return "replace";
|
||||
}
|
||||
if (normalized === "PRESERVE_CONFLICTS") {
|
||||
return "preserve_conflicts";
|
||||
}
|
||||
if (normalized === "CRDT") {
|
||||
return "crdt";
|
||||
}
|
||||
throw new Error(`Unknown Camino conflict strategy: ${String(value)}`);
|
||||
};
|
||||
const cardinalityFromOption = (value) => {
|
||||
const normalized = lowerEnumName(value);
|
||||
if (!value || normalized === "cardinality_unspecified") {
|
||||
return "many";
|
||||
}
|
||||
if (normalized === "optional_one" ||
|
||||
normalized === "exactly_one" ||
|
||||
normalized === "many" ||
|
||||
normalized === "many_unique" ||
|
||||
normalized === "many_ordered" ||
|
||||
normalized === "many_unique_ordered") {
|
||||
return normalized;
|
||||
}
|
||||
throw new Error(`Unknown Camino cardinality: ${String(value)}`);
|
||||
};
|
||||
const fieldStorageKindFromOption = (value) => {
|
||||
if (value === 5) {
|
||||
return "static_final";
|
||||
}
|
||||
const normalized = lowerEnumName(value);
|
||||
if (!value || normalized === "field_storage_kind_unspecified") {
|
||||
return "stored";
|
||||
}
|
||||
if (normalized === "stored" ||
|
||||
normalized === "derived" ||
|
||||
normalized === "lazy" ||
|
||||
normalized === "external" ||
|
||||
normalized === "static_final") {
|
||||
return normalized;
|
||||
}
|
||||
throw new Error(`Unknown Camino field storage kind: ${String(value)}`);
|
||||
};
|
||||
const fieldStorageFromOption = (value) => {
|
||||
const object = asObject(value);
|
||||
if (!object) {
|
||||
return {
|
||||
kind: "stored",
|
||||
cache: false,
|
||||
};
|
||||
}
|
||||
const kind = fieldStorageKindFromOption(object.kind);
|
||||
const resolver = object.resolver === undefined
|
||||
? undefined
|
||||
: functionRefFromOption(object.resolver);
|
||||
if ((kind === "derived" || kind === "lazy" || kind === "external") && !resolver) {
|
||||
throw new Error(`${kind} field storage requires resolver`);
|
||||
}
|
||||
return {
|
||||
kind,
|
||||
...(resolver ? { resolver } : {}),
|
||||
cache: object.cache === true,
|
||||
};
|
||||
};
|
||||
const fieldOpsFromOption = (value) => {
|
||||
const object = asObject(value);
|
||||
if (!object) {
|
||||
return undefined;
|
||||
}
|
||||
const implementation = enumName(object.implementation);
|
||||
if (implementation !== "SERVICE") {
|
||||
throw new Error(`Unsupported Camino field implementation: ${String(object.implementation)}`);
|
||||
}
|
||||
const service = readString(object, "service");
|
||||
if (!service) {
|
||||
throw new Error("SERVICE field_ops requires service");
|
||||
}
|
||||
return {
|
||||
implementation: "service",
|
||||
service,
|
||||
};
|
||||
};
|
||||
const extractFileDefaults = (sourceFile) => {
|
||||
const text = fs.readFileSync(sourceFile, "utf8");
|
||||
const packageMatch = /^\s*package\s+([a-zA-Z0-9_.]+)\s*;/m.exec(text);
|
||||
const namespaceMatch = /^\s*option\s+\(camino\.schema_namespace\)\s*=\s*"([^"]+)"\s*;/m.exec(text);
|
||||
const versionMatch = /^\s*option\s+\(camino\.schema_version\)\s*=\s*"([^"]+)"\s*;/m.exec(text);
|
||||
return {
|
||||
packageName: packageMatch?.[1] ?? "",
|
||||
schemaNamespace: namespaceMatch?.[1] ?? packageMatch?.[1] ?? "",
|
||||
schemaVersion: versionMatch?.[1] ?? "1",
|
||||
};
|
||||
};
|
||||
const protoSymbolFromReflection = (reflection, fallbackVersion) => {
|
||||
if (!reflection?.fullName) {
|
||||
return undefined;
|
||||
}
|
||||
const parts = reflection.fullName.replace(/^\./, "").split(".");
|
||||
const name = parts.pop();
|
||||
if (!name) {
|
||||
return undefined;
|
||||
}
|
||||
return {
|
||||
namespace: parts.join("."),
|
||||
name,
|
||||
version: fallbackVersion,
|
||||
};
|
||||
};
|
||||
const typeRefForField = (field, _schemaVersion) => {
|
||||
const enumValues = field.resolvedType instanceof protobuf.Enum
|
||||
? Object.entries(field.resolvedType.values)
|
||||
.filter(([_name, value]) => value !== 0)
|
||||
.map(([name]) => name)
|
||||
: undefined;
|
||||
return {
|
||||
protoType: field.type,
|
||||
...(enumValues ? { enumValues } : {}),
|
||||
};
|
||||
};
|
||||
const typeRefForType = (type, fallbackType, schemaVersion) => {
|
||||
const symbol = protoSymbolFromReflection(type ?? null, schemaVersion);
|
||||
return {
|
||||
protoType: type?.fullName?.replace(/^\./, "") ?? fallbackType,
|
||||
...(symbol ? { symbol } : {}),
|
||||
};
|
||||
};
|
||||
const fieldSchemaFromField = (field, schemaVersion) => {
|
||||
const storage = fieldStorageFromOption(getReflectionOption(field, FIELD_STORAGE_OPTION));
|
||||
const ops = fieldOpsFromOption(getReflectionOption(field, FIELD_OPS_OPTION));
|
||||
if (ops && storage.kind !== "stored" && storage.kind !== "static_final") {
|
||||
throw new Error(`Field ${field.fullName} cannot declare both field_ops and package-resolved storage`);
|
||||
}
|
||||
if (storage.kind === "static_final" && !ops) {
|
||||
throw new Error(`Field ${field.fullName} with static_final storage requires field_ops`);
|
||||
}
|
||||
const interfaceContract = interfaceFieldContractFromOption(getReflectionOption(field, INTERFACE_FIELD_OPTION), schemaVersion);
|
||||
return {
|
||||
name: field.name,
|
||||
tag: field.id,
|
||||
type: typeRefForField(field, schemaVersion),
|
||||
conflict: conflictFromOption(getReflectionOption(field, CONFLICT_OPTION)),
|
||||
repeated: field.repeated,
|
||||
optional: field.optional,
|
||||
storage,
|
||||
...(ops ? { ops } : {}),
|
||||
...(interfaceContract ? { interfaceContract } : {}),
|
||||
isDisplayLabel: getReflectionOption(field, DISPLAY_LABEL_OPTION) === true,
|
||||
};
|
||||
};
|
||||
const isManyCardinality = (cardinality) => cardinality === "many" ||
|
||||
cardinality === "many_unique" ||
|
||||
cardinality === "many_ordered" ||
|
||||
cardinality === "many_unique_ordered";
|
||||
const materializationFromOption = (value, fallbackVersion) => {
|
||||
const object = asObject(value);
|
||||
if (!object) {
|
||||
return undefined;
|
||||
}
|
||||
const classRef = symbolRefFromOption(object.class, {
|
||||
namespace: "",
|
||||
name: "",
|
||||
version: fallbackVersion,
|
||||
});
|
||||
if (!classRef.name) {
|
||||
throw new Error("Edge materialization requires class");
|
||||
}
|
||||
return {
|
||||
class: classRef,
|
||||
connectProjection: readString(object, "connect_projection") ?? "",
|
||||
};
|
||||
};
|
||||
const endpointFromOption = (params) => {
|
||||
const object = asObject(params.option);
|
||||
const classRef = asObject(object?.class)
|
||||
? symbolRefFromOption(object?.class, {
|
||||
namespace: "",
|
||||
name: "",
|
||||
version: params.fallbackVersion,
|
||||
})
|
||||
: params.fallbackClass;
|
||||
const interfaceRef = asObject(object?.interface)
|
||||
? symbolRefFromOption(object?.interface, {
|
||||
namespace: "",
|
||||
name: "",
|
||||
version: params.fallbackVersion,
|
||||
})
|
||||
: undefined;
|
||||
const projection = readString(object, "projection") ?? params.fallbackProjection;
|
||||
const cardinality = object?.cardinality === undefined
|
||||
? params.fallbackCardinality
|
||||
: cardinalityFromOption(object.cardinality);
|
||||
const materialization = materializationFromOption(object?.materialize, params.fallbackVersion);
|
||||
if (!classRef?.name && !interfaceRef?.name) {
|
||||
throw new Error(`Edge endpoint ${projection} requires class or interface`);
|
||||
}
|
||||
return {
|
||||
...(classRef?.name ? { class: classRef } : {}),
|
||||
...(interfaceRef?.name ? { interface: interfaceRef } : {}),
|
||||
projection,
|
||||
cardinality,
|
||||
indexed: readBoolean(object, "indexed") ?? false,
|
||||
...(materialization ? { materialization } : {}),
|
||||
};
|
||||
};
|
||||
const symbolKey = (ref) => ref ? [ref.namespace, ref.name, ref.version, ref.hash ?? ""].join(":") : "";
|
||||
const endpointRoleKey = (endpoint) => [
|
||||
symbolKey(endpoint.class),
|
||||
symbolKey(endpoint.interface),
|
||||
endpoint.projection,
|
||||
endpoint.cardinality,
|
||||
].join("|");
|
||||
const normalizeEdgeEndpoints = (params) => {
|
||||
if (params.directionality === "directed") {
|
||||
return {
|
||||
fromEndpoint: params.fromEndpoint,
|
||||
toEndpoint: params.toEndpoint,
|
||||
};
|
||||
}
|
||||
return endpointRoleKey(params.fromEndpoint) <= endpointRoleKey(params.toEndpoint)
|
||||
? {
|
||||
fromEndpoint: params.fromEndpoint,
|
||||
toEndpoint: params.toEndpoint,
|
||||
}
|
||||
: {
|
||||
fromEndpoint: params.toEndpoint,
|
||||
toEndpoint: params.fromEndpoint,
|
||||
};
|
||||
};
|
||||
const symbolArrayFromOption = (value, defaults) => asArray(value)
|
||||
.map((item) => symbolRefFromOption(item, {
|
||||
namespace: defaults.schemaNamespace,
|
||||
name: "",
|
||||
version: defaults.schemaVersion,
|
||||
}))
|
||||
.filter((symbol) => Boolean(symbol.name));
|
||||
const isStringType = (type) => type.protoType === "string" || type.protoType === "google.protobuf.StringValue";
|
||||
const validateDisplayLabelFields = (type, fields, operationServices) => {
|
||||
const displayLabelFields = fields.filter((field) => field.isDisplayLabel);
|
||||
if (displayLabelFields.length > 1) {
|
||||
throw new Error(`Class ${type.fullName} declares multiple Camino display label fields`);
|
||||
}
|
||||
const displayLabelField = displayLabelFields[0];
|
||||
if (!displayLabelField) {
|
||||
return;
|
||||
}
|
||||
if (!displayLabelField.ops) {
|
||||
if (!isStringType(displayLabelField.type)) {
|
||||
throw new Error(`Display label field ${type.fullName}.${displayLabelField.name} must have string type`);
|
||||
}
|
||||
return;
|
||||
}
|
||||
const serviceName = displayLabelField.ops.service.replace(/^\./, "");
|
||||
const getOperation = operationServices
|
||||
.find((service) => service.fullName === serviceName)
|
||||
?.operations.find((operation) => operation.name === "Get");
|
||||
if (!getOperation || !isStringType(getOperation.outputType)) {
|
||||
throw new Error(`Display label field ${type.fullName}.${displayLabelField.name} must resolve to string`);
|
||||
}
|
||||
};
|
||||
const typeBindingFromOption = (value, schemaVersion) => {
|
||||
const object = asObject(value);
|
||||
if (!object) {
|
||||
return undefined;
|
||||
}
|
||||
const name = readString(object, "name");
|
||||
const type = typeRefFromOption(object.type, schemaVersion);
|
||||
if (!name || !type) {
|
||||
throw new Error("Interface type_binding requires name and type");
|
||||
}
|
||||
return { name, type };
|
||||
};
|
||||
const interfaceImplementationFromOption = (value, defaults) => {
|
||||
const object = asObject(value);
|
||||
if (!object) {
|
||||
throw new Error("Expected implements option object");
|
||||
}
|
||||
const interfaceId = symbolRefFromOption(object.interface, {
|
||||
namespace: defaults.schemaNamespace,
|
||||
name: "",
|
||||
version: defaults.schemaVersion,
|
||||
});
|
||||
if (!interfaceId.name) {
|
||||
throw new Error("implements option requires interface name");
|
||||
}
|
||||
return {
|
||||
interface: interfaceId,
|
||||
typeBindings: asArray(object.type_binding)
|
||||
.map((binding) => typeBindingFromOption(binding, defaults.schemaVersion))
|
||||
.filter((binding) => Boolean(binding)),
|
||||
};
|
||||
};
|
||||
const serviceName = (service) => service.fullName.replace(/^\./, "");
|
||||
const operationFromMethod = (method, schemaVersion) => {
|
||||
const fn = functionRefFromOption(getReflectionOption(method, IMPL_OPTION));
|
||||
const methodWithTypes = method;
|
||||
return {
|
||||
name: method.name,
|
||||
inputType: typeRefForType(methodWithTypes.resolvedRequestType, method.requestType, schemaVersion),
|
||||
outputType: typeRefForType(methodWithTypes.resolvedResponseType, method.responseType, schemaVersion),
|
||||
function: fn,
|
||||
};
|
||||
};
|
||||
const operationServiceFromService = (service, schemaVersion) => ({
|
||||
name: service.name,
|
||||
fullName: serviceName(service),
|
||||
operations: service.methodsArray.map((method) => operationFromMethod(method, schemaVersion)),
|
||||
});
|
||||
const classSchemaFromType = (type, sourceFile, defaults, operationServices) => {
|
||||
const classOption = asObject(getReflectionOption(type, CLASS_OPTION));
|
||||
if (!classOption) {
|
||||
return undefined;
|
||||
}
|
||||
const fallbackClassRef = {
|
||||
namespace: defaults.schemaNamespace,
|
||||
name: type.name,
|
||||
version: defaults.schemaVersion,
|
||||
};
|
||||
const classId = symbolRefFromOption(classOption.id, fallbackClassRef);
|
||||
const classVersion = readNumber(classOption, "version") ?? Number(classId.version);
|
||||
if (!Number.isInteger(classVersion) || classVersion <= 0) {
|
||||
throw new Error(`Class ${type.fullName} has invalid Camino class version`);
|
||||
}
|
||||
const fields = type.fieldsArray.map((field) => fieldSchemaFromField(field, defaults.schemaVersion));
|
||||
validateDisplayLabelFields(type, fields, operationServices);
|
||||
const edges = type.fieldsArray.flatMap((field) => {
|
||||
const edgeOption = asObject(getReflectionOption(field, EDGE_OPTION));
|
||||
if (!edgeOption) {
|
||||
return [];
|
||||
}
|
||||
const legacyTargetClass = symbolRefFromOption(edgeOption.target, {
|
||||
namespace: defaults.schemaNamespace,
|
||||
name: "",
|
||||
version: defaults.schemaVersion,
|
||||
});
|
||||
const cardinality = cardinalityFromOption(edgeOption.cardinality);
|
||||
const declaredFromEndpoint = endpointFromOption({
|
||||
option: edgeOption.this_endpoint,
|
||||
fallbackClass: classId,
|
||||
fallbackProjection: field.name,
|
||||
fallbackCardinality: cardinality,
|
||||
fallbackVersion: defaults.schemaVersion,
|
||||
});
|
||||
const declaredToEndpoint = endpointFromOption({
|
||||
option: edgeOption.other_endpoint,
|
||||
fallbackClass: legacyTargetClass.name ? legacyTargetClass : undefined,
|
||||
fallbackProjection: readString(edgeOption, "inverse") ?? "",
|
||||
fallbackCardinality: "many",
|
||||
fallbackVersion: defaults.schemaVersion,
|
||||
});
|
||||
if (!declaredToEndpoint.projection) {
|
||||
throw new Error(`Edge field ${type.fullName}.${field.name} requires other_endpoint.projection or inverse`);
|
||||
}
|
||||
const sourceProtoType = field.resolvedType?.fullName?.replace(/^\./, "");
|
||||
if (sourceProtoType !== "camino.Ref") {
|
||||
throw new Error(`Edge field ${type.fullName}.${field.name} must use camino.Ref`);
|
||||
}
|
||||
const isMany = isManyCardinality(declaredFromEndpoint.cardinality);
|
||||
if (isMany && !field.repeated) {
|
||||
throw new Error(`Edge field ${type.fullName}.${field.name} must be repeated for ${declaredFromEndpoint.cardinality}`);
|
||||
}
|
||||
if (!isMany && field.repeated) {
|
||||
throw new Error(`Edge field ${type.fullName}.${field.name} must not be repeated for ${declaredFromEndpoint.cardinality}`);
|
||||
}
|
||||
const directionality = edgeOption.undirected === true ? "undirected" : "directed";
|
||||
const { fromEndpoint, toEndpoint } = normalizeEdgeEndpoints({
|
||||
directionality,
|
||||
fromEndpoint: declaredFromEndpoint,
|
||||
toEndpoint: declaredToEndpoint,
|
||||
});
|
||||
const edgeId = symbolRefFromOption(edgeOption.id, {
|
||||
namespace: defaults.schemaNamespace,
|
||||
name: `${type.name}.${field.name}`,
|
||||
version: defaults.schemaVersion,
|
||||
});
|
||||
const fallbackToClass = toEndpoint.class ?? {
|
||||
namespace: "",
|
||||
name: "",
|
||||
version: "",
|
||||
};
|
||||
return [
|
||||
{
|
||||
id: edgeId,
|
||||
directionality,
|
||||
sourceField: fromEndpoint.projection,
|
||||
fromClass: fromEndpoint.class ?? classId,
|
||||
toClass: fallbackToClass,
|
||||
cardinality: fromEndpoint.cardinality,
|
||||
...(toEndpoint.projection
|
||||
? { inverse: toEndpoint.projection }
|
||||
: {}),
|
||||
fields: [],
|
||||
fromEndpoint,
|
||||
toEndpoint,
|
||||
declaringClass: classId,
|
||||
tags: symbolArrayFromOption(edgeOption.tag, defaults),
|
||||
implements: symbolArrayFromOption(edgeOption.implements, defaults),
|
||||
},
|
||||
];
|
||||
});
|
||||
const methods = getReflectionOptions(type, METHOD_OPTION)
|
||||
.map(asObject)
|
||||
.filter((option) => Boolean(option))
|
||||
.map((option) => {
|
||||
const name = readString(option, "name");
|
||||
if (!name) {
|
||||
throw new Error(`Method option on ${type.fullName} requires name`);
|
||||
}
|
||||
return {
|
||||
name,
|
||||
function: functionRefFromOption(option.function),
|
||||
};
|
||||
});
|
||||
const migrations = getReflectionOptions(type, MIGRATION_OPTION)
|
||||
.map(asObject)
|
||||
.filter((option) => Boolean(option))
|
||||
.map((option) => {
|
||||
const fromVersion = readNumber(option, "from_version");
|
||||
const toVersion = readNumber(option, "to_version");
|
||||
if (!fromVersion || !toVersion) {
|
||||
throw new Error(`Migration option on ${type.fullName} requires versions`);
|
||||
}
|
||||
return {
|
||||
fromVersion,
|
||||
toVersion,
|
||||
function: functionRefFromOption(option.function),
|
||||
};
|
||||
});
|
||||
const constructorOption = asObject(getReflectionOption(type, CONSTRUCTOR_OPTION));
|
||||
const constructorSpec = constructorOption
|
||||
? { function: functionRefFromOption(constructorOption.function) }
|
||||
: undefined;
|
||||
return {
|
||||
id: classId,
|
||||
version: classVersion,
|
||||
fields,
|
||||
edges,
|
||||
methods,
|
||||
migrations,
|
||||
operationServices,
|
||||
implements: getReflectionOptions(type, IMPLEMENTS_OPTION).map((option) => interfaceImplementationFromOption(option, defaults)),
|
||||
...(constructorSpec ? { constructorSpec } : {}),
|
||||
sourceFile,
|
||||
protoMessage: type.fullName,
|
||||
};
|
||||
};
|
||||
const interfaceSchemaFromType = (type, sourceFile, defaults) => {
|
||||
const interfaceOption = asObject(getReflectionOption(type, INTERFACE_OPTION));
|
||||
if (!interfaceOption) {
|
||||
return undefined;
|
||||
}
|
||||
const classOption = asObject(getReflectionOption(type, CLASS_OPTION));
|
||||
if (classOption) {
|
||||
throw new Error(`${type.fullName} cannot be both a Camino class and interface`);
|
||||
}
|
||||
const fallbackInterfaceRef = {
|
||||
namespace: defaults.schemaNamespace,
|
||||
name: type.name,
|
||||
version: defaults.schemaVersion,
|
||||
};
|
||||
const interfaceId = symbolRefFromOption(interfaceOption.id, fallbackInterfaceRef);
|
||||
const interfaceVersion = readNumber(interfaceOption, "version") ?? Number(interfaceId.version);
|
||||
if (!Number.isInteger(interfaceVersion) || interfaceVersion <= 0) {
|
||||
throw new Error(`Interface ${type.fullName} has invalid Camino interface version`);
|
||||
}
|
||||
return {
|
||||
id: interfaceId,
|
||||
version: interfaceVersion,
|
||||
fields: type.fieldsArray.map((field) => fieldSchemaFromField(field, defaults.schemaVersion)),
|
||||
sourceFile,
|
||||
protoMessage: type.fullName,
|
||||
typeParameters: asArray(interfaceOption.type_parameter)
|
||||
.map((entry) => String(entry).trim())
|
||||
.filter(Boolean),
|
||||
};
|
||||
};
|
||||
const walkTypes = (namespace, visit) => {
|
||||
for (const nested of namespace.nestedArray) {
|
||||
if (nested instanceof protobuf.Type) {
|
||||
visit(nested);
|
||||
walkTypes(nested, visit);
|
||||
}
|
||||
else if (nested instanceof protobuf.Namespace) {
|
||||
walkTypes(nested, visit);
|
||||
}
|
||||
}
|
||||
};
|
||||
const walkServices = (namespace, visit) => {
|
||||
for (const nested of namespace.nestedArray) {
|
||||
if (nested instanceof protobuf.Service) {
|
||||
visit(nested);
|
||||
}
|
||||
else if (nested instanceof protobuf.Namespace) {
|
||||
walkServices(nested, visit);
|
||||
}
|
||||
}
|
||||
};
|
||||
export const loadCaminoSchemaRoot = async (sourceFile) => {
|
||||
const absoluteSourceFile = path.resolve(sourceFile);
|
||||
const root = new protobuf.Root();
|
||||
const envIncludeDirs = [
|
||||
process.env.QUIXOS_PROTO_PATH,
|
||||
process.env.CAMINO_PROTO_PATH,
|
||||
]
|
||||
.filter((value) => Boolean(value))
|
||||
.join(path.delimiter)
|
||||
.split(path.delimiter)
|
||||
.map((entry) => entry.trim())
|
||||
.filter(Boolean)
|
||||
.map((entry) => path.resolve(entry));
|
||||
const includeDirs = [
|
||||
path.dirname(absoluteSourceFile),
|
||||
path.resolve("../../quixos-protocol/proto"),
|
||||
path.resolve("quixos-protocol/proto"),
|
||||
path.resolve("proto"),
|
||||
...envIncludeDirs,
|
||||
];
|
||||
root.resolvePath = (origin, target) => {
|
||||
if (path.isAbsolute(target) && fs.existsSync(target)) {
|
||||
return target;
|
||||
}
|
||||
const originDir = origin ? path.dirname(origin) : undefined;
|
||||
const candidates = [
|
||||
...(originDir ? [path.resolve(originDir, target)] : []),
|
||||
...includeDirs.map((dir) => path.resolve(dir, target)),
|
||||
];
|
||||
const found = candidates.find((candidate) => fs.existsSync(candidate));
|
||||
return found ?? target;
|
||||
};
|
||||
await root.load(absoluteSourceFile, { keepCase: true });
|
||||
root.resolveAll();
|
||||
return { absoluteSourceFile, root };
|
||||
};
|
||||
export const compileCaminoSchema = async (sourceFile) => {
|
||||
const { absoluteSourceFile, root } = await loadCaminoSchemaRoot(sourceFile);
|
||||
const defaults = extractFileDefaults(absoluteSourceFile);
|
||||
const operationServices = [];
|
||||
walkServices(root, (service) => {
|
||||
operationServices.push(operationServiceFromService(service, defaults.schemaVersion));
|
||||
});
|
||||
const classes = [];
|
||||
const interfaces = [];
|
||||
walkTypes(root, (type) => {
|
||||
const interfaceSchema = interfaceSchemaFromType(type, absoluteSourceFile, defaults);
|
||||
if (interfaceSchema) {
|
||||
interfaces.push(interfaceSchema);
|
||||
}
|
||||
const classSchema = classSchemaFromType(type, absoluteSourceFile, defaults, operationServices);
|
||||
if (classSchema) {
|
||||
classes.push(classSchema);
|
||||
}
|
||||
});
|
||||
return {
|
||||
sourceFile: absoluteSourceFile,
|
||||
classes,
|
||||
interfaces,
|
||||
};
|
||||
};
|
||||
Vendored
-138
@@ -1,138 +0,0 @@
|
||||
export type SymbolRef = {
|
||||
namespace: string;
|
||||
name: string;
|
||||
version: string;
|
||||
hash?: string;
|
||||
};
|
||||
export type FunctionRef = {
|
||||
packageNamespace: string;
|
||||
packageName: string;
|
||||
symbol: string;
|
||||
operation?: string;
|
||||
versionRef?: string;
|
||||
};
|
||||
export type ConflictStrategy = "replace" | "preserve_conflicts" | "crdt";
|
||||
export type Cardinality = "optional_one" | "exactly_one" | "many" | "many_unique" | "many_ordered" | "many_unique_ordered";
|
||||
export type EdgeDirectionality = "directed" | "undirected";
|
||||
export type EdgeMaterialization = {
|
||||
class: SymbolRef;
|
||||
connectProjection: string;
|
||||
};
|
||||
export type FieldStorageKind = "stored" | "derived" | "lazy" | "external" | "static_final";
|
||||
export type FieldStorage = {
|
||||
kind: FieldStorageKind;
|
||||
resolver?: FunctionRef;
|
||||
cache: boolean;
|
||||
};
|
||||
export type FieldOps = {
|
||||
implementation: "service";
|
||||
service: string;
|
||||
};
|
||||
export type TypeRef = {
|
||||
protoType: string;
|
||||
symbol?: SymbolRef;
|
||||
enumValues?: string[];
|
||||
};
|
||||
export type TypeBinding = {
|
||||
name: string;
|
||||
type: TypeRef;
|
||||
};
|
||||
export type InterfaceFieldContract = {
|
||||
required: boolean;
|
||||
readable: boolean;
|
||||
writable: boolean;
|
||||
watchable: boolean;
|
||||
typeParam?: string;
|
||||
type?: TypeRef;
|
||||
refTargetTypeParam?: string;
|
||||
edgeCardinality?: Cardinality;
|
||||
};
|
||||
export type InterfaceImplementation = {
|
||||
interface: SymbolRef;
|
||||
typeBindings: TypeBinding[];
|
||||
};
|
||||
export type FieldSchema = {
|
||||
name: string;
|
||||
tag: number;
|
||||
type: TypeRef;
|
||||
conflict: ConflictStrategy;
|
||||
repeated: boolean;
|
||||
optional: boolean;
|
||||
storage: FieldStorage;
|
||||
ops?: FieldOps;
|
||||
interfaceContract?: InterfaceFieldContract;
|
||||
isDisplayLabel: boolean;
|
||||
};
|
||||
export type EdgeEndpointSchema = {
|
||||
class?: SymbolRef;
|
||||
interface?: SymbolRef;
|
||||
projection: string;
|
||||
cardinality: Cardinality;
|
||||
indexed: boolean;
|
||||
materialization?: EdgeMaterialization;
|
||||
};
|
||||
export type EdgeSchema = {
|
||||
id: SymbolRef;
|
||||
directionality: EdgeDirectionality;
|
||||
sourceField: string;
|
||||
fromClass: SymbolRef;
|
||||
toClass: SymbolRef;
|
||||
cardinality: Cardinality;
|
||||
inverse?: string;
|
||||
fields: FieldSchema[];
|
||||
fromEndpoint: EdgeEndpointSchema;
|
||||
toEndpoint: EdgeEndpointSchema;
|
||||
declaringClass: SymbolRef;
|
||||
tags: SymbolRef[];
|
||||
implements: SymbolRef[];
|
||||
};
|
||||
export type MethodSchema = {
|
||||
name: string;
|
||||
function: FunctionRef;
|
||||
};
|
||||
export type MigrationSpec = {
|
||||
fromVersion: number;
|
||||
toVersion: number;
|
||||
function: FunctionRef;
|
||||
};
|
||||
export type ConstructorSpec = {
|
||||
function: FunctionRef;
|
||||
};
|
||||
export type OperationSchema = {
|
||||
name: string;
|
||||
inputType: TypeRef;
|
||||
outputType: TypeRef;
|
||||
function: FunctionRef;
|
||||
};
|
||||
export type OperationServiceSchema = {
|
||||
name: string;
|
||||
fullName: string;
|
||||
operations: OperationSchema[];
|
||||
};
|
||||
export type ClassSchema = {
|
||||
id: SymbolRef;
|
||||
version: number;
|
||||
fields: FieldSchema[];
|
||||
edges: EdgeSchema[];
|
||||
methods: MethodSchema[];
|
||||
migrations: MigrationSpec[];
|
||||
operationServices: OperationServiceSchema[];
|
||||
implements: InterfaceImplementation[];
|
||||
constructorSpec?: ConstructorSpec;
|
||||
sourceFile: string;
|
||||
protoMessage: string;
|
||||
};
|
||||
export type InterfaceSchema = {
|
||||
id: SymbolRef;
|
||||
version: number;
|
||||
fields: FieldSchema[];
|
||||
sourceFile: string;
|
||||
protoMessage: string;
|
||||
typeParameters: string[];
|
||||
};
|
||||
export type SchemaCompileResult = {
|
||||
sourceFile: string;
|
||||
classes: ClassSchema[];
|
||||
interfaces: InterfaceSchema[];
|
||||
};
|
||||
//# sourceMappingURL=schema-ir.d.ts.map
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"schema-ir.d.ts","sourceRoot":"","sources":["../src/schema-ir.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAA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