@octostar/platform-types 0.5.37 → 1.0.0
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/action.d.ts +6 -6
- package/dist/action.d.ts.map +1 -1
- package/dist/ai.d.ts +7 -6
- package/dist/ai.d.ts.map +1 -1
- package/dist/desktop.d.ts +380 -204
- package/dist/desktop.d.ts.map +1 -1
- package/dist/desktop.js.map +1 -1
- package/dist/docs/assets/highlight.css +14 -14
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/enums/ProcessingStatusCode.html +5 -27
- package/dist/docs/enums/SortOrder.html +3 -3
- package/dist/docs/enums/WorkspacePermissionValue.html +3 -3
- package/dist/docs/functions/imageLabelCandidateAggs.html +5 -0
- package/dist/docs/functions/imageLabelCandidateSize.html +3 -0
- package/dist/docs/functions/imageLabelCountAggs.html +2 -0
- package/dist/docs/functions/imageLabelFamilyOfField.html +2 -0
- package/dist/docs/functions/imageLabelMatchClause.html +3 -0
- package/dist/docs/functions/imageLabelSourceIncludes.html +2 -0
- package/dist/docs/functions/isDefaultTemplate.html +3 -0
- package/dist/docs/functions/isDeletedEntity.html +2 -0
- package/dist/docs/functions/isWorkspaceFileItem.html +1 -1
- package/dist/docs/functions/isWorkspaceRoot.html +2 -0
- package/dist/docs/functions/ontologyLabel-1.html +4 -0
- package/dist/docs/functions/readImageLabelCandidates.html +2 -0
- package/dist/docs/functions/readImageLabelCounts.html +2 -0
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/index.html +2 -3
- package/dist/docs/interfaces/AIClient.html +4 -4
- package/dist/docs/interfaces/ActionContext.html +4 -5
- package/dist/docs/interfaces/BinaryObjectFilterClause.html +3 -3
- package/dist/docs/interfaces/BrowseEntry.html +7 -0
- package/dist/docs/interfaces/BrowseRequest.html +4 -0
- package/dist/docs/interfaces/BrowseResponse.html +5 -0
- package/dist/docs/interfaces/ChatMessage.html +6 -6
- package/dist/docs/interfaces/Colorful.html +3 -3
- package/dist/docs/interfaces/Concept.html +14 -14
- package/dist/docs/interfaces/DeleteResponse.html +2 -2
- package/dist/docs/interfaces/Desktop.html +199 -122
- package/dist/docs/interfaces/DesktopActionContext.html +7 -8
- package/dist/docs/interfaces/DesktopSettings.html +6 -6
- package/dist/docs/interfaces/DeveloperSettings.html +3 -5
- package/dist/docs/interfaces/DownloadOptions.html +2 -2
- package/dist/docs/interfaces/EntityUiState.html +2 -2
- package/dist/docs/interfaces/FetchOptions.html +4 -4
- package/dist/docs/interfaces/FileListResponse.html +2 -2
- package/dist/docs/interfaces/FilesAPIClient.html +48 -24
- package/dist/docs/interfaces/FragmentRegion.html +6 -0
- package/dist/docs/interfaces/FragmentStatusEntry.html +13 -0
- package/dist/docs/interfaces/GeocodingResult.html +9 -0
- package/dist/docs/interfaces/GetAttachmentOptions.html +5 -5
- package/dist/docs/interfaces/IDataTransfer.html +11 -11
- package/dist/docs/interfaces/ImageLabelCandidateOptions.html +4 -0
- package/dist/docs/interfaces/ImageLabelFamilyFields.html +13 -0
- package/dist/docs/interfaces/ImportDestination.html +3 -0
- package/dist/docs/interfaces/ImportItem.html +3 -0
- package/dist/docs/interfaces/ImportOptions.html +8 -0
- package/dist/docs/interfaces/ImportRequest.html +7 -0
- package/dist/docs/interfaces/IndexSearchHitSource.html +5 -3
- package/dist/docs/interfaces/Inheritance.html +5 -5
- package/dist/docs/interfaces/LiveContext.html +11 -11
- package/dist/docs/interfaces/MountAccess.html +3 -0
- package/dist/docs/interfaces/MountCreate.html +10 -0
- package/dist/docs/interfaces/MountGrantCreate.html +3 -0
- package/dist/docs/interfaces/MountGrantResponse.html +7 -0
- package/dist/docs/interfaces/MountImportCopyResponse.html +4 -0
- package/dist/docs/interfaces/MountImportLinkError.html +4 -0
- package/dist/docs/interfaces/MountImportLinkResponse.html +5 -0
- package/dist/docs/interfaces/MountResponse.html +20 -0
- package/dist/docs/interfaces/MountUpdate.html +13 -0
- package/dist/docs/interfaces/MoveOptions.html +2 -2
- package/dist/docs/interfaces/MoveResponse.html +58 -37
- package/dist/docs/interfaces/Ontology.html +110 -53
- package/dist/docs/interfaces/OntologyLabel.html +6 -0
- package/dist/docs/interfaces/OsAPIClient.html +8 -8
- package/dist/docs/interfaces/PeekSourceOptions.html +4 -0
- package/dist/docs/interfaces/PerUserCredentialInput.html +5 -0
- package/dist/docs/interfaces/PerUserCredentialStatus.html +7 -0
- package/dist/docs/interfaces/ProcessingRecursiveStatus.html +27 -0
- package/dist/docs/interfaces/ProcessingStatus.html +40 -9
- package/dist/docs/interfaces/Property.html +7 -5
- package/dist/docs/interfaces/RecordProvider.html +6 -6
- package/dist/docs/interfaces/RecordsSourceScope.html +8 -0
- package/dist/docs/interfaces/RefObject.html +3 -3
- package/dist/docs/interfaces/Relationship.html +22 -20
- package/dist/docs/interfaces/ReportApi.html +13 -0
- package/dist/docs/interfaces/S3Headers.html +2 -2
- package/dist/docs/interfaces/S3UploadResponse.html +2 -2
- package/dist/docs/interfaces/SavedSetContent.html +2 -2
- package/dist/docs/interfaces/SearchFilter.html +29 -0
- package/dist/docs/interfaces/SearchHit.html +11 -0
- package/dist/docs/interfaces/SearchInnerHit.html +3 -0
- package/dist/docs/interfaces/SearchOptions.html +21 -4
- package/dist/docs/interfaces/SearchProps.html +11 -10
- package/dist/docs/interfaces/SearchQueryResult.html +5 -0
- package/dist/docs/interfaces/SearchXperienceModalProps.html +9 -9
- package/dist/docs/interfaces/SearchXperienceProps.html +7 -7
- package/dist/docs/interfaces/SemanticBindingOptions.html +8 -0
- package/dist/docs/interfaces/SemanticBindingProps.html +8 -6
- package/dist/docs/interfaces/SharedCredentialsInput.html +5 -0
- package/dist/docs/interfaces/SourceExportError.html +4 -0
- package/dist/docs/interfaces/SourceExportRequest.html +8 -0
- package/dist/docs/interfaces/SourceExportResponse.html +7 -0
- package/dist/docs/interfaces/SourcePeekEntry.html +12 -0
- package/dist/docs/interfaces/SourcePeekResponse.html +10 -0
- package/dist/docs/interfaces/StreamJsonOptions.html +5 -5
- package/dist/docs/interfaces/StreamTextOptions.html +5 -5
- package/dist/docs/interfaces/SubscribeOptions.html +4 -0
- package/dist/docs/interfaces/TagAttributes.html +7 -7
- package/dist/docs/interfaces/TestConnectionRequest.html +12 -0
- package/dist/docs/interfaces/TestConnectionResponse.html +4 -0
- package/dist/docs/interfaces/UiStateManager.html +2 -2
- package/dist/docs/interfaces/UnaryObjectFilterClause.html +3 -3
- package/dist/docs/interfaces/UnzipOptions.html +2 -2
- package/dist/docs/interfaces/UploadFromUrlError.html +8 -0
- package/dist/docs/interfaces/UploadFromUrlRequest.html +6 -0
- package/dist/docs/interfaces/UploadFromUrlResponse.html +6 -0
- package/dist/docs/interfaces/UploadOptions.html +2 -2
- package/dist/docs/interfaces/WorkspaceChangeEmitter.html +7 -7
- package/dist/docs/interfaces/WorkspaceItemConfig.html +6 -6
- package/dist/docs/interfaces/WorkspaceRecordIdentifier.html +5 -5
- package/dist/docs/modules.html +106 -38
- package/dist/docs/types/ActionHandler.html +2 -2
- package/dist/docs/types/AddCommentParams.html +2 -2
- package/dist/docs/types/AddListener.html +2 -2
- package/dist/docs/types/AddToReportBlocksInput.html +6 -0
- package/dist/docs/types/AddToReportContentSelection.html +2 -0
- package/dist/docs/types/AddToReportEntityInput.html +5 -0
- package/dist/docs/types/AddToReportInput.html +2 -0
- package/dist/docs/types/AddToReportResult.html +2 -0
- package/dist/docs/types/ApiErrorResult.html +2 -2
- package/dist/docs/types/ApiResult.html +2 -2
- package/dist/docs/types/ApiSuccessResult.html +2 -2
- package/dist/docs/types/App.html +2 -2
- package/dist/docs/types/AppRegistry.html +3 -4
- package/dist/docs/types/AppServiceCallOptions.html +2 -2
- package/dist/docs/types/AppServiceCallProps.html +2 -2
- package/dist/docs/types/AsyncFilter.html +2 -2
- package/dist/docs/types/AttachmentResponseType.html +2 -2
- package/dist/docs/types/AttachmentType.html +2 -2
- package/dist/docs/types/BinaryOperator.html +2 -2
- package/dist/docs/types/BrowseKind.html +1 -0
- package/dist/docs/types/Callback.html +2 -2
- package/dist/docs/types/ChatApiResponse.html +1 -1
- package/dist/docs/types/ChatModel.html +2 -2
- package/dist/docs/types/CommentWorkspaceItem.html +2 -2
- package/dist/docs/types/CommonOptions.html +1 -1
- package/dist/docs/types/Comparator.html +2 -2
- package/dist/docs/types/ConceptFilter.html +3 -3
- package/dist/docs/types/ConceptMap.html +2 -2
- package/dist/docs/types/ConceptName.html +1 -1
- package/dist/docs/types/ConceptWithParents.html +2 -2
- package/dist/docs/types/ConnectedEntity.html +2 -2
- package/dist/docs/types/ContextMenuGroup.html +2 -2
- package/dist/docs/types/ContextMenuLabels.html +2 -2
- package/dist/docs/types/ContextMenuOptions.html +2 -2
- package/dist/docs/types/ContextMenuParams.html +2 -2
- package/dist/docs/types/ContextMenuRequest.html +2 -2
- package/dist/docs/types/CopyOptions.html +2 -2
- package/dist/docs/types/CreateEntityFormProps.html +4 -2
- package/dist/docs/types/CreateLinkChartFn.html +1 -1
- package/dist/docs/types/CreateLinkChartParams.html +1 -1
- package/dist/docs/types/CreateRelationsDialogProps.html +2 -2
- package/dist/docs/types/CredType.html +1 -0
- package/dist/docs/types/CredentialMode.html +1 -0
- package/dist/docs/types/CustomEventListener.html +2 -2
- package/dist/docs/types/CustomTemplate.html +9 -3
- package/dist/docs/types/CustomTemplateIframeProps.html +2 -2
- package/dist/docs/types/DataContextType.html +2 -2
- package/dist/docs/types/DefaultLiveContextData.html +1 -1
- package/dist/docs/types/DefaultTemplate.html +11 -0
- package/dist/docs/types/DefaultTemplateProps.html +5 -0
- package/dist/docs/types/DeletedEntity.html +3 -0
- package/dist/docs/types/DesktopAction.html +2 -2
- package/dist/docs/types/DesktopActionFilter.html +2 -2
- package/dist/docs/types/DesktopActionMenuItem.html +6 -2
- package/dist/docs/types/DesktopActionMenuItemGroup.html +2 -2
- package/dist/docs/types/DesktopActionOptions.html +17 -3
- package/dist/docs/types/DesktopOpenParams.html +2 -2
- package/dist/docs/types/DragEndParams.html +2 -2
- package/dist/docs/types/DragStartParams.html +2 -2
- package/dist/docs/types/DropZoneRequestFn.html +1 -1
- package/dist/docs/types/DropZoneRequestResult.html +1 -1
- package/dist/docs/types/EConnection.html +2 -2
- package/dist/docs/types/EdgeSpec.html +2 -2
- package/dist/docs/types/EmitEventTransformDefinition.html +2 -2
- package/dist/docs/types/Entity.html +2 -2
- package/dist/docs/types/EntityBase.html +2 -2
- package/dist/docs/types/EntityEdge.html +2 -2
- package/dist/docs/types/EntityOTM.html +2 -2
- package/dist/docs/types/EntityPasteContext.html +2 -2
- package/dist/docs/types/EntityRelationshipCount.html +4 -0
- package/dist/docs/types/EvalContext.html +1 -1
- package/dist/docs/types/EventContextType.html +2 -2
- package/dist/docs/types/EventEmitterType.html +2 -2
- package/dist/docs/types/EventName.html +2 -2
- package/dist/docs/types/EventProducer.html +2 -2
- package/dist/docs/types/EventPublisher.html +2 -2
- package/dist/docs/types/EventSubscriber.html +2 -2
- package/dist/docs/types/EventUnsubscriber.html +2 -2
- package/dist/docs/types/ExportOptions.html +2 -2
- package/dist/docs/types/ExtractEntitiesOptions.html +2 -2
- package/dist/docs/types/ExtrasApi.html +1 -1
- package/dist/docs/types/FetchEntityOptions.html +2 -2
- package/dist/docs/types/FileCode.html +2 -2
- package/dist/docs/types/FileTreeOptions.html +2 -2
- package/dist/docs/types/FilterDefinition.html +2 -2
- package/dist/docs/types/FilterDefinitions.html +2 -2
- package/dist/docs/types/FilterName.html +2 -2
- package/dist/docs/types/FilterQuery.html +2 -2
- package/dist/docs/types/FilterReference.html +2 -2
- package/dist/docs/types/FilterValue.html +2 -2
- package/dist/docs/types/FocusListItem.html +2 -2
- package/dist/docs/types/FragmentInfo.html +5 -0
- package/dist/docs/types/FragmentLocator.html +5 -0
- package/dist/docs/types/FragmentResolution.html +2 -0
- package/dist/docs/types/GetSystemSettingResponse.html +4 -1
- package/dist/docs/types/GraphDataSpec.html +1 -1
- package/dist/docs/types/GraphSpec.html +2 -2
- package/dist/docs/types/HttpTransformDefinition.html +2 -2
- package/dist/docs/types/Icon.html +2 -2
- package/dist/docs/types/IconProps.html +2 -2
- package/dist/docs/types/IframeTransformDefinition.html +2 -2
- package/dist/docs/types/ImageInfo.html +2 -2
- package/dist/docs/types/ImageLabelFamily.html +21 -0
- package/dist/docs/types/ImportConflictPolicy.html +1 -0
- package/dist/docs/types/ImportEntryKind.html +1 -0
- package/dist/docs/types/ImportFoldersOptions.html +2 -2
- package/dist/docs/types/ImportMode.html +1 -0
- package/dist/docs/types/InlineCode.html +2 -2
- package/dist/docs/types/JavascriptFileTransformDefinition.html +2 -2
- package/dist/docs/types/JavascriptFilterDefinition.html +2 -2
- package/dist/docs/types/JavascriptInlineTransformDefinition.html +2 -2
- package/dist/docs/types/JavascriptType.html +3 -3
- package/dist/docs/types/JobManifest.html +4 -4
- package/dist/docs/types/KnownCounts.html +2 -2
- package/dist/docs/types/ListByParentFolder.html +1 -1
- package/dist/docs/types/ListByPath.html +1 -1
- package/dist/docs/types/ListFolderOptions.html +1 -1
- package/dist/docs/types/LiveContextAPISetParams.html +1 -1
- package/dist/docs/types/LiveContextListener.html +1 -1
- package/dist/docs/types/ManifestSecrets.html +1 -1
- package/dist/docs/types/MapSettingKey.html +1 -0
- package/dist/docs/types/MkdirResponse.html +1 -1
- package/dist/docs/types/ModalTemplateProps.html +2 -2
- package/dist/docs/types/MountScheme.html +7 -0
- package/dist/docs/types/NamedEntityGroup.html +2 -2
- package/dist/docs/types/NunjucksFileTransformDefinition.html +2 -2
- package/dist/docs/types/NunjucksInlineTransformDefinition.html +2 -2
- package/dist/docs/types/NunjucksType.html +3 -3
- package/dist/docs/types/OS_CONFIRM_MODAL_RESPONSE.html +2 -2
- package/dist/docs/types/OntologyTags.html +2 -2
- package/dist/docs/types/OpenNewAIChatOptions.html +17 -0
- package/dist/docs/types/OpenReportSummary.html +6 -0
- package/dist/docs/types/OsAuditFields.html +2 -2
- package/dist/docs/types/OsConfirmProps.html +2 -2
- package/dist/docs/types/OsNotification.html +2 -2
- package/dist/docs/types/OsProgress.html +11 -3
- package/dist/docs/types/OsTag.html +2 -2
- package/dist/docs/types/OsWorkspaceEntity.html +2 -2
- package/dist/docs/types/OsWorkspacePickerProps.html +2 -2
- package/dist/docs/types/PeekSourceTarget.html +4 -0
- package/dist/docs/types/Permission.html +2 -2
- package/dist/docs/types/Point.html +2 -2
- package/dist/docs/types/PrincipalType.html +1 -0
- package/dist/docs/types/PromptOptions.html +6 -3
- package/dist/docs/types/ProvidedFilterDefinition.html +2 -2
- package/dist/docs/types/ProvidedTransformDefinition.html +2 -2
- package/dist/docs/types/Query.html +2 -2
- package/dist/docs/types/QueryBatchResult.html +2 -2
- package/dist/docs/types/QueryDslQueryContainer.html +6 -0
- package/dist/docs/types/QueryErrorResult.html +2 -2
- package/dist/docs/types/QueryExecutor.html +2 -2
- package/dist/docs/types/QueryFilesystemItemsParams.html +16 -0
- package/dist/docs/types/QueryObjectFilterClause.html +2 -2
- package/dist/docs/types/QueryResponse.html +2 -2
- package/dist/docs/types/QueryResult.html +2 -2
- package/dist/docs/types/QuerySuccessResult.html +2 -2
- package/dist/docs/types/ReactCssProperties.html +2 -2
- package/dist/docs/types/ReactNode.html +2 -2
- package/dist/docs/types/ReactRef.html +2 -2
- package/dist/docs/types/ReasonedBoolean.html +2 -2
- package/dist/docs/types/RefCallback.html +2 -2
- package/dist/docs/types/RegisteredActionInfo.html +21 -0
- package/dist/docs/types/RelationshipCountEntry.html +8 -0
- package/dist/docs/types/RelationshipCountResult.html +2 -2
- package/dist/docs/types/RelationshipCountState.html +2 -0
- package/dist/docs/types/RemoteAppApi.html +1 -1
- package/dist/docs/types/RenameTabProps.html +2 -2
- package/dist/docs/types/RenderableTemplate.html +11 -0
- package/dist/docs/types/ReportTiptapNode.html +4 -0
- package/dist/docs/types/RuntimeAppUrlEntity.html +5 -0
- package/dist/docs/types/RuntimeAppUrlWorkspaceItem.html +10 -0
- package/dist/docs/types/SaveAsModalProps.html +2 -2
- package/dist/docs/types/SaveFileOptions.html +2 -2
- package/dist/docs/types/SaveOptions.html +2 -3
- package/dist/docs/types/SavedTemplate.html +3 -4
- package/dist/docs/types/SearchScope.html +9 -0
- package/dist/docs/types/SemanticBinding.html +2 -2
- package/dist/docs/types/SemanticBindingSpec.html +3 -0
- package/dist/docs/types/SemanticBindingType.html +2 -2
- package/dist/docs/types/SemanticBindings.html +3 -2
- package/dist/docs/types/SemanticallyBoundApp.html +2 -2
- package/dist/docs/types/SemanticallyBoundFilterDefinition.html +2 -2
- package/dist/docs/types/SendQueryOptions.html +2 -2
- package/dist/docs/types/ServiceDefinition.html +2 -2
- package/dist/docs/types/ServiceDefinitions.html +2 -2
- package/dist/docs/types/ServiceRole.html +2 -2
- package/dist/docs/types/SetTransformResultFn.html +1 -1
- package/dist/docs/types/SetsOptions.html +7 -16
- package/dist/docs/types/SetsSortBy.html +1 -0
- package/dist/docs/types/ShowOntology.html +2 -2
- package/dist/docs/types/ShowTabProps.html +2 -2
- package/dist/docs/types/SubscribeDragStartFn.html +1 -1
- package/dist/docs/types/SubscribeToContextFn.html +1 -1
- package/dist/docs/types/Tag.html +2 -2
- package/dist/docs/types/TagInfo.html +2 -2
- package/dist/docs/types/TagWithRelationship.html +2 -2
- package/dist/docs/types/TaskCleanupReason.html +2 -2
- package/dist/docs/types/TemplateMetadata.html +3 -3
- package/dist/docs/types/TemplateType.html +2 -2
- package/dist/docs/types/TemplateVariant.html +2 -2
- package/dist/docs/types/TestOutcome.html +2 -0
- package/dist/docs/types/TransformAction.html +2 -2
- package/dist/docs/types/TransformActionContext.html +2 -2
- package/dist/docs/types/TransformDefinition.html +2 -2
- package/dist/docs/types/TransformDefinitions.html +2 -2
- package/dist/docs/types/Unsubscribe.html +2 -2
- package/dist/docs/types/UnsubscribeFn.html +1 -1
- package/dist/docs/types/UnsubscribeFromContextFn.html +1 -1
- package/dist/docs/types/UnsubscribeFromDragStartFn.html +1 -1
- package/dist/docs/types/UploadFromUrlErrorCode.html +4 -0
- package/dist/docs/types/UserProfile.html +2 -2
- package/dist/docs/types/VirtualEntity.html +2 -2
- package/dist/docs/types/Whoami.html +3 -3
- package/dist/docs/types/WithProgressBarOptions.html +2 -2
- package/dist/docs/types/WorkspaceConfig.html +5 -3
- package/dist/docs/types/WorkspaceFlags.html +2 -2
- package/dist/docs/types/WorkspaceIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItem.html +21 -2
- package/dist/docs/types/WorkspaceItemBase.html +2 -2
- package/dist/docs/types/WorkspaceItemDocumentFields.html +1 -1
- package/dist/docs/types/WorkspaceItemIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItemModel.html +4 -12
- package/dist/docs/types/WorkspaceItemTitleProps.html +3 -3
- package/dist/docs/types/WorkspacePermission.html +2 -2
- package/dist/docs/types/WorkspaceRecord.html +2 -2
- package/dist/docs/types/WorkspaceRecordWithRelationships.html +2 -2
- package/dist/docs/types/WorkspaceRelationship.html +3 -2
- package/dist/docs/types/WorkspaceSettings.html +2 -2
- package/dist/docs/types/trigger.html +2 -2
- package/dist/docs/types/uuid.html +2 -2
- package/dist/docs/variables/HEAVY_ANNOTATION_FIELDS.html +17 -0
- package/dist/docs/variables/IMAGE_LABEL_FAMILIES.html +1 -0
- package/dist/docs/variables/IMAGE_LABEL_FIELDS.html +1 -0
- package/dist/docs/variables/IMAGE_LABEL_SOURCE_INCLUDES.html +2 -0
- package/dist/docs/variables/MAP_SETTINGS_KEYS.html +9 -0
- package/dist/docs/variables/ORIGINAL_OS_PARENT_FOLDER.html +1 -1
- package/dist/docs/variables/OS_CONFIRM_MODAL_CANCEL.html +2 -2
- package/dist/docs/variables/OS_CONFIRM_MODAL_NO.html +2 -2
- package/dist/docs/variables/OS_CONFIRM_MODAL_YES.html +2 -2
- package/dist/docs/variables/VECTOR_SENTINEL_LABELS.html +4 -0
- package/dist/extras.d.ts +0 -1
- package/dist/extras.d.ts.map +1 -1
- package/dist/files.d.ts +141 -1
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js.map +1 -1
- package/dist/fragmentLocator.d.ts +31 -0
- package/dist/fragmentLocator.d.ts.map +1 -0
- package/dist/fragmentLocator.js +2 -0
- package/dist/fragmentLocator.js.map +1 -0
- package/dist/imageLabels.d.ts +84 -0
- package/dist/imageLabels.d.ts.map +1 -0
- package/dist/imageLabels.js +148 -0
- package/dist/imageLabels.js.map +1 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/indexSearch.d.ts +18 -0
- package/dist/indexSearch.d.ts.map +1 -1
- package/dist/jobManifestTypes.d.ts +5 -25
- package/dist/jobManifestTypes.d.ts.map +1 -1
- package/dist/mapSettings.d.ts +17 -0
- package/dist/mapSettings.d.ts.map +1 -0
- package/dist/mapSettings.js +16 -0
- package/dist/mapSettings.js.map +1 -0
- package/dist/model.d.ts +215 -71
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +44 -25
- package/dist/model.js.map +1 -1
- package/dist/mounts.d.ts +184 -0
- package/dist/mounts.d.ts.map +1 -0
- package/dist/mounts.js +11 -0
- package/dist/mounts.js.map +1 -0
- package/dist/ontology.d.ts +148 -8
- package/dist/ontology.d.ts.map +1 -1
- package/dist/platform-types.d.ts +1692 -663
- package/dist/report.d.ts +112 -0
- package/dist/report.d.ts.map +1 -0
- package/dist/report.js +2 -0
- package/dist/report.js.map +1 -0
- package/dist/savedSet.d.ts +5 -0
- package/dist/savedSet.d.ts.map +1 -0
- package/dist/savedSet.js +2 -0
- package/dist/savedSet.js.map +1 -0
- package/dist/search.d.ts +140 -3
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +32 -1
- package/dist/search.js.map +1 -1
- package/dist/semantic.d.ts +24 -5
- package/dist/semantic.d.ts.map +1 -1
- package/dist/templates.d.ts +63 -5
- package/dist/templates.d.ts.map +1 -1
- package/dist/templates.js +8 -1
- package/dist/templates.js.map +1 -1
- package/dist/workspace.d.ts +25 -41
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js.map +1 -1
- package/package.json +6 -20
- package/dist/behaviour.d.ts +0 -45
- package/dist/behaviour.d.ts.map +0 -1
- package/dist/behaviour.js +0 -14
- package/dist/behaviour.js.map +0 -1
- package/dist/docs/interfaces/ChartDataResponseResult.html +0 -20
- package/dist/docs/interfaces/NativeFilterColumn.html +0 -3
- package/dist/docs/interfaces/NativeFilterScope.html +0 -3
- package/dist/docs/interfaces/NativeFilterTarget.html +0 -3
- package/dist/docs/interfaces/RecordData.html +0 -20
- package/dist/docs/interfaces/SavedDatasource.html +0 -7
- package/dist/docs/interfaces/SavedSearchAPIInterface.html +0 -6
- package/dist/docs/interfaces/SavedSearchContent.html +0 -7
- package/dist/docs/interfaces/StylerContext.html +0 -21
- package/dist/docs/types/Behaviour.html +0 -17
- package/dist/docs/types/DataMask.html +0 -1
- package/dist/docs/types/DesktopStylerContext.html +0 -4
- package/dist/docs/types/DraftWorkspaceItem.html +0 -3
- package/dist/docs/types/Filter.html +0 -1
- package/dist/docs/types/FilterState.html +0 -1
- package/dist/docs/types/FolderPasteOptions.html +0 -5
- package/dist/docs/types/JavascriptFileStylerDefinition.html +0 -2
- package/dist/docs/types/JavascriptInlineStylerDefinition.html +0 -2
- package/dist/docs/types/PasteContextOptions.html +0 -8
- package/dist/docs/types/RecordFetchOptions.html +0 -1
- package/dist/docs/types/SearchFilter.html +0 -2
- package/dist/docs/types/Styler.html +0 -19
- package/dist/docs/types/StylerConfig.html +0 -6
- package/dist/docs/types/StylerDefinition.html +0 -2
- package/dist/docs/types/StylerDefinitions.html +0 -2
- package/dist/docs/types/StylerOption.html +0 -4
- package/dist/docs/types/StylerProducer.html +0 -4
- package/dist/docs/types/Watcher.html +0 -11
- package/dist/docs/types/Workspace.html +0 -8
- package/dist/docs/types/WorkspaceItems.html +0 -2
- package/dist/docs/types/WorkspaceRecordInfo.html +0 -6
- package/dist/docs/types/WorkspaceRecords.html +0 -2
- package/dist/docs/variables/SAVED_SEARCH_MESSAGE_TYPES.html +0 -1
- package/dist/docs/variables/SAVED_SEARCH_PREFIX.html +0 -1
- package/dist/savedSearch.d.ts +0 -128
- package/dist/savedSearch.d.ts.map +0 -1
- package/dist/savedSearch.js +0 -16
- package/dist/savedSearch.js.map +0 -1
- package/dist/styling.d.ts +0 -100
- package/dist/styling.d.ts.map +0 -1
- package/dist/styling.js +0 -2
- package/dist/styling.js.map +0 -1
package/dist/report.d.ts
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { Entity, WorkspaceItem } from './model';
|
|
2
|
+
/**
|
|
3
|
+
* @beta
|
|
4
|
+
* A report (.odoc) that is open in the app (Composer tab and/or sidebar).
|
|
5
|
+
*/
|
|
6
|
+
export type OpenReportSummary = {
|
|
7
|
+
/** Workspace item entity uid */
|
|
8
|
+
os_entity_uid: string;
|
|
9
|
+
/** Display title (without .odoc when applicable) */
|
|
10
|
+
displayName: string;
|
|
11
|
+
/** Timestamp when the report was last updated, if known */
|
|
12
|
+
os_last_updated_at?: string;
|
|
13
|
+
surface: 'tab' | 'sidebar';
|
|
14
|
+
/** True when this is the document selected in the Composer sidebar */
|
|
15
|
+
isSidebarSelected?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @beta
|
|
19
|
+
* Checkbox payload for "Add to report" content.
|
|
20
|
+
*/
|
|
21
|
+
export type AddToReportContentSelection = {
|
|
22
|
+
coreData: boolean;
|
|
23
|
+
mainPicture: boolean;
|
|
24
|
+
allPictures: boolean;
|
|
25
|
+
relatedLinks: boolean;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @beta
|
|
29
|
+
* Minimal TipTap/ProseMirror JSON node shape used by the report append APIs.
|
|
30
|
+
*
|
|
31
|
+
* This intentionally mirrors the recursive JSON structure without depending on TipTap packages
|
|
32
|
+
* from the public platform-types package.
|
|
33
|
+
*/
|
|
34
|
+
export type ReportTiptapNode = {
|
|
35
|
+
type?: string;
|
|
36
|
+
attrs?: Record<string, unknown>;
|
|
37
|
+
text?: string;
|
|
38
|
+
marks?: {
|
|
39
|
+
type: string;
|
|
40
|
+
attrs?: Record<string, unknown>;
|
|
41
|
+
}[];
|
|
42
|
+
content?: ReportTiptapNode[];
|
|
43
|
+
};
|
|
44
|
+
type AddToReportBaseInput = {
|
|
45
|
+
/** Optional: preselect a target report when the flow opens */
|
|
46
|
+
initialTargetUid?: string;
|
|
47
|
+
/** Optional: require a live in-memory insert target instead of silently appending to disk */
|
|
48
|
+
requireLiveInsert?: boolean;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @beta
|
|
52
|
+
* Entity-driven "Add to report" payload. The host app will build report blocks from the entity plus
|
|
53
|
+
* the usual checkbox selection.
|
|
54
|
+
*/
|
|
55
|
+
export type AddToReportEntityInput = AddToReportBaseInput & {
|
|
56
|
+
mode?: 'entity';
|
|
57
|
+
/** Entity to snapshot into the report */
|
|
58
|
+
sourceEntity: Entity;
|
|
59
|
+
/** Optional: override default checkbox state */
|
|
60
|
+
initialSelection?: Partial<AddToReportContentSelection>;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* @beta
|
|
64
|
+
* Arbitrary-content "Add to report" payload. The host app shows the same target-picker UI, but
|
|
65
|
+
* appends the supplied TipTap JSON blocks directly instead of building them from an entity.
|
|
66
|
+
*/
|
|
67
|
+
export type AddToReportBlocksInput = AddToReportBaseInput & {
|
|
68
|
+
mode: 'blocks';
|
|
69
|
+
/** Arbitrary TipTap JSON blocks to append directly into the target report */
|
|
70
|
+
blocks: ReportTiptapNode[];
|
|
71
|
+
/** Optional: short label shown in the flow and suggested report name */
|
|
72
|
+
sourceLabel?: string;
|
|
73
|
+
/** Optional: explanatory text shown in the flow instead of the entity checkbox section */
|
|
74
|
+
sourceDescription?: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @beta
|
|
78
|
+
* Input for {@link ReportApi.presentAddToReportFlow}.
|
|
79
|
+
*/
|
|
80
|
+
export type AddToReportInput = AddToReportEntityInput | AddToReportBlocksInput;
|
|
81
|
+
/**
|
|
82
|
+
* @beta
|
|
83
|
+
* Result after a successful append.
|
|
84
|
+
*/
|
|
85
|
+
export type AddToReportResult = {
|
|
86
|
+
targetOdocUid: string;
|
|
87
|
+
targetDisplayName: string;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* @beta
|
|
91
|
+
* Report / Composer integration API (Octostar app).
|
|
92
|
+
*/
|
|
93
|
+
export interface ReportApi {
|
|
94
|
+
/**
|
|
95
|
+
* Lists .odoc reports that are currently open (tabs and/or Composer sidebar), with metadata.
|
|
96
|
+
*/
|
|
97
|
+
getOpenReportSummaries: () => Promise<OpenReportSummary[]>;
|
|
98
|
+
/**
|
|
99
|
+
* Lists .odoc files in open workspaces (same discovery as Composer empty state).
|
|
100
|
+
*/
|
|
101
|
+
listWorkspaceReports: () => Promise<WorkspaceItem[]>;
|
|
102
|
+
/**
|
|
103
|
+
* Opens the shared "Add to report" modal.
|
|
104
|
+
*
|
|
105
|
+
* Supported payload modes:
|
|
106
|
+
* - `entity`/default: pick target, choose the usual checkboxes, and append a snapshot of an entity.
|
|
107
|
+
* - `blocks`: pick target, then append arbitrary TipTap JSON blocks directly.
|
|
108
|
+
*/
|
|
109
|
+
presentAddToReportFlow: (input: AddToReportInput) => Promise<AddToReportResult | void>;
|
|
110
|
+
}
|
|
111
|
+
export {};
|
|
112
|
+
//# sourceMappingURL=report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,2DAA2D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CAAC;IAC3B,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0FAA0F;IAC1F,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GAAG,sBAAsB,CAAC;AAE/E;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,sBAAsB,EAAE,MAAM,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAE3D;;OAEG;IACH,oBAAoB,EAAE,MAAM,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAErD;;;;;;OAMG;IACH,sBAAsB,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACxF"}
|
package/dist/report.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"savedSet.d.ts","sourceRoot":"","sources":["../src/savedSet.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC"}
|
package/dist/savedSet.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"savedSet.js","sourceRoot":"","sources":["../src/savedSet.ts"],"names":[],"mappings":""}
|
package/dist/search.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import { type QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types';
|
|
2
1
|
import { type Entity, type WorkspaceItem } from './model';
|
|
2
|
+
/**
|
|
3
|
+
* @beta
|
|
4
|
+
* An opaque Elasticsearch query-DSL fragment. Previously imported from
|
|
5
|
+
* `@elastic/elasticsearch`, but that type is an `any`-sea and pulling the whole
|
|
6
|
+
* ES client (with its OpenTelemetry/undici transitive advisories) into the dev
|
|
7
|
+
* tree to type a single field wasn't worth it — consumers treat `query`
|
|
8
|
+
* opaquely (see content-browser queryComposition.ts / createEmbeddingFilter.ts).
|
|
9
|
+
*/
|
|
10
|
+
export type QueryDslQueryContainer = Record<string, unknown>;
|
|
3
11
|
/**
|
|
4
12
|
* @beta
|
|
5
13
|
* Interface representing the properties for the SearchXperience component.
|
|
@@ -37,12 +45,41 @@ export interface SearchXperienceModalProps extends SearchXperienceProps {
|
|
|
37
45
|
* @beta
|
|
38
46
|
* Type representing the search filter.
|
|
39
47
|
*/
|
|
40
|
-
export
|
|
48
|
+
export interface SearchFilter {
|
|
41
49
|
label?: string;
|
|
42
50
|
entity?: Entity;
|
|
43
51
|
query?: QueryDslQueryContainer;
|
|
44
52
|
imageUrl?: string;
|
|
45
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Optional long-form descriptor for this filter. Chips in the UI use
|
|
55
|
+
* the short `label` on their face and surface `tooltip` in a hover
|
|
56
|
+
* tooltip — useful when the label alone is ambiguous (for example a
|
|
57
|
+
* "Folder: Reports" chip whose `tooltip` disambiguates to the full
|
|
58
|
+
* breadcrumb "WorkspaceName / Projects / 2025 / Reports").
|
|
59
|
+
*/
|
|
60
|
+
tooltip?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Optional classification of how this filter participates in the final
|
|
63
|
+
* Elasticsearch query. Filters tagged `'scope'` (i.e. those produced by
|
|
64
|
+
* "Open with the Search Engine" or by dropping items onto search-app) are
|
|
65
|
+
* combined with OR (`bool.should`); other kinds combine with AND
|
|
66
|
+
* (`bool.must`). When omitted, the filter behaves as a `bool.must` clause
|
|
67
|
+
* for backwards compatibility.
|
|
68
|
+
*/
|
|
69
|
+
kind?: 'scope' | 'concept' | 'text' | 'image';
|
|
70
|
+
/**
|
|
71
|
+
* When `true`, this filter is a **hard browsing scope** that must survive a
|
|
72
|
+
* facet's self-exclusion: it represents the universe the user opened into
|
|
73
|
+
* (e.g. the "Files" or "Records" section they launched the Search Engine
|
|
74
|
+
* from), not a pivotable facet pick. Normally an AND-combined (`'concept'`)
|
|
75
|
+
* filter whose query references a facet's own field is dropped from that
|
|
76
|
+
* facet's bucket counts so the user can pivot between sibling values; a
|
|
77
|
+
* pinned scope is kept regardless, so the by-type facet stays constrained to
|
|
78
|
+
* the section you opened. No effect on OR-combined (`'scope'`) filters, which
|
|
79
|
+
* already survive self-exclusion. Defaults to unpinned.
|
|
80
|
+
*/
|
|
81
|
+
pinned?: boolean;
|
|
82
|
+
}
|
|
46
83
|
/**
|
|
47
84
|
* @beta
|
|
48
85
|
* Interface representing the properties for the Search component.
|
|
@@ -64,6 +101,7 @@ export interface SearchProps {
|
|
|
64
101
|
* the default image to use for the search.
|
|
65
102
|
*/
|
|
66
103
|
image?: WorkspaceItem;
|
|
104
|
+
selectMode?: 'single' | 'multi';
|
|
67
105
|
/**
|
|
68
106
|
* disable ask AI
|
|
69
107
|
*/
|
|
@@ -81,6 +119,15 @@ export interface SearchProps {
|
|
|
81
119
|
*/
|
|
82
120
|
searchInfoDescription?: React.ReactNode;
|
|
83
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* @beta
|
|
124
|
+
* Represents the result of a query-mode search: the raw Elasticsearch query
|
|
125
|
+
* plus the total number of matching documents.
|
|
126
|
+
*/
|
|
127
|
+
export interface SearchQueryResult {
|
|
128
|
+
query: Record<string, unknown>;
|
|
129
|
+
numberOfResults: number;
|
|
130
|
+
}
|
|
84
131
|
/**
|
|
85
132
|
* @beta
|
|
86
133
|
* Interface representing the options given to search
|
|
@@ -91,5 +138,95 @@ export interface SearchOptions {
|
|
|
91
138
|
*/
|
|
92
139
|
limit?: number;
|
|
93
140
|
workspace_ids?: string[];
|
|
141
|
+
/** Cheaper than listing everywhere-else; neither grants access. */
|
|
142
|
+
exclude_workspace_ids?: string[];
|
|
143
|
+
/**
|
|
144
|
+
* Entity types to exclude.
|
|
145
|
+
*/
|
|
146
|
+
exclude_entity_types?: string[];
|
|
147
|
+
/**
|
|
148
|
+
* Narrow to these types. {@link limit} is applied on `_score` alone, so without
|
|
149
|
+
* this a broad term spends the whole result set on types the caller discards.
|
|
150
|
+
*/
|
|
151
|
+
entity_types?: string[];
|
|
152
|
+
/**
|
|
153
|
+
* Look up these entities by uid, with an empty query. Treat an absent one as
|
|
154
|
+
* "ask again".
|
|
155
|
+
*/
|
|
156
|
+
os_entity_uids?: string[];
|
|
157
|
+
/**
|
|
158
|
+
* How wide to match. See {@link SearchScope}.
|
|
159
|
+
*/
|
|
160
|
+
scope?: SearchScope;
|
|
161
|
+
/**
|
|
162
|
+
* Override the response shape. The default ships every field except the heavy
|
|
163
|
+
* annotation blobs (extracted text, chunks, NER arrays), which is what a hit
|
|
164
|
+
* list needs; pass this only when a caller genuinely wants something narrower
|
|
165
|
+
* or one of the excluded keys.
|
|
166
|
+
*/
|
|
167
|
+
source?: {
|
|
168
|
+
includes?: string[];
|
|
169
|
+
excludes?: string[];
|
|
170
|
+
};
|
|
94
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* How wide a text search matches — THE declaration; every other scope type
|
|
174
|
+
* derives from it (`FinderSearchScope` adds an `'off'` rung on top).
|
|
175
|
+
*
|
|
176
|
+
* `names` is a filter-a-list surface: the name only, and also *inside* it
|
|
177
|
+
* (`atch` → `match.pdf`), which the analyzed tiers cannot do — a hit whose
|
|
178
|
+
* text mentions the term but whose name does not reads as wrong there.
|
|
179
|
+
* `names+contents` is the full relevance ladder, extracted text included.
|
|
180
|
+
*
|
|
181
|
+
* One value rather than two flags: they were only ever set together, and a
|
|
182
|
+
* caller asking for substring matching without names-only meant nothing.
|
|
183
|
+
*/
|
|
184
|
+
export type SearchScope = 'names' | 'names+contents';
|
|
185
|
+
export interface SearchInnerHit {
|
|
186
|
+
_score?: number | null;
|
|
187
|
+
_source?: Record<string, unknown>;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* One raw engine hit, the subset of the ES/OpenSearch hit shape Octostar
|
|
191
|
+
* reads. Lives here — not in a UI package — because both the Content
|
|
192
|
+
* Browser and the app's search layer consume the same hits; the UI
|
|
193
|
+
* package re-exports it for back-compat.
|
|
194
|
+
*/
|
|
195
|
+
export interface SearchHit {
|
|
196
|
+
_id: string;
|
|
197
|
+
_index?: string;
|
|
198
|
+
_score?: number;
|
|
199
|
+
_source: Record<string, unknown>;
|
|
200
|
+
highlight?: Record<string, string[]>;
|
|
201
|
+
inner_hits?: Record<string, {
|
|
202
|
+
hits: {
|
|
203
|
+
total?: {
|
|
204
|
+
value: number;
|
|
205
|
+
relation: 'eq' | 'gte';
|
|
206
|
+
} | number;
|
|
207
|
+
hits: SearchInnerHit[];
|
|
208
|
+
};
|
|
209
|
+
}>;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Annotation keys never worth shipping with a hit list: `rag:fulltext` and
|
|
213
|
+
* `rag:chunks` carry every document's extracted text (a 200-hit search shipped
|
|
214
|
+
* ~10 MB of it to draw a list of names), `ner:entities` is a long array nothing
|
|
215
|
+
* renders, and the heavy `materialized` children are the detection copies with
|
|
216
|
+
* their vectors and the NER and geo rollups. The small
|
|
217
|
+
* `materialized.image:labels*` arrays ride along: they are how a card learns
|
|
218
|
+
* that a document holds a flagged image on one of its pages.
|
|
219
|
+
*
|
|
220
|
+
* An exclude list rather than an allowlist, deliberately: the small card-shaped
|
|
221
|
+
* annotations (`summary:txt`, `image:annotations-*`) have to ride along, and a
|
|
222
|
+
* field nobody thought of must arrive rather than vanish. Exported so any caller
|
|
223
|
+
* that shapes its own `_source` trims the same things — two lists would drift,
|
|
224
|
+
* and the drift shows up as a blank cell nobody can explain.
|
|
225
|
+
*
|
|
226
|
+
* Lives here with the rest of the wire contract — not in a UI package, and not
|
|
227
|
+
* in platform-api (whose barrel several test suites blanket-mock; a constant
|
|
228
|
+
* read at module scope must survive that). The Content Browser re-exports it
|
|
229
|
+
* for back-compat.
|
|
230
|
+
*/
|
|
231
|
+
export declare const HEAVY_ANNOTATION_FIELDS: readonly string[];
|
|
95
232
|
//# sourceMappingURL=search.d.ts.map
|
package/dist/search.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1D;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,sDAAsD;IACtD,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACtC,+CAA+C;IAC/C,sBAAsB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7C,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,kBAAkB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9E;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,iCAAiC;IACjC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B;;;;OAIG;IACH,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,GAAG,SAAS,CAAC;CAC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2 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Annotation keys never worth shipping with a hit list: `rag:fulltext` and
|
|
3
|
+
* `rag:chunks` carry every document's extracted text (a 200-hit search shipped
|
|
4
|
+
* ~10 MB of it to draw a list of names), `ner:entities` is a long array nothing
|
|
5
|
+
* renders, and the heavy `materialized` children are the detection copies with
|
|
6
|
+
* their vectors and the NER and geo rollups. The small
|
|
7
|
+
* `materialized.image:labels*` arrays ride along: they are how a card learns
|
|
8
|
+
* that a document holds a flagged image on one of its pages.
|
|
9
|
+
*
|
|
10
|
+
* An exclude list rather than an allowlist, deliberately: the small card-shaped
|
|
11
|
+
* annotations (`summary:txt`, `image:annotations-*`) have to ride along, and a
|
|
12
|
+
* field nobody thought of must arrive rather than vanish. Exported so any caller
|
|
13
|
+
* that shapes its own `_source` trims the same things — two lists would drift,
|
|
14
|
+
* and the drift shows up as a blank cell nobody can explain.
|
|
15
|
+
*
|
|
16
|
+
* Lives here with the rest of the wire contract — not in a UI package, and not
|
|
17
|
+
* in platform-api (whose barrel several test suites blanket-mock; a constant
|
|
18
|
+
* read at module scope must survive that). The Content Browser re-exports it
|
|
19
|
+
* for back-compat.
|
|
20
|
+
*/
|
|
21
|
+
export const HEAVY_ANNOTATION_FIELDS = [
|
|
22
|
+
'annotations.rag:fulltext',
|
|
23
|
+
'annotations.rag:chunks',
|
|
24
|
+
'annotations.extract:metadata',
|
|
25
|
+
'annotations.extract:src',
|
|
26
|
+
'annotations.extract:txtLang',
|
|
27
|
+
'annotations.ner:entities',
|
|
28
|
+
'annotations.materialized.image:annotations*',
|
|
29
|
+
'annotations.materialized.ner:*',
|
|
30
|
+
'annotations.materialized.exif:*',
|
|
31
|
+
'annotations.extract:txt',
|
|
32
|
+
];
|
|
2
33
|
//# sourceMappingURL=search.js.map
|
package/dist/search.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAkNA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAsB;IACxD,0BAA0B;IAC1B,wBAAwB;IACxB,8BAA8B;IAC9B,yBAAyB;IACzB,6BAA6B;IAC7B,0BAA0B;IAC1B,6CAA6C;IAC7C,gCAAgC;IAChC,iCAAiC;IACjC,yBAAyB;CAC1B,CAAC"}
|
package/dist/semantic.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConceptName } from './model';
|
|
1
|
+
import { type ConceptName } from './model';
|
|
2
2
|
/**
|
|
3
3
|
* @beta
|
|
4
4
|
* Type representing the properties for a template binding.
|
|
@@ -10,6 +10,8 @@ export interface SemanticBindingProps {
|
|
|
10
10
|
priority?: number;
|
|
11
11
|
/** Whether the result should be shown in large mode by default */
|
|
12
12
|
maximized?: boolean;
|
|
13
|
+
/** Sift-compatible query evaluated against the entity. When present, the binding only matches if the filter passes. */
|
|
14
|
+
filter?: Record<string, any>;
|
|
13
15
|
/** Other properties */
|
|
14
16
|
[key: string]: any;
|
|
15
17
|
}
|
|
@@ -32,9 +34,26 @@ export type SemanticBinding = {
|
|
|
32
34
|
};
|
|
33
35
|
/**
|
|
34
36
|
* @beta
|
|
35
|
-
*
|
|
37
|
+
* Options of one concept in an app manifest's `semantic_bindings`.
|
|
36
38
|
*/
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
export interface SemanticBindingOptions {
|
|
40
|
+
/** Order among the bindings for an entity. Lower comes first. */
|
|
41
|
+
priority?: number;
|
|
42
|
+
/** `record_viewer` only: open the tab full screen. */
|
|
43
|
+
maximized?: boolean;
|
|
44
|
+
/** Sift-compatible query evaluated against the entity. The binding applies only when it matches. */
|
|
45
|
+
filter?: Record<string, unknown>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @beta
|
|
49
|
+
* The bindings of one role: a concept name, a list of concept names and one-key maps of concept to options,
|
|
50
|
+
* or a map of concept to options.
|
|
51
|
+
*/
|
|
52
|
+
export type SemanticBindingSpec = ConceptName | (ConceptName | Record<ConceptName, SemanticBindingOptions | null>)[] | Record<ConceptName, SemanticBindingOptions | null>;
|
|
53
|
+
/**
|
|
54
|
+
* @beta
|
|
55
|
+
* An app manifest's `semantic_bindings`: the bindings per role. The platform reads `opener`
|
|
56
|
+
* (a double-click on a matching entity opens the app) and `record_viewer` (the app is a Record Viewer tab).
|
|
57
|
+
*/
|
|
58
|
+
export type SemanticBindings = Partial<Record<SemanticBindingType, SemanticBindingSpec>>;
|
|
40
59
|
//# sourceMappingURL=semantic.d.ts.map
|
package/dist/semantic.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../src/semantic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../src/semantic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uHAAuH;IACvH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,uBAAuB;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,MAAM,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,+CAA+C;IAC/C,OAAO,EAAE,WAAW,CAAC;IACrB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,oCAAoC;IACpC,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oGAAoG;IACpG,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAC3B,WAAW,GACX,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,sBAAsB,GAAG,IAAI,CAAC,CAAC,EAAE,GACpE,MAAM,CAAC,WAAW,EAAE,sBAAsB,GAAG,IAAI,CAAC,CAAC;AAEvD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,CAAC"}
|
package/dist/templates.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ModalProps } from 'antd';
|
|
2
|
-
import { type ReactCssProperties } from './react-types';
|
|
2
|
+
import { type ReactCssProperties, type ReactNode } from './react-types';
|
|
3
3
|
import { type SemanticBinding } from './semantic';
|
|
4
|
+
import { type WorkspaceItem } from './model';
|
|
4
5
|
/**
|
|
5
6
|
* @beta
|
|
6
7
|
* Type representing the possible template types.
|
|
@@ -38,18 +39,27 @@ export type TemplateMetadata = {
|
|
|
38
39
|
style?: ReactCssProperties;
|
|
39
40
|
/** Whether the template renders multiple records. */
|
|
40
41
|
rendersMultipleRecords?: boolean;
|
|
41
|
-
/** Whether the template is an app. */
|
|
42
|
-
isApp?: boolean;
|
|
43
42
|
/** details for semantic bindings. These can be app-specific */
|
|
44
43
|
bindings?: SemanticBinding[];
|
|
44
|
+
/** Optional CSS injected when the template renders. */
|
|
45
|
+
css_content?: string;
|
|
45
46
|
};
|
|
46
47
|
/**
|
|
47
48
|
* @beta
|
|
48
49
|
* Type representing a custom template, extending TemplateMetadata.
|
|
50
|
+
*
|
|
51
|
+
* `os_entity_uid` and `os_workspace` are optional here so an in-memory
|
|
52
|
+
* template built via `newCustomTemplate()` can still flow through
|
|
53
|
+
* `RenderableTemplate`-typed code paths. `SavedTemplate` narrows both
|
|
54
|
+
* to required strings.
|
|
49
55
|
*/
|
|
50
56
|
export type CustomTemplate = TemplateMetadata & {
|
|
51
57
|
/** The template content. */
|
|
52
58
|
template: string;
|
|
59
|
+
/** Set once the template is persisted as a workspace item. */
|
|
60
|
+
os_entity_uid?: string;
|
|
61
|
+
/** Set once the template is persisted as a workspace item. */
|
|
62
|
+
os_workspace?: string;
|
|
53
63
|
};
|
|
54
64
|
/**
|
|
55
65
|
* @beta
|
|
@@ -60,9 +70,57 @@ export type SavedTemplate = CustomTemplate & {
|
|
|
60
70
|
os_entity_uid: string;
|
|
61
71
|
/** The workspace to which the template belongs. */
|
|
62
72
|
os_workspace: string;
|
|
63
|
-
/** The CSS content of the template. */
|
|
64
|
-
css_content?: string;
|
|
65
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* @beta
|
|
76
|
+
* Props passed to a code-resident default template's React component.
|
|
77
|
+
*/
|
|
78
|
+
export type DefaultTemplateProps = {
|
|
79
|
+
/** The record this template is rendering for, if any. */
|
|
80
|
+
record?: WorkspaceItem;
|
|
81
|
+
/** The same context object passed to react-live templates. */
|
|
82
|
+
context?: any;
|
|
83
|
+
/** Optional extra scope variables forwarded from `<OsTemplate extraScope>`. */
|
|
84
|
+
extraScope?: Record<string, unknown>;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* @beta
|
|
88
|
+
* A code-resident default template. Carries the same metadata as a
|
|
89
|
+
* `SavedTemplate` so it can flow through the existing template lookup
|
|
90
|
+
* pipeline, but renders via a real React component rather than a
|
|
91
|
+
* `react-live` string.
|
|
92
|
+
*
|
|
93
|
+
* Defaults always have `os_workspace === ''` — that's the marker
|
|
94
|
+
* `isDefaultTemplate` looks for and disambiguates them from workspace
|
|
95
|
+
* templates whose `os_workspace` is always a real UUID.
|
|
96
|
+
*/
|
|
97
|
+
export type DefaultTemplate = TemplateMetadata & {
|
|
98
|
+
/** Synthetic identifier, e.g. `default-template-PersonInfo`. */
|
|
99
|
+
os_entity_uid: string;
|
|
100
|
+
/** Empty string marks this as a code-resident default. */
|
|
101
|
+
os_workspace: '';
|
|
102
|
+
/** The React component that renders this template. */
|
|
103
|
+
component: (props: DefaultTemplateProps) => ReactNode;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* @beta
|
|
107
|
+
* Union of every shape a template lookup may return:
|
|
108
|
+
* - workspace-stored `SavedTemplate` (rendered via `react-live`),
|
|
109
|
+
* - code-resident `DefaultTemplate` (rendered as a real React component),
|
|
110
|
+
* - in-memory `CustomTemplate` produced by `newCustomTemplate()` before
|
|
111
|
+
* it has been persisted.
|
|
112
|
+
*
|
|
113
|
+
* `SavedTemplate ⊂ CustomTemplate`, so this is structurally equivalent
|
|
114
|
+
* to `CustomTemplate | DefaultTemplate`; the explicit list is kept for
|
|
115
|
+
* readability.
|
|
116
|
+
*/
|
|
117
|
+
export type RenderableTemplate = SavedTemplate | DefaultTemplate | CustomTemplate;
|
|
118
|
+
/**
|
|
119
|
+
* @beta
|
|
120
|
+
* Type guard distinguishing code-resident default templates from
|
|
121
|
+
* workspace-stored ones.
|
|
122
|
+
*/
|
|
123
|
+
export declare function isDefaultTemplate(t: RenderableTemplate | undefined | null): t is DefaultTemplate;
|
|
66
124
|
/**
|
|
67
125
|
* @beta
|
|
68
126
|
* Type representing the properties for a custom template iframe.
|
package/dist/templates.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"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CAAoC;IACpC,OAAO,EAAE,GAAG,CAAC;IACb,oCAAoC;IACpC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC7C,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,yBAAyB,GAAG;IAC3D,yCAAyC;IACzC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,iCAAiC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,cAAc,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
package/dist/templates.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @beta
|
|
3
|
+
* Type guard distinguishing code-resident default templates from
|
|
4
|
+
* workspace-stored ones.
|
|
5
|
+
*/
|
|
6
|
+
export function isDefaultTemplate(t) {
|
|
7
|
+
return (Boolean(t) && t.os_workspace === '' && typeof t.component === 'function');
|
|
8
|
+
}
|
|
2
9
|
//# sourceMappingURL=templates.js.map
|
package/dist/templates.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AA8HA;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,CAAwC;IACxE,OAAO,CACL,OAAO,CAAC,CAAC,CAAC,IAAK,CAAqB,CAAC,YAAY,KAAK,EAAE,IAAI,OAAQ,CAAqB,CAAC,SAAS,KAAK,UAAU,CACnH,CAAC;AACJ,CAAC"}
|
package/dist/workspace.d.ts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
import type { AddListener, Callback, Unsubscribe } from './callback';
|
|
2
|
-
import type { Entity, OsTag, WorkspaceItem,
|
|
2
|
+
import type { Entity, OsTag, WorkspaceItem, WorkspaceRelationship } from './model';
|
|
3
|
+
/**
|
|
4
|
+
* A `WorkspaceItem` carrying the app's resolved iframe URL on the runtime-only
|
|
5
|
+
* `#appUrl` field.
|
|
6
|
+
*
|
|
7
|
+
* IMPORTANT: `#appUrl` is **runtime-only and never persisted**. It is hydrated
|
|
8
|
+
* in-memory from the K8s apps API (e.g. by `DesktopAPI.getApp` /
|
|
9
|
+
* `hydrateWithK8sState`) and is **stripped on any JSON round-trip** — notably
|
|
10
|
+
* the flexlayout tab-config serialization. Never read `#appUrl` off an item
|
|
11
|
+
* that was restored or deserialized; resolve the live URL via
|
|
12
|
+
* `useAppDeploymentState` instead. `os_item_content.app_url` no longer carries
|
|
13
|
+
* the URL — it is gone.
|
|
14
|
+
*/
|
|
15
|
+
export type RuntimeAppUrlWorkspaceItem = WorkspaceItem & {
|
|
16
|
+
'#appUrl'?: string;
|
|
17
|
+
};
|
|
18
|
+
/** {@link RuntimeAppUrlWorkspaceItem} for the raw `Entity` shape (e.g. the
|
|
19
|
+
* synthetic iframe-transform items built in the job services). Same
|
|
20
|
+
* runtime-only `#appUrl` contract — never persisted, never read off a
|
|
21
|
+
* restored item. */
|
|
22
|
+
export type RuntimeAppUrlEntity = Entity & {
|
|
23
|
+
'#appUrl'?: string;
|
|
24
|
+
};
|
|
3
25
|
/**
|
|
4
26
|
* @beta
|
|
5
27
|
* Type representing information about a tag.
|
|
@@ -69,44 +91,6 @@ export type WorkspaceFlags = {
|
|
|
69
91
|
autoOpen?: boolean;
|
|
70
92
|
isHidden?: boolean;
|
|
71
93
|
};
|
|
72
|
-
/**
|
|
73
|
-
* @beta
|
|
74
|
-
* Type representing information about records in a workspace.
|
|
75
|
-
*/
|
|
76
|
-
export type WorkspaceRecordInfo = {
|
|
77
|
-
/** The concept associated with the records. */
|
|
78
|
-
concept: string;
|
|
79
|
-
/** The count of records. */
|
|
80
|
-
count: number;
|
|
81
|
-
/** The last updated timestamp for the records. */
|
|
82
|
-
max_last_updated: string;
|
|
83
|
-
/** The entities associated with the records. */
|
|
84
|
-
entities: Entity[];
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* @beta
|
|
88
|
-
* Type representing a collection of workspace records.
|
|
89
|
-
*/
|
|
90
|
-
export type WorkspaceRecords = Record<string, WorkspaceRecordInfo>;
|
|
91
|
-
/**
|
|
92
|
-
* @beta
|
|
93
|
-
* Type representing a workspace.
|
|
94
|
-
*/
|
|
95
|
-
export type Workspace = {
|
|
96
|
-
/** The workspace item. */
|
|
97
|
-
workspace: WorkspaceItem;
|
|
98
|
-
/** The items in the workspace. */
|
|
99
|
-
items: WorkspaceItems;
|
|
100
|
-
/** Optional records in the workspace. */
|
|
101
|
-
workspace_records?: WorkspaceRecords;
|
|
102
|
-
/** Optional tags in the workspace. */
|
|
103
|
-
tags?: TagInfo[];
|
|
104
|
-
/** Optional permission for the workspace. */
|
|
105
|
-
permission?: WorkspacePermission;
|
|
106
|
-
/** Whether the workspace is active. */
|
|
107
|
-
isActive?: boolean;
|
|
108
|
-
os_flags?: number;
|
|
109
|
-
};
|
|
110
94
|
/**
|
|
111
95
|
* @beta
|
|
112
96
|
* Type representing a UUID.
|
|
@@ -147,7 +131,7 @@ export interface WorkspaceChangeEmitter {
|
|
|
147
131
|
* @param callback - The callback to invoke on changes.
|
|
148
132
|
* @returns A promise that resolves to an unsubscribe function.
|
|
149
133
|
*/
|
|
150
|
-
onWorkspaceChanged: (ws: WorkspaceIdentifier, callback: Callback<
|
|
134
|
+
onWorkspaceChanged: (ws: WorkspaceIdentifier, callback: Callback<WorkspaceItem>) => Promise<Unsubscribe>;
|
|
151
135
|
/**
|
|
152
136
|
* Subscribes to changes for a given workspace item.
|
|
153
137
|
* @param item - The workspace item identifier.
|
|
@@ -160,7 +144,7 @@ export interface WorkspaceChangeEmitter {
|
|
|
160
144
|
* @param callback - The callback to invoke with the current open workspaces.
|
|
161
145
|
* @returns A promise that resolves to an unsubscribe function.
|
|
162
146
|
*/
|
|
163
|
-
onOpenWorkspacesChanged: AddListener<
|
|
147
|
+
onOpenWorkspacesChanged: AddListener<WorkspaceItem[]>;
|
|
164
148
|
}
|
|
165
149
|
/**
|
|
166
150
|
* @beta
|