@ai-matrx/records 0.5.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +133 -0
- package/dist/core/index.cjs +201 -46
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +47 -3
- package/dist/core/index.d.ts +47 -3
- package/dist/core/index.js +201 -46
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +144 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +451 -47
- package/dist/index.d.ts +451 -47
- package/dist/index.js +144 -46
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +263 -46
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +537 -47
- package/dist/react/index.d.ts +537 -47
- package/dist/react/index.js +263 -46
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, ReadValue, AnonTokenBinding, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.cjs';
|
|
2
|
-
export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, COMPUTE_ON, CONTEXT_POLICIES, ComputeOn, ContextPolicy, DELIVERIES, Delivery, DocSignatureCheck, ENTITY_TOKENS, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, Home, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PER_VALUE_ACCESS_WORDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, ProvenancePointer, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkTemplateNode, WorkTemplateRelation, err, isRecordsErr, measureKey, ok } from '../index.cjs';
|
|
1
|
+
import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, NewFieldDeclaration, FieldPatch, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, ReadValue, AnonTokenBinding, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.cjs';
|
|
2
|
+
export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, COMPUTE_ON, CONTEXT_POLICIES, ComputeOn, ContextPolicy, DELIVERIES, Delivery, DocSignatureCheck, ENTITY_TOKENS, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, Home, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, PermissionLevel, ProvenancePointer, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, err, highestLevel, isRecordsErr, measureKey, ok } from '../index.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DOOR-8. As-of on EITHER clock, and they are different questions:
|
|
@@ -152,6 +152,33 @@ interface RecordsClient {
|
|
|
152
152
|
spec: Record<string, unknown>;
|
|
153
153
|
homeId: Uuid;
|
|
154
154
|
}): Promise<RecordsResult<Uuid>>;
|
|
155
|
+
/**
|
|
156
|
+
* ADD A FIELD TO A TABLE. One call, and the store does the three things no
|
|
157
|
+
* client can do for itself: it turns a parity type into the behaviour,
|
|
158
|
+
* modifiers, format, unit, relation target and Rules its own guards demand;
|
|
159
|
+
* it tells the TABLE about the field (REC-1 / FLD-8 — a definition for a
|
|
160
|
+
* field the table never declared is refused, which is the sentence every
|
|
161
|
+
* "Add field" used to end on); and it stores the definition as a FIELD
|
|
162
|
+
* rather than as a plain record, so the delete rules and the
|
|
163
|
+
* formula-dependency check can see it.
|
|
164
|
+
*
|
|
165
|
+
* A choice list carries its `options` as words. The store keeps them the only
|
|
166
|
+
* way FLD-5 / FLD-6 allows — as the records of a Table it declares for them —
|
|
167
|
+
* so nobody is made to build a table before they can have a dropdown.
|
|
168
|
+
*/
|
|
169
|
+
fieldDeclare(args: {
|
|
170
|
+
table_id: Uuid;
|
|
171
|
+
spec: NewFieldDeclaration;
|
|
172
|
+
}): Promise<RecordsResult<Uuid>>;
|
|
173
|
+
/** One field's own settings. What it HOLDS is a conversion and is refused here by name. */
|
|
174
|
+
fieldUpdate(args: {
|
|
175
|
+
field_id: Uuid;
|
|
176
|
+
patch: FieldPatch;
|
|
177
|
+
}): Promise<RecordsResult<Uuid>>;
|
|
178
|
+
/** Take a field off a table. Refuses the title field, the last field, and one another field reads through. */
|
|
179
|
+
fieldRetire(args: {
|
|
180
|
+
field_id: Uuid;
|
|
181
|
+
}): Promise<RecordsResult<boolean>>;
|
|
155
182
|
/** The kernel Tables a caller writes a Home, a Field or a Rule into. */
|
|
156
183
|
personKernelId(): Promise<RecordsResult<Uuid>>;
|
|
157
184
|
fieldKernelId(): Promise<RecordsResult<Uuid>>;
|
|
@@ -471,6 +498,19 @@ interface RecordsClient {
|
|
|
471
498
|
}): Promise<RecordsResult<unknown>>;
|
|
472
499
|
/** Is the store switched on for this organization? A product switch, never the boundary. */
|
|
473
500
|
storeIsOpen(): Promise<RecordsResult<boolean>>;
|
|
501
|
+
/**
|
|
502
|
+
* WHAT THIS PERSON MAY DO TO THESE THINGS — asked once, for a whole page.
|
|
503
|
+
*
|
|
504
|
+
* There is no principal argument, on purpose: the door resolves the caller
|
|
505
|
+
* from the session, so a person can ask about their OWN access and about
|
|
506
|
+
* nobody else's. A subject they hold nothing on answers `level: null`, which
|
|
507
|
+
* is an answer; the row is never omitted, because a screen that could not
|
|
508
|
+
* tell "no access" from "not asked yet" would draw one of them as the other.
|
|
509
|
+
*/
|
|
510
|
+
myLevels(args: {
|
|
511
|
+
ids: Uuid[];
|
|
512
|
+
subject?: "record";
|
|
513
|
+
}): Promise<RecordsResult<MyLevel[]>>;
|
|
474
514
|
}
|
|
475
515
|
declare function createRecordsClient(config: RecordsConfig): RecordsClient;
|
|
476
516
|
/**
|
|
@@ -502,6 +542,9 @@ declare const DOORS: {
|
|
|
502
542
|
readonly fieldOptions: "field_options";
|
|
503
543
|
readonly parityValues: "parity_values";
|
|
504
544
|
readonly tableDeclare: "table_declare";
|
|
545
|
+
readonly fieldDeclare: "field_declare";
|
|
546
|
+
readonly fieldUpdate: "field_update";
|
|
547
|
+
readonly fieldRetire: "field_retire";
|
|
505
548
|
readonly tableCapacity: "table_capacity";
|
|
506
549
|
readonly tableStorage: "table_storage";
|
|
507
550
|
readonly promoteTable: "promote_table";
|
|
@@ -514,6 +557,7 @@ declare const DOORS: {
|
|
|
514
557
|
readonly recordReparent: "record_reparent";
|
|
515
558
|
readonly containmentChain: "containment_chain";
|
|
516
559
|
readonly storeIsOpen: "store_is_open";
|
|
560
|
+
readonly myLevels: "my_levels";
|
|
517
561
|
readonly ioRevisions: "io_revisions";
|
|
518
562
|
readonly resolveFirstMatch: "resolve_first_match";
|
|
519
563
|
readonly personKernelId: "person_kernel_id";
|
|
@@ -681,4 +725,4 @@ declare function parseCsv(text: string): string[][];
|
|
|
681
725
|
declare function importCsv(fields: Field[], text: string): ParsedImport;
|
|
682
726
|
declare function importXlsx(fields: Field[], bytes: ArrayBuffer | Uint8Array): Promise<ParsedImport>;
|
|
683
727
|
|
|
684
|
-
export { AggregateBucket, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, type ExportRow, ExternalPrincipalCard, Field, FieldProposal, MAPPED_SQLSTATES, type MirrorLimits, type ParsedImport, PgError, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, type RecordQuery, RecordRead, RecordRevision, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, StaleWriteDetail, StoredRecord, Subscription, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkAssignmentField, WorkGraph, WorkInstantiation, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
|
|
728
|
+
export { AggregateBucket, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, type ExportRow, ExternalPrincipalCard, Field, FieldPatch, FieldProposal, MAPPED_SQLSTATES, type MirrorLimits, MyLevel, NewFieldDeclaration, type ParsedImport, PgError, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, type RecordQuery, RecordRead, RecordRevision, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, StaleWriteDetail, StoredRecord, Subscription, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkAssignmentField, WorkGraph, WorkInstantiation, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, ReadValue, AnonTokenBinding, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.js';
|
|
2
|
-
export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, COMPUTE_ON, CONTEXT_POLICIES, ComputeOn, ContextPolicy, DELIVERIES, Delivery, DocSignatureCheck, ENTITY_TOKENS, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, Home, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PER_VALUE_ACCESS_WORDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, ProvenancePointer, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkTemplateNode, WorkTemplateRelation, err, isRecordsErr, measureKey, ok } from '../index.js';
|
|
1
|
+
import { Timestamp, Uuid, RelationCoordinate, RecordsConfig, RecordDocument, RecordsResult, RecordRead, ReadRow, Table, Field, StoredRecord, TableCapacity, NewFieldDeclaration, FieldPatch, AggregateMeasure, AggregateBucket, AggregateRow, Subscription, DocToken, DocUnresolvedToken, DocTemplateRow, DocRenderRow, DocSignatureRow, RecordRevision, ReadValue, AnonTokenBinding, WorkState, WorkGraph, WorkInstantiation, WorkTurn, WorkAssignmentField, WorkSlotHold, ExternalPrincipalCard, PublishBinding, ResolvedPublishBinding, FieldProposal, TableProposal, MyLevel, RecordsError, WriteConflict, PgError, RecordsDataSource, StaleWriteDetail, PredictedRefusal } from '../index.js';
|
|
2
|
+
export { ABSENCE_REASONS, ACTOR_VOCABULARY, AbsenceReason, Actor, AggregateOperation, COMPUTE_ON, CONTEXT_POLICIES, ComputeOn, ContextPolicy, DELIVERIES, Delivery, DocSignatureCheck, ENTITY_TOKENS, EntityToken, FIELD_SENSITIVITIES, FIELD_SOURCES, FRESHNESS, FieldBehavior, FieldRule, FieldSensitivity, FieldSource, ForbiddenEnvelopeWord, Freshness, HiddenFieldNotice, Home, KERNEL_TABLES, KernelTableName, MERGE_FIELD_MODIFIERS, MERGE_FIELD_SEMANTIC_TYPES, MERGE_FIELD_SOURCES, MergeField, MergeFieldModifier, MergeFieldProvenance, MergeFieldResolution, MergeFieldSemanticType, MergeFieldSource, MergeFieldTransform, MissingBehavior, ON_DELETE, OVERRIDE_POLICIES, OnDelete, OverridePolicy, PARITY_FIELD_TYPES, PERMISSION_LEVELS, PER_VALUE_ACCESS_WORDS, ParityFieldType, ParityFieldTypeDescriptor, PerValueAccessWord, PermissionLevel, ProvenancePointer, RELATION_BINDINGS, RELATION_CARDINALITIES, RELATION_FLAVORS, RETIRED_ACTOR_WORDS, RULE_NODE_KINDS, RULE_USES, RecordsActor, RecordsErrorCode, RecordsErrorSink, RecordsFilter, RecordsRealtimePort, RecordsResolverPort, RecordsResponse, RecordsTableQuery, RegisteredTable, Relation, RelationBinding, RelationCardinality, RelationCarries, RelationFlavor, RelationProperties, RelationTarget, ResolutionTriple, RetiredActorWord, Rule, RuleAnswer, RuleExpression, RuleNodeKind, RuleUse, STORAGE_MODES, STORE_DOORS, STORE_KNOBS, STORE_REFUSAL_CODES, StorageMode, StoreDoorName, StoreRefusalCode, SubscriptionBlock, SubscriptionCadence, TABLE_DISPLAYS, TABLE_ORIGINS, TABLE_TYPES, TableDisplay, TableOrigin, TableType, VALUE_ALTERNATE_KEYS, VALUE_ENVELOPE_KEYS, ValueAlternate, ValueAlternateKey, ValueEnvelope, ValueEnvelopeKey, ValueSource, WorkTemplateNode, WorkTemplateRelation, asPermissionLevel, atLeast, err, highestLevel, isRecordsErr, measureKey, ok } from '../index.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DOOR-8. As-of on EITHER clock, and they are different questions:
|
|
@@ -152,6 +152,33 @@ interface RecordsClient {
|
|
|
152
152
|
spec: Record<string, unknown>;
|
|
153
153
|
homeId: Uuid;
|
|
154
154
|
}): Promise<RecordsResult<Uuid>>;
|
|
155
|
+
/**
|
|
156
|
+
* ADD A FIELD TO A TABLE. One call, and the store does the three things no
|
|
157
|
+
* client can do for itself: it turns a parity type into the behaviour,
|
|
158
|
+
* modifiers, format, unit, relation target and Rules its own guards demand;
|
|
159
|
+
* it tells the TABLE about the field (REC-1 / FLD-8 — a definition for a
|
|
160
|
+
* field the table never declared is refused, which is the sentence every
|
|
161
|
+
* "Add field" used to end on); and it stores the definition as a FIELD
|
|
162
|
+
* rather than as a plain record, so the delete rules and the
|
|
163
|
+
* formula-dependency check can see it.
|
|
164
|
+
*
|
|
165
|
+
* A choice list carries its `options` as words. The store keeps them the only
|
|
166
|
+
* way FLD-5 / FLD-6 allows — as the records of a Table it declares for them —
|
|
167
|
+
* so nobody is made to build a table before they can have a dropdown.
|
|
168
|
+
*/
|
|
169
|
+
fieldDeclare(args: {
|
|
170
|
+
table_id: Uuid;
|
|
171
|
+
spec: NewFieldDeclaration;
|
|
172
|
+
}): Promise<RecordsResult<Uuid>>;
|
|
173
|
+
/** One field's own settings. What it HOLDS is a conversion and is refused here by name. */
|
|
174
|
+
fieldUpdate(args: {
|
|
175
|
+
field_id: Uuid;
|
|
176
|
+
patch: FieldPatch;
|
|
177
|
+
}): Promise<RecordsResult<Uuid>>;
|
|
178
|
+
/** Take a field off a table. Refuses the title field, the last field, and one another field reads through. */
|
|
179
|
+
fieldRetire(args: {
|
|
180
|
+
field_id: Uuid;
|
|
181
|
+
}): Promise<RecordsResult<boolean>>;
|
|
155
182
|
/** The kernel Tables a caller writes a Home, a Field or a Rule into. */
|
|
156
183
|
personKernelId(): Promise<RecordsResult<Uuid>>;
|
|
157
184
|
fieldKernelId(): Promise<RecordsResult<Uuid>>;
|
|
@@ -471,6 +498,19 @@ interface RecordsClient {
|
|
|
471
498
|
}): Promise<RecordsResult<unknown>>;
|
|
472
499
|
/** Is the store switched on for this organization? A product switch, never the boundary. */
|
|
473
500
|
storeIsOpen(): Promise<RecordsResult<boolean>>;
|
|
501
|
+
/**
|
|
502
|
+
* WHAT THIS PERSON MAY DO TO THESE THINGS — asked once, for a whole page.
|
|
503
|
+
*
|
|
504
|
+
* There is no principal argument, on purpose: the door resolves the caller
|
|
505
|
+
* from the session, so a person can ask about their OWN access and about
|
|
506
|
+
* nobody else's. A subject they hold nothing on answers `level: null`, which
|
|
507
|
+
* is an answer; the row is never omitted, because a screen that could not
|
|
508
|
+
* tell "no access" from "not asked yet" would draw one of them as the other.
|
|
509
|
+
*/
|
|
510
|
+
myLevels(args: {
|
|
511
|
+
ids: Uuid[];
|
|
512
|
+
subject?: "record";
|
|
513
|
+
}): Promise<RecordsResult<MyLevel[]>>;
|
|
474
514
|
}
|
|
475
515
|
declare function createRecordsClient(config: RecordsConfig): RecordsClient;
|
|
476
516
|
/**
|
|
@@ -502,6 +542,9 @@ declare const DOORS: {
|
|
|
502
542
|
readonly fieldOptions: "field_options";
|
|
503
543
|
readonly parityValues: "parity_values";
|
|
504
544
|
readonly tableDeclare: "table_declare";
|
|
545
|
+
readonly fieldDeclare: "field_declare";
|
|
546
|
+
readonly fieldUpdate: "field_update";
|
|
547
|
+
readonly fieldRetire: "field_retire";
|
|
505
548
|
readonly tableCapacity: "table_capacity";
|
|
506
549
|
readonly tableStorage: "table_storage";
|
|
507
550
|
readonly promoteTable: "promote_table";
|
|
@@ -514,6 +557,7 @@ declare const DOORS: {
|
|
|
514
557
|
readonly recordReparent: "record_reparent";
|
|
515
558
|
readonly containmentChain: "containment_chain";
|
|
516
559
|
readonly storeIsOpen: "store_is_open";
|
|
560
|
+
readonly myLevels: "my_levels";
|
|
517
561
|
readonly ioRevisions: "io_revisions";
|
|
518
562
|
readonly resolveFirstMatch: "resolve_first_match";
|
|
519
563
|
readonly personKernelId: "person_kernel_id";
|
|
@@ -681,4 +725,4 @@ declare function parseCsv(text: string): string[][];
|
|
|
681
725
|
declare function importCsv(fields: Field[], text: string): ParsedImport;
|
|
682
726
|
declare function importXlsx(fields: Field[], bytes: ArrayBuffer | Uint8Array): Promise<ParsedImport>;
|
|
683
727
|
|
|
684
|
-
export { AggregateBucket, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, type ExportRow, ExternalPrincipalCard, Field, FieldProposal, MAPPED_SQLSTATES, type MirrorLimits, type ParsedImport, PgError, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, type RecordQuery, RecordRead, RecordRevision, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, StaleWriteDetail, StoredRecord, Subscription, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkAssignmentField, WorkGraph, WorkInstantiation, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
|
|
728
|
+
export { AggregateBucket, AggregateMeasure, AggregateRow, AnonTokenBinding, type AsOf, DEFAULT_DOCUMENT_MAX_BYTES, DEFAULT_PAGE_SIZE, DEFAULT_VALUE_MAX_BYTES, DOORS, DocRenderRow, DocSignatureRow, DocTemplateRow, DocToken, DocUnresolvedToken, type DoorKey, type ExportRow, ExternalPrincipalCard, Field, FieldPatch, FieldProposal, MAPPED_SQLSTATES, type MirrorLimits, MyLevel, NewFieldDeclaration, type ParsedImport, PgError, PredictedRefusal, type PromotedPredicate, PublishBinding, type QueryPlan, ReadRow, ReadValue, RecordDocument, type RecordQuery, RecordRead, RecordRevision, type RecordsClient, RecordsConfig, RecordsDataSource, RecordsError, RecordsResult, RelationCoordinate, ResolvedPublishBinding, StaleWriteDetail, StoredRecord, Subscription, type SupabaseLike, Table, TableCapacity, TableProposal, Timestamp, Uuid, WorkAssignmentField, WorkGraph, WorkInstantiation, WorkSlotHold, WorkState, WorkTurn, WriteConflict, asWriteConflict, cellText, createRecordsClient, doorAbsent, doorCensus, doorExists, exportCsv, exportXlsx, importCsv, importXlsx, intersectIds, mapPgError, parseCsv, planQuery, predictEnvelopeRefusal, predictSizeRefusal, predictValueRefusals, predictWriteRefusals, staleWriteDetail, supabaseDataSource, toAoa };
|