@stndrds/schema 1.0.0-alpha.359 → 1.0.0-alpha.361
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/dist/{all-DesZitlD.d.mts → all-BdyT_Wvg.d.mts} +3 -3
- package/dist/{all-C-bCbBrd.d.ts → all-C8N8ymoU.d.ts} +3 -3
- package/dist/capabilities.js +1 -1
- package/dist/capabilities.mjs +1 -1
- package/dist/index.d.mts +50 -53
- package/dist/index.d.ts +50 -53
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/validation/all.d.mts +1 -1
- package/dist/validation/all.d.ts +1 -1
- package/package.json +2 -2
|
@@ -507,9 +507,9 @@ declare const publishedViewContentDefinitionSchema: z$1.ZodDiscriminatedUnion<[z
|
|
|
507
507
|
relation?: string | undefined;
|
|
508
508
|
}>>;
|
|
509
509
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
510
|
-
all: "all";
|
|
511
510
|
workspace: "workspace";
|
|
512
511
|
private: "private";
|
|
512
|
+
all: "all";
|
|
513
513
|
}>>;
|
|
514
514
|
columns: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
|
|
515
515
|
relationProperty: z$1.ZodString;
|
|
@@ -742,9 +742,9 @@ declare function draftContentViewDefinitionSchemaFor(): z$1.ZodObject<{
|
|
|
742
742
|
relation?: string | undefined;
|
|
743
743
|
}>>;
|
|
744
744
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
745
|
-
all: "all";
|
|
746
745
|
workspace: "workspace";
|
|
747
746
|
private: "private";
|
|
747
|
+
all: "all";
|
|
748
748
|
}>>;
|
|
749
749
|
columns: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
|
|
750
750
|
relationProperty: z$1.ZodString;
|
|
@@ -989,9 +989,9 @@ declare const draftContentViewDefinitionSchema: z$1.ZodObject<{
|
|
|
989
989
|
relation?: string | undefined;
|
|
990
990
|
}>>;
|
|
991
991
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
992
|
-
all: "all";
|
|
993
992
|
workspace: "workspace";
|
|
994
993
|
private: "private";
|
|
994
|
+
all: "all";
|
|
995
995
|
}>>;
|
|
996
996
|
columns: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
|
|
997
997
|
relationProperty: z$1.ZodString;
|
|
@@ -507,9 +507,9 @@ declare const publishedViewContentDefinitionSchema: z$1.ZodDiscriminatedUnion<[z
|
|
|
507
507
|
relation?: string | undefined;
|
|
508
508
|
}>>;
|
|
509
509
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
510
|
-
all: "all";
|
|
511
510
|
workspace: "workspace";
|
|
512
511
|
private: "private";
|
|
512
|
+
all: "all";
|
|
513
513
|
}>>;
|
|
514
514
|
columns: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
|
|
515
515
|
relationProperty: z$1.ZodString;
|
|
@@ -742,9 +742,9 @@ declare function draftContentViewDefinitionSchemaFor(): z$1.ZodObject<{
|
|
|
742
742
|
relation?: string | undefined;
|
|
743
743
|
}>>;
|
|
744
744
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
745
|
-
all: "all";
|
|
746
745
|
workspace: "workspace";
|
|
747
746
|
private: "private";
|
|
747
|
+
all: "all";
|
|
748
748
|
}>>;
|
|
749
749
|
columns: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
|
|
750
750
|
relationProperty: z$1.ZodString;
|
|
@@ -989,9 +989,9 @@ declare const draftContentViewDefinitionSchema: z$1.ZodObject<{
|
|
|
989
989
|
relation?: string | undefined;
|
|
990
990
|
}>>;
|
|
991
991
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
992
|
-
all: "all";
|
|
993
992
|
workspace: "workspace";
|
|
994
993
|
private: "private";
|
|
994
|
+
all: "all";
|
|
995
995
|
}>>;
|
|
996
996
|
columns: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
|
|
997
997
|
relationProperty: z$1.ZodString;
|
package/dist/capabilities.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("zod");const t=`Object UUID, kebab-case name (e.g., 'contacts'), or display label (e.g., 'Personne physique'). All three are accepted; UUID is most precise.`,n=`Relevance ranking for a name or a phrase — matches tokens, not values. Exact criteria go in filters with NO query.`,r=` For large text content (> a few KB), write it to a sandbox file first and pass {"$fromSandboxFile": "/workspace/<file>"} as the attribute value — the server substitutes the file content.`,i=e.z.object({combinator:e.z.enum([`and`,`or`]).default(`and`),rules:e.z.array(e.z.object({attribute:e.z.string().describe(`Attribute name on the object being searched`),property:e.z.string().optional().describe(`Optional, and the only way to read one part of a compound value. On a relation / document / user attribute declared with .qualifyWith({...}) it names an EDGE property (not the linked record); on a location attribute it is one of city | postalCode | country, which is how a postal code or a city is filtered exactly. The operator must be valid for that property's type. See <filter_operators>.`),operator:e.z.string().describe(`Filter operator (canonical: is, is_not, contains, not_contains, starts_with, ends_with, less_than, greater_than, less_or_equal, greater_or_equal, is_within, on_day_month, any_of, none_of, is_empty, is_not_empty). Short codes (lt, gt, lte, gte, eq, neq, in) are accepted as input and auto-normalized to the canonical names. The valid set depends on the attribute type (or property type when 'property' is set) — see <filter_operators>.`),value:e.z.unknown().nullable().describe(`Value matching the attribute (or property) type: scalar for is/contains/less_than/etc (checkbox is: true|false); array (string[]) for any_of/none_of; null for is_empty/is_not_empty; { amount, unit, direction } for is_within; { day, month } for on_day_month.`)}))}),a=e.z.array(e.z.object({attribute:e.z.string().describe(`Attribute name`),direction:e.z.enum([`asc`,`desc`])})),o=e.z.object({recordId:e.z.string().describe(`Record UUID`),fields:e.z.array(e.z.string()).optional().describe(`Attribute names to return`)}),s=e.z.object({objectId:e.z.string().describe(t),_displayLabel:e.z.string().optional().describe(`Display label`),query:e.z.string().optional().describe(n),limit:e.z.number().optional().describe(`Max results per call: 1-1000 (default 20). Paginate via offset for more.`),offset:e.z.number().optional().describe(`Skip N records (default 0)`),fields:e.z.array(e.z.string()).optional().describe(`Attribute names to include in values`),filters:i.optional().describe(`Structured filter: { combinator: 'and'|'or', rules: [{attribute, operator, value, property?}] }. Operators are constrained per attribute type — see <filter_operators>. Use 'property' on a rule to filter on a qualified edge property.`),sorts:a.optional().describe(`Sorts: [{ attribute, direction: 'asc'|'desc' }]`)}),c=e.z.object({objectId:e.z.string().describe(t),_displayLabel:e.z.string().optional().describe(`Display label`),data:e.z.record(e.z.string(),e.z.unknown()).describe(`Record data.${r}`)}),l=e.z.object({recordId:e.z.string().describe(`Record UUID`),data:e.z.record(e.z.string(),e.z.unknown()).describe(`Fields to update.${r}`)}),u=e.z.object({recordId:e.z.string().describe(`Record UUID`)}),d={get_record:{name:`get_record`,kind:`read`,input:o},search_records:{name:`search_records`,kind:`read`,input:s},create_record:{name:`create_record`,kind:`create`,input:c},update_record:{name:`update_record`,kind:`update`,input:l},delete_record:{name:`delete_record`,kind:`delete`,input:u}};exports.OBJECT_ID_DESCRIPTION=t,exports.QUERY_DESCRIPTION=n,exports.RECORD_CAPABILITIES=d,exports.SANDBOX_FILE_DATA_HINT=r,exports.filtersSchema=i,exports.sortsSchema=a;
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("zod");const t=`Object UUID, kebab-case name (e.g., 'contacts'), or display label (e.g., 'Personne physique'). All three are accepted; UUID is most precise.`,n=`Relevance ranking for a name or a phrase — matches tokens, not values. Exact criteria go in filters with NO query.`,r=` For large text content (> a few KB), write it to a sandbox file first and pass {"$fromSandboxFile": "/workspace/<file>"} as the attribute value — the server substitutes the file content.`,i=e.z.object({combinator:e.z.enum([`and`,`or`]).default(`and`),rules:e.z.array(e.z.object({attribute:e.z.string().describe(`Attribute name on the object being searched`),property:e.z.string().optional().describe(`Optional, and the only way to read one part of a compound value. On a relation / document / user attribute declared with .qualifyWith({...}) it names an EDGE property (not the linked record); on a location attribute it is one of city | postalCode | country, which is how a postal code or a city is filtered exactly. The operator must be valid for that property's type. See <filter_operators>.`),operator:e.z.string().describe(`Filter operator (canonical: is, is_not, contains, not_contains, starts_with, ends_with, less_than, greater_than, less_or_equal, greater_or_equal, is_within, on_day_month, any_of, none_of, is_empty, is_not_empty). Short codes (lt, gt, lte, gte, eq, neq, in) are accepted as input and auto-normalized to the canonical names. The valid set depends on the attribute type (or property type when 'property' is set) — see <filter_operators>.`),value:e.z.unknown().nullable().describe(`Value matching the attribute (or property) type: scalar for is/contains/less_than/etc (checkbox is: true|false); array (string[]) for any_of/none_of; null for is_empty/is_not_empty; { amount, unit, direction } for is_within; { day, month } for on_day_month; on a user attribute (or createdBy / lastUpdatedBy), { dynamic: 'actor', ref: 'current' } (@me) is the person asking.`)}))}),a=e.z.array(e.z.object({attribute:e.z.string().describe(`Attribute name`),direction:e.z.enum([`asc`,`desc`])})),o=e.z.object({recordId:e.z.string().describe(`Record UUID`),fields:e.z.array(e.z.string()).optional().describe(`Attribute names to return`)}),s=e.z.object({objectId:e.z.string().describe(t),_displayLabel:e.z.string().optional().describe(`Display label`),query:e.z.string().optional().describe(n),limit:e.z.number().optional().describe(`Max results per call: 1-1000 (default 20). Paginate via offset for more.`),offset:e.z.number().optional().describe(`Skip N records (default 0)`),fields:e.z.array(e.z.string()).optional().describe(`Attribute names to include in values`),filters:i.optional().describe(`Structured filter: { combinator: 'and'|'or', rules: [{attribute, operator, value, property?}] }. Operators are constrained per attribute type — see <filter_operators>. Use 'property' on a rule to filter on a qualified edge property.`),sorts:a.optional().describe(`Sorts: [{ attribute, direction: 'asc'|'desc' }]`)}),c=e.z.object({objectId:e.z.string().describe(t),_displayLabel:e.z.string().optional().describe(`Display label`),data:e.z.record(e.z.string(),e.z.unknown()).describe(`Record data.${r}`)}),l=e.z.object({recordId:e.z.string().describe(`Record UUID`),data:e.z.record(e.z.string(),e.z.unknown()).describe(`Fields to update.${r}`)}),u=e.z.object({recordId:e.z.string().describe(`Record UUID`)}),d={get_record:{name:`get_record`,kind:`read`,input:o},search_records:{name:`search_records`,kind:`read`,input:s},create_record:{name:`create_record`,kind:`create`,input:c},update_record:{name:`update_record`,kind:`update`,input:l},delete_record:{name:`delete_record`,kind:`delete`,input:u}};exports.OBJECT_ID_DESCRIPTION=t,exports.QUERY_DESCRIPTION=n,exports.RECORD_CAPABILITIES=d,exports.SANDBOX_FILE_DATA_HINT=r,exports.filtersSchema=i,exports.sortsSchema=a;
|
package/dist/capabilities.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
-
import{z as e}from"zod";const t=`Object UUID, kebab-case name (e.g., 'contacts'), or display label (e.g., 'Personne physique'). All three are accepted; UUID is most precise.`,n=`Relevance ranking for a name or a phrase — matches tokens, not values. Exact criteria go in filters with NO query.`,r=` For large text content (> a few KB), write it to a sandbox file first and pass {"$fromSandboxFile": "/workspace/<file>"} as the attribute value — the server substitutes the file content.`,i=e.object({combinator:e.enum([`and`,`or`]).default(`and`),rules:e.array(e.object({attribute:e.string().describe(`Attribute name on the object being searched`),property:e.string().optional().describe(`Optional, and the only way to read one part of a compound value. On a relation / document / user attribute declared with .qualifyWith({...}) it names an EDGE property (not the linked record); on a location attribute it is one of city | postalCode | country, which is how a postal code or a city is filtered exactly. The operator must be valid for that property's type. See <filter_operators>.`),operator:e.string().describe(`Filter operator (canonical: is, is_not, contains, not_contains, starts_with, ends_with, less_than, greater_than, less_or_equal, greater_or_equal, is_within, on_day_month, any_of, none_of, is_empty, is_not_empty). Short codes (lt, gt, lte, gte, eq, neq, in) are accepted as input and auto-normalized to the canonical names. The valid set depends on the attribute type (or property type when 'property' is set) — see <filter_operators>.`),value:e.unknown().nullable().describe(`Value matching the attribute (or property) type: scalar for is/contains/less_than/etc (checkbox is: true|false); array (string[]) for any_of/none_of; null for is_empty/is_not_empty; { amount, unit, direction } for is_within; { day, month } for on_day_month.`)}))}),a=e.array(e.object({attribute:e.string().describe(`Attribute name`),direction:e.enum([`asc`,`desc`])})),o=e.object({recordId:e.string().describe(`Record UUID`),fields:e.array(e.string()).optional().describe(`Attribute names to return`)}),s=e.object({objectId:e.string().describe(t),_displayLabel:e.string().optional().describe(`Display label`),query:e.string().optional().describe(n),limit:e.number().optional().describe(`Max results per call: 1-1000 (default 20). Paginate via offset for more.`),offset:e.number().optional().describe(`Skip N records (default 0)`),fields:e.array(e.string()).optional().describe(`Attribute names to include in values`),filters:i.optional().describe(`Structured filter: { combinator: 'and'|'or', rules: [{attribute, operator, value, property?}] }. Operators are constrained per attribute type — see <filter_operators>. Use 'property' on a rule to filter on a qualified edge property.`),sorts:a.optional().describe(`Sorts: [{ attribute, direction: 'asc'|'desc' }]`)}),c=e.object({objectId:e.string().describe(t),_displayLabel:e.string().optional().describe(`Display label`),data:e.record(e.string(),e.unknown()).describe(`Record data.${r}`)}),l=e.object({recordId:e.string().describe(`Record UUID`),data:e.record(e.string(),e.unknown()).describe(`Fields to update.${r}`)}),u=e.object({recordId:e.string().describe(`Record UUID`)}),d={get_record:{name:`get_record`,kind:`read`,input:o},search_records:{name:`search_records`,kind:`read`,input:s},create_record:{name:`create_record`,kind:`create`,input:c},update_record:{name:`update_record`,kind:`update`,input:l},delete_record:{name:`delete_record`,kind:`delete`,input:u}};export{t as OBJECT_ID_DESCRIPTION,n as QUERY_DESCRIPTION,d as RECORD_CAPABILITIES,r as SANDBOX_FILE_DATA_HINT,i as filtersSchema,a as sortsSchema};
|
|
2
|
+
import{z as e}from"zod";const t=`Object UUID, kebab-case name (e.g., 'contacts'), or display label (e.g., 'Personne physique'). All three are accepted; UUID is most precise.`,n=`Relevance ranking for a name or a phrase — matches tokens, not values. Exact criteria go in filters with NO query.`,r=` For large text content (> a few KB), write it to a sandbox file first and pass {"$fromSandboxFile": "/workspace/<file>"} as the attribute value — the server substitutes the file content.`,i=e.object({combinator:e.enum([`and`,`or`]).default(`and`),rules:e.array(e.object({attribute:e.string().describe(`Attribute name on the object being searched`),property:e.string().optional().describe(`Optional, and the only way to read one part of a compound value. On a relation / document / user attribute declared with .qualifyWith({...}) it names an EDGE property (not the linked record); on a location attribute it is one of city | postalCode | country, which is how a postal code or a city is filtered exactly. The operator must be valid for that property's type. See <filter_operators>.`),operator:e.string().describe(`Filter operator (canonical: is, is_not, contains, not_contains, starts_with, ends_with, less_than, greater_than, less_or_equal, greater_or_equal, is_within, on_day_month, any_of, none_of, is_empty, is_not_empty). Short codes (lt, gt, lte, gte, eq, neq, in) are accepted as input and auto-normalized to the canonical names. The valid set depends on the attribute type (or property type when 'property' is set) — see <filter_operators>.`),value:e.unknown().nullable().describe(`Value matching the attribute (or property) type: scalar for is/contains/less_than/etc (checkbox is: true|false); array (string[]) for any_of/none_of; null for is_empty/is_not_empty; { amount, unit, direction } for is_within; { day, month } for on_day_month; on a user attribute (or createdBy / lastUpdatedBy), { dynamic: 'actor', ref: 'current' } (@me) is the person asking.`)}))}),a=e.array(e.object({attribute:e.string().describe(`Attribute name`),direction:e.enum([`asc`,`desc`])})),o=e.object({recordId:e.string().describe(`Record UUID`),fields:e.array(e.string()).optional().describe(`Attribute names to return`)}),s=e.object({objectId:e.string().describe(t),_displayLabel:e.string().optional().describe(`Display label`),query:e.string().optional().describe(n),limit:e.number().optional().describe(`Max results per call: 1-1000 (default 20). Paginate via offset for more.`),offset:e.number().optional().describe(`Skip N records (default 0)`),fields:e.array(e.string()).optional().describe(`Attribute names to include in values`),filters:i.optional().describe(`Structured filter: { combinator: 'and'|'or', rules: [{attribute, operator, value, property?}] }. Operators are constrained per attribute type — see <filter_operators>. Use 'property' on a rule to filter on a qualified edge property.`),sorts:a.optional().describe(`Sorts: [{ attribute, direction: 'asc'|'desc' }]`)}),c=e.object({objectId:e.string().describe(t),_displayLabel:e.string().optional().describe(`Display label`),data:e.record(e.string(),e.unknown()).describe(`Record data.${r}`)}),l=e.object({recordId:e.string().describe(`Record UUID`),data:e.record(e.string(),e.unknown()).describe(`Fields to update.${r}`)}),u=e.object({recordId:e.string().describe(`Record UUID`)}),d={get_record:{name:`get_record`,kind:`read`,input:o},search_records:{name:`search_records`,kind:`read`,input:s},create_record:{name:`create_record`,kind:`create`,input:c},update_record:{name:`update_record`,kind:`update`,input:l},delete_record:{name:`delete_record`,kind:`delete`,input:u}};export{t as OBJECT_ID_DESCRIPTION,n as QUERY_DESCRIPTION,d as RECORD_CAPABILITIES,r as SANDBOX_FILE_DATA_HINT,i as filtersSchema,a as sortsSchema};
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { A as SearchBackendError, B as ValidationErrorDetail, C as RecordReferencedError, D as RoleNotFoundError, E as ReservedObjectNameError, F as SyncCascadeError, G as isRecordReferencedError, H as isNotFoundError, I as SyncConflictError, J as GrantIssue, K as isSchemaError, L as SyncError, M as SearchBackendFailureKind, N as StorageError, O as SchemaError, P as StorageOperation, Q as permissionGrantSchema, R as SystemEntityImmutableError, S as RecordReference, T as RepositoryOperation, U as isObjectReferencedError, V as isAttributeInUseError, W as isProtectedResourceError, X as PermissionGrant, Y as PERMISSION_ACTIONS, Z as findGrantIssues, _ as ProtectedRoleError, a as AttributeUsage, b as RealtimeSubscriptionError, c as ForbiddenError, d as NotFoundError, f as NotImplementedError, g as ProtectedResourceError, h as OrphanSystemAttributeError, i as AttributeNotFoundError, j as SearchBackendErrorOptions, k as SchemaErrorCode, l as InvalidPermissionGrantError, m as ObjectReferencedError, n as AmbiguousSchemaChangeError, o as ConcurrentModificationError, p as ObjectNotFoundError, q as isValidationError, r as AttributeInUseError, s as DuplicateError, t as AccessDeniedError, u as MemoryNotFoundError, v as RealtimeDeliveryError, w as RepositoryError, x as RecordNotFoundError, y as RealtimeRateLimitedError, z as ValidationError } from "./exceptions-DStnjN6V.mjs";
|
|
3
3
|
import { $ as COMPUTED_FUNCTION_METADATA, A as RichTextAttribute, At as ComputedFormulaAstNode, B as UserAttribute, C as NumberUnit, Ct as isComputedFunctionName, D as RELATION_TARGET_ANY, Dt as ComputedPlan, E as PhoneAttribute, Et as ComputedOptionsSource, F as SingleRelationAttribute, Ft as ComputedFormulaParseError, G as isUniversalRelation, H as inferInverseCardinality, I as StatusAttribute, It as ComputedFormulaPathNode, J as PropertyAttribute, K as relationTargetsOf, L as StatusGroup, Lt as parseComputedFormula, M as RollupAttribute, Mt as ComputedFormulaBinaryOperator, N as RollupFunction, Nt as ComputedFormulaCallNode, O as RelationAttribute, Ot as ComputedReturnType, P as SelectAttribute, Pt as ComputedFormulaLiteralNode, Q as resolvePropertyDefinitions, R as TextAttribute, S as NumberAttribute, St as ComputedFunctionSignature, T as Phone, Tt as ComputedFieldKind, U as isAttributeSortable, V as UserReferenceType, W as isBilateralRelation, X as PropertyType, Y as PropertySchema, Z as hasOptions, _ as Location, _t as assertAcyclicComputedDependencies, a as BaseAttribute, at as evaluateComputedFormulaWithResult, b as MultiRelationAttribute, bt as COMPUTED_FUNCTION_NAMES, c as Currency, ct as compileRollupAttribute, d as DateFormat, dt as CompileComputedFormulaInput, et as ComputedFunctionCategory, f as DateRangeValue, ft as ComputedCompileAttribute, g as FormulaReturnType, gt as ComputedFormulaCompileError, h as FormulaAttribute, ht as ComputedDependencyGraphNode, i as AttributeType, it as evaluateComputedFormula, j as RichtextAttribute, jt as ComputedFormulaBinaryNode, k as RelationTarget, kt as ComputedValueType, l as CurrencyAttribute, lt as inferRollupReturnType, m as DocumentAttribute, mt as ComputedCompileSchema, n as Attribute, nt as ComputedFormulaResult, o as BilateralConfig, ot as formatComputedResult, p as DateValue, pt as ComputedCompileObject, q as OptionPropertyAttribute, r as AttributeGroup, rt as evaluateComputedAst, s as CheckboxAttribute, st as isPlainRecord, t as ATTRIBUTE_TYPES, tt as ComputedFunctionMetadata, u as DateAttribute, ut as rollupToFormulaExpression, v as LocationAttribute, vt as compileComputedFormula, w as Option, wt as ComputedDependency, x as MultiselectAttribute, xt as ComputedFunctionName, y as LocationGranularity, yt as COMPUTED_FUNCTIONS, z as TimeFormat } from "./attributes-DPIr_qX6.mjs";
|
|
4
4
|
import { a as asUserId, c as indexBy, d as sameStableValue, f as serializeCanonicalJson, i as asTenantId, l as NonJsonValueError, n as UserId, o as deepEqual, p as serializeStableJson, r as Uuid, s as generateId, t as TenantId, u as canonicalStringify } from "./utils-Db_Py4G6.mjs";
|
|
5
|
-
import { $ as RelativeDateValue, A as FormDensity, B as DynamicValue, C as ContentPlacement, D as DocumentsContentDefinition, E as CustomContentDefinition, F as RichtextContentDefinition, G as FilterRule, H as ExtendedFilterRule, I as ViewContentDefinition, J as NO_VALUE_OPERATORS, K as FilterState, L as ViewRead, M as KanbanCollectionContentDefinition, N as ListViewLayout, O as EmailsContentDefinition, P as MeetingsContentDefinition, Q as QueryState, R as CurrencyFilterValue, S as ContentOpenMode, T as ContentViewDefinition, U as FilterCombinator, V as EdgeQuantifier, W as FilterOperator, X as OPERATORS_BY_TYPE, Y as NoValueOperator, Z as PhoneFilterValue, _ as CollectionContentSource, a as displayAttributesSchema, b as ContentField, c as filterStateSchema, d as colorIdSchema, et as SortDirection, f as iconNameSchema, g as CollectionContentDefinition, h as CollectionAction, i as contentViewDefinitionSchemaFor, j as FormsContentDefinition, k as FormContentDefinition, l as publishedViewContentDefinitionSchema, m as ActivityContentDefinition, n as columnsSchema, nt as getRollupFilterOperators, o as draftContentViewDefinitionSchema, p as SCHEMA_LIMITS, q as FilterValue, r as contentViewDefinitionSchema, rt as isNoValueOperator, s as draftContentViewDefinitionSchemaFor, t as collectionContentSourceSchema, tt as SortRule, u as sortsSchema, v as ColumnReference, w as ContentViewContext, x as ContentFieldGroup, y as ContentCreateMode, z as DayMonthValue } from "./all-
|
|
5
|
+
import { $ as RelativeDateValue, A as FormDensity, B as DynamicValue, C as ContentPlacement, D as DocumentsContentDefinition, E as CustomContentDefinition, F as RichtextContentDefinition, G as FilterRule, H as ExtendedFilterRule, I as ViewContentDefinition, J as NO_VALUE_OPERATORS, K as FilterState, L as ViewRead, M as KanbanCollectionContentDefinition, N as ListViewLayout, O as EmailsContentDefinition, P as MeetingsContentDefinition, Q as QueryState, R as CurrencyFilterValue, S as ContentOpenMode, T as ContentViewDefinition, U as FilterCombinator, V as EdgeQuantifier, W as FilterOperator, X as OPERATORS_BY_TYPE, Y as NoValueOperator, Z as PhoneFilterValue, _ as CollectionContentSource, a as displayAttributesSchema, b as ContentField, c as filterStateSchema, d as colorIdSchema, et as SortDirection, f as iconNameSchema, g as CollectionContentDefinition, h as CollectionAction, i as contentViewDefinitionSchemaFor, j as FormsContentDefinition, k as FormContentDefinition, l as publishedViewContentDefinitionSchema, m as ActivityContentDefinition, n as columnsSchema, nt as getRollupFilterOperators, o as draftContentViewDefinitionSchema, p as SCHEMA_LIMITS, q as FilterValue, r as contentViewDefinitionSchema, rt as isNoValueOperator, s as draftContentViewDefinitionSchemaFor, t as collectionContentSourceSchema, tt as SortRule, u as sortsSchema, v as ColumnReference, w as ContentViewContext, x as ContentFieldGroup, y as ContentCreateMode, z as DayMonthValue } from "./all-BdyT_Wvg.mjs";
|
|
6
6
|
import { A as RecordAccessRole, B as PresetNode, C as ResourceVisibility, D as parseResourceVisibility, E as Timestamps, F as deriveViewerAccess, I as parseRecordAccessRole, L as DocumentLayout, M as RecordAudience, N as RecordAudienceGrant, O as RECORD_ACCESS_ROLES, P as ViewerAccess, R as FolderPreset, S as ReservedObjectName, T as SystemFieldName, _ as ObjectRecord, a as validateDraft, b as RESOURCE_VISIBILITIES, c as validateObjectOrThrow, f as createFormAttributeValidator, g as ObjectDefinition, h as ObjectAttribute, j as RecordAccessSource, k as RECORD_ACCESS_SOURCES, m as ListViewTabVisibility, o as validateDraftOrThrow, p as LIST_VIEW_TAB_VISIBILITIES, r as rejectUnknownAttributesOrThrow, s as validateObject, v as RESERVED_ATTRIBUTE_NAMES, w as SYSTEM_FIELD_NAMES, x as ReservedAttributeName, y as RESERVED_OBJECT_NAMES, z as MAX_PRESET_DEPTH } from "./index-B7Aho10z.mjs";
|
|
7
7
|
import { C as RelationOption, S as CreateCustomObjectInput, T as UpdateObjectInput, _ as statusGroupSchema, b as withoutUnknownOptionKeys, c as parseAttributeConfig, d as propertyAttributeSchema, f as propertyAttributeWireSchema, g as selectOptionWriteSchema, h as refuseForeignKeys, i as attributeConfigSchemas, l as parseAttributeConfigForCreate, m as propertySchemaWireSchema, p as propertySchemaSchema, r as WIRE_OMITTED_CONFIG_KEYS, s as multiselectOptionWriteSchema, t as SIMPLE_PROPERTY_TYPES, u as parseAttributeConfigForUpdate, v as statusOptionWriteSchema, w as RelationOptionsResponse, x as AddAttributeInput, y as wireOmittedConfigKeysFor } from "./index-3l917IWo.mjs";
|
|
8
8
|
import { n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "./index-IgE3Rdnx.mjs";
|
|
@@ -1825,7 +1825,7 @@ export declare const canonicalViewOperationSchema: z$1.ZodDiscriminatedUnion<[z$
|
|
|
1825
1825
|
kanbanColumnOrder?: string[] | undefined;
|
|
1826
1826
|
kanbanColumnVisibility?: Record<string, boolean> | undefined;
|
|
1827
1827
|
kanbanPinnedColumns?: string[] | undefined;
|
|
1828
|
-
visibility?: "
|
|
1828
|
+
visibility?: "workspace" | "private" | "all" | undefined;
|
|
1829
1829
|
columns?: (string | {
|
|
1830
1830
|
relationProperty: string;
|
|
1831
1831
|
})[] | undefined;
|
|
@@ -1987,9 +1987,9 @@ export declare const canonicalViewOperationSchema: z$1.ZodDiscriminatedUnion<[z$
|
|
|
1987
1987
|
relation?: string | undefined;
|
|
1988
1988
|
}>>;
|
|
1989
1989
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1990
|
-
all: "all";
|
|
1991
1990
|
workspace: "workspace";
|
|
1992
1991
|
private: "private";
|
|
1992
|
+
all: "all";
|
|
1993
1993
|
}>>;
|
|
1994
1994
|
columns: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
|
|
1995
1995
|
relationProperty: z$1.ZodString;
|
|
@@ -7451,6 +7451,24 @@ export interface AcceptTenantInvitationInput {
|
|
|
7451
7451
|
proof: string;
|
|
7452
7452
|
identity: AcceptTenantInvitationIdentity;
|
|
7453
7453
|
}
|
|
7454
|
+
/**
|
|
7455
|
+
* What the invitee may read about a still-usable invitation before joining —
|
|
7456
|
+
* fetched with the single-use proof, never with a session.
|
|
7457
|
+
*/
|
|
7458
|
+
export interface TenantInvitationPreview {
|
|
7459
|
+
invitationId: Uuid;
|
|
7460
|
+
email: string;
|
|
7461
|
+
expiresAt: Date;
|
|
7462
|
+
inviter: {
|
|
7463
|
+
name: string;
|
|
7464
|
+
};
|
|
7465
|
+
role: {
|
|
7466
|
+
name: string;
|
|
7467
|
+
};
|
|
7468
|
+
workspace?: {
|
|
7469
|
+
name: string;
|
|
7470
|
+
};
|
|
7471
|
+
}
|
|
7454
7472
|
//#endregion
|
|
7455
7473
|
//#region src/connectors/types.d.ts
|
|
7456
7474
|
/** Built-in external connector providers. Mirrors the runtime's
|
|
@@ -7895,12 +7913,6 @@ export interface UserProfile extends Timestamps {
|
|
|
7895
7913
|
* Last login timestamp (updated on each successful auth)
|
|
7896
7914
|
*/
|
|
7897
7915
|
lastLoginAt?: Date;
|
|
7898
|
-
/**
|
|
7899
|
-
* Whether the user is still pending their initial invitation (has never logged in).
|
|
7900
|
-
* Derived field — true when `lastLoginAt` is unset.
|
|
7901
|
-
* Used by the UI to gate "Resend invite" vs "Reset access" actions.
|
|
7902
|
-
*/
|
|
7903
|
-
invitePending: boolean;
|
|
7904
7916
|
}
|
|
7905
7917
|
/**
|
|
7906
7918
|
* A profile as the members screen (spec A1) needs it: the underlying user
|
|
@@ -7948,24 +7960,6 @@ export interface UpdateUserProfile {
|
|
|
7948
7960
|
/** Omit to preserve the preference; null clears it. */
|
|
7949
7961
|
defaultChatModel?: ModelReference | null;
|
|
7950
7962
|
}
|
|
7951
|
-
/**
|
|
7952
|
-
* Data for inviting a new user by email.
|
|
7953
|
-
* Creates an active user profile and sends an invitation email via Supabase Auth.
|
|
7954
|
-
* The role is resolved and checked BEFORE any provisioning (spec 3 A4); with no
|
|
7955
|
-
* `roleId`, the default `member` role is assigned automatically by the service.
|
|
7956
|
-
*/
|
|
7957
|
-
export interface InviteUserInput {
|
|
7958
|
-
/** Email address to invite */
|
|
7959
|
-
email: string;
|
|
7960
|
-
/** User's first name (stored in user_metadata) */
|
|
7961
|
-
firstName?: string;
|
|
7962
|
-
/** User's last name (stored in user_metadata) */
|
|
7963
|
-
lastName?: string;
|
|
7964
|
-
/** URL to redirect after accepting invitation */
|
|
7965
|
-
redirectTo?: string;
|
|
7966
|
-
/** Role to assign instead of the default `member`. Checked before provisioning. */
|
|
7967
|
-
roleId?: string;
|
|
7968
|
-
}
|
|
7969
7963
|
//#endregion
|
|
7970
7964
|
//#region src/types/schema-groups.d.ts
|
|
7971
7965
|
export type SchemaGroupKind = "bundle" | "source";
|
|
@@ -10733,7 +10727,7 @@ export declare class ContentBuilder<T extends {
|
|
|
10733
10727
|
createMode: ContentCreateMode;
|
|
10734
10728
|
}>>;
|
|
10735
10729
|
visibility(this: ContentBuilder<T & Collection>, visibility: ListViewTabVisibility): ContentBuilder<SetFields<T & Collection, {
|
|
10736
|
-
visibility: "
|
|
10730
|
+
visibility: "workspace" | "private" | "all";
|
|
10737
10731
|
}>>;
|
|
10738
10732
|
descriptionAttribute<const N extends string>(this: ContentBuilder<T & Collection>, descriptionAttribute: N): ContentBuilder<SetFields<T & Collection, {
|
|
10739
10733
|
descriptionAttribute: N;
|
|
@@ -11498,7 +11492,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
11498
11492
|
}, "type"> & {
|
|
11499
11493
|
type: "collection";
|
|
11500
11494
|
}, "visibility"> & {
|
|
11501
|
-
visibility: "
|
|
11495
|
+
visibility: "workspace" | "private" | "all";
|
|
11502
11496
|
} & Pick<Omit<Omit<Omit<{
|
|
11503
11497
|
type: "collection";
|
|
11504
11498
|
}, "source"> & {
|
|
@@ -11560,7 +11554,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
11560
11554
|
}, "type"> & {
|
|
11561
11555
|
type: "collection";
|
|
11562
11556
|
}, "visibility"> & {
|
|
11563
|
-
visibility: "
|
|
11557
|
+
visibility: "workspace" | "private" | "all";
|
|
11564
11558
|
} & Pick<Omit<Omit<Omit<{
|
|
11565
11559
|
type: "collection";
|
|
11566
11560
|
}, "source"> & {
|
|
@@ -11624,7 +11618,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
11624
11618
|
}, "type"> & {
|
|
11625
11619
|
type: "collection";
|
|
11626
11620
|
}, "visibility"> & {
|
|
11627
|
-
visibility: "
|
|
11621
|
+
visibility: "workspace" | "private" | "all";
|
|
11628
11622
|
} & Pick<Omit<Omit<Omit<{
|
|
11629
11623
|
type: "collection";
|
|
11630
11624
|
}, "source"> & {
|
|
@@ -11686,7 +11680,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
11686
11680
|
}, "type"> & {
|
|
11687
11681
|
type: "collection";
|
|
11688
11682
|
}, "visibility"> & {
|
|
11689
|
-
visibility: "
|
|
11683
|
+
visibility: "workspace" | "private" | "all";
|
|
11690
11684
|
} & Pick<Omit<Omit<Omit<{
|
|
11691
11685
|
type: "collection";
|
|
11692
11686
|
}, "source"> & {
|
|
@@ -11752,7 +11746,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
11752
11746
|
}, "type"> & {
|
|
11753
11747
|
type: "collection";
|
|
11754
11748
|
}, "visibility"> & {
|
|
11755
|
-
visibility: "
|
|
11749
|
+
visibility: "workspace" | "private" | "all";
|
|
11756
11750
|
} & Pick<Omit<Omit<Omit<{
|
|
11757
11751
|
type: "collection";
|
|
11758
11752
|
}, "source"> & {
|
|
@@ -11814,7 +11808,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
11814
11808
|
}, "type"> & {
|
|
11815
11809
|
type: "collection";
|
|
11816
11810
|
}, "visibility"> & {
|
|
11817
|
-
visibility: "
|
|
11811
|
+
visibility: "workspace" | "private" | "all";
|
|
11818
11812
|
} & Pick<Omit<Omit<Omit<{
|
|
11819
11813
|
type: "collection";
|
|
11820
11814
|
}, "source"> & {
|
|
@@ -11878,7 +11872,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
11878
11872
|
}, "type"> & {
|
|
11879
11873
|
type: "collection";
|
|
11880
11874
|
}, "visibility"> & {
|
|
11881
|
-
visibility: "
|
|
11875
|
+
visibility: "workspace" | "private" | "all";
|
|
11882
11876
|
} & Pick<Omit<Omit<Omit<{
|
|
11883
11877
|
type: "collection";
|
|
11884
11878
|
}, "source"> & {
|
|
@@ -11940,7 +11934,7 @@ export declare const DRIVE_LIST_VIEW: ViewDeclaration<"drive-list", "drives", "c
|
|
|
11940
11934
|
}, "type"> & {
|
|
11941
11935
|
type: "collection";
|
|
11942
11936
|
}, "visibility"> & {
|
|
11943
|
-
visibility: "
|
|
11937
|
+
visibility: "workspace" | "private" | "all";
|
|
11944
11938
|
} & Pick<Omit<Omit<Omit<{
|
|
11945
11939
|
type: "collection";
|
|
11946
11940
|
}, "source"> & {
|
|
@@ -12215,7 +12209,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
12215
12209
|
}, "type"> & {
|
|
12216
12210
|
type: "collection";
|
|
12217
12211
|
}, "visibility"> & {
|
|
12218
|
-
visibility: "
|
|
12212
|
+
visibility: "workspace" | "private" | "all";
|
|
12219
12213
|
} & Pick<Omit<Omit<Omit<{
|
|
12220
12214
|
type: "collection";
|
|
12221
12215
|
}, "source"> & {
|
|
@@ -12277,7 +12271,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
12277
12271
|
}, "type"> & {
|
|
12278
12272
|
type: "collection";
|
|
12279
12273
|
}, "visibility"> & {
|
|
12280
|
-
visibility: "
|
|
12274
|
+
visibility: "workspace" | "private" | "all";
|
|
12281
12275
|
} & Pick<Omit<Omit<Omit<{
|
|
12282
12276
|
type: "collection";
|
|
12283
12277
|
}, "source"> & {
|
|
@@ -12341,7 +12335,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
12341
12335
|
}, "type"> & {
|
|
12342
12336
|
type: "collection";
|
|
12343
12337
|
}, "visibility"> & {
|
|
12344
|
-
visibility: "
|
|
12338
|
+
visibility: "workspace" | "private" | "all";
|
|
12345
12339
|
} & Pick<Omit<Omit<Omit<{
|
|
12346
12340
|
type: "collection";
|
|
12347
12341
|
}, "source"> & {
|
|
@@ -12403,7 +12397,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
12403
12397
|
}, "type"> & {
|
|
12404
12398
|
type: "collection";
|
|
12405
12399
|
}, "visibility"> & {
|
|
12406
|
-
visibility: "
|
|
12400
|
+
visibility: "workspace" | "private" | "all";
|
|
12407
12401
|
} & Pick<Omit<Omit<Omit<{
|
|
12408
12402
|
type: "collection";
|
|
12409
12403
|
}, "source"> & {
|
|
@@ -12469,7 +12463,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
12469
12463
|
}, "type"> & {
|
|
12470
12464
|
type: "collection";
|
|
12471
12465
|
}, "visibility"> & {
|
|
12472
|
-
visibility: "
|
|
12466
|
+
visibility: "workspace" | "private" | "all";
|
|
12473
12467
|
} & Pick<Omit<Omit<Omit<{
|
|
12474
12468
|
type: "collection";
|
|
12475
12469
|
}, "source"> & {
|
|
@@ -12531,7 +12525,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
12531
12525
|
}, "type"> & {
|
|
12532
12526
|
type: "collection";
|
|
12533
12527
|
}, "visibility"> & {
|
|
12534
|
-
visibility: "
|
|
12528
|
+
visibility: "workspace" | "private" | "all";
|
|
12535
12529
|
} & Pick<Omit<Omit<Omit<{
|
|
12536
12530
|
type: "collection";
|
|
12537
12531
|
}, "source"> & {
|
|
@@ -12595,7 +12589,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
12595
12589
|
}, "type"> & {
|
|
12596
12590
|
type: "collection";
|
|
12597
12591
|
}, "visibility"> & {
|
|
12598
|
-
visibility: "
|
|
12592
|
+
visibility: "workspace" | "private" | "all";
|
|
12599
12593
|
} & Pick<Omit<Omit<Omit<{
|
|
12600
12594
|
type: "collection";
|
|
12601
12595
|
}, "source"> & {
|
|
@@ -12657,7 +12651,7 @@ export declare const MEETING_LIST_VIEW: ViewDeclaration<"meeting-list", "meeting
|
|
|
12657
12651
|
}, "type"> & {
|
|
12658
12652
|
type: "collection";
|
|
12659
12653
|
}, "visibility"> & {
|
|
12660
|
-
visibility: "
|
|
12654
|
+
visibility: "workspace" | "private" | "all";
|
|
12661
12655
|
} & Pick<Omit<Omit<Omit<{
|
|
12662
12656
|
type: "collection";
|
|
12663
12657
|
}, "source"> & {
|
|
@@ -12870,6 +12864,8 @@ export type AgentUIMessageBatchItem<TChunk = unknown> = {
|
|
|
12870
12864
|
startOffset: number;
|
|
12871
12865
|
endOffset: number;
|
|
12872
12866
|
};
|
|
12867
|
+
/** Wall-clock time (epoch ms) at which the runtime enqueued the chunk. */
|
|
12868
|
+
emittedAtMs?: number;
|
|
12873
12869
|
chunk: TChunk;
|
|
12874
12870
|
};
|
|
12875
12871
|
export type AgentUIMessageBatch<TChunk = unknown> = {
|
|
@@ -13085,9 +13081,11 @@ export declare function filterTargetsOf(attributes: readonly Attribute[]): Filte
|
|
|
13085
13081
|
/** True when a filter value is a query-time dynamic token. */
|
|
13086
13082
|
export declare function isDynamicValue(value: unknown): value is DynamicValue;
|
|
13087
13083
|
/**
|
|
13088
|
-
* `@me` — resolves to the current identity
|
|
13089
|
-
*
|
|
13090
|
-
*
|
|
13084
|
+
* `@me` — resolves to the current identity: every id the read scope names
|
|
13085
|
+
* (the actor, and in an agent turn the person it runs for) plus the user
|
|
13086
|
+
* behind each, matched with `any_of`/`none_of`. Works on `user` attributes
|
|
13087
|
+
* (which store the user id) and on `createdBy`/`lastUpdatedBy` (which store
|
|
13088
|
+
* the actor id).
|
|
13091
13089
|
*/
|
|
13092
13090
|
export declare function currentActor(): DynamicValue;
|
|
13093
13091
|
/** `@today` — resolves to today's date (ctx timezone). Use on `date` attributes. */
|
|
@@ -13097,14 +13095,13 @@ export declare function now(): DynamicValue;
|
|
|
13097
13095
|
/** Execution context made available to dynamic-value resolvers. */
|
|
13098
13096
|
export interface ResolutionContext {
|
|
13099
13097
|
tenantId: TenantId;
|
|
13100
|
-
actorId?: Uuid;
|
|
13101
|
-
rootActorId?: Uuid;
|
|
13102
13098
|
/**
|
|
13103
|
-
*
|
|
13104
|
-
*
|
|
13105
|
-
*
|
|
13099
|
+
* The ids `@me` resolves to: the read scope's actor ids — the acting actor
|
|
13100
|
+
* and, when the context names one, the root human it works for (a chat
|
|
13101
|
+
* turn's asker, a scheduled run's creator; a trigger-fired run has none) —
|
|
13102
|
+
* plus the user behind each. Empty or absent drops the rule.
|
|
13106
13103
|
*/
|
|
13107
|
-
|
|
13104
|
+
currentIdentityIds?: readonly Uuid[];
|
|
13108
13105
|
now: Date;
|
|
13109
13106
|
/** IANA timezone used to resolve `@today`. Defaults to "UTC" when unknown. */
|
|
13110
13107
|
timezone: string;
|