@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/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
|
|
@@ -725,85 +777,37 @@ export type ImportFoldersOptions = {
|
|
|
725
777
|
*/
|
|
726
778
|
include_content?: boolean;
|
|
727
779
|
};
|
|
780
|
+
export type SetsSortBy = {
|
|
781
|
+
field: string;
|
|
782
|
+
direction: 'asc' | 'desc';
|
|
783
|
+
};
|
|
728
784
|
export type SetsOptions = {
|
|
729
|
-
/**
|
|
730
|
-
* Workspace items for the context.
|
|
731
|
-
*/
|
|
732
785
|
workspace_items?: WorkspaceItem[];
|
|
733
|
-
/**
|
|
734
|
-
* Limit for the context.
|
|
735
|
-
*/
|
|
736
786
|
limit?: number;
|
|
737
|
-
/**
|
|
738
|
-
* Offset for the context.
|
|
739
|
-
*/
|
|
740
787
|
offset?: number;
|
|
788
|
+
datasource?: 'timbr' | 'opensearch';
|
|
741
789
|
/**
|
|
742
|
-
*
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
* Recursive for the context.
|
|
747
|
-
*/
|
|
748
|
-
recursive?: boolean;
|
|
749
|
-
/**
|
|
750
|
-
* 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.
|
|
751
794
|
*/
|
|
795
|
+
recursive?: boolean | number;
|
|
752
796
|
include_count?: boolean;
|
|
753
|
-
/**
|
|
754
|
-
* Include root for the context.
|
|
755
|
-
*/
|
|
756
797
|
include_root?: boolean;
|
|
757
|
-
/**
|
|
758
|
-
* Include all fields for the context.
|
|
759
|
-
*/
|
|
760
798
|
include_all_fields?: boolean;
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* When limit1 and limit2 are provided,
|
|
767
|
-
* the user will be prompted to choose the number of records to add
|
|
768
|
-
* if the count is greater than limit1.
|
|
769
|
-
*/
|
|
799
|
+
include_types?: string[];
|
|
800
|
+
exclude_types?: string[];
|
|
801
|
+
expand_types?: string[];
|
|
802
|
+
no_expand_types?: string[];
|
|
803
|
+
/** UI-only prompt threshold. */
|
|
770
804
|
limit1?: number;
|
|
771
|
-
/**
|
|
772
|
-
* When limit1 and limit2 are provided,
|
|
773
|
-
* the user will be prompted to choose the number of records to add
|
|
774
|
-
* if the count is greater than limit1.
|
|
775
|
-
*/
|
|
805
|
+
/** UI-only prompt threshold. */
|
|
776
806
|
limit2?: number;
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
*/
|
|
782
|
-
export type PasteContextOptions = {
|
|
783
|
-
/**
|
|
784
|
-
* First limit for the context.
|
|
785
|
-
*/
|
|
786
|
-
limit1?: number;
|
|
787
|
-
/**
|
|
788
|
-
* Second limit for the context.
|
|
789
|
-
*/
|
|
790
|
-
limit2?: number;
|
|
791
|
-
/**
|
|
792
|
-
* Record for the context.
|
|
793
|
-
*/
|
|
794
|
-
record?: Entity;
|
|
795
|
-
/**
|
|
796
|
-
* Records for the context.
|
|
797
|
-
*/
|
|
798
|
-
records?: Entity[];
|
|
799
|
-
/**
|
|
800
|
-
* Query for the context.
|
|
801
|
-
*/
|
|
802
|
-
query?: ConceptFilter;
|
|
803
|
-
/**
|
|
804
|
-
* Whether to return a SavedSet entity when a folder is dropped.
|
|
805
|
-
*/
|
|
806
|
-
preferSavedSet?: boolean;
|
|
807
|
+
workspace_sidebar_set?: boolean;
|
|
808
|
+
expand_abstract_sets_recursively?: boolean;
|
|
809
|
+
deduplicate?: boolean;
|
|
810
|
+
sort_by?: SetsSortBy[];
|
|
807
811
|
};
|
|
808
812
|
/**
|
|
809
813
|
* Parameters for drag start.
|
|
@@ -851,22 +855,34 @@ export type DragEndParams = {
|
|
|
851
855
|
*/
|
|
852
856
|
export type FetchEntityOptions = {};
|
|
853
857
|
/**
|
|
854
|
-
*
|
|
858
|
+
* Metadata fields extracted from a fragment entity.
|
|
855
859
|
* @beta
|
|
856
860
|
*/
|
|
857
|
-
export type
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
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;
|
|
870
886
|
};
|
|
871
887
|
/**
|
|
872
888
|
* Options for file tree.
|
|
@@ -894,6 +910,34 @@ export type FileTreeOptions = {
|
|
|
894
910
|
*/
|
|
895
911
|
structure?: boolean;
|
|
896
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
|
+
};
|
|
897
941
|
/**
|
|
898
942
|
* Represents information about the current user.
|
|
899
943
|
* @beta
|
|
@@ -915,6 +959,7 @@ export type Whoami = {
|
|
|
915
959
|
* Username of the user.
|
|
916
960
|
*/
|
|
917
961
|
username: string;
|
|
962
|
+
roles?: string[];
|
|
918
963
|
/**
|
|
919
964
|
* Roles of the user.
|
|
920
965
|
*/
|
|
@@ -968,9 +1013,14 @@ export type WorkspaceConfig = Partial<{
|
|
|
968
1013
|
*/
|
|
969
1014
|
color: string;
|
|
970
1015
|
/**
|
|
971
|
-
* 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.
|
|
972
1018
|
*/
|
|
973
1019
|
entity_id?: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* Ontology concept to create. Defaults to 'os_workspace'.
|
|
1022
|
+
*/
|
|
1023
|
+
entity_type?: string;
|
|
974
1024
|
/**
|
|
975
1025
|
* Whether to create the workspace quietly, without opening it.
|
|
976
1026
|
*/
|
|
@@ -996,8 +1046,38 @@ export type GetSystemSettingResponse<T extends string | boolean = string | boole
|
|
|
996
1046
|
security: boolean;
|
|
997
1047
|
type: string;
|
|
998
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;
|
|
999
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
|
+
}
|
|
1000
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
|
+
}
|
|
1001
1081
|
/**
|
|
1002
1082
|
* Interface for desktop actions.
|
|
1003
1083
|
* @beta
|
|
@@ -1048,9 +1128,9 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1048
1128
|
listAllWorkspaces: (permissions?: WorkspacePermissionValue) => Promise<WorkspaceItem[]>;
|
|
1049
1129
|
/**
|
|
1050
1130
|
* This might not be enough, add a listener to {@link WorkspaceChangeEmitter.onOpenWorkspacesChanged} to keep getting updated.
|
|
1051
|
-
* In react components, prefer
|
|
1131
|
+
* In react components, prefer the `useOpenWorkspaces` hook for ids and `getEntity` for per-workspace data.
|
|
1052
1132
|
*/
|
|
1053
|
-
getOpenWorkspaces: () => Promise<
|
|
1133
|
+
getOpenWorkspaces: () => Promise<WorkspaceItem[]>;
|
|
1054
1134
|
/**
|
|
1055
1135
|
* Gets the OntologyAPI.
|
|
1056
1136
|
* @returns a promise that resolves to the current ontology
|
|
@@ -1068,22 +1148,12 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1068
1148
|
* @returns A promise that resolves to the attachment of type T.
|
|
1069
1149
|
*/
|
|
1070
1150
|
getAttachment: <T extends AttachmentType>(entity: Entity, options?: GetAttachmentOptions<T>) => Promise<T>;
|
|
1071
|
-
/**
|
|
1072
|
-
* @beta
|
|
1073
|
-
* Gets options for stylers.
|
|
1074
|
-
*/
|
|
1075
|
-
getStylerOptions: () => Promise<StylerOption[]>;
|
|
1076
|
-
/**
|
|
1077
|
-
* @beta
|
|
1078
|
-
* Gets a styler by name and context.
|
|
1079
|
-
*/
|
|
1080
|
-
getStyler: (name: string, context: DesktopStylerContext) => Promise<Styler>;
|
|
1081
1151
|
/**
|
|
1082
1152
|
* Gets a workspace by identifier.
|
|
1083
1153
|
*/
|
|
1084
1154
|
getWorkspace: (ws: WorkspaceIdentifier, options?: {
|
|
1085
1155
|
shouldRetry?: boolean;
|
|
1086
|
-
}) => Promise<
|
|
1156
|
+
}) => Promise<WorkspaceItem | undefined>;
|
|
1087
1157
|
/**
|
|
1088
1158
|
* Gets items in a workspace by name.
|
|
1089
1159
|
*/
|
|
@@ -1137,15 +1207,36 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1137
1207
|
/**
|
|
1138
1208
|
* Gets templates by layout or filter
|
|
1139
1209
|
*/
|
|
1140
|
-
getTemplates: (layout?: string | ((template: SavedTemplate) => boolean)) => Promise<
|
|
1210
|
+
getTemplates: (layout?: string | ((template: SavedTemplate) => boolean)) => Promise<RenderableTemplate[]>;
|
|
1141
1211
|
/**
|
|
1142
1212
|
* Gets a template by name or entity or filter with an optional default template.
|
|
1143
1213
|
*/
|
|
1144
|
-
getTemplate: (name: string | Entity | ((template: SavedTemplate) => boolean), defaultTemplate?: string) => Promise<
|
|
1214
|
+
getTemplate: (name: string | Entity | ((template: SavedTemplate) => boolean), defaultTemplate?: string) => Promise<RenderableTemplate>;
|
|
1145
1215
|
/**
|
|
1146
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.
|
|
1147
1238
|
*/
|
|
1148
|
-
|
|
1239
|
+
getApps: (names: string[], workspace_ids?: string[]) => Promise<App[]>;
|
|
1149
1240
|
/**
|
|
1150
1241
|
* Gets the context of an app by its octostar channel id.
|
|
1151
1242
|
* @param octostarChannelId the id assigned to the app by the octostar platform
|
|
@@ -1153,12 +1244,10 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1153
1244
|
*/
|
|
1154
1245
|
getAppContext: (octostarChannelId: string) => Promise<Record<string, any>>;
|
|
1155
1246
|
/**
|
|
1156
|
-
*
|
|
1157
|
-
*
|
|
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.
|
|
1158
1249
|
*
|
|
1159
|
-
* @param
|
|
1160
|
-
* @param workspace_ids - Optional list of workspace IDs to filter by. If not provided, searches across all open workspaces
|
|
1161
|
-
* @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.
|
|
1162
1251
|
*/
|
|
1163
1252
|
getItemsByContentType: (os_item_content_type: string, workspace_ids?: string[]) => Promise<WorkspaceItem[]>;
|
|
1164
1253
|
/**
|
|
@@ -1199,6 +1288,11 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1199
1288
|
* Fetches an entity from the index, or from the ontology if not found in the index.
|
|
1200
1289
|
*/
|
|
1201
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>;
|
|
1202
1296
|
/**
|
|
1203
1297
|
* Extracts entities from some text which may be json or a list of urls.
|
|
1204
1298
|
*/
|
|
@@ -1207,14 +1301,87 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1207
1301
|
* Gets a file tree for a workspace or folder with optional file tree options.
|
|
1208
1302
|
*/
|
|
1209
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[]>;
|
|
1210
1308
|
/**
|
|
1211
1309
|
* Show the search modal and return the selected results.
|
|
1212
1310
|
*/
|
|
1213
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>;
|
|
1214
1318
|
/**
|
|
1215
1319
|
* Opens records with default action or as specified in the optional desktop action options.
|
|
1216
1320
|
*/
|
|
1217
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>;
|
|
1218
1385
|
/**
|
|
1219
1386
|
* Deletes an item or items recursively.
|
|
1220
1387
|
*/
|
|
@@ -1227,6 +1394,12 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1227
1394
|
* Deletes local concept records in a workspace by base concept.
|
|
1228
1395
|
*/
|
|
1229
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>;
|
|
1230
1403
|
/**
|
|
1231
1404
|
* Searches the index using the query string
|
|
1232
1405
|
* @param query OpenSearch qeuery string.
|
|
@@ -1245,7 +1418,7 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1245
1418
|
/**
|
|
1246
1419
|
* Renames a tab by its id.
|
|
1247
1420
|
*/
|
|
1248
|
-
renameTab: (
|
|
1421
|
+
renameTab: (props: RenameTabProps) => Promise<void>;
|
|
1249
1422
|
/**
|
|
1250
1423
|
* Closes a tab with given properties.
|
|
1251
1424
|
*/
|
|
@@ -1274,10 +1447,17 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1274
1447
|
* Gets a system setting.
|
|
1275
1448
|
*/
|
|
1276
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[]>;
|
|
1277
1457
|
/**
|
|
1278
1458
|
* Wraps a promise with a progress bar.
|
|
1279
1459
|
*/
|
|
1280
|
-
withProgressBar: <T>(promise: Promise<T>, options?: WithProgressBarOptions) => Promise<T>;
|
|
1460
|
+
withProgressBar: <T>(promise: Promise<T>, options?: WithProgressBarOptions) => Promise<T | undefined>;
|
|
1281
1461
|
/**
|
|
1282
1462
|
* Shows a confirmation modal.
|
|
1283
1463
|
*/
|
|
@@ -1286,6 +1466,13 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1286
1466
|
* Shows a file upload dialog.
|
|
1287
1467
|
*/
|
|
1288
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>;
|
|
1289
1476
|
/**
|
|
1290
1477
|
* Shows a form for creating an entity.
|
|
1291
1478
|
*/
|
|
@@ -1298,10 +1485,6 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1298
1485
|
* Shows a modal for saving as.
|
|
1299
1486
|
*/
|
|
1300
1487
|
showSaveAsModal: (props: SaveAsModalProps) => Promise<WorkspaceItem | undefined>;
|
|
1301
|
-
/**
|
|
1302
|
-
* @deprecated This method is deprecated and will be removed in a future version. Use {@link createSetsFromItems} or {@link expandSet} instead.
|
|
1303
|
-
*/
|
|
1304
|
-
getPasteContext: (options: PasteContextOptions) => Promise<Entity[]>;
|
|
1305
1488
|
/**
|
|
1306
1489
|
* Expands a set with optional options.
|
|
1307
1490
|
*/
|
|
@@ -1326,14 +1509,6 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1326
1509
|
* Adds a comment to an entity.
|
|
1327
1510
|
*/
|
|
1328
1511
|
addComment: (about: Entity, comment: AddCommentParams) => Promise<Entity>;
|
|
1329
|
-
/**
|
|
1330
|
-
* Adds a watch intent to an entity.
|
|
1331
|
-
*/
|
|
1332
|
-
addWatchIntent: (entity: Entity, watcher: Watcher) => Promise<Entity>;
|
|
1333
|
-
/**
|
|
1334
|
-
* Removes a watch intent by workspace and intent ID.
|
|
1335
|
-
*/
|
|
1336
|
-
removeWatchIntent: (os_workspace: string, intent_id: string) => Promise<void>;
|
|
1337
1512
|
/**
|
|
1338
1513
|
* Gets workspace permissions by IDs.
|
|
1339
1514
|
*/
|
|
@@ -1347,9 +1522,9 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1347
1522
|
*/
|
|
1348
1523
|
deployApp: (app: WorkspaceItem | App, initialSecrets?: Record<string, string>) => Promise<WorkspaceItem>;
|
|
1349
1524
|
/**
|
|
1350
|
-
* Undeploys an application.
|
|
1525
|
+
* Undeploys an application. `appId` is the k8s app id; without it the id is looked up from the apps API.
|
|
1351
1526
|
*/
|
|
1352
|
-
undeployApp: (app: WorkspaceItem | App) => Promise<WorkspaceItem>;
|
|
1527
|
+
undeployApp: (app: WorkspaceItem | App, appId?: string) => Promise<WorkspaceItem>;
|
|
1353
1528
|
/**
|
|
1354
1529
|
* Gets information about the current user.
|
|
1355
1530
|
*/
|
|
@@ -1371,13 +1546,25 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1371
1546
|
*/
|
|
1372
1547
|
removeFromFocusList: (entities: Entity[], type?: 'single' | 'group', tabName?: string) => Promise<FocusListItem[]>;
|
|
1373
1548
|
/**
|
|
1374
|
-
* 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.
|
|
1375
1553
|
*/
|
|
1376
|
-
getImageUrl: (entity: EntityBase
|
|
1554
|
+
getImageUrl: (entity: EntityBase, options?: {
|
|
1555
|
+
maxWidth?: number;
|
|
1556
|
+
}) => Promise<string>;
|
|
1377
1557
|
/**
|
|
1378
1558
|
* Gets images for an entity.
|
|
1379
1559
|
*/
|
|
1380
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
|
+
}[]>;
|
|
1381
1568
|
/**
|
|
1382
1569
|
* Gets icon code for an entity, concept, or string.
|
|
1383
1570
|
*/
|
|
@@ -1401,10 +1588,6 @@ export interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
|
1401
1588
|
* Get config files
|
|
1402
1589
|
*/
|
|
1403
1590
|
getConfigFiles: (name: string) => Promise<WorkspaceItem[]>;
|
|
1404
|
-
/**
|
|
1405
|
-
* "Cache" for workspaces, avoiding to return a modal error, if this workspace was fetched before
|
|
1406
|
-
*/
|
|
1407
|
-
workspaceStore: Record<string, Workspace>;
|
|
1408
1591
|
getWhitelabelingInfo: () => Promise<{
|
|
1409
1592
|
OCTOSTAR_MAIN_LOGO: string;
|
|
1410
1593
|
OCTOSTAR_FAVICON: string;
|
|
@@ -1427,11 +1610,6 @@ export type AppRegistry = {
|
|
|
1427
1610
|
* Registers an action.
|
|
1428
1611
|
*/
|
|
1429
1612
|
registerAction: (action: DesktopActionMenuItem) => void;
|
|
1430
|
-
/**
|
|
1431
|
-
* @beta
|
|
1432
|
-
* Registers a styler.
|
|
1433
|
-
*/
|
|
1434
|
-
registerStyler: (styler: StylerConfig) => () => void;
|
|
1435
1613
|
};
|
|
1436
1614
|
/**
|
|
1437
1615
|
* Properties for workspace item title.
|
|
@@ -1445,9 +1623,7 @@ export type WorkspaceItemTitleProps = DesktopActionContext & {
|
|
|
1445
1623
|
/**
|
|
1446
1624
|
* Menu options with extra action items.
|
|
1447
1625
|
*/
|
|
1448
|
-
menuOptions?: ContextMenuOptions
|
|
1449
|
-
extraActionItems?: DesktopActionMenuItem[];
|
|
1450
|
-
};
|
|
1626
|
+
menuOptions?: ContextMenuOptions;
|
|
1451
1627
|
/**
|
|
1452
1628
|
* Whether the item is expanded.
|
|
1453
1629
|
*/
|