gatewaysdk 0.3.2__py3-none-any.whl

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 (376) hide show
  1. gatewaysdk/__init__.py +540 -0
  2. gatewaysdk/adapter/__init__.py +15 -0
  3. gatewaysdk/adapter/base.py +94 -0
  4. gatewaysdk/adapter/messages.py +270 -0
  5. gatewaysdk/adapter/triplet.py +1026 -0
  6. gatewaysdk/algorithm/__init__.py +39 -0
  7. gatewaysdk/algorithm/apo/__init__.py +5 -0
  8. gatewaysdk/algorithm/apo/apo.py +898 -0
  9. gatewaysdk/algorithm/apo/prompts/apply_edit_variant01.poml +22 -0
  10. gatewaysdk/algorithm/apo/prompts/apply_edit_variant02.poml +18 -0
  11. gatewaysdk/algorithm/apo/prompts/text_gradient_variant01.poml +18 -0
  12. gatewaysdk/algorithm/apo/prompts/text_gradient_variant02.poml +16 -0
  13. gatewaysdk/algorithm/apo/prompts/text_gradient_variant03.poml +107 -0
  14. gatewaysdk/algorithm/base.py +262 -0
  15. gatewaysdk/algorithm/decorator.py +264 -0
  16. gatewaysdk/algorithm/evals/__init__.py +7 -0
  17. gatewaysdk/algorithm/evals/evals.py +217 -0
  18. gatewaysdk/algorithm/fast.py +250 -0
  19. gatewaysdk/algorithm/gepa/__init__.py +61 -0
  20. gatewaysdk/algorithm/gepa/adapter.py +495 -0
  21. gatewaysdk/algorithm/gepa/gepa.py +570 -0
  22. gatewaysdk/algorithm/gepa/lib/__init__.py +18 -0
  23. gatewaysdk/algorithm/gepa/lib/adapters/README.md +12 -0
  24. gatewaysdk/algorithm/gepa/lib/adapters/__init__.py +0 -0
  25. gatewaysdk/algorithm/gepa/lib/adapters/anymaths_adapter/README.md +341 -0
  26. gatewaysdk/algorithm/gepa/lib/adapters/anymaths_adapter/__init__.py +1 -0
  27. gatewaysdk/algorithm/gepa/lib/adapters/anymaths_adapter/anymaths_adapter.py +174 -0
  28. gatewaysdk/algorithm/gepa/lib/adapters/anymaths_adapter/requirements.txt +1 -0
  29. gatewaysdk/algorithm/gepa/lib/adapters/default_adapter/README.md +0 -0
  30. gatewaysdk/algorithm/gepa/lib/adapters/default_adapter/__init__.py +0 -0
  31. gatewaysdk/algorithm/gepa/lib/adapters/default_adapter/default_adapter.py +209 -0
  32. gatewaysdk/algorithm/gepa/lib/adapters/dspy_adapter/README.md +7 -0
  33. gatewaysdk/algorithm/gepa/lib/adapters/dspy_adapter/__init__.py +0 -0
  34. gatewaysdk/algorithm/gepa/lib/adapters/dspy_adapter/dspy_adapter.py +307 -0
  35. gatewaysdk/algorithm/gepa/lib/adapters/dspy_full_program_adapter/README.md +99 -0
  36. gatewaysdk/algorithm/gepa/lib/adapters/dspy_full_program_adapter/dspy_program_proposal_signature.py +137 -0
  37. gatewaysdk/algorithm/gepa/lib/adapters/dspy_full_program_adapter/full_program_adapter.py +268 -0
  38. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/GEPA_RAG.md +621 -0
  39. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/__init__.py +56 -0
  40. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/evaluation_metrics.py +226 -0
  41. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/generic_rag_adapter.py +496 -0
  42. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/rag_pipeline.py +238 -0
  43. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_store_interface.py +212 -0
  44. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/__init__.py +2 -0
  45. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/chroma_store.py +196 -0
  46. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/lancedb_store.py +422 -0
  47. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/milvus_store.py +409 -0
  48. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/qdrant_store.py +368 -0
  49. gatewaysdk/algorithm/gepa/lib/adapters/generic_rag_adapter/vector_stores/weaviate_store.py +418 -0
  50. gatewaysdk/algorithm/gepa/lib/adapters/mcp_adapter/README.md +552 -0
  51. gatewaysdk/algorithm/gepa/lib/adapters/mcp_adapter/__init__.py +37 -0
  52. gatewaysdk/algorithm/gepa/lib/adapters/mcp_adapter/mcp_adapter.py +699 -0
  53. gatewaysdk/algorithm/gepa/lib/adapters/mcp_adapter/mcp_client.py +364 -0
  54. gatewaysdk/algorithm/gepa/lib/adapters/terminal_bench_adapter/README.md +9 -0
  55. gatewaysdk/algorithm/gepa/lib/adapters/terminal_bench_adapter/__init__.py +0 -0
  56. gatewaysdk/algorithm/gepa/lib/adapters/terminal_bench_adapter/terminal_bench_adapter.py +217 -0
  57. gatewaysdk/algorithm/gepa/lib/api.py +382 -0
  58. gatewaysdk/algorithm/gepa/lib/core/__init__.py +0 -0
  59. gatewaysdk/algorithm/gepa/lib/core/adapter.py +180 -0
  60. gatewaysdk/algorithm/gepa/lib/core/data_loader.py +74 -0
  61. gatewaysdk/algorithm/gepa/lib/core/engine.py +379 -0
  62. gatewaysdk/algorithm/gepa/lib/core/result.py +233 -0
  63. gatewaysdk/algorithm/gepa/lib/core/state.py +636 -0
  64. gatewaysdk/algorithm/gepa/lib/examples/__init__.py +0 -0
  65. gatewaysdk/algorithm/gepa/lib/examples/aime.py +24 -0
  66. gatewaysdk/algorithm/gepa/lib/examples/anymaths-bench/eval_default.py +111 -0
  67. gatewaysdk/algorithm/gepa/lib/examples/anymaths-bench/prompt-templates/instruction_prompt.txt +9 -0
  68. gatewaysdk/algorithm/gepa/lib/examples/anymaths-bench/prompt-templates/optimal_prompt.txt +24 -0
  69. gatewaysdk/algorithm/gepa/lib/examples/anymaths-bench/train_anymaths.py +177 -0
  70. gatewaysdk/algorithm/gepa/lib/examples/dspy_full_program_evolution/arc_agi.ipynb +25705 -0
  71. gatewaysdk/algorithm/gepa/lib/examples/dspy_full_program_evolution/example.ipynb +348 -0
  72. gatewaysdk/algorithm/gepa/lib/examples/mcp_adapter/__init__.py +4 -0
  73. gatewaysdk/algorithm/gepa/lib/examples/mcp_adapter/mcp_optimization_example.py +456 -0
  74. gatewaysdk/algorithm/gepa/lib/examples/rag_adapter/RAG_GUIDE.md +613 -0
  75. gatewaysdk/algorithm/gepa/lib/examples/rag_adapter/__init__.py +9 -0
  76. gatewaysdk/algorithm/gepa/lib/examples/rag_adapter/rag_optimization.py +820 -0
  77. gatewaysdk/algorithm/gepa/lib/examples/rag_adapter/requirements-rag.txt +29 -0
  78. gatewaysdk/algorithm/gepa/lib/examples/terminal-bench/prompt-templates/instruction_prompt.txt +16 -0
  79. gatewaysdk/algorithm/gepa/lib/examples/terminal-bench/prompt-templates/terminus.txt +9 -0
  80. gatewaysdk/algorithm/gepa/lib/examples/terminal-bench/train_terminus.py +161 -0
  81. gatewaysdk/algorithm/gepa/lib/gepa_utils.py +117 -0
  82. gatewaysdk/algorithm/gepa/lib/logging/__init__.py +0 -0
  83. gatewaysdk/algorithm/gepa/lib/logging/experiment_tracker.py +187 -0
  84. gatewaysdk/algorithm/gepa/lib/logging/logger.py +75 -0
  85. gatewaysdk/algorithm/gepa/lib/logging/utils.py +103 -0
  86. gatewaysdk/algorithm/gepa/lib/proposer/__init__.py +0 -0
  87. gatewaysdk/algorithm/gepa/lib/proposer/base.py +31 -0
  88. gatewaysdk/algorithm/gepa/lib/proposer/merge.py +357 -0
  89. gatewaysdk/algorithm/gepa/lib/proposer/reflective_mutation/__init__.py +0 -0
  90. gatewaysdk/algorithm/gepa/lib/proposer/reflective_mutation/base.py +49 -0
  91. gatewaysdk/algorithm/gepa/lib/proposer/reflective_mutation/reflective_mutation.py +176 -0
  92. gatewaysdk/algorithm/gepa/lib/py.typed +0 -0
  93. gatewaysdk/algorithm/gepa/lib/strategies/__init__.py +0 -0
  94. gatewaysdk/algorithm/gepa/lib/strategies/batch_sampler.py +77 -0
  95. gatewaysdk/algorithm/gepa/lib/strategies/candidate_selector.py +50 -0
  96. gatewaysdk/algorithm/gepa/lib/strategies/component_selector.py +36 -0
  97. gatewaysdk/algorithm/gepa/lib/strategies/eval_policy.py +64 -0
  98. gatewaysdk/algorithm/gepa/lib/strategies/instruction_proposal.py +126 -0
  99. gatewaysdk/algorithm/gepa/lib/utils/__init__.py +10 -0
  100. gatewaysdk/algorithm/gepa/lib/utils/stop_condition.py +196 -0
  101. gatewaysdk/algorithm/gepa/tracing.py +105 -0
  102. gatewaysdk/algorithm/utils.py +177 -0
  103. gatewaysdk/algorithm/verl/__init__.py +5 -0
  104. gatewaysdk/algorithm/verl/interface.py +202 -0
  105. gatewaysdk/automations.py +111 -0
  106. gatewaysdk/benchmark_hub/README.md +88 -0
  107. gatewaysdk/benchmark_hub/__init__.py +119 -0
  108. gatewaysdk/benchmark_hub/_archive.py +189 -0
  109. gatewaysdk/benchmark_hub/_tar.py +6 -0
  110. gatewaysdk/benchmark_hub/client.py +992 -0
  111. gatewaysdk/benchmark_hub/dispatch_shard.py +34 -0
  112. gatewaysdk/benchmark_hub/eval_config.py +20 -0
  113. gatewaysdk/benchmark_hub/evals.py +351 -0
  114. gatewaysdk/benchmark_hub/harbor_adapter.py +673 -0
  115. gatewaysdk/benchmark_hub/path_utils.py +81 -0
  116. gatewaysdk/benchmark_hub/save_utils.py +101 -0
  117. gatewaysdk/benchmark_hub/verifiers_adapter.py +327 -0
  118. gatewaysdk/benchmark_hub/versioning.py +72 -0
  119. gatewaysdk/build.py +515 -0
  120. gatewaysdk/cli/__init__.py +58 -0
  121. gatewaysdk/cli/agent_runner.py +132 -0
  122. gatewaysdk/cli/http_client.py +115 -0
  123. gatewaysdk/cli/platform.py +4086 -0
  124. gatewaysdk/cli/prometheus.py +115 -0
  125. gatewaysdk/cli/release_gate.py +215 -0
  126. gatewaysdk/cli/store.py +131 -0
  127. gatewaysdk/cli/vllm.py +29 -0
  128. gatewaysdk/client.py +406 -0
  129. gatewaysdk/config.py +348 -0
  130. gatewaysdk/connectors/__init__.py +25 -0
  131. gatewaysdk/connectors/client.py +203 -0
  132. gatewaysdk/connectors/skill.py +25 -0
  133. gatewaysdk/connectors/template.py +106 -0
  134. gatewaysdk/context.py +606 -0
  135. gatewaysdk/emitter/__init__.py +43 -0
  136. gatewaysdk/emitter/annotation.py +370 -0
  137. gatewaysdk/emitter/exception.py +54 -0
  138. gatewaysdk/emitter/message.py +61 -0
  139. gatewaysdk/emitter/object.py +117 -0
  140. gatewaysdk/emitter/reward.py +320 -0
  141. gatewaysdk/env_var.py +156 -0
  142. gatewaysdk/environment/__init__.py +108 -0
  143. gatewaysdk/environment/_bundle.py +281 -0
  144. gatewaysdk/environment/_harbor.py +276 -0
  145. gatewaysdk/environment/_materialize.py +97 -0
  146. gatewaysdk/environment/_tar.py +33 -0
  147. gatewaysdk/environment/_world.py +346 -0
  148. gatewaysdk/environment/core.py +527 -0
  149. gatewaysdk/environment/errors.py +58 -0
  150. gatewaysdk/environment/runtime.py +150 -0
  151. gatewaysdk/environment/schema/__init__.py +35 -0
  152. gatewaysdk/environment/schema/__main__.py +225 -0
  153. gatewaysdk/environment/schema/_slack_fidelity.py +116 -0
  154. gatewaysdk/environment/schema/_slack_scenario.py +183 -0
  155. gatewaysdk/environment/schema/api.py +1628 -0
  156. gatewaysdk/environment/schema/batch.py +755 -0
  157. gatewaysdk/environment/schema/compiler.py +615 -0
  158. gatewaysdk/environment/schema/conform.py +428 -0
  159. gatewaysdk/environment/schema/connector.py +777 -0
  160. gatewaysdk/environment/schema/connectors/apple-business-manager/handlers.py +17 -0
  161. gatewaysdk/environment/schema/connectors/apple-business-manager/parity.json +28 -0
  162. gatewaysdk/environment/schema/connectors/apple-business-manager/provenance.json +233 -0
  163. gatewaysdk/environment/schema/connectors/apple-business-manager/scope.toml +112 -0
  164. gatewaysdk/environment/schema/connectors/apple-business-manager/world.json +1380 -0
  165. gatewaysdk/environment/schema/connectors/base.json +28 -0
  166. gatewaysdk/environment/schema/connectors/custom/handlers.py +18 -0
  167. gatewaysdk/environment/schema/connectors/custom/world.json +123 -0
  168. gatewaysdk/environment/schema/connectors/github/handlers.py +81 -0
  169. gatewaysdk/environment/schema/connectors/github/parity.json +37 -0
  170. gatewaysdk/environment/schema/connectors/github/provenance.json +134 -0
  171. gatewaysdk/environment/schema/connectors/github/scope.toml +158 -0
  172. gatewaysdk/environment/schema/connectors/github/world.json +5869 -0
  173. gatewaysdk/environment/schema/connectors/google-calendar/handlers.py +23 -0
  174. gatewaysdk/environment/schema/connectors/google-calendar/world.json +209 -0
  175. gatewaysdk/environment/schema/connectors/google-drive/handlers.py +18 -0
  176. gatewaysdk/environment/schema/connectors/google-drive/world.json +286 -0
  177. gatewaysdk/environment/schema/connectors/jamf/handlers.py +34 -0
  178. gatewaysdk/environment/schema/connectors/jamf/parity.json +49 -0
  179. gatewaysdk/environment/schema/connectors/jamf/provenance.json +181 -0
  180. gatewaysdk/environment/schema/connectors/jamf/scope.toml +128 -0
  181. gatewaysdk/environment/schema/connectors/jamf/world.json +2218 -0
  182. gatewaysdk/environment/schema/connectors/jira/handlers.py +28 -0
  183. gatewaysdk/environment/schema/connectors/jira/world.json +389 -0
  184. gatewaysdk/environment/schema/connectors/kandji/handlers.py +38 -0
  185. gatewaysdk/environment/schema/connectors/kandji/parity.json +29 -0
  186. gatewaysdk/environment/schema/connectors/kandji/provenance.json +152 -0
  187. gatewaysdk/environment/schema/connectors/kandji/scope.toml +120 -0
  188. gatewaysdk/environment/schema/connectors/kandji/world.json +765 -0
  189. gatewaysdk/environment/schema/connectors/linear/handlers.py +20 -0
  190. gatewaysdk/environment/schema/connectors/linear/world.json +363 -0
  191. gatewaysdk/environment/schema/connectors/microsoft-teams/fidelity.json +45 -0
  192. gatewaysdk/environment/schema/connectors/microsoft-teams/handlers.py +1 -0
  193. gatewaysdk/environment/schema/connectors/microsoft-teams/provenance.json +851 -0
  194. gatewaysdk/environment/schema/connectors/microsoft-teams/scope.md +231 -0
  195. gatewaysdk/environment/schema/connectors/microsoft-teams/teams-types.json +1710 -0
  196. gatewaysdk/environment/schema/connectors/microsoft-teams/world.json +858 -0
  197. gatewaysdk/environment/schema/connectors/netsuite/handlers.py +32 -0
  198. gatewaysdk/environment/schema/connectors/netsuite/parity.json +50 -0
  199. gatewaysdk/environment/schema/connectors/netsuite/provenance.json +137 -0
  200. gatewaysdk/environment/schema/connectors/netsuite/scope.toml +78 -0
  201. gatewaysdk/environment/schema/connectors/netsuite/world.json +16243 -0
  202. gatewaysdk/environment/schema/connectors/salesforce/handlers.py +806 -0
  203. gatewaysdk/environment/schema/connectors/salesforce/parity.json +46 -0
  204. gatewaysdk/environment/schema/connectors/salesforce/provenance.json +143 -0
  205. gatewaysdk/environment/schema/connectors/salesforce/scope.toml +174 -0
  206. gatewaysdk/environment/schema/connectors/salesforce/world.json +4695 -0
  207. gatewaysdk/environment/schema/connectors/slack/MODEL.md +236 -0
  208. gatewaysdk/environment/schema/connectors/slack/capabilities.json +1039 -0
  209. gatewaysdk/environment/schema/connectors/slack/handlers.py +762 -0
  210. gatewaysdk/environment/schema/connectors/slack/parity.json +65 -0
  211. gatewaysdk/environment/schema/connectors/slack/provenance.json +294 -0
  212. gatewaysdk/environment/schema/connectors/slack/scope.toml +44 -0
  213. gatewaysdk/environment/schema/connectors/slack/world.json +4993 -0
  214. gatewaysdk/environment/schema/connectors/workday/handlers.py +75 -0
  215. gatewaysdk/environment/schema/connectors/workday/parity.json +36 -0
  216. gatewaysdk/environment/schema/connectors/workday/provenance.json +179 -0
  217. gatewaysdk/environment/schema/connectors/workday/scope.toml +180 -0
  218. gatewaysdk/environment/schema/connectors/workday/world.json +806 -0
  219. gatewaysdk/environment/schema/data.py +593 -0
  220. gatewaysdk/environment/schema/extract.py +263 -0
  221. gatewaysdk/environment/schema/host.py +2437 -0
  222. gatewaysdk/environment/schema/host_surfaces.py +275 -0
  223. gatewaysdk/environment/schema/platform.py +1272 -0
  224. gatewaysdk/environment/schema/scaffold.py +250 -0
  225. gatewaysdk/environment/schema/skill.py +118 -0
  226. gatewaysdk/environment/schema/skills/agents/connector-template-author.md +202 -0
  227. gatewaysdk/environment/schema/skills/connector-schema-authoring/CONNECTORS.md +331 -0
  228. gatewaysdk/environment/schema/skills/connector-schema-authoring/CONVENTIONS.md +100 -0
  229. gatewaysdk/environment/schema/skills/connector-schema-authoring/SKILL.md +313 -0
  230. gatewaysdk/environment/schema/skills/world-data-ingestion/ROWS.md +223 -0
  231. gatewaysdk/environment/schema/skills/world-data-ingestion/SKILL.md +293 -0
  232. gatewaysdk/environment/schema/skills/worlds-getting-started/SKILL.md +390 -0
  233. gatewaysdk/environment/schema/slack.py +757 -0
  234. gatewaysdk/environment/schema/snapshot.py +479 -0
  235. gatewaysdk/environment/schema/store.py +904 -0
  236. gatewaysdk/environment/schema/tasks.py +525 -0
  237. gatewaysdk/environment/schema/tools_world.py +322 -0
  238. gatewaysdk/environment/schema/validation.py +577 -0
  239. gatewaysdk/environment/schema/worker.py +78 -0
  240. gatewaysdk/environment/schema/workers.py +500 -0
  241. gatewaysdk/environment/schema/world_tests.py +336 -0
  242. gatewaysdk/environments/__init__.py +24 -0
  243. gatewaysdk/environments/client.py +486 -0
  244. gatewaysdk/environments/types.py +318 -0
  245. gatewaysdk/execution/__init__.py +15 -0
  246. gatewaysdk/execution/base.py +64 -0
  247. gatewaysdk/execution/client_server.py +443 -0
  248. gatewaysdk/execution/events.py +69 -0
  249. gatewaysdk/execution/inter_process.py +16 -0
  250. gatewaysdk/execution/shared_memory.py +282 -0
  251. gatewaysdk/experiments/__init__.py +90 -0
  252. gatewaysdk/experiments/assignment.py +177 -0
  253. gatewaysdk/experiments/client.py +877 -0
  254. gatewaysdk/experiments/exposure.py +222 -0
  255. gatewaysdk/experiments/types.py +81 -0
  256. gatewaysdk/importers/__init__.py +49 -0
  257. gatewaysdk/importers/_normalize.py +91 -0
  258. gatewaysdk/importers/builder.py +173 -0
  259. gatewaysdk/importers/client.py +95 -0
  260. gatewaysdk/importers/langsmith.py +196 -0
  261. gatewaysdk/importers/recipes.py +249 -0
  262. gatewaysdk/instrumentation/__init__.py +300 -0
  263. gatewaysdk/instrumentation/agentops.py +314 -0
  264. gatewaysdk/instrumentation/agentops_langchain.py +45 -0
  265. gatewaysdk/instrumentation/base.py +119 -0
  266. gatewaysdk/instrumentation/litellm.py +83 -0
  267. gatewaysdk/instrumentation/registry.py +273 -0
  268. gatewaysdk/instrumentation/vllm.py +81 -0
  269. gatewaysdk/instrumentation/weave.py +500 -0
  270. gatewaysdk/integrations/__init__.py +15 -0
  271. gatewaysdk/integrations/gateway/__init__.py +11 -0
  272. gatewaysdk/integrations/gateway/client.py +171 -0
  273. gatewaysdk/integrations/tool_access.py +549 -0
  274. gatewaysdk/litagent/__init__.py +11 -0
  275. gatewaysdk/litagent/decorator.py +536 -0
  276. gatewaysdk/litagent/litagent.py +252 -0
  277. gatewaysdk/llm_proxy.py +1742 -0
  278. gatewaysdk/logging.py +370 -0
  279. gatewaysdk/memory.py +278 -0
  280. gatewaysdk/personas.py +186 -0
  281. gatewaysdk/platform/__init__.py +17 -0
  282. gatewaysdk/platform/builder.py +221 -0
  283. gatewaysdk/platform/compatibility.py +67 -0
  284. gatewaysdk/platform/manifest.py +185 -0
  285. gatewaysdk/platform/orchestrator.py +901 -0
  286. gatewaysdk/platform/registry.py +122 -0
  287. gatewaysdk/platform/worker.py +864 -0
  288. gatewaysdk/replay/__init__.py +1032 -0
  289. gatewaysdk/replay/pytest.py +56 -0
  290. gatewaysdk/reward.py +7 -0
  291. gatewaysdk/run.py +1781 -0
  292. gatewaysdk/runner/__init__.py +11 -0
  293. gatewaysdk/runner/agent.py +878 -0
  294. gatewaysdk/runner/base.py +182 -0
  295. gatewaysdk/runner/legacy.py +309 -0
  296. gatewaysdk/security.py +700 -0
  297. gatewaysdk/semconv.py +170 -0
  298. gatewaysdk/server.py +399 -0
  299. gatewaysdk/sessions.py +282 -0
  300. gatewaysdk/store/__init__.py +45 -0
  301. gatewaysdk/store/base.py +908 -0
  302. gatewaysdk/store/client_server.py +2093 -0
  303. gatewaysdk/store/collection/__init__.py +30 -0
  304. gatewaysdk/store/collection/base.py +587 -0
  305. gatewaysdk/store/collection/memory.py +970 -0
  306. gatewaysdk/store/collection/mongo.py +1412 -0
  307. gatewaysdk/store/collection_based.py +1823 -0
  308. gatewaysdk/store/gateway.py +983 -0
  309. gatewaysdk/store/gateway_listener.py +465 -0
  310. gatewaysdk/store/listener.py +58 -0
  311. gatewaysdk/store/memory.py +396 -0
  312. gatewaysdk/store/mongo.py +165 -0
  313. gatewaysdk/store/redis_stream.py +517 -0
  314. gatewaysdk/store/sqlite.py +3 -0
  315. gatewaysdk/store/threading.py +370 -0
  316. gatewaysdk/store/utils.py +142 -0
  317. gatewaysdk/tracer/__init__.py +14 -0
  318. gatewaysdk/tracer/base.py +286 -0
  319. gatewaysdk/tracer/dummy.py +106 -0
  320. gatewaysdk/tracer/otel.py +559 -0
  321. gatewaysdk/tracing/__init__.py +110 -0
  322. gatewaysdk/tracing/api.py +808 -0
  323. gatewaysdk/tracing/attributes.py +9 -0
  324. gatewaysdk/tracing/context.py +272 -0
  325. gatewaysdk/tracing/exporters/__init__.py +10 -0
  326. gatewaysdk/tracing/exporters/gateway.py +228 -0
  327. gatewaysdk/tracing/identity.py +288 -0
  328. gatewaysdk/tracing/init.py +620 -0
  329. gatewaysdk/tracing/instrumentors/__init__.py +15 -0
  330. gatewaysdk/tracing/instrumentors/claude_agent_sdk.py +766 -0
  331. gatewaysdk/tracing/instrumentors/instrumentation_principles.md +294 -0
  332. gatewaysdk/tracing/instrumentors/registry.py +352 -0
  333. gatewaysdk/tracing/mapping.py +729 -0
  334. gatewaysdk/tracing/processors.py +393 -0
  335. gatewaysdk/tracing/push.py +617 -0
  336. gatewaysdk/tracing/push_models.py +247 -0
  337. gatewaysdk/tracing/semconv.py +294 -0
  338. gatewaysdk/tracing/span_builder.py +356 -0
  339. gatewaysdk/trainer/__init__.py +6 -0
  340. gatewaysdk/trainer/init_utils.py +263 -0
  341. gatewaysdk/trainer/legacy.py +359 -0
  342. gatewaysdk/trainer/registry.py +12 -0
  343. gatewaysdk/trainer/trainer.py +638 -0
  344. gatewaysdk/types/__init__.py +63 -0
  345. gatewaysdk/types/core.py +556 -0
  346. gatewaysdk/types/resources.py +204 -0
  347. gatewaysdk/types/tracer.py +515 -0
  348. gatewaysdk/types/tracing.py +162 -0
  349. gatewaysdk/users.py +251 -0
  350. gatewaysdk/utils/__init__.py +1 -0
  351. gatewaysdk/utils/id.py +18 -0
  352. gatewaysdk/utils/metrics.py +1025 -0
  353. gatewaysdk/utils/otel.py +550 -0
  354. gatewaysdk/utils/otlp.py +556 -0
  355. gatewaysdk/utils/redact.py +22 -0
  356. gatewaysdk/utils/server_launcher.py +1045 -0
  357. gatewaysdk/utils/system_snapshot.py +90 -0
  358. gatewaysdk/verl/__init__.py +8 -0
  359. gatewaysdk/verl/__main__.py +6 -0
  360. gatewaysdk/verl/async_server.py +46 -0
  361. gatewaysdk/verl/config.yaml +27 -0
  362. gatewaysdk/verl/daemon.py +1154 -0
  363. gatewaysdk/verl/dataset.py +44 -0
  364. gatewaysdk/verl/entrypoint.py +248 -0
  365. gatewaysdk/verl/trainer.py +549 -0
  366. gatewaysdk/world_browser.py +748 -0
  367. gatewaysdk/world_data.py +453 -0
  368. gatewaysdk/world_sessions.py +978 -0
  369. gatewaysdk/world_tasks.py +285 -0
  370. gatewaysdk/world_tools.py +115 -0
  371. gatewaysdk/worlds.py +639 -0
  372. gatewaysdk-0.3.2.dist-info/METADATA +236 -0
  373. gatewaysdk-0.3.2.dist-info/RECORD +376 -0
  374. gatewaysdk-0.3.2.dist-info/WHEEL +4 -0
  375. gatewaysdk-0.3.2.dist-info/entry_points.txt +5 -0
  376. gatewaysdk-0.3.2.dist-info/licenses/LICENSE +19 -0
@@ -0,0 +1,1710 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:gateway:connector:microsoft-teams:types:1",
4
+ "$defs": {
5
+ "RelationshipObservation": {
6
+ "type": "object",
7
+ "properties": {
8
+ "status": {"type": "string", "enum": ["notRequested", "partial", "complete", "null"]},
9
+ "nextLink": {"type": ["string", "null"]},
10
+ "count": {"type": "integer", "minimum": 0}
11
+ },
12
+ "required": ["status"],
13
+ "additionalProperties": false,
14
+ "description": "Completeness of the authorized requested view only; absent metadata means unknown. No automatic pruning or count verification."
15
+ },
16
+ "BodyType": {"type": "string", "enum": ["text", "html"]},
17
+ "ChannelMembershipType": {"type": "string", "enum": ["standard", "private", "unknownFutureValue", "shared"]},
18
+ "ChannelLayoutType": {"type": "string", "enum": ["post", "chat", "unknownFutureValue"]},
19
+ "MigrationMode": {"type": "string", "enum": ["inProgress", "completed", "unknownFutureValue"]},
20
+ "ChatType": {"type": "string", "enum": ["oneOnOne", "group", "meeting", "unknownFutureValue"]},
21
+ "MessageType": {
22
+ "type": "string",
23
+ "enum": ["message", "chatEvent", "typing", "unknownFutureValue", "systemEventMessage"]
24
+ },
25
+ "MessageImportance": {"type": "string", "enum": ["normal", "high", "urgent", "unknownFutureValue"]},
26
+ "UserIdentityType": {
27
+ "type": "string",
28
+ "enum": [
29
+ "aadUser",
30
+ "onPremiseAadUser",
31
+ "anonymousGuest",
32
+ "federatedUser",
33
+ "personalMicrosoftAccountUser",
34
+ "skypeUser",
35
+ "phoneUser",
36
+ "unknownFutureValue",
37
+ "emailUser"
38
+ ]
39
+ },
40
+ "ApplicationIdentityType": {
41
+ "type": "string",
42
+ "enum": ["aadApplication", "bot", "tenantBot", "office365Connector", "outgoingWebhook", "unknownFutureValue"]
43
+ },
44
+ "ConversationIdentityType": {"type": "string", "enum": ["team", "channel", "chat", "unknownFutureValue"]},
45
+ "TeamVisibilityType": {"type": "string", "enum": ["private", "public", "hiddenMembership", "unknownFutureValue"]},
46
+ "TeamSpecialization": {
47
+ "type": "string",
48
+ "enum": [
49
+ "none",
50
+ "educationStandard",
51
+ "educationClass",
52
+ "educationProfessionalLearningCommunity",
53
+ "educationStaff",
54
+ "healthcareStandard",
55
+ "healthcareCareCoordination",
56
+ "unknownFutureValue"
57
+ ]
58
+ },
59
+ "TagType": {"type": "string", "enum": ["standard", "unknownFutureValue", "scheduled"]},
60
+ "Identity": {
61
+ "type": "object",
62
+ "properties": {
63
+ "@odata.type": {"type": "string", "enum": ["#microsoft.graph.identity", "microsoft.graph.identity"]},
64
+ "id": {"type": ["string", "null"]},
65
+ "displayName": {"type": ["string", "null"]},
66
+ "tenantId": {"type": ["string", "null"]}
67
+ },
68
+ "required": [],
69
+ "additionalProperties": false
70
+ },
71
+ "UserIdentity": {
72
+ "type": "object",
73
+ "properties": {
74
+ "@odata.type": {
75
+ "type": "string",
76
+ "enum": [
77
+ "#microsoft.graph.identity",
78
+ "microsoft.graph.identity",
79
+ "#microsoft.graph.teamworkUserIdentity",
80
+ "microsoft.graph.teamworkUserIdentity"
81
+ ]
82
+ },
83
+ "id": {"type": ["string", "null"]},
84
+ "displayName": {"type": ["string", "null"]},
85
+ "tenantId": {"type": ["string", "null"]},
86
+ "userIdentityType": {
87
+ "anyOf": [
88
+ {"$ref": "#/$defs/UserIdentityType"},
89
+ {"type": "null"}
90
+ ]
91
+ }
92
+ },
93
+ "required": [],
94
+ "additionalProperties": false
95
+ },
96
+ "ApplicationIdentity": {
97
+ "type": "object",
98
+ "properties": {
99
+ "@odata.type": {
100
+ "type": "string",
101
+ "enum": [
102
+ "#microsoft.graph.identity",
103
+ "microsoft.graph.identity",
104
+ "#microsoft.graph.teamworkApplicationIdentity",
105
+ "microsoft.graph.teamworkApplicationIdentity"
106
+ ]
107
+ },
108
+ "id": {"type": ["string", "null"]},
109
+ "displayName": {"type": ["string", "null"]},
110
+ "applicationIdentityType": {
111
+ "anyOf": [
112
+ {"$ref": "#/$defs/ApplicationIdentityType"},
113
+ {"type": "null"}
114
+ ]
115
+ },
116
+ "tenantId": {"type": ["string", "null"]}
117
+ },
118
+ "required": [],
119
+ "additionalProperties": false
120
+ },
121
+ "ConversationIdentity": {
122
+ "type": "object",
123
+ "properties": {
124
+ "@odata.type": {
125
+ "type": "string",
126
+ "enum": [
127
+ "#microsoft.graph.identity",
128
+ "microsoft.graph.identity",
129
+ "#microsoft.graph.teamworkConversationIdentity",
130
+ "microsoft.graph.teamworkConversationIdentity"
131
+ ]
132
+ },
133
+ "id": {"type": ["string", "null"]},
134
+ "displayName": {"type": ["string", "null"]},
135
+ "conversationIdentityType": {
136
+ "anyOf": [
137
+ {"$ref": "#/$defs/ConversationIdentityType"},
138
+ {"type": "null"}
139
+ ]
140
+ },
141
+ "tenantId": {"type": ["string", "null"]}
142
+ },
143
+ "required": [],
144
+ "additionalProperties": false
145
+ },
146
+ "TagIdentity": {
147
+ "type": "object",
148
+ "properties": {
149
+ "@odata.type": {
150
+ "type": "string",
151
+ "enum": [
152
+ "#microsoft.graph.identity",
153
+ "microsoft.graph.identity",
154
+ "#microsoft.graph.teamworkTagIdentity",
155
+ "microsoft.graph.teamworkTagIdentity"
156
+ ]
157
+ },
158
+ "id": {"type": ["string", "null"]},
159
+ "displayName": {"type": ["string", "null"]},
160
+ "tenantId": {"type": ["string", "null"]}
161
+ },
162
+ "required": [],
163
+ "additionalProperties": false
164
+ },
165
+ "IdentitySet": {
166
+ "type": "object",
167
+ "properties": {
168
+ "@odata.type": {"type": "string", "enum": ["#microsoft.graph.identitySet", "microsoft.graph.identitySet"]},
169
+ "application": {
170
+ "anyOf": [
171
+ {"$ref": "#/$defs/ApplicationIdentity"},
172
+ {"type": "null"}
173
+ ]
174
+ },
175
+ "device": {
176
+ "anyOf": [
177
+ {"$ref": "#/$defs/Identity"},
178
+ {"type": "null"}
179
+ ]
180
+ },
181
+ "user": {
182
+ "anyOf": [
183
+ {"$ref": "#/$defs/UserIdentity"},
184
+ {"type": "null"}
185
+ ]
186
+ },
187
+ "applicationInstance": {
188
+ "anyOf": [
189
+ {"$ref": "#/$defs/Identity"},
190
+ {"type": "null"}
191
+ ]
192
+ },
193
+ "conversation": {
194
+ "anyOf": [
195
+ {"$ref": "#/$defs/ConversationIdentity"},
196
+ {"type": "null"}
197
+ ]
198
+ },
199
+ "encrypted": {
200
+ "anyOf": [
201
+ {"$ref": "#/$defs/Identity"},
202
+ {"type": "null"}
203
+ ]
204
+ },
205
+ "onPremises": {
206
+ "anyOf": [
207
+ {"$ref": "#/$defs/Identity"},
208
+ {"type": "null"}
209
+ ]
210
+ },
211
+ "guest": {
212
+ "anyOf": [
213
+ {"$ref": "#/$defs/Identity"},
214
+ {"type": "null"}
215
+ ]
216
+ },
217
+ "phone": {
218
+ "anyOf": [
219
+ {"$ref": "#/$defs/Identity"},
220
+ {"type": "null"}
221
+ ]
222
+ }
223
+ },
224
+ "required": [],
225
+ "additionalProperties": false
226
+ },
227
+ "SenderIdentitySet": {
228
+ "type": "object",
229
+ "properties": {
230
+ "@odata.type": {
231
+ "type": "string",
232
+ "enum": [
233
+ "#microsoft.graph.identitySet",
234
+ "microsoft.graph.identitySet",
235
+ "#microsoft.graph.chatMessageFromIdentitySet",
236
+ "microsoft.graph.chatMessageFromIdentitySet"
237
+ ]
238
+ },
239
+ "application": {
240
+ "anyOf": [
241
+ {"$ref": "#/$defs/ApplicationIdentity"},
242
+ {"type": "null"}
243
+ ]
244
+ },
245
+ "device": {
246
+ "anyOf": [
247
+ {"$ref": "#/$defs/Identity"},
248
+ {"type": "null"}
249
+ ]
250
+ },
251
+ "user": {
252
+ "anyOf": [
253
+ {"$ref": "#/$defs/UserIdentity"},
254
+ {"type": "null"}
255
+ ]
256
+ },
257
+ "applicationInstance": {
258
+ "anyOf": [
259
+ {"$ref": "#/$defs/Identity"},
260
+ {"type": "null"}
261
+ ]
262
+ },
263
+ "conversation": {
264
+ "anyOf": [
265
+ {"$ref": "#/$defs/ConversationIdentity"},
266
+ {"type": "null"}
267
+ ]
268
+ },
269
+ "encrypted": {
270
+ "anyOf": [
271
+ {"$ref": "#/$defs/Identity"},
272
+ {"type": "null"}
273
+ ]
274
+ },
275
+ "onPremises": {
276
+ "anyOf": [
277
+ {"$ref": "#/$defs/Identity"},
278
+ {"type": "null"}
279
+ ]
280
+ },
281
+ "guest": {
282
+ "anyOf": [
283
+ {"$ref": "#/$defs/Identity"},
284
+ {"type": "null"}
285
+ ]
286
+ },
287
+ "phone": {
288
+ "anyOf": [
289
+ {"$ref": "#/$defs/Identity"},
290
+ {"type": "null"}
291
+ ]
292
+ }
293
+ },
294
+ "required": [],
295
+ "additionalProperties": false
296
+ },
297
+ "ReactionIdentitySet": {
298
+ "type": "object",
299
+ "properties": {
300
+ "@odata.type": {
301
+ "type": "string",
302
+ "enum": [
303
+ "#microsoft.graph.identitySet",
304
+ "microsoft.graph.identitySet",
305
+ "#microsoft.graph.chatMessageReactionIdentitySet",
306
+ "microsoft.graph.chatMessageReactionIdentitySet"
307
+ ]
308
+ },
309
+ "application": {
310
+ "anyOf": [
311
+ {"$ref": "#/$defs/ApplicationIdentity"},
312
+ {"type": "null"}
313
+ ]
314
+ },
315
+ "device": {
316
+ "anyOf": [
317
+ {"$ref": "#/$defs/Identity"},
318
+ {"type": "null"}
319
+ ]
320
+ },
321
+ "user": {
322
+ "anyOf": [
323
+ {"$ref": "#/$defs/UserIdentity"},
324
+ {"type": "null"}
325
+ ]
326
+ },
327
+ "applicationInstance": {
328
+ "anyOf": [
329
+ {"$ref": "#/$defs/Identity"},
330
+ {"type": "null"}
331
+ ]
332
+ },
333
+ "conversation": {
334
+ "anyOf": [
335
+ {"$ref": "#/$defs/ConversationIdentity"},
336
+ {"type": "null"}
337
+ ]
338
+ },
339
+ "encrypted": {
340
+ "anyOf": [
341
+ {"$ref": "#/$defs/Identity"},
342
+ {"type": "null"}
343
+ ]
344
+ },
345
+ "onPremises": {
346
+ "anyOf": [
347
+ {"$ref": "#/$defs/Identity"},
348
+ {"type": "null"}
349
+ ]
350
+ },
351
+ "guest": {
352
+ "anyOf": [
353
+ {"$ref": "#/$defs/Identity"},
354
+ {"type": "null"}
355
+ ]
356
+ },
357
+ "phone": {
358
+ "anyOf": [
359
+ {"$ref": "#/$defs/Identity"},
360
+ {"type": "null"}
361
+ ]
362
+ }
363
+ },
364
+ "required": [],
365
+ "additionalProperties": false
366
+ },
367
+ "MentionIdentitySet": {
368
+ "type": "object",
369
+ "properties": {
370
+ "@odata.type": {
371
+ "type": "string",
372
+ "enum": [
373
+ "#microsoft.graph.identitySet",
374
+ "microsoft.graph.identitySet",
375
+ "#microsoft.graph.chatMessageMentionedIdentitySet",
376
+ "microsoft.graph.chatMessageMentionedIdentitySet"
377
+ ]
378
+ },
379
+ "application": {
380
+ "anyOf": [
381
+ {"$ref": "#/$defs/ApplicationIdentity"},
382
+ {"type": "null"}
383
+ ]
384
+ },
385
+ "device": {
386
+ "anyOf": [
387
+ {"$ref": "#/$defs/Identity"},
388
+ {"type": "null"}
389
+ ]
390
+ },
391
+ "user": {
392
+ "anyOf": [
393
+ {"$ref": "#/$defs/UserIdentity"},
394
+ {"type": "null"}
395
+ ]
396
+ },
397
+ "applicationInstance": {
398
+ "anyOf": [
399
+ {"$ref": "#/$defs/Identity"},
400
+ {"type": "null"}
401
+ ]
402
+ },
403
+ "conversation": {
404
+ "anyOf": [
405
+ {"$ref": "#/$defs/ConversationIdentity"},
406
+ {"type": "null"}
407
+ ]
408
+ },
409
+ "encrypted": {
410
+ "anyOf": [
411
+ {"$ref": "#/$defs/Identity"},
412
+ {"type": "null"}
413
+ ]
414
+ },
415
+ "onPremises": {
416
+ "anyOf": [
417
+ {"$ref": "#/$defs/Identity"},
418
+ {"type": "null"}
419
+ ]
420
+ },
421
+ "guest": {
422
+ "anyOf": [
423
+ {"$ref": "#/$defs/Identity"},
424
+ {"type": "null"}
425
+ ]
426
+ },
427
+ "phone": {
428
+ "anyOf": [
429
+ {"$ref": "#/$defs/Identity"},
430
+ {"type": "null"}
431
+ ]
432
+ },
433
+ "tag": {
434
+ "anyOf": [
435
+ {"$ref": "#/$defs/TagIdentity"},
436
+ {"type": "null"}
437
+ ]
438
+ }
439
+ },
440
+ "required": [],
441
+ "additionalProperties": false
442
+ },
443
+ "ItemBody": {
444
+ "type": "object",
445
+ "properties": {
446
+ "@odata.type": {"type": "string", "enum": ["#microsoft.graph.itemBody", "microsoft.graph.itemBody"]},
447
+ "contentType": {
448
+ "anyOf": [
449
+ {"$ref": "#/$defs/BodyType"},
450
+ {"type": "null"}
451
+ ]
452
+ },
453
+ "content": {"type": ["string", "null"]}
454
+ },
455
+ "required": [],
456
+ "additionalProperties": false
457
+ },
458
+ "Mention": {
459
+ "type": "object",
460
+ "properties": {
461
+ "@odata.type": {
462
+ "type": "string",
463
+ "enum": ["#microsoft.graph.chatMessageMention", "microsoft.graph.chatMessageMention"]
464
+ },
465
+ "id": {"type": ["integer", "null"], "minimum": 0, "maximum": 2147483647},
466
+ "mentionText": {"type": ["string", "null"]},
467
+ "mentioned": {
468
+ "anyOf": [
469
+ {"$ref": "#/$defs/MentionIdentitySet"},
470
+ {"type": "null"}
471
+ ]
472
+ }
473
+ },
474
+ "required": [],
475
+ "additionalProperties": false
476
+ },
477
+ "Reaction": {
478
+ "type": "object",
479
+ "properties": {
480
+ "@odata.type": {
481
+ "type": "string",
482
+ "enum": ["#microsoft.graph.chatMessageReaction", "microsoft.graph.chatMessageReaction"]
483
+ },
484
+ "createdDateTime": {"type": "string", "format": "date-time"},
485
+ "displayName": {"type": ["string", "null"]},
486
+ "reactionContentUrl": {"type": ["string", "null"]},
487
+ "reactionType": {"type": "string"},
488
+ "user": {"$ref": "#/$defs/ReactionIdentitySet"}
489
+ },
490
+ "required": [],
491
+ "additionalProperties": false
492
+ },
493
+ "Attachment": {
494
+ "allOf": [
495
+ {
496
+ "type": "object",
497
+ "properties": {
498
+ "@odata.type": {
499
+ "type": "string",
500
+ "enum": ["#microsoft.graph.chatMessageAttachment", "microsoft.graph.chatMessageAttachment"]
501
+ },
502
+ "id": {"type": ["string", "null"]},
503
+ "contentType": {"type": ["string", "null"]},
504
+ "contentUrl": {"type": ["string", "null"]},
505
+ "content": {"type": ["string", "null"]},
506
+ "name": {"type": ["string", "null"]},
507
+ "teamsAppId": {"type": ["string", "null"]},
508
+ "thumbnailUrl": {"type": ["string", "null"]}
509
+ },
510
+ "required": [],
511
+ "additionalProperties": false
512
+ },
513
+ {
514
+ "anyOf": [
515
+ {
516
+ "type": "object",
517
+ "properties": {
518
+ "content": {"type": "null"}
519
+ }
520
+ },
521
+ {
522
+ "type": "object",
523
+ "properties": {
524
+ "contentUrl": {"type": "null"}
525
+ }
526
+ }
527
+ ]
528
+ }
529
+ ],
530
+ "description": "Graph content is a string, including serialized rich cards. content and contentUrl cannot both be non-null."
531
+ },
532
+ "MessageHistoryItem": {
533
+ "type": "object",
534
+ "properties": {
535
+ "@odata.type": {
536
+ "type": "string",
537
+ "enum": ["#microsoft.graph.chatMessageHistoryItem", "microsoft.graph.chatMessageHistoryItem"]
538
+ },
539
+ "actions": {
540
+ "type": "array",
541
+ "items": {
542
+ "type": "string",
543
+ "enum": ["reactionAdded", "reactionRemoved", "actionUndefined", "unknownFutureValue"]
544
+ },
545
+ "uniqueItems": true,
546
+ "minItems": 1
547
+ },
548
+ "modifiedDateTime": {"type": "string", "format": "date-time"},
549
+ "reaction": {
550
+ "anyOf": [
551
+ {"$ref": "#/$defs/Reaction"},
552
+ {"type": "null"}
553
+ ]
554
+ }
555
+ },
556
+ "required": [],
557
+ "additionalProperties": false
558
+ },
559
+ "PolicyTip": {
560
+ "type": "object",
561
+ "properties": {
562
+ "@odata.type": {
563
+ "type": "string",
564
+ "enum": [
565
+ "#microsoft.graph.chatMessagePolicyViolationPolicyTip",
566
+ "microsoft.graph.chatMessagePolicyViolationPolicyTip"
567
+ ]
568
+ },
569
+ "complianceUrl": {"type": ["string", "null"]},
570
+ "generalText": {"type": ["string", "null"]},
571
+ "matchedConditionDescriptions": {
572
+ "type": "array",
573
+ "items": {"type": ["string", "null"]}
574
+ }
575
+ },
576
+ "required": [],
577
+ "additionalProperties": false
578
+ },
579
+ "PolicyViolation": {
580
+ "type": "object",
581
+ "properties": {
582
+ "@odata.type": {
583
+ "type": "string",
584
+ "enum": ["#microsoft.graph.chatMessagePolicyViolation", "microsoft.graph.chatMessagePolicyViolation"]
585
+ },
586
+ "dlpAction": {
587
+ "anyOf": [
588
+ {
589
+ "type": "array",
590
+ "items": {"type": "string", "enum": ["none", "notifySender", "blockAccess", "blockAccessExternal"]},
591
+ "uniqueItems": true,
592
+ "minItems": 1
593
+ },
594
+ {"type": "null"}
595
+ ]
596
+ },
597
+ "justificationText": {"type": ["string", "null"]},
598
+ "policyTip": {
599
+ "anyOf": [
600
+ {"$ref": "#/$defs/PolicyTip"},
601
+ {"type": "null"}
602
+ ]
603
+ },
604
+ "userAction": {
605
+ "anyOf": [
606
+ {
607
+ "type": "array",
608
+ "items": {"type": "string", "enum": ["none", "override", "reportFalsePositive"]},
609
+ "uniqueItems": true,
610
+ "minItems": 1
611
+ },
612
+ {"type": "null"}
613
+ ]
614
+ },
615
+ "verdictDetails": {
616
+ "anyOf": [
617
+ {
618
+ "type": "array",
619
+ "items": {
620
+ "type": "string",
621
+ "enum": [
622
+ "none",
623
+ "allowFalsePositiveOverride",
624
+ "allowOverrideWithoutJustification",
625
+ "allowOverrideWithJustification"
626
+ ]
627
+ },
628
+ "uniqueItems": true,
629
+ "minItems": 1
630
+ },
631
+ {"type": "null"}
632
+ ]
633
+ }
634
+ },
635
+ "required": [],
636
+ "additionalProperties": false
637
+ },
638
+ "ChannelIdentity": {
639
+ "type": "object",
640
+ "properties": {
641
+ "@odata.type": {
642
+ "type": "string",
643
+ "enum": ["#microsoft.graph.channelIdentity", "microsoft.graph.channelIdentity"]
644
+ },
645
+ "teamId": {"type": ["string", "null"]},
646
+ "channelId": {"type": ["string", "null"]}
647
+ },
648
+ "required": [],
649
+ "additionalProperties": false
650
+ },
651
+ "MeetingInfo": {
652
+ "type": "object",
653
+ "properties": {
654
+ "@odata.type": {
655
+ "type": "string",
656
+ "enum": ["#microsoft.graph.teamworkOnlineMeetingInfo", "microsoft.graph.teamworkOnlineMeetingInfo"]
657
+ },
658
+ "calendarEventId": {"type": ["string", "null"]},
659
+ "joinWebUrl": {"type": ["string", "null"]},
660
+ "organizer": {
661
+ "anyOf": [
662
+ {"$ref": "#/$defs/UserIdentity"},
663
+ {"type": "null"}
664
+ ]
665
+ }
666
+ },
667
+ "required": [],
668
+ "additionalProperties": false
669
+ },
670
+ "ChatViewpoint": {
671
+ "type": "object",
672
+ "properties": {
673
+ "@odata.type": {"type": "string", "enum": ["#microsoft.graph.chatViewpoint", "microsoft.graph.chatViewpoint"]},
674
+ "isHidden": {"type": ["boolean", "null"]},
675
+ "lastMessageReadDateTime": {"type": ["string", "null"], "format": "date-time"}
676
+ },
677
+ "required": [],
678
+ "additionalProperties": false
679
+ },
680
+ "TeamClassSettings": {
681
+ "type": "object",
682
+ "properties": {
683
+ "@odata.type": {
684
+ "type": "string",
685
+ "enum": ["#microsoft.graph.teamClassSettings", "microsoft.graph.teamClassSettings"]
686
+ },
687
+ "notifyGuardiansAboutAssignments": {"type": ["boolean", "null"]}
688
+ },
689
+ "required": [],
690
+ "additionalProperties": false
691
+ },
692
+ "TeamFunSettings": {
693
+ "type": "object",
694
+ "properties": {
695
+ "@odata.type": {
696
+ "type": "string",
697
+ "enum": ["#microsoft.graph.teamFunSettings", "microsoft.graph.teamFunSettings"]
698
+ },
699
+ "allowCustomMemes": {"type": ["boolean", "null"]},
700
+ "allowGiphy": {"type": ["boolean", "null"]},
701
+ "allowStickersAndMemes": {"type": ["boolean", "null"]},
702
+ "giphyContentRating": {"type": ["string", "null"], "enum": ["strict", "moderate", "unknownFutureValue", null]}
703
+ },
704
+ "required": [],
705
+ "additionalProperties": false
706
+ },
707
+ "TeamGuestSettings": {
708
+ "type": "object",
709
+ "properties": {
710
+ "@odata.type": {
711
+ "type": "string",
712
+ "enum": ["#microsoft.graph.teamGuestSettings", "microsoft.graph.teamGuestSettings"]
713
+ },
714
+ "allowCreateUpdateChannels": {"type": ["boolean", "null"]},
715
+ "allowDeleteChannels": {"type": ["boolean", "null"]}
716
+ },
717
+ "required": [],
718
+ "additionalProperties": false
719
+ },
720
+ "TeamMemberSettings": {
721
+ "type": "object",
722
+ "properties": {
723
+ "@odata.type": {
724
+ "type": "string",
725
+ "enum": ["#microsoft.graph.teamMemberSettings", "microsoft.graph.teamMemberSettings"]
726
+ },
727
+ "allowAddRemoveApps": {"type": ["boolean", "null"]},
728
+ "allowCreatePrivateChannels": {"type": ["boolean", "null"]},
729
+ "allowCreateUpdateChannels": {"type": ["boolean", "null"]},
730
+ "allowCreateUpdateRemoveConnectors": {"type": ["boolean", "null"]},
731
+ "allowCreateUpdateRemoveTabs": {"type": ["boolean", "null"]},
732
+ "allowDeleteChannels": {"type": ["boolean", "null"]}
733
+ },
734
+ "required": [],
735
+ "additionalProperties": false
736
+ },
737
+ "TeamMessagingSettings": {
738
+ "type": "object",
739
+ "properties": {
740
+ "@odata.type": {
741
+ "type": "string",
742
+ "enum": ["#microsoft.graph.teamMessagingSettings", "microsoft.graph.teamMessagingSettings"]
743
+ },
744
+ "allowChannelMentions": {"type": ["boolean", "null"]},
745
+ "allowOwnerDeleteMessages": {"type": ["boolean", "null"]},
746
+ "allowTeamMentions": {"type": ["boolean", "null"]},
747
+ "allowUserDeleteMessages": {"type": ["boolean", "null"]},
748
+ "allowUserEditMessages": {"type": ["boolean", "null"]}
749
+ },
750
+ "required": [],
751
+ "additionalProperties": false
752
+ },
753
+ "TeamSummary": {
754
+ "type": "object",
755
+ "properties": {
756
+ "@odata.type": {"type": "string", "enum": ["#microsoft.graph.teamSummary", "microsoft.graph.teamSummary"]},
757
+ "guestsCount": {"type": ["integer", "null"], "minimum": 0, "maximum": 2147483647},
758
+ "membersCount": {"type": ["integer", "null"], "minimum": 0, "maximum": 2147483647},
759
+ "ownersCount": {"type": ["integer", "null"], "minimum": 0, "maximum": 2147483647}
760
+ },
761
+ "required": [],
762
+ "additionalProperties": false
763
+ },
764
+ "ChannelSummary": {
765
+ "type": "object",
766
+ "properties": {
767
+ "@odata.type": {
768
+ "type": "string",
769
+ "enum": ["#microsoft.graph.channelSummary", "microsoft.graph.channelSummary"]
770
+ },
771
+ "guestsCount": {"type": ["integer", "null"], "minimum": 0, "maximum": 2147483647},
772
+ "membersCount": {"type": ["integer", "null"], "minimum": 0, "maximum": 2147483647},
773
+ "ownersCount": {"type": ["integer", "null"], "minimum": 0, "maximum": 2147483647},
774
+ "hasMembersFromOtherTenants": {"type": ["boolean", "null"]}
775
+ },
776
+ "required": [],
777
+ "additionalProperties": false
778
+ },
779
+ "CallParticipantInfo": {
780
+ "type": "object",
781
+ "properties": {
782
+ "@odata.type": {
783
+ "type": "string",
784
+ "enum": ["#microsoft.graph.callParticipantInfo", "microsoft.graph.callParticipantInfo"]
785
+ },
786
+ "participant": {
787
+ "anyOf": [
788
+ {"$ref": "#/$defs/IdentitySet"},
789
+ {"type": "null"}
790
+ ]
791
+ }
792
+ },
793
+ "required": [],
794
+ "additionalProperties": false
795
+ },
796
+ "EventDetail": {
797
+ "oneOf": [
798
+ {"$ref": "#/$defs/CallStartedEventMessageDetail"},
799
+ {"$ref": "#/$defs/CallEndedEventMessageDetail"},
800
+ {"$ref": "#/$defs/CallRecordingEventMessageDetail"},
801
+ {"$ref": "#/$defs/CallTranscriptEventMessageDetail"},
802
+ {"$ref": "#/$defs/ChannelAddedEventMessageDetail"},
803
+ {"$ref": "#/$defs/ChannelDeletedEventMessageDetail"},
804
+ {"$ref": "#/$defs/ChannelDescriptionUpdatedEventMessageDetail"},
805
+ {"$ref": "#/$defs/ChannelRenamedEventMessageDetail"},
806
+ {"$ref": "#/$defs/ChannelSetAsFavoriteByDefaultEventMessageDetail"},
807
+ {"$ref": "#/$defs/ChannelUnsetAsFavoriteByDefaultEventMessageDetail"},
808
+ {"$ref": "#/$defs/ChatRenamedEventMessageDetail"},
809
+ {"$ref": "#/$defs/ConversationMemberRoleUpdatedEventMessageDetail"},
810
+ {"$ref": "#/$defs/MeetingPolicyUpdatedEventMessageDetail"},
811
+ {"$ref": "#/$defs/MembersAddedEventMessageDetail"},
812
+ {"$ref": "#/$defs/MembersDeletedEventMessageDetail"},
813
+ {"$ref": "#/$defs/MembersJoinedEventMessageDetail"},
814
+ {"$ref": "#/$defs/MembersLeftEventMessageDetail"},
815
+ {"$ref": "#/$defs/MessagePinnedEventMessageDetail"},
816
+ {"$ref": "#/$defs/MessageUnpinnedEventMessageDetail"},
817
+ {"$ref": "#/$defs/TabUpdatedEventMessageDetail"},
818
+ {"$ref": "#/$defs/TeamArchivedEventMessageDetail"},
819
+ {"$ref": "#/$defs/TeamCreatedEventMessageDetail"},
820
+ {"$ref": "#/$defs/TeamDescriptionUpdatedEventMessageDetail"},
821
+ {"$ref": "#/$defs/TeamJoiningDisabledEventMessageDetail"},
822
+ {"$ref": "#/$defs/TeamJoiningEnabledEventMessageDetail"},
823
+ {"$ref": "#/$defs/TeamRenamedEventMessageDetail"},
824
+ {"$ref": "#/$defs/TeamsAppInstalledEventMessageDetail"},
825
+ {"$ref": "#/$defs/TeamsAppRemovedEventMessageDetail"},
826
+ {"$ref": "#/$defs/TeamsAppUpgradedEventMessageDetail"},
827
+ {"$ref": "#/$defs/TeamUnarchivedEventMessageDetail"}
828
+ ]
829
+ },
830
+ "CallStartedEventMessageDetail": {
831
+ "type": "object",
832
+ "properties": {
833
+ "@odata.type": {
834
+ "type": "string",
835
+ "enum": ["#microsoft.graph.callStartedEventMessageDetail", "microsoft.graph.callStartedEventMessageDetail"]
836
+ },
837
+ "callEventType": {
838
+ "type": ["string", "null"],
839
+ "enum": ["call", "meeting", "screenShare", "unknownFutureValue", null]
840
+ },
841
+ "callId": {"type": ["string", "null"]},
842
+ "initiator": {
843
+ "anyOf": [
844
+ {"$ref": "#/$defs/IdentitySet"},
845
+ {"type": "null"}
846
+ ]
847
+ }
848
+ },
849
+ "required": ["@odata.type"],
850
+ "additionalProperties": false
851
+ },
852
+ "CallEndedEventMessageDetail": {
853
+ "type": "object",
854
+ "properties": {
855
+ "@odata.type": {
856
+ "type": "string",
857
+ "enum": ["#microsoft.graph.callEndedEventMessageDetail", "microsoft.graph.callEndedEventMessageDetail"]
858
+ },
859
+ "callDuration": {"type": ["string", "null"]},
860
+ "callEventType": {
861
+ "type": ["string", "null"],
862
+ "enum": ["call", "meeting", "screenShare", "unknownFutureValue", null]
863
+ },
864
+ "callId": {"type": ["string", "null"]},
865
+ "callParticipants": {
866
+ "type": "array",
867
+ "items": {
868
+ "anyOf": [
869
+ {"$ref": "#/$defs/CallParticipantInfo"},
870
+ {"type": "null"}
871
+ ]
872
+ }
873
+ },
874
+ "initiator": {
875
+ "anyOf": [
876
+ {"$ref": "#/$defs/IdentitySet"},
877
+ {"type": "null"}
878
+ ]
879
+ }
880
+ },
881
+ "required": ["@odata.type"],
882
+ "additionalProperties": false
883
+ },
884
+ "CallRecordingEventMessageDetail": {
885
+ "type": "object",
886
+ "properties": {
887
+ "@odata.type": {
888
+ "type": "string",
889
+ "enum": [
890
+ "#microsoft.graph.callRecordingEventMessageDetail",
891
+ "microsoft.graph.callRecordingEventMessageDetail"
892
+ ]
893
+ },
894
+ "callId": {"type": ["string", "null"]},
895
+ "callRecordingDisplayName": {"type": ["string", "null"]},
896
+ "callRecordingDuration": {"type": ["string", "null"]},
897
+ "callRecordingStatus": {
898
+ "type": ["string", "null"],
899
+ "enum": ["success", "failure", "initial", "chunkFinished", "unknownFutureValue", null]
900
+ },
901
+ "callRecordingUrl": {"type": ["string", "null"]},
902
+ "meetingOrganizer": {
903
+ "anyOf": [
904
+ {"$ref": "#/$defs/IdentitySet"},
905
+ {"type": "null"}
906
+ ]
907
+ },
908
+ "initiator": {
909
+ "anyOf": [
910
+ {"$ref": "#/$defs/IdentitySet"},
911
+ {"type": "null"}
912
+ ]
913
+ }
914
+ },
915
+ "required": ["@odata.type"],
916
+ "additionalProperties": false
917
+ },
918
+ "CallTranscriptEventMessageDetail": {
919
+ "type": "object",
920
+ "properties": {
921
+ "@odata.type": {
922
+ "type": "string",
923
+ "enum": [
924
+ "#microsoft.graph.callTranscriptEventMessageDetail",
925
+ "microsoft.graph.callTranscriptEventMessageDetail"
926
+ ]
927
+ },
928
+ "callId": {"type": ["string", "null"]},
929
+ "callTranscriptICalUid": {"type": ["string", "null"]},
930
+ "meetingOrganizer": {
931
+ "anyOf": [
932
+ {"$ref": "#/$defs/IdentitySet"},
933
+ {"type": "null"}
934
+ ]
935
+ }
936
+ },
937
+ "required": ["@odata.type"],
938
+ "additionalProperties": false
939
+ },
940
+ "ChannelAddedEventMessageDetail": {
941
+ "type": "object",
942
+ "properties": {
943
+ "@odata.type": {
944
+ "type": "string",
945
+ "enum": ["#microsoft.graph.channelAddedEventMessageDetail", "microsoft.graph.channelAddedEventMessageDetail"]
946
+ },
947
+ "channelDisplayName": {"type": ["string", "null"]},
948
+ "channelId": {"type": ["string", "null"]},
949
+ "initiator": {
950
+ "anyOf": [
951
+ {"$ref": "#/$defs/IdentitySet"},
952
+ {"type": "null"}
953
+ ]
954
+ }
955
+ },
956
+ "required": ["@odata.type"],
957
+ "additionalProperties": false
958
+ },
959
+ "ChannelDeletedEventMessageDetail": {
960
+ "type": "object",
961
+ "properties": {
962
+ "@odata.type": {
963
+ "type": "string",
964
+ "enum": [
965
+ "#microsoft.graph.channelDeletedEventMessageDetail",
966
+ "microsoft.graph.channelDeletedEventMessageDetail"
967
+ ]
968
+ },
969
+ "channelDisplayName": {"type": ["string", "null"]},
970
+ "channelId": {"type": ["string", "null"]},
971
+ "initiator": {
972
+ "anyOf": [
973
+ {"$ref": "#/$defs/IdentitySet"},
974
+ {"type": "null"}
975
+ ]
976
+ }
977
+ },
978
+ "required": ["@odata.type"],
979
+ "additionalProperties": false
980
+ },
981
+ "ChannelDescriptionUpdatedEventMessageDetail": {
982
+ "type": "object",
983
+ "properties": {
984
+ "@odata.type": {
985
+ "type": "string",
986
+ "enum": [
987
+ "#microsoft.graph.channelDescriptionUpdatedEventMessageDetail",
988
+ "microsoft.graph.channelDescriptionUpdatedEventMessageDetail"
989
+ ]
990
+ },
991
+ "channelDescription": {"type": ["string", "null"]},
992
+ "channelId": {"type": ["string", "null"]},
993
+ "initiator": {
994
+ "anyOf": [
995
+ {"$ref": "#/$defs/IdentitySet"},
996
+ {"type": "null"}
997
+ ]
998
+ }
999
+ },
1000
+ "required": ["@odata.type"],
1001
+ "additionalProperties": false
1002
+ },
1003
+ "ChannelRenamedEventMessageDetail": {
1004
+ "type": "object",
1005
+ "properties": {
1006
+ "@odata.type": {
1007
+ "type": "string",
1008
+ "enum": [
1009
+ "#microsoft.graph.channelRenamedEventMessageDetail",
1010
+ "microsoft.graph.channelRenamedEventMessageDetail"
1011
+ ]
1012
+ },
1013
+ "channelDisplayName": {"type": ["string", "null"]},
1014
+ "channelId": {"type": ["string", "null"]},
1015
+ "initiator": {
1016
+ "anyOf": [
1017
+ {"$ref": "#/$defs/IdentitySet"},
1018
+ {"type": "null"}
1019
+ ]
1020
+ }
1021
+ },
1022
+ "required": ["@odata.type"],
1023
+ "additionalProperties": false
1024
+ },
1025
+ "ChannelSetAsFavoriteByDefaultEventMessageDetail": {
1026
+ "type": "object",
1027
+ "properties": {
1028
+ "@odata.type": {
1029
+ "type": "string",
1030
+ "enum": [
1031
+ "#microsoft.graph.channelSetAsFavoriteByDefaultEventMessageDetail",
1032
+ "microsoft.graph.channelSetAsFavoriteByDefaultEventMessageDetail"
1033
+ ]
1034
+ },
1035
+ "channelId": {"type": ["string", "null"]},
1036
+ "initiator": {
1037
+ "anyOf": [
1038
+ {"$ref": "#/$defs/IdentitySet"},
1039
+ {"type": "null"}
1040
+ ]
1041
+ }
1042
+ },
1043
+ "required": ["@odata.type"],
1044
+ "additionalProperties": false
1045
+ },
1046
+ "ChannelUnsetAsFavoriteByDefaultEventMessageDetail": {
1047
+ "type": "object",
1048
+ "properties": {
1049
+ "@odata.type": {
1050
+ "type": "string",
1051
+ "enum": [
1052
+ "#microsoft.graph.channelUnsetAsFavoriteByDefaultEventMessageDetail",
1053
+ "microsoft.graph.channelUnsetAsFavoriteByDefaultEventMessageDetail"
1054
+ ]
1055
+ },
1056
+ "channelId": {"type": ["string", "null"]},
1057
+ "initiator": {
1058
+ "anyOf": [
1059
+ {"$ref": "#/$defs/IdentitySet"},
1060
+ {"type": "null"}
1061
+ ]
1062
+ }
1063
+ },
1064
+ "required": ["@odata.type"],
1065
+ "additionalProperties": false
1066
+ },
1067
+ "ChatRenamedEventMessageDetail": {
1068
+ "type": "object",
1069
+ "properties": {
1070
+ "@odata.type": {
1071
+ "type": "string",
1072
+ "enum": ["#microsoft.graph.chatRenamedEventMessageDetail", "microsoft.graph.chatRenamedEventMessageDetail"]
1073
+ },
1074
+ "chatDisplayName": {"type": ["string", "null"]},
1075
+ "chatId": {"type": ["string", "null"]},
1076
+ "initiator": {
1077
+ "anyOf": [
1078
+ {"$ref": "#/$defs/IdentitySet"},
1079
+ {"type": "null"}
1080
+ ]
1081
+ }
1082
+ },
1083
+ "required": ["@odata.type"],
1084
+ "additionalProperties": false
1085
+ },
1086
+ "ConversationMemberRoleUpdatedEventMessageDetail": {
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "@odata.type": {
1090
+ "type": "string",
1091
+ "enum": [
1092
+ "#microsoft.graph.conversationMemberRoleUpdatedEventMessageDetail",
1093
+ "microsoft.graph.conversationMemberRoleUpdatedEventMessageDetail"
1094
+ ]
1095
+ },
1096
+ "conversationMemberRoles": {
1097
+ "type": "array",
1098
+ "items": {"type": ["string", "null"]}
1099
+ },
1100
+ "conversationMemberUser": {
1101
+ "anyOf": [
1102
+ {"$ref": "#/$defs/UserIdentity"},
1103
+ {"type": "null"}
1104
+ ]
1105
+ },
1106
+ "initiator": {
1107
+ "anyOf": [
1108
+ {"$ref": "#/$defs/IdentitySet"},
1109
+ {"type": "null"}
1110
+ ]
1111
+ }
1112
+ },
1113
+ "required": ["@odata.type"],
1114
+ "additionalProperties": false
1115
+ },
1116
+ "MeetingPolicyUpdatedEventMessageDetail": {
1117
+ "type": "object",
1118
+ "properties": {
1119
+ "@odata.type": {
1120
+ "type": "string",
1121
+ "enum": [
1122
+ "#microsoft.graph.meetingPolicyUpdatedEventMessageDetail",
1123
+ "microsoft.graph.meetingPolicyUpdatedEventMessageDetail"
1124
+ ]
1125
+ },
1126
+ "meetingChatEnabled": {"type": ["boolean", "null"]},
1127
+ "meetingChatId": {"type": ["string", "null"]},
1128
+ "initiator": {
1129
+ "anyOf": [
1130
+ {"$ref": "#/$defs/IdentitySet"},
1131
+ {"type": "null"}
1132
+ ]
1133
+ }
1134
+ },
1135
+ "required": ["@odata.type"],
1136
+ "additionalProperties": false
1137
+ },
1138
+ "MembersAddedEventMessageDetail": {
1139
+ "type": "object",
1140
+ "properties": {
1141
+ "@odata.type": {
1142
+ "type": "string",
1143
+ "enum": ["#microsoft.graph.membersAddedEventMessageDetail", "microsoft.graph.membersAddedEventMessageDetail"]
1144
+ },
1145
+ "members": {
1146
+ "type": "array",
1147
+ "items": {
1148
+ "anyOf": [
1149
+ {"$ref": "#/$defs/UserIdentity"},
1150
+ {"type": "null"}
1151
+ ]
1152
+ }
1153
+ },
1154
+ "visibleHistoryStartDateTime": {"type": ["string", "null"], "format": "date-time"},
1155
+ "initiator": {
1156
+ "anyOf": [
1157
+ {"$ref": "#/$defs/IdentitySet"},
1158
+ {"type": "null"}
1159
+ ]
1160
+ }
1161
+ },
1162
+ "required": ["@odata.type"],
1163
+ "additionalProperties": false
1164
+ },
1165
+ "MembersDeletedEventMessageDetail": {
1166
+ "type": "object",
1167
+ "properties": {
1168
+ "@odata.type": {
1169
+ "type": "string",
1170
+ "enum": [
1171
+ "#microsoft.graph.membersDeletedEventMessageDetail",
1172
+ "microsoft.graph.membersDeletedEventMessageDetail"
1173
+ ]
1174
+ },
1175
+ "members": {
1176
+ "type": "array",
1177
+ "items": {
1178
+ "anyOf": [
1179
+ {"$ref": "#/$defs/UserIdentity"},
1180
+ {"type": "null"}
1181
+ ]
1182
+ }
1183
+ },
1184
+ "initiator": {
1185
+ "anyOf": [
1186
+ {"$ref": "#/$defs/IdentitySet"},
1187
+ {"type": "null"}
1188
+ ]
1189
+ }
1190
+ },
1191
+ "required": ["@odata.type"],
1192
+ "additionalProperties": false
1193
+ },
1194
+ "MembersJoinedEventMessageDetail": {
1195
+ "type": "object",
1196
+ "properties": {
1197
+ "@odata.type": {
1198
+ "type": "string",
1199
+ "enum": [
1200
+ "#microsoft.graph.membersJoinedEventMessageDetail",
1201
+ "microsoft.graph.membersJoinedEventMessageDetail"
1202
+ ]
1203
+ },
1204
+ "members": {
1205
+ "type": "array",
1206
+ "items": {
1207
+ "anyOf": [
1208
+ {"$ref": "#/$defs/UserIdentity"},
1209
+ {"type": "null"}
1210
+ ]
1211
+ }
1212
+ },
1213
+ "initiator": {
1214
+ "anyOf": [
1215
+ {"$ref": "#/$defs/IdentitySet"},
1216
+ {"type": "null"}
1217
+ ]
1218
+ }
1219
+ },
1220
+ "required": ["@odata.type"],
1221
+ "additionalProperties": false
1222
+ },
1223
+ "MembersLeftEventMessageDetail": {
1224
+ "type": "object",
1225
+ "properties": {
1226
+ "@odata.type": {
1227
+ "type": "string",
1228
+ "enum": ["#microsoft.graph.membersLeftEventMessageDetail", "microsoft.graph.membersLeftEventMessageDetail"]
1229
+ },
1230
+ "members": {
1231
+ "type": "array",
1232
+ "items": {
1233
+ "anyOf": [
1234
+ {"$ref": "#/$defs/UserIdentity"},
1235
+ {"type": "null"}
1236
+ ]
1237
+ }
1238
+ },
1239
+ "initiator": {
1240
+ "anyOf": [
1241
+ {"$ref": "#/$defs/IdentitySet"},
1242
+ {"type": "null"}
1243
+ ]
1244
+ }
1245
+ },
1246
+ "required": ["@odata.type"],
1247
+ "additionalProperties": false
1248
+ },
1249
+ "MessagePinnedEventMessageDetail": {
1250
+ "type": "object",
1251
+ "properties": {
1252
+ "@odata.type": {
1253
+ "type": "string",
1254
+ "enum": [
1255
+ "#microsoft.graph.messagePinnedEventMessageDetail",
1256
+ "microsoft.graph.messagePinnedEventMessageDetail"
1257
+ ]
1258
+ },
1259
+ "eventDateTime": {"type": ["string", "null"], "format": "date-time"},
1260
+ "initiator": {
1261
+ "anyOf": [
1262
+ {"$ref": "#/$defs/IdentitySet"},
1263
+ {"type": "null"}
1264
+ ]
1265
+ }
1266
+ },
1267
+ "required": ["@odata.type"],
1268
+ "additionalProperties": false
1269
+ },
1270
+ "MessageUnpinnedEventMessageDetail": {
1271
+ "type": "object",
1272
+ "properties": {
1273
+ "@odata.type": {
1274
+ "type": "string",
1275
+ "enum": [
1276
+ "#microsoft.graph.messageUnpinnedEventMessageDetail",
1277
+ "microsoft.graph.messageUnpinnedEventMessageDetail"
1278
+ ]
1279
+ },
1280
+ "eventDateTime": {"type": ["string", "null"], "format": "date-time"},
1281
+ "initiator": {
1282
+ "anyOf": [
1283
+ {"$ref": "#/$defs/IdentitySet"},
1284
+ {"type": "null"}
1285
+ ]
1286
+ }
1287
+ },
1288
+ "required": ["@odata.type"],
1289
+ "additionalProperties": false
1290
+ },
1291
+ "TabUpdatedEventMessageDetail": {
1292
+ "type": "object",
1293
+ "properties": {
1294
+ "@odata.type": {
1295
+ "type": "string",
1296
+ "enum": ["#microsoft.graph.tabUpdatedEventMessageDetail", "microsoft.graph.tabUpdatedEventMessageDetail"]
1297
+ },
1298
+ "tabId": {"type": ["string", "null"]},
1299
+ "initiator": {
1300
+ "anyOf": [
1301
+ {"$ref": "#/$defs/IdentitySet"},
1302
+ {"type": "null"}
1303
+ ]
1304
+ }
1305
+ },
1306
+ "required": ["@odata.type"],
1307
+ "additionalProperties": false
1308
+ },
1309
+ "TeamArchivedEventMessageDetail": {
1310
+ "type": "object",
1311
+ "properties": {
1312
+ "@odata.type": {
1313
+ "type": "string",
1314
+ "enum": ["#microsoft.graph.teamArchivedEventMessageDetail", "microsoft.graph.teamArchivedEventMessageDetail"]
1315
+ },
1316
+ "teamId": {"type": ["string", "null"]},
1317
+ "initiator": {
1318
+ "anyOf": [
1319
+ {"$ref": "#/$defs/IdentitySet"},
1320
+ {"type": "null"}
1321
+ ]
1322
+ }
1323
+ },
1324
+ "required": ["@odata.type"],
1325
+ "additionalProperties": false
1326
+ },
1327
+ "TeamCreatedEventMessageDetail": {
1328
+ "type": "object",
1329
+ "properties": {
1330
+ "@odata.type": {
1331
+ "type": "string",
1332
+ "enum": ["#microsoft.graph.teamCreatedEventMessageDetail", "microsoft.graph.teamCreatedEventMessageDetail"]
1333
+ },
1334
+ "teamDescription": {"type": ["string", "null"]},
1335
+ "teamDisplayName": {"type": ["string", "null"]},
1336
+ "teamId": {"type": ["string", "null"]},
1337
+ "initiator": {
1338
+ "anyOf": [
1339
+ {"$ref": "#/$defs/IdentitySet"},
1340
+ {"type": "null"}
1341
+ ]
1342
+ }
1343
+ },
1344
+ "required": ["@odata.type"],
1345
+ "additionalProperties": false
1346
+ },
1347
+ "TeamDescriptionUpdatedEventMessageDetail": {
1348
+ "type": "object",
1349
+ "properties": {
1350
+ "@odata.type": {
1351
+ "type": "string",
1352
+ "enum": [
1353
+ "#microsoft.graph.teamDescriptionUpdatedEventMessageDetail",
1354
+ "microsoft.graph.teamDescriptionUpdatedEventMessageDetail"
1355
+ ]
1356
+ },
1357
+ "teamDescription": {"type": ["string", "null"]},
1358
+ "teamId": {"type": ["string", "null"]},
1359
+ "initiator": {
1360
+ "anyOf": [
1361
+ {"$ref": "#/$defs/IdentitySet"},
1362
+ {"type": "null"}
1363
+ ]
1364
+ }
1365
+ },
1366
+ "required": ["@odata.type"],
1367
+ "additionalProperties": false
1368
+ },
1369
+ "TeamJoiningDisabledEventMessageDetail": {
1370
+ "type": "object",
1371
+ "properties": {
1372
+ "@odata.type": {
1373
+ "type": "string",
1374
+ "enum": [
1375
+ "#microsoft.graph.teamJoiningDisabledEventMessageDetail",
1376
+ "microsoft.graph.teamJoiningDisabledEventMessageDetail"
1377
+ ]
1378
+ },
1379
+ "teamId": {"type": ["string", "null"]},
1380
+ "initiator": {
1381
+ "anyOf": [
1382
+ {"$ref": "#/$defs/IdentitySet"},
1383
+ {"type": "null"}
1384
+ ]
1385
+ }
1386
+ },
1387
+ "required": ["@odata.type"],
1388
+ "additionalProperties": false
1389
+ },
1390
+ "TeamJoiningEnabledEventMessageDetail": {
1391
+ "type": "object",
1392
+ "properties": {
1393
+ "@odata.type": {
1394
+ "type": "string",
1395
+ "enum": [
1396
+ "#microsoft.graph.teamJoiningEnabledEventMessageDetail",
1397
+ "microsoft.graph.teamJoiningEnabledEventMessageDetail"
1398
+ ]
1399
+ },
1400
+ "teamId": {"type": ["string", "null"]},
1401
+ "initiator": {
1402
+ "anyOf": [
1403
+ {"$ref": "#/$defs/IdentitySet"},
1404
+ {"type": "null"}
1405
+ ]
1406
+ }
1407
+ },
1408
+ "required": ["@odata.type"],
1409
+ "additionalProperties": false
1410
+ },
1411
+ "TeamRenamedEventMessageDetail": {
1412
+ "type": "object",
1413
+ "properties": {
1414
+ "@odata.type": {
1415
+ "type": "string",
1416
+ "enum": ["#microsoft.graph.teamRenamedEventMessageDetail", "microsoft.graph.teamRenamedEventMessageDetail"]
1417
+ },
1418
+ "teamDisplayName": {"type": ["string", "null"]},
1419
+ "teamId": {"type": ["string", "null"]},
1420
+ "initiator": {
1421
+ "anyOf": [
1422
+ {"$ref": "#/$defs/IdentitySet"},
1423
+ {"type": "null"}
1424
+ ]
1425
+ }
1426
+ },
1427
+ "required": ["@odata.type"],
1428
+ "additionalProperties": false
1429
+ },
1430
+ "TeamsAppInstalledEventMessageDetail": {
1431
+ "type": "object",
1432
+ "properties": {
1433
+ "@odata.type": {
1434
+ "type": "string",
1435
+ "enum": [
1436
+ "#microsoft.graph.teamsAppInstalledEventMessageDetail",
1437
+ "microsoft.graph.teamsAppInstalledEventMessageDetail"
1438
+ ]
1439
+ },
1440
+ "teamsAppDisplayName": {"type": ["string", "null"]},
1441
+ "teamsAppId": {"type": ["string", "null"]},
1442
+ "initiator": {
1443
+ "anyOf": [
1444
+ {"$ref": "#/$defs/IdentitySet"},
1445
+ {"type": "null"}
1446
+ ]
1447
+ }
1448
+ },
1449
+ "required": ["@odata.type"],
1450
+ "additionalProperties": false
1451
+ },
1452
+ "TeamsAppRemovedEventMessageDetail": {
1453
+ "type": "object",
1454
+ "properties": {
1455
+ "@odata.type": {
1456
+ "type": "string",
1457
+ "enum": [
1458
+ "#microsoft.graph.teamsAppRemovedEventMessageDetail",
1459
+ "microsoft.graph.teamsAppRemovedEventMessageDetail"
1460
+ ]
1461
+ },
1462
+ "teamsAppDisplayName": {"type": ["string", "null"]},
1463
+ "teamsAppId": {"type": ["string", "null"]},
1464
+ "initiator": {
1465
+ "anyOf": [
1466
+ {"$ref": "#/$defs/IdentitySet"},
1467
+ {"type": "null"}
1468
+ ]
1469
+ }
1470
+ },
1471
+ "required": ["@odata.type"],
1472
+ "additionalProperties": false
1473
+ },
1474
+ "TeamsAppUpgradedEventMessageDetail": {
1475
+ "type": "object",
1476
+ "properties": {
1477
+ "@odata.type": {
1478
+ "type": "string",
1479
+ "enum": [
1480
+ "#microsoft.graph.teamsAppUpgradedEventMessageDetail",
1481
+ "microsoft.graph.teamsAppUpgradedEventMessageDetail"
1482
+ ]
1483
+ },
1484
+ "teamsAppDisplayName": {"type": ["string", "null"]},
1485
+ "teamsAppId": {"type": ["string", "null"]},
1486
+ "initiator": {
1487
+ "anyOf": [
1488
+ {"$ref": "#/$defs/IdentitySet"},
1489
+ {"type": "null"}
1490
+ ]
1491
+ }
1492
+ },
1493
+ "required": ["@odata.type"],
1494
+ "additionalProperties": false
1495
+ },
1496
+ "TeamUnarchivedEventMessageDetail": {
1497
+ "type": "object",
1498
+ "properties": {
1499
+ "@odata.type": {
1500
+ "type": "string",
1501
+ "enum": [
1502
+ "#microsoft.graph.teamUnarchivedEventMessageDetail",
1503
+ "microsoft.graph.teamUnarchivedEventMessageDetail"
1504
+ ]
1505
+ },
1506
+ "teamId": {"type": ["string", "null"]},
1507
+ "initiator": {
1508
+ "anyOf": [
1509
+ {"$ref": "#/$defs/IdentitySet"},
1510
+ {"type": "null"}
1511
+ ]
1512
+ }
1513
+ },
1514
+ "required": ["@odata.type"],
1515
+ "additionalProperties": false
1516
+ },
1517
+ "MemberIdentity": {
1518
+ "oneOf": [
1519
+ {
1520
+ "type": "object",
1521
+ "properties": {
1522
+ "type": {"type": "string", "const": "aadUserConversationMember"},
1523
+ "email": {"type": ["string", "null"]},
1524
+ "tenantId": {"type": ["string", "null"]},
1525
+ "userId": {"type": ["string", "null"]}
1526
+ },
1527
+ "required": ["type"],
1528
+ "additionalProperties": false
1529
+ },
1530
+ {
1531
+ "type": "object",
1532
+ "properties": {
1533
+ "type": {"type": "string", "const": "anonymousGuestConversationMember"},
1534
+ "anonymousGuestId": {"type": ["string", "null"]}
1535
+ },
1536
+ "required": ["type"],
1537
+ "additionalProperties": false
1538
+ },
1539
+ {
1540
+ "type": "object",
1541
+ "properties": {
1542
+ "type": {"type": "string", "const": "azureCommunicationServicesUserConversationMember"},
1543
+ "azureCommunicationServicesId": {"type": ["string", "null"]}
1544
+ },
1545
+ "required": ["type"],
1546
+ "additionalProperties": false
1547
+ },
1548
+ {
1549
+ "type": "object",
1550
+ "properties": {
1551
+ "type": {"type": "string", "const": "microsoftAccountUserConversationMember"},
1552
+ "userId": {"type": ["string", "null"]}
1553
+ },
1554
+ "required": ["type"],
1555
+ "additionalProperties": false
1556
+ },
1557
+ {
1558
+ "type": "object",
1559
+ "properties": {
1560
+ "type": {"type": "string", "const": "phoneUserConversationMember"},
1561
+ "phoneNumber": {"type": ["string", "null"]}
1562
+ },
1563
+ "required": ["type"],
1564
+ "additionalProperties": false
1565
+ },
1566
+ {
1567
+ "type": "object",
1568
+ "properties": {
1569
+ "type": {"type": "string", "const": "skypeForBusinessUserConversationMember"},
1570
+ "tenantId": {"type": ["string", "null"]},
1571
+ "userId": {"type": ["string", "null"]}
1572
+ },
1573
+ "required": ["type"],
1574
+ "additionalProperties": false
1575
+ },
1576
+ {
1577
+ "type": "object",
1578
+ "properties": {
1579
+ "type": {"type": "string", "const": "skypeUserConversationMember"},
1580
+ "skypeId": {"type": ["string", "null"]}
1581
+ },
1582
+ "required": ["type"],
1583
+ "additionalProperties": false
1584
+ }
1585
+ ]
1586
+ },
1587
+ "ChannelReference": {
1588
+ "type": "object",
1589
+ "properties": {
1590
+ "@odata.type": {"type": "string", "enum": ["#microsoft.graph.channel", "microsoft.graph.channel"]},
1591
+ "id": {"type": "string"},
1592
+ "createdDateTime": {"type": ["string", "null"], "format": "date-time"},
1593
+ "description": {"type": ["string", "null"]},
1594
+ "displayName": {"type": "string", "maxLength": 50},
1595
+ "email": {"type": ["string", "null"]},
1596
+ "isArchived": {"type": ["boolean", "null"]},
1597
+ "isFavoriteByDefault": {"type": ["boolean", "null"]},
1598
+ "layoutType": {
1599
+ "anyOf": [
1600
+ {"$ref": "#/$defs/ChannelLayoutType"},
1601
+ {"type": "null"}
1602
+ ]
1603
+ },
1604
+ "membershipType": {
1605
+ "anyOf": [
1606
+ {"$ref": "#/$defs/ChannelMembershipType"},
1607
+ {"type": "null"}
1608
+ ]
1609
+ },
1610
+ "migrationMode": {
1611
+ "anyOf": [
1612
+ {"$ref": "#/$defs/MigrationMode"},
1613
+ {"type": "null"}
1614
+ ]
1615
+ },
1616
+ "originalCreatedDateTime": {"type": ["string", "null"], "format": "date-time"},
1617
+ "summary": {
1618
+ "anyOf": [
1619
+ {"$ref": "#/$defs/ChannelSummary"},
1620
+ {"type": "null"}
1621
+ ]
1622
+ },
1623
+ "tenantId": {"type": ["string", "null"]},
1624
+ "webUrl": {"type": ["string", "null"]}
1625
+ },
1626
+ "required": [],
1627
+ "additionalProperties": false
1628
+ },
1629
+ "ItemReference": {
1630
+ "type": "object",
1631
+ "properties": {
1632
+ "@odata.type": {"type": "string", "enum": ["#microsoft.graph.itemReference", "microsoft.graph.itemReference"]},
1633
+ "driveId": {"type": ["string", "null"]},
1634
+ "driveType": {"type": ["string", "null"]},
1635
+ "id": {"type": ["string", "null"]},
1636
+ "name": {"type": ["string", "null"]},
1637
+ "path": {"type": ["string", "null"]},
1638
+ "shareId": {"type": ["string", "null"]},
1639
+ "siteId": {"type": ["string", "null"]}
1640
+ },
1641
+ "required": [],
1642
+ "additionalProperties": false
1643
+ },
1644
+ "FolderReference": {
1645
+ "type": "object",
1646
+ "properties": {
1647
+ "@odata.type": {"type": "string", "enum": ["#microsoft.graph.folder", "microsoft.graph.folder"]},
1648
+ "childCount": {"type": ["integer", "null"], "minimum": 0, "maximum": 2147483647}
1649
+ },
1650
+ "required": [],
1651
+ "additionalProperties": false
1652
+ },
1653
+ "FilesFolderReference": {
1654
+ "type": "object",
1655
+ "properties": {
1656
+ "@odata.type": {"type": "string", "enum": ["#microsoft.graph.driveItem", "microsoft.graph.driveItem"]},
1657
+ "id": {"type": "string"},
1658
+ "name": {"type": ["string", "null"]},
1659
+ "webUrl": {"type": ["string", "null"]},
1660
+ "parentReference": {
1661
+ "anyOf": [
1662
+ {"$ref": "#/$defs/ItemReference"},
1663
+ {"type": "null"}
1664
+ ]
1665
+ },
1666
+ "folder": {
1667
+ "anyOf": [
1668
+ {"$ref": "#/$defs/FolderReference"},
1669
+ {"type": "null"}
1670
+ ]
1671
+ }
1672
+ },
1673
+ "required": [],
1674
+ "additionalProperties": false
1675
+ },
1676
+ "MessagePreview": {
1677
+ "type": "object",
1678
+ "properties": {
1679
+ "@odata.type": {
1680
+ "type": "string",
1681
+ "enum": ["#microsoft.graph.chatMessageInfo", "microsoft.graph.chatMessageInfo"]
1682
+ },
1683
+ "id": {"type": "string"},
1684
+ "body": {
1685
+ "anyOf": [
1686
+ {"$ref": "#/$defs/ItemBody"},
1687
+ {"type": "null"}
1688
+ ]
1689
+ },
1690
+ "createdDateTime": {"type": ["string", "null"], "format": "date-time"},
1691
+ "eventDetail": {
1692
+ "anyOf": [
1693
+ {"$ref": "#/$defs/EventDetail"},
1694
+ {"type": "null"}
1695
+ ]
1696
+ },
1697
+ "from": {
1698
+ "anyOf": [
1699
+ {"$ref": "#/$defs/SenderIdentitySet"},
1700
+ {"type": "null"}
1701
+ ]
1702
+ },
1703
+ "isDeleted": {"type": ["boolean", "null"]},
1704
+ "messageType": {"$ref": "#/$defs/MessageType"}
1705
+ },
1706
+ "required": [],
1707
+ "additionalProperties": false
1708
+ }
1709
+ }
1710
+ }