@octostar/platform-types 0.5.4 → 0.5.6

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.
Files changed (304) hide show
  1. package/dist/docs/assets/navigation.js +1 -1
  2. package/dist/docs/assets/search.js +1 -1
  3. package/dist/docs/assets/style.css +0 -0
  4. package/dist/docs/enums/ProcessingStatusCode.html +16 -16
  5. package/dist/docs/enums/SortOrder.html +3 -3
  6. package/dist/docs/enums/WorkspacePermissionValue.html +3 -3
  7. package/dist/docs/hierarchy.html +1 -1
  8. package/dist/docs/index.html +2 -2
  9. package/dist/docs/interfaces/AIClient.html +6 -0
  10. package/dist/docs/interfaces/ActionContext.html +4 -4
  11. package/dist/docs/interfaces/{QueryObjectFilterClause.html → BinaryObjectFilterClause.html} +6 -5
  12. package/dist/docs/interfaces/ChartDataResponseResult.html +20 -0
  13. package/dist/docs/interfaces/ChatMessage.html +15 -0
  14. package/dist/docs/interfaces/Colorful.html +3 -3
  15. package/dist/docs/interfaces/Concept.html +12 -12
  16. package/dist/docs/interfaces/Desktop.html +105 -90
  17. package/dist/docs/interfaces/DesktopActionContext.html +7 -7
  18. package/dist/docs/interfaces/DesktopSettings.html +5 -5
  19. package/dist/docs/interfaces/FetchOptions.html +6 -0
  20. package/dist/docs/interfaces/GetAttachmentOptions.html +5 -5
  21. package/dist/docs/interfaces/IDataTransfer.html +11 -11
  22. package/dist/docs/interfaces/Inheritance.html +5 -5
  23. package/dist/docs/interfaces/NativeFilterColumn.html +3 -0
  24. package/dist/docs/interfaces/NativeFilterScope.html +3 -0
  25. package/dist/docs/interfaces/NativeFilterTarget.html +3 -0
  26. package/dist/docs/interfaces/Ontology.html +42 -33
  27. package/dist/docs/interfaces/OsAPIClient.html +18 -0
  28. package/dist/docs/interfaces/ProcessingStatus.html +7 -7
  29. package/dist/docs/interfaces/Property.html +5 -5
  30. package/dist/docs/interfaces/RecordData.html +20 -0
  31. package/dist/docs/interfaces/RecordProvider.html +6 -6
  32. package/dist/docs/interfaces/RefObject.html +3 -3
  33. package/dist/docs/interfaces/Relationship.html +20 -20
  34. package/dist/docs/interfaces/SavedDatasource.html +7 -0
  35. package/dist/docs/interfaces/SavedSearchAPIInterface.html +6 -0
  36. package/dist/docs/interfaces/SavedSearchContent.html +7 -0
  37. package/dist/docs/interfaces/SavedSetContent.html +3 -0
  38. package/dist/docs/interfaces/SearchOptions.html +4 -0
  39. package/dist/docs/interfaces/SearchProps.html +11 -7
  40. package/dist/docs/interfaces/SearchXperienceModalProps.html +9 -9
  41. package/dist/docs/interfaces/SearchXperienceProps.html +7 -7
  42. package/dist/docs/interfaces/SemanticBindingProps.html +5 -5
  43. package/dist/docs/interfaces/StreamJsonOptions.html +8 -0
  44. package/dist/docs/interfaces/StreamTextOptions.html +8 -0
  45. package/dist/docs/interfaces/StylerContext.html +11 -11
  46. package/dist/docs/interfaces/TagAttributes.html +7 -7
  47. package/dist/docs/interfaces/UnaryObjectFilterClause.html +5 -0
  48. package/dist/docs/interfaces/WorkspaceChangeEmitter.html +5 -5
  49. package/dist/docs/interfaces/WorkspaceItemConfig.html +6 -6
  50. package/dist/docs/interfaces/WorkspaceRecordIdentifier.html +5 -5
  51. package/dist/docs/modules.html +46 -10
  52. package/dist/docs/types/ActionHandler.html +2 -2
  53. package/dist/docs/types/AddCommentParams.html +2 -2
  54. package/dist/docs/types/AddListener.html +2 -2
  55. package/dist/docs/types/ApiErrorResult.html +2 -2
  56. package/dist/docs/types/ApiResult.html +2 -2
  57. package/dist/docs/types/ApiSuccessResult.html +2 -2
  58. package/dist/docs/types/App.html +2 -2
  59. package/dist/docs/types/AppRegistry.html +2 -2
  60. package/dist/docs/types/AppServiceCallOptions.html +2 -2
  61. package/dist/docs/types/AppServiceCallProps.html +2 -2
  62. package/dist/docs/types/AsyncFilter.html +2 -2
  63. package/dist/docs/types/AttachmentResponseType.html +2 -2
  64. package/dist/docs/types/AttachmentType.html +2 -2
  65. package/dist/docs/types/Behaviour.html +2 -2
  66. package/dist/docs/types/BinaryOperator.html +2 -2
  67. package/dist/docs/types/Callback.html +2 -2
  68. package/dist/docs/types/ChatModel.html +2 -0
  69. package/dist/docs/types/CommentWorkspaceItem.html +2 -2
  70. package/dist/docs/types/Comparator.html +2 -2
  71. package/dist/docs/types/ConceptFilter.html +3 -3
  72. package/dist/docs/types/ConceptMap.html +2 -2
  73. package/dist/docs/types/ConceptName.html +1 -1
  74. package/dist/docs/types/ConceptWithParents.html +2 -2
  75. package/dist/docs/types/ConnectedEntity.html +2 -2
  76. package/dist/docs/types/ContextMenuGroup.html +2 -2
  77. package/dist/docs/types/ContextMenuLabels.html +2 -2
  78. package/dist/docs/types/ContextMenuOptions.html +2 -2
  79. package/dist/docs/types/ContextMenuParams.html +2 -2
  80. package/dist/docs/types/ContextMenuRequest.html +2 -2
  81. package/dist/docs/types/CopyOptions.html +2 -2
  82. package/dist/docs/types/CreateEntityFormProps.html +2 -2
  83. package/dist/docs/types/CreateLinkChartFn.html +1 -0
  84. package/dist/docs/types/CreateLinkChartParams.html +1 -0
  85. package/dist/docs/types/CreateRelationsDialogProps.html +2 -2
  86. package/dist/docs/types/CustomEventListener.html +2 -2
  87. package/dist/docs/types/CustomTemplate.html +2 -2
  88. package/dist/docs/types/CustomTemplateIframeProps.html +2 -2
  89. package/dist/docs/types/DataContextType.html +2 -2
  90. package/dist/docs/types/DataMask.html +1 -0
  91. package/dist/docs/types/DesktopAction.html +2 -2
  92. package/dist/docs/types/DesktopActionFilter.html +2 -2
  93. package/dist/docs/types/DesktopActionMenuItem.html +2 -2
  94. package/dist/docs/types/DesktopActionMenuItemGroup.html +2 -2
  95. package/dist/docs/types/DesktopActionOptions.html +4 -2
  96. package/dist/docs/types/DesktopOpenParams.html +2 -2
  97. package/dist/docs/types/DesktopStylerContext.html +2 -2
  98. package/dist/docs/types/DraftWorkspaceItem.html +2 -2
  99. package/dist/docs/types/DragEndParams.html +2 -2
  100. package/dist/docs/types/DragStartParams.html +2 -2
  101. package/dist/docs/types/DropZoneRequestFn.html +1 -0
  102. package/dist/docs/types/DropZoneRequestResult.html +1 -0
  103. package/dist/docs/types/EConnection.html +2 -2
  104. package/dist/docs/types/EdgeSpec.html +2 -2
  105. package/dist/docs/types/EmitEventTransformDefinition.html +2 -2
  106. package/dist/docs/types/Entity.html +3 -5
  107. package/dist/docs/types/EntityBase.html +4 -0
  108. package/dist/docs/types/EntityEdge.html +2 -2
  109. package/dist/docs/types/EntityOTM.html +2 -2
  110. package/dist/docs/types/EntityPasteContext.html +2 -2
  111. package/dist/docs/types/EvalContext.html +1 -1
  112. package/dist/docs/types/EventContextType.html +2 -2
  113. package/dist/docs/types/EventEmitterType.html +2 -2
  114. package/dist/docs/types/EventName.html +2 -2
  115. package/dist/docs/types/EventProducer.html +2 -2
  116. package/dist/docs/types/EventPublisher.html +2 -2
  117. package/dist/docs/types/EventSubscriber.html +2 -2
  118. package/dist/docs/types/EventUnsubscriber.html +2 -2
  119. package/dist/docs/types/ExportOptions.html +2 -2
  120. package/dist/docs/types/ExtractEntitiesOptions.html +2 -2
  121. package/dist/docs/types/ExtrasApi.html +1 -0
  122. package/dist/docs/types/FetchEntityOptions.html +2 -0
  123. package/dist/docs/types/FileCode.html +2 -2
  124. package/dist/docs/types/FileTreeOptions.html +2 -2
  125. package/dist/docs/types/Filter.html +1 -0
  126. package/dist/docs/types/FilterDefinition.html +2 -2
  127. package/dist/docs/types/FilterDefinitions.html +2 -2
  128. package/dist/docs/types/FilterName.html +2 -2
  129. package/dist/docs/types/FilterReference.html +2 -2
  130. package/dist/docs/types/FilterState.html +1 -0
  131. package/dist/docs/types/FocusListItem.html +2 -2
  132. package/dist/docs/types/FolderPasteOptions.html +2 -2
  133. package/dist/docs/types/GraphDataSpec.html +1 -1
  134. package/dist/docs/types/GraphSpec.html +2 -2
  135. package/dist/docs/types/HttpTransformDefinition.html +2 -2
  136. package/dist/docs/types/Icon.html +2 -2
  137. package/dist/docs/types/IconProps.html +2 -2
  138. package/dist/docs/types/IframeTransformDefinition.html +2 -2
  139. package/dist/docs/types/ImageInfo.html +2 -2
  140. package/dist/docs/types/ImportZipOptions.html +2 -2
  141. package/dist/docs/types/InlineCode.html +2 -2
  142. package/dist/docs/types/JavascriptFileStylerDefinition.html +2 -2
  143. package/dist/docs/types/JavascriptFileTransformDefinition.html +2 -2
  144. package/dist/docs/types/JavascriptFilterDefinition.html +2 -2
  145. package/dist/docs/types/JavascriptInlineStylerDefinition.html +2 -2
  146. package/dist/docs/types/JavascriptInlineTransformDefinition.html +2 -2
  147. package/dist/docs/types/JavascriptType.html +2 -2
  148. package/dist/docs/types/JobManifest.html +3 -3
  149. package/dist/docs/types/KnownCounts.html +2 -2
  150. package/dist/docs/types/ManifestSecrets.html +1 -0
  151. package/dist/docs/types/ModalTemplateProps.html +2 -2
  152. package/dist/docs/types/NamedEntityGroup.html +2 -2
  153. package/dist/docs/types/NunjucksFileTransformDefinition.html +2 -2
  154. package/dist/docs/types/NunjucksInlineTransformDefinition.html +2 -2
  155. package/dist/docs/types/NunjucksType.html +2 -2
  156. package/dist/docs/types/OS_CONFIRM_MODAL_RESPONSE.html +2 -2
  157. package/dist/docs/types/OntologyTags.html +2 -2
  158. package/dist/docs/types/OsAuditFields.html +2 -2
  159. package/dist/docs/types/OsConfirmProps.html +2 -2
  160. package/dist/docs/types/OsNotification.html +2 -2
  161. package/dist/docs/types/OsProgress.html +2 -2
  162. package/dist/docs/types/OsTag.html +2 -2
  163. package/dist/docs/types/OsWorkspaceEntity.html +2 -2
  164. package/dist/docs/types/OsWorkspacePickerProps.html +2 -2
  165. package/dist/docs/types/PasteContextOptions.html +3 -2
  166. package/dist/docs/types/Permission.html +2 -2
  167. package/dist/docs/types/Point.html +2 -2
  168. package/dist/docs/types/PromptOptions.html +2 -0
  169. package/dist/docs/types/ProvidedFilterDefinition.html +2 -2
  170. package/dist/docs/types/ProvidedTransformDefinition.html +2 -2
  171. package/dist/docs/types/Query.html +2 -2
  172. package/dist/docs/types/QueryBatchResult.html +2 -2
  173. package/dist/docs/types/QueryErrorResult.html +2 -2
  174. package/dist/docs/types/QueryExecutor.html +2 -2
  175. package/dist/docs/types/QueryObjectFilterClause.html +3 -0
  176. package/dist/docs/types/QueryResponse.html +2 -2
  177. package/dist/docs/types/QueryResult.html +2 -2
  178. package/dist/docs/types/QuerySuccessResult.html +2 -2
  179. package/dist/docs/types/ReactCssProperties.html +2 -2
  180. package/dist/docs/types/ReactNode.html +2 -2
  181. package/dist/docs/types/ReactRef.html +2 -2
  182. package/dist/docs/types/ReasonedBoolean.html +2 -2
  183. package/dist/docs/types/RecordFetchOptions.html +1 -0
  184. package/dist/docs/types/RefCallback.html +2 -2
  185. package/dist/docs/types/RelationshipCountResult.html +2 -2
  186. package/dist/docs/types/RemoteAppApi.html +1 -0
  187. package/dist/docs/types/SaveAsModalProps.html +2 -2
  188. package/dist/docs/types/SaveFileOptions.html +2 -2
  189. package/dist/docs/types/SaveOptions.html +2 -2
  190. package/dist/docs/types/SavedTemplate.html +2 -2
  191. package/dist/docs/types/SearchFilter.html +2 -2
  192. package/dist/docs/types/SemanticBinding.html +2 -2
  193. package/dist/docs/types/SemanticBindingType.html +2 -2
  194. package/dist/docs/types/SemanticBindings.html +2 -2
  195. package/dist/docs/types/SemanticallyBoundApp.html +2 -2
  196. package/dist/docs/types/SemanticallyBoundFilterDefinition.html +2 -2
  197. package/dist/docs/types/SendQueryOptions.html +2 -2
  198. package/dist/docs/types/ServiceDefinition.html +2 -2
  199. package/dist/docs/types/ServiceDefinitions.html +2 -2
  200. package/dist/docs/types/ServiceRole.html +2 -2
  201. package/dist/docs/types/SetTransformResultFn.html +1 -0
  202. package/dist/docs/types/ShowOntology.html +2 -2
  203. package/dist/docs/types/ShowTabProps.html +2 -2
  204. package/dist/docs/types/Styler.html +19 -10
  205. package/dist/docs/types/StylerConfig.html +2 -2
  206. package/dist/docs/types/StylerDefinition.html +2 -2
  207. package/dist/docs/types/StylerDefinitions.html +2 -2
  208. package/dist/docs/types/StylerOption.html +2 -2
  209. package/dist/docs/types/StylerProducer.html +2 -2
  210. package/dist/docs/types/SubscribeDragStartFn.html +1 -0
  211. package/dist/docs/types/SubscribeToContextFn.html +1 -0
  212. package/dist/docs/types/Tag.html +2 -2
  213. package/dist/docs/types/TagInfo.html +2 -2
  214. package/dist/docs/types/TagWithRelationship.html +2 -2
  215. package/dist/docs/types/TaskCleanupReason.html +2 -2
  216. package/dist/docs/types/TemplateMetadata.html +2 -2
  217. package/dist/docs/types/TemplateType.html +2 -2
  218. package/dist/docs/types/TemplateVariant.html +2 -2
  219. package/dist/docs/types/TransformAction.html +2 -2
  220. package/dist/docs/types/TransformActionContext.html +2 -2
  221. package/dist/docs/types/TransformDefinition.html +2 -2
  222. package/dist/docs/types/TransformDefinitions.html +2 -2
  223. package/dist/docs/types/Unsubscribe.html +2 -2
  224. package/dist/docs/types/UnsubscribeFn.html +1 -0
  225. package/dist/docs/types/UnsubscribeFromContextFn.html +1 -0
  226. package/dist/docs/types/UnsubscribeFromDragStartFn.html +1 -0
  227. package/dist/docs/types/UserProfile.html +2 -2
  228. package/dist/docs/types/Watcher.html +2 -2
  229. package/dist/docs/types/Whoami.html +2 -2
  230. package/dist/docs/types/WithProgressBarOptions.html +2 -2
  231. package/dist/docs/types/Workspace.html +2 -2
  232. package/dist/docs/types/WorkspaceConfig.html +1 -0
  233. package/dist/docs/types/WorkspaceFlags.html +2 -2
  234. package/dist/docs/types/WorkspaceIdentifier.html +2 -2
  235. package/dist/docs/types/WorkspaceItem.html +2 -2
  236. package/dist/docs/types/WorkspaceItemBase.html +2 -2
  237. package/dist/docs/types/WorkspaceItemIdentifier.html +2 -2
  238. package/dist/docs/types/WorkspaceItemModel.html +2 -2
  239. package/dist/docs/types/WorkspaceItemTitleProps.html +3 -2
  240. package/dist/docs/types/WorkspaceItems.html +2 -2
  241. package/dist/docs/types/WorkspacePermission.html +2 -2
  242. package/dist/docs/types/WorkspaceRecord.html +2 -2
  243. package/dist/docs/types/WorkspaceRecordInfo.html +2 -2
  244. package/dist/docs/types/WorkspaceRecordWithRelationships.html +2 -2
  245. package/dist/docs/types/WorkspaceRecords.html +2 -2
  246. package/dist/docs/types/WorkspaceRelationship.html +2 -2
  247. package/dist/docs/types/WorkspaceSettings.html +2 -2
  248. package/dist/docs/types/trigger.html +2 -2
  249. package/dist/docs/types/uuid.html +2 -2
  250. package/dist/docs/variables/OS_CONFIRM_MODAL_CANCEL.html +2 -2
  251. package/dist/docs/variables/OS_CONFIRM_MODAL_NO.html +2 -2
  252. package/dist/docs/variables/OS_CONFIRM_MODAL_YES.html +2 -2
  253. package/dist/docs/variables/SAVED_SEARCH_MESSAGE_TYPES.html +1 -0
  254. package/dist/docs/variables/SAVED_SEARCH_PREFIX.html +1 -0
  255. package/dist/platform-types.d.ts +481 -72
  256. package/lib/action.d.ts +2 -1
  257. package/lib/action.d.ts.map +1 -1
  258. package/lib/ai.d.ts +57 -0
  259. package/lib/ai.d.ts.map +1 -0
  260. package/lib/ai.js +2 -0
  261. package/lib/ai.js.map +1 -0
  262. package/lib/client.d.ts +63 -0
  263. package/lib/client.d.ts.map +1 -0
  264. package/lib/client.js +2 -0
  265. package/lib/client.js.map +1 -0
  266. package/lib/desktop.d.ts +63 -5
  267. package/lib/desktop.d.ts.map +1 -1
  268. package/lib/desktop.js.map +1 -1
  269. package/lib/extras.d.ts +15 -0
  270. package/lib/extras.d.ts.map +1 -0
  271. package/lib/extras.js +2 -0
  272. package/lib/extras.js.map +1 -0
  273. package/lib/filters.d.ts +1 -11
  274. package/lib/filters.d.ts.map +1 -1
  275. package/lib/index.d.ts +5 -0
  276. package/lib/index.d.ts.map +1 -1
  277. package/lib/index.js +5 -0
  278. package/lib/index.js.map +1 -1
  279. package/lib/jobManifestTypes.d.ts +10 -30
  280. package/lib/jobManifestTypes.d.ts.map +1 -1
  281. package/lib/model.d.ts +26 -4
  282. package/lib/model.d.ts.map +1 -1
  283. package/lib/model.js.map +1 -1
  284. package/lib/ontology.d.ts +14 -0
  285. package/lib/ontology.d.ts.map +1 -1
  286. package/lib/remoteApp.d.ts +21 -0
  287. package/lib/remoteApp.d.ts.map +1 -0
  288. package/lib/remoteApp.js +2 -0
  289. package/lib/remoteApp.js.map +1 -0
  290. package/lib/savedSearch.d.ts +132 -0
  291. package/lib/savedSearch.d.ts.map +1 -0
  292. package/lib/savedSearch.js +16 -0
  293. package/lib/savedSearch.js.map +1 -0
  294. package/lib/search.d.ts +18 -0
  295. package/lib/search.d.ts.map +1 -1
  296. package/lib/styling.d.ts +23 -10
  297. package/lib/styling.d.ts.map +1 -1
  298. package/package.json +2 -2
  299. package/dist/docs/types/PythonFileStylerDefinition.html +0 -2
  300. package/dist/docs/types/PythonFileTransformDefinition.html +0 -2
  301. package/dist/docs/types/PythonFilterDefinition.html +0 -4
  302. package/dist/docs/types/PythonInlineStylerDefinition.html +0 -2
  303. package/dist/docs/types/PythonInlineTransformDefinition.html +0 -2
  304. package/dist/docs/types/PythonType.html +0 -3
@@ -70,6 +70,20 @@ export declare type AddCommentParams = {
70
70
  */
71
71
  export declare type AddListener<T> = (callback: Callback<T>) => Promise<Unsubscribe>;
72
72
 
73
+ /**
74
+ * The interface for the AI client.
75
+ */
76
+ export declare interface AIClient {
77
+ /**
78
+ * Get the chat models.
79
+ */
80
+ getChatModels(): Promise<ChatModel[]>;
81
+ /**
82
+ * Prompt the AI.
83
+ */
84
+ prompt(prompt: string, options?: PromptOptions): Promise<string>;
85
+ }
86
+
73
87
  /**
74
88
  * @beta
75
89
  * Type representing an error API result.
@@ -222,6 +236,19 @@ export declare type Behaviour = {
222
236
  edit?: () => Promise<void>;
223
237
  };
224
238
 
239
+ declare type BigNumber = any;
240
+
241
+ /**
242
+ * @beta
243
+ * Represents a filter clause with binary operations in a query object.
244
+ * It supports operations involving a column, a binary operator, and a comparator value.
245
+ */
246
+ export declare interface BinaryObjectFilterClause {
247
+ col: string;
248
+ op: BinaryOperator;
249
+ val: Comparator;
250
+ }
251
+
225
252
  /**
226
253
  * @beta
227
254
  * Type representing a binary operator.
@@ -236,6 +263,69 @@ export declare type BinaryOperator = '==' | '!=' | '>' | '>=' | '<' | '<=' | 'in
236
263
  */
237
264
  export declare type Callback<T> = (t: T) => void;
238
265
 
266
+ export declare interface ChartDataResponseResult {
267
+ all_columns?: string[];
268
+ annotation_data: Record<string, any> | null;
269
+ cache_key: string | null;
270
+ cache_timeout: number | null;
271
+ cached_dttm: string | null;
272
+ /**
273
+ * Array of data records as dictionary
274
+ */
275
+ data: Record<any, any>[];
276
+ /**
277
+ * Name of each column, for retaining the order of the output columns.
278
+ */
279
+ colnames: string[];
280
+ /**
281
+ * Generic data types, based on the final output pandas dataframe.
282
+ */
283
+ coltypes: GenericDataType[];
284
+ error: string | null;
285
+ is_cached: boolean;
286
+ query: string;
287
+ rowcount: number;
288
+ stacktrace: string | null;
289
+ status: 'stopped' | 'failed' | 'pending' | 'running' | 'scheduled' | 'success' | 'timed_out';
290
+ from_dttm: number | null;
291
+ to_dttm: number | null;
292
+ }
293
+
294
+ export declare interface ChatMessage {
295
+ /**
296
+ * The id of the message. This is used to identify the message in the conversation.
297
+ * It is generated by the chat agent, and is used to update the message in the conversation.
298
+ * (It is repeated in each update, but this is ok because it is used to identify the message in the conversation.)
299
+ */
300
+ id: string;
301
+ /**
302
+ * The role of the message.
303
+ */
304
+ role: 'user' | 'assistant' | 'system';
305
+ /**
306
+ * The content of the message.
307
+ * For `update` and `complete` messages, this is the partial or final response.
308
+ * For `add_entities` and `remove_entities` messages, this is the json encoded list of entities.
309
+ */
310
+ content: string;
311
+ /**
312
+ * The type of the message.
313
+ */
314
+ type?: 'update' | 'complete' | 'add_entities' | 'remove_entities';
315
+ /**
316
+ * The timestamp of the message in ISO 8601 format.
317
+ */
318
+ timestamp?: string;
319
+ }
320
+
321
+ /**
322
+ * The type for the chat model.
323
+ */
324
+ export declare type ChatModel = {
325
+ model_name: string;
326
+ description: string;
327
+ };
328
+
239
329
  /**
240
330
  * Interface for items that can have a color attribute.
241
331
  * @beta
@@ -365,7 +455,7 @@ export declare type ConnectedEntity = Entity & {
365
455
  * @beta
366
456
  * Type representing the groups for a context menu.
367
457
  */
368
- export declare type ContextMenuGroup = 'add' | 'addto' | 'copy' | 'edit' | 'transform' | 'general' | 'open' | 'danger' | 'tags' | 'relations' | 'search';
458
+ export declare type ContextMenuGroup = 'add' | 'addto' | 'copy' | 'edit' | 'transform' | 'general' | 'open' | 'danger' | 'tags' | 'relations' | 'search' | 'actions' | 'file' | 'settings';
369
459
 
370
460
  /**
371
461
  * @beta
@@ -396,6 +486,7 @@ export declare type ContextMenuParams = ActionContext & {
396
486
  trigger?: trigger[];
397
487
  onMenuToggle?: (isOpen: boolean) => void;
398
488
  options?: ContextMenuOptions;
489
+ markdown?: boolean;
399
490
  };
400
491
 
401
492
  /**
@@ -447,6 +538,17 @@ export declare type CreateEntityFormProps = {
447
538
  concept?: string;
448
539
  };
449
540
 
541
+ export declare type CreateLinkChartFn = (params: CreateLinkChartParams) => Promise<WorkspaceItem | undefined>;
542
+
543
+ export declare type CreateLinkChartParams = {
544
+ path?: string;
545
+ name: string;
546
+ nodes?: Entity[];
547
+ edges?: EdgeSpec[];
548
+ draft?: boolean;
549
+ os_workspace?: string;
550
+ };
551
+
450
552
  /**
451
553
  * Properties for creating relations dialog.
452
554
  * @beta
@@ -559,6 +661,12 @@ export declare type DataContextType = {
559
661
  removeFromGraph: (graph: GraphDataSpec) => void;
560
662
  };
561
663
 
664
+ export declare type DataMask = {
665
+ extraFormData?: Record<string, any>;
666
+ filterState?: FilterState;
667
+ ownState?: Record<string, any>;
668
+ };
669
+
562
670
  /**
563
671
  * Interface for desktop actions.
564
672
  * @beta
@@ -571,7 +679,7 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
571
679
  /**
572
680
  * Opens a workspace.
573
681
  */
574
- openWorkspace: (ws: WorkspaceIdentifier, showTab?: boolean) => Promise<void>;
682
+ openWorkspace: (ws: WorkspaceIdentifier | WorkspaceIdentifier[] | string[], showTab?: boolean) => Promise<void>;
575
683
  /**
576
684
  * Gets the active workspace.
577
685
  */
@@ -623,11 +731,21 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
623
731
  /**
624
732
  * Gets a workspace by identifier.
625
733
  */
626
- getWorkspace: (ws: WorkspaceIdentifier) => Promise<Workspace | undefined>;
734
+ getWorkspace: (ws: WorkspaceIdentifier, options?: {
735
+ shouldRetry?: boolean;
736
+ }) => Promise<Workspace | undefined>;
627
737
  /**
628
738
  * Gets items in a workspace by name.
629
739
  */
630
740
  getWorkspaceItems(os_item_name: string): Promise<WorkspaceItem[]>;
741
+ /**
742
+ * Gets the OsAPIClient.
743
+ */
744
+ getOsAPIClient(): Promise<OsAPIClient>;
745
+ /**
746
+ * Gets the AI client.
747
+ */
748
+ getAIClient(): Promise<AIClient>;
631
749
  /**
632
750
  * Applies a tag to an entity.
633
751
  */
@@ -675,7 +793,11 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
675
793
  /**
676
794
  * Creates a workspace by name.
677
795
  */
678
- createWorkspace: (name: string) => Promise<WorkspaceItem>;
796
+ createWorkspace: (name: string, config?: WorkspaceConfig) => Promise<WorkspaceItem>;
797
+ /**
798
+ * Creates a private workspace for user by name.
799
+ */
800
+ createPrivateWorkspace: (name: string, config?: WorkspaceConfig) => Promise<Workspace>;
679
801
  /**
680
802
  * Connects two entities with a relationship in a workspace.
681
803
  */
@@ -700,6 +822,10 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
700
822
  * Exports an item or items with optional export options.
701
823
  */
702
824
  export: (item: WorkspaceItem | WorkspaceItem[], options?: ExportOptions) => Promise<void>;
825
+ /**
826
+ * Fetches an entity from the index, or from the ontology if not found in the index.
827
+ */
828
+ fetchEntity: (entity: EntityBase, options?: FetchEntityOptions) => Promise<Entity>;
703
829
  /**
704
830
  * Extracts entities from some text which may be json or a list of urls.
705
831
  */
@@ -728,6 +854,13 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
728
854
  * Deletes local concept records in a workspace by base concept.
729
855
  */
730
856
  delete_local_concept_records: (workspace_id: string, base_concept: string) => Promise<void>;
857
+ /**
858
+ * Searches the index using the query string
859
+ * @param query OpenSearch qeuery string.
860
+ * @param options query options
861
+ * @returns a promise resolving to the found entities.
862
+ */
863
+ search: (query: string, options?: SearchOptions) => Promise<Entity[]>;
731
864
  /**
732
865
  * Searches experience with optional search options.
733
866
  */
@@ -840,6 +973,10 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
840
973
  * Removes entities from the focus list with optional type and tab name.
841
974
  */
842
975
  removeFromFocusList: (entities: Entity[], type?: 'single' | 'group', tabName?: string) => Promise<FocusListItem[]>;
976
+ /**
977
+ * Gets the image URL for an entity.
978
+ */
979
+ getImageUrl: (entity: EntityBase) => Promise<string>;
843
980
  /**
844
981
  * Gets images for an entity.
845
982
  */
@@ -1021,6 +1158,14 @@ export declare type DesktopActionOptions = {
1021
1158
  * Whether to raise the tab to the front.
1022
1159
  */
1023
1160
  raiseOnly?: boolean;
1161
+ /**
1162
+ * Open tab in a new tabset
1163
+ */
1164
+ newTabset?: boolean;
1165
+ /**
1166
+ * Wait for the tab to open
1167
+ */
1168
+ awaitShowTab?: boolean;
1024
1169
  };
1025
1170
 
1026
1171
  /**
@@ -1125,6 +1270,13 @@ export declare type DragStartParams = {
1125
1270
  dragEndTopic: string;
1126
1271
  };
1127
1272
 
1273
+ export declare type DropZoneRequestFn = (args: any[]) => Promise<DropZoneRequestResult>;
1274
+
1275
+ export declare type DropZoneRequestResult = {
1276
+ to: any;
1277
+ data: any;
1278
+ };
1279
+
1128
1280
  /**
1129
1281
  * @beta
1130
1282
  * Type representing a connection between two entities with a relationship.
@@ -1168,7 +1320,18 @@ export declare type EmitEventTransformDefinition = {
1168
1320
  * Represents an entity with basic attributes.
1169
1321
  * @beta
1170
1322
  */
1171
- export declare type Entity = {
1323
+ export declare type Entity = EntityBase & {
1324
+ /**
1325
+ * The label of the entity.
1326
+ */
1327
+ entity_label: string;
1328
+ };
1329
+
1330
+ /**
1331
+ * Represents an entity without a label.
1332
+ * @beta
1333
+ */
1334
+ export declare type EntityBase = {
1172
1335
  /**
1173
1336
  * The ID of the entity.
1174
1337
  */
@@ -1177,10 +1340,6 @@ export declare type Entity = {
1177
1340
  * The type of the entity.
1178
1341
  */
1179
1342
  entity_type: string;
1180
- /**
1181
- * The label of the entity.
1182
- */
1183
- entity_label: string;
1184
1343
  };
1185
1344
 
1186
1345
  /**
@@ -1346,6 +1505,29 @@ export declare type ExtractEntitiesOptions = {
1346
1505
  hydrate?: boolean;
1347
1506
  };
1348
1507
 
1508
+ export declare type ExtrasApi = {
1509
+ createLinkChart: CreateLinkChartFn;
1510
+ };
1511
+
1512
+ /**
1513
+ * Options for fetching an entity.
1514
+ * @beta
1515
+ */
1516
+ export declare type FetchEntityOptions = {};
1517
+
1518
+ /**
1519
+ * @beta
1520
+ * Options for fetching data from an API.
1521
+ */
1522
+ export declare interface FetchOptions extends Omit<RequestInit, 'body'> {
1523
+ /**
1524
+ * The API endpoint to hit, starting with a slash.
1525
+ */
1526
+ endpoint: string;
1527
+ /** A BodyInit object, object or null to set request's body. */
1528
+ body?: BodyInit | object | null;
1529
+ }
1530
+
1349
1531
  /**
1350
1532
  * @beta
1351
1533
  * File containing the code. Not yet supported.
@@ -1382,11 +1564,35 @@ export declare type FileTreeOptions = {
1382
1564
  structure?: boolean;
1383
1565
  };
1384
1566
 
1567
+ export declare type Filter = {
1568
+ cascadeParentIds: string[];
1569
+ defaultDataMask: DataMask;
1570
+ id: string;
1571
+ name: string;
1572
+ scope: NativeFilterScope;
1573
+ filterType: string;
1574
+ targets: [Partial<NativeFilterTarget>];
1575
+ controlValues: {
1576
+ [key: string]: any;
1577
+ };
1578
+ sortMetric?: string | null;
1579
+ adhoc_filters?: Record<any, any>[];
1580
+ granularity_sqla?: string;
1581
+ granularity?: string;
1582
+ time_grain_sqla?: string;
1583
+ time_range?: string;
1584
+ requiredFirst?: boolean;
1585
+ tabsInScope?: string[];
1586
+ chartsInScope?: number[];
1587
+ type: 'NATIVE_FILTER';
1588
+ description: string;
1589
+ };
1590
+
1385
1591
  /**
1386
1592
  * @beta
1387
1593
  * Type representing a filter definition, which can be one of several specific filter types.
1388
1594
  */
1389
- export declare type FilterDefinition = ProvidedFilterDefinition | PythonFilterDefinition | JavascriptFilterDefinition | SemanticallyBoundFilterDefinition;
1595
+ export declare type FilterDefinition = ProvidedFilterDefinition | JavascriptFilterDefinition | SemanticallyBoundFilterDefinition;
1390
1596
 
1391
1597
  /**
1392
1598
  * @beta
@@ -1410,6 +1616,11 @@ export declare type FilterReference = string | {
1410
1616
  ['require_all']: FilterReference[];
1411
1617
  };
1412
1618
 
1619
+ export declare type FilterState = {
1620
+ value?: any;
1621
+ [key: string]: any;
1622
+ };
1623
+
1413
1624
  /**
1414
1625
  * Represents an item in a focus list.
1415
1626
  * @beta
@@ -1440,6 +1651,13 @@ export declare type FolderPasteOptions = {
1440
1651
  recursive?: boolean;
1441
1652
  };
1442
1653
 
1654
+ declare enum GenericDataType {
1655
+ NUMERIC = 0,
1656
+ STRING = 1,
1657
+ TEMPORAL = 2,
1658
+ BOOLEAN = 3
1659
+ }
1660
+
1443
1661
  /**
1444
1662
  * Options for getting attachments.
1445
1663
  * @beta
@@ -1744,6 +1962,7 @@ export declare type JobManifest = {
1744
1962
  stylers?: StylerDefinitions;
1745
1963
  /** Optional collection of services for the job. */
1746
1964
  services?: ServiceDefinitions;
1965
+ secrets?: ManifestSecrets;
1747
1966
  };
1748
1967
 
1749
1968
  /**
@@ -1754,6 +1973,14 @@ export declare type KnownCounts = {
1754
1973
  [relationship_name: string]: number;
1755
1974
  };
1756
1975
 
1976
+ export declare type ManifestSecrets = {
1977
+ [key: string]: {
1978
+ description: string;
1979
+ default?: string;
1980
+ required?: boolean;
1981
+ };
1982
+ };
1983
+
1757
1984
  /**
1758
1985
  * @beta
1759
1986
  * Type representing the properties for a modal template, extending CustomTemplateIframeProps.
@@ -1799,6 +2026,21 @@ export declare type NamedEntityGroup = {
1799
2026
  type: 'group';
1800
2027
  };
1801
2028
 
2029
+ export declare interface NativeFilterColumn {
2030
+ name: string;
2031
+ displayName?: string;
2032
+ }
2033
+
2034
+ export declare interface NativeFilterScope {
2035
+ rootPath: string[];
2036
+ excluded: number[];
2037
+ }
2038
+
2039
+ export declare interface NativeFilterTarget {
2040
+ datasetId: number;
2041
+ column: NativeFilterColumn;
2042
+ }
2043
+
1802
2044
  /**
1803
2045
  * @beta
1804
2046
  * Type representing a Nunjucks file transform definition. Not yet supported.
@@ -1862,6 +2104,13 @@ export declare interface Ontology {
1862
2104
  * @returns A promise that resolves to an array of connected entities.
1863
2105
  */
1864
2106
  getConnectedEntities: <T extends Entity>(entity: Entity, relationship: Relationship | string, forceRefresh?: boolean) => Promise<T[]>;
2107
+ /**
2108
+ * Gets connections by type for a given entity and concept.
2109
+ * @param entity - The entity for which to get connections.
2110
+ * @param concept - The concept for which to get connections.
2111
+ * @returns A promise that resolves to an array of connections.
2112
+ */
2113
+ getConnectionsByType: <T extends Entity>(entity: Entity, concept: string, handler?: (connections: EConnection[]) => Promise<void>) => Promise<EConnection[]>;
1865
2114
  /**
1866
2115
  * Gets the concept names.
1867
2116
  * @returns A promise that resolves to an array concept names.
@@ -1911,6 +2160,12 @@ export declare interface Ontology {
1911
2160
  * @returns A promise that resolves to an array of relationships.
1912
2161
  */
1913
2162
  getRelationshipsForEntity: (entity: Entity) => Promise<Relationship[]>;
2163
+ /**
2164
+ * Checks whether a concept exists.
2165
+ * @param conceptName - The name of the concept.
2166
+ * @returns A promise that resolves to a boolean indicating whether the concept exists.
2167
+ */
2168
+ isConcept: (conceptName: string) => Promise<boolean>;
1914
2169
  /**
1915
2170
  * Sends a query.
1916
2171
  * @param query - The query string.
@@ -1993,6 +2248,37 @@ export declare type OS_CONFIRM_MODAL_RESPONSE = typeof OS_CONFIRM_MODAL_YES | ty
1993
2248
  */
1994
2249
  export declare const OS_CONFIRM_MODAL_YES = true;
1995
2250
 
2251
+ /**
2252
+ * @beta
2253
+ * Interface representing a client for interacting with the OctoStar API.
2254
+ */
2255
+ export declare interface OsAPIClient {
2256
+ /**
2257
+ * Fetch data from the API.
2258
+ * @param options - Configuration options for the fetch request.
2259
+ * @returns A promise that resolves with the fetched data of type T.
2260
+ */
2261
+ fetchData<T>(options: FetchOptions): Promise<T>;
2262
+ /**
2263
+ * Stream data from the API.
2264
+ * @param options - Configuration options for the stream request.
2265
+ * @returns A promise that resolves when the streaming is complete.
2266
+ */
2267
+ streamData(options: FetchOptions): Promise<ReadableStream<Uint8Array>>;
2268
+ /**
2269
+ * Streams text data from the API.
2270
+ * @param options - Configuration options for the stream request.
2271
+ * @returns A promise that resolves when the streaming is complete.
2272
+ */
2273
+ streamText(options: StreamTextOptions): Promise<void>;
2274
+ /**
2275
+ * Streams JSON line data from the API.
2276
+ * @param options - Configuration options for the stream request.
2277
+ * @returns A promise that resolves when the streaming is complete.
2278
+ */
2279
+ streamJson<T>(options: StreamJsonOptions<T>): Promise<void>;
2280
+ }
2281
+
1996
2282
  /**
1997
2283
  * Represents audit fields for OS (Operational Support) records.
1998
2284
  * @beta
@@ -2177,6 +2463,10 @@ export declare type PasteContextOptions = {
2177
2463
  * Query for the context.
2178
2464
  */
2179
2465
  query?: ConceptFilter;
2466
+ /**
2467
+ * Whether to return a SavedSet entity when a folder is dropped.
2468
+ */
2469
+ preferSavedSet?: boolean;
2180
2470
  };
2181
2471
 
2182
2472
  /**
@@ -2267,6 +2557,17 @@ export declare enum ProcessingStatusCode {
2267
2557
  UNKNOWN = "UNKNOWN"
2268
2558
  }
2269
2559
 
2560
+ /**
2561
+ * The options for the prompt.
2562
+ */
2563
+ export declare type PromptOptions = {
2564
+ model?: string;
2565
+ apiKey?: string;
2566
+ stream?: boolean;
2567
+ enableRag?: boolean;
2568
+ cohereKey?: string;
2569
+ };
2570
+
2270
2571
  /**
2271
2572
  * Represents a property of a concept.
2272
2573
  * @beta
@@ -2304,50 +2605,6 @@ export declare type ProvidedTransformDefinition = {
2304
2605
  type: 'provided';
2305
2606
  };
2306
2607
 
2307
- /**
2308
- * @beta
2309
- * Type representing a Python file styler definition.
2310
- */
2311
- export declare type PythonFileStylerDefinition = PythonType & FileCode;
2312
-
2313
- /**
2314
- * @beta
2315
- * Type representing a Python file transform definition. Not yet supported.
2316
- */
2317
- export declare type PythonFileTransformDefinition = PythonType & FileCode;
2318
-
2319
- /**
2320
- * @beta
2321
- * Type representing a Python filter definition.
2322
- */
2323
- export declare type PythonFilterDefinition = {
2324
- /** The type of the filter, always 'python' for this type. */
2325
- type: 'python';
2326
- /** The Python code defining the filter. */
2327
- code: string;
2328
- };
2329
-
2330
- /**
2331
- * @beta
2332
- * Type representing an inline Python styler definition.
2333
- */
2334
- export declare type PythonInlineStylerDefinition = PythonType & InlineCode;
2335
-
2336
- /**
2337
- * @beta
2338
- * Type representing an inline Python transform definition.
2339
- */
2340
- export declare type PythonInlineTransformDefinition = PythonType & InlineCode;
2341
-
2342
- /**
2343
- * @beta
2344
- * Type representing a Python file transform definition.
2345
- */
2346
- export declare type PythonType = {
2347
- /** The type of the transform or styler, always 'python' for this type. */
2348
- type: 'python';
2349
- };
2350
-
2351
2608
  /**
2352
2609
  * @beta
2353
2610
  * Type representing a query, which can be a string or a function returning a promise.
@@ -2391,13 +2648,10 @@ export declare type QueryExecutor = {
2391
2648
 
2392
2649
  /**
2393
2650
  * @beta
2394
- * Interface for a filter clause in a query object.
2651
+ * A union type that represents all possible filter clauses in a query object.
2652
+ * It can be either a binary filter clause or a unary filter clause.
2395
2653
  */
2396
- export declare interface QueryObjectFilterClause {
2397
- col: string;
2398
- op: BinaryOperator;
2399
- val: Comparator;
2400
- }
2654
+ export declare type QueryObjectFilterClause = BinaryObjectFilterClause | UnaryObjectFilterClause;
2401
2655
 
2402
2656
  /**
2403
2657
  * @beta
@@ -2411,6 +2665,11 @@ export declare type QueryResponse = any[];
2411
2665
  */
2412
2666
  export declare type QueryResult = ApiResult<any[]>;
2413
2667
 
2668
+ declare type QueryResult_2 = {
2669
+ language: string;
2670
+ query: string;
2671
+ };
2672
+
2414
2673
  /**
2415
2674
  * @beta
2416
2675
  * Type representing a successful query result.
@@ -2452,6 +2711,17 @@ export declare type ReasonedBoolean = {
2452
2711
  reason: string;
2453
2712
  };
2454
2713
 
2714
+ export declare interface RecordData extends ChartDataResponseResult {
2715
+ data: Record<string, any>[];
2716
+ }
2717
+
2718
+ export declare type RecordFetchOptions = {
2719
+ all_columns: string[];
2720
+ order_by_cols: string[];
2721
+ row_limit: number;
2722
+ server_page_length: number;
2723
+ };
2724
+
2455
2725
  /**
2456
2726
  * Interface for providing records.
2457
2727
  * @beta
@@ -2587,6 +2857,15 @@ export declare type RelationshipCountResult = {
2587
2857
  expired?: boolean;
2588
2858
  };
2589
2859
 
2860
+ export declare type RemoteAppApi = {
2861
+ subscribeToContext: SubscribeToContextFn;
2862
+ unsubscribeFromContext: UnsubscribeFromContextFn;
2863
+ subscribeToDragStart: SubscribeDragStartFn;
2864
+ unsubscribeFromDragStart: UnsubscribeFromDragStartFn;
2865
+ dropZoneRequest: DropZoneRequestFn;
2866
+ setTransformResult: SetTransformResultFn;
2867
+ };
2868
+
2590
2869
  /**
2591
2870
  * Properties for saving as modal.
2592
2871
  * @beta
@@ -2602,6 +2881,49 @@ export declare type SaveAsModalProps = {
2602
2881
  app?: WorkspaceItem;
2603
2882
  };
2604
2883
 
2884
+ export declare const SAVED_SEARCH_MESSAGE_TYPES: Readonly<{
2885
+ getRecordsCount: "octostar:savedSearch:getRecordsCount";
2886
+ getRecordsCountQuery: "octostar:savedSearch:getRecordsCountQuery";
2887
+ getRecords: "octostar:savedSearch:getRecords";
2888
+ getRecordsQuery: "octostar:savedSearch:getRecordsQuery";
2889
+ getSavedSearchPasteContext: "octostar:savedSearch:getSavedSearchPasteContext";
2890
+ }>;
2891
+
2892
+ export declare const SAVED_SEARCH_PREFIX = "octostar:savedSearch:";
2893
+
2894
+ export declare interface SavedDatasource {
2895
+ uid: string;
2896
+ id: number;
2897
+ name?: string;
2898
+ table_name: string;
2899
+ type: string;
2900
+ main_dttm_col: string;
2901
+ }
2902
+
2903
+ export declare interface SavedSearchAPIInterface {
2904
+ getRecordsCount(savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>): Promise<BigNumber | number | null>;
2905
+ getRecordsCountQuery(savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>): Promise<number | null>;
2906
+ getRecords(savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>, options?: Partial<RecordFetchOptions>): Promise<RecordData | null>;
2907
+ getRecordsQuery(savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>, options?: RecordFetchOptions): Promise<QueryResult_2 | null>;
2908
+ getSavedSearchPasteContext(savedSearchIdn: WorkspaceItemIdentifier<SavedSearchContent>): Promise<EntityPasteContext>;
2909
+ }
2910
+
2911
+ export declare interface SavedSearchContent {
2912
+ concept: string;
2913
+ dataset: true;
2914
+ filters: Filter[];
2915
+ crossFilters: DataMask[];
2916
+ datasourcesInScope: {
2917
+ [uid: string]: SavedDatasource;
2918
+ };
2919
+ initialCount?: number;
2920
+ }
2921
+
2922
+ export declare interface SavedSetContent {
2923
+ lastFiredQuery: string;
2924
+ uiState: Record<string, any>;
2925
+ }
2926
+
2605
2927
  /**
2606
2928
  * @beta
2607
2929
  * Type representing a saved template, extending CustomTemplate.
@@ -2654,6 +2976,17 @@ export declare type SearchFilter = {
2654
2976
  imageUrl?: string;
2655
2977
  };
2656
2978
 
2979
+ /**
2980
+ * @beta
2981
+ * Interface representing the options given to search
2982
+ */
2983
+ export declare interface SearchOptions {
2984
+ /**
2985
+ * The maximum number of entities returned.
2986
+ */
2987
+ limit?: number;
2988
+ }
2989
+
2657
2990
  /**
2658
2991
  * @beta
2659
2992
  * Interface representing the properties for the Search component.
@@ -2675,6 +3008,14 @@ export declare interface SearchProps {
2675
3008
  * the default image to use for the search.
2676
3009
  */
2677
3010
  image?: WorkspaceItem;
3011
+ /**
3012
+ * disable ask AI
3013
+ */
3014
+ disableAskAI?: boolean;
3015
+ /**
3016
+ * disable save search
3017
+ */
3018
+ disableSaveSearch?: boolean;
2678
3019
  }
2679
3020
 
2680
3021
  /**
@@ -2833,6 +3174,8 @@ export declare type ServiceDefinitions = {
2833
3174
  */
2834
3175
  export declare type ServiceRole = 'context_menu' | 'record_view' | 'set_view';
2835
3176
 
3177
+ export declare type SetTransformResultFn = (args: any[]) => Promise<void>;
3178
+
2836
3179
  /**
2837
3180
  * @beta
2838
3181
  * Type representing the details of an ontology to be shown.
@@ -2887,25 +3230,60 @@ export declare enum SortOrder {
2887
3230
  HIDE = -1
2888
3231
  }
2889
3232
 
3233
+ /**
3234
+ * @beta
3235
+ * Options for streaming JSON line data from an API.
3236
+ */
3237
+ export declare interface StreamJsonOptions<T> extends FetchOptions {
3238
+ /**
3239
+ * The asynchronous function to process each JSON object.
3240
+ */
3241
+ jsonHandler: (value: T) => Promise<void>;
3242
+ }
3243
+
3244
+ /**
3245
+ * @beta
3246
+ * Options for streaming text data from an API.
3247
+ */
3248
+ export declare interface StreamTextOptions extends FetchOptions {
3249
+ /**
3250
+ * The asynchronous function to process each line of text.
3251
+ */
3252
+ handler: (line: string) => Promise<void>;
3253
+ }
3254
+
2890
3255
  /**
2891
3256
  * @beta
2892
3257
  * Type representing a styler with methods for getting G6 node and edge styles.
3258
+ * See ColorByType.ts for an example
2893
3259
  */
2894
3260
  export declare type Styler = {
2895
3261
  /**
2896
- * Gets the style for a G6 node.
2897
- * @param e - The entity for which to get the node style.
2898
- * @param curr - The current style.
2899
- * @returns A promise that resolves to the new style.
3262
+ * Use this function to modify style of a node from outside the graph.
3263
+ * You can overwrite the style, but DO NOT merge currentStyle or originStyle when returning new styling (or rather styling patch).
3264
+ * This can lead do recursive clone error later on.
3265
+ * Merging with actual style will be handled automatically!
3266
+ * Use them just as a reference:
3267
+ * - @param originStyle for eg original node radius (if its a circural node), so you want to eg multiply it by amount of connections.
3268
+ * - @param currentStyle for eg current node radius (if its a circural node), so you want to eg apply a holor like a heatmap by amount of connections.
3269
+ * @param entity - The entity for which to get the node style.
3270
+ * @param originStyle - The original style (the one passed to node during it's initialization). See '@antv/graphin' -> NodeStyle
3271
+ * @param currentStyle - The current style. See '@antv/graphin' -> NodeStyle
3272
+ * @returns A promise that resolves to the style patch. See '@antv/graphin' -> NodeStyle
2900
3273
  */
2901
- getG6NodeStyle?: (e: Entity, curr: TODO) => Promise<TODO>;
3274
+ getG6NodeStyle?: (entity: Entity, originStyle: TODO, currentStyle: TODO) => Promise<TODO>;
2902
3275
  /**
2903
- * Gets the style for a G6 edge.
2904
- * @param e - The edge specification for which to get the edge style.
2905
- * @param curr - The current style.
2906
- * @returns A promise that resolves to the new style.
3276
+ * Use this function to modify style of a edge from outside the graph.
3277
+ * You can overwrite the style, but DO NOT merge currentStyle or originStyle when returning new styling (or rather styling patch).
3278
+ * This can lead do recursive clone error later on.
3279
+ * Merging with actual style will be handled automatically!
3280
+ * Use them just as a reference, eg edge width to multiply.
3281
+ * @param edge - The edge specification for which to get the edge style.
3282
+ * @param originStyle - The original style (the one passed to edge during it's initialization). See '@antv/graphin' -> EdgeStyle
3283
+ * @param currentStyle - The current style. See '@antv/graphin' -> EdgeStyle
3284
+ * @returns A promise that resolves to the style patch. See '@antv/graphin' -> EdgeStyle
2907
3285
  */
2908
- getG6EdgeStyle?: (e: EdgeSpec, curr: TODO) => Promise<TODO>;
3286
+ getG6EdgeStyle?: (edge: EdgeSpec, originStyle: TODO, currentStyle: TODO) => Promise<TODO>;
2909
3287
  };
2910
3288
 
2911
3289
  /**
@@ -2956,7 +3334,7 @@ export declare interface StylerContext {
2956
3334
  * @beta
2957
3335
  * Type representing a styler definition, which can be one of several specific types.
2958
3336
  */
2959
- export declare type StylerDefinition = PythonFileStylerDefinition | PythonInlineStylerDefinition | JavascriptFileStylerDefinition | JavascriptInlineStylerDefinition;
3337
+ export declare type StylerDefinition = JavascriptFileStylerDefinition | JavascriptInlineStylerDefinition;
2960
3338
 
2961
3339
  /**
2962
3340
  * @beta
@@ -2985,6 +3363,10 @@ export declare type StylerOption = {
2985
3363
  */
2986
3364
  export declare type StylerProducer = (context: StylerContext) => Promise<Styler>;
2987
3365
 
3366
+ export declare type SubscribeDragStartFn = (id: string, callback: Callback<unknown>) => void;
3367
+
3368
+ export declare type SubscribeToContextFn = (id: string, callback: Callback<unknown>) => void;
3369
+
2988
3370
  /**
2989
3371
  * Represents a tag with a name and value.
2990
3372
  * @beta
@@ -3132,7 +3514,7 @@ export declare type TransformActionContext = DesktopActionContext & {
3132
3514
  * @beta
3133
3515
  * Type representing a transform definition, which can be one of several specific types.
3134
3516
  */
3135
- export declare type TransformDefinition = ProvidedTransformDefinition | HttpTransformDefinition | IframeTransformDefinition | PythonFileTransformDefinition | PythonInlineTransformDefinition | JavascriptFileTransformDefinition | JavascriptInlineTransformDefinition | NunjucksFileTransformDefinition | NunjucksInlineTransformDefinition | EmitEventTransformDefinition;
3517
+ export declare type TransformDefinition = ProvidedTransformDefinition | HttpTransformDefinition | IframeTransformDefinition | JavascriptFileTransformDefinition | JavascriptInlineTransformDefinition | NunjucksFileTransformDefinition | NunjucksInlineTransformDefinition | EmitEventTransformDefinition;
3136
3518
 
3137
3519
  /**
3138
3520
  * @beta
@@ -3148,6 +3530,16 @@ export declare type TransformDefinitions = {
3148
3530
  */
3149
3531
  export declare type trigger = 'hover' | 'contextMenu' | 'click';
3150
3532
 
3533
+ /**
3534
+ * @beta
3535
+ * Represents a filter clause with unary operations in a query object.
3536
+ * It supports operations for checking null or not-null conditions.
3537
+ */
3538
+ export declare interface UnaryObjectFilterClause {
3539
+ col: string;
3540
+ op: 'IS NULL' | 'IS NOT NULL';
3541
+ }
3542
+
3151
3543
  /**
3152
3544
  * @beta
3153
3545
  * Type representing an unsubscribe function.
@@ -3155,6 +3547,12 @@ export declare type trigger = 'hover' | 'contextMenu' | 'click';
3155
3547
  */
3156
3548
  export declare type Unsubscribe = () => Promise<void>;
3157
3549
 
3550
+ export declare type UnsubscribeFn = (id: string) => void;
3551
+
3552
+ export declare type UnsubscribeFromContextFn = UnsubscribeFn;
3553
+
3554
+ export declare type UnsubscribeFromDragStartFn = UnsubscribeFn;
3555
+
3158
3556
  /**
3159
3557
  * @beta
3160
3558
  * Type representing a user profile.
@@ -3324,6 +3722,13 @@ export declare interface WorkspaceChangeEmitter {
3324
3722
  onOpenWorkspacesChanged: AddListener<Workspace[]>;
3325
3723
  }
3326
3724
 
3725
+ export declare type WorkspaceConfig = Partial<{
3726
+ description: string;
3727
+ os_icon: string;
3728
+ color: string;
3729
+ id?: string;
3730
+ }>;
3731
+
3327
3732
  /**
3328
3733
  *
3329
3734
  * @beta
@@ -3523,6 +3928,10 @@ export declare type WorkspaceItemTitleProps = DesktopActionContext & {
3523
3928
  * Selected items in left sidebar
3524
3929
  */
3525
3930
  selectedItems: WorkspaceItem[];
3931
+ /**
3932
+ * If the component it is being used inside a Markdown component
3933
+ */
3934
+ markdown?: boolean;
3526
3935
  };
3527
3936
 
3528
3937
  /**