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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) 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 +160 -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 +6 -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 +190 -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 +16 -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/PasteContextOptions.html +7 -0
  129. package/dist/docs/types/Permission.html +5 -0
  130. package/dist/docs/types/Point.html +4 -0
  131. package/dist/docs/types/ProvidedFilterDefinition.html +3 -0
  132. package/dist/docs/types/ProvidedTransformDefinition.html +3 -0
  133. package/dist/docs/types/PythonFileStylerDefinition.html +2 -0
  134. package/dist/docs/types/PythonFileTransformDefinition.html +2 -0
  135. package/dist/docs/types/PythonFilterDefinition.html +4 -0
  136. package/dist/docs/types/PythonInlineStylerDefinition.html +2 -0
  137. package/dist/docs/types/PythonInlineTransformDefinition.html +2 -0
  138. package/dist/docs/types/PythonType.html +3 -0
  139. package/dist/docs/types/Query.html +2 -0
  140. package/dist/docs/types/QueryBatchResult.html +4 -0
  141. package/dist/docs/types/QueryErrorResult.html +4 -0
  142. package/dist/docs/types/QueryExecutor.html +6 -0
  143. package/dist/docs/types/QueryResponse.html +2 -0
  144. package/dist/docs/types/QueryResult.html +2 -0
  145. package/dist/docs/types/QuerySuccessResult.html +5 -0
  146. package/dist/docs/types/ReasonedBoolean.html +2 -0
  147. package/dist/docs/types/RelationshipCountResult.html +4 -0
  148. package/dist/docs/types/SaveAsModalProps.html +4 -0
  149. package/dist/docs/types/SaveFileOptions.html +3 -0
  150. package/dist/docs/types/SaveOptions.html +5 -0
  151. package/dist/docs/types/SavedTemplate.html +4 -0
  152. package/dist/docs/types/SemanticallyBoundFilterDefinition.html +4 -0
  153. package/dist/docs/types/SendQueryOptions.html +4 -0
  154. package/dist/docs/types/ServiceDefinition.html +14 -0
  155. package/dist/docs/types/ServiceDefinitions.html +2 -0
  156. package/dist/docs/types/ServiceRole.html +2 -0
  157. package/dist/docs/types/ShowOntology.html +11 -0
  158. package/dist/docs/types/ShowTabProps.html +5 -0
  159. package/dist/docs/types/Styler.html +10 -0
  160. package/dist/docs/types/StylerConfig.html +6 -0
  161. package/dist/docs/types/StylerDefinition.html +2 -0
  162. package/dist/docs/types/StylerDefinitions.html +2 -0
  163. package/dist/docs/types/StylerOption.html +4 -0
  164. package/dist/docs/types/StylerProducer.html +4 -0
  165. package/dist/docs/types/Tag.html +4 -0
  166. package/dist/docs/types/TagInfo.html +7 -0
  167. package/dist/docs/types/TagWithRelationship.html +4 -0
  168. package/dist/docs/types/TaskCleanupReason.html +2 -0
  169. package/dist/docs/types/TemplateMetadata.html +13 -0
  170. package/dist/docs/types/TemplateType.html +2 -0
  171. package/dist/docs/types/TemplateVariant.html +2 -0
  172. package/dist/docs/types/TransformAction.html +4 -0
  173. package/dist/docs/types/TransformActionContext.html +6 -0
  174. package/dist/docs/types/TransformDefinition.html +2 -0
  175. package/dist/docs/types/TransformDefinitions.html +2 -0
  176. package/dist/docs/types/Unsubscribe.html +3 -0
  177. package/dist/docs/types/UserProfile.html +6 -0
  178. package/dist/docs/types/Watcher.html +12 -0
  179. package/dist/docs/types/Whoami.html +7 -0
  180. package/dist/docs/types/WithProgressBarOptions.html +6 -0
  181. package/dist/docs/types/Workspace.html +8 -0
  182. package/dist/docs/types/WorkspaceIdentifier.html +3 -0
  183. package/dist/docs/types/WorkspaceItem.html +10 -0
  184. package/dist/docs/types/WorkspaceItemBase.html +4 -0
  185. package/dist/docs/types/WorkspaceItemIdentifier.html +3 -0
  186. package/dist/docs/types/WorkspaceItemModel.html +17 -0
  187. package/dist/docs/types/WorkspaceItemTitleProps.html +5 -0
  188. package/dist/docs/types/WorkspaceItems.html +2 -0
  189. package/dist/docs/types/WorkspacePermission.html +4 -0
  190. package/dist/docs/types/WorkspaceRecord.html +2 -0
  191. package/dist/docs/types/WorkspaceRecordInfo.html +6 -0
  192. package/dist/docs/types/WorkspaceRecordWithRelationships.html +5 -0
  193. package/dist/docs/types/WorkspaceRecords.html +2 -0
  194. package/dist/docs/types/WorkspaceRelationship.html +7 -0
  195. package/dist/docs/types/WorkspaceSettings.html +4 -0
  196. package/dist/docs/types/trigger.html +2 -0
  197. package/dist/docs/types/uuid.html +2 -0
  198. package/dist/docs/variables/OS_CONFIRM_MODAL_CANCEL.html +1 -0
  199. package/dist/docs/variables/OS_CONFIRM_MODAL_NO.html +1 -0
  200. package/dist/docs/variables/OS_CONFIRM_MODAL_YES.html +1 -0
  201. package/dist/platform-types.d.ts +2213 -92
  202. package/package.json +8 -5
@@ -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,13 +926,38 @@ 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.
@@ -642,123 +967,429 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
642
967
  /**
643
968
  * Fetches an attachment based on the provided workspace identifier and path or ID.
644
969
  *
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.
970
+ * @param entity - The entity to which the attachment belongs.
971
+ * @param options - Additional parameters
649
972
  * @returns A promise that resolves to the attachment of type T.
650
973
  */
651
974
  getAttachment: <T extends AttachmentType>(entity: Entity, options?: GetAttachmentOptions<T>) => Promise<T>;
975
+ /**
976
+ * Gets options for stylers.
977
+ */
652
978
  getStylerOptions: () => Promise<StylerOption[]>;
979
+ /**
980
+ * Gets a styler by name and context.
981
+ */
653
982
  getStyler: (name: string, context: DesktopStylerContext) => Promise<Styler>;
983
+ /**
984
+ * Gets a workspace by identifier.
985
+ */
654
986
  getWorkspace: (ws: WorkspaceIdentifier) => Promise<Workspace | undefined>;
987
+ /**
988
+ * Gets items in a workspace by name.
989
+ */
655
990
  getWorkspaceItems(os_item_name: string): Promise<WorkspaceItem[]>;
991
+ /**
992
+ * Applies a tag to an entity.
993
+ */
656
994
  applyTag: (os_workspace: string, tag: OsTag | TagAttributes, entity: Entity | Entity[]) => Promise<void>;
995
+ /**
996
+ * Removes a tag from an entity.
997
+ */
657
998
  removeTag: (os_workspace: string, tag: OsTag | TagAttributes, entity: Entity | Entity[]) => Promise<void>;
999
+ /**
1000
+ * Updates a tag.
1001
+ */
658
1002
  updateTag: (tag: OsTag) => Promise<OsTag>;
1003
+ /**
1004
+ * Gets an item by workspace identifier.
1005
+ */
659
1006
  getItem: <T>(ws: WorkspaceIdentifier<T>) => Promise<WorkspaceItem<T>>;
1007
+ /**
1008
+ * Gets items by workspace identifiers.
1009
+ */
660
1010
  getItems: (ws: WorkspaceIdentifier[]) => Promise<WorkspaceItem[]>;
1011
+ /**
1012
+ * Gets tags for an entity.
1013
+ */
661
1014
  getTags: (entity: Entity) => Promise<TagWithRelationship[]>;
1015
+ /**
1016
+ * Gets available tags for an entity in a workspace.
1017
+ */
662
1018
  getAvailableTags: (entity: Entity, workspace?: string) => Promise<OsTag[]>;
663
- getTemplates: () => Promise<CustomTemplate[]>;
1019
+ /**
1020
+ * Gets templates by layout.
1021
+ */
1022
+ getTemplates: (layout?: string) => Promise<SavedTemplate[]>;
1023
+ /**
1024
+ * Gets a template by name with an optional default template.
1025
+ */
664
1026
  getTemplate: (name: string, defaultTemplate?: string) => Promise<CustomTemplate>;
1027
+ /**
1028
+ * Gets schema items by content type.
1029
+ */
665
1030
  getSchemaItems(os_item_content_type: string): Promise<WorkspaceItem[]>;
1031
+ /**
1032
+ * Creates a workspace by name.
1033
+ */
666
1034
  createWorkspace: (name: string) => Promise<WorkspaceItem>;
1035
+ /**
1036
+ * Connects two entities with a relationship in a workspace.
1037
+ */
667
1038
  connect: (relationship: Relationship | string, from: Entity, to: Entity, os_workspace?: string) => Promise<WorkspaceItem>;
1039
+ /**
1040
+ * Saves an item with optional save options.
1041
+ */
668
1042
  save: (item: (Partial<WorkspaceItem> & WorkspaceItemModel) | WorkspaceRecordIdentifier | WorkspaceRecordWithRelationships, options?: SaveOptions) => Promise<WorkspaceItem>;
669
- saveFile: (item: WorkspaceItem, file: File | string, options?: SaveFileOptions) => Promise<WorkspaceItem>;
1043
+ /**
1044
+ * Saves a file to an item with optional save options.
1045
+ */
1046
+ saveFile: (item: WorkspaceItem, file: File | string, options?: SaveOptions) => Promise<WorkspaceItem>;
1047
+ /**
1048
+ * Imports items.
1049
+ */
670
1050
  import: (items: any[]) => Promise<void>;
1051
+ /**
1052
+ * Imports a ZIP file with optional import options.
1053
+ */
671
1054
  importZip: (file: File, options?: ImportZipOptions) => Promise<void>;
1055
+ /**
1056
+ * Exports an item or items with optional export options.
1057
+ */
672
1058
  export: (item: WorkspaceItem | WorkspaceItem[], options?: ExportOptions) => Promise<void>;
1059
+ /**
1060
+ * Extracts entities from some text which may be json or a list of urls.
1061
+ */
1062
+ extractEntities: (text: string, options?: ExtractEntitiesOptions) => Promise<Entity[]>;
1063
+ /**
1064
+ * Gets a file tree for a workspace or folder with optional file tree options.
1065
+ */
673
1066
  getFilesTree: (workspace_or_folder: WorkspaceItem, options?: FileTreeOptions) => Promise<WorkspaceItem[]>;
1067
+ /**
1068
+ * Show the search modal and return the selected results.
1069
+ */
1070
+ getSearchResults: (params: undefined | string | SearchProps) => Promise<Entity[] | undefined>;
1071
+ /**
1072
+ * Opens records with default action or as specified in the optional desktop action options.
1073
+ */
674
1074
  open(records: Entity | Entity[], options?: DesktopActionOptions): Promise<void>;
1075
+ /**
1076
+ * Deletes an item or items recursively.
1077
+ */
675
1078
  delete: (item: WorkspaceRecordIdentifier | WorkspaceRecordIdentifier[], recurse?: boolean) => Promise<void>;
1079
+ /**
1080
+ * Deletes records in a workspace by ID.
1081
+ */
676
1082
  delete_workspace_records: (workspace_id: string) => Promise<void>;
1083
+ /**
1084
+ * Deletes local concept records in a workspace by base concept.
1085
+ */
677
1086
  delete_local_concept_records: (workspace_id: string, base_concept: string) => Promise<void>;
1087
+ /**
1088
+ * Searches experience with optional search options.
1089
+ */
678
1090
  searchXperience: (options?: SearchXperienceProps) => Promise<Entity[]>;
1091
+ /**
1092
+ * Shows a tab with given properties.
1093
+ */
679
1094
  showTab: (props: ShowTabProps) => Promise<void>;
1095
+ /**
1096
+ * Closes a tab with given properties.
1097
+ */
680
1098
  closeTab: (props: ShowTabProps) => Promise<void>;
1099
+ /**
1100
+ * Calls an application service with given properties.
1101
+ */
681
1102
  callAppService: (props: AppServiceCallProps) => Promise<any>;
1103
+ /**
1104
+ * Shows a context menu with given properties.
1105
+ */
682
1106
  showContextMenu: (props: ContextMenuRequest) => Promise<void>;
1107
+ /**
1108
+ * Shows a toast notification.
1109
+ */
683
1110
  showToast: (notification: OsNotification) => Promise<void>;
1111
+ /**
1112
+ * Clears a toast notification by ID.
1113
+ */
684
1114
  clearToast: (id: string) => Promise<void>;
1115
+ /**
1116
+ * Shows a progress item.
1117
+ */
685
1118
  showProgress: (progress: OsProgress) => Promise<void>;
1119
+ /**
1120
+ * Wraps a promise with a progress bar.
1121
+ */
686
1122
  withProgressBar: <T>(promise: Promise<T>, options?: WithProgressBarOptions) => Promise<T>;
687
- showConfirm: (props: OsConfirmProps) => Promise<OS_CONFIRM_MODAL_RESPONSE>;
1123
+ /**
1124
+ * Shows a confirmation modal.
1125
+ */
1126
+ showConfirm: (props: OsConfirmProps) => Promise<OS_CONFIRM_MODAL_RESPONSE>;
1127
+ /**
1128
+ * Shows a file upload dialog.
1129
+ */
688
1130
  showFileUpload: (folder: WorkspaceItem) => Promise<WorkspaceItem[]>;
1131
+ /**
1132
+ * Shows a form for creating an entity.
1133
+ */
689
1134
  showCreateEntityForm: (props: CreateEntityFormProps) => Promise<OsWorkspaceEntity[]>;
1135
+ /**
1136
+ * Shows a dialog for creating relations.
1137
+ */
690
1138
  showCreateRelationsDialog: (props: CreateRelationsDialogProps) => Promise<void>;
1139
+ /**
1140
+ * Shows a modal for saving as.
1141
+ */
1142
+ showSaveAsModal: (props: SaveAsModalProps) => Promise<WorkspaceItem | undefined>;
1143
+ /**
1144
+ * Gets a paste context with optional options.
1145
+ */
691
1146
  getPasteContext: (options: PasteContextOptions) => Promise<Entity[]>;
1147
+ /**
1148
+ * Shows a modal template.
1149
+ */
692
1150
  showModalTemplate: (props: ModalTemplateProps) => Promise<void>;
1151
+ /**
1152
+ * Adds a comment to an entity.
1153
+ */
693
1154
  addComment: (about: Entity, comment: AddCommentParams) => Promise<Entity>;
694
- removeComment: (os_workspace: string, comment_id: string) => Promise<void>;
1155
+ /**
1156
+ * Adds a watch intent to an entity.
1157
+ */
695
1158
  addWatchIntent: (entity: Entity, watcher: Watcher) => Promise<Entity>;
1159
+ /**
1160
+ * Removes a watch intent by workspace and intent ID.
1161
+ */
696
1162
  removeWatchIntent: (os_workspace: string, intent_id: string) => Promise<void>;
1163
+ /**
1164
+ * Gets workspace permissions by IDs.
1165
+ */
697
1166
  getWorkspacePermission: (os_worpsaces: string[]) => Promise<{
698
1167
  [os_workspace: string]: WorkspacePermission;
699
1168
  }>;
1169
+ /**
1170
+ * Gets the user profile.
1171
+ */
700
1172
  getUser: () => Promise<UserProfile>;
701
- deployApp: (app: WorkspaceItem, initialSecrets?: {
1173
+ /**
1174
+ * Deploys an application with optional initial secrets.
1175
+ */
1176
+ deployApp: (app: WorkspaceItem | App, initialSecrets?: {
702
1177
  [key: string]: string;
703
1178
  }) => Promise<WorkspaceItem>;
704
- undeployApp: (app: WorkspaceItem) => Promise<WorkspaceItem>;
1179
+ /**
1180
+ * Undeploys an application.
1181
+ */
1182
+ undeployApp: (app: WorkspaceItem | App) => Promise<WorkspaceItem>;
1183
+ /**
1184
+ * Gets information about the current user.
1185
+ */
705
1186
  whoami: () => Promise<Whoami>;
1187
+ /**
1188
+ * Gets the focus list.
1189
+ */
706
1190
  getFocusList: () => Promise<FocusListItem[]>;
1191
+ /**
1192
+ * Adds entities to the focus list with optional type and tab name.
1193
+ */
707
1194
  addToFocusList: (entities: Entity[], type?: 'single' | 'group', tabName?: string) => Promise<FocusListItem[]>;
1195
+ /**
1196
+ * Removes entities from the focus list with optional type and tab name.
1197
+ */
708
1198
  removeFromFocusList: (entities: Entity[], type?: 'single' | 'group', tabName?: string) => Promise<FocusListItem[]>;
1199
+ /**
1200
+ * Gets images for an entity.
1201
+ */
1202
+ getImages: (entity: Entity) => Promise<Entity[]>;
1203
+ /**
1204
+ * Gets icon code for an entity, concept, or string.
1205
+ */
1206
+ internalGetIconCode: (x: Entity | Concept | string, defaultIcon?: string) => Promise<string>;
1207
+ /**
1208
+ * Gets JSON schema for a concept.
1209
+ */
1210
+ getJSONSchema: (concept: string) => Promise<{
1211
+ schema: string;
1212
+ schemaUI: string;
1213
+ }>;
709
1214
  }
710
1215
 
1216
+ /**
1217
+ * Function for desktop actions.
1218
+ * @beta
1219
+ */
711
1220
  export declare type DesktopAction = (context: DesktopActionContext) => any;
712
1221
 
1222
+ /**
1223
+ * Context for desktop actions.
1224
+ * @beta
1225
+ */
713
1226
  export declare interface DesktopActionContext extends ActionContext {
1227
+ /**
1228
+ * Event emitter type.
1229
+ */
714
1230
  ee: EventEmitterType;
1231
+ /**
1232
+ * Prefix for event topics.
1233
+ */
715
1234
  eventTopicPrefix?: string;
1235
+ /**
1236
+ * Options for the action.
1237
+ */
716
1238
  options?: DesktopActionOptions;
717
1239
  }
718
1240
 
1241
+ /**
1242
+ * Filter for desktop actions.
1243
+ * @beta
1244
+ */
719
1245
  export declare type DesktopActionFilter = (context: DesktopActionContext) => boolean;
720
1246
 
1247
+ /**
1248
+ * Menu item for desktop actions.
1249
+ * @beta
1250
+ */
721
1251
  export declare type DesktopActionMenuItem = {
1252
+ /**
1253
+ * Label for the menu item.
1254
+ */
722
1255
  label: ReactNode;
1256
+ /**
1257
+ * Key for the menu item.
1258
+ */
723
1259
  key: string;
1260
+ /**
1261
+ * Icon for the menu item.
1262
+ */
724
1263
  icon: Icon;
1264
+ /**
1265
+ * Service related to the menu item.
1266
+ */
725
1267
  service?: string;
1268
+ /**
1269
+ * Additional options for the menu item.
1270
+ */
726
1271
  with?: string;
727
1272
  /**
728
- * Menu group to which the item is added.
729
- * Default is 'general'
1273
+ * Group for the menu item. Default is 'general'.
730
1274
  */
731
1275
  group?: DesktopActionMenuItemGroup;
1276
+ /**
1277
+ * Subgroup for the menu item.
1278
+ */
732
1279
  subgroup?: string;
1280
+ /**
1281
+ * Order of the menu item.
1282
+ */
733
1283
  order?: number;
1284
+ /**
1285
+ * Children menu items.
1286
+ */
734
1287
  children?: DesktopActionMenuItem[] | ((props: DesktopActionContext) => DesktopActionMenuItem[]);
1288
+ /**
1289
+ * Filter for accepting the menu item.
1290
+ */
735
1291
  accepts: DesktopActionFilter;
1292
+ /**
1293
+ * Function to invoke the action.
1294
+ */
736
1295
  invoke: DesktopAction;
737
1296
  };
738
1297
 
1298
+ /**
1299
+ * Group for desktop action menu items.
1300
+ * @beta
1301
+ */
739
1302
  export declare type DesktopActionMenuItemGroup = ContextMenuGroup;
740
1303
 
1304
+ /**
1305
+ * Options for desktop actions.
1306
+ * @beta
1307
+ */
741
1308
  export declare type DesktopActionOptions = {
1309
+ /**
1310
+ * ID of the tab.
1311
+ */
1312
+ tabId?: string;
1313
+ /**
1314
+ * ID of the tab to place beside.
1315
+ */
742
1316
  besideTabId?: string;
1317
+ /**
1318
+ * Whether to auto-select the tab.
1319
+ */
743
1320
  autoSelectTab?: boolean;
1321
+ /**
1322
+ * Function to call on closing the tab.
1323
+ */
744
1324
  onCloseTab?: () => void;
1325
+ /**
1326
+ * Additional options for the action.
1327
+ */
745
1328
  with?: string;
1329
+ /**
1330
+ * Initial state for the action.
1331
+ */
746
1332
  initialState?: any;
1333
+ /**
1334
+ * Whether to open in a new tab.
1335
+ */
1336
+ newTab?: boolean;
1337
+ /**
1338
+ * Whether to open in a modal window.
1339
+ */
1340
+ modal?: boolean;
1341
+ /**
1342
+ * Whether to preserve the state of the tab after action is finished. Used with modal.
1343
+ */
1344
+ preserve?: boolean;
747
1345
  };
748
1346
 
1347
+ /**
1348
+ * Parameters for opening a desktop.
1349
+ * @beta
1350
+ */
749
1351
  export declare type DesktopOpenParams = {
1352
+ /**
1353
+ * Options for the desktop action.
1354
+ */
750
1355
  options?: DesktopActionOptions;
1356
+ /**
1357
+ * Items to be opened.
1358
+ */
751
1359
  items: Entity[];
752
1360
  };
753
1361
 
1362
+ /**
1363
+ * Interface for desktop settings.
1364
+ * @beta
1365
+ */
754
1366
  export declare interface DesktopSettings {
1367
+ /**
1368
+ * Gets the IDs of open workspaces.
1369
+ */
755
1370
  getOpenWorkspaceIds: () => Promise<string[]>;
1371
+ /**
1372
+ * Sets the IDs of open workspaces.
1373
+ */
756
1374
  setOpenWorkspaceIds: (ids: string[]) => Promise<void>;
1375
+ /**
1376
+ * Listener for changes in open workspace IDs.
1377
+ */
757
1378
  onOpenWorkspaceIdsChanged: AddListener<string[]>;
758
1379
  }
759
1380
 
1381
+ /**
1382
+ * Context for desktop styler.
1383
+ * @beta
1384
+ */
760
1385
  export declare type DesktopStylerContext = {
1386
+ /**
1387
+ * Graph specification.
1388
+ */
761
1389
  graph: GraphSpec;
1390
+ /**
1391
+ * Selected graph specification.
1392
+ */
762
1393
  selected?: GraphSpec;
763
1394
  };
764
1395
 
@@ -774,20 +1405,56 @@ declare class DockLocation {
774
1405
  toString(): string;
775
1406
  }
776
1407
 
1408
+ /**
1409
+ * Represents a draft workspace item.
1410
+ * @beta
1411
+ */
777
1412
  export declare type DraftWorkspaceItem = WorkspaceItem & {
1413
+ /**
1414
+ * Indicates if the item is a draft. The attribute is not saved in persistence.
1415
+ */
778
1416
  os_draft_item: true;
779
1417
  };
780
1418
 
1419
+ /**
1420
+ * Parameters for drag end.
1421
+ * @beta
1422
+ */
781
1423
  export declare type DragEndParams = {
1424
+ /**
1425
+ * Record being dragged.
1426
+ */
782
1427
  record: Entity;
1428
+ /**
1429
+ * Records being dragged.
1430
+ */
783
1431
  records: Entity[];
1432
+ /**
1433
+ * X-coordinate of the drag end position.
1434
+ */
784
1435
  x: number;
1436
+ /**
1437
+ * Y-coordinate of the drag end position.
1438
+ */
785
1439
  y: number;
786
1440
  };
787
1441
 
1442
+ /**
1443
+ * Parameters for drag start.
1444
+ * @beta
1445
+ */
788
1446
  export declare type DragStartParams = {
1447
+ /**
1448
+ * Record being dragged.
1449
+ */
789
1450
  record: Entity;
1451
+ /**
1452
+ * Records being dragged.
1453
+ */
790
1454
  records: Entity[];
1455
+ /**
1456
+ * Topic for drag end event.
1457
+ */
791
1458
  dragEndTopic: string;
792
1459
  };
793
1460
 
@@ -800,104 +1467,279 @@ declare class DropInfo {
800
1467
  constructor(node: Node_2 & IDropTarget, rect: Rect, location: DockLocation, index: number, className: string);
801
1468
  }
802
1469
 
803
- export declare type DropZoneRequestFn = (args: any[]) => Promise<DropZoneRequestResult>;
804
-
805
- export declare type DropZoneRequestResult = {
806
- to: any;
807
- data: any;
808
- };
809
-
1470
+ /**
1471
+ * @beta
1472
+ * Type representing a connection between two entities with a relationship.
1473
+ */
810
1474
  export declare type EConnection = {
1475
+ /** The first entity in the connection. */
811
1476
  entity1: Entity;
1477
+ /** The second entity in the connection. */
812
1478
  entity2: Entity;
1479
+ /** The relationship between the two entities. */
813
1480
  relationship: Relationship;
814
1481
  };
815
1482
 
1483
+ /**
1484
+ * @beta
1485
+ * Type representing the specification of an edge in a graph.
1486
+ */
816
1487
  export declare type EdgeSpec = {
1488
+ /** The identifier of the starting node. */
817
1489
  from: string;
1490
+ /** The identifier of the ending node. */
818
1491
  to: string;
1492
+ /** The label for the edge. */
819
1493
  label: string;
820
1494
  };
821
1495
 
822
- declare type EmitEventTransformDefinition = {
1496
+ /**
1497
+ * @beta
1498
+ * Type representing a transform definition that emits an event.
1499
+ */
1500
+ export declare type EmitEventTransformDefinition = {
1501
+ /** The type of the transform, always 'emit_event' for this type. */
823
1502
  type: 'emit_event';
1503
+ /** The topic of the event to emit. */
824
1504
  topic: string;
1505
+ /** The arguments for the event. */
825
1506
  args: string[];
826
1507
  };
827
1508
 
1509
+ /**
1510
+ * Represents an entity with basic attributes.
1511
+ * @beta
1512
+ */
828
1513
  export declare type Entity = {
1514
+ /**
1515
+ * The ID of the entity.
1516
+ */
829
1517
  entity_id: string;
1518
+ /**
1519
+ * The type of the entity.
1520
+ */
830
1521
  entity_type: string;
1522
+ /**
1523
+ * The label of the entity.
1524
+ */
831
1525
  entity_label: string;
832
1526
  };
833
1527
 
1528
+ /**
1529
+ * @beta
1530
+ * Type representing an edge between two entities with a relationship.
1531
+ */
834
1532
  export declare type EntityEdge = {
1533
+ /** The starting entity of the edge. */
835
1534
  from: Entity;
1535
+ /** The ending entity of the edge. */
836
1536
  to: Entity;
1537
+ /** The relationship between the two entities. */
837
1538
  relationship: Relationship;
838
1539
  };
839
1540
 
1541
+ /**
1542
+ * Represents an entity with additional attributes for one-to-many relationships.
1543
+ * @beta
1544
+ */
1545
+ export declare type EntityOTM = Entity & {
1546
+ /**
1547
+ * The UID of the source entity.
1548
+ */
1549
+ source_entity_uid: string;
1550
+ /**
1551
+ * The type of the source entity.
1552
+ */
1553
+ source_entity_type: string;
1554
+ };
1555
+
1556
+ /**
1557
+ * Context for pasting entities.
1558
+ * @beta
1559
+ */
840
1560
  export declare type EntityPasteContext = {
1561
+ /**
1562
+ * Counts the number of entities.
1563
+ */
841
1564
  count: () => Promise<number>;
1565
+ /**
1566
+ * Fetches entities with a limit.
1567
+ */
842
1568
  fetch: (limit?: number) => Promise<Entity[]>;
843
1569
  };
844
1570
 
1571
+ /**
1572
+ * @beta
1573
+ * Type representing the event context, including methods to manage event publishing and subscription.
1574
+ */
845
1575
  export declare type EventContextType = {
1576
+ /** The event emitter instance. */
846
1577
  EE: EventEmitterType;
1578
+ /** Function to publish events. */
847
1579
  publish: EventPublisher;
1580
+ /** Function to subscribe to events. */
848
1581
  subscribe: EventSubscriber;
1582
+ /** Function to unsubscribe from events. */
849
1583
  unsubscribe: EventUnsubscriber;
850
1584
  };
851
1585
 
1586
+ /**
1587
+ * @beta
1588
+ * Type representing an event emitter with methods to manage events.
1589
+ */
852
1590
  export declare type EventEmitterType = {
1591
+ /**
1592
+ * Emits an event.
1593
+ * @param event - The name or symbol of the event.
1594
+ * @param args - The arguments to pass to the event listeners.
1595
+ */
853
1596
  emit: (event: string | symbol, ...args: any[]) => void;
1597
+ /**
1598
+ * Registers an event listener.
1599
+ * @param event - The name or symbol of the event.
1600
+ * @param fn - The function to call when the event is emitted.
1601
+ */
854
1602
  on: (event: string | symbol, fn: (...args: any[]) => void) => void;
1603
+ /**
1604
+ * Registers a one-time event listener.
1605
+ * @param event - The name or symbol of the event.
1606
+ * @param fn - The function to call when the event is emitted.
1607
+ */
855
1608
  once: (event: string | symbol, fn: (...args: any[]) => void) => void;
1609
+ /**
1610
+ * Removes an event listener.
1611
+ * @param event - The name or symbol of the event.
1612
+ * @param fn - The function to remove from the event listeners.
1613
+ */
856
1614
  off: (event: string | symbol, fn: (...args: any[]) => void) => void;
857
1615
  };
858
1616
 
1617
+ /**
1618
+ * @beta
1619
+ * Type representing an event name, which can be a string or symbol.
1620
+ */
859
1621
  export declare type EventName = string | symbol;
860
1622
 
1623
+ /**
1624
+ * @beta
1625
+ * Type representing a function that produces events.
1626
+ * @param eventName - The name of the event.
1627
+ * @param data - The data associated with the event.
1628
+ * @returns The result of the event production.
1629
+ */
861
1630
  export declare type EventProducer = (eventName: EventName, data: any) => any;
862
1631
 
1632
+ /**
1633
+ * @beta
1634
+ * Type representing a function that publishes events.
1635
+ * @template T - The type of the event data.
1636
+ * @param eventName - The name of the event.
1637
+ * @param data - The data associated with the event.
1638
+ */
863
1639
  export declare type EventPublisher = <T>(eventName: EventName, data: T) => void;
864
1640
 
1641
+ /**
1642
+ * @beta
1643
+ * Type representing a function that subscribes to events.
1644
+ * @template L - The type of the event listener payload.
1645
+ * @param eventName - The name of the event.
1646
+ * @param listener - The event listener to add.
1647
+ * @returns The function to unsubscribe the event listener.
1648
+ */
865
1649
  export declare type EventSubscriber = <L>(eventName: EventName, listener: CustomEventListener<L>) => EventUnsubscriber;
866
1650
 
1651
+ /**
1652
+ * @beta
1653
+ * Type representing a function that unsubscribes from events.
1654
+ * @template L - The type of the event listener payload.
1655
+ * @param eventName - The name of the event.
1656
+ * @param listener - The event listener to remove.
1657
+ */
867
1658
  export declare type EventUnsubscriber = <L>(eventName: EventName, listener: CustomEventListener<L>) => void;
868
1659
 
1660
+ /**
1661
+ * Options for exporting items.
1662
+ * @beta
1663
+ */
869
1664
  export declare type ExportOptions = {
1665
+ /**
1666
+ * Filename for the export.
1667
+ */
870
1668
  filename?: string;
871
1669
  };
872
1670
 
873
- export declare type ExtrasApi = {
874
- createLinkChart: CreateLinkChartFn;
1671
+ export declare type ExtractEntitiesOptions = {
1672
+ hydrate?: boolean;
875
1673
  };
876
1674
 
877
- declare type FileCode = {
1675
+ /**
1676
+ * @alpha
1677
+ * File containing the code. Not yet supported.
1678
+ */
1679
+ export declare type FileCode = {
1680
+ /** The file containing the code. */
878
1681
  file: string;
879
1682
  };
880
1683
 
1684
+ /**
1685
+ * Options for file tree.
1686
+ * @beta
1687
+ */
881
1688
  export declare type FileTreeOptions = {
1689
+ /**
1690
+ * Whether to recurse in the file tree.
1691
+ */
882
1692
  recurse?: boolean;
1693
+ /**
1694
+ * Whether to exclude the root from the file tree.
1695
+ */
883
1696
  exclude_root?: boolean;
1697
+ /**
1698
+ * Whether to flatten the file tree.
1699
+ */
884
1700
  flat?: boolean;
1701
+ /**
1702
+ * Whether to show minimal information in the file tree.
1703
+ */
885
1704
  minimal?: boolean;
1705
+ /**
1706
+ * Whether to include structure in the file tree.
1707
+ */
886
1708
  structure?: boolean;
887
1709
  };
888
1710
 
1711
+ /**
1712
+ * @beta
1713
+ * Type representing a filter definition, which can be one of several specific filter types.
1714
+ */
889
1715
  export declare type FilterDefinition = ProvidedFilterDefinition | PythonFilterDefinition | JavascriptFilterDefinition | SemanticallyBoundFilterDefinition;
890
1716
 
891
- declare type FilterDefinitions = {
1717
+ /**
1718
+ * @beta
1719
+ * Type representing a collection of filter definitions.
1720
+ */
1721
+ export declare type FilterDefinitions = {
892
1722
  [k: FilterName]: FilterDefinition;
893
1723
  };
894
1724
 
1725
+ /**
1726
+ * @beta
1727
+ * Type representing the name of a filter.
1728
+ */
895
1729
  export declare type FilterName = string;
896
1730
 
897
- declare type FilterReference = string | {
1731
+ /**
1732
+ * @beta
1733
+ * Type representing a reference to a filter, which can be a string or an object requiring all filters.
1734
+ */
1735
+ export declare type FilterReference = string | {
898
1736
  ['require_all']: FilterReference[];
899
1737
  };
900
1738
 
1739
+ /**
1740
+ * Represents an item in a focus list.
1741
+ * @beta
1742
+ */
901
1743
  export declare type FocusListItem = {
902
1744
  entity: Entity;
903
1745
  count: number;
@@ -905,33 +1747,75 @@ export declare type FocusListItem = {
905
1747
  type?: 'single';
906
1748
  } | NamedEntityGroup;
907
1749
 
1750
+ /**
1751
+ * Options for pasting folders.
1752
+ * @beta
1753
+ */
908
1754
  export declare type FolderPasteOptions = {
1755
+ /**
1756
+ * Whether to include folders in the paste.
1757
+ */
909
1758
  folders?: boolean;
1759
+ /**
1760
+ * Whether to include files in the paste.
1761
+ */
910
1762
  files?: boolean;
1763
+ /**
1764
+ * Whether to paste recursively.
1765
+ */
911
1766
  recursive?: boolean;
912
1767
  };
913
1768
 
1769
+ /**
1770
+ * Options for getting attachments.
1771
+ * @beta
1772
+ */
914
1773
  export declare interface GetAttachmentOptions<T extends AttachmentType> {
1774
+ /**
1775
+ * Path to the attachment.
1776
+ */
915
1777
  path?: string;
1778
+ /**
1779
+ * Default value for the attachment.
1780
+ */
916
1781
  default?: T;
1782
+ /**
1783
+ * Response type for the attachment.
1784
+ */
917
1785
  responseType?: AttachmentResponseType;
918
1786
  }
919
1787
 
920
1788
  declare type Globals = "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset";
921
1789
 
1790
+ /**
1791
+ * @beta
1792
+ * Type representing the specification of a graph.
1793
+ */
922
1794
  export declare type GraphSpec = {
1795
+ /** Optional workspace item associated with the graph. */
923
1796
  workspace_item?: Entity;
1797
+ /** The nodes (entities) in the graph. */
924
1798
  nodes: Entity[];
1799
+ /** The edges connecting the nodes in the graph. */
925
1800
  edges: EdgeSpec[];
926
1801
  };
927
1802
 
928
- declare type HttpTransformDefinition = {
1803
+ /**
1804
+ * @beta
1805
+ * Type representing an HTTP transform definition.
1806
+ */
1807
+ export declare type HttpTransformDefinition = {
1808
+ /** The type of the transform, always 'http' for this type. */
929
1809
  type: 'http';
1810
+ /** The HTTP method for the transform. */
930
1811
  method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
1812
+ /** The URL for the HTTP request, can be relative to the url of the deployed app */
931
1813
  url: string;
1814
+ /** Optional headers for the HTTP request. */
932
1815
  headers?: {
933
1816
  [k: string]: string;
934
1817
  };
1818
+ /** Optional data for the HTTP request. */
935
1819
  data?: string | {
936
1820
  [k: string]: any;
937
1821
  };
@@ -960,26 +1844,81 @@ declare enum ICloseType {
960
1844
  Selected = 3
961
1845
  }
962
1846
 
1847
+ /**
1848
+ * Type for icons.
1849
+ * @beta
1850
+ */
963
1851
  export declare type Icon = IconProps | string;
964
1852
 
1853
+ /**
1854
+ * Represents properties for an icon.
1855
+ * @beta
1856
+ */
965
1857
  export declare type IconProps = {
1858
+ /**
1859
+ * Name of the icon.
1860
+ */
966
1861
  icon: string;
1862
+ /**
1863
+ * Optional class name for styling.
1864
+ */
967
1865
  className?: string;
1866
+ /**
1867
+ * Rotation angle for the icon.
1868
+ */
968
1869
  rotate?: number;
1870
+ /**
1871
+ * Whether the icon should spin.
1872
+ */
969
1873
  spin?: boolean;
1874
+ /**
1875
+ * CSS properties for the icon.
1876
+ */
970
1877
  style?: ReactCssProperties;
1878
+ /**
1879
+ * Reference to the HTML span element.
1880
+ */
971
1881
  iconRef?: ReactRef<HTMLSpanElement>;
972
1882
  };
973
1883
 
1884
+ /**
1885
+ * @beta
1886
+ * Interface for managing data transfer during drag and drop operations.
1887
+ */
974
1888
  export declare interface IDataTransfer {
1889
+ /**
1890
+ * Clears the data for the specified format or all formats if none is specified.
1891
+ * @param format - The format of the data to clear.
1892
+ */
975
1893
  clearData(format?: string): void;
1894
+ /**
1895
+ * Sets the data for the specified format.
1896
+ * @param format - The format of the data.
1897
+ * @param data - The data to be set.
1898
+ */
976
1899
  setData(format: string, data: string): void;
1900
+ /**
1901
+ * Retrieves the data for the specified format.
1902
+ * @param format - The format of the data to retrieve.
1903
+ * @returns The data for the specified format, or null if not found.
1904
+ */
977
1905
  getData(format: string): string | null;
1906
+ /**
1907
+ * Sets the image to be used for dragging.
1908
+ * @param img - The image element to be used.
1909
+ * @param xOffset - The horizontal offset.
1910
+ * @param yOffset - The vertical offset.
1911
+ */
978
1912
  setDragImage?(img: Element, xOffset: number, yOffset: number): void;
1913
+ /** The drop effect for the drag operation. */
979
1914
  readonly dropEffect: string;
1915
+ /** The effect allowed for the drag operation. */
980
1916
  readonly effectAllowed: string;
1917
+ /** The list of files being transferred. */
981
1918
  readonly files: FileList;
1919
+ /** The types of data being transferred. */
982
1920
  readonly types: string[];
1921
+ /** The items being transferred. */
983
1922
  readonly items: DataTransferItemList;
984
1923
  }
985
1924
 
@@ -989,11 +1928,21 @@ declare interface IDraggable {
989
1928
  declare interface IDropTarget {
990
1929
  }
991
1930
 
992
- declare type IframeTransformDefinition = {
1931
+ /**
1932
+ * @beta
1933
+ * Type representing an iframe transform definition.
1934
+ */
1935
+ export declare type IframeTransformDefinition = {
1936
+ /** The type of the transform, always 'iframe' for this type. */
993
1937
  type: 'iframe';
1938
+ /** The URL to load in the iframe. */
994
1939
  url: string;
1940
+ /** The title of the iframe. */
995
1941
  title: string;
1942
+ /** The icon for the iframe. */
996
1943
  icon: string;
1944
+ /** Whether to reuse the tab for the iframe. */
1945
+ reuse_tab?: boolean;
997
1946
  };
998
1947
 
999
1948
  declare interface IGlobalAttributes {
@@ -1073,19 +2022,69 @@ declare interface IJsonTabSetNode extends ITabSetAttributes {
1073
2022
  children: IJsonTabNode[];
1074
2023
  }
1075
2024
 
2025
+ /**
2026
+ * Represents information about an image.
2027
+ * @beta
2028
+ */
2029
+ export declare type ImageInfo = {
2030
+ /**
2031
+ * The blurhash of the image.
2032
+ */
2033
+ blurhash?: string;
2034
+ /**
2035
+ * The natural width of the image.
2036
+ */
2037
+ width: number;
2038
+ /**
2039
+ * The natural height of the image.
2040
+ */
2041
+ height: number;
2042
+ };
2043
+
2044
+ /**
2045
+ * Options for importing ZIP files.
2046
+ * @beta
2047
+ */
1076
2048
  export declare type ImportZipOptions = {
2049
+ /**
2050
+ * Whether to overwrite existing items.
2051
+ */
1077
2052
  overwrite?: boolean;
2053
+ /**
2054
+ * Target location for the import.
2055
+ */
1078
2056
  target?: string;
2057
+ /**
2058
+ * Whether to include content in the import.
2059
+ */
1079
2060
  include_content?: boolean;
2061
+ /**
2062
+ * Whether to include dashboards in the import.
2063
+ */
1080
2064
  include_dashboards?: boolean | 'if_missing';
1081
2065
  };
1082
2066
 
2067
+ /**
2068
+ * Represents an inheritance relationship between concepts.
2069
+ * @beta
2070
+ */
1083
2071
  export declare interface Inheritance {
2072
+ /**
2073
+ * The base concept in the inheritance.
2074
+ */
1084
2075
  base_concept: string;
2076
+ /**
2077
+ * The derived concept in the inheritance.
2078
+ */
1085
2079
  derived_concept: string;
1086
2080
  }
1087
2081
 
1088
- declare type InlineCode = {
2082
+ /**
2083
+ * @beta
2084
+ * Inline code.
2085
+ */
2086
+ export declare type InlineCode = {
2087
+ /** The inline code. */
1089
2088
  code: string;
1090
2089
  };
1091
2090
 
@@ -1155,37 +2154,89 @@ declare interface ItemSharedProps {
1155
2154
 
1156
2155
  declare type ItemType = SubMenuType | MenuItemType | MenuItemGroupType | MenuDividerType | null;
1157
2156
 
1158
- declare type JavascriptFileStylerDefinition = JavascriptType & FileCode;
2157
+ /**
2158
+ * @beta
2159
+ * Type representing a JavaScript file styler definition.
2160
+ */
2161
+ export declare type JavascriptFileStylerDefinition = JavascriptType & FileCode;
1159
2162
 
1160
- declare type JavascriptFileTransformDefinition = JavascriptType & FileCode;
2163
+ /**
2164
+ * @alpha
2165
+ * Type representing a JavaScript file transform definition. Not yet supported.
2166
+ */
2167
+ export declare type JavascriptFileTransformDefinition = JavascriptType & FileCode;
1161
2168
 
2169
+ /**
2170
+ * @beta
2171
+ * Type representing a JavaScript filter definition.
2172
+ */
1162
2173
  export declare type JavascriptFilterDefinition = {
2174
+ /** The type of the filter, always 'javascript' for this type. */
1163
2175
  type: 'javascript';
2176
+ /** The JavaScript code defining the filter. */
1164
2177
  code: string;
1165
2178
  };
1166
2179
 
1167
- declare type JavascriptInlineStylerDefinition = JavascriptType & InlineCode;
2180
+ /**
2181
+ * @beta
2182
+ * Type representing an inline JavaScript styler definition.
2183
+ */
2184
+ export declare type JavascriptInlineStylerDefinition = JavascriptType & InlineCode;
1168
2185
 
1169
- declare type JavascriptInlineTransformDefinition = JavascriptType & InlineCode;
2186
+ /**
2187
+ * @beta
2188
+ * Type representing an inline JavaScript transform definition.
2189
+ */
2190
+ export declare type JavascriptInlineTransformDefinition = JavascriptType & InlineCode;
1170
2191
 
1171
- declare type JavascriptType = {
2192
+ /**
2193
+ * @beta
2194
+ * Type representing a JavaScript transform definition.
2195
+ */
2196
+ export declare type JavascriptType = {
2197
+ /** The type of the transform or styler, always 'javascript' for this type. */
1172
2198
  type: 'javascript';
1173
2199
  };
1174
2200
 
1175
- declare type JobManifest = {
2201
+ /**
2202
+ * @beta
2203
+ * Type representing a job manifest.
2204
+ */
2205
+ export declare type JobManifest = {
2206
+ /** Name of the job. */
1176
2207
  name: string;
2208
+ /** Description of the job. */
1177
2209
  description: string;
2210
+ /** Icon for the job. */
1178
2211
  icon: string;
2212
+ /** Optional image for the job. */
1179
2213
  image?: string;
2214
+ /** Optional engine for the job. */
2215
+ engine?: 'k8s' | 's3' | 'reactlive';
2216
+ /** Optional template for the job. */
2217
+ template?: string;
2218
+ /** Optional variant for the job. */
2219
+ variant?: string;
2220
+ /** Optional instance type for the job. */
1180
2221
  instance_type?: string;
2222
+ /** Whether to skip archiving the job. */
1181
2223
  no_archive?: boolean;
2224
+ /** Whether to generate a URL from logs. */
1182
2225
  url_from_logs?: boolean;
2226
+ /** Optional collection of transforms for the job. */
1183
2227
  transforms?: TransformDefinitions;
2228
+ /** Optional collection of filters for the job. */
1184
2229
  filters?: FilterDefinitions;
2230
+ /** Optional collection of stylers for the job. */
1185
2231
  stylers?: StylerDefinitions;
2232
+ /** Optional collection of services for the job. */
1186
2233
  services?: ServiceDefinitions;
1187
2234
  };
1188
2235
 
2236
+ /**
2237
+ * @beta
2238
+ * Type representing known counts of relationships.
2239
+ */
1189
2240
  export declare type KnownCounts = {
1190
2241
  [relationship_name: string]: number;
1191
2242
  };
@@ -1230,12 +2281,25 @@ declare interface MenuTitleInfo {
1230
2281
  domEvent: React_2.MouseEvent<HTMLElement> | React_2.KeyboardEvent<HTMLElement>;
1231
2282
  }
1232
2283
 
2284
+ /**
2285
+ * @beta
2286
+ * Type representing the properties for a modal template, extending CustomTemplateIframeProps.
2287
+ */
1233
2288
  export declare type ModalTemplateProps = CustomTemplateIframeProps & {
2289
+ /** Optional properties for the modal. */
1234
2290
  modalProps?: ModalProps;
2291
+ /** Whether the modal is open. */
1235
2292
  isModalOpen: boolean;
2293
+ /**
2294
+ * Function to set the open state of the modal.
2295
+ * @param open - The new open state of the modal.
2296
+ */
1236
2297
  setIsModalOpen: (open: boolean) => void;
2298
+ /** Callback function to be called on completion. */
1237
2299
  onComplete?: () => void;
2300
+ /** Callback function to be called on cancel. */
1238
2301
  onCancel?: () => void;
2302
+ /** The task ID associated with the modal. */
1239
2303
  taskID?: string;
1240
2304
  };
1241
2305
 
@@ -1311,10 +2375,26 @@ declare class Model {
1311
2375
  toString(): string;
1312
2376
  }
1313
2377
 
2378
+ /**
2379
+ * Represents a named group (set?) entities.
2380
+ * @beta
2381
+ */
1314
2382
  export declare type NamedEntityGroup = {
2383
+ /**
2384
+ * The label for the entity group.
2385
+ */
1315
2386
  entity_label: string;
2387
+ /**
2388
+ * The query to provide the entites
2389
+ */
1316
2390
  query: ConceptFilter;
2391
+ /**
2392
+ * The count of entities in the group.
2393
+ */
1317
2394
  count: number;
2395
+ /**
2396
+ * The type of the entity group, always set to 'group'.
2397
+ */
1318
2398
  type: 'group';
1319
2399
  };
1320
2400
 
@@ -1332,13 +2412,27 @@ declare abstract class Node_2 {
1332
2412
  abstract toJson(): IJsonRowNode | IJsonBorderNode | IJsonTabSetNode | IJsonTabNode | undefined;
1333
2413
  }
1334
2414
 
1335
- declare type NunjucksFileTransformDefinition = NunjucksType & FileCode;
2415
+ /**
2416
+ * @alpha
2417
+ * Type representing a Nunjucks file transform definition. Not yet supported.
2418
+ */
2419
+ export declare type NunjucksFileTransformDefinition = NunjucksType & FileCode;
1336
2420
 
1337
- declare type NunjucksInlineTransformDefinition = NunjucksType & {
2421
+ /**
2422
+ * @beta
2423
+ * Type representing an inline Nunjucks transform definition.
2424
+ */
2425
+ export declare type NunjucksInlineTransformDefinition = NunjucksType & {
2426
+ /** The Nunjucks template. */
1338
2427
  template: string;
1339
2428
  };
1340
2429
 
2430
+ /**
2431
+ * @beta
2432
+ * Type representing a Nunjucks transform definition.
2433
+ */
1341
2434
  declare type NunjucksType = {
2435
+ /** The type of the transform or styler, always 'nunjucks' for this type. */
1342
2436
  type: 'nunjucks';
1343
2437
  };
1344
2438
 
@@ -2397,30 +3491,143 @@ declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string
2397
3491
  WebkitBoxPack?: Property_2.BoxPack | undefined;
2398
3492
  }
2399
3493
 
3494
+ /**
3495
+ * @beta
3496
+ * Interface representing ontology operations.
3497
+ */
2400
3498
  export declare interface Ontology {
3499
+ /**
3500
+ * Cancels queries in the given context.
3501
+ * @param context - The context in which to cancel queries.
3502
+ * @returns A promise that resolves when the operation is complete.
3503
+ */
2401
3504
  cancelQueries: (context: string) => Promise<void>;
3505
+ /**
3506
+ * Gets the available ontologies.
3507
+ * @returns A promise that resolves to an array of available ontology names.
3508
+ */
2402
3509
  getAvailableOntologies: () => Promise<string[]>;
3510
+ /**
3511
+ * Gets workspace relationship records for a given entity and relationship.
3512
+ * @param entity - The entity for which to get relationship records.
3513
+ * @param rel - The relationship or relationship name.
3514
+ * @returns A promise that resolves to an array of workspace relationships.
3515
+ */
2403
3516
  getWorkspaceRelationshipRecords(entity: Entity, rel: string | Relationship): Promise<WorkspaceRelationship[]>;
2404
- clearRelationshipCache: (entity: Entity, relationship: Relationship | string) => Promise<void>;
3517
+ /**
3518
+ * Clears the relationship cache for a given entity and relationship.
3519
+ * @param entity - The entity for which to clear the cache.
3520
+ * @param relationship - The relationship or relationship name.
3521
+ * @param inverse - Whether to clear the inverse relationship cache.
3522
+ * @returns A promise that resolves when the operation is complete.
3523
+ */
3524
+ clearRelationshipCache: (entity: Entity, relationship: Relationship | string, inverse?: boolean) => Promise<void>;
3525
+ /**
3526
+ * Gets connected entities for a given entity and relationship.
3527
+ * @param entity - The entity for which to get connected entities.
3528
+ * @param relationship - The relationship or relationship name.
3529
+ * @param forceRefresh - Whether to force a refresh of the data.
3530
+ * @returns A promise that resolves to an array of connected entities.
3531
+ */
2405
3532
  getConnectedEntities: <T extends Entity>(entity: Entity, relationship: Relationship | string, forceRefresh?: boolean) => Promise<T[]>;
3533
+ /**
3534
+ * Gets a concept by its name.
3535
+ * @param conceptName - The name of the concept.
3536
+ * @returns A promise that resolves to the concept or undefined if not found.
3537
+ */
2406
3538
  getConceptByName: (conceptName: string) => Promise<Concept | undefined>;
3539
+ /**
3540
+ * Gets all concepts.
3541
+ * @returns A promise that resolves to a map of concept names to concepts.
3542
+ */
2407
3543
  getConcepts: () => Promise<Map<string, Concept>>;
3544
+ /**
3545
+ * Gets an entity.
3546
+ * @param e - The entity to get.
3547
+ * @param refresh - Whether to refresh the data.
3548
+ * @param skipSideEffects - Whether to skip side effects.
3549
+ * @returns A promise that resolves to the entity.
3550
+ */
2408
3551
  getEntity: <T extends Entity>(e: Entity, refresh?: boolean, skipSideEffects?: boolean) => Promise<T>;
3552
+ /**
3553
+ * Gets the name of the ontology.
3554
+ * @returns A promise that resolves to the name of the ontology.
3555
+ */
2409
3556
  getOntologyName: () => Promise<string>;
3557
+ /**
3558
+ * Gets the relationship count for a given entity and relationship.
3559
+ * @param entity - The entity for which to get the relationship count.
3560
+ * @param rel - The relationship or relationship name.
3561
+ * @param forceRefresh - Whether to force a refresh of the data.
3562
+ * @returns A promise that resolves to the relationship count result.
3563
+ */
2410
3564
  getRelationshipCount: (entity: Entity, rel: Relationship | string, forceRefresh?: boolean) => Promise<RelationshipCountResult>;
3565
+ /**
3566
+ * Gets the concept for a given entity.
3567
+ * @param entity - The entity for which to get the concept.
3568
+ * @returns A promise that resolves to the concept or undefined if not found.
3569
+ */
2411
3570
  getConceptForEntity: (entity: Entity) => Promise<Concept | undefined>;
3571
+ /**
3572
+ * Gets the relationships for a given entity.
3573
+ * @param entity - The entity for which to get relationships.
3574
+ * @returns A promise that resolves to an array of relationships.
3575
+ */
2412
3576
  getRelationshipsForEntity: (entity: Entity) => Promise<Relationship[]>;
3577
+ /**
3578
+ * Sends a query.
3579
+ * @param query - The query string.
3580
+ * @param options - Optional options for sending the query.
3581
+ * @returns A promise that resolves to the query response.
3582
+ */
2413
3583
  sendQuery: (query: string, options?: SendQueryOptions) => Promise<QueryResponse>;
3584
+ /**
3585
+ * Sends a query with a typed response.
3586
+ * @param query - The query string.
3587
+ * @param options - Optional options for sending the query.
3588
+ * @param force_refresh - Whether to force a refresh of the data.
3589
+ * @returns A promise that resolves to an array of results.
3590
+ */
2414
3591
  sendQueryT: <T>(query: string, options?: SendQueryOptions, force_refresh?: boolean) => Promise<T[]>;
3592
+ /**
3593
+ * Gets the system inheritance.
3594
+ * @returns A promise that resolves to an array of inheritances.
3595
+ */
2415
3596
  getSysInheritance(): Promise<Inheritance[]>;
3597
+ /**
3598
+ * Subscribes to changes for a given entity.
3599
+ * @param entity - The entity to subscribe to.
3600
+ * @param callback - The callback to invoke on changes.
3601
+ * @returns A promise that resolves to an unsubscribe function.
3602
+ */
2416
3603
  subscribe: <T>(entity: Entity, callback: Callback<T>) => Promise<Unsubscribe>;
3604
+ /**
3605
+ * Generates a consistent UUID.
3606
+ * @param name - The name for which to generate the UUID.
3607
+ * @param namespace - Optional namespace for the UUID.
3608
+ * @returns A promise that resolves to the UUID.
3609
+ */
2417
3610
  consistentUUID: (name: string, namespace?: string) => Promise<string>;
3611
+ /**
3612
+ * Updates the cache with the given entities.
3613
+ * @param entities - The entities to update in the cache.
3614
+ * @returns A promise that resolves to the updated entities.
3615
+ */
3616
+ updateCache: (entities: (Entity & WorkspaceItem)[]) => Promise<(Entity & WorkspaceItem)[]>;
2418
3617
  }
2419
3618
 
3619
+ /**
3620
+ * @beta
3621
+ * Type representing tags associated with an ontology.
3622
+ */
2420
3623
  export declare type OntologyTags = {
3624
+ /** The target type of the tag. */
2421
3625
  target_type: string;
3626
+ /** The target name of the tag. */
2422
3627
  target_name: string;
3628
+ /** The name of the tag. */
2423
3629
  tag_name: string;
3630
+ /** The value of the tag. */
2424
3631
  tag_value: string;
2425
3632
  };
2426
3633
 
@@ -2436,61 +3643,193 @@ export declare const OS_CONFIRM_MODAL_CANCEL: undefined;
2436
3643
 
2437
3644
  export declare const OS_CONFIRM_MODAL_NO = false;
2438
3645
 
3646
+ /**
3647
+ * Response type for confirmation modal.
3648
+ * @beta
3649
+ */
2439
3650
  export declare type OS_CONFIRM_MODAL_RESPONSE = typeof OS_CONFIRM_MODAL_YES | typeof OS_CONFIRM_MODAL_NO | typeof OS_CONFIRM_MODAL_CANCEL;
2440
3651
 
2441
3652
  export declare const OS_CONFIRM_MODAL_YES = true;
2442
3653
 
3654
+ /**
3655
+ * Represents audit fields for OS (Operational Support) records.
3656
+ * @beta
3657
+ */
2443
3658
  export declare type OsAuditFields = {
3659
+ /**
3660
+ * User who created the record.
3661
+ */
2444
3662
  os_created_by?: string;
3663
+ /**
3664
+ * Timestamp when the record was created.
3665
+ */
2445
3666
  os_created_at?: string;
3667
+ /**
3668
+ * User who deleted the record.
3669
+ */
2446
3670
  os_deleted_by?: string;
3671
+ /**
3672
+ * Timestamp when the record was deleted.
3673
+ */
2447
3674
  os_deleted_at?: string;
3675
+ /**
3676
+ * User who hid the record.
3677
+ */
2448
3678
  os_hidden_by?: string;
3679
+ /**
3680
+ * Timestamp when the record was hidden.
3681
+ */
2449
3682
  os_hidden_at?: string;
3683
+ /**
3684
+ * User who last updated the record.
3685
+ */
2450
3686
  os_last_updated_by?: string;
3687
+ /**
3688
+ * Timestamp when the record was last updated.
3689
+ */
2451
3690
  os_last_updated_at?: string;
2452
3691
  };
2453
3692
 
3693
+ /**
3694
+ * Properties for confirmation modal.
3695
+ * @beta
3696
+ */
2454
3697
  export declare type OsConfirmProps = string | {
3698
+ /**
3699
+ * Title of the confirmation modal.
3700
+ */
2455
3701
  title: string;
3702
+ /**
3703
+ * Icon for the confirmation modal.
3704
+ */
2456
3705
  icon?: string;
3706
+ /**
3707
+ * Content of the confirmation modal.
3708
+ */
2457
3709
  content?: string;
3710
+ /**
3711
+ * Text for the OK button.
3712
+ */
2458
3713
  okText?: string;
3714
+ /**
3715
+ * Properties for the OK button.
3716
+ */
2459
3717
  okButtonProps?: ButtonProps;
3718
+ /**
3719
+ * Text for the cancel button.
3720
+ */
2460
3721
  cancelText?: string;
3722
+ /**
3723
+ * Task ID related to the confirmation modal.
3724
+ */
2461
3725
  taskID?: string;
2462
3726
  };
2463
3727
 
3728
+ /**
3729
+ * Type for notifications.
3730
+ * @beta
3731
+ */
2464
3732
  export declare type OsNotification = string | {
3733
+ /**
3734
+ * ID of the notification.
3735
+ */
2465
3736
  id?: string;
3737
+ /**
3738
+ * Message of the notification.
3739
+ */
2466
3740
  message: string | ReactNode;
3741
+ /**
3742
+ * Description of the notification.
3743
+ */
2467
3744
  description?: string;
3745
+ /**
3746
+ * Level of the notification.
3747
+ */
2468
3748
  level?: 'info' | 'success' | 'error' | 'warning';
3749
+ /**
3750
+ * Additional details for the notification.
3751
+ */
3752
+ detail?: {
3753
+ [key: string]: any;
3754
+ };
3755
+ /**
3756
+ * Placement of the notification.
3757
+ */
2469
3758
  placement?: 'top' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
2470
3759
  };
2471
3760
 
3761
+ /**
3762
+ * Type for progress information.
3763
+ * @beta
3764
+ */
2472
3765
  export declare type OsProgress = {
3766
+ /**
3767
+ * Key for the progress item.
3768
+ */
2473
3769
  key: string;
3770
+ /**
3771
+ * Label for the progress item.
3772
+ */
2474
3773
  label?: ReactNode;
3774
+ /**
3775
+ * Type of job for the progress item.
3776
+ */
2475
3777
  job_type?: string;
3778
+ /**
3779
+ * Status of the progress item.
3780
+ */
2476
3781
  status?: 'active' | 'success' | 'exception' | 'normal' | undefined;
2477
3782
  };
2478
3783
 
3784
+ /**
3785
+ * Represents a tag in the workspace.
3786
+ * @beta
3787
+ */
2479
3788
  export declare type OsTag = WorkspaceRecord & TagAttributes;
2480
3789
 
3790
+ /**
3791
+ * Represents a workspace entity.
3792
+ * @beta
3793
+ */
2481
3794
  export declare type OsWorkspaceEntity = Entity & WorkspaceRecordIdentifier;
2482
3795
 
3796
+ /**
3797
+ * Options for pasting context.
3798
+ * @beta
3799
+ */
2483
3800
  export declare type PasteContextOptions = {
3801
+ /**
3802
+ * First limit for the context.
3803
+ */
2484
3804
  limit1?: number;
3805
+ /**
3806
+ * Second limit for the context.
3807
+ */
2485
3808
  limit2?: number;
3809
+ /**
3810
+ * Record for the context.
3811
+ */
2486
3812
  record?: Entity;
3813
+ /**
3814
+ * Records for the context.
3815
+ */
2487
3816
  records?: Entity[];
3817
+ /**
3818
+ * Query for the context.
3819
+ */
2488
3820
  query?: ConceptFilter;
2489
3821
  };
2490
3822
 
3823
+ /**
3824
+ * @beta
3825
+ * Type representing a permission for a workspace item.
3826
+ */
2491
3827
  export declare type Permission = WorkspaceItem & {
3828
+ /** The username associated with the permission. */
2492
3829
  os_username?: string;
3830
+ /** The permission value. */
2493
3831
  os_permission: number;
3832
+ /** The role associated with the permission. */
2494
3833
  os_role?: string;
2495
3834
  };
2496
3835
 
@@ -2499,8 +3838,14 @@ export declare type Permission = WorkspaceItem & {
2499
3838
  */
2500
3839
  declare type PhysicalColumn = string;
2501
3840
 
3841
+ /**
3842
+ * @beta
3843
+ * Type representing a point in 2D space.
3844
+ */
2502
3845
  export declare type Point = {
3846
+ /** The x-coordinate of the point. */
2503
3847
  x: number;
3848
+ /** The y-coordinate of the point. */
2504
3849
  y: number;
2505
3850
  };
2506
3851
 
@@ -2510,9 +3855,22 @@ VendorProperties<TLength, TTime>,
2510
3855
  ObsoleteProperties<TLength, TTime>,
2511
3856
  SvgProperties<TLength, TTime> {}
2512
3857
 
3858
+ /**
3859
+ * Represents a property of a concept.
3860
+ * @beta
3861
+ */
2513
3862
  export declare interface Property {
3863
+ /**
3864
+ * The concept to which the property belongs.
3865
+ */
2514
3866
  concept: string;
3867
+ /**
3868
+ * The name of the property.
3869
+ */
2515
3870
  property_name: string;
3871
+ /**
3872
+ * The type of the property.
3873
+ */
2516
3874
  property_type: string;
2517
3875
  }
2518
3876
 
@@ -4260,43 +5618,106 @@ declare namespace Property_2 {
4260
5618
  type VectorEffect = Globals | "non-scaling-stroke" | "none";
4261
5619
  }
4262
5620
 
5621
+ /**
5622
+ * @beta
5623
+ * Type representing a filter definition that is provided.
5624
+ */
4263
5625
  export declare type ProvidedFilterDefinition = {
5626
+ /** The type of the filter, always 'provided' for this type. */
4264
5627
  type: 'provided';
4265
5628
  };
4266
5629
 
4267
- declare type ProvidedTransformDefinition = {
5630
+ /**
5631
+ * @beta
5632
+ * Type representing a provided transform definition.
5633
+ */
5634
+ export declare type ProvidedTransformDefinition = {
5635
+ /** The type of the transform, always 'provided' for this type. */
4268
5636
  type: 'provided';
4269
5637
  };
4270
5638
 
4271
- declare type PythonFileStylerDefinition = PythonType & FileCode;
5639
+ /**
5640
+ * @beta
5641
+ * Type representing a Python file styler definition.
5642
+ */
5643
+ export declare type PythonFileStylerDefinition = PythonType & FileCode;
4272
5644
 
4273
- declare type PythonFileTransformDefinition = PythonType & FileCode;
5645
+ /**
5646
+ * @alpha
5647
+ * Type representing a Python file transform definition. Not yet supported.
5648
+ */
5649
+ export declare type PythonFileTransformDefinition = PythonType & FileCode;
4274
5650
 
5651
+ /**
5652
+ * @beta
5653
+ * Type representing a Python filter definition.
5654
+ */
4275
5655
  export declare type PythonFilterDefinition = {
5656
+ /** The type of the filter, always 'python' for this type. */
4276
5657
  type: 'python';
5658
+ /** The Python code defining the filter. */
4277
5659
  code: string;
4278
5660
  };
4279
5661
 
4280
- declare type PythonInlineStylerDefinition = PythonType & InlineCode;
5662
+ /**
5663
+ * @beta
5664
+ * Type representing an inline Python styler definition.
5665
+ */
5666
+ export declare type PythonInlineStylerDefinition = PythonType & InlineCode;
4281
5667
 
4282
- declare type PythonInlineTransformDefinition = PythonType & InlineCode;
5668
+ /**
5669
+ * @beta
5670
+ * Type representing an inline Python transform definition.
5671
+ */
5672
+ export declare type PythonInlineTransformDefinition = PythonType & InlineCode;
4283
5673
 
4284
- declare type PythonType = {
5674
+ /**
5675
+ * @beta
5676
+ * Type representing a Python file transform definition.
5677
+ */
5678
+ export declare type PythonType = {
5679
+ /** The type of the transform or styler, always 'python' for this type. */
4285
5680
  type: 'python';
4286
5681
  };
4287
5682
 
5683
+ /**
5684
+ * @beta
5685
+ * Type representing a query, which can be a string or a function returning a promise.
5686
+ */
4288
5687
  export declare type Query = string | (() => Promise<string | string[] | undefined>);
4289
5688
 
5689
+ /**
5690
+ * @beta
5691
+ * Type representing a batch query result, which includes a query ID.
5692
+ * @template T - The type of the data returned in case of success.
5693
+ */
4290
5694
  export declare type QueryBatchResult<T> = (QuerySuccessResult<T> | QueryErrorResult) & {
5695
+ /** The ID of the query. */
4291
5696
  query_id: string;
4292
5697
  };
4293
5698
 
5699
+ /**
5700
+ * @beta
5701
+ * Type representing an error query result.
5702
+ */
4294
5703
  export declare type QueryErrorResult = {
5704
+ /** The status of the query result, always 'error' for this type. */
4295
5705
  status: 'error';
5706
+ /** The error message or data. */
4296
5707
  data: string;
4297
5708
  };
4298
5709
 
5710
+ /**
5711
+ * @beta
5712
+ * Interface representing a query executor.
5713
+ */
4299
5714
  export declare type QueryExecutor = {
5715
+ /**
5716
+ * Sends a query.
5717
+ * @param query - The query to send.
5718
+ * @param options - Optional options for sending the query.
5719
+ * @returns A promise that resolves to the query response.
5720
+ */
4300
5721
  sendQuery: (query: Query, options?: SendQueryOptions) => Promise<QueryResponse>;
4301
5722
  };
4302
5723
 
@@ -4308,25 +5729,76 @@ declare type QueryFormColumn = PhysicalColumn | AdhocColumn;
4308
5729
 
4309
5730
  declare type QueryObjectFilterClause = BinaryQueryObjectFilterClause | SetQueryObjectFilterClause | UnaryQueryObjectFilterClause;
4310
5731
 
5732
+ /**
5733
+ * @beta
5734
+ * Type representing a query response, which is an array of any type.
5735
+ */
4311
5736
  export declare type QueryResponse = any[];
4312
5737
 
5738
+ /**
5739
+ * @beta
5740
+ * Type representing a query result, which is an API result containing an array of any type.
5741
+ */
4313
5742
  export declare type QueryResult = ApiResult<any[]>;
4314
5743
 
5744
+ /**
5745
+ * @beta
5746
+ * Type representing a successful query result.
5747
+ * @template T - The type of the data returned.
5748
+ */
4315
5749
  export declare type QuerySuccessResult<T> = {
5750
+ /** The status of the query result, always 'success' for this type. */
4316
5751
  status: 'success';
5752
+ /** The data returned by the query. */
4317
5753
  data: T[];
4318
5754
  };
4319
5755
 
4320
5756
  declare type ReactCssProperties = Properties<string | number>;
4321
5757
 
5758
+ /**
5759
+ * Represents a React node.
5760
+ */
4322
5761
  declare type ReactNode = any;
4323
5762
 
4324
5763
  declare type ReactRef<T> = RefCallback<T> | RefObject<T> | null;
4325
5764
 
5765
+ /**
5766
+ * Represents a boolean value with an optional reason.
5767
+ * @beta
5768
+ */
5769
+ export declare type ReasonedBoolean = {
5770
+ value: true;
5771
+ } | {
5772
+ value: false;
5773
+ reason: string;
5774
+ };
5775
+
5776
+ /**
5777
+ * Interface for providing records.
5778
+ * @beta
5779
+ */
4326
5780
  export declare interface RecordProvider {
5781
+ /**
5782
+ * Retrieves the total count of records.
5783
+ * @returns A promise that resolves to the number of records.
5784
+ */
4327
5785
  getCount: () => Promise<number>;
5786
+ /**
5787
+ * Retrieves a specific record by its index.
5788
+ * @param i - The index of the record to retrieve.
5789
+ * @returns A promise that resolves to the requested record.
5790
+ */
4328
5791
  getRecord: (i: number) => Promise<Entity>;
5792
+ /**
5793
+ * Optional method to handle deletion of a record.
5794
+ * @param entity - The entity to delete.
5795
+ * @returns A promise that resolves when the deletion is complete.
5796
+ */
4329
5797
  onDelete?: (entity: Entity) => Promise<void>;
5798
+ /**
5799
+ * Retrieves a message related to the records.
5800
+ * @returns A promise that resolves to the message, or undefined if no message is available.
5801
+ */
4330
5802
  getMessage(): Promise<string | undefined>;
4331
5803
  }
4332
5804
 
@@ -4367,41 +5839,96 @@ declare interface RefObject<T> {
4367
5839
  readonly current: T | null;
4368
5840
  }
4369
5841
 
5842
+ /**
5843
+ * Represents a relationship between concepts.
5844
+ * @beta
5845
+ */
4370
5846
  export declare interface Relationship {
5847
+ /**
5848
+ * Unique identifier for the relationship.
5849
+ */
4371
5850
  key: string;
5851
+ /**
5852
+ * Source concept in the relationship.
5853
+ */
4372
5854
  concept: string;
5855
+ /**
5856
+ * Target concept in the relationship.
5857
+ */
4373
5858
  target_concept: string;
5859
+ /**
5860
+ * Name of the relationship.
5861
+ */
4374
5862
  relationship_name: string;
5863
+ /**
5864
+ * Inverse name of the relationship.
5865
+ */
4375
5866
  inverse_name: string;
5867
+ /**
5868
+ * Properties of the source concept.
5869
+ */
4376
5870
  source_properties: string;
5871
+ /**
5872
+ * Properties of the target concept.
5873
+ */
4377
5874
  target_properties: string;
5875
+ /**
5876
+ * Name of the mapping.
5877
+ */
4378
5878
  mapping_name: string;
5879
+ /**
5880
+ * Additional properties associated with the relationship.
5881
+ */
4379
5882
  additional_properties: string;
5883
+ /**
5884
+ * Query used for mapping the relationship.
5885
+ */
4380
5886
  mapping_query: string;
5887
+ /**
5888
+ * Tables involved in the relationship.
5889
+ */
4381
5890
  tables: string;
5891
+ /**
5892
+ * JSON representation of the mapping.
5893
+ */
4382
5894
  mapping_json: string;
5895
+ /**
5896
+ * Indicates if the relationship is inverse (1 for true, 0 for false).
5897
+ */
4383
5898
  is_inverse: number;
5899
+ /**
5900
+ * Indicates if the relationship is many-to-many (1 for true, 0 for false).
5901
+ */
4384
5902
  is_mtm: number;
5903
+ /**
5904
+ * Transitivity property of the relationship.
5905
+ */
4385
5906
  transitivity: number;
5907
+ /**
5908
+ * Identifier for the data source.
5909
+ */
4386
5910
  datasource_id: string;
5911
+ /**
5912
+ * Sort order for the relationship.
5913
+ */
4387
5914
  sort_order: number;
5915
+ /**
5916
+ * Description of the relationship (optional).
5917
+ */
4388
5918
  description?: string;
4389
5919
  }
4390
5920
 
5921
+ /**
5922
+ * @beta
5923
+ * Type representing the result of a relationship count operation.
5924
+ */
4391
5925
  export declare type RelationshipCountResult = {
5926
+ /** The count of the relationships. */
4392
5927
  count: number;
5928
+ /** Whether the count is expired. */
4393
5929
  expired?: boolean;
4394
5930
  };
4395
5931
 
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
5932
  declare interface RenderIconInfo {
4406
5933
  isSelected?: boolean;
4407
5934
  isOpen?: boolean;
@@ -4420,72 +5947,181 @@ declare class RowNode extends Node_2 implements IDropTarget {
4420
5947
  isEnableDrop(): boolean;
4421
5948
  }
4422
5949
 
5950
+ /**
5951
+ * Properties for saving as modal.
5952
+ * @beta
5953
+ */
5954
+ export declare type SaveAsModalProps = {
5955
+ /**
5956
+ * Item to be saved.
5957
+ */
5958
+ item: WorkspaceItem;
5959
+ /**
5960
+ * Application related to the item.
5961
+ */
5962
+ app?: WorkspaceItem;
5963
+ };
5964
+
5965
+ /**
5966
+ * @beta
5967
+ * Type representing a saved template, extending CustomTemplate.
5968
+ */
4423
5969
  export declare type SavedTemplate = CustomTemplate & {
5970
+ /** The unique identifier for the entity. */
4424
5971
  os_entity_uid: string;
5972
+ /** The workspace to which the template belongs. */
4425
5973
  os_workspace: string;
4426
5974
  };
4427
5975
 
5976
+ /**
5977
+ * Options for saving a file.
5978
+ * @beta
5979
+ */
4428
5980
  export declare type SaveFileOptions = {
5981
+ /**
5982
+ * Path to save the file.
5983
+ */
4429
5984
  path?: string | undefined;
4430
5985
  };
4431
5986
 
5987
+ /**
5988
+ * Options for saving an item.
5989
+ * @beta
5990
+ */
4432
5991
  export declare type SaveOptions = SaveFileOptions & {
5992
+ /**
5993
+ * Whether to save as a draft.
5994
+ */
4433
5995
  draft?: boolean;
5996
+ /**
5997
+ * Whether to save as a new file.
5998
+ */
4434
5999
  saveAs?: boolean;
6000
+ /**
6001
+ * Application related to the item.
6002
+ */
4435
6003
  app?: WorkspaceItem;
4436
6004
  };
4437
6005
 
6006
+ /**
6007
+ * @beta
6008
+ * Interface representing the properties for the Search component.
6009
+ */
6010
+ export declare interface SearchProps {
6011
+ /**
6012
+ * the query string to search for.
6013
+ */
6014
+ q?: string;
6015
+ /**
6016
+ * the label for the submit button.
6017
+ */
6018
+ submitButtonLabel?: string;
6019
+ }
6020
+
6021
+ /**
6022
+ * @beta
6023
+ * Interface representing the properties for the SearchXperienceModal component, extending SearchXperienceProps.
6024
+ */
4438
6025
  export declare interface SearchXperienceModalProps extends SearchXperienceProps {
6026
+ /** Whether the modal is open. */
4439
6027
  open?: boolean | undefined;
6028
+ /**
6029
+ * Callback function to be called when the modal is closed.
6030
+ * @param entities - The entities selected in the search experience.
6031
+ * @returns A void or undefined.
6032
+ */
4440
6033
  onClose: (entities: Entity[]) => void | undefined;
4441
6034
  }
4442
6035
 
6036
+ /**
6037
+ * @beta
6038
+ * Interface representing the properties for the SearchXperience component.
6039
+ */
4443
6040
  export declare interface SearchXperienceProps {
6041
+ /** The title of the search experience. */
4444
6042
  title?: string | undefined;
6043
+ /** The default concepts for the search experience. */
4445
6044
  defaultConcept?: string[] | undefined;
6045
+ /** Whether to disable the concept selector. */
4446
6046
  disableConceptSelector?: boolean | undefined;
6047
+ /** The task ID associated with the search experience. */
4447
6048
  taskID?: string;
6049
+ /** The default search fields for the search experience. */
4448
6050
  defaultSearchFields?: {
4449
6051
  entity_label?: string;
4450
6052
  os_textsearchfield?: string;
4451
6053
  };
4452
6054
  }
4453
6055
 
6056
+ /**
6057
+ * @beta
6058
+ * Type representing a semantically bound filter definition.
6059
+ */
4454
6060
  export declare type SemanticallyBoundFilterDefinition = {
6061
+ /** The type of the filter, always 'semantically_bound' for this type. */
4455
6062
  type: 'semantically_bound';
6063
+ /** The concepts that the filter is bound to. */
4456
6064
  concepts: string[];
4457
6065
  };
4458
6066
 
6067
+ /**
6068
+ * @beta
6069
+ * Options for sending a query.
6070
+ */
4459
6071
  export declare type SendQueryOptions = {
6072
+ /** The context in which to send the query. */
4460
6073
  context?: string;
6074
+ /** Whether to send the query with low priority. */
4461
6075
  lowPriority?: boolean;
4462
6076
  };
4463
6077
 
4464
- declare type ServiceDefinition = {
6078
+ /**
6079
+ * @beta
6080
+ * Type representing a service definition.
6081
+ */
6082
+ export declare type ServiceDefinition = {
6083
+ /** Description of the service. */
4465
6084
  description: string;
6085
+ /** Label of the service. */
4466
6086
  label: string;
6087
+ /** Icon for the service. */
4467
6088
  icon: string;
6089
+ /** Optional group for the service. */
4468
6090
  group?: DesktopActionMenuItemGroup;
6091
+ /** Optional subgroup for the service. */
4469
6092
  subgroup?: string;
6093
+ /** Optional order for the service. */
4470
6094
  order?: number;
6095
+ /** Optional parameters for the service. */
4471
6096
  params?: {
4472
6097
  [k: string]: any;
4473
6098
  };
6099
+ /** Optional roles for the service. */
4474
6100
  role?: ServiceRole[] | ServiceRole;
6101
+ /** Filters accepted by the service. */
4475
6102
  accepts: FilterReference[];
6103
+ /** Transforms applied by the service. */
4476
6104
  transforms: string[];
4477
6105
  /**
4478
- * Whether to show progress bar when invoking this service
4479
- * Default is true
6106
+ * Whether to show a progress bar when invoking this service.
6107
+ * Default is true.
4480
6108
  */
4481
6109
  show_progress?: boolean;
4482
6110
  };
4483
6111
 
4484
- declare type ServiceDefinitions = {
6112
+ /**
6113
+ * @beta
6114
+ * Type representing a collection of service definitions.
6115
+ */
6116
+ export declare type ServiceDefinitions = {
4485
6117
  [serviceName: string]: ServiceDefinition;
4486
6118
  };
4487
6119
 
4488
- declare type ServiceRole = 'context_menu' | 'record_view' | 'set_view';
6120
+ /**
6121
+ * @beta
6122
+ * Type representing a service role.
6123
+ */
6124
+ export declare type ServiceRole = 'context_menu' | 'record_view' | 'set_view';
4489
6125
 
4490
6126
  /** List of operators that require another operand that is a set */
4491
6127
  declare const SET_OPERATORS: readonly ["IN", "NOT IN"];
@@ -4499,26 +6135,54 @@ declare type SetQueryObjectFilterClause = BaseQueryObjectFilterClause & {
4499
6135
  formattedVal?: string[];
4500
6136
  };
4501
6137
 
4502
- export declare type SetTransformResultFn = (args: any[]) => Promise<void>;
4503
-
6138
+ /**
6139
+ * @beta
6140
+ * Type representing the details of an ontology to be shown.
6141
+ */
4504
6142
  export declare type ShowOntology = {
6143
+ /** The concept of the ontology. */
4505
6144
  concept: string;
6145
+ /** The properties of the ontology. */
4506
6146
  properties: string | undefined;
6147
+ /** The primary keys of the ontology. */
4507
6148
  primary_keys: string | undefined;
6149
+ /** The label keys of the ontology. */
4508
6150
  label_keys: string | undefined;
6151
+ /** The inheritance of the ontology. */
4509
6152
  inheritance: string | undefined;
6153
+ /** The inheritance level of the ontology. */
4510
6154
  inheritance_level: number;
6155
+ /** The query associated with the ontology. */
4511
6156
  query: string | undefined;
6157
+ /** The description of the ontology. */
4512
6158
  description: string | undefined;
6159
+ /** The JSON representation of the query. */
4513
6160
  query_json: string | undefined;
4514
6161
  };
4515
6162
 
6163
+ /**
6164
+ * Properties for showing a tab.
6165
+ * @beta
6166
+ */
4516
6167
  export declare type ShowTabProps = {
6168
+ /**
6169
+ * Application related to the tab.
6170
+ */
4517
6171
  app: WorkspaceItem;
6172
+ /**
6173
+ * Item related to the tab.
6174
+ */
4518
6175
  item?: WorkspaceItem;
6176
+ /**
6177
+ * Options for showing the tab.
6178
+ */
4519
6179
  options?: DesktopActionOptions;
4520
6180
  };
4521
6181
 
6182
+ /**
6183
+ * Enum for sort order values.
6184
+ * @beta
6185
+ */
4522
6186
  export declare enum SortOrder {
4523
6187
  PREFERRED = 21,
4524
6188
  OTHER = 10,
@@ -10629,41 +12293,101 @@ declare interface StandardShorthandProperties<TLength = (string & {}) | 0, TTime
10629
12293
  viewTimeline?: Property_2.ViewTimeline | undefined;
10630
12294
  }
10631
12295
 
12296
+ /**
12297
+ * @alpha
12298
+ * Type representing a styler with methods for getting G6 node and edge styles.
12299
+ */
10632
12300
  export declare type Styler = {
12301
+ /**
12302
+ * Gets the style for a G6 node.
12303
+ * @param e - The entity for which to get the node style.
12304
+ * @param curr - The current style.
12305
+ * @returns A promise that resolves to the new style.
12306
+ */
10633
12307
  getG6NodeStyle?: (e: Entity, curr: TODO) => Promise<TODO>;
12308
+ /**
12309
+ * Gets the style for a G6 edge.
12310
+ * @param e - The edge specification for which to get the edge style.
12311
+ * @param curr - The current style.
12312
+ * @returns A promise that resolves to the new style.
12313
+ */
10634
12314
  getG6EdgeStyle?: (e: EdgeSpec, curr: TODO) => Promise<TODO>;
10635
12315
  };
10636
12316
 
12317
+ /**
12318
+ * @alpha
12319
+ * Type representing the configuration for a styler.
12320
+ */
10637
12321
  export declare type StylerConfig = StylerOption & {
12322
+ /** The name of the styler configuration. */
10638
12323
  name: string;
12324
+ /** The description of the styler configuration. */
10639
12325
  description: string;
12326
+ /** The initialization function for the styler. */
10640
12327
  init: StylerProducer;
12328
+ /** The optional destroy function for the styler. */
10641
12329
  destroy?: () => Promise<void>;
10642
12330
  };
10643
12331
 
12332
+ /**
12333
+ * @beta
12334
+ * Interface representing the context for a styler.
12335
+ */
10644
12336
  export declare interface StylerContext {
12337
+ /** The graph specification. */
10645
12338
  graph: GraphSpec;
12339
+ /** The selected graph specification. */
10646
12340
  selected: GraphSpec;
12341
+ /** The ontology API instance. */
10647
12342
  OntologyAPI: Ontology;
12343
+ /** The desktop API instance. */
10648
12344
  DesktopAPI: Desktop;
12345
+ /** The event emitter instance. */
10649
12346
  ee: EventEmitterType;
12347
+ /** The event topic prefix. */
10650
12348
  eventTopicPrefix: string;
12349
+ /**
12350
+ * Callback function to be called when the task is complete.
12351
+ * @param x - The styler instance.
12352
+ */
10651
12353
  onTaskComplete?: (x: Styler) => void;
12354
+ /** Callback function to be called when the task is canceled. */
10652
12355
  onTaskCanceled?: () => void;
12356
+ /** The task ID associated with the styler. */
10653
12357
  taskID?: string;
10654
12358
  }
10655
12359
 
10656
- declare type StylerDefinition = PythonFileStylerDefinition | PythonInlineStylerDefinition | JavascriptFileStylerDefinition | JavascriptInlineStylerDefinition;
12360
+ /**
12361
+ * @beta
12362
+ * Type representing a styler definition, which can be one of several specific types.
12363
+ */
12364
+ export declare type StylerDefinition = PythonFileStylerDefinition | PythonInlineStylerDefinition | JavascriptFileStylerDefinition | JavascriptInlineStylerDefinition;
10657
12365
 
10658
- declare type StylerDefinitions = {
12366
+ /**
12367
+ * @beta
12368
+ * Type representing a collection of styler definitions.
12369
+ */
12370
+ export declare type StylerDefinitions = {
10659
12371
  [stylerName: string]: StylerDefinition;
10660
12372
  };
10661
12373
 
12374
+ /**
12375
+ * @alpha
12376
+ * Type representing an option for a styler.
12377
+ */
10662
12378
  export declare type StylerOption = {
12379
+ /** The name of the styler option. */
10663
12380
  name: string;
12381
+ /** The description of the styler option. */
10664
12382
  description: string;
10665
12383
  };
10666
12384
 
12385
+ /**
12386
+ * @alpha
12387
+ * Type representing a function that produces a styler.
12388
+ * @param context - The context for the styler.
12389
+ * @returns A promise that resolves to the styler.
12390
+ */
10667
12391
  export declare type StylerProducer = (context: StylerContext) => Promise<Styler>;
10668
12392
 
10669
12393
  declare interface SubMenuType extends ItemSharedProps {
@@ -10684,10 +12408,6 @@ declare interface SubMenuType extends ItemSharedProps {
10684
12408
  onTitleMouseLeave?: MenuHoverEventHandler;
10685
12409
  }
10686
12410
 
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
12411
  declare interface SvgProperties<TLength = (string & {}) | 0, TTime = string & {}> {
10692
12412
  alignmentBaseline?: Property_2.AlignmentBaseline | undefined;
10693
12413
  baselineShift?: Property_2.BaselineShift<TLength> | undefined;
@@ -10820,47 +12540,118 @@ declare class TabSetNode extends Node_2 implements IDraggable, IDropTarget {
10820
12540
  toJson(): IJsonTabSetNode;
10821
12541
  }
10822
12542
 
12543
+ /**
12544
+ * Represents a tag with a name and value.
12545
+ * @beta
12546
+ */
10823
12547
  export declare type Tag = {
12548
+ /**
12549
+ * The name of the tag.
12550
+ */
10824
12551
  tag_name: string;
12552
+ /**
12553
+ * The value of the tag.
12554
+ */
10825
12555
  tag_value: string;
10826
12556
  };
10827
12557
 
12558
+ /**
12559
+ * Represents tag attributes with optional color and group.
12560
+ * @beta
12561
+ */
10828
12562
  export declare interface TagAttributes extends Colorful {
12563
+ /**
12564
+ * The group to which the tag belongs.
12565
+ */
10829
12566
  group?: string;
12567
+ /**
12568
+ * The order of the tag in the group.
12569
+ * Lower values are displayed first.
12570
+ */
10830
12571
  order?: number;
12572
+ /**
12573
+ * The id of the workspace in which the tag is stored.
12574
+ */
10831
12575
  os_workspace: string;
12576
+ /**
12577
+ * The name of the tag.
12578
+ */
10832
12579
  os_item_name: string;
10833
12580
  }
10834
12581
 
12582
+ /**
12583
+ * @beta
12584
+ * Type representing information about a tag.
12585
+ */
10835
12586
  export declare type TagInfo = {
12587
+ /** The tag string. */
10836
12588
  tag: string;
12589
+ /** The workspace associated with the tag. */
10837
12590
  os_workspace: string;
12591
+ /** The count of entities associated with the tag. */
10838
12592
  count: number;
12593
+ /** A sample of entities associated with the tag. */
10839
12594
  sample: Entity[];
12595
+ /** The entity representing the tag. */
10840
12596
  entity: OsTag;
10841
12597
  };
10842
12598
 
12599
+ /**
12600
+ * @beta
12601
+ * Type representing a tag with its associated relationship.
12602
+ */
10843
12603
  export declare type TagWithRelationship = {
12604
+ /** The workspace relationship associated with the tag. */
10844
12605
  os_workspace_relationship: WorkspaceRelationship;
12606
+ /** The tag entity. */
10845
12607
  os_tag: OsTag;
10846
12608
  };
10847
12609
 
12610
+ /**
12611
+ * Reasons for task cleanup.
12612
+ * @beta
12613
+ */
10848
12614
  export declare type TaskCleanupReason = 'canceled' | 'completed';
10849
12615
 
12616
+ /**
12617
+ * @beta
12618
+ * Type representing the metadata for a template.
12619
+ */
10850
12620
  export declare type TemplateMetadata = {
12621
+ /** The name of the template. */
10851
12622
  name: string;
12623
+ /** The description of the template. */
10852
12624
  description: string;
12625
+ /** The concepts associated with the template. */
10853
12626
  concepts: string[];
12627
+ /** The type of the template. */
10854
12628
  type: TemplateType;
12629
+ /** The layout of the template. */
12630
+ layout: string;
12631
+ /** The variant of the template. */
10855
12632
  variant: TemplateVariant;
12633
+ /** Optional blurhash for the template. */
10856
12634
  blurhash?: string;
12635
+ /** The parameter names required by the template. */
10857
12636
  parameterNames: string[];
12637
+ /** Optional CSS properties for the template. */
10858
12638
  style?: ReactCssProperties;
12639
+ /** Whether the template renders multiple records. */
10859
12640
  rendersMultipleRecords?: boolean;
12641
+ /** Whether the template is an app. */
12642
+ isApp?: boolean;
10860
12643
  };
10861
12644
 
12645
+ /**
12646
+ * @beta
12647
+ * Type representing the possible template types.
12648
+ */
10862
12649
  export declare type TemplateType = 'nunjucks' | 'javascript';
10863
12650
 
12651
+ /**
12652
+ * @beta
12653
+ * Type representing the possible template variants.
12654
+ */
10864
12655
  export declare type TemplateVariant = 'antd';
10865
12656
 
10866
12657
  /**
@@ -10890,21 +12681,47 @@ declare type TimeGranularity = ValueOf<typeof TimeGranularity>;
10890
12681
 
10891
12682
  declare type TODO = any;
10892
12683
 
12684
+ /**
12685
+ * @beta
12686
+ * Type representing a transformation action.
12687
+ * @param context - The context for the transformation action.
12688
+ * @returns The result of the transformation action.
12689
+ */
10893
12690
  export declare type TransformAction = (context: TransformActionContext) => any;
10894
12691
 
12692
+ /**
12693
+ * @beta
12694
+ * Context for a transformation action within the desktop environment.
12695
+ */
10895
12696
  export declare type TransformActionContext = DesktopActionContext & {
12697
+ /** The task ID associated with the transformation. */
10896
12698
  taskID: string;
12699
+ /** Function to be called when the task is canceled. */
10897
12700
  onTaskCanceled: () => Promise<void>;
12701
+ /** Function to be called when the task is completed. */
10898
12702
  onTaskComplete: (result: any) => Promise<void>;
12703
+ /** Function to call a transformation with additional context. */
10899
12704
  callTransform: (transform: string, extraContext: any) => Promise<any>;
10900
12705
  };
10901
12706
 
10902
- declare type TransformDefinition = ProvidedTransformDefinition | HttpTransformDefinition | IframeTransformDefinition | PythonFileTransformDefinition | PythonInlineTransformDefinition | JavascriptFileTransformDefinition | JavascriptInlineTransformDefinition | NunjucksFileTransformDefinition | NunjucksInlineTransformDefinition | EmitEventTransformDefinition;
12707
+ /**
12708
+ * @beta
12709
+ * Type representing a transform definition, which can be one of several specific types.
12710
+ */
12711
+ export declare type TransformDefinition = ProvidedTransformDefinition | HttpTransformDefinition | IframeTransformDefinition | PythonFileTransformDefinition | PythonInlineTransformDefinition | JavascriptFileTransformDefinition | JavascriptInlineTransformDefinition | NunjucksFileTransformDefinition | NunjucksInlineTransformDefinition | EmitEventTransformDefinition;
10903
12712
 
10904
- declare type TransformDefinitions = {
12713
+ /**
12714
+ * @beta
12715
+ * Type representing a collection of transform definitions.
12716
+ */
12717
+ export declare type TransformDefinitions = {
10905
12718
  [transformName: string]: TransformDefinition;
10906
12719
  };
10907
12720
 
12721
+ /**
12722
+ * @beta
12723
+ * Type representing the possible triggers for a context menu.
12724
+ */
10908
12725
  export declare type trigger = 'hover' | 'contextMenu' | 'click';
10909
12726
 
10910
12727
  /** List of operators that do not require another operand */
@@ -10918,21 +12735,32 @@ declare type UnaryQueryObjectFilterClause = BaseQueryObjectFilterClause & {
10918
12735
  formattedVal?: string;
10919
12736
  };
10920
12737
 
12738
+ /**
12739
+ * @beta
12740
+ * Type representing an unsubscribe function.
12741
+ * @returns A promise that resolves when the unsubscribe operation is complete.
12742
+ */
10921
12743
  export declare type Unsubscribe = () => Promise<void>;
10922
12744
 
10923
- export declare type UnsubscribeFn = (id: string) => void;
10924
-
10925
- export declare type UnsubscribeFromContextFn = UnsubscribeFn;
10926
-
10927
- export declare type UnsubscribeFromDragStartFn = UnsubscribeFn;
10928
-
12745
+ /**
12746
+ * @beta
12747
+ * Type representing a user profile.
12748
+ */
10929
12749
  export declare type UserProfile = {
12750
+ /** The first name of the user. */
10930
12751
  firstName: string;
12752
+ /** The last name of the user. */
10931
12753
  lastName: string;
12754
+ /** The email address of the user. */
10932
12755
  email: string;
12756
+ /** The username of the user. */
10933
12757
  username: string;
10934
12758
  };
10935
12759
 
12760
+ /**
12761
+ * @beta
12762
+ * Type representing a UUID.
12763
+ */
10936
12764
  export declare type uuid = string;
10937
12765
 
10938
12766
  declare type ValueOf<T> = T[keyof T];
@@ -12847,99 +14675,331 @@ declare interface VendorShorthandProperties<TLength = (string & {}) | 0, TTime =
12847
14675
  WebkitTransition?: Property_2.Transition<TTime> | undefined;
12848
14676
  }
12849
14677
 
14678
+ /**
14679
+ * Represents a watcher.
14680
+ * @beta
14681
+ */
12850
14682
  export declare type Watcher = {
14683
+ /**
14684
+ * Application ID.
14685
+ */
12851
14686
  app_id: string;
14687
+ /**
14688
+ * Application name.
14689
+ */
12852
14690
  app_name: string;
14691
+ /**
14692
+ * Watcher name.
14693
+ */
12853
14694
  watcher_name: string;
14695
+ /**
14696
+ * Constants for the watcher.
14697
+ */
12854
14698
  const: [key: string, value: any][];
14699
+ /**
14700
+ * Description of the watcher.
14701
+ */
12855
14702
  description: string;
14703
+ /**
14704
+ * File associated with the watcher.
14705
+ */
12856
14706
  file: string;
14707
+ /**
14708
+ * Interval for the watcher.
14709
+ */
12857
14710
  interval: string;
14711
+ /**
14712
+ * Name of the watcher.
14713
+ */
12858
14714
  name: string;
14715
+ /**
14716
+ * Parameters for the watcher.
14717
+ */
12859
14718
  params: [key: string, value: any][];
14719
+ /**
14720
+ * Semantically bound items.
14721
+ */
12860
14722
  semantically_bound: string[];
12861
14723
  };
12862
14724
 
14725
+ /**
14726
+ * Represents information about the current user.
14727
+ * @beta
14728
+ */
12863
14729
  export declare type Whoami = {
14730
+ /**
14731
+ * Asynchronous channel for the user.
14732
+ */
12864
14733
  async_channel: string;
14734
+ /**
14735
+ * Email of the user.
14736
+ */
12865
14737
  email: string | null;
14738
+ /**
14739
+ * JWT token for the user.
14740
+ */
12866
14741
  os_jwt: string;
14742
+ /**
14743
+ * Username of the user.
14744
+ */
12867
14745
  username: string;
14746
+ /**
14747
+ * Roles of the user.
14748
+ */
12868
14749
  timbr_roles: string[];
12869
14750
  };
12870
14751
 
14752
+ /**
14753
+ * Options for displaying a progress bar.
14754
+ * @beta
14755
+ */
12871
14756
  export declare type WithProgressBarOptions = {
14757
+ /**
14758
+ * Type of job for the progress bar.
14759
+ */
12872
14760
  job_type: string;
14761
+ /**
14762
+ * Label for the progress bar.
14763
+ */
12873
14764
  label?: string | JSX.Element;
14765
+ /**
14766
+ * Prefix for event topics.
14767
+ */
12874
14768
  eventTopicPrefix?: string;
14769
+ /**
14770
+ * Error message for the progress bar.
14771
+ */
14772
+ errorToast?: string | boolean;
12875
14773
  };
12876
14774
 
14775
+ /**
14776
+ * @beta
14777
+ * Type representing a workspace.
14778
+ */
12877
14779
  export declare type Workspace = {
14780
+ /** The workspace item. */
12878
14781
  workspace: WorkspaceItem;
14782
+ /** The items in the workspace. */
12879
14783
  items: WorkspaceItems;
14784
+ /** Optional records in the workspace. */
12880
14785
  workspace_records?: WorkspaceRecords;
14786
+ /** Optional tags in the workspace. */
12881
14787
  tags?: TagInfo[];
14788
+ /** Optional permission for the workspace. */
12882
14789
  permission?: WorkspacePermission;
14790
+ /** Whether the workspace is active. */
12883
14791
  isActive?: boolean;
12884
14792
  };
12885
14793
 
14794
+ /**
14795
+ * @beta
14796
+ * Interface representing a workspace change emitter.
14797
+ */
12886
14798
  export declare interface WorkspaceChangeEmitter {
14799
+ /**
14800
+ * Subscribes to changes for a given workspace.
14801
+ * @param ws - The workspace identifier.
14802
+ * @param callback - The callback to invoke on changes.
14803
+ * @returns A promise that resolves to an unsubscribe function.
14804
+ */
12887
14805
  onWorkspaceChanged: (ws: WorkspaceIdentifier, callback: Callback<Workspace>) => Promise<Unsubscribe>;
14806
+ /**
14807
+ * Subscribes to changes for a given workspace item.
14808
+ * @param item - The workspace item identifier.
14809
+ * @param callback - The callback to invoke on changes.
14810
+ * @returns A promise that resolves to an unsubscribe function.
14811
+ */
12888
14812
  onWorkspaceItemChanged: (item: WorkspaceItemIdentifier, callback: Callback<WorkspaceItem>) => Promise<Unsubscribe>;
14813
+ /**
14814
+ * Subscribes to changes for the currently open workspaces.
14815
+ * @param callback - The callback to invoke with the current open workspaces.
14816
+ * @returns A promise that resolves to an unsubscribe function.
14817
+ */
12889
14818
  onOpenWorkspacesChanged: AddListener<Workspace[]>;
12890
14819
  }
12891
14820
 
14821
+ /**
14822
+ * @beta
14823
+ * Type representing a workspace identifier, which can be a UUID or a workspace item.
14824
+ * @template T - The type of the workspace item.
14825
+ */
12892
14826
  export declare type WorkspaceIdentifier<T = any> = uuid | WorkspaceItem<T>;
12893
14827
 
14828
+ /**
14829
+ * Represents a workspace item with optional content.
14830
+ * @beta
14831
+ */
12894
14832
  export declare type WorkspaceItem<T = any> = WorkspaceRecord & {
12895
- os_item_content?: T;
14833
+ /**
14834
+ * The type-specific content of the workspace item.
14835
+ */
14836
+ os_item_content?: T & {
14837
+ image?: ImageInfo;
14838
+ };
14839
+ /**
14840
+ * The type of the content.
14841
+ */
12896
14842
  os_item_content_type?: string;
14843
+ /**
14844
+ * The id of the folder in which the item is stored.
14845
+ */
12897
14846
  os_parent_folder?: string;
14847
+ /**
14848
+ * Whether the item has an attachment file content.
14849
+ */
12898
14850
  os_has_attachment?: boolean;
14851
+ /**
14852
+ * Optional path from the os_parent_folder or os_workspace to the item.
14853
+ * Does not include the item name.
14854
+ * Used only when saving by POST to the /entity API.
14855
+ * eg. 'folder1/folder2'
14856
+ */
14857
+ '#os_path'?: string;
12899
14858
  };
12900
14859
 
14860
+ /**
14861
+ * Represents the base attributes for a workspace item.
14862
+ * @beta
14863
+ */
12901
14864
  export declare type WorkspaceItemBase = WorkspaceItemModel & {
14865
+ /**
14866
+ * The ID of the workspace item.
14867
+ */
12902
14868
  os_entity_uid: string;
14869
+ /**
14870
+ * The ID of the workspace in which the item is stored.
14871
+ */
12903
14872
  os_workspace: string;
12904
14873
  };
12905
14874
 
14875
+ /**
14876
+ * Represents the configuration for a workspace item.
14877
+ * @beta
14878
+ */
12906
14879
  export declare interface WorkspaceItemConfig {
14880
+ /**
14881
+ * The id the workspace item.
14882
+ */
12907
14883
  entity_id: string;
14884
+ /**
14885
+ * The concept to which the workspace item belongs.
14886
+ */
12908
14887
  entity_type: string;
14888
+ /**
14889
+ * The id of the workspace in which the workspace item is stored.
14890
+ */
12909
14891
  workspace_id: string;
14892
+ /**
14893
+ * Epoch time of the last update of the workspace item.
14894
+ */
12910
14895
  last_updated: number;
12911
14896
  }
12912
14897
 
14898
+ /**
14899
+ * @beta
14900
+ * Type representing a workspace item identifier, which is the same as a workspace identifier.
14901
+ * @template T - The type of the workspace item.
14902
+ */
12913
14903
  export declare type WorkspaceItemIdentifier<T = any> = WorkspaceIdentifier<T>;
12914
14904
 
14905
+ /**
14906
+ * Represents the model for a workspace item.
14907
+ * @beta
14908
+ */
12915
14909
  export declare type WorkspaceItemModel = {
14910
+ /**
14911
+ * Ephemeral UI state in lieu of using complex redux logic.
14912
+ * It is not saved in persistence and can be mutated by components.
14913
+ */
12916
14914
  __uiState?: {
14915
+ /**
14916
+ * Indicates if the item is in rename mode.
14917
+ */
12917
14918
  rename?: boolean;
14919
+ /**
14920
+ * A filter applied to concepts.
14921
+ */
12918
14922
  query?: ConceptFilter;
14923
+ /**
14924
+ * Function to get the count of entities.
14925
+ * @returns A promise that resolves to the number of entities.
14926
+ */
12919
14927
  getEntitiesCount?: () => Promise<number>;
14928
+ /**
14929
+ * Function to get the entities.
14930
+ * @param limit - The maximum number of entities to retrieve.
14931
+ * @returns A promise that resolves to an array of entities.
14932
+ */
12920
14933
  getEntities?: (limit?: number) => Promise<Entity[]>;
14934
+ /**
14935
+ * Determines if the count is shown only when the item is closed.
14936
+ */
12921
14937
  showCountOnlyWhenClosed?: boolean;
14938
+ /**
14939
+ * The initial state of the item.
14940
+ */
12922
14941
  initialState?: any;
14942
+ /**
14943
+ * Indicates if the item should be highlighted.
14944
+ */
12923
14945
  highlight?: boolean;
14946
+ /**
14947
+ * Indicates if the item is in draft mode.
14948
+ */
12924
14949
  draft?: boolean;
12925
14950
  };
14951
+ /**
14952
+ * Name of the workspace item.
14953
+ */
12926
14954
  os_item_name: string;
14955
+ /**
14956
+ * Type of the workspace item.
14957
+ */
12927
14958
  os_item_type: string;
12928
14959
  };
12929
14960
 
14961
+ /**
14962
+ * Represents an array of workspace items.
14963
+ * @beta
14964
+ */
12930
14965
  export declare type WorkspaceItems = WorkspaceItem[];
12931
14966
 
14967
+ /**
14968
+ * Properties for workspace item title.
14969
+ * @beta
14970
+ */
12932
14971
  export declare type WorkspaceItemTitleProps = DesktopActionContext & {
14972
+ /**
14973
+ * Whether to show hidden children in the workspace.
14974
+ */
12933
14975
  showHiddenChildren?: 'workspace' | boolean;
12934
- menuOptions?: ContextMenuOptions;
14976
+ /**
14977
+ * Menu options with extra action items.
14978
+ */
14979
+ menuOptions?: ContextMenuOptions & {
14980
+ extraActionItems?: DesktopActionMenuItem[];
14981
+ };
14982
+ /**
14983
+ * Whether the item is expanded.
14984
+ */
12935
14985
  expanded?: boolean;
12936
14986
  };
12937
14987
 
14988
+ /**
14989
+ * @beta
14990
+ * Type representing a workspace permission.
14991
+ */
12938
14992
  export declare type WorkspacePermission = {
14993
+ /** The value of the permission. */
12939
14994
  value: WorkspacePermissionValue;
14995
+ /** The label for the permission. */
12940
14996
  label: string;
12941
14997
  };
12942
14998
 
14999
+ /**
15000
+ * @beta
15001
+ * Enum representing the possible values for workspace permissions.
15002
+ */
12943
15003
  export declare enum WorkspacePermissionValue {
12944
15004
  None = 0,
12945
15005
  Read = 1,
@@ -12947,43 +15007,104 @@ export declare enum WorkspacePermissionValue {
12947
15007
  Admin = 4
12948
15008
  }
12949
15009
 
15010
+ /**
15011
+ * Represents a workspace record with additional attributes.
15012
+ * @beta
15013
+ */
12950
15014
  export declare type WorkspaceRecord = Entity & WorkspaceItemBase & OsAuditFields & {
12951
15015
  os_icon?: string;
12952
15016
  };
12953
15017
 
15018
+ /**
15019
+ * Represents a workspace record identifier.
15020
+ * @beta
15021
+ */
12954
15022
  export declare interface WorkspaceRecordIdentifier {
15023
+ /**
15024
+ * The concept to which the record belongs.
15025
+ */
12955
15026
  entity_type: string;
15027
+ /**
15028
+ * The ID of the workspace record.
15029
+ */
12956
15030
  os_entity_uid: string;
15031
+ /**
15032
+ * The id of the workspace in which the record is stored.
15033
+ */
12957
15034
  os_workspace: string;
12958
15035
  }
12959
15036
 
15037
+ /**
15038
+ * @beta
15039
+ * Type representing information about records in a workspace.
15040
+ */
12960
15041
  export declare type WorkspaceRecordInfo = {
15042
+ /** The concept associated with the records. */
12961
15043
  concept: string;
15044
+ /** The count of records. */
12962
15045
  count: number;
15046
+ /** The last updated timestamp for the records. */
12963
15047
  max_last_updated: string;
15048
+ /** The entities associated with the records. */
12964
15049
  entities: Entity[];
12965
15050
  };
12966
15051
 
15052
+ /**
15053
+ * @beta
15054
+ * Type representing a collection of workspace records.
15055
+ */
12967
15056
  export declare type WorkspaceRecords = {
12968
15057
  [key: string]: WorkspaceRecordInfo;
12969
15058
  };
12970
15059
 
15060
+ /**
15061
+ * @beta
15062
+ * Type representing a workspace record with its relationships.
15063
+ */
12971
15064
  export declare type WorkspaceRecordWithRelationships = {
15065
+ /** The workspace item. */
12972
15066
  entity: WorkspaceItem;
15067
+ /** The name of the relationship. */
12973
15068
  relationship_name?: string;
15069
+ /** The relationships associated with the workspace record. */
12974
15070
  relationships?: [WorkspaceRecordWithRelationships];
12975
15071
  };
12976
15072
 
15073
+ /**
15074
+ * Represents a relationship between workspace items.
15075
+ * @beta
15076
+ */
12977
15077
  export declare type WorkspaceRelationship = WorkspaceItemBase & OsAuditFields & {
15078
+ /**
15079
+ * Unique identifier for the source entity in the relationship.
15080
+ */
12978
15081
  os_entity_uid_from: string;
15082
+ /**
15083
+ * Unique identifier for the target entity in the relationship.
15084
+ */
12979
15085
  os_entity_uid_to: string;
15086
+ /**
15087
+ * Type of the source entity in the relationship.
15088
+ */
12980
15089
  os_entity_type_from: string;
15090
+ /**
15091
+ * Type of the target entity in the relationship.
15092
+ */
12981
15093
  os_entity_type_to: string;
15094
+ /**
15095
+ * Name of the relationship.
15096
+ */
12982
15097
  os_relationship_name: string;
12983
15098
  };
12984
15099
 
15100
+ /**
15101
+ * @beta
15102
+ * Type representing settings for a workspace.
15103
+ */
12985
15104
  export declare type WorkspaceSettings = {
15105
+ /** Whether the workspace is the master workspace. */
12986
15106
  isMaster?: boolean;
15107
+ /** The icon for the workspace. */
12987
15108
  os_icon?: string;
12988
15109
  };
12989
15110