@stndrds/schema 0.1.0-alpha.53 → 0.1.0-alpha.55
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/{chunk-2EIZ6QXN.mjs → chunk-4NLKDJWD.mjs} +3505 -1417
- package/dist/{chunk-67XEOXQL.js → chunk-QBDGRMSC.js} +3619 -1531
- package/dist/index.d.mts +320 -150
- package/dist/index.d.ts +320 -150
- package/dist/index.js +95 -7
- package/dist/index.mjs +122 -34
- package/dist/{runtime-B5JYQdZx.d.mts → runtime-ka1bmD0F.d.mts} +2849 -633
- package/dist/{runtime-B5JYQdZx.d.ts → runtime-ka1bmD0F.d.ts} +2849 -633
- package/dist/runtime.d.mts +2 -1
- package/dist/runtime.d.ts +2 -1
- package/dist/runtime.js +32 -2
- package/dist/runtime.mjs +45 -15
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { D as DateAttribute, U as UserAttribute, A as Attribute, S as SystemResource,
|
|
2
|
-
export { aa as AIChatMessage, a9 as AIChatMessagePart, a4 as AIChatMessagePartType, aj as AIConversation, gD as AIConversationsRepository, ak as AIMessage, ai as AIMessageAttachment, a0 as AIMessageRole, ao as AIProviderMetrics, ad as AIQuestion, ae as AIQuestionAnswer, ac as AIQuestionOption, ab as AIQuestionType, a1 as AIThinkingLevel, ag as AITodoItem, ah as AITodoList, af as AITodoStatus, a3 as AIToolCall, al as AIToolCallRecord, a2 as AIToolCallStatus, an as AIUsageMetrics, gF as AIUsageMetricsRepository, am as AIUserMemory, gE as AIUserMemoryRepository, ck as ActivityTab, by as AddAttribute, gN as AddAttributeInput, b4 as AdvancedFilterState, c7 as AssignRoleInput, gh as AttributeChange, ar as AttributeGroup, bx as AttributeMap, bt as AttributeSchema, gt as AttributesRepository, aE as AuditAction, aF as AuditActorType, aG as AuditChange, aJ as AuditListOptions, aH as AuditLogEntry, gB as AuditRepository, aD as AuditResourceType, hP as AuditService, aK as AuditServiceOptions, hG as AuthenticationResult, as as BaseAttribute, gH as BaseRepository, gG as BaseService, eR as CacheAdapter, eP as CacheKeyType, eS as CacheOptions, cU as CanvasViewport, aS as CheckboxFilterOperator, bX as CompletionStatus, fL as ConditionExecutor, cy as ConditionNode, cI as ConditionOperator, ap as CreateAIMessageInput, aI as CreateAuditLogInput, gM as CreateCustomObjectInput, is as CreateDBAttribute, io as CreateDBObject, iC as CreateDBView, iG as CreateDBWorkflow, iJ as CreateDBWorkflowInstance, iM as CreateDBWorkflowParticipation, aO as CreateFile, iv as CreateObjectRecord, hE as CreateParticipationInput, hF as CreateParticipationResult, c6 as CreatePermissionInput, c4 as CreateRoleInput, ce as CreateUserProfile, hX as CreateViewInput, hw as CreateWorkflowInput, ax as Currency, aZ as CurrencyFilterValue, bC as CustomAttributeValue, cj as CustomTab, ir as DBAttribute, im as DBObject, iB as DBView, iF as DBWorkflow, iI as DBWorkflowInstance, iL as DBWorkflowParticipation, ic as DEFAULT_LABEL_FALLBACK, dx as DEFAULT_THEME, dK as DEFAULT_VALIDATION_MESSAGES, eD as DatabaseAdapter, aT as DateFilterOperator, au as DateFormat, av as DateValue, c1 as EffectivePermissions, fM as EndExecutor, cz as EndNode, fc as EvaluationResult, fd as EvaluationTrace, fz as ExecutorCompleteResult, fA as ExecutorContext, fB as ExecutorErrorResult, fI as ExecutorRegistry, fC as ExecutorResult, fD as ExecutorSuccessResult, fE as ExecutorWaitResult, b1 as ExtendedFilterRule, bM as ExtractAttributes, bO as ExtractObjectRecord, bP as ExtractObjectRecordWithCustom, bG as ExtractRecord, bI as ExtractRecordInput, bJ as ExtractRecordInputStrict, bH as ExtractRecordStrict, bK as ExtractRecordUpdate, bL as ExtractRecordUpdateStrict, eX as FetchResult, hI as FieldReadOnlyResult, aN as File, h_ as FileContent, iA as FileListOptions, hS as FileService, hR as FileServiceOptions, aM as FileVisibility, gv as FilesRepository, b2 as FilterCombinator, b3 as FilterGroup, aX as FilterOperator, b0 as FilterRule, a$ as FilterValue, bj as FlowDefinition, bg as FlowPage, bh as FlowRelation, bf as FlowRowField, be as FlowSlot, bi as FlowStatus, cm as FlowsTab, dt as FormContextResponse, fN as FormExecutor, dq as FormFieldContext, cx as FormFieldRef, dr as FormFieldRow, cw as FormNode, ds as FormNodeInfo, ci as FormTab, eY as FormattedRecord, h8 as FormulaResolverService, h7 as FormulaResolverServiceOptions, f$ as FormulaResult, ia as FullSyncOptions, i9 as FullSyncResult, dh as GeneratedDocument, br as GeocodingAdapter, bo as GeocodingAutocompleteParams, bq as GeocodingParams, hT as GeocodingService, bn as GeocodingSuggestion, h0 as GetRelationOptionsParams, iy as GlobalSearchOptions, iz as GlobalSearchResultItem, hU as GlobalSearchService, eZ as GroupedFetchResult, gi as HookContext, gj as HookDefinition, gk as HookHandler, gn as HookRegistry, gl as HookType, bz as InferRecord, bu as InferRecordFromSchema, bA as InferRecordInput, bB as InferRecordUpdate, bv as InferRecordWithRequirements, e_ as InsertOptions, g3 as InvalidPathError, cg as InviteUserInput, hn as LabelResolver, iw as ListOptions, ay as Location, az as LocationGranularity, g4 as MaxDepthExceededError, aV as MultiselectFilterOperator, bc as NO_VALUE_OPERATORS, bb as NoValueOperator, fF as NodeExecutor, cT as NodePosition, eW as NoopCacheAdapter, bs as NoopGeocodingAdapter, gm as NoopHookRegistry, cl as NotesTab, aR as NumberFilterOperator, at as NumberUnit, ba as OPERATORS_BY_TYPE, bW as ObjectAttribute, c2 as ObjectPermissions, bY as ObjectRecord, gw as ObjectRecordsRepository, gQ as ObjectSchemaService, gP as ObjectSchemaServiceOptions, gs as ObjectsRepository, iO as OperationResult, cW as ParticipantAuthConfig, da as ParticipationAuth, d7 as ParticipationStatus, eH as ParticipationTokenPayload, eE as ParticipationTokenService, g8 as PathCardinality, g9 as PathSegment, ga as PathSegmentType, d1 as PendingAction, b$ as Permission, bZ as PermissionScope, hW as PermissionService, hV as PermissionServiceOptions, gC as PermissionsRepository, aw as Phone, a_ as PhoneFilterValue, d9 as PinCodeAuth, eN as PinCodeGenerationOptions, eK as PinCodeService, eO as PinCodeVerificationResult, c8 as PolicyContext, gq as PolicyRegistry, ca as PolicyViolationError, fa as QueryBuilder, fb as QueryBuilderOptions, e$ as QueryBuilderState, f6 as QueryMultipleResultsError, f7 as QueryNoResultError, gU as QueryOptions, gW as QueryResult, b9 as QueryState, aA as RELATION_TARGET_ANY, bQ as RESERVED_ATTRIBUTE_NAMES, dp as ReadOnlyReason, a8 as ReasoningPartData, bE as RecordMetadata, c9 as RecordPolicy, gX as RecordQueryService, gT as RecordQueryServiceOptions, h5 as RecordResolverService, gS as RecordService, gR as RecordServiceOptions, f0 as RegistryMap, f1 as RegistryObjectNames, aB as RelationAttribute, aW as RelationFilterOperator, ik as RelationLabelResolver, g_ as RelationOption, g$ as RelationOptionsResponse, h4 as RelationService, h1 as RelationServiceOptions, gZ as RelationValidationError, gY as RelationValidationResult, aY as RelativeDateValue, bS as ReservedAttributeName, h2 as ResolveIdsBatchRequest, h3 as ResolveIdsBatchResponse, h6 as ResolvedRelations, hB as ResumeWorkflowInput, bp as ReverseGeocodingParams, b_ as Role, hv as RollupCascadeContext, h9 as RollupResult, hd as RollupScheduler, hc as RollupSchedulerOptions, hb as RollupService, ha as RollupServiceOptions, f8 as SHORTCUT_TO_FILTER_OPERATOR, bR as SYSTEM_FIELD_NAMES, fp as SchemaContext, gI as SchemaContextAware, gJ as SchemaContextAwareRepository, gb as SchemaResolver, ix as SearchOptions, gV as SearchQueryOptions, aU as SelectFilterOperator, bV as SharingMode, f2 as ShortcutOperator, d8 as SignedLinkAuth, i1 as SignedUrlOptions, b8 as SortDirection, fO as StartExecutor, cv as StartNode, hA as StartWorkflowInput, aq as StatusGroup, i2 as StorageAdapter, aL as StorageProvider, h$ as StorageUploadInput, i0 as StorageUploadResult, i5 as SyncOptions, i4 as SyncResult, bT as SystemFieldName, bF as SystemFields, c3 as SystemPermissions, ch as TabType, gK as TenantAwareRepository, gL as TenantAwareService, fw as TenantContext, fh as TenantContextError, dB as TenantId, aQ as TextFilterOperator, a5 as TextPartData, dv as ThemeColors, du as ThemeLogo, dw as ThemeTypography, a7 as ThinkingPartData, bU as Timestamps, eI as TokenGenerationOptions, eJ as TokenVerificationResult, a6 as ToolPartData, gf as TraversalOptions, gg as TraversalResult, bw as TypedAttribute, bN as TypedObjectRecord, it as UpdateDBAttribute, ip as UpdateDBObject, iD as UpdateDBView, iH as UpdateDBWorkflow, iK as UpdateDBWorkflowInstance, iN as UpdateDBWorkflowParticipation, aP as UpdateFile, gO as UpdateObjectInput, c5 as UpdateRoleInput, cf as UpdateUserProfile, hY as UpdateViewInput, hx as UpdateWorkflowInput, i3 as UploadFileInput, iu as UpsertDBAttribute, iq as UpsertDBObject, iE as UpsertDBView, dC as UserId, cd as UserProfile, hO as UserProfileService, hN as UserProfileServiceOptions, gu as UserProfilesRepository, cb as UserRole, c0 as UserRoleAssignment, hM as UserService, cc as UserStatus, hL as UserValidationError, hK as UserValidationResult, dA as Uuid, dJ as ValidationMessages, et as ValidationResult, hZ as ViewService, iQ as ViewSyncOptions, iP as ViewSyncResult, gx as ViewsRepository, bD as WithCustomAttributes, dn as WorkflowAccessMode, d0 as WorkflowError, di as WorkflowExecutionContext, d2 as WorkflowInstance, hD as WorkflowInstanceService, hC as WorkflowInstanceServiceOptions, gz as WorkflowInstancesRepository, cV as WorkflowLayout, cA as WorkflowNodeType, db as WorkflowParticipation, hH as WorkflowParticipationService, gA as WorkflowParticipationsRepository, hJ as WorkflowRelationService, hz as WorkflowService, hy as WorkflowServiceOptions, cS as WorkflowSlot, cX as WorkflowStatus, c$ as WorkflowTransition, gy as WorkflowsRepository, fi as addSchemaToContext, cN as and, he as applyDefaultValues, dD as asTenantId, dE as asUserId, e1 as attributeConfigSchemas, hQ as buildAuditChanges, hh as buildPolicyContext, eT as cacheKeys, eU as cacheTtl, df as canAuthenticate, dg as canExecuteNode, de as canParticipate, d5 as canResumeInstance, hf as checkPermission, hi as checkRecordAccess, hk as checkRecordDeleteOrThrow, hj as checkRecordModifyOrThrow, hl as checkSharedObjectWriteAccess, dP as checkboxConfigSchema, fG as complete, hm as computeLabel, il as computeLabelWithRelations, eC as computeRecordStatus, eq as createAttributeValidator, e8 as createCheckboxValidator, hq as createContextForCreate, hs as createContextForDelete, ht as createContextForRestore, hr as createContextForUpdate, eb as createCurrencyValidator, e9 as createDateValidator, fx as createDefaultExecutorRegistry, f3 as createDefaultState, ex as createDraftValidator, dj as createEmptyContext, eg as createFileValidator, er as createFormAttributeValidator, em as createFormulaValidator, ef as createLocationValidator, go as createMockAdapter, ej as createMultiRelationValidator, ee as createMultiselectValidator, e7 as createNumberValidator, es as createObjectValidator, ea as createPhoneValidator, f9 as createQueryBuilder, el as createRatingValidator, ek as createRelationValidator, ep as createRichtextValidator, en as createRollupValidator, ed as createSelectValidator, ei as createSingleRelationValidator, d6 as createStartTransition, ec as createStatusValidator, eo as createTextAreaValidator, e6 as createTextValidator, eh as createUserValidator, dS as currencyConfigSchema, dQ as dateConfigSchema, gp as defaultPolicyRegistry, eV as defaultTtl, hp as enrichRecordsWithFormulas, ih as enrichValuesForDisplay, ii as enrichValuesWithSelectLabels, ho as enrichWithFormulas, cL as eq, fH as error, ff as evaluate, fe as evaluateCondition, fP as evaluateFormula, fQ as evaluateFormulaAttribute, fR as evaluateFormulaAttributeWithRelations, fS as evaluateFormulaWithRelations, fT as evaluateFormulaWithResult, fg as evaluateWithTrace, ig as extractAttributeNames, fU as extractFormulaVariables, ij as extractRelationIds, fV as extractRelationNames, fW as extractRelationReferences, dX as fileConfigSchema, fX as flattenRelationsForEval, fY as formatFormulaResult, f4 as formatRecord, f5 as formatRecords, d$ as formulaConfigSchema, dz as generateCssVariables, dF as generateId, dG as generatePrefixedId, e2 as getAttributeConfigSchema, fq as getContext, dk as getContextValue, fy as getDefaultExecutorRegistry, eL as getDefaultPinCodeService, eF as getDefaultTokenService, eA as getMissingRequiredAttributes, cH as getNodeOutputs, g0 as getPathDepth, hg as getPolicy, g1 as getRelationPath, fj as getSchemaByNameFromContext, fk as getSchemaContext, fl as getSchemaFromContext, i8 as getSyncPreview, g2 as getTargetAttributeName, fr as getTenantId, fs as getUserId, iT as getViewSyncPreview, ft as hasContext, fZ as hasRelationReferences, fm as hasSchemaContext, eQ as hashOptions, cP as inValues, eM as initializePinCodeService, eG as initializeTokenService, cs as isActivityTab, b5 as isAdvancedFilterState, cG as isAdvancedFormNode, cK as isConditionGroup, cD as isConditionNode, cJ as isConditionRule, cr as isCustomTab, cp as isDirectTableTab, cQ as isEmpty, cE as isEndNode, bk as isFlowDefinition, bl as isFlowPublished, cu as isFlowsTab, cC as isFormNode, cn as isFormTab, d3 as isInstanceTerminal, d4 as isInstanceWaiting, cq as isInverseTableTab, ie as isLabelExpression, bd as isNoValueOperator, cR as isNotEmpty, ct as isNotesTab, dd as isPinCodeAuth, eB as isRecordComplete, dc as isSignedLinkAuth, cF as isSimpleFormNode, cB as isStartNode, bm as isSystemFlow, c_ as isSystemWorkflow, co as isTableTab, aC as isUniversalRelation, cY as isWorkflowDefinition, cZ as isWorkflowPublished, dU as locationConfigSchema, dm as mergeFormToSlot, dy as mergeWithDefaults, dW as multiselectConfigSchema, cM as neq, gr as notesPolicy, dO as numberConfigSchema, cO as or, e4 as parseAttributeConfig, g5 as parsePath, g6 as pathHasManyCardinality, dR as phoneConfigSchema, d_ as ratingConfigSchema, hu as recalculateParentRollups, dH as registry, dZ as relationConfigSchema, id as renderLabelExpression, gc as resolveMultiplePaths, gd as resolveSingleValue, dN as richtextConfigSchema, e0 as rollupConfigSchema, fu as runWithContext, fn as runWithMergedSchemaContext, fo as runWithSchemaContext, e5 as safeParseAttributeConfig, dV as selectConfigSchema, dl as setContextValue, dT as statusConfigSchema, fJ as success, ib as syncAll, i6 as syncNativeObjects, iR as syncNativeViews, dL as textConfigSchema, dM as textareaConfigSchema, b6 as toAdvancedFilterState, b7 as toSimpleFilterState, ge as traversePath, dY as userConfigSchema, eu as validateAttribute, e3 as validateAttributeConfig, ey as validateDraft, ez as validateDraftOrThrow, f_ as validateFormulaExpression, ev as validateObject, ew as validateObjectOrThrow, g7 as validatePath, i7 as verifyNativeObjectsSync, iS as verifyNativeViewsSync, dI as viewRegistry, fK as wait, fv as withTenantContext } from './runtime-B5JYQdZx.js';
|
|
1
|
+
import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute, S as SystemResource, b as SystemAction, O as ObjectAction, T as TextAttribute, c as TextAreaAttribute, R as RichtextAttribute, d as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, P as PhoneAttribute, e as CurrencyAttribute, f as Option, g as StatusAttribute, h as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, F as FileAttribute, i as SingleRelationAttribute, j as MultiRelationAttribute, k as RelationTarget, l as RatingAttribute, m as FormulaAttribute, n as FormulaReturnType, o as RollupAttribute, p as RollupFunction, q as AttributeType, I as InferAttributeValue, r as ObjectDefinition, s as Field, t as AttributeGroupField, G as Group, u as TableTab, V as ViewLayout, v as InverseTableTab, w as ViewDefinition, x as InstanceStatus, y as Tab, z as FilterState, B as SortRule, E as DirectTableTab, W as WorkflowTheme, H as WorkflowConfig, J as SlotMode, K as ConditionGroup, Q as ConditionRule, X as WorkflowNode, Y as WorkflowDefinition, Z as FlowRow, _ as DocumentTemplate } from './runtime-ka1bmD0F.js';
|
|
2
|
+
export { az as AIBatchQuestion, aA as AIBatchQuestionAnswer, ay as AIBatchQuestionOption, at as AIChatMessage, as as AIChatMessagePart, an as AIChatMessagePartType, aF as AIConversation, hy as AIConversationsRepository, aG as AIMessage, aE as AIMessageAttachment, aj as AIMessageRole, aK as AIProviderMetrics, aw as AIQuestion, ax as AIQuestionAnswer, av as AIQuestionOption, au as AIQuestionType, ak as AIThinkingLevel, aC as AITodoItem, aD as AITodoList, aB as AITodoStatus, am as AIToolCall, aH as AIToolCallRecord, al as AIToolCallStatus, aJ as AIUsageMetrics, hA as AIUsageMetricsRepository, aI as AIUserMemory, hz as AIUserMemoryRepository, d8 as ActivityTab, cm as AddAttribute, hO as AddAttributeInput, bU as AdvancedFilterState, cX as AssignRoleInput, hb as AttributeChange, aN as AttributeGroup, cl as AttributeMap, ch as AttributeSchema, hn as AttributesRepository, a_ as AuditAction, a$ as AuditActorType, b0 as AuditChange, b3 as AuditListOptions, b1 as AuditLogEntry, hw as AuditRepository, aZ as AuditResourceType, j1 as AuditService, b4 as AuditServiceOptions, aO as BaseAttribute, hI as BaseRepository, hH as BaseService, a5 as BoundingBox, fK as CacheAdapter, fI as CacheKeyType, fL as CacheOptions, dL as CanvasViewport, bG as CheckboxFilterOperator, cL as CompletionStatus, gE as ConditionExecutor, dl as ConditionNode, dB as ConditionOperator, aL as CreateAIMessageInput, b2 as CreateAuditLogInput, hN as CreateCustomObjectInput, jV as CreateDBAttribute, jR as CreateDBObject, k3 as CreateDBView, k7 as CreateDBWorkflow, kg as CreateDBWorkflowAccessGrant, ka as CreateDBWorkflowInstance, kd as CreateDBWorkflowInvitation, bp as CreateDocument, b9 as CreateDocumentGenerationTemplate, bt as CreateDocumentSlot, br as CreateDocumentTemplate, bC as CreateFile, e6 as CreateGrantInput, iG as CreateGrantResult, d$ as CreateInvitationInput, e0 as CreateInvitationResult, jY as CreateObjectRecord, cW as CreatePermissionInput, bv as CreateProcessingJob, jg as CreateRecordDocumentInput, jh as CreateRecordDocumentResult, cU as CreateRoleInput, a7 as CreateSignatureInput, d2 as CreateUserProfile, jq as CreateViewInput, iU as CreateWorkflowInput, aT as Currency, bN as CurrencyFilterValue, cq as CustomAttributeValue, d7 as CustomTab, jU as DBAttribute, jQ as DBObject, k2 as DBView, k6 as DBWorkflow, kf as DBWorkflowAccessGrant, k9 as DBWorkflowInstance, kc as DBWorkflowInvitation, jH as DEFAULT_LABEL_FALLBACK, es as DEFAULT_THEME, eH as DEFAULT_VALIDATION_MESSAGES, fB as DatabaseAdapter, bH as DateFilterOperator, aQ as DateFormat, aR as DateValue, bi as Document, bf as DocumentAutoProcessing, ah as DocumentData, gF as DocumentExecutor, j4 as DocumentGenerationNotConfiguredError, j5 as DocumentGenerationService, b8 as DocumentGenerationTemplate, hF as DocumentGenerationTemplateListOptions, j3 as DocumentGenerationTemplateNotFoundError, hG as DocumentGenerationTemplatesRepository, hE as DocumentJobsRepository, bx as DocumentListOptions, dm as DocumentNode, j6 as DocumentProcessingConfig, iA as DocumentProcessingHook, iz as DocumentProcessingHookOptions, j7 as DocumentProcessingService, jb as DocumentRenderError, j9 as DocumentRendererOptions, jd as DocumentRendererService, jj as DocumentService, ji as DocumentServiceOptions, bk as DocumentSlot, be as DocumentSlotDefinition, hD as DocumentSlotsRepository, bj as DocumentStatus, by as DocumentTemplateListOptions, je as DocumentTemplateService, hB as DocumentTemplatesRepository, hC as DocumentsRepository, db as DocumentsTab, cR as EffectivePermissions, gG as EndExecutor, dn as EndNode, g5 as EvaluationResult, g6 as EvaluationTrace, gs as ExecutorCompleteResult, gt as ExecutorContext, gu as ExecutorErrorResult, gB as ExecutorRegistry, gv as ExecutorResult, gw as ExecutorSuccessResult, gx as ExecutorWaitResult, bR as ExtendedFilterRule, cA as ExtractAttributes, cC as ExtractObjectRecord, cD as ExtractObjectRecordWithCustom, cu as ExtractRecord, cw as ExtractRecordInput, cx as ExtractRecordInputStrict, cv as ExtractRecordStrict, cy as ExtractRecordUpdate, cz as ExtractRecordUpdateStrict, bh as ExtractionField, bg as ExtractionMapping, fQ as FetchResult, iS as FieldReadOnlyResult, bB as File, jt as FileContent, k1 as FileListOptions, jl as FileService, jk as FileServiceOptions, bA as FileVisibility, hp as FilesRepository, bS as FilterCombinator, bT as FilterGroup, bL as FilterOperator, bQ as FilterRule, bP as FilterValue, c7 as FlowDefinition, c4 as FlowPage, c5 as FlowRelation, c3 as FlowRowField, c2 as FlowSlot, c6 as FlowStatus, da as FlowsTab, ej as FormContextResponse, gH as FormExecutor, ek as FormFieldContext, dp as FormFieldRef, el as FormFieldRow, dq as FormNode, em as FormNodeInfo, d6 as FormTab, fR as FormattedRecord, i9 as FormulaResolverService, i8 as FormulaResolverServiceOptions, gV as FormulaResult, jF as FullSyncOptions, jE as FullSyncResult, ed as GeneratedDocument, cf as GeocodingAdapter, cc as GeocodingAutocompleteParams, ce as GeocodingParams, jm as GeocodingService, cb as GeocodingSuggestion, i1 as GetRelationOptionsParams, j$ as GlobalSearchOptions, k0 as GlobalSearchResultItem, jn as GlobalSearchService, iC as GrantExpiredError, iB as GrantNotFoundError, iD as GrantRevokedError, iF as GrantServiceConfig, fS as GroupedFetchResult, hc as HookContext, hd as HookDefinition, he as HookHandler, hh as HookRegistry, hf as HookType, ae as IdentityVerificationAdapter, cn as InferRecord, ci as InferRecordFromSchema, co as InferRecordInput, cp as InferRecordUpdate, cj as InferRecordWithRequirements, fT as InsertOptions, gZ as InvalidPathError, iP as InvitationAlreadyAcceptedError, iO as InvitationExpiredError, iN as InvitationNotFoundError, iQ as InvitationRevokedError, iM as InvitationServiceConfig, e1 as InvitationStatus, d4 as InviteUserInput, fD as JwtVerificationResult, iq as LabelResolver, jZ as ListOptions, aU as Location, aV as LocationGranularity, fE as MagicLinkPayload, g_ as MaxDepthExceededError, bJ as MultiselectFilterOperator, c0 as NO_VALUE_OPERATORS, b$ as NoValueOperator, gy as NodeExecutor, dM as NodePosition, fP as NoopCacheAdapter, cg as NoopGeocodingAdapter, hg as NoopHookRegistry, d9 as NotesTab, bF as NumberFilterOperator, aP as NumberUnit, b_ as OPERATORS_BY_TYPE, cK as ObjectAttribute, cS as ObjectPermissions, cM as ObjectRecord, hq as ObjectRecordsRepository, hR as ObjectSchemaService, hQ as ObjectSchemaServiceOptions, hm as ObjectsRepository, $ as OcrAdapter, a0 as OcrInput, a1 as OcrOptions, a3 as OcrPage, a2 as OcrResult, a4 as OcrTextBlock, ki as OperationResult, h2 as PathCardinality, h3 as PathSegment, h4 as PathSegmentType, b6 as PdfTemplateField, dT as PendingAction, bb as PendingDocumentRequest, cP as Permission, cN as PermissionScope, jp as PermissionService, jo as PermissionServiceOptions, hx as PermissionsRepository, aS as Phone, bO as PhoneFilterValue, cY as PolicyContext, hk as PolicyRegistry, c_ as PolicyViolationError, bm as ProcessingJob, bo as ProcessingJobStatus, bn as ProcessingJobType, g3 as QueryBuilder, g4 as QueryBuilderOptions, fU as QueryBuilderState, f$ as QueryMultipleResultsError, g0 as QueryNoResultError, hV as QueryOptions, hX as QueryResult, bZ as QueryState, aW as RELATION_TARGET_ANY, cE as RESERVED_ATTRIBUTE_NAMES, en as ReadOnlyReason, ar as ReasoningPartData, jf as RecordDocumentsResult, cs as RecordMetadata, cZ as RecordPolicy, hY as RecordQueryService, hU as RecordQueryServiceOptions, i6 as RecordResolverService, hT as RecordService, hS as RecordServiceOptions, fV as RegistryMap, fW as RegistryObjectNames, aX as RelationAttribute, bK as RelationFilterOperator, jO as RelationLabelResolver, h$ as RelationOption, i0 as RelationOptionsResponse, i5 as RelationService, i2 as RelationServiceOptions, h_ as RelationValidationError, hZ as RelationValidationResult, bM as RelativeDateValue, j8 as RenderDocumentInput, ja as RenderDocumentResult, cG as ReservedAttributeName, i3 as ResolveIdsBatchRequest, i4 as ResolveIdsBatchResponse, i7 as ResolvedRelations, iJ as ResumeWorkflowInput, cd as ReverseGeocodingParams, cO as Role, iy as RollupCascadeContext, ia as RollupResult, ie as RollupScheduler, id as RollupSchedulerOptions, ic as RollupService, ib as RollupServiceOptions, g1 as SHORTCUT_TO_FILTER_OPERATOR, cF as SYSTEM_FIELD_NAMES, gi as SchemaContext, hJ as SchemaContextAware, hK as SchemaContextAwareRepository, h5 as SchemaResolver, j_ as SearchOptions, hW as SearchQueryOptions, bI as SelectFilterOperator, cJ as SharingMode, fX as ShortcutOperator, a6 as SignatureAdapter, a9 as SignaturePosition, aa as SignatureRequestResult, ad as SignatureStatus, ab as SignatureStatusResult, jw as SignedUrlOptions, a8 as SignerRequest, ac as SignerStatus, bl as SlotStatus, bY as SortDirection, gI as StartExecutor, dr as StartNode, iI as StartWorkflowInput, aM as StatusGroup, jx as StorageAdapter, jc as StorageDownloadNotSupportedError, bz as StorageProvider, ju as StorageUploadInput, jv as StorageUploadResult, jA as SyncOptions, jz as SyncResult, cH as SystemFieldName, ct as SystemFields, cT as SystemPermissions, d5 as TabType, b7 as TemplateSource, hL as TenantAwareRepository, hM as TenantAwareService, gp as TenantContext, ga as TenantContextError, ew as TenantId, bE as TextFilterOperator, ao as TextPartData, ep as ThemeColors, eq as ThemeLogo, er as ThemeTypography, aq as ThinkingPartData, cI as Timestamps, iE as TokenRevokedError, ap as ToolPartData, h9 as TraversalOptions, ha as TraversalResult, ck as TypedAttribute, cB as TypedObjectRecord, jW as UpdateDBAttribute, jS as UpdateDBObject, k4 as UpdateDBView, k8 as UpdateDBWorkflow, kh as UpdateDBWorkflowAccessGrant, kb as UpdateDBWorkflowInstance, ke as UpdateDBWorkflowInvitation, bq as UpdateDocument, ba as UpdateDocumentGenerationTemplate, bu as UpdateDocumentSlot, bs as UpdateDocumentTemplate, bD as UpdateFile, hP as UpdateObjectInput, bw as UpdateProcessingJob, cV as UpdateRoleInput, d3 as UpdateUserProfile, jr as UpdateViewInput, iV as UpdateWorkflowInput, jy as UploadFileInput, jX as UpsertDBAttribute, jT as UpsertDBObject, k5 as UpsertDBView, ex as UserId, d1 as UserProfile, j0 as UserProfileService, i$ as UserProfileServiceOptions, ho as UserProfilesRepository, c$ as UserRole, cQ as UserRoleAssignment, i_ as UserService, d0 as UserStatus, iZ as UserValidationError, iY as UserValidationResult, ev as Uuid, eG as ValidationMessages, fr as ValidationResult, b5 as VariableMapping, ai as VerificationCheck, ag as VerificationResult, af as VerifyInput, js as ViewService, kk as ViewSyncOptions, kj as ViewSyncResult, hr as ViewsRepository, cr as WithCustomAttributes, e7 as WorkflowAccessGrant, iH as WorkflowAccessGrantService, hv as WorkflowAccessGrantsRepository, eo as WorkflowAccessMode, fF as WorkflowAccessPayload, dU as WorkflowError, ee as WorkflowExecutionContext, dV as WorkflowInstance, iL as WorkflowInstanceService, iK as WorkflowInstanceServiceOptions, ht as WorkflowInstancesRepository, e2 as WorkflowInvitation, iR as WorkflowInvitationService, hu as WorkflowInvitationsRepository, fG as WorkflowJwtConfig, fH as WorkflowJwtPayload, fC as WorkflowJwtService, dN as WorkflowLayout, ds as WorkflowNodeType, iT as WorkflowRelationService, iX as WorkflowService, iW as WorkflowServiceOptions, dO as WorkflowSlot, dP as WorkflowStatus, dW as WorkflowTransition, hs as WorkflowsRepository, gb as addSchemaToContext, dC as and, ig as applyDefaultValues, ey as asTenantId, ez as asUserId, e$ as attributeConfigSchemas, j2 as buildAuditChanges, ij as buildPolicyContext, fM as cacheKeys, fN as cacheTtl, e8 as canAccessNode, dX as canResumeInstance, ih as checkPermission, ik as checkRecordAccess, im as checkRecordDeleteOrThrow, il as checkRecordModifyOrThrow, io as checkSharedObjectWriteAccess, eM as checkboxConfigSchema, gz as complete, ip as computeLabel, jP as computeLabelWithRelations, fA as computeRecordStatus, fo as createAttributeValidator, f6 as createCheckboxValidator, it as createContextForCreate, iv as createContextForDelete, iw as createContextForRestore, iu as createContextForUpdate, f9 as createCurrencyValidator, f7 as createDateValidator, gq as createDefaultExecutorRegistry, fY as createDefaultState, fv as createDraftValidator, ef as createEmptyContext, fe as createFileValidator, fp as createFormAttributeValidator, fk as createFormulaValidator, fd as createLocationValidator, hi as createMockAdapter, fh as createMultiRelationValidator, fc as createMultiselectValidator, f5 as createNumberValidator, fq as createObjectValidator, f8 as createPhoneValidator, g2 as createQueryBuilder, fj as createRatingValidator, fi as createRelationValidator, fn as createRichtextValidator, fl as createRollupValidator, fb as createSelectValidator, fg as createSingleRelationValidator, dY as createStartTransition, fa as createStatusValidator, fm as createTextAreaValidator, f4 as createTextValidator, ff as createUserValidator, eP as currencyConfigSchema, eN as dateConfigSchema, hj as defaultPolicyRegistry, fO as defaultTtl, e_ as documentConfigSchema, is as enrichRecordsWithFormulas, jL as enrichValuesForDisplay, jM as enrichValuesWithSelectLabels, ir as enrichWithFormulas, dD as eq, gA as error, g8 as evaluate, g7 as evaluateCondition, gJ as evaluateFormula, gK as evaluateFormulaAttribute, gL as evaluateFormulaAttributeWithRelations, gM as evaluateFormulaWithRelations, gN as evaluateFormulaWithResult, g9 as evaluateWithTrace, jK as extractAttributeNames, gO as extractFormulaVariables, jN as extractRelationIds, gP as extractRelationNames, gQ as extractRelationReferences, eU as fileConfigSchema, gR as flattenRelationsForEval, gS as formatFormulaResult, fZ as formatRecord, f_ as formatRecords, eY as formulaConfigSchema, et as generateCssVariables, eA as generateId, eB as generatePrefixedId, eD as generateTemplateName, f0 as getAttributeConfigSchema, gj as getContext, eg as getContextValue, gr as getDefaultExecutorRegistry, fy as getMissingRequiredAttributes, dt as getNodeOutputs, gW as getPathDepth, ii as getPolicy, gX as getRelationPath, gc as getSchemaByNameFromContext, gd as getSchemaContext, ge as getSchemaFromContext, jD as getSyncPreview, gY as getTargetAttributeName, gk as getTenantId, gl as getUserId, kn as getViewSyncPreview, gm as hasContext, gT as hasRelationReferences, gf as hasSchemaContext, fJ as hashOptions, dE as inValues, dh as isActivityTab, bV as isAdvancedFilterState, du as isAdvancedFormNode, dF as isConditionGroup, dv as isConditionNode, dG as isConditionRule, dg as isCustomTab, de as isDirectTableTab, dw as isDocumentNode, dk as isDocumentsTab, bd as isDocxTemplateSource, dH as isEmpty, dx as isEndNode, c8 as isFlowDefinition, c9 as isFlowPublished, dj as isFlowsTab, dy as isFormNode, dc as isFormTab, e9 as isGrantExpired, ea as isGrantRevoked, eb as isGrantValid, dZ as isInstanceTerminal, d_ as isInstanceWaiting, df as isInverseTableTab, e3 as isInvitationAccepted, e4 as isInvitationExpired, e5 as isInvitationValid, jJ as isLabelExpression, c1 as isNoValueOperator, dI as isNotEmpty, di as isNotesTab, bc as isPdfTemplateSource, fz as isRecordComplete, dz as isSimpleFormNode, dA as isStartNode, ca as isSystemFlow, dQ as isSystemWorkflow, dd as isTableTab, ec as isTokenRevoked, aY as isUniversalRelation, dR as isWorkflowDefinition, dS as isWorkflowPublished, eR as locationConfigSchema, eh as mergeFormToSlot, eu as mergeWithDefaults, eT as multiselectConfigSchema, dJ as neq, hl as notesPolicy, eL as numberConfigSchema, dK as or, f2 as parseAttributeConfig, g$ as parsePath, h0 as pathHasManyCardinality, eO as phoneConfigSchema, eX as ratingConfigSchema, ix as recalculateParentRollups, eE as registry, eW as relationConfigSchema, jI as renderLabelExpression, h6 as resolveMultiplePaths, h7 as resolveSingleValue, eK as richtextConfigSchema, eZ as rollupConfigSchema, gn as runWithContext, gg as runWithMergedSchemaContext, gh as runWithSchemaContext, f3 as safeParseAttributeConfig, eS as selectConfigSchema, ei as setContextValue, eC as slugify, eQ as statusConfigSchema, gC as success, jG as syncAll, jB as syncNativeObjects, kl as syncNativeViews, eI as textConfigSchema, eJ as textareaConfigSchema, bW as toAdvancedFilterState, bX as toSimpleFilterState, h8 as traversePath, eV as userConfigSchema, fs as validateAttribute, f1 as validateAttributeConfig, fw as validateDraft, fx as validateDraftOrThrow, gU as validateFormulaExpression, ft as validateObject, fu as validateObjectOrThrow, h1 as validatePath, jC as verifyNativeObjectsSync, km as verifyNativeViewsSync, eF as viewRegistry, gD as wait, go as withTenantContext } from './runtime-ka1bmD0F.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { IconName, CountryIso3, CurrencyCode, MimeType, ColorId } from '@stndrds/constants';
|
|
5
|
+
import 'jose';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* AI Agent Types
|
|
@@ -280,65 +281,65 @@ interface WorkflowNodeFailedEvent extends BaseWorkflowEvent {
|
|
|
280
281
|
willContinue: boolean;
|
|
281
282
|
}
|
|
282
283
|
/**
|
|
283
|
-
* Event fired when
|
|
284
|
+
* Event fired when an invitation is created
|
|
284
285
|
*/
|
|
285
|
-
interface
|
|
286
|
-
type: "workflow.
|
|
287
|
-
/** ID of the
|
|
288
|
-
|
|
286
|
+
interface WorkflowInvitationCreatedEvent extends BaseWorkflowEvent {
|
|
287
|
+
type: "workflow.invitation.created";
|
|
288
|
+
/** ID of the invitation */
|
|
289
|
+
invitationId: string;
|
|
289
290
|
/** ID of the workflow instance */
|
|
290
291
|
instanceId: string;
|
|
291
|
-
/** Email of the
|
|
292
|
+
/** Email of the recipient */
|
|
292
293
|
email: string;
|
|
293
|
-
/** Name of the
|
|
294
|
+
/** Name of the recipient */
|
|
294
295
|
name?: string;
|
|
295
|
-
/** Authentication method used */
|
|
296
|
-
authMethod: "signed_link" | "pin_code";
|
|
297
296
|
/** When the invitation expires */
|
|
298
297
|
expiresAt: Date;
|
|
299
298
|
}
|
|
300
299
|
/**
|
|
301
|
-
* Event fired when
|
|
300
|
+
* Event fired when an invitation is accepted (magic link clicked)
|
|
302
301
|
*/
|
|
303
|
-
interface
|
|
304
|
-
type: "workflow.
|
|
305
|
-
/** ID of the
|
|
306
|
-
|
|
302
|
+
interface WorkflowInvitationAcceptedEvent extends BaseWorkflowEvent {
|
|
303
|
+
type: "workflow.invitation.accepted";
|
|
304
|
+
/** ID of the invitation */
|
|
305
|
+
invitationId: string;
|
|
306
|
+
/** ID of the created access grant */
|
|
307
|
+
grantId: string;
|
|
307
308
|
/** ID of the workflow instance */
|
|
308
309
|
instanceId: string;
|
|
309
|
-
/** Email of the
|
|
310
|
+
/** Email of the recipient */
|
|
310
311
|
email: string;
|
|
311
312
|
/** IP address used for authentication */
|
|
312
313
|
ipAddress?: string;
|
|
313
314
|
}
|
|
314
315
|
/**
|
|
315
|
-
* Event fired when
|
|
316
|
+
* Event fired when an access grant is revoked
|
|
316
317
|
*/
|
|
317
|
-
interface
|
|
318
|
-
type: "workflow.
|
|
319
|
-
/** ID of the
|
|
320
|
-
|
|
318
|
+
interface WorkflowGrantRevokedEvent extends BaseWorkflowEvent {
|
|
319
|
+
type: "workflow.grant.revoked";
|
|
320
|
+
/** ID of the access grant */
|
|
321
|
+
grantId: string;
|
|
321
322
|
/** ID of the workflow instance */
|
|
322
323
|
instanceId: string;
|
|
323
|
-
/**
|
|
324
|
-
|
|
324
|
+
/** Email of the user */
|
|
325
|
+
email: string;
|
|
325
326
|
}
|
|
326
327
|
/**
|
|
327
|
-
* Event fired when
|
|
328
|
+
* Event fired when an invitation expires
|
|
328
329
|
*/
|
|
329
|
-
interface
|
|
330
|
-
type: "workflow.
|
|
331
|
-
/** ID of the
|
|
332
|
-
|
|
330
|
+
interface WorkflowInvitationExpiredEvent extends BaseWorkflowEvent {
|
|
331
|
+
type: "workflow.invitation.expired";
|
|
332
|
+
/** ID of the invitation */
|
|
333
|
+
invitationId: string;
|
|
333
334
|
/** ID of the workflow instance */
|
|
334
335
|
instanceId: string;
|
|
335
|
-
/** Email of the
|
|
336
|
+
/** Email of the recipient */
|
|
336
337
|
email: string;
|
|
337
338
|
}
|
|
338
339
|
/**
|
|
339
340
|
* Union of all workflow event types
|
|
340
341
|
*/
|
|
341
|
-
type WorkflowEvent = WorkflowInstanceStartedEvent | WorkflowInstanceCompletedEvent | WorkflowInstanceFailedEvent | WorkflowInstanceCancelledEvent | WorkflowNodeEnteredEvent | WorkflowNodeCompletedEvent | WorkflowNodeFailedEvent |
|
|
342
|
+
type WorkflowEvent = WorkflowInstanceStartedEvent | WorkflowInstanceCompletedEvent | WorkflowInstanceFailedEvent | WorkflowInstanceCancelledEvent | WorkflowNodeEnteredEvent | WorkflowNodeCompletedEvent | WorkflowNodeFailedEvent | WorkflowInvitationCreatedEvent | WorkflowInvitationAcceptedEvent | WorkflowGrantRevokedEvent | WorkflowInvitationExpiredEvent;
|
|
342
343
|
/**
|
|
343
344
|
* All possible event types
|
|
344
345
|
*/
|
|
@@ -352,9 +353,9 @@ declare function isInstanceEvent(event: WorkflowEvent): event is WorkflowInstanc
|
|
|
352
353
|
*/
|
|
353
354
|
declare function isNodeEvent(event: WorkflowEvent): event is WorkflowNodeEnteredEvent | WorkflowNodeCompletedEvent | WorkflowNodeFailedEvent;
|
|
354
355
|
/**
|
|
355
|
-
* Check if an event is
|
|
356
|
+
* Check if an event is an invitation or grant event
|
|
356
357
|
*/
|
|
357
|
-
declare function
|
|
358
|
+
declare function isInvitationOrGrantEvent(event: WorkflowEvent): event is WorkflowInvitationCreatedEvent | WorkflowInvitationAcceptedEvent | WorkflowGrantRevokedEvent | WorkflowInvitationExpiredEvent;
|
|
358
359
|
|
|
359
360
|
/**
|
|
360
361
|
* All valid condition operators
|
|
@@ -509,6 +510,22 @@ declare const ConditionNodeSchema: z.ZodObject<{
|
|
|
509
510
|
onTrue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
511
|
onFalse: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
512
|
}, z.core.$strip>;
|
|
513
|
+
/**
|
|
514
|
+
* Document node schema
|
|
515
|
+
*/
|
|
516
|
+
declare const DocumentNodeSchema: z.ZodObject<{
|
|
517
|
+
type: z.ZodLiteral<"document">;
|
|
518
|
+
id: z.ZodString;
|
|
519
|
+
label: z.ZodString;
|
|
520
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
521
|
+
templateId: z.ZodString;
|
|
522
|
+
outputFormat: z.ZodEnum<{
|
|
523
|
+
pdf: "pdf";
|
|
524
|
+
docx: "docx";
|
|
525
|
+
}>;
|
|
526
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
527
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
|
+
}, z.core.$strip>;
|
|
512
529
|
/**
|
|
513
530
|
* End node schema
|
|
514
531
|
*/
|
|
@@ -574,6 +591,18 @@ declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
574
591
|
}, unknown>>;
|
|
575
592
|
onTrue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
576
593
|
onFalse: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
594
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
595
|
+
type: z.ZodLiteral<"document">;
|
|
596
|
+
id: z.ZodString;
|
|
597
|
+
label: z.ZodString;
|
|
598
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
599
|
+
templateId: z.ZodString;
|
|
600
|
+
outputFormat: z.ZodEnum<{
|
|
601
|
+
pdf: "pdf";
|
|
602
|
+
docx: "docx";
|
|
603
|
+
}>;
|
|
604
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
605
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
577
606
|
}, z.core.$strip>, z.ZodObject<{
|
|
578
607
|
type: z.ZodLiteral<"end">;
|
|
579
608
|
id: z.ZodString;
|
|
@@ -604,43 +633,63 @@ declare const WorkflowSlotSchema: z.ZodObject<{
|
|
|
604
633
|
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
605
634
|
}, z.core.$strip>;
|
|
606
635
|
/**
|
|
607
|
-
*
|
|
636
|
+
* Authentication method schema
|
|
637
|
+
*/
|
|
638
|
+
declare const AuthMethodSchema: z.ZodEnum<{
|
|
639
|
+
signed_link: "signed_link";
|
|
640
|
+
pin_code: "pin_code";
|
|
641
|
+
}>;
|
|
642
|
+
/**
|
|
643
|
+
* Share status schema
|
|
644
|
+
*/
|
|
645
|
+
declare const ShareStatusSchema: z.ZodEnum<{
|
|
646
|
+
pending: "pending";
|
|
647
|
+
expired: "expired";
|
|
648
|
+
revoked: "revoked";
|
|
649
|
+
active: "active";
|
|
650
|
+
}>;
|
|
651
|
+
/**
|
|
652
|
+
* Workflow share schema (simplified from WorkflowParticipation)
|
|
608
653
|
*/
|
|
609
|
-
declare const
|
|
610
|
-
|
|
654
|
+
declare const WorkflowShareSchema: z.ZodObject<{
|
|
655
|
+
id: z.ZodString;
|
|
656
|
+
instanceId: z.ZodString;
|
|
657
|
+
email: z.ZodString;
|
|
658
|
+
name: z.ZodOptional<z.ZodString>;
|
|
659
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
660
|
+
authMethod: z.ZodEnum<{
|
|
611
661
|
signed_link: "signed_link";
|
|
612
662
|
pin_code: "pin_code";
|
|
613
663
|
}>;
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
664
|
+
token: z.ZodOptional<z.ZodString>;
|
|
665
|
+
pinCodeHash: z.ZodOptional<z.ZodString>;
|
|
666
|
+
pinAttempts: z.ZodOptional<z.ZodNumber>;
|
|
667
|
+
status: z.ZodEnum<{
|
|
668
|
+
pending: "pending";
|
|
669
|
+
expired: "expired";
|
|
670
|
+
revoked: "revoked";
|
|
671
|
+
active: "active";
|
|
672
|
+
}>;
|
|
673
|
+
emailSent: z.ZodBoolean;
|
|
674
|
+
smsSent: z.ZodOptional<z.ZodBoolean>;
|
|
675
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
676
|
+
expiresAt: z.ZodCoercedDate<unknown>;
|
|
677
|
+
lastAccessAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
619
678
|
}, z.core.$strip>;
|
|
620
679
|
/**
|
|
621
|
-
*
|
|
680
|
+
* Create share input schema
|
|
622
681
|
*/
|
|
623
|
-
declare const
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
682
|
+
declare const CreateShareInputSchema: z.ZodObject<{
|
|
683
|
+
instanceId: z.ZodString;
|
|
684
|
+
email: z.ZodString;
|
|
685
|
+
name: z.ZodOptional<z.ZodString>;
|
|
686
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
687
|
+
authMethod: z.ZodEnum<{
|
|
688
|
+
signed_link: "signed_link";
|
|
689
|
+
pin_code: "pin_code";
|
|
629
690
|
}>;
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
defaultAuth: z.ZodObject<{
|
|
633
|
-
method: z.ZodEnum<{
|
|
634
|
-
signed_link: "signed_link";
|
|
635
|
-
pin_code: "pin_code";
|
|
636
|
-
}>;
|
|
637
|
-
expiresIn: z.ZodOptional<z.ZodString>;
|
|
638
|
-
channel: z.ZodOptional<z.ZodEnum<{
|
|
639
|
-
email: "email";
|
|
640
|
-
sms: "sms";
|
|
641
|
-
}>>;
|
|
642
|
-
}, z.core.$strip>;
|
|
643
|
-
allowedNodeIds: z.ZodArray<z.ZodString>;
|
|
691
|
+
sendNotification: z.ZodOptional<z.ZodBoolean>;
|
|
692
|
+
expiresInDays: z.ZodOptional<z.ZodNumber>;
|
|
644
693
|
}, z.core.$strip>;
|
|
645
694
|
/**
|
|
646
695
|
* Node position schema
|
|
@@ -814,6 +863,18 @@ declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
814
863
|
}, unknown>>;
|
|
815
864
|
onTrue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
816
865
|
onFalse: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
866
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
867
|
+
type: z.ZodLiteral<"document">;
|
|
868
|
+
id: z.ZodString;
|
|
869
|
+
label: z.ZodString;
|
|
870
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
871
|
+
templateId: z.ZodString;
|
|
872
|
+
outputFormat: z.ZodEnum<{
|
|
873
|
+
pdf: "pdf";
|
|
874
|
+
docx: "docx";
|
|
875
|
+
}>;
|
|
876
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
877
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
817
878
|
}, z.core.$strip>, z.ZodObject<{
|
|
818
879
|
type: z.ZodLiteral<"end">;
|
|
819
880
|
id: z.ZodString;
|
|
@@ -821,7 +882,7 @@ declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
821
882
|
status: z.ZodOptional<z.ZodString>;
|
|
822
883
|
}, z.core.$strip>], "type">>;
|
|
823
884
|
startNodeId: z.ZodString;
|
|
824
|
-
layout: z.ZodObject<{
|
|
885
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
825
886
|
positions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
826
887
|
x: z.ZodNumber;
|
|
827
888
|
y: z.ZodNumber;
|
|
@@ -831,29 +892,7 @@ declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
831
892
|
y: z.ZodNumber;
|
|
832
893
|
zoom: z.ZodNumber;
|
|
833
894
|
}, z.core.$strip>>;
|
|
834
|
-
}, z.core.$strip
|
|
835
|
-
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
836
|
-
id: z.ZodString;
|
|
837
|
-
label: z.ZodString;
|
|
838
|
-
type: z.ZodEnum<{
|
|
839
|
-
internal: "internal";
|
|
840
|
-
external: "external";
|
|
841
|
-
}>;
|
|
842
|
-
emailSource: z.ZodOptional<z.ZodString>;
|
|
843
|
-
phoneSource: z.ZodOptional<z.ZodString>;
|
|
844
|
-
defaultAuth: z.ZodObject<{
|
|
845
|
-
method: z.ZodEnum<{
|
|
846
|
-
signed_link: "signed_link";
|
|
847
|
-
pin_code: "pin_code";
|
|
848
|
-
}>;
|
|
849
|
-
expiresIn: z.ZodOptional<z.ZodString>;
|
|
850
|
-
channel: z.ZodOptional<z.ZodEnum<{
|
|
851
|
-
email: "email";
|
|
852
|
-
sms: "sms";
|
|
853
|
-
}>>;
|
|
854
|
-
}, z.core.$strip>;
|
|
855
|
-
allowedNodeIds: z.ZodArray<z.ZodString>;
|
|
856
|
-
}, z.core.$strip>>>;
|
|
895
|
+
}, z.core.$strip>>;
|
|
857
896
|
theme: z.ZodOptional<z.ZodObject<{
|
|
858
897
|
logo: z.ZodOptional<z.ZodObject<{
|
|
859
898
|
url: z.ZodString;
|
|
@@ -896,7 +935,7 @@ type ValidatedConditionGroup = z.infer<typeof ConditionGroupSchema>;
|
|
|
896
935
|
/**
|
|
897
936
|
* System attribute union type
|
|
898
937
|
*/
|
|
899
|
-
type SystemAttribute = DateAttribute | UserAttribute;
|
|
938
|
+
type SystemAttribute = DateAttribute | UserAttribute | DocumentAttribute;
|
|
900
939
|
/**
|
|
901
940
|
* System attributes available on all records.
|
|
902
941
|
* These are managed automatically by the system and cannot be edited by users.
|
|
@@ -1823,10 +1862,82 @@ declare class RollupAttributeBuilder<TName extends string> extends BaseAttribute
|
|
|
1823
1862
|
* ```
|
|
1824
1863
|
*/
|
|
1825
1864
|
declare function rollup<TName extends string>(config: TypedBuilderConfig<TName>): RollupAttributeBuilder<TName>;
|
|
1865
|
+
/**
|
|
1866
|
+
* Builder for document attributes.
|
|
1867
|
+
*
|
|
1868
|
+
* Documents are structured wrappers around files that support:
|
|
1869
|
+
* - Multi-file templates (e.g., ID card recto/verso)
|
|
1870
|
+
* - Automatic processing (OCR, signature, identity verification)
|
|
1871
|
+
* - Template constraints
|
|
1872
|
+
*
|
|
1873
|
+
* @example Single document with template choice
|
|
1874
|
+
* ```typescript
|
|
1875
|
+
* document({ name: "identityDocument", label: "Pièce d'identité" })
|
|
1876
|
+
* .templates(["french_id_card", "passport"])
|
|
1877
|
+
* .autoProcess()
|
|
1878
|
+
* .required()
|
|
1879
|
+
* ```
|
|
1880
|
+
*
|
|
1881
|
+
* @example Multiple documents
|
|
1882
|
+
* ```typescript
|
|
1883
|
+
* document({ name: "contracts", label: "Contrats" })
|
|
1884
|
+
* .template("signable_contract")
|
|
1885
|
+
* .multiple()
|
|
1886
|
+
* .maxDocuments(10)
|
|
1887
|
+
* ```
|
|
1888
|
+
*/
|
|
1889
|
+
declare class DocumentAttributeBuilder<TName extends string, TRequired extends boolean = false> extends BaseAttributeBuilder<DocumentAttribute> {
|
|
1890
|
+
readonly _types: {
|
|
1891
|
+
name: TName;
|
|
1892
|
+
attribute: DocumentAttribute;
|
|
1893
|
+
required: TRequired;
|
|
1894
|
+
};
|
|
1895
|
+
constructor(name: TName, label: string);
|
|
1896
|
+
/**
|
|
1897
|
+
* Set a single required template.
|
|
1898
|
+
* Only documents using this template can be attached.
|
|
1899
|
+
*/
|
|
1900
|
+
template(templateId: string): this;
|
|
1901
|
+
/**
|
|
1902
|
+
* Set multiple allowed templates.
|
|
1903
|
+
* User can choose which template to use when uploading.
|
|
1904
|
+
*/
|
|
1905
|
+
templates(templateIds: string[]): this;
|
|
1906
|
+
/**
|
|
1907
|
+
* Allow multiple documents.
|
|
1908
|
+
* Value becomes string[] instead of string.
|
|
1909
|
+
*/
|
|
1910
|
+
multiple(): this;
|
|
1911
|
+
/**
|
|
1912
|
+
* Maximum number of documents (only applies when multiple: true).
|
|
1913
|
+
*/
|
|
1914
|
+
maxDocuments(count: number): this;
|
|
1915
|
+
/**
|
|
1916
|
+
* Automatically trigger processing on upload.
|
|
1917
|
+
* Processing is defined by the template's autoProcessing config.
|
|
1918
|
+
*/
|
|
1919
|
+
autoProcess(): this;
|
|
1920
|
+
/**
|
|
1921
|
+
* Mark this attribute as required.
|
|
1922
|
+
*/
|
|
1923
|
+
required(): DocumentAttributeBuilder<TName, true>;
|
|
1924
|
+
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Create a document attribute.
|
|
1927
|
+
*
|
|
1928
|
+
* @example
|
|
1929
|
+
* ```typescript
|
|
1930
|
+
* document({ name: "identityDocument", label: "Pièce d'identité" })
|
|
1931
|
+
* .templates(["french_id_card", "passport"])
|
|
1932
|
+
* .autoProcess()
|
|
1933
|
+
* .required()
|
|
1934
|
+
* ```
|
|
1935
|
+
*/
|
|
1936
|
+
declare function document<TName extends string>(config: TypedBuilderConfig<TName>): DocumentAttributeBuilder<TName, false>;
|
|
1826
1937
|
/**
|
|
1827
1938
|
* Union of all attribute builder types
|
|
1828
1939
|
*/
|
|
1829
|
-
type AnyAttributeBuilder = TextAttributeBuilder<string, boolean> | TextAreaAttributeBuilder<string, boolean> | RichtextAttributeBuilder<string, boolean> | NumberAttributeBuilder<string, boolean> | CheckboxAttributeBuilder<string, boolean> | DateAttributeBuilder<string, boolean> | PhoneAttributeBuilder<string, boolean> | CurrencyAttributeBuilder<string, boolean> | StatusAttributeBuilder<string, readonly Option[], boolean> | SelectAttributeBuilder<string, readonly Option[], boolean> | MultiselectAttributeBuilder<string, readonly Option[], boolean> | LocationAttributeBuilder<string, boolean> | FileAttributeBuilder<string, boolean> | UserAttributeBuilder<string, boolean> | SingleRelationAttributeBuilder<string, boolean> | MultiRelationAttributeBuilder<string, boolean> | RatingAttributeBuilder<string, boolean> | FormulaAttributeBuilder<string> | RollupAttributeBuilder<string>;
|
|
1940
|
+
type AnyAttributeBuilder = TextAttributeBuilder<string, boolean> | TextAreaAttributeBuilder<string, boolean> | RichtextAttributeBuilder<string, boolean> | NumberAttributeBuilder<string, boolean> | CheckboxAttributeBuilder<string, boolean> | DateAttributeBuilder<string, boolean> | PhoneAttributeBuilder<string, boolean> | CurrencyAttributeBuilder<string, boolean> | StatusAttributeBuilder<string, readonly Option[], boolean> | SelectAttributeBuilder<string, readonly Option[], boolean> | MultiselectAttributeBuilder<string, readonly Option[], boolean> | LocationAttributeBuilder<string, boolean> | FileAttributeBuilder<string, boolean> | UserAttributeBuilder<string, boolean> | SingleRelationAttributeBuilder<string, boolean> | MultiRelationAttributeBuilder<string, boolean> | RatingAttributeBuilder<string, boolean> | FormulaAttributeBuilder<string> | RollupAttributeBuilder<string> | DocumentAttributeBuilder<string, boolean>;
|
|
1830
1941
|
/**
|
|
1831
1942
|
* Extract the attribute name from a builder
|
|
1832
1943
|
*/
|
|
@@ -2325,6 +2436,66 @@ declare class FlowsTabConfig {
|
|
|
2325
2436
|
*/
|
|
2326
2437
|
build(): ViewDefinition;
|
|
2327
2438
|
}
|
|
2439
|
+
/**
|
|
2440
|
+
* Builder for configuring documents tabs
|
|
2441
|
+
*
|
|
2442
|
+
* All actions are enabled by default:
|
|
2443
|
+
* - allowUpload: true
|
|
2444
|
+
* - allowRemove: true
|
|
2445
|
+
* - showProcessing: true
|
|
2446
|
+
* - showRequiredWarnings: true
|
|
2447
|
+
* - hideAttachments: false
|
|
2448
|
+
*
|
|
2449
|
+
* @example
|
|
2450
|
+
* ```typescript
|
|
2451
|
+
* // Basic usage (all actions enabled by default)
|
|
2452
|
+
* .tab("documents", "Documents").documents()
|
|
2453
|
+
*
|
|
2454
|
+
* // Disable specific actions
|
|
2455
|
+
* .tab("documents", "Documents")
|
|
2456
|
+
* .documents()
|
|
2457
|
+
* .disableUpload()
|
|
2458
|
+
* .hideAttachments()
|
|
2459
|
+
* ```
|
|
2460
|
+
*/
|
|
2461
|
+
declare class DocumentsTabConfig {
|
|
2462
|
+
private view;
|
|
2463
|
+
private tabData;
|
|
2464
|
+
/** @internal */
|
|
2465
|
+
constructor(view: ViewBuilder, base: BaseTabConfig);
|
|
2466
|
+
/**
|
|
2467
|
+
* Allow uploading new documents
|
|
2468
|
+
*/
|
|
2469
|
+
allowUpload(): this;
|
|
2470
|
+
/**
|
|
2471
|
+
* Allow removing documents
|
|
2472
|
+
*/
|
|
2473
|
+
allowRemove(): this;
|
|
2474
|
+
/**
|
|
2475
|
+
* Show processing actions (OCR, verify, sign)
|
|
2476
|
+
*/
|
|
2477
|
+
showProcessing(): this;
|
|
2478
|
+
/**
|
|
2479
|
+
* Highlight empty required document attributes
|
|
2480
|
+
*/
|
|
2481
|
+
showRequiredWarnings(): this;
|
|
2482
|
+
/**
|
|
2483
|
+
* Hide the attachments section
|
|
2484
|
+
*/
|
|
2485
|
+
hideAttachments(): this;
|
|
2486
|
+
/**
|
|
2487
|
+
* Continue building with a new tab
|
|
2488
|
+
*/
|
|
2489
|
+
tab(name: string, label: string): TabBuilder;
|
|
2490
|
+
/**
|
|
2491
|
+
* Finish this tab and return to ViewBuilder
|
|
2492
|
+
*/
|
|
2493
|
+
done(): ViewBuilder;
|
|
2494
|
+
/**
|
|
2495
|
+
* Build the final view definition
|
|
2496
|
+
*/
|
|
2497
|
+
build(): ViewDefinition;
|
|
2498
|
+
}
|
|
2328
2499
|
/**
|
|
2329
2500
|
* Builder for creating tabs with type discrimination
|
|
2330
2501
|
*
|
|
@@ -2396,6 +2567,11 @@ declare class TabBuilder {
|
|
|
2396
2567
|
* @example .flows().allowStart().allowCancel()
|
|
2397
2568
|
*/
|
|
2398
2569
|
flows(): FlowsTabConfig;
|
|
2570
|
+
/**
|
|
2571
|
+
* Create a documents tab for file attachments
|
|
2572
|
+
* @example .documents().allowUpload().allowRemove()
|
|
2573
|
+
*/
|
|
2574
|
+
documents(): DocumentsTabConfig;
|
|
2399
2575
|
}
|
|
2400
2576
|
/**
|
|
2401
2577
|
* Builder for creating view definitions
|
|
@@ -2574,7 +2750,6 @@ declare class WorkflowFormBuilder {
|
|
|
2574
2750
|
private nodeId;
|
|
2575
2751
|
private label;
|
|
2576
2752
|
private description?;
|
|
2577
|
-
private participantId?;
|
|
2578
2753
|
private rows;
|
|
2579
2754
|
private rowOrder;
|
|
2580
2755
|
/** @internal */
|
|
@@ -2583,10 +2758,6 @@ declare class WorkflowFormBuilder {
|
|
|
2583
2758
|
* Set the description for this form step
|
|
2584
2759
|
*/
|
|
2585
2760
|
describe(description: string): this;
|
|
2586
|
-
/**
|
|
2587
|
-
* Set the participant template that can fill this form
|
|
2588
|
-
*/
|
|
2589
|
-
participant(participantId: string): this;
|
|
2590
2761
|
/**
|
|
2591
2762
|
* Start a new row in the form
|
|
2592
2763
|
*/
|
|
@@ -2608,7 +2779,6 @@ declare class WorkflowSimpleFormBuilder {
|
|
|
2608
2779
|
private label;
|
|
2609
2780
|
private description?;
|
|
2610
2781
|
private fieldList;
|
|
2611
|
-
private participantId?;
|
|
2612
2782
|
/** @internal */
|
|
2613
2783
|
constructor(workflowBuilder: WorkflowBuilder, nodeId: string, label: string);
|
|
2614
2784
|
/**
|
|
@@ -2623,10 +2793,6 @@ declare class WorkflowSimpleFormBuilder {
|
|
|
2623
2793
|
* Add multiple fields from the same slot
|
|
2624
2794
|
*/
|
|
2625
2795
|
fieldsFrom(slotId: string, attributes: string[]): this;
|
|
2626
|
-
/**
|
|
2627
|
-
* Set the participant template that can fill this form
|
|
2628
|
-
*/
|
|
2629
|
-
participant(participantId: string): this;
|
|
2630
2796
|
/**
|
|
2631
2797
|
* Set the next node and complete the form definition
|
|
2632
2798
|
*/
|
|
@@ -2697,43 +2863,6 @@ declare class WorkflowStartBuilder {
|
|
|
2697
2863
|
*/
|
|
2698
2864
|
next(nodeId: string): WorkflowBuilder;
|
|
2699
2865
|
}
|
|
2700
|
-
/**
|
|
2701
|
-
* Builder for participant templates
|
|
2702
|
-
*/
|
|
2703
|
-
declare class WorkflowParticipantBuilder {
|
|
2704
|
-
private workflowBuilder;
|
|
2705
|
-
private template;
|
|
2706
|
-
/** @internal */
|
|
2707
|
-
constructor(workflowBuilder: WorkflowBuilder, id: string, label: string);
|
|
2708
|
-
/**
|
|
2709
|
-
* Mark as external participant
|
|
2710
|
-
*/
|
|
2711
|
-
external(): this;
|
|
2712
|
-
/**
|
|
2713
|
-
* Mark as internal participant
|
|
2714
|
-
*/
|
|
2715
|
-
internal(): this;
|
|
2716
|
-
/**
|
|
2717
|
-
* Set email source path
|
|
2718
|
-
*/
|
|
2719
|
-
emailFrom(path: string): this;
|
|
2720
|
-
/**
|
|
2721
|
-
* Set phone source path
|
|
2722
|
-
*/
|
|
2723
|
-
phoneFrom(path: string): this;
|
|
2724
|
-
/**
|
|
2725
|
-
* Set authentication configuration
|
|
2726
|
-
*/
|
|
2727
|
-
auth(config: {
|
|
2728
|
-
method: AuthMethod;
|
|
2729
|
-
expiresIn?: string;
|
|
2730
|
-
channel?: AuthChannel;
|
|
2731
|
-
}): this;
|
|
2732
|
-
/**
|
|
2733
|
-
* Set nodes this participant can execute
|
|
2734
|
-
*/
|
|
2735
|
-
canExecute(nodeIds: string[]): WorkflowBuilder;
|
|
2736
|
-
}
|
|
2737
2866
|
/**
|
|
2738
2867
|
* Fluent builder for creating WorkflowDefinition with validation
|
|
2739
2868
|
*
|
|
@@ -2745,18 +2874,11 @@ declare class WorkflowParticipantBuilder {
|
|
|
2745
2874
|
* .slot("client", "contacts", { label: "Client", mode: "optional" })
|
|
2746
2875
|
* .slot("company", "companies", { label: "Entreprise", mode: "create" })
|
|
2747
2876
|
*
|
|
2748
|
-
* .participant("external-client", "Client Externe")
|
|
2749
|
-
* .external()
|
|
2750
|
-
* .emailFrom("slots.client.email")
|
|
2751
|
-
* .auth({ method: "signed_link", expiresIn: "7d" })
|
|
2752
|
-
* .canExecute(["client-form"])
|
|
2753
|
-
*
|
|
2754
2877
|
* .start("entry").next("client-form")
|
|
2755
2878
|
*
|
|
2756
2879
|
* .simpleForm("client-form", "Infos Client")
|
|
2757
2880
|
* .slot("client")
|
|
2758
2881
|
* .fields(["firstName", "lastName", "email", "type"])
|
|
2759
|
-
* .participant("external-client")
|
|
2760
2882
|
* .next("check-vip")
|
|
2761
2883
|
*
|
|
2762
2884
|
* .condition("check-vip", "Client VIP ?")
|
|
@@ -2822,12 +2944,6 @@ declare class WorkflowBuilder {
|
|
|
2822
2944
|
color?: ColorId;
|
|
2823
2945
|
icon?: IconName;
|
|
2824
2946
|
}): this;
|
|
2825
|
-
/**
|
|
2826
|
-
* Define a participant template
|
|
2827
|
-
*/
|
|
2828
|
-
participant(id: string, label: string): WorkflowParticipantBuilder;
|
|
2829
|
-
/** @internal */
|
|
2830
|
-
_addParticipant(template: ParticipantTemplate): this;
|
|
2831
2947
|
/**
|
|
2832
2948
|
* Define the start node
|
|
2833
2949
|
*/
|
|
@@ -2860,7 +2976,6 @@ declare class WorkflowBuilder {
|
|
|
2860
2976
|
private validateRequiredData;
|
|
2861
2977
|
private validateNodeReferences;
|
|
2862
2978
|
private validateSlotReferences;
|
|
2863
|
-
private validateParticipantReferences;
|
|
2864
2979
|
private validateDAG;
|
|
2865
2980
|
}
|
|
2866
2981
|
/**
|
|
@@ -2935,4 +3050,59 @@ declare const NOTES: ObjectBuilder<{
|
|
|
2935
3050
|
linkedTo?: string | undefined;
|
|
2936
3051
|
}>;
|
|
2937
3052
|
|
|
2938
|
-
|
|
3053
|
+
declare const SYSTEM_TEMPLATE_IDS: {
|
|
3054
|
+
readonly FRENCH_ID_CARD: "00000000-0000-0000-0001-000000000001";
|
|
3055
|
+
readonly PASSPORT: "00000000-0000-0000-0001-000000000002";
|
|
3056
|
+
readonly DRIVING_LICENSE: "00000000-0000-0000-0001-000000000003";
|
|
3057
|
+
readonly PROOF_OF_ADDRESS: "00000000-0000-0000-0001-000000000004";
|
|
3058
|
+
readonly SIGNABLE_CONTRACT: "00000000-0000-0000-0001-000000000005";
|
|
3059
|
+
readonly GENERIC_DOCUMENT: "00000000-0000-0000-0001-000000000006";
|
|
3060
|
+
};
|
|
3061
|
+
/**
|
|
3062
|
+
* French National ID Card template.
|
|
3063
|
+
* Requires front (recto) and back (verso) images.
|
|
3064
|
+
* Automatically triggers OCR and identity verification.
|
|
3065
|
+
*/
|
|
3066
|
+
declare const FRENCH_ID_CARD: DocumentTemplate;
|
|
3067
|
+
/**
|
|
3068
|
+
* Passport template.
|
|
3069
|
+
* Requires the data page (photo + MRZ).
|
|
3070
|
+
* Optionally allows additional pages.
|
|
3071
|
+
*/
|
|
3072
|
+
declare const PASSPORT: DocumentTemplate;
|
|
3073
|
+
/**
|
|
3074
|
+
* Driving License template.
|
|
3075
|
+
* Can be single or double-sided depending on country.
|
|
3076
|
+
*/
|
|
3077
|
+
declare const DRIVING_LICENSE: DocumentTemplate;
|
|
3078
|
+
/**
|
|
3079
|
+
* Proof of Address template.
|
|
3080
|
+
* Single document (utility bill, bank statement, etc.).
|
|
3081
|
+
*/
|
|
3082
|
+
declare const PROOF_OF_ADDRESS: DocumentTemplate;
|
|
3083
|
+
/**
|
|
3084
|
+
* Signable Contract template.
|
|
3085
|
+
* PDF document that requires electronic signature.
|
|
3086
|
+
*/
|
|
3087
|
+
declare const SIGNABLE_CONTRACT: DocumentTemplate;
|
|
3088
|
+
/**
|
|
3089
|
+
* Generic Document template.
|
|
3090
|
+
* Single file of any type, no automatic processing.
|
|
3091
|
+
* Used as default when no specific template is required.
|
|
3092
|
+
*/
|
|
3093
|
+
declare const GENERIC_DOCUMENT: DocumentTemplate;
|
|
3094
|
+
/**
|
|
3095
|
+
* All system templates.
|
|
3096
|
+
* Use this to seed the database or for template lookups.
|
|
3097
|
+
*/
|
|
3098
|
+
declare const SYSTEM_TEMPLATES: DocumentTemplate[];
|
|
3099
|
+
/**
|
|
3100
|
+
* Get a system template by name.
|
|
3101
|
+
*/
|
|
3102
|
+
declare function getSystemTemplate(name: string): DocumentTemplate | undefined;
|
|
3103
|
+
/**
|
|
3104
|
+
* Check if a template name is a system template.
|
|
3105
|
+
*/
|
|
3106
|
+
declare function isSystemTemplate(name: string): boolean;
|
|
3107
|
+
|
|
3108
|
+
export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AgentContentPart, type AgentMessage, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, AuthMethodSchema, type BuilderConfig, type ChatFileAttachment, CheckboxAttribute, ConditionGroup, ConditionGroupSchema, ConditionNodeSchema, ConditionOperatorSchema, ConditionRule, ConditionRuleSchema, CreateShareInputSchema, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DRIVING_LICENSE, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DirectTableTab, DirectTableTabConfig, DocumentAttribute, DocumentNodeSchema, DocumentTemplate, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, EndNodeSchema, type ExtractAttributeName, type ExtractAttributeRequired, FRENCH_ID_CARD, Field, FileAttribute, FileNotFoundError, FilterState, FlowRow, FlowRowFieldSchema, FlowRowSchema, FlowsTabConfig, ForbiddenError, FormFieldRefSchema, FormNodeSchema, FormulaAttribute, FormulaReturnType, GENERIC_DOCUMENT, Group, GroupBuilder, InferAttributeValue, InstanceStatus, InverseTableTab, InverseTableTabConfig, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NOTES, NodePositionSchema, NotFoundError, NotSystemObjectError, NotesTabConfig, NumberAttribute, ObjectAction, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PASSPORT, PROOF_OF_ADDRESS, PhoneAttribute, ProtectedResourceError, ProtectedRoleError, RatingAttribute, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationTarget, type ResumeWorkflowApiInput, RichtextAttribute, RichtextFeature, RoleNotFoundError, RollupAttribute, RollupFunction, SIGNABLE_CONTRACT, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SYSTEM_TEMPLATES, SYSTEM_TEMPLATE_IDS, SchemaError, SchemaErrorCode, SelectAttribute, ShareStatusSchema, SingleRelationAttribute, SlotMode, SlotModeSchema, SortRule, StartNodeSchema, type StartWorkflowApiInput, StatusAttribute, SyncError, SystemAction, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder, TableTab, TextAreaAttribute, TextAttribute, ThemeColorsSchema, ThemeLogoSchema, type TypedBuilderConfig, UserAttribute, UserProfileNotFoundError, type ValidatedConditionGroup, type ValidatedWorkflowDefinition, type ValidatedWorkflowNode, ValidationError, type ValidationErrorDetail, ViewBuilder, ViewDefinition, ViewLayout, ViewportSchema, WorkflowBuilder, WorkflowConditionBuilder, WorkflowConfig, WorkflowConfigSchema, WorkflowDefinition, WorkflowDefinitionSchema, WorkflowEndBuilder, type WorkflowEvent, type WorkflowEventType, WorkflowFormBuilder, WorkflowFormRowBuilder, type WorkflowGrantRevokedEvent, type WorkflowInstanceCancelledEvent, type WorkflowInstanceCompletedEvent, type WorkflowInstanceFailedEvent, type WorkflowInstanceStartedEvent, type WorkflowInvitationAcceptedEvent, type WorkflowInvitationCreatedEvent, type WorkflowInvitationExpiredEvent, WorkflowLayoutSchema, WorkflowNode, type WorkflowNodeCompletedEvent, type WorkflowNodeEnteredEvent, type WorkflowNodeFailedEvent, WorkflowNodeSchema, WorkflowShareSchema, WorkflowSimpleFormBuilder, WorkflowSlotSchema, WorkflowStartBuilder, WorkflowStatusSchema, WorkflowTheme, WorkflowThemeSchema, checkbox, currency, date, document, file, formatAttributeValue, formula, getSystemAttributeList, getSystemTemplate, group, isDefaultRole, isForbiddenError, isInstanceEvent, isInvitationOrGrantEvent, isNodeEvent, isNotFoundError, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isSystemTemplate, isValidationError, location, multiselect, number, object, phone, rating, relation, richtext, rollup, select, status, text, textarea, user, view, workflow };
|