@octostar/platform-types 0.5.23 → 0.5.24

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 (270) hide show
  1. package/dist/docs/assets/navigation.js +1 -1
  2. package/dist/docs/assets/search.js +1 -1
  3. package/dist/docs/enums/ProcessingStatusCode.html +16 -16
  4. package/dist/docs/enums/SortOrder.html +3 -3
  5. package/dist/docs/enums/WorkspacePermissionValue.html +3 -3
  6. package/dist/docs/hierarchy.html +1 -1
  7. package/dist/docs/index.html +2 -2
  8. package/dist/docs/interfaces/AIClient.html +4 -4
  9. package/dist/docs/interfaces/ActionContext.html +4 -4
  10. package/dist/docs/interfaces/BinaryObjectFilterClause.html +3 -3
  11. package/dist/docs/interfaces/ChartDataResponseResult.html +5 -5
  12. package/dist/docs/interfaces/ChatMessage.html +6 -6
  13. package/dist/docs/interfaces/Colorful.html +3 -3
  14. package/dist/docs/interfaces/Concept.html +12 -12
  15. package/dist/docs/interfaces/Desktop.html +87 -87
  16. package/dist/docs/interfaces/DesktopActionContext.html +7 -7
  17. package/dist/docs/interfaces/DesktopSettings.html +5 -5
  18. package/dist/docs/interfaces/FetchOptions.html +4 -4
  19. package/dist/docs/interfaces/FileListOptions.html +2 -2
  20. package/dist/docs/interfaces/FileListResponse.html +2 -2
  21. package/dist/docs/interfaces/Files.html +4 -4
  22. package/dist/docs/interfaces/GetAttachmentOptions.html +5 -5
  23. package/dist/docs/interfaces/IDataTransfer.html +11 -11
  24. package/dist/docs/interfaces/Inheritance.html +5 -5
  25. package/dist/docs/interfaces/LiveContext.html +32 -0
  26. package/dist/docs/interfaces/NativeFilterColumn.html +2 -2
  27. package/dist/docs/interfaces/NativeFilterScope.html +2 -2
  28. package/dist/docs/interfaces/NativeFilterTarget.html +2 -2
  29. package/dist/docs/interfaces/Ontology.html +23 -23
  30. package/dist/docs/interfaces/OsAPIClient.html +6 -6
  31. package/dist/docs/interfaces/ProcessingStatus.html +7 -7
  32. package/dist/docs/interfaces/Property.html +5 -5
  33. package/dist/docs/interfaces/RecordData.html +5 -5
  34. package/dist/docs/interfaces/RecordProvider.html +6 -6
  35. package/dist/docs/interfaces/RefObject.html +3 -3
  36. package/dist/docs/interfaces/Relationship.html +20 -20
  37. package/dist/docs/interfaces/SavedDatasource.html +2 -2
  38. package/dist/docs/interfaces/SavedSearchAPIInterface.html +2 -2
  39. package/dist/docs/interfaces/SavedSearchContent.html +2 -2
  40. package/dist/docs/interfaces/SavedSetContent.html +2 -2
  41. package/dist/docs/interfaces/SearchOptions.html +3 -3
  42. package/dist/docs/interfaces/SearchProps.html +8 -8
  43. package/dist/docs/interfaces/SearchXperienceModalProps.html +9 -9
  44. package/dist/docs/interfaces/SearchXperienceProps.html +7 -7
  45. package/dist/docs/interfaces/SemanticBindingProps.html +5 -5
  46. package/dist/docs/interfaces/StreamJsonOptions.html +5 -5
  47. package/dist/docs/interfaces/StreamTextOptions.html +5 -5
  48. package/dist/docs/interfaces/StylerContext.html +11 -11
  49. package/dist/docs/interfaces/TagAttributes.html +7 -7
  50. package/dist/docs/interfaces/UnaryObjectFilterClause.html +3 -3
  51. package/dist/docs/interfaces/WorkspaceChangeEmitter.html +5 -5
  52. package/dist/docs/interfaces/WorkspaceItemConfig.html +6 -6
  53. package/dist/docs/interfaces/WorkspaceRecordIdentifier.html +5 -5
  54. package/dist/docs/modules.html +6 -2
  55. package/dist/docs/types/ActionHandler.html +2 -2
  56. package/dist/docs/types/AddCommentParams.html +2 -2
  57. package/dist/docs/types/AddListener.html +2 -2
  58. package/dist/docs/types/ApiErrorResult.html +2 -2
  59. package/dist/docs/types/ApiResult.html +2 -2
  60. package/dist/docs/types/ApiSuccessResult.html +2 -2
  61. package/dist/docs/types/App.html +2 -2
  62. package/dist/docs/types/AppRegistry.html +2 -2
  63. package/dist/docs/types/AppServiceCallOptions.html +2 -2
  64. package/dist/docs/types/AppServiceCallProps.html +2 -2
  65. package/dist/docs/types/AsyncFilter.html +2 -2
  66. package/dist/docs/types/AttachmentResponseType.html +2 -2
  67. package/dist/docs/types/AttachmentType.html +2 -2
  68. package/dist/docs/types/Behaviour.html +2 -2
  69. package/dist/docs/types/BinaryOperator.html +2 -2
  70. package/dist/docs/types/Callback.html +2 -2
  71. package/dist/docs/types/ChatModel.html +2 -2
  72. package/dist/docs/types/CommentWorkspaceItem.html +2 -2
  73. package/dist/docs/types/Comparator.html +2 -2
  74. package/dist/docs/types/ConceptFilter.html +2 -2
  75. package/dist/docs/types/ConceptMap.html +2 -2
  76. package/dist/docs/types/ConceptName.html +1 -1
  77. package/dist/docs/types/ConceptWithParents.html +2 -2
  78. package/dist/docs/types/ConnectedEntity.html +2 -2
  79. package/dist/docs/types/ContextMenuGroup.html +2 -2
  80. package/dist/docs/types/ContextMenuLabels.html +2 -2
  81. package/dist/docs/types/ContextMenuOptions.html +2 -2
  82. package/dist/docs/types/ContextMenuParams.html +2 -2
  83. package/dist/docs/types/ContextMenuRequest.html +2 -2
  84. package/dist/docs/types/CopyOptions.html +2 -2
  85. package/dist/docs/types/CreateEntityFormProps.html +2 -2
  86. package/dist/docs/types/CreateLinkChartFn.html +1 -1
  87. package/dist/docs/types/CreateLinkChartParams.html +1 -1
  88. package/dist/docs/types/CreateRelationsDialogProps.html +2 -2
  89. package/dist/docs/types/CustomEventListener.html +2 -2
  90. package/dist/docs/types/CustomTemplate.html +2 -2
  91. package/dist/docs/types/CustomTemplateIframeProps.html +2 -2
  92. package/dist/docs/types/DataContextType.html +2 -2
  93. package/dist/docs/types/DataMask.html +1 -1
  94. package/dist/docs/types/DefaultLiveContextData.html +1 -0
  95. package/dist/docs/types/DesktopAction.html +2 -2
  96. package/dist/docs/types/DesktopActionFilter.html +2 -2
  97. package/dist/docs/types/DesktopActionMenuItem.html +2 -2
  98. package/dist/docs/types/DesktopActionMenuItemGroup.html +2 -2
  99. package/dist/docs/types/DesktopActionOptions.html +2 -2
  100. package/dist/docs/types/DesktopOpenParams.html +2 -2
  101. package/dist/docs/types/DesktopStylerContext.html +2 -2
  102. package/dist/docs/types/DraftWorkspaceItem.html +2 -2
  103. package/dist/docs/types/DragEndParams.html +2 -2
  104. package/dist/docs/types/DragStartParams.html +2 -2
  105. package/dist/docs/types/DropZoneRequestFn.html +1 -1
  106. package/dist/docs/types/DropZoneRequestResult.html +1 -1
  107. package/dist/docs/types/EConnection.html +2 -2
  108. package/dist/docs/types/EdgeSpec.html +2 -2
  109. package/dist/docs/types/EmitEventTransformDefinition.html +2 -2
  110. package/dist/docs/types/Entity.html +2 -2
  111. package/dist/docs/types/EntityBase.html +2 -2
  112. package/dist/docs/types/EntityEdge.html +2 -2
  113. package/dist/docs/types/EntityOTM.html +2 -2
  114. package/dist/docs/types/EntityPasteContext.html +2 -2
  115. package/dist/docs/types/EvalContext.html +1 -1
  116. package/dist/docs/types/EventContextType.html +2 -2
  117. package/dist/docs/types/EventEmitterType.html +2 -2
  118. package/dist/docs/types/EventName.html +2 -2
  119. package/dist/docs/types/EventProducer.html +2 -2
  120. package/dist/docs/types/EventPublisher.html +2 -2
  121. package/dist/docs/types/EventSubscriber.html +2 -2
  122. package/dist/docs/types/EventUnsubscriber.html +2 -2
  123. package/dist/docs/types/ExportOptions.html +2 -2
  124. package/dist/docs/types/ExtractEntitiesOptions.html +2 -2
  125. package/dist/docs/types/ExtrasApi.html +1 -1
  126. package/dist/docs/types/FetchEntityOptions.html +2 -2
  127. package/dist/docs/types/FileCode.html +2 -2
  128. package/dist/docs/types/FileTreeOptions.html +2 -2
  129. package/dist/docs/types/Filter.html +1 -1
  130. package/dist/docs/types/FilterDefinition.html +2 -2
  131. package/dist/docs/types/FilterDefinitions.html +2 -2
  132. package/dist/docs/types/FilterName.html +2 -2
  133. package/dist/docs/types/FilterReference.html +2 -2
  134. package/dist/docs/types/FilterState.html +1 -1
  135. package/dist/docs/types/FocusListItem.html +2 -2
  136. package/dist/docs/types/FolderPasteOptions.html +2 -2
  137. package/dist/docs/types/GraphDataSpec.html +1 -1
  138. package/dist/docs/types/GraphSpec.html +2 -2
  139. package/dist/docs/types/HttpTransformDefinition.html +2 -2
  140. package/dist/docs/types/Icon.html +2 -2
  141. package/dist/docs/types/IconProps.html +2 -2
  142. package/dist/docs/types/IframeTransformDefinition.html +2 -2
  143. package/dist/docs/types/ImageInfo.html +2 -2
  144. package/dist/docs/types/ImportZipOptions.html +2 -2
  145. package/dist/docs/types/InlineCode.html +2 -2
  146. package/dist/docs/types/JavascriptFileStylerDefinition.html +2 -2
  147. package/dist/docs/types/JavascriptFileTransformDefinition.html +2 -2
  148. package/dist/docs/types/JavascriptFilterDefinition.html +2 -2
  149. package/dist/docs/types/JavascriptInlineStylerDefinition.html +2 -2
  150. package/dist/docs/types/JavascriptInlineTransformDefinition.html +2 -2
  151. package/dist/docs/types/JavascriptType.html +2 -2
  152. package/dist/docs/types/JobManifest.html +2 -2
  153. package/dist/docs/types/KnownCounts.html +2 -2
  154. package/dist/docs/types/LiveContextAPISetParams.html +1 -0
  155. package/dist/docs/types/LiveContextListener.html +1 -0
  156. package/dist/docs/types/ManifestSecrets.html +1 -1
  157. package/dist/docs/types/ModalTemplateProps.html +2 -2
  158. package/dist/docs/types/NamedEntityGroup.html +2 -2
  159. package/dist/docs/types/NunjucksFileTransformDefinition.html +2 -2
  160. package/dist/docs/types/NunjucksInlineTransformDefinition.html +2 -2
  161. package/dist/docs/types/NunjucksType.html +2 -2
  162. package/dist/docs/types/OS_CONFIRM_MODAL_RESPONSE.html +2 -2
  163. package/dist/docs/types/OntologyTags.html +2 -2
  164. package/dist/docs/types/OsAuditFields.html +2 -2
  165. package/dist/docs/types/OsConfirmProps.html +2 -2
  166. package/dist/docs/types/OsNotification.html +2 -2
  167. package/dist/docs/types/OsProgress.html +2 -2
  168. package/dist/docs/types/OsTag.html +2 -2
  169. package/dist/docs/types/OsWorkspaceEntity.html +2 -2
  170. package/dist/docs/types/OsWorkspacePickerProps.html +2 -2
  171. package/dist/docs/types/PasteContextOptions.html +2 -2
  172. package/dist/docs/types/Permission.html +2 -2
  173. package/dist/docs/types/Point.html +2 -2
  174. package/dist/docs/types/PromptOptions.html +2 -2
  175. package/dist/docs/types/ProvidedFilterDefinition.html +2 -2
  176. package/dist/docs/types/ProvidedTransformDefinition.html +2 -2
  177. package/dist/docs/types/Query.html +2 -2
  178. package/dist/docs/types/QueryBatchResult.html +2 -2
  179. package/dist/docs/types/QueryErrorResult.html +2 -2
  180. package/dist/docs/types/QueryExecutor.html +2 -2
  181. package/dist/docs/types/QueryObjectFilterClause.html +2 -2
  182. package/dist/docs/types/QueryResponse.html +2 -2
  183. package/dist/docs/types/QueryResult.html +2 -2
  184. package/dist/docs/types/QuerySuccessResult.html +2 -2
  185. package/dist/docs/types/ReactCssProperties.html +2 -2
  186. package/dist/docs/types/ReactNode.html +2 -2
  187. package/dist/docs/types/ReactRef.html +2 -2
  188. package/dist/docs/types/ReasonedBoolean.html +2 -2
  189. package/dist/docs/types/RecordFetchOptions.html +1 -1
  190. package/dist/docs/types/RefCallback.html +2 -2
  191. package/dist/docs/types/RelationshipCountResult.html +2 -2
  192. package/dist/docs/types/RemoteAppApi.html +1 -1
  193. package/dist/docs/types/SaveAsModalProps.html +2 -2
  194. package/dist/docs/types/SaveFileOptions.html +2 -2
  195. package/dist/docs/types/SaveOptions.html +2 -2
  196. package/dist/docs/types/SavedTemplate.html +2 -2
  197. package/dist/docs/types/SearchFilter.html +2 -2
  198. package/dist/docs/types/SemanticBinding.html +2 -2
  199. package/dist/docs/types/SemanticBindingType.html +2 -2
  200. package/dist/docs/types/SemanticBindings.html +2 -2
  201. package/dist/docs/types/SemanticallyBoundApp.html +2 -2
  202. package/dist/docs/types/SemanticallyBoundFilterDefinition.html +2 -2
  203. package/dist/docs/types/SendQueryOptions.html +2 -2
  204. package/dist/docs/types/ServiceDefinition.html +2 -2
  205. package/dist/docs/types/ServiceDefinitions.html +2 -2
  206. package/dist/docs/types/ServiceRole.html +2 -2
  207. package/dist/docs/types/SetTransformResultFn.html +1 -1
  208. package/dist/docs/types/ShowOntology.html +2 -2
  209. package/dist/docs/types/ShowTabProps.html +2 -2
  210. package/dist/docs/types/Styler.html +2 -2
  211. package/dist/docs/types/StylerConfig.html +2 -2
  212. package/dist/docs/types/StylerDefinition.html +2 -2
  213. package/dist/docs/types/StylerDefinitions.html +2 -2
  214. package/dist/docs/types/StylerOption.html +2 -2
  215. package/dist/docs/types/StylerProducer.html +2 -2
  216. package/dist/docs/types/SubscribeDragStartFn.html +1 -1
  217. package/dist/docs/types/SubscribeToContextFn.html +1 -1
  218. package/dist/docs/types/Tag.html +2 -2
  219. package/dist/docs/types/TagInfo.html +2 -2
  220. package/dist/docs/types/TagWithRelationship.html +2 -2
  221. package/dist/docs/types/TaskCleanupReason.html +2 -2
  222. package/dist/docs/types/TemplateMetadata.html +2 -2
  223. package/dist/docs/types/TemplateType.html +2 -2
  224. package/dist/docs/types/TemplateVariant.html +2 -2
  225. package/dist/docs/types/TransformAction.html +2 -2
  226. package/dist/docs/types/TransformActionContext.html +2 -2
  227. package/dist/docs/types/TransformDefinition.html +2 -2
  228. package/dist/docs/types/TransformDefinitions.html +2 -2
  229. package/dist/docs/types/Unsubscribe.html +2 -2
  230. package/dist/docs/types/UnsubscribeFn.html +1 -1
  231. package/dist/docs/types/UnsubscribeFromContextFn.html +1 -1
  232. package/dist/docs/types/UnsubscribeFromDragStartFn.html +1 -1
  233. package/dist/docs/types/UserProfile.html +2 -2
  234. package/dist/docs/types/Watcher.html +2 -2
  235. package/dist/docs/types/Whoami.html +2 -2
  236. package/dist/docs/types/WithProgressBarOptions.html +2 -2
  237. package/dist/docs/types/Workspace.html +2 -2
  238. package/dist/docs/types/WorkspaceConfig.html +1 -1
  239. package/dist/docs/types/WorkspaceFlags.html +2 -2
  240. package/dist/docs/types/WorkspaceIdentifier.html +2 -2
  241. package/dist/docs/types/WorkspaceItem.html +2 -2
  242. package/dist/docs/types/WorkspaceItemBase.html +2 -2
  243. package/dist/docs/types/WorkspaceItemIdentifier.html +2 -2
  244. package/dist/docs/types/WorkspaceItemModel.html +2 -2
  245. package/dist/docs/types/WorkspaceItemTitleProps.html +2 -2
  246. package/dist/docs/types/WorkspaceItems.html +2 -2
  247. package/dist/docs/types/WorkspacePermission.html +2 -2
  248. package/dist/docs/types/WorkspaceRecord.html +2 -2
  249. package/dist/docs/types/WorkspaceRecordInfo.html +2 -2
  250. package/dist/docs/types/WorkspaceRecordWithRelationships.html +2 -2
  251. package/dist/docs/types/WorkspaceRecords.html +2 -2
  252. package/dist/docs/types/WorkspaceRelationship.html +2 -2
  253. package/dist/docs/types/WorkspaceSettings.html +2 -2
  254. package/dist/docs/types/trigger.html +2 -2
  255. package/dist/docs/types/uuid.html +2 -2
  256. package/dist/docs/variables/OS_CONFIRM_MODAL_CANCEL.html +2 -2
  257. package/dist/docs/variables/OS_CONFIRM_MODAL_NO.html +2 -2
  258. package/dist/docs/variables/OS_CONFIRM_MODAL_YES.html +2 -2
  259. package/dist/docs/variables/SAVED_SEARCH_MESSAGE_TYPES.html +1 -1
  260. package/dist/docs/variables/SAVED_SEARCH_PREFIX.html +1 -1
  261. package/dist/index.d.ts +1 -0
  262. package/dist/index.d.ts.map +1 -1
  263. package/dist/index.js +1 -0
  264. package/dist/index.js.map +1 -1
  265. package/dist/liveContext.d.ts +69 -0
  266. package/dist/liveContext.d.ts.map +1 -0
  267. package/dist/liveContext.js +2 -0
  268. package/dist/liveContext.js.map +1 -0
  269. package/dist/platform-types.d.ts +71 -0
  270. package/package.json +1 -1
@@ -669,6 +669,8 @@ export declare type DataMask = {
669
669
  ownState?: Record<string, any>;
670
670
  };
671
671
 
672
+ export declare type DefaultLiveContextData = Record<string, any>;
673
+
672
674
  /**
673
675
  * Interface for desktop actions.
674
676
  * @beta
@@ -2012,6 +2014,75 @@ export declare type KnownCounts = {
2012
2014
  [relationship_name: string]: number;
2013
2015
  };
2014
2016
 
2017
+ /**
2018
+ * @beta
2019
+ * Represents a context management interface for handling state across components
2020
+ */
2021
+ export declare interface LiveContext<ContextData extends DefaultLiveContextData = DefaultLiveContextData> {
2022
+ /**
2023
+ * @beta
2024
+ * Retrieves the current context data
2025
+ * @returns The current context data
2026
+ */
2027
+ getContext(): ContextData;
2028
+ /**
2029
+ * @beta
2030
+ * Updates the context with new data
2031
+ * @param context - New context data or function to update context
2032
+ */
2033
+ setContext(context: LiveContextAPISetParams<ContextData>): Promise<void>;
2034
+ /**
2035
+ * @beta
2036
+ * Subscribes to context changes with an automatically generated ID
2037
+ * @param contextListener - Callback function triggered on context changes
2038
+ * @returns Generated subscription ID
2039
+ */
2040
+ subscribeToChanges(contextListener: LiveContextListener<ContextData>): string;
2041
+ /**
2042
+ * @beta
2043
+ * Subscribes to context changes with a custom ID
2044
+ * @param id - Custom subscription ID
2045
+ * @param contextListener - Callback function triggered on context changes
2046
+ * @returns The subscription ID
2047
+ */
2048
+ subscribeToChanges(id: string, contextListener: LiveContextListener<ContextData>): string;
2049
+ /**
2050
+ * @beta
2051
+ * Unsubscribes from context changes
2052
+ * @param id - Subscription ID to remove
2053
+ */
2054
+ unsubscribeFromChanges(id: string): void;
2055
+ /**
2056
+ * @beta
2057
+ * Adds a context listener to another Context instance
2058
+ * @param contextAPI - The Context instance to connect to
2059
+ * @param mapContext - Optional function to transform context data
2060
+ * @returns Function to remove the context listener
2061
+ */
2062
+ addContextListener<ContextDataToConnect extends DefaultLiveContextData>(contextAPI: LiveContext<ContextDataToConnect>, mapContext?: (context: ContextDataToConnect) => ContextData): () => void;
2063
+ /**
2064
+ * @beta
2065
+ * Removes a context listener
2066
+ * @param idOrContextAPI - ID or Context instance to disconnect from
2067
+ */
2068
+ removeContextListener<ContextDataToConnect extends DefaultLiveContextData>(idOrContextAPI: LiveContext<ContextDataToConnect> | string): void;
2069
+ /**
2070
+ * @beta
2071
+ * Connects to target window for context synchronization
2072
+ * @returns The channel ID used for communication
2073
+ */
2074
+ connect(): string;
2075
+ /**
2076
+ * @beta
2077
+ * Destroys the context and cleans up all listeners
2078
+ */
2079
+ destroy(): void;
2080
+ }
2081
+
2082
+ export declare type LiveContextAPISetParams<ContextData extends Record<string, any> = Record<string, any>> = ContextData | ((currentContext: ContextData) => ContextData);
2083
+
2084
+ export declare type LiveContextListener<ContextData extends Record<string, any> = Record<string, any>> = (context: ContextData) => void;
2085
+
2015
2086
  export declare type ManifestSecrets = {
2016
2087
  [key: string]: {
2017
2088
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octostar/platform-types",
3
- "version": "0.5.23",
3
+ "version": "0.5.24",
4
4
  "description": "Types for the API exposed by Octostar platform to third parties",
5
5
  "keywords": [
6
6
  "octostar",