@octostar/platform-types 0.5.11 → 0.5.13

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 (275) hide show
  1. package/dist/api.d.ts +2 -0
  2. package/dist/api.d.ts.map +1 -1
  3. package/dist/context.d.ts +66 -0
  4. package/dist/context.d.ts.map +1 -0
  5. package/dist/context.js +2 -0
  6. package/dist/context.js.map +1 -0
  7. package/dist/desktop.d.ts +4 -0
  8. package/dist/desktop.d.ts.map +1 -1
  9. package/dist/desktop.js.map +1 -1
  10. package/dist/docs/assets/navigation.js +1 -1
  11. package/dist/docs/assets/search.js +1 -1
  12. package/dist/docs/enums/ProcessingStatusCode.html +16 -16
  13. package/dist/docs/enums/SortOrder.html +3 -3
  14. package/dist/docs/enums/WorkspacePermissionValue.html +3 -3
  15. package/dist/docs/hierarchy.html +1 -1
  16. package/dist/docs/index.html +2 -2
  17. package/dist/docs/interfaces/AIClient.html +4 -4
  18. package/dist/docs/interfaces/ActionContext.html +4 -4
  19. package/dist/docs/interfaces/BinaryObjectFilterClause.html +3 -3
  20. package/dist/docs/interfaces/ChartDataResponseResult.html +5 -5
  21. package/dist/docs/interfaces/ChatMessage.html +6 -6
  22. package/dist/docs/interfaces/Colorful.html +3 -3
  23. package/dist/docs/interfaces/Concept.html +12 -12
  24. package/dist/docs/interfaces/Context.html +27 -0
  25. package/dist/docs/interfaces/Desktop.html +87 -87
  26. package/dist/docs/interfaces/DesktopActionContext.html +7 -7
  27. package/dist/docs/interfaces/DesktopSettings.html +5 -5
  28. package/dist/docs/interfaces/FetchOptions.html +4 -4
  29. package/dist/docs/interfaces/GetAttachmentOptions.html +5 -5
  30. package/dist/docs/interfaces/IDataTransfer.html +11 -11
  31. package/dist/docs/interfaces/Inheritance.html +5 -5
  32. package/dist/docs/interfaces/NativeFilterColumn.html +2 -2
  33. package/dist/docs/interfaces/NativeFilterScope.html +2 -2
  34. package/dist/docs/interfaces/NativeFilterTarget.html +2 -2
  35. package/dist/docs/interfaces/Ontology.html +23 -23
  36. package/dist/docs/interfaces/OsAPIClient.html +6 -6
  37. package/dist/docs/interfaces/ProcessingStatus.html +7 -7
  38. package/dist/docs/interfaces/Property.html +5 -5
  39. package/dist/docs/interfaces/RecordData.html +5 -5
  40. package/dist/docs/interfaces/RecordProvider.html +6 -6
  41. package/dist/docs/interfaces/RefObject.html +3 -3
  42. package/dist/docs/interfaces/Relationship.html +20 -20
  43. package/dist/docs/interfaces/SavedDatasource.html +2 -2
  44. package/dist/docs/interfaces/SavedSearchAPIInterface.html +2 -2
  45. package/dist/docs/interfaces/SavedSearchContent.html +2 -2
  46. package/dist/docs/interfaces/SavedSetContent.html +2 -2
  47. package/dist/docs/interfaces/SearchOptions.html +3 -3
  48. package/dist/docs/interfaces/SearchProps.html +8 -8
  49. package/dist/docs/interfaces/SearchXperienceModalProps.html +9 -9
  50. package/dist/docs/interfaces/SearchXperienceProps.html +7 -7
  51. package/dist/docs/interfaces/SemanticBindingProps.html +5 -5
  52. package/dist/docs/interfaces/StreamJsonOptions.html +5 -5
  53. package/dist/docs/interfaces/StreamTextOptions.html +5 -5
  54. package/dist/docs/interfaces/StylerContext.html +11 -11
  55. package/dist/docs/interfaces/TagAttributes.html +7 -7
  56. package/dist/docs/interfaces/UnaryObjectFilterClause.html +3 -3
  57. package/dist/docs/interfaces/WorkspaceChangeEmitter.html +5 -5
  58. package/dist/docs/interfaces/WorkspaceItemConfig.html +6 -6
  59. package/dist/docs/interfaces/WorkspaceRecordIdentifier.html +5 -5
  60. package/dist/docs/modules.html +7 -2
  61. package/dist/docs/types/ActionHandler.html +2 -2
  62. package/dist/docs/types/AddCommentParams.html +2 -2
  63. package/dist/docs/types/AddListener.html +2 -2
  64. package/dist/docs/types/ApiErrorResult.html +3 -2
  65. package/dist/docs/types/ApiResult.html +2 -2
  66. package/dist/docs/types/ApiSuccessResult.html +2 -2
  67. package/dist/docs/types/App.html +2 -2
  68. package/dist/docs/types/AppRegistry.html +2 -2
  69. package/dist/docs/types/AppServiceCallOptions.html +2 -2
  70. package/dist/docs/types/AppServiceCallProps.html +2 -2
  71. package/dist/docs/types/AsyncFilter.html +2 -2
  72. package/dist/docs/types/AttachmentResponseType.html +2 -2
  73. package/dist/docs/types/AttachmentType.html +2 -2
  74. package/dist/docs/types/Behaviour.html +2 -2
  75. package/dist/docs/types/BinaryOperator.html +2 -2
  76. package/dist/docs/types/Callback.html +2 -2
  77. package/dist/docs/types/ChatModel.html +2 -2
  78. package/dist/docs/types/CommentWorkspaceItem.html +2 -2
  79. package/dist/docs/types/Comparator.html +2 -2
  80. package/dist/docs/types/ConceptFilter.html +2 -2
  81. package/dist/docs/types/ConceptMap.html +2 -2
  82. package/dist/docs/types/ConceptName.html +1 -1
  83. package/dist/docs/types/ConceptWithParents.html +2 -2
  84. package/dist/docs/types/ConnectedEntity.html +2 -2
  85. package/dist/docs/types/ContextAPIContructorParams.html +1 -0
  86. package/dist/docs/types/ContextAPIMessage.html +1 -0
  87. package/dist/docs/types/ContextAPISetParams.html +1 -0
  88. package/dist/docs/types/ContextListener.html +1 -0
  89. package/dist/docs/types/ContextMenuGroup.html +2 -2
  90. package/dist/docs/types/ContextMenuLabels.html +2 -2
  91. package/dist/docs/types/ContextMenuOptions.html +2 -2
  92. package/dist/docs/types/ContextMenuParams.html +2 -2
  93. package/dist/docs/types/ContextMenuRequest.html +2 -2
  94. package/dist/docs/types/CopyOptions.html +2 -2
  95. package/dist/docs/types/CreateEntityFormProps.html +2 -2
  96. package/dist/docs/types/CreateLinkChartFn.html +1 -1
  97. package/dist/docs/types/CreateLinkChartParams.html +1 -1
  98. package/dist/docs/types/CreateRelationsDialogProps.html +2 -2
  99. package/dist/docs/types/CustomEventListener.html +2 -2
  100. package/dist/docs/types/CustomTemplate.html +2 -2
  101. package/dist/docs/types/CustomTemplateIframeProps.html +2 -2
  102. package/dist/docs/types/DataContextType.html +2 -2
  103. package/dist/docs/types/DataMask.html +1 -1
  104. package/dist/docs/types/DesktopAction.html +2 -2
  105. package/dist/docs/types/DesktopActionFilter.html +2 -2
  106. package/dist/docs/types/DesktopActionMenuItem.html +3 -2
  107. package/dist/docs/types/DesktopActionMenuItemGroup.html +2 -2
  108. package/dist/docs/types/DesktopActionOptions.html +2 -2
  109. package/dist/docs/types/DesktopOpenParams.html +2 -2
  110. package/dist/docs/types/DesktopStylerContext.html +2 -2
  111. package/dist/docs/types/DraftWorkspaceItem.html +2 -2
  112. package/dist/docs/types/DragEndParams.html +2 -2
  113. package/dist/docs/types/DragStartParams.html +2 -2
  114. package/dist/docs/types/DropZoneRequestFn.html +1 -1
  115. package/dist/docs/types/DropZoneRequestResult.html +1 -1
  116. package/dist/docs/types/EConnection.html +2 -2
  117. package/dist/docs/types/EdgeSpec.html +2 -2
  118. package/dist/docs/types/EmitEventTransformDefinition.html +2 -2
  119. package/dist/docs/types/Entity.html +2 -2
  120. package/dist/docs/types/EntityBase.html +2 -2
  121. package/dist/docs/types/EntityEdge.html +2 -2
  122. package/dist/docs/types/EntityOTM.html +2 -2
  123. package/dist/docs/types/EntityPasteContext.html +2 -2
  124. package/dist/docs/types/EvalContext.html +1 -1
  125. package/dist/docs/types/EventContextType.html +2 -2
  126. package/dist/docs/types/EventEmitterType.html +2 -2
  127. package/dist/docs/types/EventName.html +2 -2
  128. package/dist/docs/types/EventProducer.html +2 -2
  129. package/dist/docs/types/EventPublisher.html +2 -2
  130. package/dist/docs/types/EventSubscriber.html +2 -2
  131. package/dist/docs/types/EventUnsubscriber.html +2 -2
  132. package/dist/docs/types/ExportOptions.html +2 -2
  133. package/dist/docs/types/ExtractEntitiesOptions.html +2 -2
  134. package/dist/docs/types/ExtrasApi.html +1 -1
  135. package/dist/docs/types/FetchEntityOptions.html +2 -2
  136. package/dist/docs/types/FileCode.html +2 -2
  137. package/dist/docs/types/FileTreeOptions.html +2 -2
  138. package/dist/docs/types/Filter.html +1 -1
  139. package/dist/docs/types/FilterDefinition.html +2 -2
  140. package/dist/docs/types/FilterDefinitions.html +2 -2
  141. package/dist/docs/types/FilterName.html +2 -2
  142. package/dist/docs/types/FilterReference.html +2 -2
  143. package/dist/docs/types/FilterState.html +1 -1
  144. package/dist/docs/types/FocusListItem.html +2 -2
  145. package/dist/docs/types/FolderPasteOptions.html +2 -2
  146. package/dist/docs/types/GraphDataSpec.html +1 -1
  147. package/dist/docs/types/GraphSpec.html +2 -2
  148. package/dist/docs/types/HttpTransformDefinition.html +2 -2
  149. package/dist/docs/types/Icon.html +2 -2
  150. package/dist/docs/types/IconProps.html +2 -2
  151. package/dist/docs/types/IframeTransformDefinition.html +2 -2
  152. package/dist/docs/types/ImageInfo.html +2 -2
  153. package/dist/docs/types/ImportZipOptions.html +2 -2
  154. package/dist/docs/types/InlineCode.html +2 -2
  155. package/dist/docs/types/JavascriptFileStylerDefinition.html +2 -2
  156. package/dist/docs/types/JavascriptFileTransformDefinition.html +2 -2
  157. package/dist/docs/types/JavascriptFilterDefinition.html +2 -2
  158. package/dist/docs/types/JavascriptInlineStylerDefinition.html +2 -2
  159. package/dist/docs/types/JavascriptInlineTransformDefinition.html +2 -2
  160. package/dist/docs/types/JavascriptType.html +2 -2
  161. package/dist/docs/types/JobManifest.html +5 -3
  162. package/dist/docs/types/KnownCounts.html +2 -2
  163. package/dist/docs/types/ManifestSecrets.html +1 -1
  164. package/dist/docs/types/ModalTemplateProps.html +2 -2
  165. package/dist/docs/types/NamedEntityGroup.html +2 -2
  166. package/dist/docs/types/NunjucksFileTransformDefinition.html +2 -2
  167. package/dist/docs/types/NunjucksInlineTransformDefinition.html +2 -2
  168. package/dist/docs/types/NunjucksType.html +2 -2
  169. package/dist/docs/types/OS_CONFIRM_MODAL_RESPONSE.html +2 -2
  170. package/dist/docs/types/OntologyTags.html +2 -2
  171. package/dist/docs/types/OsAuditFields.html +2 -2
  172. package/dist/docs/types/OsConfirmProps.html +2 -2
  173. package/dist/docs/types/OsNotification.html +2 -2
  174. package/dist/docs/types/OsProgress.html +2 -2
  175. package/dist/docs/types/OsTag.html +2 -2
  176. package/dist/docs/types/OsWorkspaceEntity.html +2 -2
  177. package/dist/docs/types/OsWorkspacePickerProps.html +2 -2
  178. package/dist/docs/types/PasteContextOptions.html +2 -2
  179. package/dist/docs/types/Permission.html +2 -2
  180. package/dist/docs/types/Point.html +2 -2
  181. package/dist/docs/types/PromptOptions.html +2 -2
  182. package/dist/docs/types/ProvidedFilterDefinition.html +2 -2
  183. package/dist/docs/types/ProvidedTransformDefinition.html +2 -2
  184. package/dist/docs/types/Query.html +2 -2
  185. package/dist/docs/types/QueryBatchResult.html +2 -2
  186. package/dist/docs/types/QueryErrorResult.html +2 -2
  187. package/dist/docs/types/QueryExecutor.html +2 -2
  188. package/dist/docs/types/QueryObjectFilterClause.html +2 -2
  189. package/dist/docs/types/QueryResponse.html +2 -2
  190. package/dist/docs/types/QueryResult.html +2 -2
  191. package/dist/docs/types/QuerySuccessResult.html +2 -2
  192. package/dist/docs/types/ReactCssProperties.html +2 -2
  193. package/dist/docs/types/ReactNode.html +2 -2
  194. package/dist/docs/types/ReactRef.html +2 -2
  195. package/dist/docs/types/ReasonedBoolean.html +2 -2
  196. package/dist/docs/types/RecordFetchOptions.html +1 -1
  197. package/dist/docs/types/RefCallback.html +2 -2
  198. package/dist/docs/types/RelationshipCountResult.html +2 -2
  199. package/dist/docs/types/RemoteAppApi.html +1 -1
  200. package/dist/docs/types/SaveAsModalProps.html +2 -2
  201. package/dist/docs/types/SaveFileOptions.html +2 -2
  202. package/dist/docs/types/SaveOptions.html +2 -2
  203. package/dist/docs/types/SavedTemplate.html +2 -2
  204. package/dist/docs/types/SearchFilter.html +2 -2
  205. package/dist/docs/types/SemanticBinding.html +2 -2
  206. package/dist/docs/types/SemanticBindingType.html +2 -2
  207. package/dist/docs/types/SemanticBindings.html +2 -2
  208. package/dist/docs/types/SemanticallyBoundApp.html +2 -2
  209. package/dist/docs/types/SemanticallyBoundFilterDefinition.html +2 -2
  210. package/dist/docs/types/SendQueryOptions.html +2 -2
  211. package/dist/docs/types/ServiceDefinition.html +3 -2
  212. package/dist/docs/types/ServiceDefinitions.html +2 -2
  213. package/dist/docs/types/ServiceRole.html +2 -2
  214. package/dist/docs/types/SetTransformResultFn.html +1 -1
  215. package/dist/docs/types/ShowOntology.html +2 -2
  216. package/dist/docs/types/ShowTabProps.html +2 -2
  217. package/dist/docs/types/Styler.html +2 -2
  218. package/dist/docs/types/StylerConfig.html +2 -2
  219. package/dist/docs/types/StylerDefinition.html +2 -2
  220. package/dist/docs/types/StylerDefinitions.html +2 -2
  221. package/dist/docs/types/StylerOption.html +2 -2
  222. package/dist/docs/types/StylerProducer.html +2 -2
  223. package/dist/docs/types/SubscribeDragStartFn.html +1 -1
  224. package/dist/docs/types/SubscribeToContextFn.html +1 -1
  225. package/dist/docs/types/Tag.html +2 -2
  226. package/dist/docs/types/TagInfo.html +2 -2
  227. package/dist/docs/types/TagWithRelationship.html +2 -2
  228. package/dist/docs/types/TaskCleanupReason.html +2 -2
  229. package/dist/docs/types/TemplateMetadata.html +2 -2
  230. package/dist/docs/types/TemplateType.html +2 -2
  231. package/dist/docs/types/TemplateVariant.html +2 -2
  232. package/dist/docs/types/TransformAction.html +2 -2
  233. package/dist/docs/types/TransformActionContext.html +2 -2
  234. package/dist/docs/types/TransformDefinition.html +2 -2
  235. package/dist/docs/types/TransformDefinitions.html +2 -2
  236. package/dist/docs/types/Unsubscribe.html +2 -2
  237. package/dist/docs/types/UnsubscribeFn.html +1 -1
  238. package/dist/docs/types/UnsubscribeFromContextFn.html +1 -1
  239. package/dist/docs/types/UnsubscribeFromDragStartFn.html +1 -1
  240. package/dist/docs/types/UserProfile.html +2 -2
  241. package/dist/docs/types/Watcher.html +2 -2
  242. package/dist/docs/types/Whoami.html +2 -2
  243. package/dist/docs/types/WithProgressBarOptions.html +2 -2
  244. package/dist/docs/types/Workspace.html +2 -2
  245. package/dist/docs/types/WorkspaceConfig.html +1 -1
  246. package/dist/docs/types/WorkspaceFlags.html +2 -2
  247. package/dist/docs/types/WorkspaceIdentifier.html +2 -2
  248. package/dist/docs/types/WorkspaceItem.html +2 -2
  249. package/dist/docs/types/WorkspaceItemBase.html +2 -2
  250. package/dist/docs/types/WorkspaceItemIdentifier.html +2 -2
  251. package/dist/docs/types/WorkspaceItemModel.html +2 -2
  252. package/dist/docs/types/WorkspaceItemTitleProps.html +2 -2
  253. package/dist/docs/types/WorkspaceItems.html +2 -2
  254. package/dist/docs/types/WorkspacePermission.html +2 -2
  255. package/dist/docs/types/WorkspaceRecord.html +2 -2
  256. package/dist/docs/types/WorkspaceRecordInfo.html +2 -2
  257. package/dist/docs/types/WorkspaceRecordWithRelationships.html +2 -2
  258. package/dist/docs/types/WorkspaceRecords.html +2 -2
  259. package/dist/docs/types/WorkspaceRelationship.html +2 -2
  260. package/dist/docs/types/WorkspaceSettings.html +2 -2
  261. package/dist/docs/types/trigger.html +2 -2
  262. package/dist/docs/types/uuid.html +2 -2
  263. package/dist/docs/variables/OS_CONFIRM_MODAL_CANCEL.html +2 -2
  264. package/dist/docs/variables/OS_CONFIRM_MODAL_NO.html +2 -2
  265. package/dist/docs/variables/OS_CONFIRM_MODAL_YES.html +2 -2
  266. package/dist/docs/variables/SAVED_SEARCH_MESSAGE_TYPES.html +1 -1
  267. package/dist/docs/variables/SAVED_SEARCH_PREFIX.html +1 -1
  268. package/dist/index.d.ts +1 -0
  269. package/dist/index.d.ts.map +1 -1
  270. package/dist/index.js +1 -0
  271. package/dist/index.js.map +1 -1
  272. package/dist/jobManifestTypes.d.ts +8 -0
  273. package/dist/jobManifestTypes.d.ts.map +1 -1
  274. package/dist/platform-types.d.ts +83 -0
  275. package/package.json +1 -1
@@ -93,6 +93,8 @@ export declare type ApiErrorResult = {
93
93
  data: string;
94
94
  /** The cause of the error, represented by a number. */
95
95
  cause: number;
96
+ /** The original error object. */
97
+ err: Error;
96
98
  };
97
99
 
98
100
  /**
@@ -449,6 +451,75 @@ export declare type ConnectedEntity = Entity & {
449
451
  concept_name: string;
450
452
  };
451
453
 
454
+ /**
455
+ * @beta
456
+ * Represents a context management interface for handling state across components
457
+ */
458
+ export declare interface Context<ContextData extends Record<string, any>> {
459
+ /** The current context data */
460
+ context: ContextData;
461
+ /** Optional channel ID for context synchronization */
462
+ channelId: string | undefined;
463
+ /**
464
+ * @beta
465
+ * Retrieves the current context
466
+ * @returns The current context data
467
+ */
468
+ getContext(): ContextData;
469
+ /**
470
+ * @beta
471
+ * Updates the context with new data
472
+ * @param context - New context or function that returns new context based on current
473
+ */
474
+ setContext(context: ContextAPISetParams<ContextData>): void;
475
+ /**
476
+ * @beta
477
+ * Notifies all registered listeners about context changes
478
+ */
479
+ notifyListeners(): void;
480
+ /**
481
+ * @beta
482
+ * Synchronizes context data to the associated channel
483
+ */
484
+ syncContextToChannel(): void;
485
+ /**
486
+ * @beta
487
+ * Subscribes to context changes with an automatically generated ID
488
+ * @param contextListener - Callback function triggered on context changes
489
+ * @returns Generated subscription ID
490
+ */
491
+ subscribeToChanges(contextListener: ContextListener<ContextData>): string;
492
+ /**
493
+ * @beta
494
+ * Subscribes to context changes with a custom ID
495
+ * @param id - Custom subscription ID
496
+ * @param contextListener - Callback function triggered on context changes
497
+ * @returns The subscription ID
498
+ */
499
+ subscribeToChanges(id: string, contextListener: ContextListener<ContextData>): string;
500
+ /**
501
+ * @beta
502
+ * Unsubscribes from context changes
503
+ * @param id - Subscription ID to remove
504
+ */
505
+ unsubscribeFromChanges(id: string): void;
506
+ }
507
+
508
+ export declare type ContextAPIContructorParams<ContextData extends Record<string, any>> = {
509
+ initialContext: ContextData;
510
+ id?: string;
511
+ channelId?: string;
512
+ };
513
+
514
+ export declare type ContextAPIMessage<ContextData> = {
515
+ from: string;
516
+ context: ContextData;
517
+ };
518
+
519
+ export declare type ContextAPISetParams<ContextData> = ContextData | ((currentContext: ContextData) => ContextData);
520
+
521
+ export declare type ContextListener<ContextData> = (context: ContextData) => void;
522
+
452
523
  /**
453
524
  * @beta
454
525
  * Type representing the groups for a context menu.
@@ -1095,6 +1166,10 @@ export declare type DesktopActionMenuItem = {
1095
1166
  * Function to invoke the action.
1096
1167
  */
1097
1168
  invoke: DesktopAction;
1169
+ /**
1170
+ * AI description for the app manifest or service.
1171
+ */
1172
+ aiDescription?: string;
1098
1173
  };
1099
1174
 
1100
1175
  /**
@@ -1924,8 +1999,12 @@ export declare type JobManifest = {
1924
1999
  name: string;
1925
2000
  /** Description of the job. */
1926
2001
  description: string;
2002
+ /** AI description for the job. */
2003
+ aiDescription?: string;
1927
2004
  /** Icon for the job. */
1928
2005
  icon: string;
2006
+ /** Custom color for the app. */
2007
+ color?: string;
1929
2008
  /** Optional image for the job. */
1930
2009
  image?: string;
1931
2010
  /** Optional engine for the job. */
@@ -3129,6 +3208,10 @@ export declare type SendQueryOptions = {
3129
3208
  export declare type ServiceDefinition = {
3130
3209
  /** Description of the service. */
3131
3210
  description: string;
3211
+ /**
3212
+ * AI description for the service.
3213
+ */
3214
+ aiDescription?: string;
3132
3215
  /** Label of the service. */
3133
3216
  label: string;
3134
3217
  /** Icon for the service. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octostar/platform-types",
3
- "version": "0.5.11",
3
+ "version": "0.5.13",
4
4
  "description": "Types for the API exposed by Octostar platform to third parties",
5
5
  "keywords": [
6
6
  "octostar",