Expose bounded snapshot-bound definition reads and latest-only watches from the serving checked bundle. Add checked reflection dependency ports, generated SDK bindings and selector-scoped invocation authority. Move Studio factory, contract and query discovery to public reflection inventories. Share an active-definition watch across canvas and standalone routes and invalidate/reload on epoch changes instead of polling GetWorkspace. Document the API and deferred scope; cover compiler/codegen, SDK injection, transport authorization, activation publication, pagination and reconnect behavior. Keep all work local; no deployment or publication.
351 lines
10 KiB
TypeScript
351 lines
10 KiB
TypeScript
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
|
|
// @generated from file quixos/refs.proto (package quixos, syntax proto3)
|
|
/* eslint-disable */
|
|
|
|
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
import type { Message } from "@bufbuild/protobuf";
|
|
|
|
/**
|
|
* Describes the file quixos/refs.proto.
|
|
*/
|
|
export const file_quixos_refs: GenFile = /*@__PURE__*/
|
|
fileDesc("ChFxdWl4b3MvcmVmcy5wcm90bxIGcXVpeG9zInUKDUNhcGFiaWxpdHlSZWYSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAEgASgJEhQKDG9wZXJhdGlvbl9pZBgCIAEoCRIvCgtjb25mb3JtYW5jZRgDIAEoCzIaLnF1aXhvcy5Db25mb3JtYW5jZVdpdG5lc3Mi0QEKDEZpZWxkRWRpdGluZxIbChNnZXR0ZXJfb3BlcmF0aW9uX2lkGAEgASgJEhsKE3NldHRlcl9vcGVyYXRpb25faWQYAiABKAkSFQoNZG9jdW1lbnRfdHlwZRgDIAEoCRIWCg5iaW5kaW5nX2RpZ2VzdBgEIAEoCRInCgRtb2RlGAUgASgOMhkucXVpeG9zLkZpZWxkRWRpdGluZy5Nb2RlIi8KBE1vZGUSDwoLVU5TUEVDSUZJRUQQABIMCghSRUdJU1RFUhABEggKBENSRFQQAiKWAQoSQ29uZm9ybWFuY2VXaXRuZXNzEhEKCW9iamVjd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xdWVyeV9pZBgBIAEoCRIqCgVzY29wZRgCIAEoCzIbLnF1aXhvcy5Xb3Jrc3BhY2VRdWVyeVNjb3BlIj0KDkVkZ2VEZXBlbmRlbmN5EhQKDGVkZ2VfdHlwZV9pZBgBIAEoCRIVCg1wcm9qZWN0aW9uX2lkGAIgASgJYgZwcm90bzM");
|
|
|
|
/**
|
|
* @generated from message quixos.CapabilityRef
|
|
*/
|
|
export type CapabilityRef = Message<"quixos.CapabilityRef"> & {
|
|
/**
|
|
* @generated from field: string interface_revision_id = 1;
|
|
*/
|
|
interfaceRevisionId: string;
|
|
|
|
/**
|
|
* @generated from field: string operation_id = 2;
|
|
*/
|
|
operationId: string;
|
|
|
|
/**
|
|
* Optional fence for a view acquired through TryConform. Not an authority grant.
|
|
*
|
|
* @generated from field: quixos.ConformanceWitness conformance = 3;
|
|
*/
|
|
conformance?: ConformanceWitness | undefined;
|
|
};
|
|
|
|
/**
|
|
* Describes the message quixos.CapabilityRef.
|
|
* Use `create(CapabilityRefSchema)` to create a new message.
|
|
*/
|
|
export const CapabilityRefSchema: GenMessage<CapabilityRef> = /*@__PURE__*/
|
|
messageDesc(file_quixos_refs, 0);
|
|
|
|
/**
|
|
* Resolved native editing semantics. A source snapshot alone grants no writer.
|
|
*
|
|
* @generated from message quixos.FieldEditing
|
|
*/
|
|
export type FieldEditing = Message<"quixos.FieldEditing"> & {
|
|
/**
|
|
* @generated from field: string getter_operation_id = 1;
|
|
*/
|
|
getterOperationId: string;
|
|
|
|
/**
|
|
* @generated from field: string setter_operation_id = 2;
|
|
*/
|
|
setterOperationId: string;
|
|
|
|
/**
|
|
* @generated from field: string document_type = 3;
|
|
*/
|
|
documentType: string;
|
|
|
|
/**
|
|
* @generated from field: string binding_digest = 4;
|
|
*/
|
|
bindingDigest: string;
|
|
|
|
/**
|
|
* @generated from field: quixos.FieldEditing.Mode mode = 5;
|
|
*/
|
|
mode: FieldEditing_Mode;
|
|
};
|
|
|
|
/**
|
|
* Describes the message quixos.FieldEditing.
|
|
* Use `create(FieldEditingSchema)` to create a new message.
|
|
*/
|
|
export const FieldEditingSchema: GenMessage<FieldEditing> = /*@__PURE__*/
|
|
messageDesc(file_quixos_refs, 1);
|
|
|
|
/**
|
|
* @generated from enum quixos.FieldEditing.Mode
|
|
*/
|
|
export enum FieldEditing_Mode {
|
|
/**
|
|
* @generated from enum value: UNSPECIFIED = 0;
|
|
*/
|
|
UNSPECIFIED = 0,
|
|
|
|
/**
|
|
* @generated from enum value: REGISTER = 1;
|
|
*/
|
|
REGISTER = 1,
|
|
|
|
/**
|
|
* @generated from enum value: CRDT = 2;
|
|
*/
|
|
CRDT = 2,
|
|
}
|
|
|
|
/**
|
|
* Describes the enum quixos.FieldEditing.Mode.
|
|
*/
|
|
export const FieldEditing_ModeSchema: GenEnum<FieldEditing_Mode> = /*@__PURE__*/
|
|
enumDesc(file_quixos_refs, 1, 0);
|
|
|
|
/**
|
|
* @generated from message quixos.ConformanceWitness
|
|
*/
|
|
export type ConformanceWitness = Message<"quixos.ConformanceWitness"> & {
|
|
/**
|
|
* @generated from field: string object_id = 1;
|
|
*/
|
|
objectId: string;
|
|
|
|
/**
|
|
* @generated from field: string interface_revision_id = 2;
|
|
*/
|
|
interfaceRevisionId: string;
|
|
|
|
/**
|
|
* @generated from field: string conformance_id = 3;
|
|
*/
|
|
conformanceId: string;
|
|
|
|
/**
|
|
* @generated from field: string workspace_revision_id = 4;
|
|
*/
|
|
workspaceRevisionId: string;
|
|
|
|
/**
|
|
* @generated from field: string workspace_epoch = 5;
|
|
*/
|
|
workspaceEpoch: string;
|
|
};
|
|
|
|
/**
|
|
* Describes the message quixos.ConformanceWitness.
|
|
* Use `create(ConformanceWitnessSchema)` to create a new message.
|
|
*/
|
|
export const ConformanceWitnessSchema: GenMessage<ConformanceWitness> = /*@__PURE__*/
|
|
messageDesc(file_quixos_refs, 2);
|
|
|
|
/**
|
|
* @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 const PackageExportRefSchema: GenMessage<PackageExportRef> = /*@__PURE__*/
|
|
messageDesc(file_quixos_refs, 3);
|
|
|
|
/**
|
|
* @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 interface_revision_id = 4;
|
|
*/
|
|
value: string;
|
|
case: "interfaceRevisionId";
|
|
} | {
|
|
/**
|
|
* @generated from field: string constructor_atom_id = 5;
|
|
*/
|
|
value: string;
|
|
case: "constructorAtomId";
|
|
} | {
|
|
/**
|
|
* @generated from field: string query_id = 7;
|
|
*/
|
|
value: string;
|
|
case: "queryId";
|
|
} | {
|
|
/**
|
|
* @generated from field: quixos.WorkspaceQueryDependency workspace_query = 8;
|
|
*/
|
|
value: WorkspaceQueryDependency;
|
|
case: "workspaceQuery";
|
|
} | {
|
|
/**
|
|
* @generated from field: quixos.ReflectionDependency reflection = 9;
|
|
*/
|
|
value: ReflectionDependency;
|
|
case: "reflection";
|
|
} | { case: undefined; value?: undefined };
|
|
|
|
/**
|
|
* Defaults to the invocation receiver. A checked dependency traversal can
|
|
* select a related object explicitly before the package runtime starts.
|
|
*
|
|
* @generated from field: string object_id = 6;
|
|
*/
|
|
objectId: string;
|
|
};
|
|
|
|
/**
|
|
* Describes the message quixos.InjectedDependency.
|
|
* Use `create(InjectedDependencySchema)` to create a new message.
|
|
*/
|
|
export const InjectedDependencySchema: GenMessage<InjectedDependency> = /*@__PURE__*/
|
|
messageDesc(file_quixos_refs, 4);
|
|
|
|
/**
|
|
* @generated from message quixos.ReflectionDependency
|
|
*/
|
|
export type ReflectionDependency = Message<"quixos.ReflectionDependency"> & {
|
|
/**
|
|
* @generated from field: string workspace_id = 1;
|
|
*/
|
|
workspaceId: string;
|
|
|
|
/**
|
|
* @generated from field: string workspace_epoch = 2;
|
|
*/
|
|
workspaceEpoch: string;
|
|
|
|
/**
|
|
* @generated from field: repeated string selectors = 3;
|
|
*/
|
|
selectors: string[];
|
|
};
|
|
|
|
/**
|
|
* Describes the message quixos.ReflectionDependency.
|
|
* Use `create(ReflectionDependencySchema)` to create a new message.
|
|
*/
|
|
export const ReflectionDependencySchema: GenMessage<ReflectionDependency> = /*@__PURE__*/
|
|
messageDesc(file_quixos_refs, 5);
|
|
|
|
/**
|
|
* Scope evidence is not authority by itself. The caller must also hold the
|
|
* matching workspace-query grant (or the authenticated workspace user grant).
|
|
*
|
|
* @generated from message quixos.WorkspaceQueryScope
|
|
*/
|
|
export type WorkspaceQueryScope = Message<"quixos.WorkspaceQueryScope"> & {
|
|
/**
|
|
* @generated from field: string workspace_id = 1;
|
|
*/
|
|
workspaceId: string;
|
|
|
|
/**
|
|
* @generated from field: string workspace_revision_id = 2;
|
|
*/
|
|
workspaceRevisionId: string;
|
|
|
|
/**
|
|
* @generated from field: string workspace_epoch = 3;
|
|
*/
|
|
workspaceEpoch: string;
|
|
|
|
/**
|
|
* @generated from field: string interface_revision_id = 4;
|
|
*/
|
|
interfaceRevisionId: string;
|
|
|
|
/**
|
|
* @generated from field: string binding_digest = 5;
|
|
*/
|
|
bindingDigest: string;
|
|
};
|
|
|
|
/**
|
|
* Describes the message quixos.WorkspaceQueryScope.
|
|
* Use `create(WorkspaceQueryScopeSchema)` to create a new message.
|
|
*/
|
|
export const WorkspaceQueryScopeSchema: GenMessage<WorkspaceQueryScope> = /*@__PURE__*/
|
|
messageDesc(file_quixos_refs, 6);
|
|
|
|
/**
|
|
* @generated from message quixos.WorkspaceQueryDependency
|
|
*/
|
|
export type WorkspaceQueryDependency = Message<"quixos.WorkspaceQueryDependency"> & {
|
|
/**
|
|
* @generated from field: string query_id = 1;
|
|
*/
|
|
queryId: string;
|
|
|
|
/**
|
|
* @generated from field: quixos.WorkspaceQueryScope scope = 2;
|
|
*/
|
|
scope?: WorkspaceQueryScope | undefined;
|
|
};
|
|
|
|
/**
|
|
* Describes the message quixos.WorkspaceQueryDependency.
|
|
* Use `create(WorkspaceQueryDependencySchema)` to create a new message.
|
|
*/
|
|
export const WorkspaceQueryDependencySchema: GenMessage<WorkspaceQueryDependency> = /*@__PURE__*/
|
|
messageDesc(file_quixos_refs, 7);
|
|
|
|
/**
|
|
* @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 const EdgeDependencySchema: GenMessage<EdgeDependency> = /*@__PURE__*/
|
|
messageDesc(file_quixos_refs, 8);
|
|
|