@octostar/platform-types 0.5.27 → 0.5.29
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/ai.d.ts +37 -0
- package/dist/ai.d.ts.map +1 -1
- package/dist/app.d.ts +5 -7
- package/dist/app.d.ts.map +1 -1
- package/dist/desktop.d.ts +113 -41
- package/dist/desktop.d.ts.map +1 -1
- package/dist/desktop.js.map +1 -1
- package/dist/docs/assets/highlight.css +63 -0
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/enums/ProcessingStatusCode.html +16 -16
- package/dist/docs/enums/SortOrder.html +3 -3
- package/dist/docs/enums/WorkspacePermissionValue.html +3 -3
- package/dist/docs/functions/isWorkspaceFileItem.html +1 -0
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/index.html +2 -2
- package/dist/docs/interfaces/AIClient.html +4 -4
- package/dist/docs/interfaces/ActionContext.html +4 -4
- package/dist/docs/interfaces/BinaryObjectFilterClause.html +3 -3
- package/dist/docs/interfaces/ChartDataResponseResult.html +5 -5
- package/dist/docs/interfaces/ChatMessage.html +6 -6
- package/dist/docs/interfaces/Colorful.html +3 -3
- package/dist/docs/interfaces/Concept.html +12 -12
- package/dist/docs/interfaces/DeleteResponse.html +2 -2
- package/dist/docs/interfaces/Desktop.html +121 -102
- package/dist/docs/interfaces/DesktopActionContext.html +7 -7
- package/dist/docs/interfaces/DesktopSettings.html +5 -5
- package/dist/docs/interfaces/DownloadOptions.html +2 -2
- package/dist/docs/interfaces/EntityUiState.html +2 -0
- package/dist/docs/interfaces/FetchOptions.html +4 -4
- package/dist/docs/interfaces/FileListResponse.html +2 -2
- package/dist/docs/interfaces/FilesAPIClient.html +36 -28
- package/dist/docs/interfaces/GetAttachmentOptions.html +5 -5
- package/dist/docs/interfaces/IDataTransfer.html +11 -11
- package/dist/docs/interfaces/IndexSearchHitSource.html +5 -0
- package/dist/docs/interfaces/Inheritance.html +5 -5
- package/dist/docs/interfaces/LiveContext.html +30 -32
- package/dist/docs/interfaces/MoveOptions.html +6 -4
- package/dist/docs/interfaces/MoveResponse.html +7 -5
- package/dist/docs/interfaces/NativeFilterColumn.html +2 -2
- package/dist/docs/interfaces/NativeFilterScope.html +2 -2
- package/dist/docs/interfaces/NativeFilterTarget.html +2 -2
- package/dist/docs/interfaces/Ontology.html +65 -49
- package/dist/docs/interfaces/OsAPIClient.html +6 -6
- package/dist/docs/interfaces/ProcessingStatus.html +10 -9
- package/dist/docs/interfaces/Property.html +5 -5
- package/dist/docs/interfaces/RecordData.html +5 -5
- package/dist/docs/interfaces/RecordProvider.html +10 -10
- package/dist/docs/interfaces/RefObject.html +3 -3
- package/dist/docs/interfaces/Relationship.html +20 -20
- package/dist/docs/interfaces/S3Headers.html +7 -0
- package/dist/docs/interfaces/S3UploadResponse.html +3 -0
- package/dist/docs/interfaces/SavedDatasource.html +2 -2
- package/dist/docs/interfaces/SavedSearchAPIInterface.html +6 -6
- package/dist/docs/interfaces/SavedSearchContent.html +2 -2
- package/dist/docs/interfaces/SavedSetContent.html +2 -2
- package/dist/docs/interfaces/SearchOptions.html +4 -3
- package/dist/docs/interfaces/SearchProps.html +12 -8
- package/dist/docs/interfaces/SearchXperienceModalProps.html +9 -9
- package/dist/docs/interfaces/SearchXperienceProps.html +7 -7
- package/dist/docs/interfaces/SemanticBindingProps.html +5 -5
- package/dist/docs/interfaces/StreamJsonOptions.html +5 -5
- package/dist/docs/interfaces/StreamTextOptions.html +5 -5
- package/dist/docs/interfaces/StylerContext.html +11 -11
- package/dist/docs/interfaces/TagAttributes.html +7 -7
- package/dist/docs/interfaces/UiStateManager.html +5 -0
- package/dist/docs/interfaces/UnaryObjectFilterClause.html +3 -3
- package/dist/docs/interfaces/UploadOptions.html +3 -0
- package/dist/docs/interfaces/WorkspaceChangeEmitter.html +5 -5
- package/dist/docs/interfaces/WorkspaceItemConfig.html +6 -6
- package/dist/docs/interfaces/WorkspaceRecordIdentifier.html +5 -5
- package/dist/docs/modules.html +12 -2
- 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/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 -15
- package/dist/docs/types/AppServiceCallOptions.html +2 -2
- package/dist/docs/types/AppServiceCallProps.html +4 -4
- 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/Behaviour.html +2 -2
- package/dist/docs/types/BinaryOperator.html +2 -2
- package/dist/docs/types/Callback.html +2 -2
- package/dist/docs/types/ChatApiResponse.html +1 -0
- 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 +2 -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/CustomEventListener.html +2 -2
- package/dist/docs/types/CustomTemplate.html +2 -2
- package/dist/docs/types/CustomTemplateIframeProps.html +2 -2
- package/dist/docs/types/DataContextType.html +2 -2
- package/dist/docs/types/DataMask.html +1 -1
- package/dist/docs/types/DefaultLiveContextData.html +1 -1
- package/dist/docs/types/DesktopAction.html +2 -2
- package/dist/docs/types/DesktopActionFilter.html +2 -2
- package/dist/docs/types/DesktopActionMenuItem.html +2 -2
- package/dist/docs/types/DesktopActionMenuItemGroup.html +2 -2
- package/dist/docs/types/DesktopActionOptions.html +3 -2
- package/dist/docs/types/DesktopOpenParams.html +2 -2
- package/dist/docs/types/DesktopStylerContext.html +2 -2
- package/dist/docs/types/DraftWorkspaceItem.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 +3 -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/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/Filter.html +1 -1
- 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/FilterState.html +1 -1
- package/dist/docs/types/FilterValue.html +2 -2
- package/dist/docs/types/FocusListItem.html +2 -2
- package/dist/docs/types/FolderPasteOptions.html +2 -2
- package/dist/docs/types/GraphDataSpec.html +1 -1
- package/dist/docs/types/GraphSpec.html +2 -2
- package/dist/docs/types/HttpTransformDefinition.html +5 -5
- 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/ImportZipOptions.html +2 -2
- package/dist/docs/types/InlineCode.html +2 -2
- package/dist/docs/types/JavascriptFileStylerDefinition.html +2 -2
- package/dist/docs/types/JavascriptFileTransformDefinition.html +2 -2
- package/dist/docs/types/JavascriptFilterDefinition.html +2 -2
- package/dist/docs/types/JavascriptInlineStylerDefinition.html +2 -2
- package/dist/docs/types/JavascriptInlineTransformDefinition.html +2 -2
- package/dist/docs/types/JavascriptType.html +2 -2
- package/dist/docs/types/JobManifest.html +2 -2
- 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/MkdirResponse.html +1 -1
- package/dist/docs/types/ModalTemplateProps.html +2 -2
- 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 +2 -2
- package/dist/docs/types/OS_CONFIRM_MODAL_RESPONSE.html +2 -2
- package/dist/docs/types/OntologyTags.html +2 -2
- package/dist/docs/types/OsAuditFields.html +2 -2
- package/dist/docs/types/OsConfirmProps.html +2 -2
- package/dist/docs/types/OsNotification.html +8 -5
- package/dist/docs/types/OsProgress.html +4 -2
- 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/PasteContextOptions.html +2 -2
- package/dist/docs/types/Permission.html +2 -2
- package/dist/docs/types/Point.html +2 -2
- package/dist/docs/types/PromptOptions.html +3 -2
- 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/QueryErrorResult.html +2 -2
- package/dist/docs/types/QueryExecutor.html +2 -2
- 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/RecordFetchOptions.html +1 -1
- package/dist/docs/types/RefCallback.html +2 -2
- package/dist/docs/types/RelationshipCountResult.html +2 -2
- package/dist/docs/types/RemoteAppApi.html +1 -1
- package/dist/docs/types/SaveAsModalProps.html +3 -2
- package/dist/docs/types/SaveFileOptions.html +2 -2
- package/dist/docs/types/SaveOptions.html +2 -2
- package/dist/docs/types/SavedTemplate.html +2 -2
- package/dist/docs/types/SearchFilter.html +2 -2
- package/dist/docs/types/SemanticBinding.html +2 -2
- package/dist/docs/types/SemanticBindingType.html +2 -2
- package/dist/docs/types/SemanticBindings.html +2 -2
- package/dist/docs/types/SemanticallyBoundApp.html +2 -2
- package/dist/docs/types/SemanticallyBoundFilterDefinition.html +2 -2
- package/dist/docs/types/SendQueryOptions.html +4 -3
- package/dist/docs/types/ServiceDefinition.html +4 -4
- 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/ShowOntology.html +2 -2
- package/dist/docs/types/ShowTabProps.html +2 -2
- package/dist/docs/types/Styler.html +2 -2
- package/dist/docs/types/StylerConfig.html +2 -2
- package/dist/docs/types/StylerDefinition.html +2 -2
- package/dist/docs/types/StylerDefinitions.html +2 -2
- package/dist/docs/types/StylerOption.html +2 -2
- package/dist/docs/types/StylerProducer.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 +2 -2
- package/dist/docs/types/TemplateType.html +2 -2
- package/dist/docs/types/TemplateVariant.html +2 -2
- 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/UserProfile.html +2 -2
- package/dist/docs/types/VirtualEntity.html +2 -0
- package/dist/docs/types/Watcher.html +2 -2
- package/dist/docs/types/Whoami.html +2 -2
- package/dist/docs/types/WithProgressBarOptions.html +4 -2
- package/dist/docs/types/Workspace.html +2 -2
- package/dist/docs/types/WorkspaceConfig.html +1 -1
- package/dist/docs/types/WorkspaceFlags.html +2 -2
- package/dist/docs/types/WorkspaceIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItem.html +2 -2
- package/dist/docs/types/WorkspaceItemBase.html +2 -2
- package/dist/docs/types/WorkspaceItemDocumentFields.html +1 -0
- package/dist/docs/types/WorkspaceItemIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItemModel.html +2 -2
- package/dist/docs/types/WorkspaceItemTitleProps.html +3 -2
- package/dist/docs/types/WorkspaceItems.html +2 -2
- package/dist/docs/types/WorkspacePermission.html +2 -2
- package/dist/docs/types/WorkspaceRecord.html +2 -2
- package/dist/docs/types/WorkspaceRecordInfo.html +2 -2
- package/dist/docs/types/WorkspaceRecordWithRelationships.html +2 -2
- package/dist/docs/types/WorkspaceRecords.html +2 -2
- package/dist/docs/types/WorkspaceRelationship.html +2 -2
- package/dist/docs/types/WorkspaceSettings.html +4 -3
- package/dist/docs/types/trigger.html +2 -2
- package/dist/docs/types/uuid.html +2 -2
- 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/SAVED_SEARCH_MESSAGE_TYPES.html +1 -1
- package/dist/docs/variables/SAVED_SEARCH_PREFIX.html +1 -1
- package/dist/event.d.ts.map +1 -1
- package/dist/extras.d.ts +2 -2
- package/dist/extras.d.ts.map +1 -1
- package/dist/files.d.ts +49 -12
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +3 -1
- package/dist/files.js.map +1 -1
- package/dist/graph.d.ts +2 -4
- package/dist/graph.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/indexSearch.d.ts +216 -0
- package/dist/indexSearch.d.ts.map +1 -0
- package/dist/indexSearch.js +2 -0
- package/dist/indexSearch.js.map +1 -0
- package/dist/jobManifestTypes.d.ts +18 -40
- package/dist/jobManifestTypes.d.ts.map +1 -1
- package/dist/liveContext.d.ts +12 -16
- package/dist/liveContext.d.ts.map +1 -1
- package/dist/model.d.ts +18 -16
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js.map +1 -1
- package/dist/ontology.d.ts +44 -9
- package/dist/ontology.d.ts.map +1 -1
- package/dist/platform-types.d.ts +515 -133
- package/dist/query.d.ts +4 -4
- package/dist/query.d.ts.map +1 -1
- package/dist/remoteApp.d.ts +1 -1
- package/dist/remoteApp.d.ts.map +1 -1
- package/dist/savedSearch.d.ts +9 -13
- package/dist/savedSearch.d.ts.map +1 -1
- package/dist/savedSearch.js.map +1 -1
- package/dist/search.d.ts +11 -2
- package/dist/search.d.ts.map +1 -1
- package/dist/styling.d.ts +5 -5
- package/dist/styling.d.ts.map +1 -1
- package/dist/templates.d.ts +3 -3
- package/dist/templates.d.ts.map +1 -1
- package/dist/workspace.d.ts +5 -5
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js.map +1 -1
- package/package.json +19 -5
package/dist/platform-types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ButtonProps } from 'antd';
|
|
1
|
+
import type { ButtonProps } from 'antd';
|
|
2
2
|
import { ItemType } from 'rc-menu/lib/interface';
|
|
3
3
|
import { ModalProps } from 'antd';
|
|
4
4
|
import { Properties } from 'csstype';
|
|
5
5
|
import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types';
|
|
6
|
-
import { TabNode } from 'flexlayout-react';
|
|
6
|
+
import type { TabNode } from 'flexlayout-react';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @beta
|
|
@@ -139,7 +139,7 @@ export declare type AppRegistry = {
|
|
|
139
139
|
/**
|
|
140
140
|
* Registers a tab component.
|
|
141
141
|
*/
|
|
142
|
-
registerTabComponent: ({ component, factory
|
|
142
|
+
registerTabComponent: ({ component, factory }: {
|
|
143
143
|
component: string;
|
|
144
144
|
factory: (node: TabNode) => ReactNode;
|
|
145
145
|
}) => void;
|
|
@@ -170,9 +170,7 @@ export declare type AppServiceCallProps = {
|
|
|
170
170
|
/** Optional options for the service call. */
|
|
171
171
|
options?: AppServiceCallOptions;
|
|
172
172
|
/** Contextual data for the service call. */
|
|
173
|
-
context:
|
|
174
|
-
[key: string]: any;
|
|
175
|
-
};
|
|
173
|
+
context: Record<string, any>;
|
|
176
174
|
};
|
|
177
175
|
|
|
178
176
|
/**
|
|
@@ -253,7 +251,7 @@ export declare interface BinaryObjectFilterClause {
|
|
|
253
251
|
* @beta
|
|
254
252
|
* Type representing a binary operator.
|
|
255
253
|
*/
|
|
256
|
-
export declare type BinaryOperator = '==' | '!=' | '>' | '>=' | '<' | '<=' | '
|
|
254
|
+
export declare type BinaryOperator = '==' | '!=' | '>' | '>=' | '<' | '<=' | 'IN' | 'NOT IN' | 'regex' | 'LIKE' | 'ILIKE';
|
|
257
255
|
|
|
258
256
|
/**
|
|
259
257
|
* @beta
|
|
@@ -291,6 +289,37 @@ export declare interface ChartDataResponseResult {
|
|
|
291
289
|
to_dttm: number | null;
|
|
292
290
|
}
|
|
293
291
|
|
|
292
|
+
export declare type ChatApiResponse = {
|
|
293
|
+
response: {
|
|
294
|
+
content: string;
|
|
295
|
+
additional_kwargs: Record<string, unknown>;
|
|
296
|
+
response_metadata: {
|
|
297
|
+
model: string;
|
|
298
|
+
created_at: string;
|
|
299
|
+
done: boolean;
|
|
300
|
+
done_reason: string;
|
|
301
|
+
total_duration: number;
|
|
302
|
+
load_duration: number;
|
|
303
|
+
prompt_eval_count: number;
|
|
304
|
+
prompt_eval_duration: number;
|
|
305
|
+
eval_count: number;
|
|
306
|
+
eval_duration: number;
|
|
307
|
+
model_name: string;
|
|
308
|
+
};
|
|
309
|
+
type: string;
|
|
310
|
+
name: string | null;
|
|
311
|
+
id: string;
|
|
312
|
+
example: boolean;
|
|
313
|
+
tool_calls: unknown[];
|
|
314
|
+
invalid_tool_calls: unknown[];
|
|
315
|
+
usage_metadata: {
|
|
316
|
+
input_tokens: number;
|
|
317
|
+
output_tokens: number;
|
|
318
|
+
total_tokens: number;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
|
|
294
323
|
export declare interface ChatMessage {
|
|
295
324
|
/**
|
|
296
325
|
* The id of the message. This is used to identify the message in the conversation.
|
|
@@ -428,7 +457,9 @@ export declare type ConceptFilter = {
|
|
|
428
457
|
/**
|
|
429
458
|
* The filters to apply to the records of the concept.
|
|
430
459
|
*/
|
|
431
|
-
filters: QueryObjectFilterClause
|
|
460
|
+
filters: (QueryObjectFilterClause & {
|
|
461
|
+
formattedLabel?: string;
|
|
462
|
+
})[];
|
|
432
463
|
};
|
|
433
464
|
|
|
434
465
|
/**
|
|
@@ -689,6 +720,10 @@ export declare interface DeleteResponse {
|
|
|
689
720
|
* @beta
|
|
690
721
|
*/
|
|
691
722
|
export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
|
|
723
|
+
/**
|
|
724
|
+
* [Private] Gets the UI state manager.
|
|
725
|
+
*/
|
|
726
|
+
getUiStateManager: () => Promise<UiStateManager>;
|
|
692
727
|
/**
|
|
693
728
|
* Refreshes the desktop.
|
|
694
729
|
*/
|
|
@@ -701,6 +736,13 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
701
736
|
* Gets the active workspace.
|
|
702
737
|
*/
|
|
703
738
|
getActiveWorkspace: (prompt?: boolean) => Promise<string | undefined>;
|
|
739
|
+
/**
|
|
740
|
+
* Prompts the user for a file name.
|
|
741
|
+
* @param defaultFileName - The default/initial file name to show in the prompt
|
|
742
|
+
* @param context - The context of the prompt ('folder' or 'file')
|
|
743
|
+
* @returns The entered file name, or null if the user cancelled
|
|
744
|
+
*/
|
|
745
|
+
promptForFileName: (defaultFileName?: string, context?: 'folder' | 'file') => Promise<string | null>;
|
|
704
746
|
/**
|
|
705
747
|
* Sets the active workspace.
|
|
706
748
|
*/
|
|
@@ -754,19 +796,23 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
754
796
|
/**
|
|
755
797
|
* Gets items in a workspace by name.
|
|
756
798
|
*/
|
|
757
|
-
getWorkspaceItems(os_item_name: string)
|
|
799
|
+
getWorkspaceItems: (os_item_name: string) => Promise<WorkspaceItem[]>;
|
|
758
800
|
/**
|
|
759
801
|
* Gets the OsAPIClient.
|
|
760
802
|
*/
|
|
761
|
-
getOsAPIClient()
|
|
803
|
+
getOsAPIClient: () => Promise<OsAPIClient>;
|
|
762
804
|
/**
|
|
763
805
|
* Gets the AI client.
|
|
764
806
|
*/
|
|
765
|
-
getAIClient()
|
|
807
|
+
getAIClient: () => Promise<AIClient>;
|
|
766
808
|
/**
|
|
767
809
|
* Gets the FilesAPIClient.
|
|
768
810
|
*/
|
|
769
|
-
getFilesAPIClient()
|
|
811
|
+
getFilesAPIClient: () => Promise<FilesAPIClient>;
|
|
812
|
+
/**
|
|
813
|
+
* Registers a context menu action.
|
|
814
|
+
*/
|
|
815
|
+
registerContextMenuAction: (action: DesktopActionMenuItem) => Promise<Unsubscribe>;
|
|
770
816
|
/**
|
|
771
817
|
* Applies a tag to an entity.
|
|
772
818
|
*/
|
|
@@ -781,10 +827,12 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
781
827
|
updateTag: (tag: OsTag) => Promise<OsTag>;
|
|
782
828
|
/**
|
|
783
829
|
* Gets an item by workspace identifier.
|
|
830
|
+
* [Warning: This method does not return the __uiState, Use useEntity hook or UiStateManager to get the __uiState]
|
|
784
831
|
*/
|
|
785
832
|
getItem: <T>(ws: WorkspaceIdentifier<T>) => Promise<WorkspaceItem<T>>;
|
|
786
833
|
/**
|
|
787
834
|
* Gets items by workspace identifiers.
|
|
835
|
+
* [Warning: This method does not return the __uiState, Use useEntity hook or UiStateManager to get the __uiState]
|
|
788
836
|
*/
|
|
789
837
|
getItems: (ws: WorkspaceIdentifier[]) => Promise<WorkspaceItem[]>;
|
|
790
838
|
/**
|
|
@@ -808,9 +856,14 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
808
856
|
*/
|
|
809
857
|
getApp: (name: string) => Promise<WorkspaceItem | undefined>;
|
|
810
858
|
/**
|
|
811
|
-
*
|
|
859
|
+
* Query workspace items by content type directly from the database.
|
|
860
|
+
* This ensures all items are retrieved, not just those loaded in memory.
|
|
861
|
+
*
|
|
862
|
+
* @param os_item_content_type - The content type to filter by
|
|
863
|
+
* @param workspace_ids - Optional list of workspace IDs to filter by. If not provided, searches across all open workspaces
|
|
864
|
+
* @returns Promise resolving to array of workspace items matching the content type
|
|
812
865
|
*/
|
|
813
|
-
|
|
866
|
+
getItemsByContentType: (os_item_content_type: string, workspace_ids?: string[]) => Promise<WorkspaceItem[]>;
|
|
814
867
|
/**
|
|
815
868
|
* Creates a workspace by name.
|
|
816
869
|
*/
|
|
@@ -818,7 +871,7 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
818
871
|
/**
|
|
819
872
|
* Creates a private workspace for user by name.
|
|
820
873
|
*/
|
|
821
|
-
createPrivateWorkspace: (name: string, config?: WorkspaceConfig) => Promise<
|
|
874
|
+
createPrivateWorkspace: (name: string, config?: WorkspaceConfig) => Promise<WorkspaceItem>;
|
|
822
875
|
/**
|
|
823
876
|
* Connects two entities with a relationship in a workspace.
|
|
824
877
|
*/
|
|
@@ -843,6 +896,10 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
843
896
|
* Exports an item or items with optional export options.
|
|
844
897
|
*/
|
|
845
898
|
export: (item: WorkspaceItem | WorkspaceItem[], options?: ExportOptions) => Promise<void>;
|
|
899
|
+
/**
|
|
900
|
+
* Downloads a file from the given URL.
|
|
901
|
+
*/
|
|
902
|
+
download: (url: string, filename?: string) => Promise<void>;
|
|
846
903
|
/**
|
|
847
904
|
* Fetches an entity from the index, or from the ontology if not found in the index.
|
|
848
905
|
*/
|
|
@@ -862,7 +919,7 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
862
919
|
/**
|
|
863
920
|
* Opens records with default action or as specified in the optional desktop action options.
|
|
864
921
|
*/
|
|
865
|
-
open(records: Entity | Entity[], options?: DesktopActionOptions)
|
|
922
|
+
open: (records: Entity | Entity[], options?: DesktopActionOptions) => Promise<void>;
|
|
866
923
|
/**
|
|
867
924
|
* Deletes an item or items recursively.
|
|
868
925
|
*/
|
|
@@ -914,6 +971,10 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
914
971
|
* Shows a progress item.
|
|
915
972
|
*/
|
|
916
973
|
showProgress: (progress: OsProgress) => Promise<void>;
|
|
974
|
+
/**
|
|
975
|
+
* Gets a system setting.
|
|
976
|
+
*/
|
|
977
|
+
getSystemSetting: (key: string, defaultValue: any, show_protected?: boolean) => Promise<any>;
|
|
917
978
|
/**
|
|
918
979
|
* Wraps a promise with a progress bar.
|
|
919
980
|
*/
|
|
@@ -961,9 +1022,7 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
961
1022
|
/**
|
|
962
1023
|
* Gets workspace permissions by IDs.
|
|
963
1024
|
*/
|
|
964
|
-
getWorkspacePermission: (os_worpsaces: string[]) => Promise<
|
|
965
|
-
[os_workspace: string]: WorkspacePermission;
|
|
966
|
-
}>;
|
|
1025
|
+
getWorkspacePermission: (os_worpsaces: string[]) => Promise<Record<string, WorkspacePermission>>;
|
|
967
1026
|
/**
|
|
968
1027
|
* Gets the user profile.
|
|
969
1028
|
*/
|
|
@@ -971,9 +1030,7 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
971
1030
|
/**
|
|
972
1031
|
* Deploys an application with optional initial secrets.
|
|
973
1032
|
*/
|
|
974
|
-
deployApp: (app: WorkspaceItem | App, initialSecrets?:
|
|
975
|
-
[key: string]: string;
|
|
976
|
-
}) => Promise<WorkspaceItem>;
|
|
1033
|
+
deployApp: (app: WorkspaceItem | App, initialSecrets?: Record<string, string>) => Promise<WorkspaceItem>;
|
|
977
1034
|
/**
|
|
978
1035
|
* Undeploys an application.
|
|
979
1036
|
*/
|
|
@@ -1028,10 +1085,8 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
1028
1085
|
/**
|
|
1029
1086
|
* "Cache" for workspaces, avoiding to return a modal error, if this workspace was fetched before
|
|
1030
1087
|
*/
|
|
1031
|
-
workspaceStore:
|
|
1032
|
-
|
|
1033
|
-
};
|
|
1034
|
-
getWhitelabelingInfo(): Promise<{
|
|
1088
|
+
workspaceStore: Record<string, Workspace>;
|
|
1089
|
+
getWhitelabelingInfo: () => Promise<{
|
|
1035
1090
|
OCTOSTAR_MAIN_LOGO: string;
|
|
1036
1091
|
OCTOSTAR_FAVICON: string;
|
|
1037
1092
|
OCTOSTAR_SPINNER: string;
|
|
@@ -1195,6 +1250,10 @@ export declare type DesktopActionOptions = {
|
|
|
1195
1250
|
* Wait for the tab to open
|
|
1196
1251
|
*/
|
|
1197
1252
|
awaitShowTab?: boolean;
|
|
1253
|
+
/**
|
|
1254
|
+
* Custom name of the tab.
|
|
1255
|
+
*/
|
|
1256
|
+
tabName?: string;
|
|
1198
1257
|
};
|
|
1199
1258
|
|
|
1200
1259
|
/**
|
|
@@ -1375,6 +1434,10 @@ export declare type EntityBase = {
|
|
|
1375
1434
|
* The type of the entity.
|
|
1376
1435
|
*/
|
|
1377
1436
|
entity_type: string;
|
|
1437
|
+
/**
|
|
1438
|
+
* The workspace of the entity.
|
|
1439
|
+
*/
|
|
1440
|
+
os_workspace?: string;
|
|
1378
1441
|
};
|
|
1379
1442
|
|
|
1380
1443
|
/**
|
|
@@ -1420,16 +1483,15 @@ export declare type EntityPasteContext = {
|
|
|
1420
1483
|
fetch: (limit?: number) => Promise<Entity[]>;
|
|
1421
1484
|
};
|
|
1422
1485
|
|
|
1486
|
+
export declare interface EntityUiState {
|
|
1487
|
+
rename?: boolean;
|
|
1488
|
+
[key: string]: any;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1423
1491
|
export declare type EvalContext = {
|
|
1424
|
-
variables:
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
filters: {
|
|
1428
|
-
[key: string]: DesktopActionFilter;
|
|
1429
|
-
};
|
|
1430
|
-
transforms: {
|
|
1431
|
-
[key: string]: Function;
|
|
1432
|
-
};
|
|
1492
|
+
variables: Record<string, any>;
|
|
1493
|
+
filters: Record<string, DesktopActionFilter>;
|
|
1494
|
+
transforms: Record<string, Function>;
|
|
1433
1495
|
};
|
|
1434
1496
|
|
|
1435
1497
|
/**
|
|
@@ -1590,7 +1652,7 @@ export declare interface FilesAPIClient {
|
|
|
1590
1652
|
* @param path - The path to check (empty string for workspace info)
|
|
1591
1653
|
* @returns Complete entity data if found
|
|
1592
1654
|
*/
|
|
1593
|
-
stat(os_workspace: string, path?: string)
|
|
1655
|
+
stat: (os_workspace: string, path?: string) => Promise<WorkspaceItem>;
|
|
1594
1656
|
/**
|
|
1595
1657
|
* Main entry point for listing workspace or folder contents
|
|
1596
1658
|
* Supports listing by path, parent folder ID, or root level
|
|
@@ -1602,7 +1664,7 @@ export declare interface FilesAPIClient {
|
|
|
1602
1664
|
* - If neither is provided, lists root level contents
|
|
1603
1665
|
* @returns Paginated list of files and folders
|
|
1604
1666
|
*/
|
|
1605
|
-
listFolder(os_workspace: string, options: ListFolderOptions)
|
|
1667
|
+
listFolder: (os_workspace: string, options: ListFolderOptions) => Promise<FileListResponse>;
|
|
1606
1668
|
/**
|
|
1607
1669
|
* Move a file or folder to a new path
|
|
1608
1670
|
*
|
|
@@ -1621,7 +1683,7 @@ export declare interface FilesAPIClient {
|
|
|
1621
1683
|
* - entity_label: Display name of the entity
|
|
1622
1684
|
* - new_path: Full path to the entity after move/rename
|
|
1623
1685
|
*/
|
|
1624
|
-
moveOrRename(os_workspace: string, path: string, options: MoveOptions)
|
|
1686
|
+
moveOrRename: (os_workspace: string, path: string, options: MoveOptions) => Promise<MoveResponse>;
|
|
1625
1687
|
/**
|
|
1626
1688
|
* Create a new directory
|
|
1627
1689
|
*
|
|
@@ -1629,7 +1691,7 @@ export declare interface FilesAPIClient {
|
|
|
1629
1691
|
* @param path - The path to create
|
|
1630
1692
|
* @returns The created entity
|
|
1631
1693
|
*/
|
|
1632
|
-
mkdir
|
|
1694
|
+
mkdir: (item: WorkspaceItem) => Promise<MkdirResponse>;
|
|
1633
1695
|
/**
|
|
1634
1696
|
* Delete a file or directory
|
|
1635
1697
|
*
|
|
@@ -1637,14 +1699,21 @@ export declare interface FilesAPIClient {
|
|
|
1637
1699
|
* @param path - The path to delete
|
|
1638
1700
|
* @returns The deleted entity
|
|
1639
1701
|
*/
|
|
1640
|
-
deleteFile(os_workspace: string, path: string)
|
|
1702
|
+
deleteFile: (os_workspace: string, path: string) => Promise<DeleteResponse>;
|
|
1641
1703
|
/**
|
|
1642
1704
|
* Delete a file or directory recursively
|
|
1643
1705
|
*
|
|
1644
1706
|
* @param os_workspace - The workspace ID
|
|
1645
1707
|
* @param path - The path to delete
|
|
1646
1708
|
*/
|
|
1647
|
-
deleteRecursive(os_workspace: string, path: string)
|
|
1709
|
+
deleteRecursive: (os_workspace: string, path: string) => Promise<DeleteResponse>;
|
|
1710
|
+
/**
|
|
1711
|
+
* Create a new file
|
|
1712
|
+
*
|
|
1713
|
+
* @param item - The file item to create
|
|
1714
|
+
* @returns The created entity
|
|
1715
|
+
*/
|
|
1716
|
+
createFile: (item: WorkspaceItem) => Promise<MkdirResponse>;
|
|
1648
1717
|
/**
|
|
1649
1718
|
* Get a download URL for a file
|
|
1650
1719
|
*
|
|
@@ -1653,7 +1722,7 @@ export declare interface FilesAPIClient {
|
|
|
1653
1722
|
* @param options - Optional parameters for the download
|
|
1654
1723
|
* @returns The download URL
|
|
1655
1724
|
*/
|
|
1656
|
-
getDownloadUrl(os_workspace: string, path: string, options?: DownloadOptions)
|
|
1725
|
+
getDownloadUrl: (os_workspace: string, path: string, options?: DownloadOptions) => Promise<string>;
|
|
1657
1726
|
/**
|
|
1658
1727
|
* Unzip a file by entity ID
|
|
1659
1728
|
*
|
|
@@ -1661,10 +1730,19 @@ export declare interface FilesAPIClient {
|
|
|
1661
1730
|
* @param entity_id - The entity ID
|
|
1662
1731
|
* @returns The tracking ID and status URL
|
|
1663
1732
|
*/
|
|
1664
|
-
unzipByEntity(os_workspace: string, entity_id: string)
|
|
1733
|
+
unzipByEntity: (os_workspace: string, entity_id: string) => Promise<{
|
|
1665
1734
|
tracking_id: string;
|
|
1666
1735
|
status_url: string;
|
|
1667
1736
|
}>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Get an upload URL for a file
|
|
1739
|
+
*
|
|
1740
|
+
* @param os_workspace - The workspace ID
|
|
1741
|
+
* @param entity_id - The entity ID
|
|
1742
|
+
* @param options - Upload options including content_type and optional TTL in minutes
|
|
1743
|
+
* @returns The upload URL and fields
|
|
1744
|
+
*/
|
|
1745
|
+
getUploadUrl: (os_workspace: string, entity_id: string, options: UploadOptions) => Promise<S3UploadResponse>;
|
|
1668
1746
|
}
|
|
1669
1747
|
|
|
1670
1748
|
/**
|
|
@@ -1702,9 +1780,7 @@ export declare type Filter = {
|
|
|
1702
1780
|
scope: NativeFilterScope;
|
|
1703
1781
|
filterType: string;
|
|
1704
1782
|
targets: [Partial<NativeFilterTarget>];
|
|
1705
|
-
controlValues:
|
|
1706
|
-
[key: string]: any;
|
|
1707
|
-
};
|
|
1783
|
+
controlValues: Record<string, any>;
|
|
1708
1784
|
sortMetric?: string | null;
|
|
1709
1785
|
adhoc_filters?: Record<any, any>[];
|
|
1710
1786
|
granularity_sqla?: string;
|
|
@@ -1728,9 +1804,7 @@ export declare type FilterDefinition = ProvidedFilterDefinition | JavascriptFilt
|
|
|
1728
1804
|
* @beta
|
|
1729
1805
|
* Type representing a collection of filter definitions.
|
|
1730
1806
|
*/
|
|
1731
|
-
export declare type FilterDefinitions =
|
|
1732
|
-
[k: FilterName]: FilterDefinition;
|
|
1733
|
-
};
|
|
1807
|
+
export declare type FilterDefinitions = Record<FilterName, FilterDefinition>;
|
|
1734
1808
|
|
|
1735
1809
|
/**
|
|
1736
1810
|
* @beta
|
|
@@ -1858,13 +1932,9 @@ export declare type HttpTransformDefinition = {
|
|
|
1858
1932
|
/** The URL for the HTTP request, can be relative to the url of the deployed app */
|
|
1859
1933
|
url: string;
|
|
1860
1934
|
/** Optional headers for the HTTP request. */
|
|
1861
|
-
headers?:
|
|
1862
|
-
[k: string]: string;
|
|
1863
|
-
};
|
|
1935
|
+
headers?: Record<string, string>;
|
|
1864
1936
|
/** Optional data for the HTTP request. */
|
|
1865
|
-
data?: string |
|
|
1866
|
-
[k: string]: any;
|
|
1867
|
-
};
|
|
1937
|
+
data?: string | Record<string, any>;
|
|
1868
1938
|
};
|
|
1869
1939
|
|
|
1870
1940
|
/**
|
|
@@ -2004,6 +2074,196 @@ export declare type ImportZipOptions = {
|
|
|
2004
2074
|
include_dashboards?: boolean | 'if_missing';
|
|
2005
2075
|
};
|
|
2006
2076
|
|
|
2077
|
+
export declare interface IndexSearchHitSource {
|
|
2078
|
+
annotations?: {
|
|
2079
|
+
data?: string;
|
|
2080
|
+
crossFilters?: string;
|
|
2081
|
+
'extract:metadata'?: string;
|
|
2082
|
+
'extract:src'?: string;
|
|
2083
|
+
'extract:txt'?: string;
|
|
2084
|
+
'extract:txtLang'?: string;
|
|
2085
|
+
'image:annotations'?: {
|
|
2086
|
+
bbox?: string;
|
|
2087
|
+
confidence?: number;
|
|
2088
|
+
embedding?: Record<VectorKey, {
|
|
2089
|
+
value?: number[];
|
|
2090
|
+
}>;
|
|
2091
|
+
label?: string;
|
|
2092
|
+
}[];
|
|
2093
|
+
'image:annotations-key'?: {
|
|
2094
|
+
label?: string;
|
|
2095
|
+
}[];
|
|
2096
|
+
'image:annotations-sensitive'?: {
|
|
2097
|
+
label?: string;
|
|
2098
|
+
}[];
|
|
2099
|
+
'image:annotations-setting'?: {
|
|
2100
|
+
label?: string;
|
|
2101
|
+
}[];
|
|
2102
|
+
'ner:entities'?: {
|
|
2103
|
+
person?: string[];
|
|
2104
|
+
org?: string[];
|
|
2105
|
+
loc?: string[];
|
|
2106
|
+
norp?: string[];
|
|
2107
|
+
gpe?: string[];
|
|
2108
|
+
product?: string[];
|
|
2109
|
+
phone?: string[];
|
|
2110
|
+
email?: string[];
|
|
2111
|
+
ip_address?: string[];
|
|
2112
|
+
url?: string[];
|
|
2113
|
+
};
|
|
2114
|
+
'rag:chunks'?: {
|
|
2115
|
+
metadata?: {
|
|
2116
|
+
type?: string;
|
|
2117
|
+
chunk_id?: number;
|
|
2118
|
+
os_workspace?: string;
|
|
2119
|
+
os_relationship_workspace?: string;
|
|
2120
|
+
text?: string;
|
|
2121
|
+
};
|
|
2122
|
+
embedding?: Record<VectorKey, {
|
|
2123
|
+
value?: number[];
|
|
2124
|
+
}>;
|
|
2125
|
+
}[];
|
|
2126
|
+
};
|
|
2127
|
+
document_fields: Entity & {
|
|
2128
|
+
address?: string;
|
|
2129
|
+
age?: number;
|
|
2130
|
+
alias?: string;
|
|
2131
|
+
align_model?: string;
|
|
2132
|
+
area_code?: string;
|
|
2133
|
+
arousal?: string;
|
|
2134
|
+
author?: string;
|
|
2135
|
+
blood_type?: string;
|
|
2136
|
+
breed?: string;
|
|
2137
|
+
build?: string;
|
|
2138
|
+
callee_name?: string;
|
|
2139
|
+
callee_number?: string;
|
|
2140
|
+
caller_name?: string;
|
|
2141
|
+
caller_number?: string;
|
|
2142
|
+
category?: string;
|
|
2143
|
+
citizenship?: string;
|
|
2144
|
+
city?: string;
|
|
2145
|
+
city_of_birth?: string;
|
|
2146
|
+
color?: string;
|
|
2147
|
+
complexion?: string;
|
|
2148
|
+
contents?: string;
|
|
2149
|
+
context?: string;
|
|
2150
|
+
country?: string;
|
|
2151
|
+
country_code?: string;
|
|
2152
|
+
country_of_birth?: string;
|
|
2153
|
+
creation_date?: string;
|
|
2154
|
+
date_of_birth?: string;
|
|
2155
|
+
date_of_death?: string;
|
|
2156
|
+
dayofweek?: string;
|
|
2157
|
+
dayofweeknumber?: number;
|
|
2158
|
+
description?: string;
|
|
2159
|
+
detection_model?: string;
|
|
2160
|
+
distinguishing_marks?: string;
|
|
2161
|
+
dominance?: string;
|
|
2162
|
+
duration?: number;
|
|
2163
|
+
email_address?: string;
|
|
2164
|
+
email_from?: string;
|
|
2165
|
+
email_to?: string;
|
|
2166
|
+
embedding?: string;
|
|
2167
|
+
embedding_model?: string;
|
|
2168
|
+
face_area?: string;
|
|
2169
|
+
first_name?: string;
|
|
2170
|
+
fuel_type?: string;
|
|
2171
|
+
gender?: string;
|
|
2172
|
+
group?: string;
|
|
2173
|
+
handedness?: string;
|
|
2174
|
+
height?: number;
|
|
2175
|
+
identifier?: string;
|
|
2176
|
+
language?: string;
|
|
2177
|
+
last_digits?: string;
|
|
2178
|
+
last_name?: string;
|
|
2179
|
+
latitude?: number;
|
|
2180
|
+
legal_address?: string;
|
|
2181
|
+
legal_city?: string;
|
|
2182
|
+
legal_country?: string;
|
|
2183
|
+
longitude?: number;
|
|
2184
|
+
main_language?: string;
|
|
2185
|
+
make?: string;
|
|
2186
|
+
maximum_weight?: number;
|
|
2187
|
+
means?: string;
|
|
2188
|
+
metadata?: string;
|
|
2189
|
+
middle_name?: string;
|
|
2190
|
+
model?: string;
|
|
2191
|
+
model_year?: number;
|
|
2192
|
+
msidsn?: string;
|
|
2193
|
+
name?: string;
|
|
2194
|
+
number_of_criminals?: number;
|
|
2195
|
+
offender_name?: string;
|
|
2196
|
+
order?: number;
|
|
2197
|
+
os_concept?: string;
|
|
2198
|
+
os_content_size?: number;
|
|
2199
|
+
os_created_at?: string;
|
|
2200
|
+
os_created_by?: string;
|
|
2201
|
+
os_entity_type_from?: string;
|
|
2202
|
+
os_entity_type_to?: string;
|
|
2203
|
+
os_entity_uid?: string;
|
|
2204
|
+
os_entity_uid_from?: string;
|
|
2205
|
+
os_entity_uid_to?: string;
|
|
2206
|
+
os_flags?: number;
|
|
2207
|
+
os_has_attachment?: boolean;
|
|
2208
|
+
os_hidden_by?: string;
|
|
2209
|
+
os_icon?: string;
|
|
2210
|
+
os_item_content?: string;
|
|
2211
|
+
os_item_content_type?: string;
|
|
2212
|
+
os_item_name?: string;
|
|
2213
|
+
os_item_type?: string;
|
|
2214
|
+
os_last_updated_at?: string;
|
|
2215
|
+
os_last_updated_by?: string;
|
|
2216
|
+
os_parent_folder?: string;
|
|
2217
|
+
os_parent_uid?: string;
|
|
2218
|
+
os_permission?: number;
|
|
2219
|
+
os_relationship_name?: string;
|
|
2220
|
+
os_role?: string;
|
|
2221
|
+
os_textsearchfield?: string;
|
|
2222
|
+
os_username?: string;
|
|
2223
|
+
owner_name?: string;
|
|
2224
|
+
path?: string;
|
|
2225
|
+
phone_number?: string;
|
|
2226
|
+
plate_number?: string;
|
|
2227
|
+
producer_name?: string;
|
|
2228
|
+
registration_from_date?: string;
|
|
2229
|
+
registration_to_date?: string;
|
|
2230
|
+
residence_address?: string;
|
|
2231
|
+
residence_city?: string;
|
|
2232
|
+
residence_country?: string;
|
|
2233
|
+
responsible_name?: string;
|
|
2234
|
+
slug?: string;
|
|
2235
|
+
source_entity_identifier?: string;
|
|
2236
|
+
source_entity_type?: string;
|
|
2237
|
+
source_entity_uid?: string;
|
|
2238
|
+
source_name?: string;
|
|
2239
|
+
speaking_accent?: string;
|
|
2240
|
+
start_time?: string;
|
|
2241
|
+
subtype?: string;
|
|
2242
|
+
summary?: string;
|
|
2243
|
+
timeofday?: number;
|
|
2244
|
+
title?: string;
|
|
2245
|
+
type?: string;
|
|
2246
|
+
unladen_weight?: number;
|
|
2247
|
+
username?: string;
|
|
2248
|
+
valence?: string;
|
|
2249
|
+
victim_name?: string;
|
|
2250
|
+
weight?: number;
|
|
2251
|
+
worker_name?: string;
|
|
2252
|
+
};
|
|
2253
|
+
relationships?: {
|
|
2254
|
+
relationship?: {
|
|
2255
|
+
os_relationship_name?: string;
|
|
2256
|
+
os_entity_uid_from?: string;
|
|
2257
|
+
os_entity_uid_to?: string;
|
|
2258
|
+
};
|
|
2259
|
+
target?: {
|
|
2260
|
+
os_entity_uid?: string;
|
|
2261
|
+
entity_type?: string;
|
|
2262
|
+
entity_label?: string;
|
|
2263
|
+
};
|
|
2264
|
+
}[];
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2007
2267
|
/**
|
|
2008
2268
|
* Represents an inheritance relationship between concepts.
|
|
2009
2269
|
* @beta
|
|
@@ -2032,6 +2292,10 @@ export declare type InlineCode = {
|
|
|
2032
2292
|
code: string;
|
|
2033
2293
|
};
|
|
2034
2294
|
|
|
2295
|
+
export declare function isWorkspaceFileItem(item: WorkspaceItem): item is WorkspaceItem & {
|
|
2296
|
+
os_has_attachment: true;
|
|
2297
|
+
};
|
|
2298
|
+
|
|
2035
2299
|
/**
|
|
2036
2300
|
* @beta
|
|
2037
2301
|
* Type representing a JavaScript file styler definition.
|
|
@@ -2124,9 +2388,7 @@ export declare type JobManifest = {
|
|
|
2124
2388
|
* @beta
|
|
2125
2389
|
* Type representing known counts of relationships.
|
|
2126
2390
|
*/
|
|
2127
|
-
export declare type KnownCounts =
|
|
2128
|
-
[relationship_name: string]: number;
|
|
2129
|
-
};
|
|
2391
|
+
export declare type KnownCounts = Record<string, number>;
|
|
2130
2392
|
|
|
2131
2393
|
export declare type ListByParentFolder = {
|
|
2132
2394
|
path?: never;
|
|
@@ -2145,39 +2407,35 @@ export declare type ListFolderOptions = (PathOption & CommonOptions) | (ParentFo
|
|
|
2145
2407
|
* Represents a context management interface for handling state across components
|
|
2146
2408
|
*/
|
|
2147
2409
|
export declare interface LiveContext<ContextData extends DefaultLiveContextData = DefaultLiveContextData> {
|
|
2410
|
+
/**
|
|
2411
|
+
* Unique identifier for the context instance
|
|
2412
|
+
*/
|
|
2413
|
+
readonly id: string;
|
|
2148
2414
|
/**
|
|
2149
2415
|
* @beta
|
|
2150
2416
|
* Retrieves the current context data
|
|
2151
2417
|
* @returns The current context data
|
|
2152
2418
|
*/
|
|
2153
|
-
getContext()
|
|
2419
|
+
getContext: () => ContextData;
|
|
2154
2420
|
/**
|
|
2155
2421
|
* @beta
|
|
2156
2422
|
* Updates the context with new data
|
|
2157
2423
|
* @param context - New context data or function to update context
|
|
2158
2424
|
*/
|
|
2159
|
-
setContext(context: LiveContextAPISetParams<ContextData>)
|
|
2425
|
+
setContext: (context: LiveContextAPISetParams<ContextData>) => void;
|
|
2160
2426
|
/**
|
|
2161
2427
|
* @beta
|
|
2162
2428
|
* Subscribes to context changes with an automatically generated ID
|
|
2163
2429
|
* @param contextListener - Callback function triggered on context changes
|
|
2164
2430
|
* @returns Generated subscription ID
|
|
2165
2431
|
*/
|
|
2166
|
-
subscribeToChanges(contextListener: LiveContextListener<ContextData>): string;
|
|
2167
|
-
/**
|
|
2168
|
-
* @beta
|
|
2169
|
-
* Subscribes to context changes with a custom ID
|
|
2170
|
-
* @param id - Custom subscription ID
|
|
2171
|
-
* @param contextListener - Callback function triggered on context changes
|
|
2172
|
-
* @returns The subscription ID
|
|
2173
|
-
*/
|
|
2174
|
-
subscribeToChanges(id: string, contextListener: LiveContextListener<ContextData>): string;
|
|
2432
|
+
subscribeToChanges: ((contextListener: LiveContextListener<ContextData>) => string) & ((id: string, contextListener: LiveContextListener<ContextData>) => string);
|
|
2175
2433
|
/**
|
|
2176
2434
|
* @beta
|
|
2177
2435
|
* Unsubscribes from context changes
|
|
2178
2436
|
* @param id - Subscription ID to remove
|
|
2179
2437
|
*/
|
|
2180
|
-
unsubscribeFromChanges(id: string)
|
|
2438
|
+
unsubscribeFromChanges: (id: string) => void;
|
|
2181
2439
|
/**
|
|
2182
2440
|
* @beta
|
|
2183
2441
|
* Adds a context listener to another Context instance
|
|
@@ -2185,39 +2443,37 @@ export declare interface LiveContext<ContextData extends DefaultLiveContextData
|
|
|
2185
2443
|
* @param mapContext - Optional function to transform context data
|
|
2186
2444
|
* @returns Function to remove the context listener
|
|
2187
2445
|
*/
|
|
2188
|
-
addContextListener<ContextDataToConnect extends DefaultLiveContextData>(contextAPI: LiveContext<ContextDataToConnect>, mapContext?: (context: ContextDataToConnect) => ContextData)
|
|
2446
|
+
addContextListener: <ContextDataToConnect extends DefaultLiveContextData>(contextAPI: LiveContext<ContextDataToConnect>, mapContext?: (context: ContextDataToConnect) => ContextData) => () => void;
|
|
2189
2447
|
/**
|
|
2190
2448
|
* @beta
|
|
2191
2449
|
* Removes a context listener
|
|
2192
2450
|
* @param idOrContextAPI - ID or Context instance to disconnect from
|
|
2193
2451
|
*/
|
|
2194
|
-
removeContextListener<ContextDataToConnect extends DefaultLiveContextData>(idOrContextAPI: LiveContext<ContextDataToConnect> | string)
|
|
2452
|
+
removeContextListener: <ContextDataToConnect extends DefaultLiveContextData>(idOrContextAPI: LiveContext<ContextDataToConnect> | string) => void;
|
|
2195
2453
|
/**
|
|
2196
2454
|
* @beta
|
|
2197
2455
|
* Connects to target window for context synchronization
|
|
2198
2456
|
* @returns The channel ID used for communication
|
|
2199
2457
|
*/
|
|
2200
|
-
connect()
|
|
2458
|
+
connect: () => string;
|
|
2201
2459
|
/**
|
|
2202
2460
|
* @beta
|
|
2203
2461
|
* Destroys the context and cleans up all listeners
|
|
2204
2462
|
*/
|
|
2205
|
-
destroy()
|
|
2463
|
+
destroy: () => void;
|
|
2206
2464
|
}
|
|
2207
2465
|
|
|
2208
2466
|
export declare type LiveContextAPISetParams<ContextData extends Record<string, any> = Record<string, any>> = ContextData | ((currentContext: ContextData) => ContextData);
|
|
2209
2467
|
|
|
2210
2468
|
export declare type LiveContextListener<ContextData extends Record<string, any> = Record<string, any>> = (context: ContextData) => void;
|
|
2211
2469
|
|
|
2212
|
-
export declare type ManifestSecrets = {
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
};
|
|
2218
|
-
};
|
|
2470
|
+
export declare type ManifestSecrets = Record<string, {
|
|
2471
|
+
description: string;
|
|
2472
|
+
default?: string;
|
|
2473
|
+
required?: boolean;
|
|
2474
|
+
}>;
|
|
2219
2475
|
|
|
2220
|
-
export declare type MkdirResponse =
|
|
2476
|
+
export declare type MkdirResponse = WorkspaceItem;
|
|
2221
2477
|
|
|
2222
2478
|
/**
|
|
2223
2479
|
* @beta
|
|
@@ -2242,9 +2498,11 @@ export declare type ModalTemplateProps = CustomTemplateIframeProps & {
|
|
|
2242
2498
|
};
|
|
2243
2499
|
|
|
2244
2500
|
export declare interface MoveOptions {
|
|
2245
|
-
to_path
|
|
2501
|
+
to_path?: string;
|
|
2502
|
+
entity_id?: string;
|
|
2503
|
+
new_name?: string;
|
|
2504
|
+
new_os_parent_folder?: string;
|
|
2246
2505
|
force?: boolean;
|
|
2247
|
-
redirect?: boolean;
|
|
2248
2506
|
}
|
|
2249
2507
|
|
|
2250
2508
|
export declare interface MoveResponse extends Entity {
|
|
@@ -2335,7 +2593,7 @@ export declare interface Ontology {
|
|
|
2335
2593
|
* @param rel - The relationship or relationship name.
|
|
2336
2594
|
* @returns A promise that resolves to an array of workspace relationships.
|
|
2337
2595
|
*/
|
|
2338
|
-
getWorkspaceRelationshipRecords(entity: Entity, rel: string | Relationship)
|
|
2596
|
+
getWorkspaceRelationshipRecords: (entity: Entity, rel: string | Relationship) => Promise<WorkspaceRelationship[]>;
|
|
2339
2597
|
/**
|
|
2340
2598
|
* Clears the relationship cache for a given entity and relationship.
|
|
2341
2599
|
* @param entity - The entity for which to clear the cache.
|
|
@@ -2376,11 +2634,34 @@ export declare interface Ontology {
|
|
|
2376
2634
|
*/
|
|
2377
2635
|
getConcepts: () => Promise<Map<string, Concept>>;
|
|
2378
2636
|
/**
|
|
2379
|
-
* Gets an entity.
|
|
2380
|
-
*
|
|
2637
|
+
* Gets an entity by ID.
|
|
2638
|
+
*
|
|
2639
|
+
* ⚠️ **NOTE**: This method has unusual behavior for missing entities.
|
|
2640
|
+
* The method gets a database version of the entity, if one exists, otherwise returns the original entity.
|
|
2641
|
+
* It is used in many parts of the system where the entity encountered may or may not be saved in the database.
|
|
2642
|
+
*
|
|
2643
|
+
* In the case where it's important to distinguish whether the input record was found in the database,
|
|
2644
|
+
* include an identifiying attribute eg, '#original': true as such a field will not be present in the saved version.
|
|
2645
|
+
*
|
|
2646
|
+
* **Example Usage:**
|
|
2647
|
+
* ```typescript
|
|
2648
|
+
* const entityWithOriginal: Entity & { '#original': boolean } = {
|
|
2649
|
+
* entity_id: someId,
|
|
2650
|
+
* entity_type: someType,
|
|
2651
|
+
* entity_label: someLabel,
|
|
2652
|
+
* '#original': true,
|
|
2653
|
+
* };
|
|
2654
|
+
* const result = await ontologyAPI.getEntity<Entity & { '#original': boolean }>(entityWithOriginal);
|
|
2655
|
+
* if (result['#original']) {
|
|
2656
|
+
* // Entity doesn't exist - the method returned our input object unchanged
|
|
2657
|
+
* }
|
|
2658
|
+
* // Entity exists - the method returned actual entity data (without #original flag)
|
|
2659
|
+
* ```
|
|
2660
|
+
*
|
|
2661
|
+
* @param e - The entity to get (may include special flags like `#original`).
|
|
2381
2662
|
* @param refresh - Whether to refresh the data.
|
|
2382
2663
|
* @param skipSideEffects - Whether to skip side effects.
|
|
2383
|
-
* @returns A promise that resolves to the entity.
|
|
2664
|
+
* @returns A promise that resolves to either the actual entity data OR the input entity if not found.
|
|
2384
2665
|
*/
|
|
2385
2666
|
getEntity: <T extends Entity>(e: Entity, refresh?: boolean, skipSideEffects?: boolean) => Promise<T>;
|
|
2386
2667
|
/**
|
|
@@ -2433,7 +2714,19 @@ export declare interface Ontology {
|
|
|
2433
2714
|
* Gets the system inheritance.
|
|
2434
2715
|
* @returns A promise that resolves to an array of inheritances.
|
|
2435
2716
|
*/
|
|
2436
|
-
getSysInheritance()
|
|
2717
|
+
getSysInheritance: () => Promise<Inheritance[]>;
|
|
2718
|
+
/**
|
|
2719
|
+
* Gets the local entity edges.
|
|
2720
|
+
* @param entities - The entities for which to get the edges.
|
|
2721
|
+
* @returns A promise that resolves to an array of entity edges.
|
|
2722
|
+
*/
|
|
2723
|
+
getLocalEntityEdges: (entities: Entity[]) => Promise<EntityEdge[]>;
|
|
2724
|
+
/**
|
|
2725
|
+
* Discovers edges on adding nodes.
|
|
2726
|
+
* @param entities - The entities for which to discover edges.
|
|
2727
|
+
* @returns A promise that resolves to an array of entity edges.
|
|
2728
|
+
*/
|
|
2729
|
+
discoverEdgesOnAddingNodes: (newEntities: Entity[], oldEntities: Entity[]) => Promise<EntityEdge[]>;
|
|
2437
2730
|
/**
|
|
2438
2731
|
* Subscribes to changes for a given entity.
|
|
2439
2732
|
* @param entity - The entity to subscribe to.
|
|
@@ -2625,13 +2918,23 @@ export declare type OsNotification = string | {
|
|
|
2625
2918
|
/**
|
|
2626
2919
|
* Additional details for the notification.
|
|
2627
2920
|
*/
|
|
2628
|
-
detail?:
|
|
2629
|
-
[key: string]: any;
|
|
2630
|
-
};
|
|
2921
|
+
detail?: Record<string, any>;
|
|
2631
2922
|
/**
|
|
2632
2923
|
* Placement of the notification.
|
|
2633
2924
|
*/
|
|
2634
2925
|
placement?: 'top' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
2926
|
+
/**
|
|
2927
|
+
* URL to open when action button is clicked.
|
|
2928
|
+
*/
|
|
2929
|
+
actionUrl?: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* Label for the action button. Defaults to "Open" if actionUrl is provided.
|
|
2932
|
+
*/
|
|
2933
|
+
actionLabel?: string;
|
|
2934
|
+
/**
|
|
2935
|
+
* Whether the notification should persist until manually closed.
|
|
2936
|
+
*/
|
|
2937
|
+
persistent?: boolean;
|
|
2635
2938
|
};
|
|
2636
2939
|
|
|
2637
2940
|
/**
|
|
@@ -2655,6 +2958,14 @@ export declare type OsProgress = {
|
|
|
2655
2958
|
* Status of the progress item.
|
|
2656
2959
|
*/
|
|
2657
2960
|
status?: 'active' | 'success' | 'exception' | 'normal' | undefined;
|
|
2961
|
+
/**
|
|
2962
|
+
* Percentage of the progress item.
|
|
2963
|
+
*/
|
|
2964
|
+
percent?: number;
|
|
2965
|
+
/**
|
|
2966
|
+
* Persist until complete for the progress item.
|
|
2967
|
+
*/
|
|
2968
|
+
persistUntilComplete?: boolean;
|
|
2658
2969
|
};
|
|
2659
2970
|
|
|
2660
2971
|
/**
|
|
@@ -2757,18 +3068,7 @@ export declare type Point = {
|
|
|
2757
3068
|
* Represents the status of a processing operation.
|
|
2758
3069
|
* @beta
|
|
2759
3070
|
*/
|
|
2760
|
-
export declare interface ProcessingStatus {
|
|
2761
|
-
/**
|
|
2762
|
-
* The id of the entity being processed.
|
|
2763
|
-
*/
|
|
2764
|
-
entity_id: string;
|
|
2765
|
-
/**
|
|
2766
|
-
* The type of the entity being processed.
|
|
2767
|
-
*/
|
|
2768
|
-
entity_type: string;
|
|
2769
|
-
/**
|
|
2770
|
-
* The status code of the processing operation.
|
|
2771
|
-
*/
|
|
3071
|
+
export declare interface ProcessingStatus extends EntityBase {
|
|
2772
3072
|
status_code: ProcessingStatusCode;
|
|
2773
3073
|
/**
|
|
2774
3074
|
* The reason for the processing operation.
|
|
@@ -2819,11 +3119,18 @@ export declare enum ProcessingStatusCode {
|
|
|
2819
3119
|
* The options for the prompt.
|
|
2820
3120
|
*/
|
|
2821
3121
|
export declare type PromptOptions = {
|
|
3122
|
+
noThink?: boolean;
|
|
2822
3123
|
model?: string;
|
|
2823
3124
|
apiKey?: string;
|
|
2824
3125
|
stream?: boolean;
|
|
2825
3126
|
enableRag?: boolean;
|
|
2826
3127
|
cohereKey?: string;
|
|
3128
|
+
/** Importing Entity from model.ts breaks the build. */
|
|
3129
|
+
context?: {
|
|
3130
|
+
entity_id: string;
|
|
3131
|
+
entity_label: string;
|
|
3132
|
+
entity_type: string;
|
|
3133
|
+
}[];
|
|
2827
3134
|
};
|
|
2828
3135
|
|
|
2829
3136
|
/**
|
|
@@ -3006,7 +3313,7 @@ export declare interface RecordProvider {
|
|
|
3006
3313
|
* Retrieves a message related to the records.
|
|
3007
3314
|
* @returns A promise that resolves to the message, or undefined if no message is available.
|
|
3008
3315
|
*/
|
|
3009
|
-
getMessage()
|
|
3316
|
+
getMessage: () => Promise<string | undefined>;
|
|
3010
3317
|
}
|
|
3011
3318
|
|
|
3012
3319
|
/**
|
|
@@ -3129,6 +3436,20 @@ declare type RootOption = {
|
|
|
3129
3436
|
os_parent_folder?: never;
|
|
3130
3437
|
};
|
|
3131
3438
|
|
|
3439
|
+
export declare interface S3Headers {
|
|
3440
|
+
key: string;
|
|
3441
|
+
policy: string;
|
|
3442
|
+
'x-amz-algorithm': string;
|
|
3443
|
+
'x-amz-credential': string;
|
|
3444
|
+
'x-amz-date': string;
|
|
3445
|
+
'x-amz-signature': string;
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3448
|
+
export declare interface S3UploadResponse {
|
|
3449
|
+
fields: S3Headers;
|
|
3450
|
+
url: string;
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3132
3453
|
/**
|
|
3133
3454
|
* Properties for saving as modal.
|
|
3134
3455
|
* @beta
|
|
@@ -3142,6 +3463,10 @@ export declare type SaveAsModalProps = {
|
|
|
3142
3463
|
* Application related to the item.
|
|
3143
3464
|
*/
|
|
3144
3465
|
app?: WorkspaceItem;
|
|
3466
|
+
/**
|
|
3467
|
+
* Default path for the item.
|
|
3468
|
+
*/
|
|
3469
|
+
defaultPath?: string;
|
|
3145
3470
|
};
|
|
3146
3471
|
|
|
3147
3472
|
export declare const SAVED_SEARCH_MESSAGE_TYPES: Readonly<{
|
|
@@ -3164,11 +3489,11 @@ export declare interface SavedDatasource {
|
|
|
3164
3489
|
}
|
|
3165
3490
|
|
|
3166
3491
|
export declare interface SavedSearchAPIInterface {
|
|
3167
|
-
getRecordsCount(savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>)
|
|
3168
|
-
getRecordsCountQuery(savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>)
|
|
3169
|
-
getRecords(savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>, options?: Partial<RecordFetchOptions>)
|
|
3170
|
-
getRecordsQuery(savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>, options?: RecordFetchOptions)
|
|
3171
|
-
getSavedSearchPasteContext(savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>)
|
|
3492
|
+
getRecordsCount: (savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>) => Promise<BigNumber | number | null>;
|
|
3493
|
+
getRecordsCountQuery: (savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>) => Promise<number | null>;
|
|
3494
|
+
getRecords: (savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>, options?: Partial<RecordFetchOptions>) => Promise<RecordData | null>;
|
|
3495
|
+
getRecordsQuery: (savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>, options?: RecordFetchOptions) => Promise<QueryResult_2 | null>;
|
|
3496
|
+
getSavedSearchPasteContext: (savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>) => Promise<EntityPasteContext>;
|
|
3172
3497
|
}
|
|
3173
3498
|
|
|
3174
3499
|
export declare interface SavedSearchContent {
|
|
@@ -3176,9 +3501,7 @@ export declare interface SavedSearchContent {
|
|
|
3176
3501
|
dataset: true;
|
|
3177
3502
|
filters: Filter[];
|
|
3178
3503
|
crossFilters: DataMask[];
|
|
3179
|
-
datasourcesInScope:
|
|
3180
|
-
[uid: string]: SavedDatasource;
|
|
3181
|
-
};
|
|
3504
|
+
datasourcesInScope: Record<string, SavedDatasource>;
|
|
3182
3505
|
initialCount?: number;
|
|
3183
3506
|
}
|
|
3184
3507
|
|
|
@@ -3250,6 +3573,7 @@ export declare interface SearchOptions {
|
|
|
3250
3573
|
* The maximum number of entities returned.
|
|
3251
3574
|
*/
|
|
3252
3575
|
limit?: number;
|
|
3576
|
+
workspace_ids?: string[];
|
|
3253
3577
|
}
|
|
3254
3578
|
|
|
3255
3579
|
/**
|
|
@@ -3281,6 +3605,14 @@ export declare interface SearchProps {
|
|
|
3281
3605
|
* disable save search
|
|
3282
3606
|
*/
|
|
3283
3607
|
disableSaveSearch?: boolean;
|
|
3608
|
+
/**
|
|
3609
|
+
* Title of the information message shown in the search results, presented as an alert.
|
|
3610
|
+
*/
|
|
3611
|
+
searchInfoTitle?: string;
|
|
3612
|
+
/**
|
|
3613
|
+
* Description of the information message shown in the search results, presented as an alert.
|
|
3614
|
+
*/
|
|
3615
|
+
searchInfoDescription?: React.ReactNode;
|
|
3284
3616
|
}
|
|
3285
3617
|
|
|
3286
3618
|
/**
|
|
@@ -3389,10 +3721,10 @@ export declare type SendQueryOptions = {
|
|
|
3389
3721
|
context?: string;
|
|
3390
3722
|
/** Whether to send the query with low priority. */
|
|
3391
3723
|
lowPriority?: boolean;
|
|
3724
|
+
/** Whether to suppress the global SQL Exception toast. */
|
|
3725
|
+
suppressSQLExceptionToast?: boolean;
|
|
3392
3726
|
/** Query params. */
|
|
3393
|
-
params?:
|
|
3394
|
-
[key: string]: string | number | boolean | string[] | number[] | boolean[] | null;
|
|
3395
|
-
};
|
|
3727
|
+
params?: Record<string, string | number | boolean | string[] | number[] | boolean[] | null>;
|
|
3396
3728
|
};
|
|
3397
3729
|
|
|
3398
3730
|
/**
|
|
@@ -3417,9 +3749,7 @@ export declare type ServiceDefinition = {
|
|
|
3417
3749
|
/** Optional order for the service. */
|
|
3418
3750
|
order?: number;
|
|
3419
3751
|
/** Optional parameters for the service. */
|
|
3420
|
-
params?:
|
|
3421
|
-
[k: string]: any;
|
|
3422
|
-
};
|
|
3752
|
+
params?: Record<string, any>;
|
|
3423
3753
|
/** Optional roles for the service. */
|
|
3424
3754
|
role?: ServiceRole[] | ServiceRole;
|
|
3425
3755
|
/** Filters accepted by the service. */
|
|
@@ -3437,9 +3767,7 @@ export declare type ServiceDefinition = {
|
|
|
3437
3767
|
* @beta
|
|
3438
3768
|
* Type representing a collection of service definitions.
|
|
3439
3769
|
*/
|
|
3440
|
-
export declare type ServiceDefinitions =
|
|
3441
|
-
[serviceName: string]: ServiceDefinition;
|
|
3442
|
-
};
|
|
3770
|
+
export declare type ServiceDefinitions = Record<string, ServiceDefinition>;
|
|
3443
3771
|
|
|
3444
3772
|
/**
|
|
3445
3773
|
* @beta
|
|
@@ -3613,9 +3941,7 @@ export declare type StylerDefinition = JavascriptFileStylerDefinition | Javascri
|
|
|
3613
3941
|
* @beta
|
|
3614
3942
|
* Type representing a collection of styler definitions.
|
|
3615
3943
|
*/
|
|
3616
|
-
export declare type StylerDefinitions =
|
|
3617
|
-
[stylerName: string]: StylerDefinition;
|
|
3618
|
-
};
|
|
3944
|
+
export declare type StylerDefinitions = Record<string, StylerDefinition>;
|
|
3619
3945
|
|
|
3620
3946
|
/**
|
|
3621
3947
|
* @beta
|
|
@@ -3793,9 +4119,7 @@ export declare type TransformDefinition = ProvidedTransformDefinition | HttpTran
|
|
|
3793
4119
|
* @beta
|
|
3794
4120
|
* Type representing a collection of transform definitions.
|
|
3795
4121
|
*/
|
|
3796
|
-
export declare type TransformDefinitions =
|
|
3797
|
-
[transformName: string]: TransformDefinition;
|
|
3798
|
-
};
|
|
4122
|
+
export declare type TransformDefinitions = Record<string, TransformDefinition>;
|
|
3799
4123
|
|
|
3800
4124
|
/**
|
|
3801
4125
|
* @beta
|
|
@@ -3803,6 +4127,13 @@ export declare type TransformDefinitions = {
|
|
|
3803
4127
|
*/
|
|
3804
4128
|
export declare type trigger = 'hover' | 'contextMenu' | 'click';
|
|
3805
4129
|
|
|
4130
|
+
export declare interface UiStateManager {
|
|
4131
|
+
setUiState(entity: Entity, ui_state: Partial<EntityUiState>, patch?: boolean): void;
|
|
4132
|
+
getUiState(entity: Entity): EntityUiState | undefined;
|
|
4133
|
+
clearUiState(entity: Entity): void;
|
|
4134
|
+
subscribeToUiStateChanges(entity: Entity, callback: (state: EntityUiState | undefined) => void): () => void;
|
|
4135
|
+
}
|
|
4136
|
+
|
|
3806
4137
|
/**
|
|
3807
4138
|
* @beta
|
|
3808
4139
|
* Represents a filter clause with unary operations in a query object.
|
|
@@ -3810,7 +4141,7 @@ export declare type trigger = 'hover' | 'contextMenu' | 'click';
|
|
|
3810
4141
|
*/
|
|
3811
4142
|
export declare interface UnaryObjectFilterClause {
|
|
3812
4143
|
col: string;
|
|
3813
|
-
op: 'IS NULL' | 'IS NOT NULL';
|
|
4144
|
+
op: 'IS NULL' | 'IS NOT NULL' | 'IN' | 'NOT IN';
|
|
3814
4145
|
}
|
|
3815
4146
|
|
|
3816
4147
|
/**
|
|
@@ -3826,6 +4157,11 @@ export declare type UnsubscribeFromContextFn = UnsubscribeFn;
|
|
|
3826
4157
|
|
|
3827
4158
|
export declare type UnsubscribeFromDragStartFn = UnsubscribeFn;
|
|
3828
4159
|
|
|
4160
|
+
export declare interface UploadOptions {
|
|
4161
|
+
content_type: string;
|
|
4162
|
+
ttl_minutes?: number;
|
|
4163
|
+
}
|
|
4164
|
+
|
|
3829
4165
|
/**
|
|
3830
4166
|
* @beta
|
|
3831
4167
|
* Type representing a user profile.
|
|
@@ -3847,6 +4183,16 @@ export declare type UserProfile = {
|
|
|
3847
4183
|
*/
|
|
3848
4184
|
export declare type uuid = string;
|
|
3849
4185
|
|
|
4186
|
+
declare type VectorKey = `vector_${string}_${number}_${string}`;
|
|
4187
|
+
|
|
4188
|
+
/**
|
|
4189
|
+
* Represents a virtual entity not in the database.
|
|
4190
|
+
* @beta
|
|
4191
|
+
*/
|
|
4192
|
+
export declare type VirtualEntity = Entity & {
|
|
4193
|
+
'#virtual': true;
|
|
4194
|
+
};
|
|
4195
|
+
|
|
3850
4196
|
/**
|
|
3851
4197
|
* Represents a watcher.
|
|
3852
4198
|
* @beta
|
|
@@ -3946,6 +4292,14 @@ export declare type WithProgressBarOptions = {
|
|
|
3946
4292
|
* Error message for the progress bar.
|
|
3947
4293
|
*/
|
|
3948
4294
|
errorToast?: string | boolean;
|
|
4295
|
+
/**
|
|
4296
|
+
* Key for the progress bar.
|
|
4297
|
+
*/
|
|
4298
|
+
key?: string;
|
|
4299
|
+
/**
|
|
4300
|
+
* Persist until complete for the progress bar.
|
|
4301
|
+
*/
|
|
4302
|
+
persistUntilComplete?: boolean;
|
|
3949
4303
|
};
|
|
3950
4304
|
|
|
3951
4305
|
/**
|
|
@@ -3999,7 +4353,7 @@ export declare type WorkspaceConfig = Partial<{
|
|
|
3999
4353
|
description: string;
|
|
4000
4354
|
os_icon: string;
|
|
4001
4355
|
color: string;
|
|
4002
|
-
|
|
4356
|
+
entity_id?: string;
|
|
4003
4357
|
}>;
|
|
4004
4358
|
|
|
4005
4359
|
/**
|
|
@@ -4097,6 +4451,30 @@ export declare interface WorkspaceItemConfig {
|
|
|
4097
4451
|
last_updated: number;
|
|
4098
4452
|
}
|
|
4099
4453
|
|
|
4454
|
+
export declare type WorkspaceItemDocumentFields = Entity & Partial<{
|
|
4455
|
+
os_item_content_type: string;
|
|
4456
|
+
os_parent_folder: string;
|
|
4457
|
+
os_deleted_by: string | null;
|
|
4458
|
+
os_icon: string | null;
|
|
4459
|
+
description: string | null;
|
|
4460
|
+
os_item_content: string | null;
|
|
4461
|
+
os_last_updated_at: string;
|
|
4462
|
+
os_hidden_at: string | null;
|
|
4463
|
+
os_created_by: string;
|
|
4464
|
+
os_custom_icon: string | null;
|
|
4465
|
+
os_concept: string;
|
|
4466
|
+
os_has_attachment: boolean;
|
|
4467
|
+
os_last_updated_by: string;
|
|
4468
|
+
os_deleted_at: string | null;
|
|
4469
|
+
os_textsearchfield: string | null;
|
|
4470
|
+
os_item_type: string;
|
|
4471
|
+
os_hidden_by: string;
|
|
4472
|
+
os_entity_uid: string;
|
|
4473
|
+
os_content_size: number | null;
|
|
4474
|
+
os_created_at: string;
|
|
4475
|
+
os_item_name: string;
|
|
4476
|
+
}>;
|
|
4477
|
+
|
|
4100
4478
|
/**
|
|
4101
4479
|
* @beta
|
|
4102
4480
|
* Type representing a workspace item identifier, which is the same as a workspace identifier.
|
|
@@ -4205,6 +4583,10 @@ export declare type WorkspaceItemTitleProps = DesktopActionContext & {
|
|
|
4205
4583
|
* If the component it is being used inside a Markdown component
|
|
4206
4584
|
*/
|
|
4207
4585
|
markdown?: boolean;
|
|
4586
|
+
/**
|
|
4587
|
+
* Title for the item.
|
|
4588
|
+
*/
|
|
4589
|
+
title?: ReactNode;
|
|
4208
4590
|
};
|
|
4209
4591
|
|
|
4210
4592
|
/**
|
|
@@ -4275,9 +4657,7 @@ export declare type WorkspaceRecordInfo = {
|
|
|
4275
4657
|
* @beta
|
|
4276
4658
|
* Type representing a collection of workspace records.
|
|
4277
4659
|
*/
|
|
4278
|
-
export declare type WorkspaceRecords =
|
|
4279
|
-
[key: string]: WorkspaceRecordInfo;
|
|
4280
|
-
};
|
|
4660
|
+
export declare type WorkspaceRecords = Record<string, WorkspaceRecordInfo>;
|
|
4281
4661
|
|
|
4282
4662
|
/**
|
|
4283
4663
|
* @beta
|
|
@@ -4328,6 +4708,8 @@ export declare type WorkspaceSettings = {
|
|
|
4328
4708
|
isMaster?: boolean;
|
|
4329
4709
|
/** The icon for the workspace. */
|
|
4330
4710
|
os_icon?: string;
|
|
4711
|
+
/** The color for the workspace. */
|
|
4712
|
+
color?: string;
|
|
4331
4713
|
};
|
|
4332
4714
|
|
|
4333
4715
|
export { }
|