@octostar/platform-types 0.5.36 → 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 +384 -234
- 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 +200 -125
- 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 -39
- 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 +1680 -678
- 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/ImportZipOptions.html +0 -6
- 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/desktop.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import type { TabNode } from 'flexlayout-react';
|
|
2
2
|
import type { ButtonProps } from 'antd';
|
|
3
3
|
import type { AddListener, Unsubscribe } from './callback';
|
|
4
|
-
import type { WorkspaceItem, Entity, WorkspaceItemModel, WorkspaceRecordIdentifier, OsWorkspaceEntity, Relationship, OsTag, TagAttributes,
|
|
5
|
-
import type {
|
|
4
|
+
import type { WorkspaceItem, Entity, WorkspaceItemModel, WorkspaceRecordIdentifier, OsWorkspaceEntity, Relationship, OsTag, TagAttributes, FocusListItem, Concept, EntityBase } from './model';
|
|
5
|
+
import type { RuntimeAppUrlWorkspaceItem, TagWithRelationship, WorkspaceChangeEmitter, WorkspaceIdentifier, WorkspacePermission, WorkspacePermissionValue, WorkspaceRecordWithRelationships } from './workspace';
|
|
6
6
|
import type { EventEmitterType } from './event';
|
|
7
7
|
import type { ActionContext, ContextMenuGroup, ContextMenuOptions, ContextMenuRequest } from './action';
|
|
8
|
-
import type { ModalTemplateProps, SavedTemplate } from './templates';
|
|
8
|
+
import type { ModalTemplateProps, RenderableTemplate, SavedTemplate } from './templates';
|
|
9
9
|
import type { App, AppServiceCallProps } from './app';
|
|
10
|
-
import type { SearchOptions, SearchProps, SearchXperienceProps } from './search';
|
|
11
|
-
import type { Styler, StylerConfig, StylerOption } from './styling';
|
|
12
|
-
import type { GraphSpec } from './graph';
|
|
10
|
+
import type { SearchOptions, SearchProps, SearchQueryResult, SearchXperienceProps } from './search';
|
|
13
11
|
import type { UserProfile } from './user';
|
|
14
12
|
import type { ReactCssProperties, ReactRef, ReactNode } from './react-types';
|
|
15
13
|
import type { Ontology } from './ontology';
|
|
@@ -46,48 +44,6 @@ export type IconProps = {
|
|
|
46
44
|
*/
|
|
47
45
|
iconRef?: ReactRef<HTMLSpanElement>;
|
|
48
46
|
};
|
|
49
|
-
export type Watcher = {
|
|
50
|
-
/**
|
|
51
|
-
* Application ID.
|
|
52
|
-
*/
|
|
53
|
-
app_id: string;
|
|
54
|
-
/**
|
|
55
|
-
* Application name.
|
|
56
|
-
*/
|
|
57
|
-
app_name: string;
|
|
58
|
-
/**
|
|
59
|
-
* Watcher name.
|
|
60
|
-
*/
|
|
61
|
-
watcher_name: string;
|
|
62
|
-
/**
|
|
63
|
-
* Constants for the watcher.
|
|
64
|
-
*/
|
|
65
|
-
const: [key: string, value: any][];
|
|
66
|
-
/**
|
|
67
|
-
* Description of the watcher.
|
|
68
|
-
*/
|
|
69
|
-
description: string;
|
|
70
|
-
/**
|
|
71
|
-
* File associated with the watcher.
|
|
72
|
-
*/
|
|
73
|
-
file: string;
|
|
74
|
-
/**
|
|
75
|
-
* Interval for the watcher.
|
|
76
|
-
*/
|
|
77
|
-
interval: string;
|
|
78
|
-
/**
|
|
79
|
-
* Name of the watcher.
|
|
80
|
-
*/
|
|
81
|
-
name: string;
|
|
82
|
-
/**
|
|
83
|
-
* Parameters for the watcher.
|
|
84
|
-
*/
|
|
85
|
-
params: [key: string, value: any][];
|
|
86
|
-
/**
|
|
87
|
-
* Semantically bound items.
|
|
88
|
-
*/
|
|
89
|
-
semantically_bound: string[];
|
|
90
|
-
};
|
|
91
47
|
/**
|
|
92
48
|
* Options for saving a file.
|
|
93
49
|
* @beta
|
|
@@ -103,10 +59,6 @@ export type SaveFileOptions = {
|
|
|
103
59
|
* @beta
|
|
104
60
|
*/
|
|
105
61
|
export type SaveOptions = SaveFileOptions & {
|
|
106
|
-
/**
|
|
107
|
-
* Whether to save as a draft.
|
|
108
|
-
*/
|
|
109
|
-
draft?: boolean;
|
|
110
62
|
/**
|
|
111
63
|
* Whether to save as a new file.
|
|
112
64
|
*/
|
|
@@ -147,10 +99,6 @@ export interface DeveloperSettings {
|
|
|
147
99
|
* Override URL for the API server.
|
|
148
100
|
*/
|
|
149
101
|
octostarAPIServer?: string;
|
|
150
|
-
/**
|
|
151
|
-
* Override URL for the search app.
|
|
152
|
-
*/
|
|
153
|
-
searchAppUrl?: string;
|
|
154
102
|
}
|
|
155
103
|
/**
|
|
156
104
|
* Interface for desktop settings.
|
|
@@ -224,6 +172,23 @@ export type DesktopActionOptions = {
|
|
|
224
172
|
* Open tab in a new tabset
|
|
225
173
|
*/
|
|
226
174
|
newTabset?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Open the tab in a new tabset docked on one side of this tabset, e.g. a view beside the tab it follows.
|
|
177
|
+
* Falls back to the default placement when the tabset no longer exists.
|
|
178
|
+
*/
|
|
179
|
+
dockBeside?: {
|
|
180
|
+
tabsetId: string;
|
|
181
|
+
side: 'left' | 'right';
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* When `tabId` matches an existing tab, swap the tab's
|
|
185
|
+
* `component`/`config`/`name` in place instead of just focusing it.
|
|
186
|
+
* No delete + re-add, so the tab node stays alive at its current
|
|
187
|
+
* position and flexlayout re-runs the factory with the new entity —
|
|
188
|
+
* flicker-free content swap inside a single persistent tab.
|
|
189
|
+
* Ignored when the tab doesn't exist (falls through to normal open).
|
|
190
|
+
*/
|
|
191
|
+
replaceContent?: boolean;
|
|
227
192
|
/**
|
|
228
193
|
* Wait for the tab to open
|
|
229
194
|
*/
|
|
@@ -232,6 +197,38 @@ export type DesktopActionOptions = {
|
|
|
232
197
|
* Custom name of the tab.
|
|
233
198
|
*/
|
|
234
199
|
tabName?: string;
|
|
200
|
+
/**
|
|
201
|
+
* When the open is requested from a global surface with NO active workspace (Home,
|
|
202
|
+
* Workspaces, …), host the record in the workspace it belongs to — opening that
|
|
203
|
+
* workspace — instead of the last-active / personal workspace. Set by
|
|
204
|
+
* entity deep links (`#entity/...`) so a pasted link lands the record in its
|
|
205
|
+
* own workspace. Ignored when a workspace is already active (the active workspace hosts
|
|
206
|
+
* it) or when the record carries no concrete workspace (draft / personal).
|
|
207
|
+
*/
|
|
208
|
+
hostInOwnWorkspace?: boolean;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Options for {@link Desktop.openNewAIChat}.
|
|
212
|
+
* @beta
|
|
213
|
+
*/
|
|
214
|
+
export type OpenNewAIChatOptions = {
|
|
215
|
+
/**
|
|
216
|
+
* How the prompt seeds the new chat:
|
|
217
|
+
* - `'send'` (default): the prompt is auto-sent as the chat's first message
|
|
218
|
+
* on first mount.
|
|
219
|
+
* - `'draft'`: the prompt only prefills the chat input, leaving the user to
|
|
220
|
+
* review and hit send.
|
|
221
|
+
*/
|
|
222
|
+
mode?: 'send' | 'draft';
|
|
223
|
+
/**
|
|
224
|
+
* Where the new chat opens:
|
|
225
|
+
* - `'tab'` (default): as a workbench tab, via the AI Chat app.
|
|
226
|
+
* - `'sidebar'`: in the host's AI panel (making it visible and
|
|
227
|
+
* switching it to AI Chats). Requires the v3 app to be present — a host
|
|
228
|
+
* without an AI panel ignores it. The chat is seeded identically either
|
|
229
|
+
* way (same one-shot `os_item_content` prompt/context fields).
|
|
230
|
+
*/
|
|
231
|
+
target?: 'tab' | 'sidebar';
|
|
235
232
|
};
|
|
236
233
|
/**
|
|
237
234
|
* Context for desktop actions.
|
|
@@ -303,6 +300,10 @@ export type DesktopActionMenuItem = {
|
|
|
303
300
|
* Key for the menu item.
|
|
304
301
|
*/
|
|
305
302
|
key: string;
|
|
303
|
+
/**
|
|
304
|
+
* Test id for the rendered menu item. Defaults to `menuitem-<key>`.
|
|
305
|
+
*/
|
|
306
|
+
testId?: string;
|
|
306
307
|
/**
|
|
307
308
|
* Icon for the menu item.
|
|
308
309
|
*/
|
|
@@ -335,6 +336,12 @@ export type DesktopActionMenuItem = {
|
|
|
335
336
|
* Filter for accepting the menu item.
|
|
336
337
|
*/
|
|
337
338
|
accepts: DesktopActionFilter;
|
|
339
|
+
/**
|
|
340
|
+
* Render the item greyed-out and non-clickable. Use for an action that is
|
|
341
|
+
* deliberately shown-but-inert in some state (so the user learns it exists and
|
|
342
|
+
* why it's unavailable) rather than hidden.
|
|
343
|
+
*/
|
|
344
|
+
disabled?: boolean;
|
|
338
345
|
/**
|
|
339
346
|
* Function to invoke the action.
|
|
340
347
|
*/
|
|
@@ -356,6 +363,40 @@ export type DesktopActionMenuItem = {
|
|
|
356
363
|
*/
|
|
357
364
|
aiDescription?: string;
|
|
358
365
|
};
|
|
366
|
+
/**
|
|
367
|
+
* Serializable descriptor of a host-registered context-menu action — the
|
|
368
|
+
* subset of {@link DesktopActionMenuItem} that survives a structured-clone
|
|
369
|
+
* round-trip across the event-emitter bridge. Returned by
|
|
370
|
+
* {@link Desktop.getRegisteredActions} so micro-frontends can render their
|
|
371
|
+
* own group submenus ("Open with…", "Add to…", …) without taking a
|
|
372
|
+
* dependency on the host's registry.
|
|
373
|
+
*
|
|
374
|
+
* The `invoke` callback lives only in the host — call
|
|
375
|
+
* {@link Desktop.invokeRegisteredAction} with `key` to fire it.
|
|
376
|
+
* @beta
|
|
377
|
+
*/
|
|
378
|
+
export type RegisteredActionInfo = {
|
|
379
|
+
/** Stable identifier of the underlying registered action. Pass back
|
|
380
|
+
* to {@link Desktop.invokeRegisteredAction} to invoke. */
|
|
381
|
+
key: string;
|
|
382
|
+
/** Display label as registered. Always coerced to a string here
|
|
383
|
+
* (React-node labels are not serialisable across the bridge). */
|
|
384
|
+
label: string;
|
|
385
|
+
/** Icon hint — either a font-icon name or the full {@link IconProps}. */
|
|
386
|
+
icon?: Icon;
|
|
387
|
+
/** Group the action was registered under. Callers narrow by passing a
|
|
388
|
+
* specific group list to {@link Desktop.getRegisteredActions}. */
|
|
389
|
+
group: ContextMenuGroup;
|
|
390
|
+
/** Lower order = first in the rendered list. */
|
|
391
|
+
order?: number;
|
|
392
|
+
/** Builtin opener key when the action declares one (mirrors the host's
|
|
393
|
+
* `DesktopActionOptions.with` matching). Optional. */
|
|
394
|
+
with?: string;
|
|
395
|
+
/** App-service identifier when the action was registered by an app. */
|
|
396
|
+
service?: string;
|
|
397
|
+
/** AI description from the app manifest, when present. */
|
|
398
|
+
aiDescription?: string;
|
|
399
|
+
};
|
|
359
400
|
/**
|
|
360
401
|
* Type for notifications.
|
|
361
402
|
* @beta
|
|
@@ -459,6 +500,26 @@ export type OsProgress = {
|
|
|
459
500
|
* Persist until complete for the progress item.
|
|
460
501
|
*/
|
|
461
502
|
persistUntilComplete?: boolean;
|
|
503
|
+
/**
|
|
504
|
+
* Milliseconds after which a finished row clears. 0 removes it outright
|
|
505
|
+
* (its outcome is narrated elsewhere). Unset falls back to the
|
|
506
|
+
* persistUntilComplete behavior.
|
|
507
|
+
*/
|
|
508
|
+
clearAfterMs?: number;
|
|
509
|
+
/**
|
|
510
|
+
* Why a job stopped before finishing, where `status` alone cannot tell: an
|
|
511
|
+
* upload batch reports `exception` whether it was cancelled, failed, or
|
|
512
|
+
* stopped by its failure breaker.
|
|
513
|
+
*/
|
|
514
|
+
outcome?: 'cancelled' | 'failed' | 'stopped';
|
|
515
|
+
/**
|
|
516
|
+
* How many of a batch's items failed so far, where the label only says it in prose.
|
|
517
|
+
*/
|
|
518
|
+
failedCount?: number;
|
|
519
|
+
/**
|
|
520
|
+
* How many of a batch's items have finished so far, where the label only says it in prose.
|
|
521
|
+
*/
|
|
522
|
+
doneCount?: number;
|
|
462
523
|
};
|
|
463
524
|
/**
|
|
464
525
|
* Affirmative option for the confirmation modal.
|
|
@@ -535,6 +596,11 @@ export type CreateEntityFormProps = {
|
|
|
535
596
|
* Concept related to the form.
|
|
536
597
|
*/
|
|
537
598
|
concept?: string;
|
|
599
|
+
/**
|
|
600
|
+
* Root concept for the concept selector tree. When set, the concept selector
|
|
601
|
+
* only shows this concept and its subtypes. Defaults to 'os_workspace_item'.
|
|
602
|
+
*/
|
|
603
|
+
conceptTreeRoot?: string;
|
|
538
604
|
};
|
|
539
605
|
/**
|
|
540
606
|
* Properties for creating relations dialog.
|
|
@@ -683,20 +749,6 @@ export type WithProgressBarOptions = {
|
|
|
683
749
|
*/
|
|
684
750
|
persistUntilComplete?: boolean;
|
|
685
751
|
};
|
|
686
|
-
/**
|
|
687
|
-
* Context for desktop styler.
|
|
688
|
-
* @beta
|
|
689
|
-
*/
|
|
690
|
-
export type DesktopStylerContext = {
|
|
691
|
-
/**
|
|
692
|
-
* Graph specification.
|
|
693
|
-
*/
|
|
694
|
-
graph: GraphSpec;
|
|
695
|
-
/**
|
|
696
|
-
* Selected graph specification.
|
|
697
|
-
*/
|
|
698
|
-
selected?: GraphSpec;
|
|
699
|
-
};
|
|
700
752
|
/**
|
|
701
753
|
* Options for exporting items.
|
|
702
754
|
* @beta
|
|
@@ -707,28 +759,6 @@ export type ExportOptions = {
|
|
|
707
759
|
*/
|
|
708
760
|
filename?: string;
|
|
709
761
|
};
|
|
710
|
-
/**
|
|
711
|
-
* Options for importing ZIP files.
|
|
712
|
-
* @beta
|
|
713
|
-
*/
|
|
714
|
-
export type ImportZipOptions = {
|
|
715
|
-
/**
|
|
716
|
-
* Whether to overwrite existing items.
|
|
717
|
-
*/
|
|
718
|
-
overwrite?: boolean;
|
|
719
|
-
/**
|
|
720
|
-
* Target location for the import.
|
|
721
|
-
*/
|
|
722
|
-
target?: string;
|
|
723
|
-
/**
|
|
724
|
-
* Whether to include content in the import.
|
|
725
|
-
*/
|
|
726
|
-
include_content?: boolean;
|
|
727
|
-
/**
|
|
728
|
-
* Whether to include dashboards in the import.
|
|
729
|
-
*/
|
|
730
|
-
include_dashboards?: boolean | 'if_missing';
|
|
731
|
-
};
|
|
732
762
|
/**
|
|
733
763
|
* Options for importing folders/files from a ZIP file.
|
|
734
764
|
* @beta
|
|
@@ -747,85 +777,37 @@ export type ImportFoldersOptions = {
|
|
|
747
777
|
*/
|
|
748
778
|
include_content?: boolean;
|
|
749
779
|
};
|
|
780
|
+
export type SetsSortBy = {
|
|
781
|
+
field: string;
|
|
782
|
+
direction: 'asc' | 'desc';
|
|
783
|
+
};
|
|
750
784
|
export type SetsOptions = {
|
|
751
|
-
/**
|
|
752
|
-
* Workspace items for the context.
|
|
753
|
-
*/
|
|
754
785
|
workspace_items?: WorkspaceItem[];
|
|
755
|
-
/**
|
|
756
|
-
* Limit for the context.
|
|
757
|
-
*/
|
|
758
786
|
limit?: number;
|
|
759
|
-
/**
|
|
760
|
-
* Offset for the context.
|
|
761
|
-
*/
|
|
762
787
|
offset?: number;
|
|
788
|
+
datasource?: 'timbr' | 'opensearch';
|
|
763
789
|
/**
|
|
764
|
-
*
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
* Recursive for the context.
|
|
769
|
-
*/
|
|
770
|
-
recursive?: boolean;
|
|
771
|
-
/**
|
|
772
|
-
* Include count for the context.
|
|
790
|
+
* Controls recursion depth for hierarchical expansion.
|
|
791
|
+
* true = flatten mode (bulk query, all descendants at once).
|
|
792
|
+
* false = direct children only.
|
|
793
|
+
* number(N) = incremental expansion up to N levels deep.
|
|
773
794
|
*/
|
|
795
|
+
recursive?: boolean | number;
|
|
774
796
|
include_count?: boolean;
|
|
775
|
-
/**
|
|
776
|
-
* Include root for the context.
|
|
777
|
-
*/
|
|
778
797
|
include_root?: boolean;
|
|
779
|
-
/**
|
|
780
|
-
* Include all fields for the context.
|
|
781
|
-
*/
|
|
782
798
|
include_all_fields?: boolean;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* When limit1 and limit2 are provided,
|
|
789
|
-
* the user will be prompted to choose the number of records to add
|
|
790
|
-
* if the count is greater than limit1.
|
|
791
|
-
*/
|
|
792
|
-
limit1?: number;
|
|
793
|
-
/**
|
|
794
|
-
* When limit1 and limit2 are provided,
|
|
795
|
-
* the user will be prompted to choose the number of records to add
|
|
796
|
-
* if the count is greater than limit1.
|
|
797
|
-
*/
|
|
798
|
-
limit2?: number;
|
|
799
|
-
};
|
|
800
|
-
/**
|
|
801
|
-
* Options for pasting context.
|
|
802
|
-
* @beta
|
|
803
|
-
*/
|
|
804
|
-
export type PasteContextOptions = {
|
|
805
|
-
/**
|
|
806
|
-
* First limit for the context.
|
|
807
|
-
*/
|
|
799
|
+
include_types?: string[];
|
|
800
|
+
exclude_types?: string[];
|
|
801
|
+
expand_types?: string[];
|
|
802
|
+
no_expand_types?: string[];
|
|
803
|
+
/** UI-only prompt threshold. */
|
|
808
804
|
limit1?: number;
|
|
809
|
-
/**
|
|
810
|
-
* Second limit for the context.
|
|
811
|
-
*/
|
|
805
|
+
/** UI-only prompt threshold. */
|
|
812
806
|
limit2?: number;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
* Records for the context.
|
|
819
|
-
*/
|
|
820
|
-
records?: Entity[];
|
|
821
|
-
/**
|
|
822
|
-
* Query for the context.
|
|
823
|
-
*/
|
|
824
|
-
query?: ConceptFilter;
|
|
825
|
-
/**
|
|
826
|
-
* Whether to return a SavedSet entity when a folder is dropped.
|
|
827
|
-
*/
|
|
828
|
-
preferSavedSet?: boolean;
|
|
807
|
+
workspace_sidebar_set?: boolean;
|
|
808
|
+
expand_abstract_sets_recursively?: boolean;
|
|
809
|
+
deduplicate?: boolean;
|
|
810
|
+
sort_by?: SetsSortBy[];
|
|
829
811
|
};
|
|
830
812
|
/**
|
|
831
813
|
* Parameters for drag start.
|
|
@@ -873,22 +855,34 @@ export type DragEndParams = {
|
|
|
873
855
|
*/
|
|
874
856
|
export type FetchEntityOptions = {};
|
|
875
857
|
/**
|
|
876
|
-
*
|
|
858
|
+
* Metadata fields extracted from a fragment entity.
|
|
877
859
|
* @beta
|
|
878
860
|
*/
|
|
879
|
-
export type
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
861
|
+
export type FragmentInfo = {
|
|
862
|
+
fragment_page_number?: number;
|
|
863
|
+
/** Seconds for audio/video collections, a page for `document_*`, a row for `table_*`; the pipeline writes numbers, older indexes strings. */
|
|
864
|
+
fragment_start?: string | number;
|
|
865
|
+
fragment_end?: string | number;
|
|
866
|
+
fragment_index?: number;
|
|
867
|
+
fragment_count?: number;
|
|
868
|
+
fragment_collection_type?: string;
|
|
869
|
+
/** `[x1, y1, x2, y2]` in the parent image's pixels, as an array of numeric strings or comma-joined. */
|
|
870
|
+
fragment_image_bbox?: string | string[];
|
|
871
|
+
fragment_x_offset?: number;
|
|
872
|
+
fragment_y_offset?: number;
|
|
873
|
+
fragment_z_offset?: number;
|
|
874
|
+
fragment_keyframe_number?: number;
|
|
875
|
+
fragment_path_expression?: string;
|
|
876
|
+
/** Content type of the original file the fragment chain starts from, not of the direct parent. */
|
|
877
|
+
parent_os_item_content_type?: string;
|
|
878
|
+
};
|
|
879
|
+
/**
|
|
880
|
+
* Result of resolving a fragment entity to its source entity.
|
|
881
|
+
* @beta
|
|
882
|
+
*/
|
|
883
|
+
export type FragmentResolution = {
|
|
884
|
+
entity: Entity;
|
|
885
|
+
fragment: FragmentInfo | undefined;
|
|
892
886
|
};
|
|
893
887
|
/**
|
|
894
888
|
* Options for file tree.
|
|
@@ -916,6 +910,34 @@ export type FileTreeOptions = {
|
|
|
916
910
|
*/
|
|
917
911
|
structure?: boolean;
|
|
918
912
|
};
|
|
913
|
+
/**
|
|
914
|
+
* Filtered listing of `os_wsfs_object` rows via ontology (not from hydrated workspace.items).
|
|
915
|
+
* Supply at least one of `contentTypes`, `nameLikeLower`, `labelLikeLower` or `itemTypes`; with
|
|
916
|
+
* none it returns `[]`.
|
|
917
|
+
*/
|
|
918
|
+
export type QueryFilesystemItemsParams = {
|
|
919
|
+
workspaceIds: string[];
|
|
920
|
+
/** OR: os_item_content_type equals one of these */
|
|
921
|
+
contentTypes?: string[];
|
|
922
|
+
/** OR: lower(os_item_name) LIKE pattern (SQL LIKE, e.g. '%.odoc') */
|
|
923
|
+
nameLikeLower?: string[];
|
|
924
|
+
/** OR: lower(entity_label) LIKE pattern, for the name a row displays when it has a label */
|
|
925
|
+
labelLikeLower?: string[];
|
|
926
|
+
/** AND: os_item_type is one of these (`['os_file']` leaves folders out); enough on its own.
|
|
927
|
+
* Applied before `limit`, so excluded rows don't use up the cap. */
|
|
928
|
+
itemTypes?: string[];
|
|
929
|
+
/**
|
|
930
|
+
* Cap the rows returned, most-recently-updated first (the listing is always
|
|
931
|
+
* `ORDER BY os_last_updated_at DESC`).
|
|
932
|
+
*
|
|
933
|
+
* Unbounded by default because the pickers want the whole set. Pass it for any
|
|
934
|
+
* high-cardinality listing — the query selects every concept field and the
|
|
935
|
+
* workspace list is a fan-out, so an uncapped Files or Records section would
|
|
936
|
+
* pull every matching row of every workspace into memory. A caller that caps
|
|
937
|
+
* is showing a subset and should say so in its UI.
|
|
938
|
+
*/
|
|
939
|
+
limit?: number;
|
|
940
|
+
};
|
|
919
941
|
/**
|
|
920
942
|
* Represents information about the current user.
|
|
921
943
|
* @beta
|
|
@@ -937,6 +959,7 @@ export type Whoami = {
|
|
|
937
959
|
* Username of the user.
|
|
938
960
|
*/
|
|
939
961
|
username: string;
|
|
962
|
+
roles?: string[];
|
|
940
963
|
/**
|
|
941
964
|
* Roles of the user.
|
|
942
965
|
*/
|
|
@@ -990,9 +1013,14 @@ export type WorkspaceConfig = Partial<{
|
|
|
990
1013
|
*/
|
|
991
1014
|
color: string;
|
|
992
1015
|
/**
|
|
993
|
-
* ID of the workspace.
|
|
1016
|
+
* ID of the workspace. The server accepts only the caller's own personal
|
|
1017
|
+
* workspace id; omit it and the server mints the id.
|
|
994
1018
|
*/
|
|
995
1019
|
entity_id?: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* Ontology concept to create. Defaults to 'os_workspace'.
|
|
1022
|
+
*/
|
|
1023
|
+
entity_type?: string;
|
|
996
1024
|
/**
|
|
997
1025
|
* Whether to create the workspace quietly, without opening it.
|
|
998
1026
|
*/
|
|
@@ -1018,8 +1046,38 @@ export type GetSystemSettingResponse<T extends string | boolean = string | boole
|
|
|
1018
1046
|
security: boolean;
|
|
1019
1047
|
type: string;
|
|
1020
1048
|
value: T;
|
|
1049
|
+
/**
|
|
1050
|
+
* Set when `value` is the caller's default because the setting could not be
|
|
1051
|
+
* fetched. `DesktopAPI.getSystemSetting` swallows the error, so callers that
|
|
1052
|
+
* must tell "unset" from "unreadable" check this instead.
|
|
1053
|
+
*/
|
|
1054
|
+
unavailable?: boolean;
|
|
1021
1055
|
};
|
|
1056
|
+
/**
|
|
1057
|
+
* Result from a geocoding query.
|
|
1058
|
+
*/
|
|
1059
|
+
export interface GeocodingResult {
|
|
1060
|
+
latitude: number;
|
|
1061
|
+
longitude: number;
|
|
1062
|
+
address: string;
|
|
1063
|
+
name: string;
|
|
1064
|
+
country: string;
|
|
1065
|
+
city: string;
|
|
1066
|
+
type: string;
|
|
1067
|
+
}
|
|
1022
1068
|
export declare const ORIGINAL_OS_PARENT_FOLDER = "#original_os_parent_folder";
|
|
1069
|
+
/**
|
|
1070
|
+
* Which per-source bucket of a workspace's records to act on.
|
|
1071
|
+
*
|
|
1072
|
+
* `source_name` is the exact import origin; `null` targets the records that
|
|
1073
|
+
* carry none (the "(No source)" bucket). Absent is not a value here — an
|
|
1074
|
+
* unscoped bulk delete is a different call.
|
|
1075
|
+
*/
|
|
1076
|
+
export interface RecordsSourceScope {
|
|
1077
|
+
source_name: string | null;
|
|
1078
|
+
/** Narrow to one concept hierarchy inside the bucket, e.g. `Person`. */
|
|
1079
|
+
concept?: string;
|
|
1080
|
+
}
|
|
1023
1081
|
/**
|
|
1024
1082
|
* Interface for desktop actions.
|
|
1025
1083
|
* @beta
|
|
@@ -1070,9 +1128,9 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1070
1128
|
listAllWorkspaces: (permissions?: WorkspacePermissionValue) => Promise<WorkspaceItem[]>;
|
|
1071
1129
|
/**
|
|
1072
1130
|
* This might not be enough, add a listener to {@link WorkspaceChangeEmitter.onOpenWorkspacesChanged} to keep getting updated.
|
|
1073
|
-
* In react components, prefer
|
|
1131
|
+
* In react components, prefer the `useOpenWorkspaces` hook for ids and `getEntity` for per-workspace data.
|
|
1074
1132
|
*/
|
|
1075
|
-
getOpenWorkspaces: () => Promise<
|
|
1133
|
+
getOpenWorkspaces: () => Promise<WorkspaceItem[]>;
|
|
1076
1134
|
/**
|
|
1077
1135
|
* Gets the OntologyAPI.
|
|
1078
1136
|
* @returns a promise that resolves to the current ontology
|
|
@@ -1090,22 +1148,12 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1090
1148
|
* @returns A promise that resolves to the attachment of type T.
|
|
1091
1149
|
*/
|
|
1092
1150
|
getAttachment: <T extends AttachmentType>(entity: Entity, options?: GetAttachmentOptions<T>) => Promise<T>;
|
|
1093
|
-
/**
|
|
1094
|
-
* @beta
|
|
1095
|
-
* Gets options for stylers.
|
|
1096
|
-
*/
|
|
1097
|
-
getStylerOptions: () => Promise<StylerOption[]>;
|
|
1098
|
-
/**
|
|
1099
|
-
* @beta
|
|
1100
|
-
* Gets a styler by name and context.
|
|
1101
|
-
*/
|
|
1102
|
-
getStyler: (name: string, context: DesktopStylerContext) => Promise<Styler>;
|
|
1103
1151
|
/**
|
|
1104
1152
|
* Gets a workspace by identifier.
|
|
1105
1153
|
*/
|
|
1106
1154
|
getWorkspace: (ws: WorkspaceIdentifier, options?: {
|
|
1107
1155
|
shouldRetry?: boolean;
|
|
1108
|
-
}) => Promise<
|
|
1156
|
+
}) => Promise<WorkspaceItem | undefined>;
|
|
1109
1157
|
/**
|
|
1110
1158
|
* Gets items in a workspace by name.
|
|
1111
1159
|
*/
|
|
@@ -1159,15 +1207,36 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1159
1207
|
/**
|
|
1160
1208
|
* Gets templates by layout or filter
|
|
1161
1209
|
*/
|
|
1162
|
-
getTemplates: (layout?: string | ((template: SavedTemplate) => boolean)) => Promise<
|
|
1210
|
+
getTemplates: (layout?: string | ((template: SavedTemplate) => boolean)) => Promise<RenderableTemplate[]>;
|
|
1163
1211
|
/**
|
|
1164
1212
|
* Gets a template by name or entity or filter with an optional default template.
|
|
1165
1213
|
*/
|
|
1166
|
-
getTemplate: (name: string | Entity | ((template: SavedTemplate) => boolean), defaultTemplate?: string) => Promise<
|
|
1214
|
+
getTemplate: (name: string | Entity | ((template: SavedTemplate) => boolean), defaultTemplate?: string) => Promise<RenderableTemplate>;
|
|
1167
1215
|
/**
|
|
1168
1216
|
* Gets the named app if it is on the desktop and in a running state.
|
|
1217
|
+
*
|
|
1218
|
+
* MIGRATION (app authors): the app's iframe URL is no longer on
|
|
1219
|
+
* `os_item_content.app_url` — that field is gone. The resolved URL is now
|
|
1220
|
+
* exposed on the runtime-only `#appUrl` field of the returned item (see
|
|
1221
|
+
* {@link RuntimeAppUrlWorkspaceItem}). It is hydrated from the K8s apps API
|
|
1222
|
+
* and is NOT persisted, so don't read it off a stored/restored item.
|
|
1223
|
+
*/
|
|
1224
|
+
getApp: (name: string) => Promise<RuntimeAppUrlWorkspaceItem | undefined>;
|
|
1225
|
+
/**
|
|
1226
|
+
* Resolve app folders by name within the given workspaces. Match is on
|
|
1227
|
+
* `os_item_name`, case-insensitive. Use this instead of hardcoding app
|
|
1228
|
+
* `entity_id`s on a home page or launcher — those ids are regenerated per
|
|
1229
|
+
* environment, whereas the app name is stable across them.
|
|
1230
|
+
*
|
|
1231
|
+
* Returns one {@link App} per requested name that exists, in the order the
|
|
1232
|
+
* names were given (unknown names are skipped). Each App carries its `folder`
|
|
1233
|
+
* (open it via `desktop.open(app.folder)`) and, when found, its
|
|
1234
|
+
* `manifest_entity` for loading the app's icon/description.
|
|
1235
|
+
*
|
|
1236
|
+
* @param names - App folder names to look up.
|
|
1237
|
+
* @param workspace_ids - Workspaces to search; defaults to the currently open workspaces.
|
|
1169
1238
|
*/
|
|
1170
|
-
|
|
1239
|
+
getApps: (names: string[], workspace_ids?: string[]) => Promise<App[]>;
|
|
1171
1240
|
/**
|
|
1172
1241
|
* Gets the context of an app by its octostar channel id.
|
|
1173
1242
|
* @param octostarChannelId the id assigned to the app by the octostar platform
|
|
@@ -1175,12 +1244,10 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1175
1244
|
*/
|
|
1176
1245
|
getAppContext: (octostarChannelId: string) => Promise<Record<string, any>>;
|
|
1177
1246
|
/**
|
|
1178
|
-
*
|
|
1179
|
-
*
|
|
1247
|
+
* Workspace items matching `os_item_content_type`.
|
|
1248
|
+
* Hydrated-in-memory types use Redux; others are loaded via an ontology query on the filesystem concept.
|
|
1180
1249
|
*
|
|
1181
|
-
* @param
|
|
1182
|
-
* @param workspace_ids - Optional list of workspace IDs to filter by. If not provided, searches across all open workspaces
|
|
1183
|
-
* @returns Promise resolving to array of workspace items matching the content type
|
|
1250
|
+
* @param workspace_ids - Optional workspace filter; if omitted, uses currently open workspaces for ontology fallback.
|
|
1184
1251
|
*/
|
|
1185
1252
|
getItemsByContentType: (os_item_content_type: string, workspace_ids?: string[]) => Promise<WorkspaceItem[]>;
|
|
1186
1253
|
/**
|
|
@@ -1202,14 +1269,6 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1202
1269
|
* Saves a file to an item with optional save options.
|
|
1203
1270
|
*/
|
|
1204
1271
|
saveFile: (item: WorkspaceItem, file: File | string, options?: SaveOptions) => Promise<WorkspaceItem>;
|
|
1205
|
-
/**
|
|
1206
|
-
* Imports items.
|
|
1207
|
-
*/
|
|
1208
|
-
import: (items: any[]) => Promise<void>;
|
|
1209
|
-
/**
|
|
1210
|
-
* Imports a ZIP file with optional import options.
|
|
1211
|
-
*/
|
|
1212
|
-
importZip: (file: File, options?: ImportZipOptions) => Promise<void>;
|
|
1213
1272
|
/**
|
|
1214
1273
|
* Imports folders/files from a ZIP file using the v1 API.
|
|
1215
1274
|
* Use this for importing folders and files (not workspaces).
|
|
@@ -1229,6 +1288,11 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1229
1288
|
* Fetches an entity from the index, or from the ontology if not found in the index.
|
|
1230
1289
|
*/
|
|
1231
1290
|
fetchEntity: (entity: EntityBase, options?: FetchEntityOptions) => Promise<Entity>;
|
|
1291
|
+
/**
|
|
1292
|
+
* Resolves a fragment to the root file its `source_entity_uid` names.
|
|
1293
|
+
* Returns null if the source cannot be found.
|
|
1294
|
+
*/
|
|
1295
|
+
fetchFragmentSource: (fragment: Entity) => Promise<(Entity & Partial<WorkspaceItem>) | null>;
|
|
1232
1296
|
/**
|
|
1233
1297
|
* Extracts entities from some text which may be json or a list of urls.
|
|
1234
1298
|
*/
|
|
@@ -1237,14 +1301,87 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1237
1301
|
* Gets a file tree for a workspace or folder with optional file tree options.
|
|
1238
1302
|
*/
|
|
1239
1303
|
getFilesTree: (workspace_or_folder: WorkspaceItem, options?: FileTreeOptions) => Promise<WorkspaceItem[]>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Query workspace filesystem entities by content type / name patterns (ontology SQL).
|
|
1306
|
+
*/
|
|
1307
|
+
queryFilesystemItemsInWorkspaces: (params: QueryFilesystemItemsParams) => Promise<WorkspaceItem[]>;
|
|
1240
1308
|
/**
|
|
1241
1309
|
* Show the search modal and return the selected results.
|
|
1242
1310
|
*/
|
|
1243
1311
|
getSearchResults: (params: undefined | string | SearchProps, enableSelection?: boolean) => Promise<Entity[] | undefined>;
|
|
1312
|
+
/**
|
|
1313
|
+
* Show the search modal in query-return mode.
|
|
1314
|
+
* The user refines the search and clicks "Return current search (N) results".
|
|
1315
|
+
* Resolves with the underlying Elasticsearch query and total result count.
|
|
1316
|
+
*/
|
|
1317
|
+
getSearchQuery: (params: undefined | string | SearchProps) => Promise<SearchQueryResult | undefined>;
|
|
1244
1318
|
/**
|
|
1245
1319
|
* Opens records with default action or as specified in the optional desktop action options.
|
|
1246
1320
|
*/
|
|
1247
1321
|
open: (records: Entity | Entity[], options?: DesktopActionOptions) => Promise<void>;
|
|
1322
|
+
/**
|
|
1323
|
+
* Opens a fresh AI Chat seeded with a prompt and, optionally, context
|
|
1324
|
+
* entities — the supported way to launch AI Chat from another application.
|
|
1325
|
+
*
|
|
1326
|
+
* Encapsulates building the chat workspace item (content type
|
|
1327
|
+
* `application/vnd.octostar.chat+json`) in the active workspace and opening
|
|
1328
|
+
* it with the AI Chat app, so callers don't hand-roll that flow. Every call
|
|
1329
|
+
* mints a fresh chat, so the prompt always seeds; seeding is one-shot per
|
|
1330
|
+
* chat, so a browser refresh won't re-send it.
|
|
1331
|
+
*
|
|
1332
|
+
* By default the prompt is auto-sent as the chat's first message (no skill
|
|
1333
|
+
* armed). Pass `{ mode: 'draft' }` to only prefill the chat input and let
|
|
1334
|
+
* the user hit send. Omitting `initialPrompt` (or passing an empty string)
|
|
1335
|
+
* opens the chat unseeded and does not auto-send — useful to just start a
|
|
1336
|
+
* chat over some context entities.
|
|
1337
|
+
*
|
|
1338
|
+
* By default the chat opens as a workbench tab. Pass `{ target: 'sidebar' }`
|
|
1339
|
+
* to open it in the host's AI panel instead (making the panel
|
|
1340
|
+
* visible and switching it to AI Chats); this requires the v3 app.
|
|
1341
|
+
*
|
|
1342
|
+
* @example
|
|
1343
|
+
* ```ts
|
|
1344
|
+
* await desktop.openNewAIChat('Summarize this document', [document]);
|
|
1345
|
+
* await desktop.openNewAIChat('Draft to review', [entity], { mode: 'draft' });
|
|
1346
|
+
* await desktop.openNewAIChat(undefined, [entity]); // unseeded chat over context
|
|
1347
|
+
* await desktop.openNewAIChat('About this record', [entity], { mode: 'draft', target: 'sidebar' });
|
|
1348
|
+
* ```
|
|
1349
|
+
*
|
|
1350
|
+
* @param initialPrompt - The prompt to seed the new chat with; omit to open unseeded.
|
|
1351
|
+
* @param contextEntities - Entities to seed the chat's context.
|
|
1352
|
+
* @param options - Seeding behavior; see {@link OpenNewAIChatOptions}.
|
|
1353
|
+
*/
|
|
1354
|
+
openNewAIChat: (initialPrompt?: string, contextEntities?: Entity[], options?: OpenNewAIChatOptions) => Promise<void>;
|
|
1355
|
+
/**
|
|
1356
|
+
* Enumerates the host-registered context-menu actions whose group is in
|
|
1357
|
+
* `groups` AND which accept the given record(s) — i.e. the same set the
|
|
1358
|
+
* host would put under those group sub-menus of the right-click context
|
|
1359
|
+
* menu, returned as plain data so a micro-frontend can render its own
|
|
1360
|
+
* menu instead of triggering the host popup. Pass a single record or
|
|
1361
|
+
* an array; for arrays the host applies the same `accepts({ items })`
|
|
1362
|
+
* filter the context-menu builder uses.
|
|
1363
|
+
*
|
|
1364
|
+
* Typical groupings:
|
|
1365
|
+
* - `['open', 'edit']` — "Open with…" submenu (openers / editors).
|
|
1366
|
+
* - `['addto']` — "Add to…" submenu (link chart, map, set, …).
|
|
1367
|
+
* - `['transform']` — "Transform" submenu (slower; consider lazy).
|
|
1368
|
+
*
|
|
1369
|
+
* The returned items are not executable directly — invoke them with
|
|
1370
|
+
* {@link invokeRegisteredAction} using the `key`. Keys are stable
|
|
1371
|
+
* across registrations of the same action.
|
|
1372
|
+
*/
|
|
1373
|
+
getRegisteredActions: (items: WorkspaceItem | WorkspaceItem[], groups: ContextMenuGroup[]) => Promise<RegisteredActionInfo[]>;
|
|
1374
|
+
/**
|
|
1375
|
+
* Invokes a previously-enumerated action (from
|
|
1376
|
+
* {@link getRegisteredActions}) by its `key`, with the records the user
|
|
1377
|
+
* wants to act on. The host resolves the registered action and runs its
|
|
1378
|
+
* `invoke` callback with the same context shape the right-click flow
|
|
1379
|
+
* would have built.
|
|
1380
|
+
*
|
|
1381
|
+
* Rejects when no registered action matches the key OR when the
|
|
1382
|
+
* action's `accepts(...)` filter refuses the given items.
|
|
1383
|
+
*/
|
|
1384
|
+
invokeRegisteredAction: (key: string, items: WorkspaceItem | WorkspaceItem[], options?: DesktopActionOptions) => Promise<void>;
|
|
1248
1385
|
/**
|
|
1249
1386
|
* Deletes an item or items recursively.
|
|
1250
1387
|
*/
|
|
@@ -1257,6 +1394,12 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1257
1394
|
* Deletes local concept records in a workspace by base concept.
|
|
1258
1395
|
*/
|
|
1259
1396
|
delete_local_concept_records: (workspace_id: string, base_concept: string) => Promise<void>;
|
|
1397
|
+
/**
|
|
1398
|
+
* Deletes the records of ONE import source in a workspace (the per-source
|
|
1399
|
+
* buckets the Content Browser shows under Records). Rejects with a 404 on an
|
|
1400
|
+
* API that predates the endpoint, rather than deleting anything wider.
|
|
1401
|
+
*/
|
|
1402
|
+
delete_workspace_records_by_source: (workspace_id: string, scope: RecordsSourceScope) => Promise<void>;
|
|
1260
1403
|
/**
|
|
1261
1404
|
* Searches the index using the query string
|
|
1262
1405
|
* @param query OpenSearch qeuery string.
|
|
@@ -1275,7 +1418,7 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1275
1418
|
/**
|
|
1276
1419
|
* Renames a tab by its id.
|
|
1277
1420
|
*/
|
|
1278
|
-
renameTab: (
|
|
1421
|
+
renameTab: (props: RenameTabProps) => Promise<void>;
|
|
1279
1422
|
/**
|
|
1280
1423
|
* Closes a tab with given properties.
|
|
1281
1424
|
*/
|
|
@@ -1304,10 +1447,17 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1304
1447
|
* Gets a system setting.
|
|
1305
1448
|
*/
|
|
1306
1449
|
getSystemSetting: <T extends string | boolean>(key: string, defaultValue: T, show_protected?: boolean) => Promise<GetSystemSettingResponse<T>>;
|
|
1450
|
+
/**
|
|
1451
|
+
* Forward geocodes a query string into geographic coordinates.
|
|
1452
|
+
* @param query - Free-text location query (address, place name, etc.)
|
|
1453
|
+
* @param limit - Maximum number of results to return (default: 5)
|
|
1454
|
+
* @returns Array of geocoding results
|
|
1455
|
+
*/
|
|
1456
|
+
geocode: (query: string, limit?: number) => Promise<GeocodingResult[]>;
|
|
1307
1457
|
/**
|
|
1308
1458
|
* Wraps a promise with a progress bar.
|
|
1309
1459
|
*/
|
|
1310
|
-
withProgressBar: <T>(promise: Promise<T>, options?: WithProgressBarOptions) => Promise<T>;
|
|
1460
|
+
withProgressBar: <T>(promise: Promise<T>, options?: WithProgressBarOptions) => Promise<T | undefined>;
|
|
1311
1461
|
/**
|
|
1312
1462
|
* Shows a confirmation modal.
|
|
1313
1463
|
*/
|
|
@@ -1316,6 +1466,13 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1316
1466
|
* Shows a file upload dialog.
|
|
1317
1467
|
*/
|
|
1318
1468
|
showFileUpload: (folder: WorkspaceItem) => Promise<WorkspaceItem[]>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Shows the "Add to Files" dialog scoped to a workspace: the user picks a
|
|
1471
|
+
* target folder via a tree selector (defaulting to the workspace root),
|
|
1472
|
+
* then uploads files into it. Fire-and-forget — the dialog handles the
|
|
1473
|
+
* upload itself.
|
|
1474
|
+
*/
|
|
1475
|
+
showUploadToFolder: (workspace: WorkspaceItem) => Promise<void>;
|
|
1319
1476
|
/**
|
|
1320
1477
|
* Shows a form for creating an entity.
|
|
1321
1478
|
*/
|
|
@@ -1328,10 +1485,6 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1328
1485
|
* Shows a modal for saving as.
|
|
1329
1486
|
*/
|
|
1330
1487
|
showSaveAsModal: (props: SaveAsModalProps) => Promise<WorkspaceItem | undefined>;
|
|
1331
|
-
/**
|
|
1332
|
-
* @deprecated This method is deprecated and will be removed in a future version. Use {@link createSetsFromItems} or {@link expandSet} instead.
|
|
1333
|
-
*/
|
|
1334
|
-
getPasteContext: (options: PasteContextOptions) => Promise<Entity[]>;
|
|
1335
1488
|
/**
|
|
1336
1489
|
* Expands a set with optional options.
|
|
1337
1490
|
*/
|
|
@@ -1356,14 +1509,6 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1356
1509
|
* Adds a comment to an entity.
|
|
1357
1510
|
*/
|
|
1358
1511
|
addComment: (about: Entity, comment: AddCommentParams) => Promise<Entity>;
|
|
1359
|
-
/**
|
|
1360
|
-
* Adds a watch intent to an entity.
|
|
1361
|
-
*/
|
|
1362
|
-
addWatchIntent: (entity: Entity, watcher: Watcher) => Promise<Entity>;
|
|
1363
|
-
/**
|
|
1364
|
-
* Removes a watch intent by workspace and intent ID.
|
|
1365
|
-
*/
|
|
1366
|
-
removeWatchIntent: (os_workspace: string, intent_id: string) => Promise<void>;
|
|
1367
1512
|
/**
|
|
1368
1513
|
* Gets workspace permissions by IDs.
|
|
1369
1514
|
*/
|
|
@@ -1377,13 +1522,17 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1377
1522
|
*/
|
|
1378
1523
|
deployApp: (app: WorkspaceItem | App, initialSecrets?: Record<string, string>) => Promise<WorkspaceItem>;
|
|
1379
1524
|
/**
|
|
1380
|
-
* Undeploys an application.
|
|
1525
|
+
* Undeploys an application. `appId` is the k8s app id; without it the id is looked up from the apps API.
|
|
1381
1526
|
*/
|
|
1382
|
-
undeployApp: (app: WorkspaceItem | App) => Promise<WorkspaceItem>;
|
|
1527
|
+
undeployApp: (app: WorkspaceItem | App, appId?: string) => Promise<WorkspaceItem>;
|
|
1383
1528
|
/**
|
|
1384
1529
|
* Gets information about the current user.
|
|
1385
1530
|
*/
|
|
1386
1531
|
whoami: () => Promise<Whoami>;
|
|
1532
|
+
/**
|
|
1533
|
+
* Pings the desktop to check connectivity. Used for remote dev mode connection verification.
|
|
1534
|
+
*/
|
|
1535
|
+
ping: () => Promise<void>;
|
|
1387
1536
|
/**
|
|
1388
1537
|
* Gets the focus list.
|
|
1389
1538
|
*/
|
|
@@ -1397,13 +1546,25 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1397
1546
|
*/
|
|
1398
1547
|
removeFromFocusList: (entities: Entity[], type?: 'single' | 'group', tabName?: string) => Promise<FocusListItem[]>;
|
|
1399
1548
|
/**
|
|
1400
|
-
* Gets the image URL for an entity
|
|
1549
|
+
* Gets the image URL for an entity: its own bytes when it is an image file,
|
|
1550
|
+
* else its attached image, else its concept icon. With `maxWidth`, image
|
|
1551
|
+
* bytes come as a downscaled server thumbnail (snapped to 512 or 2048 px)
|
|
1552
|
+
* instead of the original.
|
|
1401
1553
|
*/
|
|
1402
|
-
getImageUrl: (entity: EntityBase
|
|
1554
|
+
getImageUrl: (entity: EntityBase, options?: {
|
|
1555
|
+
maxWidth?: number;
|
|
1556
|
+
}) => Promise<string>;
|
|
1403
1557
|
/**
|
|
1404
1558
|
* Gets images for an entity.
|
|
1405
1559
|
*/
|
|
1406
1560
|
getImages: (entity: Entity) => Promise<Entity[]>;
|
|
1561
|
+
/**
|
|
1562
|
+
* Gets batch images for an entity.
|
|
1563
|
+
*/
|
|
1564
|
+
getBatchImages: (entities: Entity[]) => Promise<{
|
|
1565
|
+
entity: Entity;
|
|
1566
|
+
images: Entity[];
|
|
1567
|
+
}[]>;
|
|
1407
1568
|
/**
|
|
1408
1569
|
* Gets icon code for an entity, concept, or string.
|
|
1409
1570
|
*/
|
|
@@ -1427,10 +1588,6 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1427
1588
|
* Get config files
|
|
1428
1589
|
*/
|
|
1429
1590
|
getConfigFiles: (name: string) => Promise<WorkspaceItem[]>;
|
|
1430
|
-
/**
|
|
1431
|
-
* "Cache" for workspaces, avoiding to return a modal error, if this workspace was fetched before
|
|
1432
|
-
*/
|
|
1433
|
-
workspaceStore: Record<string, Workspace>;
|
|
1434
1591
|
getWhitelabelingInfo: () => Promise<{
|
|
1435
1592
|
OCTOSTAR_MAIN_LOGO: string;
|
|
1436
1593
|
OCTOSTAR_FAVICON: string;
|
|
@@ -1453,11 +1610,6 @@ export type AppRegistry = {
|
|
|
1453
1610
|
* Registers an action.
|
|
1454
1611
|
*/
|
|
1455
1612
|
registerAction: (action: DesktopActionMenuItem) => void;
|
|
1456
|
-
/**
|
|
1457
|
-
* @beta
|
|
1458
|
-
* Registers a styler.
|
|
1459
|
-
*/
|
|
1460
|
-
registerStyler: (styler: StylerConfig) => () => void;
|
|
1461
1613
|
};
|
|
1462
1614
|
/**
|
|
1463
1615
|
* Properties for workspace item title.
|
|
@@ -1471,9 +1623,7 @@ export type WorkspaceItemTitleProps = DesktopActionContext & {
|
|
|
1471
1623
|
/**
|
|
1472
1624
|
* Menu options with extra action items.
|
|
1473
1625
|
*/
|
|
1474
|
-
menuOptions?: ContextMenuOptions
|
|
1475
|
-
extraActionItems?: DesktopActionMenuItem[];
|
|
1476
|
-
};
|
|
1626
|
+
menuOptions?: ContextMenuOptions;
|
|
1477
1627
|
/**
|
|
1478
1628
|
* Whether the item is expanded.
|
|
1479
1629
|
*/
|