trustgraph-base 2.6.14__tar.gz → 2.7.0__tar.gz

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 (192) hide show
  1. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/PKG-INFO +1 -1
  2. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/library.py +3 -3
  3. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/__init__.py +1 -0
  4. trustgraph_base-2.7.0/trustgraph/base/audit_publisher.py +42 -0
  5. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/iam_client.py +15 -4
  6. trustgraph_base-2.7.0/trustgraph/base_version.py +1 -0
  7. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/__init__.py +2 -1
  8. trustgraph_base-2.7.0/trustgraph/schema/services/audit.py +27 -0
  9. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/iam.py +4 -0
  10. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph_base.egg-info/PKG-INFO +1 -1
  11. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph_base.egg-info/SOURCES.txt +2 -0
  12. trustgraph_base-2.6.14/trustgraph/base_version.py +0 -1
  13. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/README.md +0 -0
  14. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/pyproject.toml +0 -0
  15. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/setup.cfg +0 -0
  16. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/__init__.py +0 -0
  17. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/api.py +0 -0
  18. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/async_bulk_client.py +0 -0
  19. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/async_flow.py +0 -0
  20. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/async_metrics.py +0 -0
  21. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/async_socket_client.py +0 -0
  22. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/bulk_client.py +0 -0
  23. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/collection.py +0 -0
  24. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/config.py +0 -0
  25. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/exceptions.py +0 -0
  26. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/explainability.py +0 -0
  27. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/flow.py +0 -0
  28. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/knowledge.py +0 -0
  29. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/metrics.py +0 -0
  30. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/socket_client.py +0 -0
  31. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/api/types.py +0 -0
  32. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/agent_client.py +0 -0
  33. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/agent_service.py +0 -0
  34. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/async_processor.py +0 -0
  35. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/backend.py +0 -0
  36. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/cassandra_config.py +0 -0
  37. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/chunking_service.py +0 -0
  38. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/collection_config_handler.py +0 -0
  39. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/config_client.py +0 -0
  40. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/consumer.py +0 -0
  41. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/consumer_spec.py +0 -0
  42. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/document_embeddings_client.py +0 -0
  43. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/document_embeddings_query_service.py +0 -0
  44. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/document_embeddings_store_service.py +0 -0
  45. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/dynamic_tool_service.py +0 -0
  46. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/embeddings_client.py +0 -0
  47. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/embeddings_service.py +0 -0
  48. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/flow.py +0 -0
  49. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/flow_processor.py +0 -0
  50. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/graph_embeddings_client.py +0 -0
  51. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/graph_embeddings_query_service.py +0 -0
  52. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/graph_embeddings_store_service.py +0 -0
  53. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/graph_rag_client.py +0 -0
  54. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/kafka_backend.py +0 -0
  55. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/librarian_client.py +0 -0
  56. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/librarian_spec.py +0 -0
  57. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/llm_service.py +0 -0
  58. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/logging.py +0 -0
  59. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/metrics.py +0 -0
  60. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/parameter_spec.py +0 -0
  61. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/processor_group.py +0 -0
  62. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/producer.py +0 -0
  63. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/producer_spec.py +0 -0
  64. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/prompt_client.py +0 -0
  65. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/publisher.py +0 -0
  66. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/pubsub.py +0 -0
  67. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/pulsar_backend.py +0 -0
  68. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/qdrant_config.py +0 -0
  69. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/rabbitmq_backend.py +0 -0
  70. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/request_response_spec.py +0 -0
  71. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/reranker_client.py +0 -0
  72. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/reranker_service.py +0 -0
  73. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/row_embeddings_query_client.py +0 -0
  74. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/serialization.py +0 -0
  75. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/spec.py +0 -0
  76. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/structured_query_client.py +0 -0
  77. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/subscriber.py +0 -0
  78. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/subscriber_spec.py +0 -0
  79. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/text_completion_client.py +0 -0
  80. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/tool_client.py +0 -0
  81. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/tool_service.py +0 -0
  82. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/tool_service_client.py +0 -0
  83. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/triples_client.py +0 -0
  84. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/triples_query_service.py +0 -0
  85. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/triples_store_service.py +0 -0
  86. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/base/workspace_processor.py +0 -0
  87. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/__init__.py +0 -0
  88. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/agent_client.py +0 -0
  89. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/base.py +0 -0
  90. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/config_client.py +0 -0
  91. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/document_embeddings_client.py +0 -0
  92. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/document_rag_client.py +0 -0
  93. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/embeddings_client.py +0 -0
  94. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/graph_embeddings_client.py +0 -0
  95. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/graph_rag_client.py +0 -0
  96. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/llm_client.py +0 -0
  97. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/prompt_client.py +0 -0
  98. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/row_embeddings_client.py +0 -0
  99. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/clients/triples_query_client.py +0 -0
  100. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/exceptions.py +0 -0
  101. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/__init__.py +0 -0
  102. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/__init__.py +0 -0
  103. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/ar.json +0 -0
  104. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/en.json +0 -0
  105. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/es.json +0 -0
  106. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/he.json +0 -0
  107. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/hi.json +0 -0
  108. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/pt.json +0 -0
  109. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/ru.json +0 -0
  110. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/sw.json +0 -0
  111. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/tr.json +0 -0
  112. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/i18n/packs/zh-cn.json +0 -0
  113. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/knowledge/__init__.py +0 -0
  114. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/knowledge/defs.py +0 -0
  115. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/knowledge/document.py +0 -0
  116. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/knowledge/identifier.py +0 -0
  117. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/knowledge/organization.py +0 -0
  118. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/knowledge/publication.py +0 -0
  119. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/log_level.py +0 -0
  120. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/__init__.py +0 -0
  121. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/registry.py +0 -0
  122. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/__init__.py +0 -0
  123. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/agent.py +0 -0
  124. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/base.py +0 -0
  125. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/collection.py +0 -0
  126. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/config.py +0 -0
  127. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/diagnosis.py +0 -0
  128. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/document_loading.py +0 -0
  129. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/embeddings.py +0 -0
  130. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/embeddings_query.py +0 -0
  131. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/flow.py +0 -0
  132. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/iam.py +0 -0
  133. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/knowledge.py +0 -0
  134. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/library.py +0 -0
  135. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/metadata.py +0 -0
  136. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/nlp_query.py +0 -0
  137. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/primitives.py +0 -0
  138. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/prompt.py +0 -0
  139. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/reranker.py +0 -0
  140. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/retrieval.py +0 -0
  141. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/rows_query.py +0 -0
  142. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/sparql_query.py +0 -0
  143. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/structured_query.py +0 -0
  144. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/text_completion.py +0 -0
  145. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/tool.py +0 -0
  146. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/messaging/translators/triples.py +0 -0
  147. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/objects/__init__.py +0 -0
  148. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/objects/field.py +0 -0
  149. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/objects/object.py +0 -0
  150. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/provenance/__init__.py +0 -0
  151. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/provenance/agent.py +0 -0
  152. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/provenance/namespaces.py +0 -0
  153. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/provenance/triples.py +0 -0
  154. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/provenance/uris.py +0 -0
  155. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/provenance/vocabulary.py +0 -0
  156. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/rdf.py +0 -0
  157. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/__init__.py +0 -0
  158. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/core/__init__.py +0 -0
  159. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/core/metadata.py +0 -0
  160. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/core/primitives.py +0 -0
  161. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/core/topic.py +0 -0
  162. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/knowledge/__init__.py +0 -0
  163. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/knowledge/document.py +0 -0
  164. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/knowledge/embeddings.py +0 -0
  165. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/knowledge/graph.py +0 -0
  166. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/knowledge/knowledge.py +0 -0
  167. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/knowledge/nlp.py +0 -0
  168. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/knowledge/object.py +0 -0
  169. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/knowledge/rows.py +0 -0
  170. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/knowledge/structured.py +0 -0
  171. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/agent.py +0 -0
  172. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/collection.py +0 -0
  173. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/config.py +0 -0
  174. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/diagnosis.py +0 -0
  175. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/flow.py +0 -0
  176. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/library.py +0 -0
  177. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/llm.py +0 -0
  178. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/lookup.py +0 -0
  179. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/nlp_query.py +0 -0
  180. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/prompt.py +0 -0
  181. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/query.py +0 -0
  182. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/reranker.py +0 -0
  183. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/retrieval.py +0 -0
  184. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/rows_query.py +0 -0
  185. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/sparql_query.py +0 -0
  186. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/storage.py +0 -0
  187. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/structured_query.py +0 -0
  188. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph/schema/services/tool_service.py +0 -0
  189. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph_base.egg-info/dependency_links.txt +0 -0
  190. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph_base.egg-info/entry_points.txt +0 -0
  191. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph_base.egg-info/requires.txt +0 -0
  192. {trustgraph_base-2.6.14 → trustgraph_base-2.7.0}/trustgraph_base.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trustgraph-base
3
- Version: 2.6.14
3
+ Version: 2.7.0
4
4
  Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
5
5
  Author-email: "trustgraph.ai" <security@trustgraph.ai>
6
6
  Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
@@ -363,7 +363,7 @@ class Library:
363
363
  return [
364
364
  DocumentMetadata(
365
365
  id = v["id"],
366
- time = datetime.datetime.fromtimestamp(v["time"]),
366
+ time = datetime.datetime.fromtimestamp(v["time"]) if "time" in v else None,
367
367
  kind = v["kind"],
368
368
  title = v.get("title", ""),
369
369
  comments = v.get("comments", ""),
@@ -678,7 +678,7 @@ class Library:
678
678
  ProcessingMetadata(
679
679
  id = v["id"],
680
680
  document_id = v["document-id"],
681
- time = datetime.datetime.fromtimestamp(v["time"]),
681
+ time = datetime.datetime.fromtimestamp(v["time"]) if "time" in v else None,
682
682
  flow = v["flow"],
683
683
  collection = v["collection"],
684
684
  tags = v["tags"],
@@ -983,7 +983,7 @@ class Library:
983
983
  return [
984
984
  DocumentMetadata(
985
985
  id=v["id"],
986
- time=datetime.datetime.fromtimestamp(v["time"]),
986
+ time=datetime.datetime.fromtimestamp(v["time"]) if "time" in v else None,
987
987
  kind=v["kind"],
988
988
  title=v["title"],
989
989
  comments=v.get("comments", ""),
@@ -46,4 +46,5 @@ from . reranker_client import RerankerClientSpec
46
46
  from . reranker_service import RerankerService
47
47
  from . row_embeddings_query_client import RowEmbeddingsQueryClientSpec
48
48
  from . collection_config_handler import CollectionConfigHandler
49
+ from . audit_publisher import AuditPublisher
49
50
 
@@ -0,0 +1,42 @@
1
+
2
+ import json
3
+ import logging
4
+ from datetime import datetime, timezone
5
+ from uuid import uuid4
6
+
7
+ from . producer import Producer
8
+ from . metrics import ProducerMetrics
9
+ from trustgraph.schema import AuditEvent, audit_events_queue
10
+
11
+ logger = logging.getLogger(__name__)
12
+
13
+
14
+ class AuditPublisher:
15
+
16
+ def __init__(self, backend, component_name, processor_id=None):
17
+ self.component_name = component_name
18
+ self.producer = Producer(
19
+ backend=backend,
20
+ topic=audit_events_queue,
21
+ schema=AuditEvent,
22
+ metrics=ProducerMetrics(
23
+ processor=processor_id or component_name,
24
+ flow=None,
25
+ name="audit-events",
26
+ ),
27
+ )
28
+
29
+ async def emit(self, event_type, payload):
30
+ event = AuditEvent(
31
+ schema_version=1,
32
+ event_id=str(uuid4()),
33
+ event_type=event_type,
34
+ timestamp=datetime.now(timezone.utc).isoformat(),
35
+ producer=self.component_name,
36
+ payload_json=json.dumps(payload),
37
+ )
38
+
39
+ try:
40
+ await self.producer.send(event)
41
+ except Exception as e:
42
+ logger.warning(f"Failed to emit audit event: {e}")
@@ -62,7 +62,8 @@ class IamClient(RequestResponse):
62
62
  )
63
63
  return resp.user
64
64
 
65
- async def authenticate_anonymous(self, timeout=IAM_TIMEOUT):
65
+ async def authenticate_anonymous(self, timeout=IAM_TIMEOUT,
66
+ request_id="", client_ip=""):
66
67
  """Request anonymous access from the IAM regime.
67
68
 
68
69
  Returns ``(user_id, default_workspace, roles)`` if the regime
@@ -70,6 +71,8 @@ class IamClient(RequestResponse):
70
71
  error type ``auth-failed`` if it does not."""
71
72
  resp = await self._request(
72
73
  operation="authenticate-anonymous",
74
+ request_id=request_id,
75
+ client_ip=client_ip,
73
76
  timeout=timeout,
74
77
  )
75
78
  return (
@@ -78,7 +81,8 @@ class IamClient(RequestResponse):
78
81
  list(resp.resolved_roles),
79
82
  )
80
83
 
81
- async def resolve_api_key(self, api_key, timeout=IAM_TIMEOUT):
84
+ async def resolve_api_key(self, api_key, timeout=IAM_TIMEOUT,
85
+ request_id="", client_ip=""):
82
86
  """Resolve a plaintext API key to its identity triple.
83
87
 
84
88
  Returns ``(user_id, default_workspace, roles)`` or raises
@@ -87,6 +91,8 @@ class IamClient(RequestResponse):
87
91
  resp = await self._request(
88
92
  operation="resolve-api-key",
89
93
  api_key=api_key,
94
+ request_id=request_id,
95
+ client_ip=client_ip,
90
96
  timeout=timeout,
91
97
  )
92
98
  return (
@@ -96,7 +102,8 @@ class IamClient(RequestResponse):
96
102
  )
97
103
 
98
104
  async def authorise(self, identity_handle, capability,
99
- resource, parameters, timeout=IAM_TIMEOUT):
105
+ resource, parameters, timeout=IAM_TIMEOUT,
106
+ request_id="", client_ip=""):
100
107
  """Ask the IAM regime whether ``identity_handle`` may perform
101
108
  ``capability`` on ``resource`` given ``parameters``.
102
109
 
@@ -111,6 +118,8 @@ class IamClient(RequestResponse):
111
118
  capability=capability,
112
119
  resource_json=json.dumps(resource or {}, sort_keys=True),
113
120
  parameters_json=json.dumps(parameters or {}, sort_keys=True),
121
+ request_id=request_id,
122
+ client_ip=client_ip,
114
123
  timeout=timeout,
115
124
  )
116
125
  return resp.decision_allow, resp.decision_ttl_seconds
@@ -186,7 +195,7 @@ class IamClient(RequestResponse):
186
195
  )
187
196
 
188
197
  async def login(self, username, password, workspace="",
189
- timeout=IAM_TIMEOUT):
198
+ timeout=IAM_TIMEOUT, request_id="", client_ip=""):
190
199
  """Validate credentials and return ``(jwt, expires_iso)``.
191
200
  ``workspace`` is optional; defaults at the server to the
192
201
  OSS default workspace."""
@@ -195,6 +204,8 @@ class IamClient(RequestResponse):
195
204
  workspace=workspace,
196
205
  username=username,
197
206
  password=password,
207
+ request_id=request_id,
208
+ client_ip=client_ip,
198
209
  timeout=timeout,
199
210
  )
200
211
  return resp.jwt, resp.jwt_expires
@@ -0,0 +1 @@
1
+ __version__ = "2.7.0"
@@ -16,4 +16,5 @@ from .collection import *
16
16
  from .storage import *
17
17
  from .tool_service import *
18
18
  from .sparql_query import *
19
- from .reranker import *
19
+ from .reranker import *
20
+ from .audit import *
@@ -0,0 +1,27 @@
1
+
2
+ from dataclasses import dataclass, field
3
+
4
+ from ..core.topic import queue
5
+
6
+ ############################################################################
7
+
8
+ # Audit events — see docs/tech-specs/audit-events.md for the full spec.
9
+ #
10
+ # Transport: notify-class pub/sub (fire-and-forget, per-subscriber
11
+ # delivery). Producers are the API gateway and the IAM service.
12
+ # Consumers are optional enterprise components.
13
+
14
+
15
+ @dataclass
16
+ class AuditEvent:
17
+ schema_version: int = 1
18
+ event_id: str = ""
19
+ event_type: str = ""
20
+ timestamp: str = ""
21
+ producer: str = ""
22
+ payload_json: str = ""
23
+
24
+
25
+ audit_events_queue = queue('audit-events', cls='notify')
26
+
27
+ ############################################################################
@@ -121,6 +121,10 @@ class IamRequest:
121
121
  group: GroupInput | None = None
122
122
  grant: GrantInput | None = None
123
123
 
124
+ # ---- Audit context (informational, echoed into audit events) ----
125
+ request_id: str = ""
126
+ client_ip: str = ""
127
+
124
128
  # ---- authorise / authorise-many inputs ----
125
129
  # Capability string from the vocabulary in capabilities.md.
126
130
  capability: str = ""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trustgraph-base
3
- Version: 2.6.14
3
+ Version: 2.7.0
4
4
  Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
5
5
  Author-email: "trustgraph.ai" <security@trustgraph.ai>
6
6
  Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
@@ -25,6 +25,7 @@ trustgraph/base/__init__.py
25
25
  trustgraph/base/agent_client.py
26
26
  trustgraph/base/agent_service.py
27
27
  trustgraph/base/async_processor.py
28
+ trustgraph/base/audit_publisher.py
28
29
  trustgraph/base/backend.py
29
30
  trustgraph/base/cassandra_config.py
30
31
  trustgraph/base/chunking_service.py
@@ -161,6 +162,7 @@ trustgraph/schema/knowledge/rows.py
161
162
  trustgraph/schema/knowledge/structured.py
162
163
  trustgraph/schema/services/__init__.py
163
164
  trustgraph/schema/services/agent.py
165
+ trustgraph/schema/services/audit.py
164
166
  trustgraph/schema/services/collection.py
165
167
  trustgraph/schema/services/config.py
166
168
  trustgraph/schema/services/diagnosis.py
@@ -1 +0,0 @@
1
- __version__ = "2.6.14"