@octostar/platform-types 0.0.5-alpha.0 → 0.1.1

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 (205) hide show
  1. package/dist/docs/.nojekyll +1 -0
  2. package/dist/docs/assets/highlight.css +22 -0
  3. package/dist/docs/assets/icons.js +18 -0
  4. package/dist/docs/assets/icons.svg +1 -0
  5. package/dist/docs/assets/main.js +60 -0
  6. package/dist/docs/assets/navigation.js +1 -0
  7. package/dist/docs/assets/search.js +1 -0
  8. package/dist/docs/assets/style.css +1448 -0
  9. package/dist/docs/enums/SortOrder.html +5 -0
  10. package/dist/docs/enums/WorkspacePermissionValue.html +6 -0
  11. package/dist/docs/hierarchy.html +1 -0
  12. package/dist/docs/index.html +14 -0
  13. package/dist/docs/interfaces/ActionContext.html +12 -0
  14. package/dist/docs/interfaces/Colorful.html +4 -0
  15. package/dist/docs/interfaces/Concept.html +22 -0
  16. package/dist/docs/interfaces/Desktop.html +165 -0
  17. package/dist/docs/interfaces/DesktopActionContext.html +17 -0
  18. package/dist/docs/interfaces/DesktopSettings.html +8 -0
  19. package/dist/docs/interfaces/GetAttachmentOptions.html +8 -0
  20. package/dist/docs/interfaces/IDataTransfer.html +28 -0
  21. package/dist/docs/interfaces/Inheritance.html +8 -0
  22. package/dist/docs/interfaces/Ontology.html +84 -0
  23. package/dist/docs/interfaces/Property.html +8 -0
  24. package/dist/docs/interfaces/RecordProvider.html +16 -0
  25. package/dist/docs/interfaces/Relationship.html +38 -0
  26. package/dist/docs/interfaces/SearchProps.html +6 -0
  27. package/dist/docs/interfaces/SearchXperienceModalProps.html +18 -0
  28. package/dist/docs/interfaces/SearchXperienceProps.html +12 -0
  29. package/dist/docs/interfaces/StylerContext.html +21 -0
  30. package/dist/docs/interfaces/TagAttributes.html +13 -0
  31. package/dist/docs/interfaces/WorkspaceChangeEmitter.html +16 -0
  32. package/dist/docs/interfaces/WorkspaceItemConfig.html +10 -0
  33. package/dist/docs/interfaces/WorkspaceRecordIdentifier.html +8 -0
  34. package/dist/docs/modules.html +193 -0
  35. package/dist/docs/types/ActionHandler.html +2 -0
  36. package/dist/docs/types/AddCommentParams.html +6 -0
  37. package/dist/docs/types/AddListener.html +5 -0
  38. package/dist/docs/types/ApiErrorResult.html +5 -0
  39. package/dist/docs/types/ApiResult.html +3 -0
  40. package/dist/docs/types/ApiSuccessResult.html +5 -0
  41. package/dist/docs/types/App.html +5 -0
  42. package/dist/docs/types/AppRegistry.html +17 -0
  43. package/dist/docs/types/AppServiceCallOptions.html +2 -0
  44. package/dist/docs/types/AppServiceCallProps.html +5 -0
  45. package/dist/docs/types/AsyncFilter.html +2 -0
  46. package/dist/docs/types/AttachmentResponseType.html +2 -0
  47. package/dist/docs/types/AttachmentType.html +2 -0
  48. package/dist/docs/types/Behaviour.html +17 -0
  49. package/dist/docs/types/Callback.html +4 -0
  50. package/dist/docs/types/CommentWorkspaceItem.html +5 -0
  51. package/dist/docs/types/ConceptFilter.html +4 -0
  52. package/dist/docs/types/ConceptMap.html +2 -0
  53. package/dist/docs/types/ConceptWithParents.html +2 -0
  54. package/dist/docs/types/ConnectedEntity.html +3 -0
  55. package/dist/docs/types/ContextMenuGroup.html +2 -0
  56. package/dist/docs/types/ContextMenuLabels.html +2 -0
  57. package/dist/docs/types/ContextMenuOptions.html +2 -0
  58. package/dist/docs/types/ContextMenuParams.html +2 -0
  59. package/dist/docs/types/ContextMenuRequest.html +2 -0
  60. package/dist/docs/types/CopyOptions.html +3 -0
  61. package/dist/docs/types/CreateEntityFormProps.html +5 -0
  62. package/dist/docs/types/CreateRelationsDialogProps.html +8 -0
  63. package/dist/docs/types/CustomEventListener.html +4 -0
  64. package/dist/docs/types/CustomTemplate.html +3 -0
  65. package/dist/docs/types/CustomTemplateIframeProps.html +11 -0
  66. package/dist/docs/types/DesktopAction.html +2 -0
  67. package/dist/docs/types/DesktopActionFilter.html +2 -0
  68. package/dist/docs/types/DesktopActionMenuItem.html +13 -0
  69. package/dist/docs/types/DesktopActionMenuItemGroup.html +2 -0
  70. package/dist/docs/types/DesktopActionOptions.html +11 -0
  71. package/dist/docs/types/DesktopOpenParams.html +4 -0
  72. package/dist/docs/types/DesktopStylerContext.html +4 -0
  73. package/dist/docs/types/DraftWorkspaceItem.html +3 -0
  74. package/dist/docs/types/DragEndParams.html +6 -0
  75. package/dist/docs/types/DragStartParams.html +5 -0
  76. package/dist/docs/types/EConnection.html +5 -0
  77. package/dist/docs/types/EdgeSpec.html +5 -0
  78. package/dist/docs/types/EmitEventTransformDefinition.html +5 -0
  79. package/dist/docs/types/Entity.html +5 -0
  80. package/dist/docs/types/EntityEdge.html +5 -0
  81. package/dist/docs/types/EntityOTM.html +4 -0
  82. package/dist/docs/types/EntityPasteContext.html +4 -0
  83. package/dist/docs/types/EventContextType.html +6 -0
  84. package/dist/docs/types/EventEmitterType.html +14 -0
  85. package/dist/docs/types/EventName.html +2 -0
  86. package/dist/docs/types/EventProducer.html +5 -0
  87. package/dist/docs/types/EventPublisher.html +5 -0
  88. package/dist/docs/types/EventSubscriber.html +6 -0
  89. package/dist/docs/types/EventUnsubscriber.html +5 -0
  90. package/dist/docs/types/ExportOptions.html +3 -0
  91. package/dist/docs/types/ExtractEntitiesOptions.html +1 -0
  92. package/dist/docs/types/FileCode.html +3 -0
  93. package/dist/docs/types/FileTreeOptions.html +7 -0
  94. package/dist/docs/types/FilterDefinition.html +2 -0
  95. package/dist/docs/types/FilterDefinitions.html +2 -0
  96. package/dist/docs/types/FilterName.html +2 -0
  97. package/dist/docs/types/FilterReference.html +2 -0
  98. package/dist/docs/types/FocusListItem.html +2 -0
  99. package/dist/docs/types/FolderPasteOptions.html +5 -0
  100. package/dist/docs/types/GraphSpec.html +5 -0
  101. package/dist/docs/types/HttpTransformDefinition.html +7 -0
  102. package/dist/docs/types/Icon.html +2 -0
  103. package/dist/docs/types/IconProps.html +8 -0
  104. package/dist/docs/types/IframeTransformDefinition.html +7 -0
  105. package/dist/docs/types/ImageInfo.html +5 -0
  106. package/dist/docs/types/ImportZipOptions.html +6 -0
  107. package/dist/docs/types/InlineCode.html +3 -0
  108. package/dist/docs/types/JavascriptFileStylerDefinition.html +2 -0
  109. package/dist/docs/types/JavascriptFileTransformDefinition.html +2 -0
  110. package/dist/docs/types/JavascriptFilterDefinition.html +4 -0
  111. package/dist/docs/types/JavascriptInlineStylerDefinition.html +2 -0
  112. package/dist/docs/types/JavascriptInlineTransformDefinition.html +2 -0
  113. package/dist/docs/types/JavascriptType.html +3 -0
  114. package/dist/docs/types/JobManifest.html +17 -0
  115. package/dist/docs/types/KnownCounts.html +2 -0
  116. package/dist/docs/types/ModalTemplateProps.html +9 -0
  117. package/dist/docs/types/NamedEntityGroup.html +6 -0
  118. package/dist/docs/types/NunjucksFileTransformDefinition.html +2 -0
  119. package/dist/docs/types/NunjucksInlineTransformDefinition.html +3 -0
  120. package/dist/docs/types/OS_CONFIRM_MODAL_RESPONSE.html +2 -0
  121. package/dist/docs/types/OntologyTags.html +6 -0
  122. package/dist/docs/types/OsAuditFields.html +10 -0
  123. package/dist/docs/types/OsConfirmProps.html +9 -0
  124. package/dist/docs/types/OsNotification.html +8 -0
  125. package/dist/docs/types/OsProgress.html +6 -0
  126. package/dist/docs/types/OsTag.html +2 -0
  127. package/dist/docs/types/OsWorkspaceEntity.html +2 -0
  128. package/dist/docs/types/OsWorkspacePickerProps.html +2 -0
  129. package/dist/docs/types/PasteContextOptions.html +7 -0
  130. package/dist/docs/types/Permission.html +5 -0
  131. package/dist/docs/types/Point.html +4 -0
  132. package/dist/docs/types/ProvidedFilterDefinition.html +3 -0
  133. package/dist/docs/types/ProvidedTransformDefinition.html +3 -0
  134. package/dist/docs/types/PythonFileStylerDefinition.html +2 -0
  135. package/dist/docs/types/PythonFileTransformDefinition.html +2 -0
  136. package/dist/docs/types/PythonFilterDefinition.html +4 -0
  137. package/dist/docs/types/PythonInlineStylerDefinition.html +2 -0
  138. package/dist/docs/types/PythonInlineTransformDefinition.html +2 -0
  139. package/dist/docs/types/PythonType.html +3 -0
  140. package/dist/docs/types/Query.html +2 -0
  141. package/dist/docs/types/QueryBatchResult.html +4 -0
  142. package/dist/docs/types/QueryErrorResult.html +4 -0
  143. package/dist/docs/types/QueryExecutor.html +6 -0
  144. package/dist/docs/types/QueryResponse.html +2 -0
  145. package/dist/docs/types/QueryResult.html +2 -0
  146. package/dist/docs/types/QuerySuccessResult.html +5 -0
  147. package/dist/docs/types/ReasonedBoolean.html +2 -0
  148. package/dist/docs/types/RelationshipCountResult.html +4 -0
  149. package/dist/docs/types/SaveAsModalProps.html +4 -0
  150. package/dist/docs/types/SaveFileOptions.html +3 -0
  151. package/dist/docs/types/SaveOptions.html +5 -0
  152. package/dist/docs/types/SavedTemplate.html +4 -0
  153. package/dist/docs/types/SemanticBindingType.html +1 -0
  154. package/dist/docs/types/SemanticBindings.html +1 -0
  155. package/dist/docs/types/SemanticallyBoundFilterDefinition.html +4 -0
  156. package/dist/docs/types/SendQueryOptions.html +4 -0
  157. package/dist/docs/types/ServiceDefinition.html +14 -0
  158. package/dist/docs/types/ServiceDefinitions.html +2 -0
  159. package/dist/docs/types/ServiceRole.html +2 -0
  160. package/dist/docs/types/ShowOntology.html +11 -0
  161. package/dist/docs/types/ShowTabProps.html +5 -0
  162. package/dist/docs/types/Styler.html +10 -0
  163. package/dist/docs/types/StylerConfig.html +6 -0
  164. package/dist/docs/types/StylerDefinition.html +2 -0
  165. package/dist/docs/types/StylerDefinitions.html +2 -0
  166. package/dist/docs/types/StylerOption.html +4 -0
  167. package/dist/docs/types/StylerProducer.html +4 -0
  168. package/dist/docs/types/Tag.html +4 -0
  169. package/dist/docs/types/TagInfo.html +7 -0
  170. package/dist/docs/types/TagWithRelationship.html +4 -0
  171. package/dist/docs/types/TaskCleanupReason.html +2 -0
  172. package/dist/docs/types/TemplateMetadata.html +13 -0
  173. package/dist/docs/types/TemplateType.html +2 -0
  174. package/dist/docs/types/TemplateVariant.html +2 -0
  175. package/dist/docs/types/TransformAction.html +4 -0
  176. package/dist/docs/types/TransformActionContext.html +6 -0
  177. package/dist/docs/types/TransformDefinition.html +2 -0
  178. package/dist/docs/types/TransformDefinitions.html +2 -0
  179. package/dist/docs/types/Unsubscribe.html +3 -0
  180. package/dist/docs/types/UserProfile.html +6 -0
  181. package/dist/docs/types/Watcher.html +12 -0
  182. package/dist/docs/types/Whoami.html +7 -0
  183. package/dist/docs/types/WithProgressBarOptions.html +6 -0
  184. package/dist/docs/types/Workspace.html +8 -0
  185. package/dist/docs/types/WorkspaceIdentifier.html +3 -0
  186. package/dist/docs/types/WorkspaceItem.html +10 -0
  187. package/dist/docs/types/WorkspaceItemBase.html +4 -0
  188. package/dist/docs/types/WorkspaceItemIdentifier.html +3 -0
  189. package/dist/docs/types/WorkspaceItemModel.html +17 -0
  190. package/dist/docs/types/WorkspaceItemTitleProps.html +5 -0
  191. package/dist/docs/types/WorkspaceItems.html +2 -0
  192. package/dist/docs/types/WorkspacePermission.html +4 -0
  193. package/dist/docs/types/WorkspaceRecord.html +2 -0
  194. package/dist/docs/types/WorkspaceRecordInfo.html +6 -0
  195. package/dist/docs/types/WorkspaceRecordWithRelationships.html +5 -0
  196. package/dist/docs/types/WorkspaceRecords.html +2 -0
  197. package/dist/docs/types/WorkspaceRelationship.html +7 -0
  198. package/dist/docs/types/WorkspaceSettings.html +4 -0
  199. package/dist/docs/types/trigger.html +2 -0
  200. package/dist/docs/types/uuid.html +2 -0
  201. package/dist/docs/variables/OS_CONFIRM_MODAL_CANCEL.html +1 -0
  202. package/dist/docs/variables/OS_CONFIRM_MODAL_NO.html +1 -0
  203. package/dist/docs/variables/OS_CONFIRM_MODAL_YES.html +1 -0
  204. package/dist/platform-types.d.ts +2251 -92
  205. package/package.json +9 -6
@@ -10,6 +10,10 @@ declare class Action {
10
10
  constructor(type: string, data: Record<string, any>);
11
11
  }
12
12
 
13
+ /**
14
+ * @beta
15
+ * Interface representing the context for an action.
16
+ */
13
17
  export declare interface ActionContext {
14
18
  concept?: string;
15
19
  graph?: GraphSpec & any;
@@ -18,23 +22,54 @@ export declare interface ActionContext {
18
22
  workspace?: Workspace;
19
23
  dataTransfer?: IDataTransfer;
20
24
  eventTopicPrefix?: string;
25
+ /**
26
+ * Callback function to be executed with the result of the action.
27
+ * @param result - The result object containing records and relationships.
28
+ */
21
29
  then?: (result?: {
22
30
  records?: Entity[];
23
31
  relationships?: EdgeSpec[];
24
32
  }) => void;
25
33
  }
26
34
 
35
+ /**
36
+ * @beta
37
+ * Interface for handling actions with optional close behavior.
38
+ */
27
39
  export declare type ActionHandler = {
28
40
  onClose?: AsyncFilter;
29
41
  };
30
42
 
43
+ /**
44
+ * Parameters for adding a comment.
45
+ * @beta
46
+ */
31
47
  export declare type AddCommentParams = {
32
- os_workspace: string;
48
+ /**
49
+ * Parent UID for the comment.
50
+ */
33
51
  os_parent_uid?: string;
52
+ /**
53
+ * Contents of the comment.
54
+ */
34
55
  contents: string;
56
+ /**
57
+ * Slug for the comment.
58
+ */
35
59
  slug?: string;
60
+ /**
61
+ * Workspace for the comment.
62
+ */
63
+ os_workspace?: string;
36
64
  };
37
65
 
66
+ /**
67
+ * @beta
68
+ * Type representing a function to add a listener.
69
+ * @template T - The type of the parameter for the callback function.
70
+ * @param callback - The callback function to be invoked.
71
+ * @returns A promise that resolves to an unsubscribe function.
72
+ */
38
73
  export declare type AddListener<T> = (callback: Callback<T>) => Promise<Unsubscribe>;
39
74
 
40
75
  declare interface AdhocColumn {
@@ -48,47 +83,110 @@ declare interface AdhocColumn {
48
83
  datasourceWarning?: boolean;
49
84
  }
50
85
 
86
+ /**
87
+ * @beta
88
+ * Type representing an error API result.
89
+ */
51
90
  export declare type ApiErrorResult = {
91
+ /** The status of the API result, always 'error' for this type. */
52
92
  status: 'error';
93
+ /** The error message or data. */
53
94
  data: string;
95
+ /** The cause of the error, represented by a number. */
96
+ cause: number;
54
97
  };
55
98
 
99
+ /**
100
+ * @beta
101
+ * Type representing a general API result which can be either success or error.
102
+ * @template T - The type of the data returned in case of success.
103
+ */
56
104
  export declare type ApiResult<T> = ApiSuccessResult<T> | ApiErrorResult;
57
105
 
106
+ /**
107
+ * @beta
108
+ * Type representing a successful API result.
109
+ * @template T - The type of the data returned.
110
+ */
58
111
  export declare type ApiSuccessResult<T> = {
112
+ /** The status of the API result, always 'success' for this type. */
59
113
  status: 'success';
114
+ /** The data returned by the API. */
60
115
  data: T;
61
116
  };
62
117
 
118
+ /**
119
+ * @beta
120
+ * Type representing an application with folder and optional manifest information.
121
+ */
63
122
  export declare type App = {
123
+ /** The folder associated with the application. */
64
124
  folder: WorkspaceItem;
125
+ /** Optional manifest entity associated with the application. */
65
126
  manifest_entity?: WorkspaceItem;
127
+ /** Optional job manifest associated with the application. */
66
128
  manifest?: JobManifest;
67
129
  };
68
130
 
131
+ /**
132
+ * Interface for app registry.
133
+ * @beta
134
+ */
69
135
  export declare type AppRegistry = {
136
+ /**
137
+ * Registers a tab component.
138
+ */
70
139
  registerTabComponent: ({ component, factory, }: {
71
140
  component: string;
72
141
  factory: (node: TabNode) => ReactNode;
73
142
  }) => void;
143
+ /**
144
+ * Registers an action.
145
+ */
74
146
  registerAction: (action: DesktopActionMenuItem) => void;
147
+ /**
148
+ * Registers a styler.
149
+ */
75
150
  registerStyler: (styler: StylerConfig) => () => void;
76
151
  };
77
152
 
153
+ /**
154
+ * @beta
155
+ * Options for an application service call.
156
+ */
78
157
  export declare type AppServiceCallOptions = {};
79
158
 
159
+ /**
160
+ * @beta
161
+ * Properties for making an application service call.
162
+ */
80
163
  export declare type AppServiceCallProps = {
164
+ /** The name of the service to be called. */
81
165
  service: string;
166
+ /** Optional options for the service call. */
82
167
  options?: AppServiceCallOptions;
168
+ /** Contextual data for the service call. */
83
169
  context: {
84
170
  [key: string]: any;
85
171
  };
86
172
  };
87
173
 
174
+ /**
175
+ * @beta
176
+ * Type representing an asynchronous filter function.
177
+ */
88
178
  export declare type AsyncFilter = () => Promise<boolean>;
89
179
 
180
+ /**
181
+ * Response type for attachments.
182
+ * @beta
183
+ */
90
184
  export declare type AttachmentResponseType = 'text' | 'blob' | 'arrayBuffer' | 'json' | 'url';
91
185
 
186
+ /**
187
+ * Type for attachments.
188
+ * @beta
189
+ */
92
190
  export declare type AttachmentType = string | Blob | ArrayBuffer | Record<string, any>;
93
191
 
94
192
  declare type BaseQueryObjectFilterClause = {
@@ -98,18 +196,51 @@ declare type BaseQueryObjectFilterClause = {
98
196
  formattedLabel?: string;
99
197
  };
100
198
 
199
+ /**
200
+ * @beta
201
+ * Type representing a set of behaviors with various methods for entity and graph operations.
202
+ */
101
203
  export declare type Behaviour = {
204
+ /**
205
+ * Gets the count of entities.
206
+ * @returns A promise that resolves to the number of entities.
207
+ */
102
208
  getEntitiesCount?: () => Promise<number>;
209
+ /**
210
+ * Gets a list of entities.
211
+ * @param limit - Optional limit on the number of entities to retrieve.
212
+ * @returns A promise that resolves to an array of entities.
213
+ */
103
214
  getEntities?: (limit?: number) => Promise<Entity[]>;
215
+ /**
216
+ * Gets a single entity.
217
+ * @returns A promise that resolves to an entity.
218
+ */
104
219
  getEntity?: () => Promise<Entity>;
220
+ /**
221
+ * Gets the content associated with the behavior.
222
+ * @returns A promise that resolves to the content.
223
+ */
105
224
  getContent?: () => Promise<any>;
225
+ /**
226
+ * Gets the graph specification.
227
+ * @returns A promise that resolves to the graph specification or undefined if not available.
228
+ */
106
229
  getGraph?: () => Promise<GraphSpec | undefined>;
230
+ /**
231
+ * Opens the associated entity or content with the default action.
232
+ * @returns A promise that resolves when the operation is complete.
233
+ */
107
234
  open?: () => Promise<void>;
235
+ /**
236
+ * Edits the associated entity or content with the default edit action.
237
+ * @returns A promise that resolves when the operation is complete.
238
+ */
108
239
  edit?: () => Promise<void>;
109
240
  };
110
241
 
111
242
  /** List of operators that require another operand that is a single value */
112
- declare const BINARY_OPERATORS: readonly ["==", "!=", ">", "<", ">=", "<=", "ILIKE", "LIKE", "REGEX", "IN_POLYGON", "TEMPORAL_RANGE"];
243
+ declare const BINARY_OPERATORS: readonly ["==", "!=", ">", "<", ">=", "<=", "ILIKE", "LIKE", "REGEX", "IN_POLYGON", "IS_TAGGED", "TEMPORAL_RANGE"];
113
244
 
114
245
  /** An operator that requires another operand that is a single value */
115
246
  declare type BinaryOperator = typeof BINARY_OPERATORS[number];
@@ -153,59 +284,161 @@ declare class BorderSet {
153
284
  getBorders(): BorderNode[];
154
285
  }
155
286
 
287
+ /**
288
+ * @beta
289
+ * Type representing a callback function.
290
+ * @template T - The type of the parameter for the callback function.
291
+ * @param t - The parameter for the callback function.
292
+ */
156
293
  export declare type Callback<T> = (t: T) => void;
157
294
 
295
+ /**
296
+ * Interface for items that can have a color attribute.
297
+ * @beta
298
+ */
158
299
  export declare interface Colorful {
300
+ /**
301
+ * The color of the item.
302
+ */
159
303
  color?: string;
160
304
  }
161
305
 
306
+ /**
307
+ * Represents a comment workspace item with various attributes.
308
+ * @beta
309
+ */
162
310
  export declare type CommentWorkspaceItem = WorkspaceItemBase & OsAuditFields & Entity & {
311
+ /**
312
+ * The content of the comment.
313
+ */
163
314
  contents: string;
315
+ /**
316
+ * The short text of the comment.
317
+ */
164
318
  slug?: string;
319
+ /**
320
+ * The id of the comment thread.
321
+ */
165
322
  os_parent_uid?: string;
166
323
  };
167
324
 
325
+ /**
326
+ * Represents a concept with various properties and relationships.
327
+ * @beta
328
+ */
168
329
  export declare interface Concept {
330
+ /**
331
+ * The name of the concept.
332
+ */
169
333
  concept_name: string;
334
+ /**
335
+ * The parent concepts.
336
+ */
170
337
  parents: string[];
338
+ /**
339
+ * The properties of the concept.
340
+ */
171
341
  properties: Property[] | undefined;
342
+ /**
343
+ * All properties of the concept.
344
+ */
172
345
  allProperties: Property[] | undefined;
346
+ /**
347
+ * The relationships of the concept.
348
+ */
173
349
  relationships: Relationship[];
350
+ /**
351
+ * The columns associated with the concept.
352
+ */
174
353
  columns: string[];
175
- archetype: Concept;
354
+ /**
355
+ * The archetype of the concept.
356
+ */
357
+ archetype: string;
358
+ /**
359
+ * The tags associated with the concept.
360
+ */
176
361
  tags: Tag[];
362
+ /**
363
+ * The label keys for the concept.
364
+ */
177
365
  labelKeys: string[];
366
+ /**
367
+ * All label keys for the concept.
368
+ */
178
369
  allLabelKeys: string[];
179
370
  }
180
371
 
372
+ /**
373
+ * Represents a filter applied to a concept.
374
+ * @beta
375
+ */
181
376
  export declare type ConceptFilter = {
377
+ /**
378
+ * The name of the concept.
379
+ */
182
380
  concept: string;
381
+ /**
382
+ * The filters to apply to the records of the concept.
383
+ */
183
384
  filters: QueryObjectFilterClause[];
184
385
  };
185
386
 
387
+ /**
388
+ * Represents a map of concepts.
389
+ * @beta
390
+ */
186
391
  export declare type ConceptMap = Map<string, Concept>;
187
392
 
393
+ /**
394
+ * Represents a concept with parent concepts.
395
+ * @beta
396
+ */
188
397
  export declare type ConceptWithParents = Concept & {
189
398
  parents: string[];
190
399
  };
191
400
 
401
+ /**
402
+ * Represents a connected entity with a concept name.
403
+ * @beta
404
+ */
192
405
  export declare type ConnectedEntity = Entity & {
406
+ /**
407
+ * The name of the concept.
408
+ */
193
409
  concept_name: string;
194
410
  };
195
411
 
196
- export declare type ContextMenuGroup = 'add' | 'addto' | 'edit' | 'transform' | 'general' | 'open' | 'danger' | 'tags' | 'relations';
412
+ /**
413
+ * @beta
414
+ * Type representing the groups for a context menu.
415
+ */
416
+ export declare type ContextMenuGroup = 'add' | 'addto' | 'copy' | 'edit' | 'transform' | 'general' | 'open' | 'danger' | 'tags' | 'relations';
197
417
 
418
+ /**
419
+ * @beta
420
+ * Type representing labels for context menu groups.
421
+ */
198
422
  export declare type ContextMenuLabels = {
199
423
  [group in ContextMenuGroup]?: string;
200
424
  };
201
425
 
426
+ /**
427
+ * @beta
428
+ * Options for configuring a context menu.
429
+ */
202
430
  export declare type ContextMenuOptions = {
203
431
  mode?: 'edit' | 'default';
204
432
  groups?: ContextMenuGroup[];
205
433
  labels?: ContextMenuLabels;
206
434
  extras?: ItemType[];
435
+ excludedKeys?: string[];
207
436
  };
208
437
 
438
+ /**
439
+ * @beta
440
+ * Parameters for a context menu.
441
+ */
209
442
  export declare type ContextMenuParams = ActionContext & {
210
443
  children: any;
211
444
  trigger?: trigger[];
@@ -213,57 +446,124 @@ export declare type ContextMenuParams = ActionContext & {
213
446
  options?: ContextMenuOptions;
214
447
  };
215
448
 
449
+ /**
450
+ * @beta
451
+ * Request object for opening or clearing a context menu.
452
+ */
216
453
  export declare type ContextMenuRequest = (ActionContext & {
217
454
  x: number;
218
455
  y: number;
219
456
  openContextMenu?: boolean;
220
457
  onCloseEmit?: string;
458
+ menuType?: 'default' | 'tags';
221
459
  options?: ContextMenuOptions;
222
460
  }) | {
223
461
  clearContextMenu: true;
224
462
  };
225
463
 
226
- export declare type CreateEntityFormProps = {
227
- os_workspace?: string;
228
- concept?: string;
464
+ /**
465
+ * Options for copying items.
466
+ * @beta
467
+ */
468
+ export declare type CopyOptions = {
469
+ /**
470
+ * Name of the item to be copied.
471
+ */
472
+ os_item_name?: string;
229
473
  };
230
474
 
231
- export declare type CreateLinkChartFn = (params: CreateLinkChartParams) => Promise<WorkspaceItem | undefined>;
232
-
233
- export declare type CreateLinkChartParams = {
234
- path?: string;
235
- name: string;
236
- nodes?: Entity[];
237
- edges?: EdgeSpec[];
238
- draft?: boolean;
475
+ /**
476
+ * Properties for creating an entity form.
477
+ * @beta
478
+ */
479
+ export declare type CreateEntityFormProps = {
480
+ /**
481
+ * Entity for the form.
482
+ */
483
+ entity?: Entity;
484
+ /**
485
+ * Workspace for the form.
486
+ */
239
487
  os_workspace?: string;
488
+ /**
489
+ * Concept related to the form.
490
+ */
491
+ concept?: string;
240
492
  };
241
493
 
494
+ /**
495
+ * Properties for creating relations dialog.
496
+ * @beta
497
+ */
242
498
  export declare type CreateRelationsDialogProps = {
499
+ /**
500
+ * Source entity for the relations.
501
+ */
243
502
  source?: Entity;
503
+ /**
504
+ * Workspace for the relations.
505
+ */
244
506
  os_workspace?: string;
507
+ /**
508
+ * Target item for the relations.
509
+ */
245
510
  target?: FocusListItem;
511
+ /**
512
+ * Whether to create a new record.
513
+ */
246
514
  createRecord?: boolean;
515
+ /**
516
+ * Name of the relation.
517
+ */
247
518
  relationName?: string;
519
+ /**
520
+ * Default target concept for the relations.
521
+ */
248
522
  defaultTargetConcept?: string;
249
523
  };
250
524
 
525
+ /**
526
+ * @beta
527
+ * Type representing a custom event listener.
528
+ * @template L - The type of the event payload.
529
+ * @param payload - The payload of the event.
530
+ */
251
531
  export declare type CustomEventListener<L> = (payload: L) => void;
252
532
 
533
+ /**
534
+ * @beta
535
+ * Type representing a custom template, extending TemplateMetadata.
536
+ */
253
537
  export declare type CustomTemplate = TemplateMetadata & {
538
+ /** The template content. */
254
539
  template: string;
255
540
  };
256
541
 
542
+ /**
543
+ * @beta
544
+ * Type representing the properties for a custom template iframe.
545
+ */
257
546
  export declare type CustomTemplateIframeProps = {
547
+ /** The template to be rendered in the iframe. */
258
548
  template: CustomTemplate | SavedTemplate | string;
549
+ /** The context for the template. */
259
550
  context: any;
551
+ /** Whether to enable debug mode. */
260
552
  debug?: boolean;
553
+ /**
554
+ * Callback function to be called on error.
555
+ * @param err - The error object.
556
+ */
261
557
  onError?: (err: {
262
558
  message: string;
263
559
  }) => void;
560
+ /** The width of the iframe. */
264
561
  width?: number | string;
562
+ /** The height of the iframe. */
265
563
  height?: number | string;
564
+ /** Optional CSS properties for the iframe. */
266
565
  style?: ReactCssProperties;
566
+ /** Whether the iframe should take the full width. */
267
567
  fullWidth?: boolean;
268
568
  };
269
569
 
@@ -626,139 +926,479 @@ declare namespace DataType {
626
926
  type VisualBox = "border-box" | "content-box" | "padding-box";
627
927
  }
628
928
 
929
+ /**
930
+ * Interface for desktop actions.
931
+ * @beta
932
+ */
629
933
  export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter {
934
+ /**
935
+ * Refreshes the desktop.
936
+ */
630
937
  refresh: () => Promise<void>;
631
- openWorkspace: (ws: WorkspaceIdentifier) => Promise<void>;
938
+ /**
939
+ * Opens a workspace.
940
+ */
941
+ openWorkspace: (ws: WorkspaceIdentifier, showTab?: boolean) => Promise<void>;
942
+ /**
943
+ * Gets the active workspace.
944
+ */
632
945
  getActiveWorkspace: (prompt?: boolean) => Promise<string | undefined>;
946
+ /**
947
+ * Sets the active workspace.
948
+ */
633
949
  setActiveWorkspace: (workspace: string | undefined) => Promise<void>;
950
+ /**
951
+ * Closes a workspace.
952
+ */
634
953
  closeWorkspace: (ws: WorkspaceIdentifier) => Promise<void>;
635
- copy: (source: WorkspaceItem, target: WorkspaceItem) => Promise<WorkspaceItem[]>;
954
+ /**
955
+ * Copies an item.
956
+ */
957
+ copy: (source: WorkspaceItem, target: WorkspaceItem, options?: CopyOptions) => Promise<WorkspaceItem[]>;
958
+ /**
959
+ * Lists all workspaces with optional permissions.
960
+ */
636
961
  listAllWorkspaces: (permissions?: WorkspacePermissionValue) => Promise<WorkspaceItem[]>;
637
962
  /**
638
963
  * This might not be enough, add a listener to {@link Desktop.onOpenWorkspacesChanged} to keep getting updated.
639
964
  * In react components, prefer {@link useDesktopWorkspaces} hook.
640
965
  */
641
966
  getOpenWorkspaces: () => Promise<Workspace[]>;
967
+ /**
968
+ * Gets the OntologyAPI.
969
+ * @returns a promise that resolves to the current ontology
970
+ */
971
+ getOntology: () => Promise<Ontology>;
642
972
  /**
643
973
  * Fetches an attachment based on the provided workspace identifier and path or ID.
644
974
  *
645
- * @param workspace - The identifier for the workspace.
646
- * @param path - The path or ID of the attachment.
647
- * @param defaultValue - The default value to return if the attachment doesn't exist or there's an error.
648
- * An empty string is used if not provided.
975
+ * @param entity - The entity to which the attachment belongs.
976
+ * @param options - Additional parameters
649
977
  * @returns A promise that resolves to the attachment of type T.
650
978
  */
651
979
  getAttachment: <T extends AttachmentType>(entity: Entity, options?: GetAttachmentOptions<T>) => Promise<T>;
980
+ /**
981
+ * Gets options for stylers.
982
+ */
652
983
  getStylerOptions: () => Promise<StylerOption[]>;
984
+ /**
985
+ * Gets a styler by name and context.
986
+ */
653
987
  getStyler: (name: string, context: DesktopStylerContext) => Promise<Styler>;
988
+ /**
989
+ * Gets a workspace by identifier.
990
+ */
654
991
  getWorkspace: (ws: WorkspaceIdentifier) => Promise<Workspace | undefined>;
992
+ /**
993
+ * Gets items in a workspace by name.
994
+ */
655
995
  getWorkspaceItems(os_item_name: string): Promise<WorkspaceItem[]>;
996
+ /**
997
+ * Applies a tag to an entity.
998
+ */
656
999
  applyTag: (os_workspace: string, tag: OsTag | TagAttributes, entity: Entity | Entity[]) => Promise<void>;
1000
+ /**
1001
+ * Removes a tag from an entity.
1002
+ */
657
1003
  removeTag: (os_workspace: string, tag: OsTag | TagAttributes, entity: Entity | Entity[]) => Promise<void>;
1004
+ /**
1005
+ * Updates a tag.
1006
+ */
658
1007
  updateTag: (tag: OsTag) => Promise<OsTag>;
1008
+ /**
1009
+ * Gets an item by workspace identifier.
1010
+ */
659
1011
  getItem: <T>(ws: WorkspaceIdentifier<T>) => Promise<WorkspaceItem<T>>;
1012
+ /**
1013
+ * Gets items by workspace identifiers.
1014
+ */
660
1015
  getItems: (ws: WorkspaceIdentifier[]) => Promise<WorkspaceItem[]>;
1016
+ /**
1017
+ * Gets tags for an entity.
1018
+ */
661
1019
  getTags: (entity: Entity) => Promise<TagWithRelationship[]>;
1020
+ /**
1021
+ * Gets available tags for an entity in a workspace.
1022
+ */
662
1023
  getAvailableTags: (entity: Entity, workspace?: string) => Promise<OsTag[]>;
663
- getTemplates: () => Promise<CustomTemplate[]>;
1024
+ /**
1025
+ * Gets templates by layout.
1026
+ */
1027
+ getTemplates: (layout?: string) => Promise<SavedTemplate[]>;
1028
+ /**
1029
+ * Gets a template by name with an optional default template.
1030
+ */
664
1031
  getTemplate: (name: string, defaultTemplate?: string) => Promise<CustomTemplate>;
1032
+ /**
1033
+ * Gets schema items by content type.
1034
+ */
665
1035
  getSchemaItems(os_item_content_type: string): Promise<WorkspaceItem[]>;
1036
+ /**
1037
+ * Creates a workspace by name.
1038
+ */
666
1039
  createWorkspace: (name: string) => Promise<WorkspaceItem>;
1040
+ /**
1041
+ * Connects two entities with a relationship in a workspace.
1042
+ */
667
1043
  connect: (relationship: Relationship | string, from: Entity, to: Entity, os_workspace?: string) => Promise<WorkspaceItem>;
1044
+ /**
1045
+ * Saves an item with optional save options.
1046
+ */
668
1047
  save: (item: (Partial<WorkspaceItem> & WorkspaceItemModel) | WorkspaceRecordIdentifier | WorkspaceRecordWithRelationships, options?: SaveOptions) => Promise<WorkspaceItem>;
669
- saveFile: (item: WorkspaceItem, file: File | string, options?: SaveFileOptions) => Promise<WorkspaceItem>;
1048
+ /**
1049
+ * Saves a file to an item with optional save options.
1050
+ */
1051
+ saveFile: (item: WorkspaceItem, file: File | string, options?: SaveOptions) => Promise<WorkspaceItem>;
1052
+ /**
1053
+ * Imports items.
1054
+ */
670
1055
  import: (items: any[]) => Promise<void>;
1056
+ /**
1057
+ * Imports a ZIP file with optional import options.
1058
+ */
671
1059
  importZip: (file: File, options?: ImportZipOptions) => Promise<void>;
1060
+ /**
1061
+ * Exports an item or items with optional export options.
1062
+ */
672
1063
  export: (item: WorkspaceItem | WorkspaceItem[], options?: ExportOptions) => Promise<void>;
1064
+ /**
1065
+ * Extracts entities from some text which may be json or a list of urls.
1066
+ */
1067
+ extractEntities: (text: string, options?: ExtractEntitiesOptions) => Promise<Entity[]>;
1068
+ /**
1069
+ * Gets a file tree for a workspace or folder with optional file tree options.
1070
+ */
673
1071
  getFilesTree: (workspace_or_folder: WorkspaceItem, options?: FileTreeOptions) => Promise<WorkspaceItem[]>;
1072
+ /**
1073
+ * Show the search modal and return the selected results.
1074
+ */
1075
+ getSearchResults: (params: undefined | string | SearchProps) => Promise<Entity[] | undefined>;
1076
+ /**
1077
+ * Opens records with default action or as specified in the optional desktop action options.
1078
+ */
674
1079
  open(records: Entity | Entity[], options?: DesktopActionOptions): Promise<void>;
1080
+ /**
1081
+ * Deletes an item or items recursively.
1082
+ */
675
1083
  delete: (item: WorkspaceRecordIdentifier | WorkspaceRecordIdentifier[], recurse?: boolean) => Promise<void>;
1084
+ /**
1085
+ * Deletes records in a workspace by ID.
1086
+ */
676
1087
  delete_workspace_records: (workspace_id: string) => Promise<void>;
1088
+ /**
1089
+ * Deletes local concept records in a workspace by base concept.
1090
+ */
677
1091
  delete_local_concept_records: (workspace_id: string, base_concept: string) => Promise<void>;
1092
+ /**
1093
+ * Searches experience with optional search options.
1094
+ */
678
1095
  searchXperience: (options?: SearchXperienceProps) => Promise<Entity[]>;
1096
+ /**
1097
+ * Shows a tab with given properties.
1098
+ */
679
1099
  showTab: (props: ShowTabProps) => Promise<void>;
1100
+ /**
1101
+ * Closes a tab with given properties.
1102
+ */
680
1103
  closeTab: (props: ShowTabProps) => Promise<void>;
1104
+ /**
1105
+ * Calls an application service with given properties.
1106
+ */
681
1107
  callAppService: (props: AppServiceCallProps) => Promise<any>;
1108
+ /**
1109
+ * Shows a context menu with given properties.
1110
+ */
682
1111
  showContextMenu: (props: ContextMenuRequest) => Promise<void>;
1112
+ /**
1113
+ * Shows a toast notification.
1114
+ */
683
1115
  showToast: (notification: OsNotification) => Promise<void>;
1116
+ /**
1117
+ * Clears a toast notification by ID.
1118
+ */
684
1119
  clearToast: (id: string) => Promise<void>;
1120
+ /**
1121
+ * Shows a progress item.
1122
+ */
685
1123
  showProgress: (progress: OsProgress) => Promise<void>;
686
- withProgressBar: <T>(promise: Promise<T>, options?: WithProgressBarOptions) => Promise<T>;
1124
+ /**
1125
+ * Wraps a promise with a progress bar.
1126
+ */
1127
+ withProgressBar: <T>(promise: Promise<T>, options?: WithProgressBarOptions) => Promise<T>;
1128
+ /**
1129
+ * Shows a confirmation modal.
1130
+ */
687
1131
  showConfirm: (props: OsConfirmProps) => Promise<OS_CONFIRM_MODAL_RESPONSE>;
1132
+ /**
1133
+ * Shows a file upload dialog.
1134
+ */
688
1135
  showFileUpload: (folder: WorkspaceItem) => Promise<WorkspaceItem[]>;
1136
+ /**
1137
+ * Shows a form for creating an entity.
1138
+ */
689
1139
  showCreateEntityForm: (props: CreateEntityFormProps) => Promise<OsWorkspaceEntity[]>;
1140
+ /**
1141
+ * Shows a dialog for creating relations.
1142
+ */
690
1143
  showCreateRelationsDialog: (props: CreateRelationsDialogProps) => Promise<void>;
1144
+ /**
1145
+ * Shows a modal for saving as.
1146
+ */
1147
+ showSaveAsModal: (props: SaveAsModalProps) => Promise<WorkspaceItem | undefined>;
1148
+ /**
1149
+ * Gets a paste context with optional options.
1150
+ */
691
1151
  getPasteContext: (options: PasteContextOptions) => Promise<Entity[]>;
1152
+ /**
1153
+ * Shows a modal template.
1154
+ */
692
1155
  showModalTemplate: (props: ModalTemplateProps) => Promise<void>;
1156
+ /**
1157
+ * Adds a comment to an entity.
1158
+ */
693
1159
  addComment: (about: Entity, comment: AddCommentParams) => Promise<Entity>;
694
- removeComment: (os_workspace: string, comment_id: string) => Promise<void>;
1160
+ /**
1161
+ * Adds a watch intent to an entity.
1162
+ */
695
1163
  addWatchIntent: (entity: Entity, watcher: Watcher) => Promise<Entity>;
1164
+ /**
1165
+ * Removes a watch intent by workspace and intent ID.
1166
+ */
696
1167
  removeWatchIntent: (os_workspace: string, intent_id: string) => Promise<void>;
1168
+ /**
1169
+ * Gets workspace permissions by IDs.
1170
+ */
697
1171
  getWorkspacePermission: (os_worpsaces: string[]) => Promise<{
698
1172
  [os_workspace: string]: WorkspacePermission;
699
1173
  }>;
1174
+ /**
1175
+ * Gets the user profile.
1176
+ */
700
1177
  getUser: () => Promise<UserProfile>;
701
- deployApp: (app: WorkspaceItem, initialSecrets?: {
1178
+ /**
1179
+ * Deploys an application with optional initial secrets.
1180
+ */
1181
+ deployApp: (app: WorkspaceItem | App, initialSecrets?: {
702
1182
  [key: string]: string;
703
1183
  }) => Promise<WorkspaceItem>;
704
- undeployApp: (app: WorkspaceItem) => Promise<WorkspaceItem>;
1184
+ /**
1185
+ * Undeploys an application.
1186
+ */
1187
+ undeployApp: (app: WorkspaceItem | App) => Promise<WorkspaceItem>;
1188
+ /**
1189
+ * Gets information about the current user.
1190
+ */
705
1191
  whoami: () => Promise<Whoami>;
1192
+ /**
1193
+ * Gets the focus list.
1194
+ */
706
1195
  getFocusList: () => Promise<FocusListItem[]>;
1196
+ /**
1197
+ * Adds entities to the focus list with optional type and tab name.
1198
+ */
707
1199
  addToFocusList: (entities: Entity[], type?: 'single' | 'group', tabName?: string) => Promise<FocusListItem[]>;
1200
+ /**
1201
+ * Removes entities from the focus list with optional type and tab name.
1202
+ */
708
1203
  removeFromFocusList: (entities: Entity[], type?: 'single' | 'group', tabName?: string) => Promise<FocusListItem[]>;
1204
+ /**
1205
+ * Gets images for an entity.
1206
+ */
1207
+ getImages: (entity: Entity) => Promise<Entity[]>;
1208
+ /**
1209
+ * Gets icon code for an entity, concept, or string.
1210
+ */
1211
+ internalGetIconCode: (x: Entity | Concept | string, defaultIcon?: string) => Promise<string>;
1212
+ /**
1213
+ * Gets JSON schema for a concept.
1214
+ */
1215
+ getJSONSchema: (concept: string) => Promise<{
1216
+ schema: string;
1217
+ schemaUI: string;
1218
+ }>;
1219
+ /**
1220
+ * Connect an attachment to an entity as featured_in
1221
+ */
1222
+ addAttachment: (entity: WorkspaceItem, file: WorkspaceItem) => void;
709
1223
  }
710
1224
 
1225
+ /**
1226
+ * Function for desktop actions.
1227
+ * @beta
1228
+ */
711
1229
  export declare type DesktopAction = (context: DesktopActionContext) => any;
712
1230
 
1231
+ /**
1232
+ * Context for desktop actions.
1233
+ * @beta
1234
+ */
713
1235
  export declare interface DesktopActionContext extends ActionContext {
1236
+ /**
1237
+ * Event emitter type.
1238
+ */
714
1239
  ee: EventEmitterType;
1240
+ /**
1241
+ * Prefix for event topics.
1242
+ */
715
1243
  eventTopicPrefix?: string;
1244
+ /**
1245
+ * Options for the action.
1246
+ */
716
1247
  options?: DesktopActionOptions;
717
1248
  }
718
1249
 
1250
+ /**
1251
+ * Filter for desktop actions.
1252
+ * @beta
1253
+ */
719
1254
  export declare type DesktopActionFilter = (context: DesktopActionContext) => boolean;
720
1255
 
1256
+ /**
1257
+ * Menu item for desktop actions.
1258
+ * @beta
1259
+ */
721
1260
  export declare type DesktopActionMenuItem = {
1261
+ /**
1262
+ * Label for the menu item.
1263
+ */
722
1264
  label: ReactNode;
1265
+ /**
1266
+ * Key for the menu item.
1267
+ */
723
1268
  key: string;
1269
+ /**
1270
+ * Icon for the menu item.
1271
+ */
724
1272
  icon: Icon;
1273
+ /**
1274
+ * Service related to the menu item.
1275
+ */
725
1276
  service?: string;
1277
+ /**
1278
+ * Additional options for the menu item.
1279
+ */
726
1280
  with?: string;
727
1281
  /**
728
- * Menu group to which the item is added.
729
- * Default is 'general'
1282
+ * Group for the menu item. Default is 'general'.
730
1283
  */
731
1284
  group?: DesktopActionMenuItemGroup;
1285
+ /**
1286
+ * Subgroup for the menu item.
1287
+ */
732
1288
  subgroup?: string;
1289
+ /**
1290
+ * Order of the menu item.
1291
+ */
733
1292
  order?: number;
1293
+ /**
1294
+ * Children menu items.
1295
+ */
734
1296
  children?: DesktopActionMenuItem[] | ((props: DesktopActionContext) => DesktopActionMenuItem[]);
1297
+ /**
1298
+ * Filter for accepting the menu item.
1299
+ */
735
1300
  accepts: DesktopActionFilter;
1301
+ /**
1302
+ * Function to invoke the action.
1303
+ */
736
1304
  invoke: DesktopAction;
737
1305
  };
738
1306
 
1307
+ /**
1308
+ * Group for desktop action menu items.
1309
+ * @beta
1310
+ */
739
1311
  export declare type DesktopActionMenuItemGroup = ContextMenuGroup;
740
1312
 
1313
+ /**
1314
+ * Options for desktop actions.
1315
+ * @beta
1316
+ */
741
1317
  export declare type DesktopActionOptions = {
1318
+ /**
1319
+ * ID of the tab.
1320
+ */
1321
+ tabId?: string;
1322
+ /**
1323
+ * ID of the tab to place beside.
1324
+ */
742
1325
  besideTabId?: string;
1326
+ /**
1327
+ * Whether to auto-select the tab.
1328
+ */
743
1329
  autoSelectTab?: boolean;
1330
+ /**
1331
+ * Function to call on closing the tab.
1332
+ */
744
1333
  onCloseTab?: () => void;
1334
+ /**
1335
+ * Additional options for the action.
1336
+ */
745
1337
  with?: string;
1338
+ /**
1339
+ * Initial state for the action.
1340
+ */
746
1341
  initialState?: any;
1342
+ /**
1343
+ * Whether to open in a new tab.
1344
+ */
1345
+ newTab?: boolean;
1346
+ /**
1347
+ * Whether to open in a modal window.
1348
+ */
1349
+ modal?: boolean;
1350
+ /**
1351
+ * Whether to preserve the state of the tab after action is finished. Used with modal.
1352
+ */
1353
+ preserve?: boolean;
747
1354
  };
748
1355
 
1356
+ /**
1357
+ * Parameters for opening a desktop.
1358
+ * @beta
1359
+ */
749
1360
  export declare type DesktopOpenParams = {
1361
+ /**
1362
+ * Options for the desktop action.
1363
+ */
750
1364
  options?: DesktopActionOptions;
1365
+ /**
1366
+ * Items to be opened.
1367
+ */
751
1368
  items: Entity[];
752
1369
  };
753
1370
 
1371
+ /**
1372
+ * Interface for desktop settings.
1373
+ * @beta
1374
+ */
754
1375
  export declare interface DesktopSettings {
1376
+ /**
1377
+ * Gets the IDs of open workspaces.
1378
+ */
755
1379
  getOpenWorkspaceIds: () => Promise<string[]>;
1380
+ /**
1381
+ * Sets the IDs of open workspaces.
1382
+ */
756
1383
  setOpenWorkspaceIds: (ids: string[]) => Promise<void>;
1384
+ /**
1385
+ * Listener for changes in open workspace IDs.
1386
+ */
757
1387
  onOpenWorkspaceIdsChanged: AddListener<string[]>;
758
1388
  }
759
1389
 
1390
+ /**
1391
+ * Context for desktop styler.
1392
+ * @beta
1393
+ */
760
1394
  export declare type DesktopStylerContext = {
1395
+ /**
1396
+ * Graph specification.
1397
+ */
761
1398
  graph: GraphSpec;
1399
+ /**
1400
+ * Selected graph specification.
1401
+ */
762
1402
  selected?: GraphSpec;
763
1403
  };
764
1404
 
@@ -774,20 +1414,56 @@ declare class DockLocation {
774
1414
  toString(): string;
775
1415
  }
776
1416
 
1417
+ /**
1418
+ * Represents a draft workspace item.
1419
+ * @beta
1420
+ */
777
1421
  export declare type DraftWorkspaceItem = WorkspaceItem & {
1422
+ /**
1423
+ * Indicates if the item is a draft. The attribute is not saved in persistence.
1424
+ */
778
1425
  os_draft_item: true;
779
1426
  };
780
1427
 
1428
+ /**
1429
+ * Parameters for drag end.
1430
+ * @beta
1431
+ */
781
1432
  export declare type DragEndParams = {
1433
+ /**
1434
+ * Record being dragged.
1435
+ */
782
1436
  record: Entity;
1437
+ /**
1438
+ * Records being dragged.
1439
+ */
783
1440
  records: Entity[];
1441
+ /**
1442
+ * X-coordinate of the drag end position.
1443
+ */
784
1444
  x: number;
1445
+ /**
1446
+ * Y-coordinate of the drag end position.
1447
+ */
785
1448
  y: number;
786
1449
  };
787
1450
 
1451
+ /**
1452
+ * Parameters for drag start.
1453
+ * @beta
1454
+ */
788
1455
  export declare type DragStartParams = {
1456
+ /**
1457
+ * Record being dragged.
1458
+ */
789
1459
  record: Entity;
1460
+ /**
1461
+ * Records being dragged.
1462
+ */
790
1463
  records: Entity[];
1464
+ /**
1465
+ * Topic for drag end event.
1466
+ */
791
1467
  dragEndTopic: string;
792
1468
  };
793
1469
 
@@ -800,104 +1476,279 @@ declare class DropInfo {
800
1476
  constructor(node: Node_2 & IDropTarget, rect: Rect, location: DockLocation, index: number, className: string);
801
1477
  }
802
1478
 
803
- export declare type DropZoneRequestFn = (args: any[]) => Promise<DropZoneRequestResult>;
804
-
805
- export declare type DropZoneRequestResult = {
806
- to: any;
807
- data: any;
808
- };
809
-
1479
+ /**
1480
+ * @beta
1481
+ * Type representing a connection between two entities with a relationship.
1482
+ */
810
1483
  export declare type EConnection = {
1484
+ /** The first entity in the connection. */
811
1485
  entity1: Entity;
1486
+ /** The second entity in the connection. */
812
1487
  entity2: Entity;
1488
+ /** The relationship between the two entities. */
813
1489
  relationship: Relationship;
814
1490
  };
815
1491
 
1492
+ /**
1493
+ * @beta
1494
+ * Type representing the specification of an edge in a graph.
1495
+ */
816
1496
  export declare type EdgeSpec = {
1497
+ /** The identifier of the starting node. */
817
1498
  from: string;
1499
+ /** The identifier of the ending node. */
818
1500
  to: string;
1501
+ /** The label for the edge. */
819
1502
  label: string;
820
1503
  };
821
1504
 
822
- declare type EmitEventTransformDefinition = {
1505
+ /**
1506
+ * @beta
1507
+ * Type representing a transform definition that emits an event.
1508
+ */
1509
+ export declare type EmitEventTransformDefinition = {
1510
+ /** The type of the transform, always 'emit_event' for this type. */
823
1511
  type: 'emit_event';
1512
+ /** The topic of the event to emit. */
824
1513
  topic: string;
1514
+ /** The arguments for the event. */
825
1515
  args: string[];
826
1516
  };
827
1517
 
1518
+ /**
1519
+ * Represents an entity with basic attributes.
1520
+ * @beta
1521
+ */
828
1522
  export declare type Entity = {
1523
+ /**
1524
+ * The ID of the entity.
1525
+ */
829
1526
  entity_id: string;
1527
+ /**
1528
+ * The type of the entity.
1529
+ */
830
1530
  entity_type: string;
1531
+ /**
1532
+ * The label of the entity.
1533
+ */
831
1534
  entity_label: string;
832
1535
  };
833
1536
 
1537
+ /**
1538
+ * @beta
1539
+ * Type representing an edge between two entities with a relationship.
1540
+ */
834
1541
  export declare type EntityEdge = {
1542
+ /** The starting entity of the edge. */
835
1543
  from: Entity;
1544
+ /** The ending entity of the edge. */
836
1545
  to: Entity;
1546
+ /** The relationship between the two entities. */
837
1547
  relationship: Relationship;
838
1548
  };
839
1549
 
1550
+ /**
1551
+ * Represents an entity with additional attributes for one-to-many relationships.
1552
+ * @beta
1553
+ */
1554
+ export declare type EntityOTM = Entity & {
1555
+ /**
1556
+ * The UID of the source entity.
1557
+ */
1558
+ source_entity_uid: string;
1559
+ /**
1560
+ * The type of the source entity.
1561
+ */
1562
+ source_entity_type: string;
1563
+ };
1564
+
1565
+ /**
1566
+ * Context for pasting entities.
1567
+ * @beta
1568
+ */
840
1569
  export declare type EntityPasteContext = {
1570
+ /**
1571
+ * Counts the number of entities.
1572
+ */
841
1573
  count: () => Promise<number>;
1574
+ /**
1575
+ * Fetches entities with a limit.
1576
+ */
842
1577
  fetch: (limit?: number) => Promise<Entity[]>;
843
1578
  };
844
1579
 
1580
+ /**
1581
+ * @beta
1582
+ * Type representing the event context, including methods to manage event publishing and subscription.
1583
+ */
845
1584
  export declare type EventContextType = {
1585
+ /** The event emitter instance. */
846
1586
  EE: EventEmitterType;
1587
+ /** Function to publish events. */
847
1588
  publish: EventPublisher;
1589
+ /** Function to subscribe to events. */
848
1590
  subscribe: EventSubscriber;
1591
+ /** Function to unsubscribe from events. */
849
1592
  unsubscribe: EventUnsubscriber;
850
1593
  };
851
1594
 
1595
+ /**
1596
+ * @beta
1597
+ * Type representing an event emitter with methods to manage events.
1598
+ */
852
1599
  export declare type EventEmitterType = {
1600
+ /**
1601
+ * Emits an event.
1602
+ * @param event - The name or symbol of the event.
1603
+ * @param args - The arguments to pass to the event listeners.
1604
+ */
853
1605
  emit: (event: string | symbol, ...args: any[]) => void;
1606
+ /**
1607
+ * Registers an event listener.
1608
+ * @param event - The name or symbol of the event.
1609
+ * @param fn - The function to call when the event is emitted.
1610
+ */
854
1611
  on: (event: string | symbol, fn: (...args: any[]) => void) => void;
1612
+ /**
1613
+ * Registers a one-time event listener.
1614
+ * @param event - The name or symbol of the event.
1615
+ * @param fn - The function to call when the event is emitted.
1616
+ */
855
1617
  once: (event: string | symbol, fn: (...args: any[]) => void) => void;
1618
+ /**
1619
+ * Removes an event listener.
1620
+ * @param event - The name or symbol of the event.
1621
+ * @param fn - The function to remove from the event listeners.
1622
+ */
856
1623
  off: (event: string | symbol, fn: (...args: any[]) => void) => void;
857
1624
  };
858
1625
 
1626
+ /**
1627
+ * @beta
1628
+ * Type representing an event name, which can be a string or symbol.
1629
+ */
859
1630
  export declare type EventName = string | symbol;
860
1631
 
1632
+ /**
1633
+ * @beta
1634
+ * Type representing a function that produces events.
1635
+ * @param eventName - The name of the event.
1636
+ * @param data - The data associated with the event.
1637
+ * @returns The result of the event production.
1638
+ */
861
1639
  export declare type EventProducer = (eventName: EventName, data: any) => any;
862
1640
 
1641
+ /**
1642
+ * @beta
1643
+ * Type representing a function that publishes events.
1644
+ * @template T - The type of the event data.
1645
+ * @param eventName - The name of the event.
1646
+ * @param data - The data associated with the event.
1647
+ */
863
1648
  export declare type EventPublisher = <T>(eventName: EventName, data: T) => void;
864
1649
 
1650
+ /**
1651
+ * @beta
1652
+ * Type representing a function that subscribes to events.
1653
+ * @template L - The type of the event listener payload.
1654
+ * @param eventName - The name of the event.
1655
+ * @param listener - The event listener to add.
1656
+ * @returns The function to unsubscribe the event listener.
1657
+ */
865
1658
  export declare type EventSubscriber = <L>(eventName: EventName, listener: CustomEventListener<L>) => EventUnsubscriber;
866
1659
 
1660
+ /**
1661
+ * @beta
1662
+ * Type representing a function that unsubscribes from events.
1663
+ * @template L - The type of the event listener payload.
1664
+ * @param eventName - The name of the event.
1665
+ * @param listener - The event listener to remove.
1666
+ */
867
1667
  export declare type EventUnsubscriber = <L>(eventName: EventName, listener: CustomEventListener<L>) => void;
868
1668
 
1669
+ /**
1670
+ * Options for exporting items.
1671
+ * @beta
1672
+ */
869
1673
  export declare type ExportOptions = {
1674
+ /**
1675
+ * Filename for the export.
1676
+ */
870
1677
  filename?: string;
871
1678
  };
872
1679
 
873
- export declare type ExtrasApi = {
874
- createLinkChart: CreateLinkChartFn;
1680
+ export declare type ExtractEntitiesOptions = {
1681
+ hydrate?: boolean;
875
1682
  };
876
1683
 
877
- declare type FileCode = {
1684
+ /**
1685
+ * @alpha
1686
+ * File containing the code. Not yet supported.
1687
+ */
1688
+ export declare type FileCode = {
1689
+ /** The file containing the code. */
878
1690
  file: string;
879
1691
  };
880
1692
 
1693
+ /**
1694
+ * Options for file tree.
1695
+ * @beta
1696
+ */
881
1697
  export declare type FileTreeOptions = {
1698
+ /**
1699
+ * Whether to recurse in the file tree.
1700
+ */
882
1701
  recurse?: boolean;
1702
+ /**
1703
+ * Whether to exclude the root from the file tree.
1704
+ */
883
1705
  exclude_root?: boolean;
1706
+ /**
1707
+ * Whether to flatten the file tree.
1708
+ */
884
1709
  flat?: boolean;
1710
+ /**
1711
+ * Whether to show minimal information in the file tree.
1712
+ */
885
1713
  minimal?: boolean;
1714
+ /**
1715
+ * Whether to include structure in the file tree.
1716
+ */
886
1717
  structure?: boolean;
887
1718
  };
888
1719
 
1720
+ /**
1721
+ * @beta
1722
+ * Type representing a filter definition, which can be one of several specific filter types.
1723
+ */
889
1724
  export declare type FilterDefinition = ProvidedFilterDefinition | PythonFilterDefinition | JavascriptFilterDefinition | SemanticallyBoundFilterDefinition;
890
1725
 
891
- declare type FilterDefinitions = {
1726
+ /**
1727
+ * @beta
1728
+ * Type representing a collection of filter definitions.
1729
+ */
1730
+ export declare type FilterDefinitions = {
892
1731
  [k: FilterName]: FilterDefinition;
893
1732
  };
894
1733
 
1734
+ /**
1735
+ * @beta
1736
+ * Type representing the name of a filter.
1737
+ */
895
1738
  export declare type FilterName = string;
896
1739
 
897
- declare type FilterReference = string | {
1740
+ /**
1741
+ * @beta
1742
+ * Type representing a reference to a filter, which can be a string or an object requiring all filters.
1743
+ */
1744
+ export declare type FilterReference = string | {
898
1745
  ['require_all']: FilterReference[];
899
1746
  };
900
1747
 
1748
+ /**
1749
+ * Represents an item in a focus list.
1750
+ * @beta
1751
+ */
901
1752
  export declare type FocusListItem = {
902
1753
  entity: Entity;
903
1754
  count: number;
@@ -905,33 +1756,75 @@ export declare type FocusListItem = {
905
1756
  type?: 'single';
906
1757
  } | NamedEntityGroup;
907
1758
 
1759
+ /**
1760
+ * Options for pasting folders.
1761
+ * @beta
1762
+ */
908
1763
  export declare type FolderPasteOptions = {
1764
+ /**
1765
+ * Whether to include folders in the paste.
1766
+ */
909
1767
  folders?: boolean;
1768
+ /**
1769
+ * Whether to include files in the paste.
1770
+ */
910
1771
  files?: boolean;
1772
+ /**
1773
+ * Whether to paste recursively.
1774
+ */
911
1775
  recursive?: boolean;
912
1776
  };
913
1777
 
1778
+ /**
1779
+ * Options for getting attachments.
1780
+ * @beta
1781
+ */
914
1782
  export declare interface GetAttachmentOptions<T extends AttachmentType> {
1783
+ /**
1784
+ * Path to the attachment.
1785
+ */
915
1786
  path?: string;
1787
+ /**
1788
+ * Default value for the attachment.
1789
+ */
916
1790
  default?: T;
1791
+ /**
1792
+ * Response type for the attachment.
1793
+ */
917
1794
  responseType?: AttachmentResponseType;
918
1795
  }
919
1796
 
920
1797
  declare type Globals = "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset";
921
1798
 
1799
+ /**
1800
+ * @beta
1801
+ * Type representing the specification of a graph.
1802
+ */
922
1803
  export declare type GraphSpec = {
1804
+ /** Optional workspace item associated with the graph. */
923
1805
  workspace_item?: Entity;
1806
+ /** The nodes (entities) in the graph. */
924
1807
  nodes: Entity[];
1808
+ /** The edges connecting the nodes in the graph. */
925
1809
  edges: EdgeSpec[];
926
1810
  };
927
1811
 
928
- declare type HttpTransformDefinition = {
1812
+ /**
1813
+ * @beta
1814
+ * Type representing an HTTP transform definition.
1815
+ */
1816
+ export declare type HttpTransformDefinition = {
1817
+ /** The type of the transform, always 'http' for this type. */
929
1818
  type: 'http';
1819
+ /** The HTTP method for the transform. */
930
1820
  method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
1821
+ /** The URL for the HTTP request, can be relative to the url of the deployed app */
931
1822
  url: string;
1823
+ /** Optional headers for the HTTP request. */
932
1824
  headers?: {
933
1825
  [k: string]: string;
934
1826
  };
1827
+ /** Optional data for the HTTP request. */
935
1828
  data?: string | {
936
1829
  [k: string]: any;
937
1830
  };
@@ -960,26 +1853,81 @@ declare enum ICloseType {
960
1853
  Selected = 3
961
1854
  }
962
1855
 
1856
+ /**
1857
+ * Type for icons.
1858
+ * @beta
1859
+ */
963
1860
  export declare type Icon = IconProps | string;
964
1861
 
1862
+ /**
1863
+ * Represents properties for an icon.
1864
+ * @beta
1865
+ */
965
1866
  export declare type IconProps = {
1867
+ /**
1868
+ * Name of the icon.
1869
+ */
966
1870
  icon: string;
1871
+ /**
1872
+ * Optional class name for styling.
1873
+ */
967
1874
  className?: string;
1875
+ /**
1876
+ * Rotation angle for the icon.
1877
+ */
968
1878
  rotate?: number;
1879
+ /**
1880
+ * Whether the icon should spin.
1881
+ */
969
1882
  spin?: boolean;
1883
+ /**
1884
+ * CSS properties for the icon.
1885
+ */
970
1886
  style?: ReactCssProperties;
1887
+ /**
1888
+ * Reference to the HTML span element.
1889
+ */
971
1890
  iconRef?: ReactRef<HTMLSpanElement>;
972
1891
  };
973
1892
 
1893
+ /**
1894
+ * @beta
1895
+ * Interface for managing data transfer during drag and drop operations.
1896
+ */
974
1897
  export declare interface IDataTransfer {
1898
+ /**
1899
+ * Clears the data for the specified format or all formats if none is specified.
1900
+ * @param format - The format of the data to clear.
1901
+ */
975
1902
  clearData(format?: string): void;
1903
+ /**
1904
+ * Sets the data for the specified format.
1905
+ * @param format - The format of the data.
1906
+ * @param data - The data to be set.
1907
+ */
976
1908
  setData(format: string, data: string): void;
1909
+ /**
1910
+ * Retrieves the data for the specified format.
1911
+ * @param format - The format of the data to retrieve.
1912
+ * @returns The data for the specified format, or null if not found.
1913
+ */
977
1914
  getData(format: string): string | null;
1915
+ /**
1916
+ * Sets the image to be used for dragging.
1917
+ * @param img - The image element to be used.
1918
+ * @param xOffset - The horizontal offset.
1919
+ * @param yOffset - The vertical offset.
1920
+ */
978
1921
  setDragImage?(img: Element, xOffset: number, yOffset: number): void;
1922
+ /** The drop effect for the drag operation. */
979
1923
  readonly dropEffect: string;
1924
+ /** The effect allowed for the drag operation. */
980
1925
  readonly effectAllowed: string;
1926
+ /** The list of files being transferred. */
981
1927
  readonly files: FileList;
1928
+ /** The types of data being transferred. */
982
1929
  readonly types: string[];
1930
+ /** The items being transferred. */
983
1931
  readonly items: DataTransferItemList;
984
1932
  }
985
1933
 
@@ -989,11 +1937,21 @@ declare interface IDraggable {
989
1937
  declare interface IDropTarget {
990
1938
  }
991
1939
 
992
- declare type IframeTransformDefinition = {
1940
+ /**
1941
+ * @beta
1942
+ * Type representing an iframe transform definition.
1943
+ */
1944
+ export declare type IframeTransformDefinition = {
1945
+ /** The type of the transform, always 'iframe' for this type. */
993
1946
  type: 'iframe';
1947
+ /** The URL to load in the iframe. */
994
1948
  url: string;
1949
+ /** The title of the iframe. */
995
1950
  title: string;
1951
+ /** The icon for the iframe. */
996
1952
  icon: string;
1953
+ /** Whether to reuse the tab for the iframe. */
1954
+ reuse_tab?: boolean;
997
1955
  };
998
1956
 
999
1957
  declare interface IGlobalAttributes {
@@ -1073,19 +2031,73 @@ declare interface IJsonTabSetNode extends ITabSetAttributes {
1073
2031
  children: IJsonTabNode[];
1074
2032
  }
1075
2033
 
2034
+ /**
2035
+ * Represents information about an image.
2036
+ * @beta
2037
+ */
2038
+ export declare type ImageInfo = {
2039
+ /**
2040
+ * The blurhash of the image.
2041
+ */
2042
+ blurhash?: string;
2043
+ /**
2044
+ * The natural width of the image.
2045
+ */
2046
+ width: number;
2047
+ /**
2048
+ * The natural height of the image.
2049
+ */
2050
+ height: number;
2051
+ };
2052
+
2053
+ /**
2054
+ * Options for importing ZIP files.
2055
+ * @beta
2056
+ */
1076
2057
  export declare type ImportZipOptions = {
2058
+ /**
2059
+ * Whether to overwrite existing items.
2060
+ */
1077
2061
  overwrite?: boolean;
2062
+ /**
2063
+ * Target location for the import.
2064
+ */
1078
2065
  target?: string;
2066
+ /**
2067
+ * Whether to include content in the import.
2068
+ */
1079
2069
  include_content?: boolean;
2070
+ /**
2071
+ * Whether to include dashboards in the import.
2072
+ */
1080
2073
  include_dashboards?: boolean | 'if_missing';
1081
2074
  };
1082
2075
 
2076
+ /**
2077
+ * Represents an inheritance relationship between concepts.
2078
+ * @beta
2079
+ */
1083
2080
  export declare interface Inheritance {
2081
+ /**
2082
+ * The base concept in the inheritance.
2083
+ */
1084
2084
  base_concept: string;
2085
+ /**
2086
+ * The derived concept in the inheritance.
2087
+ */
1085
2088
  derived_concept: string;
2089
+ /**
2090
+ * The name will be displayed on ui
2091
+ */
2092
+ display_name: string;
1086
2093
  }
1087
2094
 
1088
- declare type InlineCode = {
2095
+ /**
2096
+ * @beta
2097
+ * Inline code.
2098
+ */
2099
+ export declare type InlineCode = {
2100
+ /** The inline code. */
1089
2101
  code: string;
1090
2102
  };
1091
2103
 
@@ -1155,37 +2167,91 @@ declare interface ItemSharedProps {
1155
2167
 
1156
2168
  declare type ItemType = SubMenuType | MenuItemType | MenuItemGroupType | MenuDividerType | null;
1157
2169
 
1158
- declare type JavascriptFileStylerDefinition = JavascriptType & FileCode;
2170
+ /**
2171
+ * @beta
2172
+ * Type representing a JavaScript file styler definition.
2173
+ */
2174
+ export declare type JavascriptFileStylerDefinition = JavascriptType & FileCode;
1159
2175
 
1160
- declare type JavascriptFileTransformDefinition = JavascriptType & FileCode;
2176
+ /**
2177
+ * @alpha
2178
+ * Type representing a JavaScript file transform definition. Not yet supported.
2179
+ */
2180
+ export declare type JavascriptFileTransformDefinition = JavascriptType & FileCode;
1161
2181
 
2182
+ /**
2183
+ * @beta
2184
+ * Type representing a JavaScript filter definition.
2185
+ */
1162
2186
  export declare type JavascriptFilterDefinition = {
2187
+ /** The type of the filter, always 'javascript' for this type. */
1163
2188
  type: 'javascript';
2189
+ /** The JavaScript code defining the filter. */
1164
2190
  code: string;
1165
2191
  };
1166
2192
 
1167
- declare type JavascriptInlineStylerDefinition = JavascriptType & InlineCode;
2193
+ /**
2194
+ * @beta
2195
+ * Type representing an inline JavaScript styler definition.
2196
+ */
2197
+ export declare type JavascriptInlineStylerDefinition = JavascriptType & InlineCode;
1168
2198
 
1169
- declare type JavascriptInlineTransformDefinition = JavascriptType & InlineCode;
2199
+ /**
2200
+ * @beta
2201
+ * Type representing an inline JavaScript transform definition.
2202
+ */
2203
+ export declare type JavascriptInlineTransformDefinition = JavascriptType & InlineCode;
1170
2204
 
1171
- declare type JavascriptType = {
2205
+ /**
2206
+ * @beta
2207
+ * Type representing a JavaScript transform definition.
2208
+ */
2209
+ export declare type JavascriptType = {
2210
+ /** The type of the transform or styler, always 'javascript' for this type. */
1172
2211
  type: 'javascript';
1173
2212
  };
1174
2213
 
1175
- declare type JobManifest = {
2214
+ /**
2215
+ * @beta
2216
+ * Type representing a job manifest.
2217
+ */
2218
+ export declare type JobManifest = {
2219
+ /** Name of the job. */
1176
2220
  name: string;
2221
+ /** Description of the job. */
1177
2222
  description: string;
2223
+ /** Icon for the job. */
1178
2224
  icon: string;
2225
+ /** Optional image for the job. */
1179
2226
  image?: string;
2227
+ /** Optional engine for the job. */
2228
+ engine?: 'k8s' | 's3' | 'reactlive';
2229
+ /** Optional template for the job. */
2230
+ template?: string;
2231
+ /** Optional variant for the job. */
2232
+ variant?: string;
2233
+ /** Optional instance type for the job. */
1180
2234
  instance_type?: string;
2235
+ /** Whether to skip archiving the job. */
1181
2236
  no_archive?: boolean;
2237
+ /** Whether to generate a URL from logs. */
1182
2238
  url_from_logs?: boolean;
2239
+ /** How the app is semantically bound */
2240
+ semantic_bindings?: SemanticBindings;
2241
+ /** Optional collection of transforms for the job. */
1183
2242
  transforms?: TransformDefinitions;
2243
+ /** Optional collection of filters for the job. */
1184
2244
  filters?: FilterDefinitions;
2245
+ /** Optional collection of stylers for the job. */
1185
2246
  stylers?: StylerDefinitions;
2247
+ /** Optional collection of services for the job. */
1186
2248
  services?: ServiceDefinitions;
1187
2249
  };
1188
2250
 
2251
+ /**
2252
+ * @beta
2253
+ * Type representing known counts of relationships.
2254
+ */
1189
2255
  export declare type KnownCounts = {
1190
2256
  [relationship_name: string]: number;
1191
2257
  };
@@ -1230,12 +2296,25 @@ declare interface MenuTitleInfo {
1230
2296
  domEvent: React_2.MouseEvent<HTMLElement> | React_2.KeyboardEvent<HTMLElement>;
1231
2297
  }
1232
2298
 
2299
+ /**
2300
+ * @beta
2301
+ * Type representing the properties for a modal template, extending CustomTemplateIframeProps.
2302
+ */
1233
2303
  export declare type ModalTemplateProps = CustomTemplateIframeProps & {
2304
+ /** Optional properties for the modal. */
1234
2305
  modalProps?: ModalProps;
2306
+ /** Whether the modal is open. */
1235
2307
  isModalOpen: boolean;
2308
+ /**
2309
+ * Function to set the open state of the modal.
2310
+ * @param open - The new open state of the modal.
2311
+ */
1236
2312
  setIsModalOpen: (open: boolean) => void;
2313
+ /** Callback function to be called on completion. */
1237
2314
  onComplete?: () => void;
2315
+ /** Callback function to be called on cancel. */
1238
2316
  onCancel?: () => void;
2317
+ /** The task ID associated with the modal. */
1239
2318
  taskID?: string;
1240
2319
  };
1241
2320
 
@@ -1311,10 +2390,26 @@ declare class Model {
1311
2390
  toString(): string;
1312
2391
  }
1313
2392
 
2393
+ /**
2394
+ * Represents a named group (set?) entities.
2395
+ * @beta
2396
+ */
1314
2397
  export declare type NamedEntityGroup = {
2398
+ /**
2399
+ * The label for the entity group.
2400
+ */
1315
2401
  entity_label: string;
2402
+ /**
2403
+ * The query to provide the entites
2404
+ */
1316
2405
  query: ConceptFilter;
2406
+ /**
2407
+ * The count of entities in the group.
2408
+ */
1317
2409
  count: number;
2410
+ /**
2411
+ * The type of the entity group, always set to 'group'.
2412
+ */
1318
2413
  type: 'group';
1319
2414
  };
1320
2415
 
@@ -1332,13 +2427,27 @@ declare abstract class Node_2 {
1332
2427
  abstract toJson(): IJsonRowNode | IJsonBorderNode | IJsonTabSetNode | IJsonTabNode | undefined;
1333
2428
  }
1334
2429
 
1335
- declare type NunjucksFileTransformDefinition = NunjucksType & FileCode;
2430
+ /**
2431
+ * @alpha
2432
+ * Type representing a Nunjucks file transform definition. Not yet supported.
2433
+ */
2434
+ export declare type NunjucksFileTransformDefinition = NunjucksType & FileCode;
1336
2435
 
1337
- declare type NunjucksInlineTransformDefinition = NunjucksType & {
2436
+ /**
2437
+ * @beta
2438
+ * Type representing an inline Nunjucks transform definition.
2439
+ */
2440
+ export declare type NunjucksInlineTransformDefinition = NunjucksType & {
2441
+ /** The Nunjucks template. */
1338
2442
  template: string;
1339
2443
  };
1340
2444
 
2445
+ /**
2446
+ * @beta
2447
+ * Type representing a Nunjucks transform definition.
2448
+ */
1341
2449
  declare type NunjucksType = {
2450
+ /** The type of the transform or styler, always 'nunjucks' for this type. */
1342
2451
  type: 'nunjucks';
1343
2452
  };
1344
2453
 
@@ -2397,30 +3506,143 @@ declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string
2397
3506
  WebkitBoxPack?: Property_2.BoxPack | undefined;
2398
3507
  }
2399
3508
 
3509
+ /**
3510
+ * @beta
3511
+ * Interface representing ontology operations.
3512
+ */
2400
3513
  export declare interface Ontology {
3514
+ /**
3515
+ * Cancels queries in the given context.
3516
+ * @param context - The context in which to cancel queries.
3517
+ * @returns A promise that resolves when the operation is complete.
3518
+ */
2401
3519
  cancelQueries: (context: string) => Promise<void>;
3520
+ /**
3521
+ * Gets the available ontologies.
3522
+ * @returns A promise that resolves to an array of available ontology names.
3523
+ */
2402
3524
  getAvailableOntologies: () => Promise<string[]>;
3525
+ /**
3526
+ * Gets workspace relationship records for a given entity and relationship.
3527
+ * @param entity - The entity for which to get relationship records.
3528
+ * @param rel - The relationship or relationship name.
3529
+ * @returns A promise that resolves to an array of workspace relationships.
3530
+ */
2403
3531
  getWorkspaceRelationshipRecords(entity: Entity, rel: string | Relationship): Promise<WorkspaceRelationship[]>;
2404
- clearRelationshipCache: (entity: Entity, relationship: Relationship | string) => Promise<void>;
3532
+ /**
3533
+ * Clears the relationship cache for a given entity and relationship.
3534
+ * @param entity - The entity for which to clear the cache.
3535
+ * @param relationship - The relationship or relationship name.
3536
+ * @param inverse - Whether to clear the inverse relationship cache.
3537
+ * @returns A promise that resolves when the operation is complete.
3538
+ */
3539
+ clearRelationshipCache: (entity: Entity, relationship: Relationship | string, inverse?: boolean) => Promise<void>;
3540
+ /**
3541
+ * Gets connected entities for a given entity and relationship.
3542
+ * @param entity - The entity for which to get connected entities.
3543
+ * @param relationship - The relationship or relationship name.
3544
+ * @param forceRefresh - Whether to force a refresh of the data.
3545
+ * @returns A promise that resolves to an array of connected entities.
3546
+ */
2405
3547
  getConnectedEntities: <T extends Entity>(entity: Entity, relationship: Relationship | string, forceRefresh?: boolean) => Promise<T[]>;
3548
+ /**
3549
+ * Gets a concept by its name.
3550
+ * @param conceptName - The name of the concept.
3551
+ * @returns A promise that resolves to the concept or undefined if not found.
3552
+ */
2406
3553
  getConceptByName: (conceptName: string) => Promise<Concept | undefined>;
3554
+ /**
3555
+ * Gets all concepts.
3556
+ * @returns A promise that resolves to a map of concept names to concepts.
3557
+ */
2407
3558
  getConcepts: () => Promise<Map<string, Concept>>;
3559
+ /**
3560
+ * Gets an entity.
3561
+ * @param e - The entity to get.
3562
+ * @param refresh - Whether to refresh the data.
3563
+ * @param skipSideEffects - Whether to skip side effects.
3564
+ * @returns A promise that resolves to the entity.
3565
+ */
2408
3566
  getEntity: <T extends Entity>(e: Entity, refresh?: boolean, skipSideEffects?: boolean) => Promise<T>;
3567
+ /**
3568
+ * Gets the name of the ontology.
3569
+ * @returns A promise that resolves to the name of the ontology.
3570
+ */
2409
3571
  getOntologyName: () => Promise<string>;
3572
+ /**
3573
+ * Gets the relationship count for a given entity and relationship.
3574
+ * @param entity - The entity for which to get the relationship count.
3575
+ * @param rel - The relationship or relationship name.
3576
+ * @param forceRefresh - Whether to force a refresh of the data.
3577
+ * @returns A promise that resolves to the relationship count result.
3578
+ */
2410
3579
  getRelationshipCount: (entity: Entity, rel: Relationship | string, forceRefresh?: boolean) => Promise<RelationshipCountResult>;
3580
+ /**
3581
+ * Gets the concept for a given entity.
3582
+ * @param entity - The entity for which to get the concept.
3583
+ * @returns A promise that resolves to the concept or undefined if not found.
3584
+ */
2411
3585
  getConceptForEntity: (entity: Entity) => Promise<Concept | undefined>;
3586
+ /**
3587
+ * Gets the relationships for a given entity.
3588
+ * @param entity - The entity for which to get relationships.
3589
+ * @returns A promise that resolves to an array of relationships.
3590
+ */
2412
3591
  getRelationshipsForEntity: (entity: Entity) => Promise<Relationship[]>;
3592
+ /**
3593
+ * Sends a query.
3594
+ * @param query - The query string.
3595
+ * @param options - Optional options for sending the query.
3596
+ * @returns A promise that resolves to the query response.
3597
+ */
2413
3598
  sendQuery: (query: string, options?: SendQueryOptions) => Promise<QueryResponse>;
3599
+ /**
3600
+ * Sends a query with a typed response.
3601
+ * @param query - The query string.
3602
+ * @param options - Optional options for sending the query.
3603
+ * @param force_refresh - Whether to force a refresh of the data.
3604
+ * @returns A promise that resolves to an array of results.
3605
+ */
2414
3606
  sendQueryT: <T>(query: string, options?: SendQueryOptions, force_refresh?: boolean) => Promise<T[]>;
3607
+ /**
3608
+ * Gets the system inheritance.
3609
+ * @returns A promise that resolves to an array of inheritances.
3610
+ */
2415
3611
  getSysInheritance(): Promise<Inheritance[]>;
3612
+ /**
3613
+ * Subscribes to changes for a given entity.
3614
+ * @param entity - The entity to subscribe to.
3615
+ * @param callback - The callback to invoke on changes.
3616
+ * @returns A promise that resolves to an unsubscribe function.
3617
+ */
2416
3618
  subscribe: <T>(entity: Entity, callback: Callback<T>) => Promise<Unsubscribe>;
3619
+ /**
3620
+ * Generates a consistent UUID.
3621
+ * @param name - The name for which to generate the UUID.
3622
+ * @param namespace - Optional namespace for the UUID.
3623
+ * @returns A promise that resolves to the UUID.
3624
+ */
2417
3625
  consistentUUID: (name: string, namespace?: string) => Promise<string>;
3626
+ /**
3627
+ * Updates the cache with the given entities.
3628
+ * @param entities - The entities to update in the cache.
3629
+ * @returns A promise that resolves to the updated entities.
3630
+ */
3631
+ updateCache: (entities: (Entity & WorkspaceItem)[]) => Promise<(Entity & WorkspaceItem)[]>;
2418
3632
  }
2419
3633
 
3634
+ /**
3635
+ * @beta
3636
+ * Type representing tags associated with an ontology.
3637
+ */
2420
3638
  export declare type OntologyTags = {
3639
+ /** The target type of the tag. */
2421
3640
  target_type: string;
3641
+ /** The target name of the tag. */
2422
3642
  target_name: string;
3643
+ /** The name of the tag. */
2423
3644
  tag_name: string;
3645
+ /** The value of the tag. */
2424
3646
  tag_value: string;
2425
3647
  };
2426
3648
 
@@ -2436,61 +3658,210 @@ export declare const OS_CONFIRM_MODAL_CANCEL: undefined;
2436
3658
 
2437
3659
  export declare const OS_CONFIRM_MODAL_NO = false;
2438
3660
 
3661
+ /**
3662
+ * Response type for confirmation modal.
3663
+ * @beta
3664
+ */
2439
3665
  export declare type OS_CONFIRM_MODAL_RESPONSE = typeof OS_CONFIRM_MODAL_YES | typeof OS_CONFIRM_MODAL_NO | typeof OS_CONFIRM_MODAL_CANCEL;
2440
3666
 
2441
3667
  export declare const OS_CONFIRM_MODAL_YES = true;
2442
3668
 
3669
+ /**
3670
+ * Represents audit fields for OS (Operational Support) records.
3671
+ * @beta
3672
+ */
2443
3673
  export declare type OsAuditFields = {
3674
+ /**
3675
+ * User who created the record.
3676
+ */
2444
3677
  os_created_by?: string;
3678
+ /**
3679
+ * Timestamp when the record was created.
3680
+ */
2445
3681
  os_created_at?: string;
3682
+ /**
3683
+ * User who deleted the record.
3684
+ */
2446
3685
  os_deleted_by?: string;
3686
+ /**
3687
+ * Timestamp when the record was deleted.
3688
+ */
2447
3689
  os_deleted_at?: string;
3690
+ /**
3691
+ * User who hid the record.
3692
+ */
2448
3693
  os_hidden_by?: string;
3694
+ /**
3695
+ * Timestamp when the record was hidden.
3696
+ */
2449
3697
  os_hidden_at?: string;
3698
+ /**
3699
+ * User who last updated the record.
3700
+ */
2450
3701
  os_last_updated_by?: string;
3702
+ /**
3703
+ * Timestamp when the record was last updated.
3704
+ */
2451
3705
  os_last_updated_at?: string;
2452
3706
  };
2453
3707
 
3708
+ /**
3709
+ * Properties for confirmation modal.
3710
+ * @beta
3711
+ */
2454
3712
  export declare type OsConfirmProps = string | {
3713
+ /**
3714
+ * Title of the confirmation modal.
3715
+ */
2455
3716
  title: string;
3717
+ /**
3718
+ * Icon for the confirmation modal.
3719
+ */
2456
3720
  icon?: string;
3721
+ /**
3722
+ * Content of the confirmation modal.
3723
+ */
2457
3724
  content?: string;
3725
+ /**
3726
+ * Text for the OK button.
3727
+ */
2458
3728
  okText?: string;
3729
+ /**
3730
+ * Properties for the OK button.
3731
+ */
2459
3732
  okButtonProps?: ButtonProps;
3733
+ /**
3734
+ * Text for the cancel button.
3735
+ */
2460
3736
  cancelText?: string;
3737
+ /**
3738
+ * Task ID related to the confirmation modal.
3739
+ */
2461
3740
  taskID?: string;
2462
3741
  };
2463
3742
 
3743
+ /**
3744
+ * Type for notifications.
3745
+ * @beta
3746
+ */
2464
3747
  export declare type OsNotification = string | {
3748
+ /**
3749
+ * ID of the notification.
3750
+ */
2465
3751
  id?: string;
3752
+ /**
3753
+ * Message of the notification.
3754
+ */
2466
3755
  message: string | ReactNode;
3756
+ /**
3757
+ * Description of the notification.
3758
+ */
2467
3759
  description?: string;
3760
+ /**
3761
+ * Level of the notification.
3762
+ */
2468
3763
  level?: 'info' | 'success' | 'error' | 'warning';
3764
+ /**
3765
+ * Additional details for the notification.
3766
+ */
3767
+ detail?: {
3768
+ [key: string]: any;
3769
+ };
3770
+ /**
3771
+ * Placement of the notification.
3772
+ */
2469
3773
  placement?: 'top' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
2470
3774
  };
2471
3775
 
3776
+ /**
3777
+ * Type for progress information.
3778
+ * @beta
3779
+ */
2472
3780
  export declare type OsProgress = {
3781
+ /**
3782
+ * Key for the progress item.
3783
+ */
2473
3784
  key: string;
3785
+ /**
3786
+ * Label for the progress item.
3787
+ */
2474
3788
  label?: ReactNode;
3789
+ /**
3790
+ * Type of job for the progress item.
3791
+ */
2475
3792
  job_type?: string;
3793
+ /**
3794
+ * Status of the progress item.
3795
+ */
2476
3796
  status?: 'active' | 'success' | 'exception' | 'normal' | undefined;
2477
3797
  };
2478
3798
 
3799
+ /**
3800
+ * Represents a tag in the workspace.
3801
+ * @beta
3802
+ */
2479
3803
  export declare type OsTag = WorkspaceRecord & TagAttributes;
2480
3804
 
3805
+ /**
3806
+ * Represents a workspace entity.
3807
+ * @beta
3808
+ */
2481
3809
  export declare type OsWorkspaceEntity = Entity & WorkspaceRecordIdentifier;
2482
3810
 
3811
+ /**
3812
+ * @beta
3813
+ * Type representing a workspace item with its settings.
3814
+ */
3815
+ export declare type OsWorkspacePickerProps = {
3816
+ onChange: (value: string) => void;
3817
+ desktop: any;
3818
+ openWorkspacesOnly?: boolean;
3819
+ defaultWorkspace?: string;
3820
+ checkActiveWorkspace?: boolean;
3821
+ permissions?: WorkspacePermissionValue;
3822
+ dashboardOptions?: {
3823
+ value: string;
3824
+ label: string;
3825
+ }[];
3826
+ };
3827
+
3828
+ /**
3829
+ * Options for pasting context.
3830
+ * @beta
3831
+ */
2483
3832
  export declare type PasteContextOptions = {
3833
+ /**
3834
+ * First limit for the context.
3835
+ */
2484
3836
  limit1?: number;
3837
+ /**
3838
+ * Second limit for the context.
3839
+ */
2485
3840
  limit2?: number;
3841
+ /**
3842
+ * Record for the context.
3843
+ */
2486
3844
  record?: Entity;
3845
+ /**
3846
+ * Records for the context.
3847
+ */
2487
3848
  records?: Entity[];
3849
+ /**
3850
+ * Query for the context.
3851
+ */
2488
3852
  query?: ConceptFilter;
2489
3853
  };
2490
3854
 
3855
+ /**
3856
+ * @beta
3857
+ * Type representing a permission for a workspace item.
3858
+ */
2491
3859
  export declare type Permission = WorkspaceItem & {
3860
+ /** The username associated with the permission. */
2492
3861
  os_username?: string;
3862
+ /** The permission value. */
2493
3863
  os_permission: number;
3864
+ /** The role associated with the permission. */
2494
3865
  os_role?: string;
2495
3866
  };
2496
3867
 
@@ -2499,8 +3870,14 @@ export declare type Permission = WorkspaceItem & {
2499
3870
  */
2500
3871
  declare type PhysicalColumn = string;
2501
3872
 
3873
+ /**
3874
+ * @beta
3875
+ * Type representing a point in 2D space.
3876
+ */
2502
3877
  export declare type Point = {
3878
+ /** The x-coordinate of the point. */
2503
3879
  x: number;
3880
+ /** The y-coordinate of the point. */
2504
3881
  y: number;
2505
3882
  };
2506
3883
 
@@ -2510,9 +3887,22 @@ VendorProperties<TLength, TTime>,
2510
3887
  ObsoleteProperties<TLength, TTime>,
2511
3888
  SvgProperties<TLength, TTime> {}
2512
3889
 
3890
+ /**
3891
+ * Represents a property of a concept.
3892
+ * @beta
3893
+ */
2513
3894
  export declare interface Property {
3895
+ /**
3896
+ * The concept to which the property belongs.
3897
+ */
2514
3898
  concept: string;
3899
+ /**
3900
+ * The name of the property.
3901
+ */
2515
3902
  property_name: string;
3903
+ /**
3904
+ * The type of the property.
3905
+ */
2516
3906
  property_type: string;
2517
3907
  }
2518
3908
 
@@ -4260,43 +5650,106 @@ declare namespace Property_2 {
4260
5650
  type VectorEffect = Globals | "non-scaling-stroke" | "none";
4261
5651
  }
4262
5652
 
5653
+ /**
5654
+ * @beta
5655
+ * Type representing a filter definition that is provided.
5656
+ */
4263
5657
  export declare type ProvidedFilterDefinition = {
5658
+ /** The type of the filter, always 'provided' for this type. */
4264
5659
  type: 'provided';
4265
5660
  };
4266
5661
 
4267
- declare type ProvidedTransformDefinition = {
5662
+ /**
5663
+ * @beta
5664
+ * Type representing a provided transform definition.
5665
+ */
5666
+ export declare type ProvidedTransformDefinition = {
5667
+ /** The type of the transform, always 'provided' for this type. */
4268
5668
  type: 'provided';
4269
5669
  };
4270
5670
 
4271
- declare type PythonFileStylerDefinition = PythonType & FileCode;
5671
+ /**
5672
+ * @beta
5673
+ * Type representing a Python file styler definition.
5674
+ */
5675
+ export declare type PythonFileStylerDefinition = PythonType & FileCode;
4272
5676
 
4273
- declare type PythonFileTransformDefinition = PythonType & FileCode;
5677
+ /**
5678
+ * @alpha
5679
+ * Type representing a Python file transform definition. Not yet supported.
5680
+ */
5681
+ export declare type PythonFileTransformDefinition = PythonType & FileCode;
4274
5682
 
5683
+ /**
5684
+ * @beta
5685
+ * Type representing a Python filter definition.
5686
+ */
4275
5687
  export declare type PythonFilterDefinition = {
5688
+ /** The type of the filter, always 'python' for this type. */
4276
5689
  type: 'python';
5690
+ /** The Python code defining the filter. */
4277
5691
  code: string;
4278
5692
  };
4279
5693
 
4280
- declare type PythonInlineStylerDefinition = PythonType & InlineCode;
5694
+ /**
5695
+ * @beta
5696
+ * Type representing an inline Python styler definition.
5697
+ */
5698
+ export declare type PythonInlineStylerDefinition = PythonType & InlineCode;
4281
5699
 
4282
- declare type PythonInlineTransformDefinition = PythonType & InlineCode;
5700
+ /**
5701
+ * @beta
5702
+ * Type representing an inline Python transform definition.
5703
+ */
5704
+ export declare type PythonInlineTransformDefinition = PythonType & InlineCode;
4283
5705
 
4284
- declare type PythonType = {
5706
+ /**
5707
+ * @beta
5708
+ * Type representing a Python file transform definition.
5709
+ */
5710
+ export declare type PythonType = {
5711
+ /** The type of the transform or styler, always 'python' for this type. */
4285
5712
  type: 'python';
4286
5713
  };
4287
5714
 
5715
+ /**
5716
+ * @beta
5717
+ * Type representing a query, which can be a string or a function returning a promise.
5718
+ */
4288
5719
  export declare type Query = string | (() => Promise<string | string[] | undefined>);
4289
5720
 
5721
+ /**
5722
+ * @beta
5723
+ * Type representing a batch query result, which includes a query ID.
5724
+ * @template T - The type of the data returned in case of success.
5725
+ */
4290
5726
  export declare type QueryBatchResult<T> = (QuerySuccessResult<T> | QueryErrorResult) & {
5727
+ /** The ID of the query. */
4291
5728
  query_id: string;
4292
5729
  };
4293
5730
 
5731
+ /**
5732
+ * @beta
5733
+ * Type representing an error query result.
5734
+ */
4294
5735
  export declare type QueryErrorResult = {
5736
+ /** The status of the query result, always 'error' for this type. */
4295
5737
  status: 'error';
5738
+ /** The error message or data. */
4296
5739
  data: string;
4297
5740
  };
4298
5741
 
5742
+ /**
5743
+ * @beta
5744
+ * Interface representing a query executor.
5745
+ */
4299
5746
  export declare type QueryExecutor = {
5747
+ /**
5748
+ * Sends a query.
5749
+ * @param query - The query to send.
5750
+ * @param options - Optional options for sending the query.
5751
+ * @returns A promise that resolves to the query response.
5752
+ */
4300
5753
  sendQuery: (query: Query, options?: SendQueryOptions) => Promise<QueryResponse>;
4301
5754
  };
4302
5755
 
@@ -4308,25 +5761,76 @@ declare type QueryFormColumn = PhysicalColumn | AdhocColumn;
4308
5761
 
4309
5762
  declare type QueryObjectFilterClause = BinaryQueryObjectFilterClause | SetQueryObjectFilterClause | UnaryQueryObjectFilterClause;
4310
5763
 
5764
+ /**
5765
+ * @beta
5766
+ * Type representing a query response, which is an array of any type.
5767
+ */
4311
5768
  export declare type QueryResponse = any[];
4312
5769
 
5770
+ /**
5771
+ * @beta
5772
+ * Type representing a query result, which is an API result containing an array of any type.
5773
+ */
4313
5774
  export declare type QueryResult = ApiResult<any[]>;
4314
5775
 
5776
+ /**
5777
+ * @beta
5778
+ * Type representing a successful query result.
5779
+ * @template T - The type of the data returned.
5780
+ */
4315
5781
  export declare type QuerySuccessResult<T> = {
5782
+ /** The status of the query result, always 'success' for this type. */
4316
5783
  status: 'success';
5784
+ /** The data returned by the query. */
4317
5785
  data: T[];
4318
5786
  };
4319
5787
 
4320
5788
  declare type ReactCssProperties = Properties<string | number>;
4321
5789
 
5790
+ /**
5791
+ * Represents a React node.
5792
+ */
4322
5793
  declare type ReactNode = any;
4323
5794
 
4324
5795
  declare type ReactRef<T> = RefCallback<T> | RefObject<T> | null;
4325
5796
 
5797
+ /**
5798
+ * Represents a boolean value with an optional reason.
5799
+ * @beta
5800
+ */
5801
+ export declare type ReasonedBoolean = {
5802
+ value: true;
5803
+ } | {
5804
+ value: false;
5805
+ reason: string;
5806
+ };
5807
+
5808
+ /**
5809
+ * Interface for providing records.
5810
+ * @beta
5811
+ */
4326
5812
  export declare interface RecordProvider {
5813
+ /**
5814
+ * Retrieves the total count of records.
5815
+ * @returns A promise that resolves to the number of records.
5816
+ */
4327
5817
  getCount: () => Promise<number>;
5818
+ /**
5819
+ * Retrieves a specific record by its index.
5820
+ * @param i - The index of the record to retrieve.
5821
+ * @returns A promise that resolves to the requested record.
5822
+ */
4328
5823
  getRecord: (i: number) => Promise<Entity>;
5824
+ /**
5825
+ * Optional method to handle deletion of a record.
5826
+ * @param entity - The entity to delete.
5827
+ * @returns A promise that resolves when the deletion is complete.
5828
+ */
4329
5829
  onDelete?: (entity: Entity) => Promise<void>;
5830
+ /**
5831
+ * Retrieves a message related to the records.
5832
+ * @returns A promise that resolves to the message, or undefined if no message is available.
5833
+ */
4330
5834
  getMessage(): Promise<string | undefined>;
4331
5835
  }
4332
5836
 
@@ -4367,41 +5871,96 @@ declare interface RefObject<T> {
4367
5871
  readonly current: T | null;
4368
5872
  }
4369
5873
 
5874
+ /**
5875
+ * Represents a relationship between concepts.
5876
+ * @beta
5877
+ */
4370
5878
  export declare interface Relationship {
5879
+ /**
5880
+ * Unique identifier for the relationship.
5881
+ */
4371
5882
  key: string;
5883
+ /**
5884
+ * Source concept in the relationship.
5885
+ */
4372
5886
  concept: string;
5887
+ /**
5888
+ * Target concept in the relationship.
5889
+ */
4373
5890
  target_concept: string;
5891
+ /**
5892
+ * Name of the relationship.
5893
+ */
4374
5894
  relationship_name: string;
5895
+ /**
5896
+ * Inverse name of the relationship.
5897
+ */
4375
5898
  inverse_name: string;
5899
+ /**
5900
+ * Properties of the source concept.
5901
+ */
4376
5902
  source_properties: string;
5903
+ /**
5904
+ * Properties of the target concept.
5905
+ */
4377
5906
  target_properties: string;
5907
+ /**
5908
+ * Name of the mapping.
5909
+ */
4378
5910
  mapping_name: string;
5911
+ /**
5912
+ * Additional properties associated with the relationship.
5913
+ */
4379
5914
  additional_properties: string;
5915
+ /**
5916
+ * Query used for mapping the relationship.
5917
+ */
4380
5918
  mapping_query: string;
5919
+ /**
5920
+ * Tables involved in the relationship.
5921
+ */
4381
5922
  tables: string;
5923
+ /**
5924
+ * JSON representation of the mapping.
5925
+ */
4382
5926
  mapping_json: string;
5927
+ /**
5928
+ * Indicates if the relationship is inverse (1 for true, 0 for false).
5929
+ */
4383
5930
  is_inverse: number;
5931
+ /**
5932
+ * Indicates if the relationship is many-to-many (1 for true, 0 for false).
5933
+ */
4384
5934
  is_mtm: number;
5935
+ /**
5936
+ * Transitivity property of the relationship.
5937
+ */
4385
5938
  transitivity: number;
5939
+ /**
5940
+ * Identifier for the data source.
5941
+ */
4386
5942
  datasource_id: string;
5943
+ /**
5944
+ * Sort order for the relationship.
5945
+ */
4387
5946
  sort_order: number;
5947
+ /**
5948
+ * Description of the relationship (optional).
5949
+ */
4388
5950
  description?: string;
4389
5951
  }
4390
5952
 
5953
+ /**
5954
+ * @beta
5955
+ * Type representing the result of a relationship count operation.
5956
+ */
4391
5957
  export declare type RelationshipCountResult = {
5958
+ /** The count of the relationships. */
4392
5959
  count: number;
5960
+ /** Whether the count is expired. */
4393
5961
  expired?: boolean;
4394
5962
  };
4395
5963
 
4396
- export declare type RemoteAppApi = {
4397
- subscribeToContext: SubscribeToContextFn;
4398
- unsubscribeFromContext: UnsubscribeFromContextFn;
4399
- subscribeToDragStart: SubscribeDragStartFn;
4400
- unsubscribeFromDragStart: UnsubscribeFromDragStartFn;
4401
- dropZoneRequest: DropZoneRequestFn;
4402
- setTransformResult: SetTransformResultFn;
4403
- };
4404
-
4405
5964
  declare interface RenderIconInfo {
4406
5965
  isSelected?: boolean;
4407
5966
  isOpen?: boolean;
@@ -4420,72 +5979,187 @@ declare class RowNode extends Node_2 implements IDropTarget {
4420
5979
  isEnableDrop(): boolean;
4421
5980
  }
4422
5981
 
5982
+ /**
5983
+ * Properties for saving as modal.
5984
+ * @beta
5985
+ */
5986
+ export declare type SaveAsModalProps = {
5987
+ /**
5988
+ * Item to be saved.
5989
+ */
5990
+ item: WorkspaceItem;
5991
+ /**
5992
+ * Application related to the item.
5993
+ */
5994
+ app?: WorkspaceItem;
5995
+ };
5996
+
5997
+ /**
5998
+ * @beta
5999
+ * Type representing a saved template, extending CustomTemplate.
6000
+ */
4423
6001
  export declare type SavedTemplate = CustomTemplate & {
6002
+ /** The unique identifier for the entity. */
4424
6003
  os_entity_uid: string;
6004
+ /** The workspace to which the template belongs. */
4425
6005
  os_workspace: string;
4426
6006
  };
4427
6007
 
6008
+ /**
6009
+ * Options for saving a file.
6010
+ * @beta
6011
+ */
4428
6012
  export declare type SaveFileOptions = {
6013
+ /**
6014
+ * Path to save the file.
6015
+ */
4429
6016
  path?: string | undefined;
4430
6017
  };
4431
6018
 
6019
+ /**
6020
+ * Options for saving an item.
6021
+ * @beta
6022
+ */
4432
6023
  export declare type SaveOptions = SaveFileOptions & {
6024
+ /**
6025
+ * Whether to save as a draft.
6026
+ */
4433
6027
  draft?: boolean;
6028
+ /**
6029
+ * Whether to save as a new file.
6030
+ */
4434
6031
  saveAs?: boolean;
6032
+ /**
6033
+ * Application related to the item.
6034
+ */
4435
6035
  app?: WorkspaceItem;
4436
6036
  };
4437
6037
 
6038
+ /**
6039
+ * @beta
6040
+ * Interface representing the properties for the Search component.
6041
+ */
6042
+ export declare interface SearchProps {
6043
+ /**
6044
+ * the query string to search for.
6045
+ */
6046
+ q?: string;
6047
+ /**
6048
+ * the label for the submit button.
6049
+ */
6050
+ submitButtonLabel?: string;
6051
+ }
6052
+
6053
+ /**
6054
+ * @beta
6055
+ * Interface representing the properties for the SearchXperienceModal component, extending SearchXperienceProps.
6056
+ */
4438
6057
  export declare interface SearchXperienceModalProps extends SearchXperienceProps {
6058
+ /** Whether the modal is open. */
4439
6059
  open?: boolean | undefined;
6060
+ /**
6061
+ * Callback function to be called when the modal is closed.
6062
+ * @param entities - The entities selected in the search experience.
6063
+ * @returns A void or undefined.
6064
+ */
4440
6065
  onClose: (entities: Entity[]) => void | undefined;
4441
6066
  }
4442
6067
 
6068
+ /**
6069
+ * @beta
6070
+ * Interface representing the properties for the SearchXperience component.
6071
+ */
4443
6072
  export declare interface SearchXperienceProps {
6073
+ /** The title of the search experience. */
4444
6074
  title?: string | undefined;
6075
+ /** The default concepts for the search experience. */
4445
6076
  defaultConcept?: string[] | undefined;
6077
+ /** Whether to disable the concept selector. */
4446
6078
  disableConceptSelector?: boolean | undefined;
6079
+ /** The task ID associated with the search experience. */
4447
6080
  taskID?: string;
6081
+ /** The default search fields for the search experience. */
4448
6082
  defaultSearchFields?: {
4449
6083
  entity_label?: string;
4450
6084
  os_textsearchfield?: string;
4451
6085
  };
4452
6086
  }
4453
6087
 
6088
+ /**
6089
+ * @beta
6090
+ * Type representing a semantically bound filter definition.
6091
+ */
4454
6092
  export declare type SemanticallyBoundFilterDefinition = {
6093
+ /** The type of the filter, always 'semantically_bound' for this type. */
4455
6094
  type: 'semantically_bound';
6095
+ /** The concepts that the filter is bound to. */
4456
6096
  concepts: string[];
4457
6097
  };
4458
6098
 
6099
+ export declare type SemanticBindings = {
6100
+ [k in SemanticBindingType]: string[];
6101
+ };
6102
+
6103
+ export declare type SemanticBindingType = 'record_viewer';
6104
+
6105
+ /**
6106
+ * @beta
6107
+ * Options for sending a query.
6108
+ */
4459
6109
  export declare type SendQueryOptions = {
6110
+ /** The context in which to send the query. */
4460
6111
  context?: string;
6112
+ /** Whether to send the query with low priority. */
4461
6113
  lowPriority?: boolean;
4462
6114
  };
4463
6115
 
4464
- declare type ServiceDefinition = {
6116
+ /**
6117
+ * @beta
6118
+ * Type representing a service definition.
6119
+ */
6120
+ export declare type ServiceDefinition = {
6121
+ /** Description of the service. */
4465
6122
  description: string;
6123
+ /** Label of the service. */
4466
6124
  label: string;
6125
+ /** Icon for the service. */
4467
6126
  icon: string;
6127
+ /** Optional group for the service. */
4468
6128
  group?: DesktopActionMenuItemGroup;
6129
+ /** Optional subgroup for the service. */
4469
6130
  subgroup?: string;
6131
+ /** Optional order for the service. */
4470
6132
  order?: number;
6133
+ /** Optional parameters for the service. */
4471
6134
  params?: {
4472
6135
  [k: string]: any;
4473
6136
  };
6137
+ /** Optional roles for the service. */
4474
6138
  role?: ServiceRole[] | ServiceRole;
6139
+ /** Filters accepted by the service. */
4475
6140
  accepts: FilterReference[];
6141
+ /** Transforms applied by the service. */
4476
6142
  transforms: string[];
4477
6143
  /**
4478
- * Whether to show progress bar when invoking this service
4479
- * Default is true
6144
+ * Whether to show a progress bar when invoking this service.
6145
+ * Default is true.
4480
6146
  */
4481
6147
  show_progress?: boolean;
4482
6148
  };
4483
6149
 
4484
- declare type ServiceDefinitions = {
6150
+ /**
6151
+ * @beta
6152
+ * Type representing a collection of service definitions.
6153
+ */
6154
+ export declare type ServiceDefinitions = {
4485
6155
  [serviceName: string]: ServiceDefinition;
4486
6156
  };
4487
6157
 
4488
- declare type ServiceRole = 'context_menu' | 'record_view' | 'set_view';
6158
+ /**
6159
+ * @beta
6160
+ * Type representing a service role.
6161
+ */
6162
+ export declare type ServiceRole = 'context_menu' | 'record_view' | 'set_view';
4489
6163
 
4490
6164
  /** List of operators that require another operand that is a set */
4491
6165
  declare const SET_OPERATORS: readonly ["IN", "NOT IN"];
@@ -4499,26 +6173,54 @@ declare type SetQueryObjectFilterClause = BaseQueryObjectFilterClause & {
4499
6173
  formattedVal?: string[];
4500
6174
  };
4501
6175
 
4502
- export declare type SetTransformResultFn = (args: any[]) => Promise<void>;
4503
-
6176
+ /**
6177
+ * @beta
6178
+ * Type representing the details of an ontology to be shown.
6179
+ */
4504
6180
  export declare type ShowOntology = {
6181
+ /** The concept of the ontology. */
4505
6182
  concept: string;
6183
+ /** The properties of the ontology. */
4506
6184
  properties: string | undefined;
6185
+ /** The primary keys of the ontology. */
4507
6186
  primary_keys: string | undefined;
6187
+ /** The label keys of the ontology. */
4508
6188
  label_keys: string | undefined;
6189
+ /** The inheritance of the ontology. */
4509
6190
  inheritance: string | undefined;
6191
+ /** The inheritance level of the ontology. */
4510
6192
  inheritance_level: number;
6193
+ /** The query associated with the ontology. */
4511
6194
  query: string | undefined;
6195
+ /** The description of the ontology. */
4512
6196
  description: string | undefined;
6197
+ /** The JSON representation of the query. */
4513
6198
  query_json: string | undefined;
4514
6199
  };
4515
6200
 
6201
+ /**
6202
+ * Properties for showing a tab.
6203
+ * @beta
6204
+ */
4516
6205
  export declare type ShowTabProps = {
6206
+ /**
6207
+ * Application related to the tab.
6208
+ */
4517
6209
  app: WorkspaceItem;
6210
+ /**
6211
+ * Item related to the tab.
6212
+ */
4518
6213
  item?: WorkspaceItem;
6214
+ /**
6215
+ * Options for showing the tab.
6216
+ */
4519
6217
  options?: DesktopActionOptions;
4520
6218
  };
4521
6219
 
6220
+ /**
6221
+ * Enum for sort order values.
6222
+ * @beta
6223
+ */
4522
6224
  export declare enum SortOrder {
4523
6225
  PREFERRED = 21,
4524
6226
  OTHER = 10,
@@ -10629,41 +12331,101 @@ declare interface StandardShorthandProperties<TLength = (string & {}) | 0, TTime
10629
12331
  viewTimeline?: Property_2.ViewTimeline | undefined;
10630
12332
  }
10631
12333
 
12334
+ /**
12335
+ * @alpha
12336
+ * Type representing a styler with methods for getting G6 node and edge styles.
12337
+ */
10632
12338
  export declare type Styler = {
12339
+ /**
12340
+ * Gets the style for a G6 node.
12341
+ * @param e - The entity for which to get the node style.
12342
+ * @param curr - The current style.
12343
+ * @returns A promise that resolves to the new style.
12344
+ */
10633
12345
  getG6NodeStyle?: (e: Entity, curr: TODO) => Promise<TODO>;
12346
+ /**
12347
+ * Gets the style for a G6 edge.
12348
+ * @param e - The edge specification for which to get the edge style.
12349
+ * @param curr - The current style.
12350
+ * @returns A promise that resolves to the new style.
12351
+ */
10634
12352
  getG6EdgeStyle?: (e: EdgeSpec, curr: TODO) => Promise<TODO>;
10635
12353
  };
10636
12354
 
12355
+ /**
12356
+ * @alpha
12357
+ * Type representing the configuration for a styler.
12358
+ */
10637
12359
  export declare type StylerConfig = StylerOption & {
12360
+ /** The name of the styler configuration. */
10638
12361
  name: string;
12362
+ /** The description of the styler configuration. */
10639
12363
  description: string;
12364
+ /** The initialization function for the styler. */
10640
12365
  init: StylerProducer;
12366
+ /** The optional destroy function for the styler. */
10641
12367
  destroy?: () => Promise<void>;
10642
12368
  };
10643
12369
 
12370
+ /**
12371
+ * @beta
12372
+ * Interface representing the context for a styler.
12373
+ */
10644
12374
  export declare interface StylerContext {
12375
+ /** The graph specification. */
10645
12376
  graph: GraphSpec;
12377
+ /** The selected graph specification. */
10646
12378
  selected: GraphSpec;
12379
+ /** The ontology API instance. */
10647
12380
  OntologyAPI: Ontology;
12381
+ /** The desktop API instance. */
10648
12382
  DesktopAPI: Desktop;
12383
+ /** The event emitter instance. */
10649
12384
  ee: EventEmitterType;
12385
+ /** The event topic prefix. */
10650
12386
  eventTopicPrefix: string;
12387
+ /**
12388
+ * Callback function to be called when the task is complete.
12389
+ * @param x - The styler instance.
12390
+ */
10651
12391
  onTaskComplete?: (x: Styler) => void;
12392
+ /** Callback function to be called when the task is canceled. */
10652
12393
  onTaskCanceled?: () => void;
12394
+ /** The task ID associated with the styler. */
10653
12395
  taskID?: string;
10654
12396
  }
10655
12397
 
10656
- declare type StylerDefinition = PythonFileStylerDefinition | PythonInlineStylerDefinition | JavascriptFileStylerDefinition | JavascriptInlineStylerDefinition;
12398
+ /**
12399
+ * @beta
12400
+ * Type representing a styler definition, which can be one of several specific types.
12401
+ */
12402
+ export declare type StylerDefinition = PythonFileStylerDefinition | PythonInlineStylerDefinition | JavascriptFileStylerDefinition | JavascriptInlineStylerDefinition;
10657
12403
 
10658
- declare type StylerDefinitions = {
12404
+ /**
12405
+ * @beta
12406
+ * Type representing a collection of styler definitions.
12407
+ */
12408
+ export declare type StylerDefinitions = {
10659
12409
  [stylerName: string]: StylerDefinition;
10660
12410
  };
10661
12411
 
12412
+ /**
12413
+ * @alpha
12414
+ * Type representing an option for a styler.
12415
+ */
10662
12416
  export declare type StylerOption = {
12417
+ /** The name of the styler option. */
10663
12418
  name: string;
12419
+ /** The description of the styler option. */
10664
12420
  description: string;
10665
12421
  };
10666
12422
 
12423
+ /**
12424
+ * @alpha
12425
+ * Type representing a function that produces a styler.
12426
+ * @param context - The context for the styler.
12427
+ * @returns A promise that resolves to the styler.
12428
+ */
10667
12429
  export declare type StylerProducer = (context: StylerContext) => Promise<Styler>;
10668
12430
 
10669
12431
  declare interface SubMenuType extends ItemSharedProps {
@@ -10684,10 +12446,6 @@ declare interface SubMenuType extends ItemSharedProps {
10684
12446
  onTitleMouseLeave?: MenuHoverEventHandler;
10685
12447
  }
10686
12448
 
10687
- export declare type SubscribeDragStartFn = (id: string, callback: Callback<unknown>) => void;
10688
-
10689
- export declare type SubscribeToContextFn = (id: string, callback: Callback<unknown>) => void;
10690
-
10691
12449
  declare interface SvgProperties<TLength = (string & {}) | 0, TTime = string & {}> {
10692
12450
  alignmentBaseline?: Property_2.AlignmentBaseline | undefined;
10693
12451
  baselineShift?: Property_2.BaselineShift<TLength> | undefined;
@@ -10820,47 +12578,118 @@ declare class TabSetNode extends Node_2 implements IDraggable, IDropTarget {
10820
12578
  toJson(): IJsonTabSetNode;
10821
12579
  }
10822
12580
 
12581
+ /**
12582
+ * Represents a tag with a name and value.
12583
+ * @beta
12584
+ */
10823
12585
  export declare type Tag = {
12586
+ /**
12587
+ * The name of the tag.
12588
+ */
10824
12589
  tag_name: string;
12590
+ /**
12591
+ * The value of the tag.
12592
+ */
10825
12593
  tag_value: string;
10826
12594
  };
10827
12595
 
12596
+ /**
12597
+ * Represents tag attributes with optional color and group.
12598
+ * @beta
12599
+ */
10828
12600
  export declare interface TagAttributes extends Colorful {
12601
+ /**
12602
+ * The group to which the tag belongs.
12603
+ */
10829
12604
  group?: string;
12605
+ /**
12606
+ * The order of the tag in the group.
12607
+ * Lower values are displayed first.
12608
+ */
10830
12609
  order?: number;
12610
+ /**
12611
+ * The id of the workspace in which the tag is stored.
12612
+ */
10831
12613
  os_workspace: string;
12614
+ /**
12615
+ * The name of the tag.
12616
+ */
10832
12617
  os_item_name: string;
10833
12618
  }
10834
12619
 
12620
+ /**
12621
+ * @beta
12622
+ * Type representing information about a tag.
12623
+ */
10835
12624
  export declare type TagInfo = {
12625
+ /** The tag string. */
10836
12626
  tag: string;
12627
+ /** The workspace associated with the tag. */
10837
12628
  os_workspace: string;
12629
+ /** The count of entities associated with the tag. */
10838
12630
  count: number;
12631
+ /** A sample of entities associated with the tag. */
10839
12632
  sample: Entity[];
12633
+ /** The entity representing the tag. */
10840
12634
  entity: OsTag;
10841
12635
  };
10842
12636
 
12637
+ /**
12638
+ * @beta
12639
+ * Type representing a tag with its associated relationship.
12640
+ */
10843
12641
  export declare type TagWithRelationship = {
12642
+ /** The workspace relationship associated with the tag. */
10844
12643
  os_workspace_relationship: WorkspaceRelationship;
12644
+ /** The tag entity. */
10845
12645
  os_tag: OsTag;
10846
12646
  };
10847
12647
 
12648
+ /**
12649
+ * Reasons for task cleanup.
12650
+ * @beta
12651
+ */
10848
12652
  export declare type TaskCleanupReason = 'canceled' | 'completed';
10849
12653
 
12654
+ /**
12655
+ * @beta
12656
+ * Type representing the metadata for a template.
12657
+ */
10850
12658
  export declare type TemplateMetadata = {
12659
+ /** The name of the template. */
10851
12660
  name: string;
12661
+ /** The description of the template. */
10852
12662
  description: string;
12663
+ /** The concepts associated with the template. */
10853
12664
  concepts: string[];
12665
+ /** The type of the template. */
10854
12666
  type: TemplateType;
12667
+ /** The layout of the template. */
12668
+ layout: string;
12669
+ /** The variant of the template. */
10855
12670
  variant: TemplateVariant;
12671
+ /** Optional blurhash for the template. */
10856
12672
  blurhash?: string;
12673
+ /** The parameter names required by the template. */
10857
12674
  parameterNames: string[];
12675
+ /** Optional CSS properties for the template. */
10858
12676
  style?: ReactCssProperties;
12677
+ /** Whether the template renders multiple records. */
10859
12678
  rendersMultipleRecords?: boolean;
12679
+ /** Whether the template is an app. */
12680
+ isApp?: boolean;
10860
12681
  };
10861
12682
 
12683
+ /**
12684
+ * @beta
12685
+ * Type representing the possible template types.
12686
+ */
10862
12687
  export declare type TemplateType = 'nunjucks' | 'javascript';
10863
12688
 
12689
+ /**
12690
+ * @beta
12691
+ * Type representing the possible template variants.
12692
+ */
10864
12693
  export declare type TemplateVariant = 'antd';
10865
12694
 
10866
12695
  /**
@@ -10890,21 +12719,47 @@ declare type TimeGranularity = ValueOf<typeof TimeGranularity>;
10890
12719
 
10891
12720
  declare type TODO = any;
10892
12721
 
12722
+ /**
12723
+ * @beta
12724
+ * Type representing a transformation action.
12725
+ * @param context - The context for the transformation action.
12726
+ * @returns The result of the transformation action.
12727
+ */
10893
12728
  export declare type TransformAction = (context: TransformActionContext) => any;
10894
12729
 
12730
+ /**
12731
+ * @beta
12732
+ * Context for a transformation action within the desktop environment.
12733
+ */
10895
12734
  export declare type TransformActionContext = DesktopActionContext & {
12735
+ /** The task ID associated with the transformation. */
10896
12736
  taskID: string;
12737
+ /** Function to be called when the task is canceled. */
10897
12738
  onTaskCanceled: () => Promise<void>;
12739
+ /** Function to be called when the task is completed. */
10898
12740
  onTaskComplete: (result: any) => Promise<void>;
12741
+ /** Function to call a transformation with additional context. */
10899
12742
  callTransform: (transform: string, extraContext: any) => Promise<any>;
10900
12743
  };
10901
12744
 
10902
- declare type TransformDefinition = ProvidedTransformDefinition | HttpTransformDefinition | IframeTransformDefinition | PythonFileTransformDefinition | PythonInlineTransformDefinition | JavascriptFileTransformDefinition | JavascriptInlineTransformDefinition | NunjucksFileTransformDefinition | NunjucksInlineTransformDefinition | EmitEventTransformDefinition;
12745
+ /**
12746
+ * @beta
12747
+ * Type representing a transform definition, which can be one of several specific types.
12748
+ */
12749
+ export declare type TransformDefinition = ProvidedTransformDefinition | HttpTransformDefinition | IframeTransformDefinition | PythonFileTransformDefinition | PythonInlineTransformDefinition | JavascriptFileTransformDefinition | JavascriptInlineTransformDefinition | NunjucksFileTransformDefinition | NunjucksInlineTransformDefinition | EmitEventTransformDefinition;
10903
12750
 
10904
- declare type TransformDefinitions = {
12751
+ /**
12752
+ * @beta
12753
+ * Type representing a collection of transform definitions.
12754
+ */
12755
+ export declare type TransformDefinitions = {
10905
12756
  [transformName: string]: TransformDefinition;
10906
12757
  };
10907
12758
 
12759
+ /**
12760
+ * @beta
12761
+ * Type representing the possible triggers for a context menu.
12762
+ */
10908
12763
  export declare type trigger = 'hover' | 'contextMenu' | 'click';
10909
12764
 
10910
12765
  /** List of operators that do not require another operand */
@@ -10918,21 +12773,32 @@ declare type UnaryQueryObjectFilterClause = BaseQueryObjectFilterClause & {
10918
12773
  formattedVal?: string;
10919
12774
  };
10920
12775
 
12776
+ /**
12777
+ * @beta
12778
+ * Type representing an unsubscribe function.
12779
+ * @returns A promise that resolves when the unsubscribe operation is complete.
12780
+ */
10921
12781
  export declare type Unsubscribe = () => Promise<void>;
10922
12782
 
10923
- export declare type UnsubscribeFn = (id: string) => void;
10924
-
10925
- export declare type UnsubscribeFromContextFn = UnsubscribeFn;
10926
-
10927
- export declare type UnsubscribeFromDragStartFn = UnsubscribeFn;
10928
-
12783
+ /**
12784
+ * @beta
12785
+ * Type representing a user profile.
12786
+ */
10929
12787
  export declare type UserProfile = {
12788
+ /** The first name of the user. */
10930
12789
  firstName: string;
12790
+ /** The last name of the user. */
10931
12791
  lastName: string;
12792
+ /** The email address of the user. */
10932
12793
  email: string;
12794
+ /** The username of the user. */
10933
12795
  username: string;
10934
12796
  };
10935
12797
 
12798
+ /**
12799
+ * @beta
12800
+ * Type representing a UUID.
12801
+ */
10936
12802
  export declare type uuid = string;
10937
12803
 
10938
12804
  declare type ValueOf<T> = T[keyof T];
@@ -12847,99 +14713,331 @@ declare interface VendorShorthandProperties<TLength = (string & {}) | 0, TTime =
12847
14713
  WebkitTransition?: Property_2.Transition<TTime> | undefined;
12848
14714
  }
12849
14715
 
14716
+ /**
14717
+ * Represents a watcher.
14718
+ * @beta
14719
+ */
12850
14720
  export declare type Watcher = {
14721
+ /**
14722
+ * Application ID.
14723
+ */
12851
14724
  app_id: string;
14725
+ /**
14726
+ * Application name.
14727
+ */
12852
14728
  app_name: string;
14729
+ /**
14730
+ * Watcher name.
14731
+ */
12853
14732
  watcher_name: string;
14733
+ /**
14734
+ * Constants for the watcher.
14735
+ */
12854
14736
  const: [key: string, value: any][];
14737
+ /**
14738
+ * Description of the watcher.
14739
+ */
12855
14740
  description: string;
14741
+ /**
14742
+ * File associated with the watcher.
14743
+ */
12856
14744
  file: string;
14745
+ /**
14746
+ * Interval for the watcher.
14747
+ */
12857
14748
  interval: string;
14749
+ /**
14750
+ * Name of the watcher.
14751
+ */
12858
14752
  name: string;
14753
+ /**
14754
+ * Parameters for the watcher.
14755
+ */
12859
14756
  params: [key: string, value: any][];
14757
+ /**
14758
+ * Semantically bound items.
14759
+ */
12860
14760
  semantically_bound: string[];
12861
14761
  };
12862
14762
 
14763
+ /**
14764
+ * Represents information about the current user.
14765
+ * @beta
14766
+ */
12863
14767
  export declare type Whoami = {
14768
+ /**
14769
+ * Asynchronous channel for the user.
14770
+ */
12864
14771
  async_channel: string;
14772
+ /**
14773
+ * Email of the user.
14774
+ */
12865
14775
  email: string | null;
14776
+ /**
14777
+ * JWT token for the user.
14778
+ */
12866
14779
  os_jwt: string;
14780
+ /**
14781
+ * Username of the user.
14782
+ */
12867
14783
  username: string;
14784
+ /**
14785
+ * Roles of the user.
14786
+ */
12868
14787
  timbr_roles: string[];
12869
14788
  };
12870
14789
 
14790
+ /**
14791
+ * Options for displaying a progress bar.
14792
+ * @beta
14793
+ */
12871
14794
  export declare type WithProgressBarOptions = {
14795
+ /**
14796
+ * Type of job for the progress bar.
14797
+ */
12872
14798
  job_type: string;
14799
+ /**
14800
+ * Label for the progress bar.
14801
+ */
12873
14802
  label?: string | JSX.Element;
14803
+ /**
14804
+ * Prefix for event topics.
14805
+ */
12874
14806
  eventTopicPrefix?: string;
14807
+ /**
14808
+ * Error message for the progress bar.
14809
+ */
14810
+ errorToast?: string | boolean;
12875
14811
  };
12876
14812
 
14813
+ /**
14814
+ * @beta
14815
+ * Type representing a workspace.
14816
+ */
12877
14817
  export declare type Workspace = {
14818
+ /** The workspace item. */
12878
14819
  workspace: WorkspaceItem;
14820
+ /** The items in the workspace. */
12879
14821
  items: WorkspaceItems;
14822
+ /** Optional records in the workspace. */
12880
14823
  workspace_records?: WorkspaceRecords;
14824
+ /** Optional tags in the workspace. */
12881
14825
  tags?: TagInfo[];
14826
+ /** Optional permission for the workspace. */
12882
14827
  permission?: WorkspacePermission;
14828
+ /** Whether the workspace is active. */
12883
14829
  isActive?: boolean;
12884
14830
  };
12885
14831
 
14832
+ /**
14833
+ * @beta
14834
+ * Interface representing a workspace change emitter.
14835
+ */
12886
14836
  export declare interface WorkspaceChangeEmitter {
14837
+ /**
14838
+ * Subscribes to changes for a given workspace.
14839
+ * @param ws - The workspace identifier.
14840
+ * @param callback - The callback to invoke on changes.
14841
+ * @returns A promise that resolves to an unsubscribe function.
14842
+ */
12887
14843
  onWorkspaceChanged: (ws: WorkspaceIdentifier, callback: Callback<Workspace>) => Promise<Unsubscribe>;
14844
+ /**
14845
+ * Subscribes to changes for a given workspace item.
14846
+ * @param item - The workspace item identifier.
14847
+ * @param callback - The callback to invoke on changes.
14848
+ * @returns A promise that resolves to an unsubscribe function.
14849
+ */
12888
14850
  onWorkspaceItemChanged: (item: WorkspaceItemIdentifier, callback: Callback<WorkspaceItem>) => Promise<Unsubscribe>;
14851
+ /**
14852
+ * Subscribes to changes for the currently open workspaces.
14853
+ * @param callback - The callback to invoke with the current open workspaces.
14854
+ * @returns A promise that resolves to an unsubscribe function.
14855
+ */
12889
14856
  onOpenWorkspacesChanged: AddListener<Workspace[]>;
12890
14857
  }
12891
14858
 
14859
+ /**
14860
+ * @beta
14861
+ * Type representing a workspace identifier, which can be a UUID or a workspace item.
14862
+ * @template T - The type of the workspace item.
14863
+ */
12892
14864
  export declare type WorkspaceIdentifier<T = any> = uuid | WorkspaceItem<T>;
12893
14865
 
14866
+ /**
14867
+ * Represents a workspace item with optional content.
14868
+ * @beta
14869
+ */
12894
14870
  export declare type WorkspaceItem<T = any> = WorkspaceRecord & {
12895
- os_item_content?: T;
14871
+ /**
14872
+ * The type-specific content of the workspace item.
14873
+ */
14874
+ os_item_content?: T & {
14875
+ image?: ImageInfo;
14876
+ };
14877
+ /**
14878
+ * The type of the content.
14879
+ */
12896
14880
  os_item_content_type?: string;
14881
+ /**
14882
+ * The id of the folder in which the item is stored.
14883
+ */
12897
14884
  os_parent_folder?: string;
14885
+ /**
14886
+ * Whether the item has an attachment file content.
14887
+ */
12898
14888
  os_has_attachment?: boolean;
14889
+ /**
14890
+ * Optional path from the os_parent_folder or os_workspace to the item.
14891
+ * Does not include the item name.
14892
+ * Used only when saving by POST to the /entity API.
14893
+ * eg. 'folder1/folder2'
14894
+ */
14895
+ '#os_path'?: string;
12899
14896
  };
12900
14897
 
14898
+ /**
14899
+ * Represents the base attributes for a workspace item.
14900
+ * @beta
14901
+ */
12901
14902
  export declare type WorkspaceItemBase = WorkspaceItemModel & {
14903
+ /**
14904
+ * The ID of the workspace item.
14905
+ */
12902
14906
  os_entity_uid: string;
14907
+ /**
14908
+ * The ID of the workspace in which the item is stored.
14909
+ */
12903
14910
  os_workspace: string;
12904
14911
  };
12905
14912
 
14913
+ /**
14914
+ * Represents the configuration for a workspace item.
14915
+ * @beta
14916
+ */
12906
14917
  export declare interface WorkspaceItemConfig {
14918
+ /**
14919
+ * The id the workspace item.
14920
+ */
12907
14921
  entity_id: string;
14922
+ /**
14923
+ * The concept to which the workspace item belongs.
14924
+ */
12908
14925
  entity_type: string;
14926
+ /**
14927
+ * The id of the workspace in which the workspace item is stored.
14928
+ */
12909
14929
  workspace_id: string;
14930
+ /**
14931
+ * Epoch time of the last update of the workspace item.
14932
+ */
12910
14933
  last_updated: number;
12911
14934
  }
12912
14935
 
14936
+ /**
14937
+ * @beta
14938
+ * Type representing a workspace item identifier, which is the same as a workspace identifier.
14939
+ * @template T - The type of the workspace item.
14940
+ */
12913
14941
  export declare type WorkspaceItemIdentifier<T = any> = WorkspaceIdentifier<T>;
12914
14942
 
14943
+ /**
14944
+ * Represents the model for a workspace item.
14945
+ * @beta
14946
+ */
12915
14947
  export declare type WorkspaceItemModel = {
14948
+ /**
14949
+ * Ephemeral UI state in lieu of using complex redux logic.
14950
+ * It is not saved in persistence and can be mutated by components.
14951
+ */
12916
14952
  __uiState?: {
14953
+ /**
14954
+ * Indicates if the item is in rename mode.
14955
+ */
12917
14956
  rename?: boolean;
14957
+ /**
14958
+ * A filter applied to concepts.
14959
+ */
12918
14960
  query?: ConceptFilter;
14961
+ /**
14962
+ * Function to get the count of entities.
14963
+ * @returns A promise that resolves to the number of entities.
14964
+ */
12919
14965
  getEntitiesCount?: () => Promise<number>;
14966
+ /**
14967
+ * Function to get the entities.
14968
+ * @param limit - The maximum number of entities to retrieve.
14969
+ * @returns A promise that resolves to an array of entities.
14970
+ */
12920
14971
  getEntities?: (limit?: number) => Promise<Entity[]>;
14972
+ /**
14973
+ * Determines if the count is shown only when the item is closed.
14974
+ */
12921
14975
  showCountOnlyWhenClosed?: boolean;
14976
+ /**
14977
+ * The initial state of the item.
14978
+ */
12922
14979
  initialState?: any;
14980
+ /**
14981
+ * Indicates if the item should be highlighted.
14982
+ */
12923
14983
  highlight?: boolean;
14984
+ /**
14985
+ * Indicates if the item is in draft mode.
14986
+ */
12924
14987
  draft?: boolean;
12925
14988
  };
14989
+ /**
14990
+ * Name of the workspace item.
14991
+ */
12926
14992
  os_item_name: string;
14993
+ /**
14994
+ * Type of the workspace item.
14995
+ */
12927
14996
  os_item_type: string;
12928
14997
  };
12929
14998
 
14999
+ /**
15000
+ * Represents an array of workspace items.
15001
+ * @beta
15002
+ */
12930
15003
  export declare type WorkspaceItems = WorkspaceItem[];
12931
15004
 
15005
+ /**
15006
+ * Properties for workspace item title.
15007
+ * @beta
15008
+ */
12932
15009
  export declare type WorkspaceItemTitleProps = DesktopActionContext & {
15010
+ /**
15011
+ * Whether to show hidden children in the workspace.
15012
+ */
12933
15013
  showHiddenChildren?: 'workspace' | boolean;
12934
- menuOptions?: ContextMenuOptions;
15014
+ /**
15015
+ * Menu options with extra action items.
15016
+ */
15017
+ menuOptions?: ContextMenuOptions & {
15018
+ extraActionItems?: DesktopActionMenuItem[];
15019
+ };
15020
+ /**
15021
+ * Whether the item is expanded.
15022
+ */
12935
15023
  expanded?: boolean;
12936
15024
  };
12937
15025
 
15026
+ /**
15027
+ * @beta
15028
+ * Type representing a workspace permission.
15029
+ */
12938
15030
  export declare type WorkspacePermission = {
15031
+ /** The value of the permission. */
12939
15032
  value: WorkspacePermissionValue;
15033
+ /** The label for the permission. */
12940
15034
  label: string;
12941
15035
  };
12942
15036
 
15037
+ /**
15038
+ * @beta
15039
+ * Enum representing the possible values for workspace permissions.
15040
+ */
12943
15041
  export declare enum WorkspacePermissionValue {
12944
15042
  None = 0,
12945
15043
  Read = 1,
@@ -12947,43 +15045,104 @@ export declare enum WorkspacePermissionValue {
12947
15045
  Admin = 4
12948
15046
  }
12949
15047
 
15048
+ /**
15049
+ * Represents a workspace record with additional attributes.
15050
+ * @beta
15051
+ */
12950
15052
  export declare type WorkspaceRecord = Entity & WorkspaceItemBase & OsAuditFields & {
12951
15053
  os_icon?: string;
12952
15054
  };
12953
15055
 
15056
+ /**
15057
+ * Represents a workspace record identifier.
15058
+ * @beta
15059
+ */
12954
15060
  export declare interface WorkspaceRecordIdentifier {
15061
+ /**
15062
+ * The concept to which the record belongs.
15063
+ */
12955
15064
  entity_type: string;
15065
+ /**
15066
+ * The ID of the workspace record.
15067
+ */
12956
15068
  os_entity_uid: string;
15069
+ /**
15070
+ * The id of the workspace in which the record is stored.
15071
+ */
12957
15072
  os_workspace: string;
12958
15073
  }
12959
15074
 
15075
+ /**
15076
+ * @beta
15077
+ * Type representing information about records in a workspace.
15078
+ */
12960
15079
  export declare type WorkspaceRecordInfo = {
15080
+ /** The concept associated with the records. */
12961
15081
  concept: string;
15082
+ /** The count of records. */
12962
15083
  count: number;
15084
+ /** The last updated timestamp for the records. */
12963
15085
  max_last_updated: string;
15086
+ /** The entities associated with the records. */
12964
15087
  entities: Entity[];
12965
15088
  };
12966
15089
 
15090
+ /**
15091
+ * @beta
15092
+ * Type representing a collection of workspace records.
15093
+ */
12967
15094
  export declare type WorkspaceRecords = {
12968
15095
  [key: string]: WorkspaceRecordInfo;
12969
15096
  };
12970
15097
 
15098
+ /**
15099
+ * @beta
15100
+ * Type representing a workspace record with its relationships.
15101
+ */
12971
15102
  export declare type WorkspaceRecordWithRelationships = {
15103
+ /** The workspace item. */
12972
15104
  entity: WorkspaceItem;
15105
+ /** The name of the relationship. */
12973
15106
  relationship_name?: string;
15107
+ /** The relationships associated with the workspace record. */
12974
15108
  relationships?: [WorkspaceRecordWithRelationships];
12975
15109
  };
12976
15110
 
15111
+ /**
15112
+ * Represents a relationship between workspace items.
15113
+ * @beta
15114
+ */
12977
15115
  export declare type WorkspaceRelationship = WorkspaceItemBase & OsAuditFields & {
15116
+ /**
15117
+ * Unique identifier for the source entity in the relationship.
15118
+ */
12978
15119
  os_entity_uid_from: string;
15120
+ /**
15121
+ * Unique identifier for the target entity in the relationship.
15122
+ */
12979
15123
  os_entity_uid_to: string;
15124
+ /**
15125
+ * Type of the source entity in the relationship.
15126
+ */
12980
15127
  os_entity_type_from: string;
15128
+ /**
15129
+ * Type of the target entity in the relationship.
15130
+ */
12981
15131
  os_entity_type_to: string;
15132
+ /**
15133
+ * Name of the relationship.
15134
+ */
12982
15135
  os_relationship_name: string;
12983
15136
  };
12984
15137
 
15138
+ /**
15139
+ * @beta
15140
+ * Type representing settings for a workspace.
15141
+ */
12985
15142
  export declare type WorkspaceSettings = {
15143
+ /** Whether the workspace is the master workspace. */
12986
15144
  isMaster?: boolean;
15145
+ /** The icon for the workspace. */
12987
15146
  os_icon?: string;
12988
15147
  };
12989
15148