cortexdb-sdk 0.2.0b2__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.
@@ -0,0 +1,1305 @@
1
+ # @generated Generated by scripts/generate_openapi_sdk_types.py. Do not edit.
2
+ from __future__ import annotations
3
+
4
+ from typing import Any, Literal, TypedDict
5
+
6
+ JsonValue = Any
7
+
8
+ OpenApiHealthResponse = TypedDict(
9
+ 'OpenApiHealthResponse',
10
+ {
11
+ 'server_version': 'str',
12
+ 'status': 'str',
13
+ 'version': 'str',
14
+ },
15
+ total=False,
16
+ )
17
+
18
+ OpenApiCompatibilityResponse = TypedDict(
19
+ 'OpenApiCompatibilityResponse',
20
+ {
21
+ 'api': 'OpenApiApiCompatibility',
22
+ 'migration': 'OpenApiMigrationCompatibility',
23
+ 'migration_registry': 'OpenApiMigrationVersionRegistry',
24
+ 'schema_version': 'str',
25
+ 'sdk': 'OpenApiSdkCompatibility',
26
+ 'storage_formats': 'list[OpenApiStorageFormatCompatibility]',
27
+ },
28
+ total=False,
29
+ )
30
+
31
+ OpenApiApiCompatibility = TypedDict(
32
+ 'OpenApiApiCompatibility',
33
+ {
34
+ 'contract': 'str',
35
+ 'gate': 'str',
36
+ 'version': 'str',
37
+ },
38
+ total=False,
39
+ )
40
+
41
+ OpenApiSdkCompatibility = TypedDict(
42
+ 'OpenApiSdkCompatibility',
43
+ {
44
+ 'contract': 'str',
45
+ 'gate': 'str',
46
+ 'workspace_version': 'str',
47
+ },
48
+ total=False,
49
+ )
50
+
51
+ OpenApiStorageFormatCompatibility = TypedDict(
52
+ 'OpenApiStorageFormatCompatibility',
53
+ {
54
+ 'compatibility_rule': 'str',
55
+ 'current_magic': 'str',
56
+ 'current_version': 'int',
57
+ 'extension': 'str',
58
+ 'legacy_magics': 'list[str]',
59
+ 'name': 'str',
60
+ },
61
+ total=False,
62
+ )
63
+
64
+ OpenApiMigrationCompatibility = TypedDict(
65
+ 'OpenApiMigrationCompatibility',
66
+ {
67
+ 'current_release': 'str',
68
+ 'gate': 'str',
69
+ 'matrix_schema_version': 'int',
70
+ 'release': 'str',
71
+ },
72
+ total=False,
73
+ )
74
+
75
+ OpenApiMigrationVersionRegistry = TypedDict(
76
+ 'OpenApiMigrationVersionRegistry',
77
+ {
78
+ 'current_release': 'str',
79
+ 'downgrade_policy': 'str',
80
+ 'formats': 'list[OpenApiMigrationFormatRegistryEntry]',
81
+ 'migration_gate': 'str',
82
+ 'releases': 'list[OpenApiMigrationReleaseRegistryEntry]',
83
+ 'schema_version': 'str',
84
+ },
85
+ total=False,
86
+ )
87
+
88
+ OpenApiMigrationFormatRegistryEntry = TypedDict(
89
+ 'OpenApiMigrationFormatRegistryEntry',
90
+ {
91
+ 'compatibility_rule': 'str',
92
+ 'current_magic': 'str',
93
+ 'current_version': 'int',
94
+ 'extension': 'str',
95
+ 'kind': 'str',
96
+ 'legacy_magics': 'list[str]',
97
+ 'required_gate': 'str',
98
+ },
99
+ total=False,
100
+ )
101
+
102
+ OpenApiMigrationReleaseRegistryEntry = TypedDict(
103
+ 'OpenApiMigrationReleaseRegistryEntry',
104
+ {
105
+ 'backup_path': 'str | None',
106
+ 'database_path': 'str | None',
107
+ 'downgrade': 'str',
108
+ 'fixture': 'str | None',
109
+ 'from': 'str',
110
+ 'mode': 'str',
111
+ 'to': 'str',
112
+ },
113
+ total=False,
114
+ )
115
+
116
+ OpenApiCell = TypedDict(
117
+ 'OpenApiCell',
118
+ {
119
+ 'cell_id': 'int',
120
+ 'payload': 'str',
121
+ },
122
+ total=False,
123
+ )
124
+
125
+ OpenApiCellLookupResponse = TypedDict(
126
+ 'OpenApiCellLookupResponse',
127
+ {
128
+ 'cell': 'OpenApiCell | Any',
129
+ },
130
+ total=False,
131
+ )
132
+
133
+ OpenApiPutCellResponse = TypedDict(
134
+ 'OpenApiPutCellResponse',
135
+ {
136
+ 'cell_id': 'int',
137
+ 'seq': 'int',
138
+ },
139
+ total=False,
140
+ )
141
+
142
+ OpenApiFeedbackRecordResponse = TypedDict(
143
+ 'OpenApiFeedbackRecordResponse',
144
+ {
145
+ 'cell_id': 'int',
146
+ 'seq': 'int',
147
+ 'source_cell_id': 'int',
148
+ 'useful': 'bool',
149
+ },
150
+ total=False,
151
+ )
152
+
153
+ OpenApiFeedbackCellStatsResponse = TypedDict(
154
+ 'OpenApiFeedbackCellStatsResponse',
155
+ {
156
+ 'not_useful': 'int',
157
+ 'score': 'int',
158
+ 'source_cell_id': 'int',
159
+ 'useful': 'int',
160
+ },
161
+ total=False,
162
+ )
163
+
164
+ OpenApiFeedbackStatsResponse = TypedDict(
165
+ 'OpenApiFeedbackStatsResponse',
166
+ {
167
+ 'by_source_cell': 'list[OpenApiFeedbackCellStatsResponse]',
168
+ 'not_useful': 'int',
169
+ 'total': 'int',
170
+ 'useful': 'int',
171
+ },
172
+ total=False,
173
+ )
174
+
175
+ OpenApiWriteBatchRequest = TypedDict(
176
+ 'OpenApiWriteBatchRequest',
177
+ {
178
+ 'operations': 'list[OpenApiWriteBatchOperationRequest]',
179
+ },
180
+ total=False,
181
+ )
182
+
183
+ OpenApiWriteBatchOperationRequest = Any
184
+
185
+ OpenApiWriteBatchPutOperation = TypedDict(
186
+ 'OpenApiWriteBatchPutOperation',
187
+ {
188
+ 'cell_id': 'int',
189
+ 'op': "Literal['put_cell']",
190
+ 'payload': 'str',
191
+ },
192
+ total=False,
193
+ )
194
+
195
+ OpenApiWriteBatchPatchOperation = TypedDict(
196
+ 'OpenApiWriteBatchPatchOperation',
197
+ {
198
+ 'cell_id': 'int',
199
+ 'op': "Literal['patch_cell']",
200
+ 'payload': 'str',
201
+ },
202
+ total=False,
203
+ )
204
+
205
+ OpenApiWriteBatchTombstoneOperation = TypedDict(
206
+ 'OpenApiWriteBatchTombstoneOperation',
207
+ {
208
+ 'cell_id': 'int',
209
+ 'op': "Literal['tombstone_cell']",
210
+ },
211
+ total=False,
212
+ )
213
+
214
+ OpenApiWriteBatchResponse = TypedDict(
215
+ 'OpenApiWriteBatchResponse',
216
+ {
217
+ 'cell_ids': 'list[int]',
218
+ 'operation_count': 'int',
219
+ 'seq': 'int',
220
+ },
221
+ total=False,
222
+ )
223
+
224
+ OpenApiAuthPolicyPrincipalRequest = TypedDict(
225
+ 'OpenApiAuthPolicyPrincipalRequest',
226
+ {
227
+ 'agent_id': 'int',
228
+ 'body_quota_bytes_per_minute': 'int',
229
+ 'capabilities': "list[Literal['admin', 'aql', 'context', 'delete', 'ingest', 'inference', 'memory', 'metrics', 'read', 'search', 'verify', 'write']]",
230
+ 'context_budget_tokens': 'int',
231
+ 'disabled': 'bool',
232
+ 'principal_id': 'str',
233
+ 'queue_quota': 'int',
234
+ 'request_quota_per_minute': 'int',
235
+ 'role': "Literal['admin', 'data']",
236
+ 'tenants': 'list[str]',
237
+ 'token': 'str',
238
+ },
239
+ total=False,
240
+ )
241
+
242
+ OpenApiAuthPolicyMutationResponse = TypedDict(
243
+ 'OpenApiAuthPolicyMutationResponse',
244
+ {
245
+ 'action': "Literal['upsert_principal', 'disable_principal', 'rollback_policy']",
246
+ 'active_principals': 'int',
247
+ 'disabled_principals': 'int',
248
+ 'principal_id': 'str | Any',
249
+ 'rollback_available': 'bool',
250
+ 'schema_version': "Literal['cortexdb.auth_policy_mutation.v1']",
251
+ },
252
+ total=False,
253
+ )
254
+
255
+ OpenApiAuthPolicyListPrincipal = TypedDict(
256
+ 'OpenApiAuthPolicyListPrincipal',
257
+ {
258
+ 'agent_id': 'int | Any',
259
+ 'body_quota_bytes_per_minute': 'int | Any',
260
+ 'capabilities': 'list[str]',
261
+ 'context_budget_tokens': 'int | Any',
262
+ 'disabled': 'bool',
263
+ 'principal_id': 'str',
264
+ 'queue_quota': 'int | Any',
265
+ 'request_quota_per_minute': 'int | Any',
266
+ 'role': "Literal['admin', 'data']",
267
+ 'tenants': 'list[str]',
268
+ 'token_fingerprint': 'str',
269
+ 'token_present': 'bool',
270
+ },
271
+ total=False,
272
+ )
273
+
274
+ OpenApiAuthPolicyListResponse = TypedDict(
275
+ 'OpenApiAuthPolicyListResponse',
276
+ {
277
+ 'active_principals': 'int',
278
+ 'disabled_principals': 'int',
279
+ 'principal_count': 'int',
280
+ 'principals': 'list[OpenApiAuthPolicyListPrincipal]',
281
+ 'schema_version': "Literal['cortexdb.auth_policy_list.v1']",
282
+ 'supported_roles': "list[Literal['admin', 'data']]",
283
+ 'token_redaction': 'str',
284
+ },
285
+ total=False,
286
+ )
287
+
288
+ OpenApiAuthScopeMutationRequest = TypedDict(
289
+ 'OpenApiAuthScopeMutationRequest',
290
+ {
291
+ 'access': "Literal['read', 'write', 'read_write']",
292
+ 'agent_id': 'int',
293
+ 'scope': 'str',
294
+ },
295
+ total=False,
296
+ )
297
+
298
+ OpenApiAuthScopeMutationResponse = TypedDict(
299
+ 'OpenApiAuthScopeMutationResponse',
300
+ {
301
+ 'access': "Literal['read', 'write', 'read_write']",
302
+ 'action': "Literal['grant_scope', 'revoke_scope']",
303
+ 'agent_id': 'int',
304
+ 'readable_scope_count': 'int',
305
+ 'schema_version': "Literal['cortexdb.auth_scope_mutation.v1']",
306
+ 'scope': 'str',
307
+ 'writable_scope_count': 'int',
308
+ },
309
+ total=False,
310
+ )
311
+
312
+ OpenApiAgentViewCreateRequest = TypedDict(
313
+ 'OpenApiAgentViewCreateRequest',
314
+ {
315
+ 'agent_id': 'int',
316
+ 'allow_audit_mode': 'bool',
317
+ 'allow_remember': 'bool',
318
+ 'allow_verify_fact': 'bool',
319
+ 'allowed_memory_types': "list[Literal['decision', 'preference', 'workflow_result', 'error_log', 'observation']]",
320
+ 'allowed_modes': "list[Literal['fast', 'balanced', 'semantic', 'audit']]",
321
+ 'default_candidate_limit': 'int',
322
+ 'default_context_budget_tokens': 'int',
323
+ 'label': 'str | None',
324
+ 'max_candidate_limit': 'int',
325
+ 'max_context_budget_tokens': 'int',
326
+ 'max_ttl_seconds': 'int | None',
327
+ 'min_required_confidence_q16': 'int',
328
+ 'private_scope': 'str | None',
329
+ 'readable_brains': 'list[int]',
330
+ 'readable_scopes': 'list[str]',
331
+ 'require_citations_by_default': 'bool',
332
+ 'writable_scopes': 'list[str]',
333
+ },
334
+ total=False,
335
+ )
336
+
337
+ OpenApiAgentViewResponse = TypedDict(
338
+ 'OpenApiAgentViewResponse',
339
+ {
340
+ 'agent_id': 'int',
341
+ 'allow_audit_mode': 'bool',
342
+ 'allow_remember': 'bool',
343
+ 'allow_verify_fact': 'bool',
344
+ 'allowed_memory_types': "list[Literal['decision', 'preference', 'workflow_result', 'error_log', 'observation']]",
345
+ 'allowed_modes': "list[Literal['fast', 'balanced', 'semantic', 'audit']]",
346
+ 'default_candidate_limit': 'int',
347
+ 'default_context_budget_tokens': 'int',
348
+ 'label': 'str | None',
349
+ 'max_candidate_limit': 'int',
350
+ 'max_context_budget_tokens': 'int',
351
+ 'max_ttl_seconds': 'int | None',
352
+ 'min_required_confidence_q16': 'int',
353
+ 'private_scope': 'int | None',
354
+ 'readable_brains': 'list[int]',
355
+ 'readable_scopes': 'list[int]',
356
+ 'require_citations_by_default': 'bool',
357
+ 'schema_version': "Literal['cortexdb.agent_view.v1']",
358
+ 'writable_scopes': 'list[int]',
359
+ },
360
+ total=False,
361
+ )
362
+
363
+ OpenApiAgentViewListResponse = TypedDict(
364
+ 'OpenApiAgentViewListResponse',
365
+ {
366
+ 'agents': 'list[OpenApiAgentViewResponse]',
367
+ 'schema_version': "Literal['cortexdb.agent_views.v1']",
368
+ },
369
+ total=False,
370
+ )
371
+
372
+ OpenApiHnswNoFallbackProfileRequest = TypedDict(
373
+ 'OpenApiHnswNoFallbackProfileRequest',
374
+ {
375
+ 'min_recall_q16': 'int',
376
+ 'require_upper_layers': 'bool',
377
+ 'rollout_enabled': 'bool',
378
+ },
379
+ total=False,
380
+ )
381
+
382
+ OpenApiHnswNoFallbackProfileResponse = TypedDict(
383
+ 'OpenApiHnswNoFallbackProfileResponse',
384
+ {
385
+ 'configured': 'bool',
386
+ 'min_recall_q16': 'int | Any',
387
+ 'require_upper_layers': 'bool | Any',
388
+ 'rollout_enabled': 'bool | Any',
389
+ },
390
+ total=False,
391
+ )
392
+
393
+ OpenApiCheckpointResponse = TypedDict(
394
+ 'OpenApiCheckpointResponse',
395
+ {
396
+ 'cells_flushed': 'int',
397
+ 'checkpoint_seq': 'int',
398
+ },
399
+ total=False,
400
+ )
401
+
402
+ OpenApiStatsResponse = TypedDict(
403
+ 'OpenApiStatsResponse',
404
+ {
405
+ 'aql_query_cache': 'OpenApiAqlQueryCacheStatsResponse',
406
+ 'checkpoint_seq': 'int',
407
+ 'compaction_pressure_q16': 'int',
408
+ 'current_seq': 'int',
409
+ 'durable_storage_bytes': 'int',
410
+ 'estimated_context_pack_bytes': 'int',
411
+ 'estimated_index_bytes': 'int',
412
+ 'estimated_memtable_bytes': 'int',
413
+ 'estimated_total_memory_bytes': 'int',
414
+ 'live_segment_bytes': 'int',
415
+ 'live_segment_payload_bytes': 'int',
416
+ 'live_segments': 'int',
417
+ 'logical_payload_bytes': 'int',
418
+ 'memtable_cells': 'int',
419
+ 'memtable_payload_bytes': 'int',
420
+ 'memtable_versions': 'int',
421
+ 'retired_segment_bytes': 'int',
422
+ 'retired_segments': 'int',
423
+ 'space_amplification_q16': 'int',
424
+ 'total_segment_bytes': 'int',
425
+ 'wal_size_bytes': 'int',
426
+ 'wal_writer_batches': 'int',
427
+ 'wal_writer_bytes': 'int',
428
+ 'wal_writer_fsyncs': 'int',
429
+ 'wal_writer_records': 'int',
430
+ 'write_amplification_q16': 'int',
431
+ },
432
+ total=False,
433
+ )
434
+
435
+ OpenApiAqlQueryCacheStatsResponse = TypedDict(
436
+ 'OpenApiAqlQueryCacheStatsResponse',
437
+ {
438
+ 'catalog_invalidations': 'int',
439
+ 'entries': 'int',
440
+ 'evictions': 'int',
441
+ 'hit_rate_q16': 'int',
442
+ 'hits': 'int',
443
+ 'max_entries': 'int',
444
+ 'misses': 'int',
445
+ },
446
+ total=False,
447
+ )
448
+
449
+ OpenApiValidationResponse = TypedDict(
450
+ 'OpenApiValidationResponse',
451
+ {
452
+ 'bitmap_indexes_checked': 'int',
453
+ 'cells_checked': 'int',
454
+ 'errors': 'list[str]',
455
+ 'hnsw_graphs_checked': 'int',
456
+ 'lexical_indexes_checked': 'int',
457
+ 'live_segments_checked': 'int',
458
+ 'manifest_ok': 'bool',
459
+ 'ok': 'bool',
460
+ 'vector_indexes_checked': 'int',
461
+ 'wal_ok': 'bool',
462
+ 'wal_records_checked': 'int',
463
+ 'wal_safe_truncate_offset': 'int',
464
+ },
465
+ total=False,
466
+ )
467
+
468
+ OpenApiClusterNodeResponse = TypedDict(
469
+ 'OpenApiClusterNodeResponse',
470
+ {
471
+ 'address': 'str',
472
+ 'id': 'int',
473
+ },
474
+ total=False,
475
+ )
476
+
477
+ OpenApiClusterStatusResponse = TypedDict(
478
+ 'OpenApiClusterStatusResponse',
479
+ {
480
+ 'distributed_enabled': 'bool',
481
+ 'local_node': 'int',
482
+ 'nodes': 'list[OpenApiClusterNodeResponse]',
483
+ 'replication_factor': 'int',
484
+ },
485
+ total=False,
486
+ )
487
+
488
+ OpenApiAqlResponse = TypedDict(
489
+ 'OpenApiAqlResponse',
490
+ {
491
+ 'cells': 'list[OpenApiCell]',
492
+ 'explain': 'OpenApiAqlExplainResponse',
493
+ },
494
+ total=False,
495
+ )
496
+
497
+ OpenApiAqlExplainFilter = TypedDict(
498
+ 'OpenApiAqlExplainFilter',
499
+ {
500
+ 'expression': 'str',
501
+ 'kind': "Literal['policy', 'liveness', 'where']",
502
+ },
503
+ total=False,
504
+ )
505
+
506
+ OpenApiAqlCandidateCounts = TypedDict(
507
+ 'OpenApiAqlCandidateCounts',
508
+ {
509
+ 'after_bitmap': 'int',
510
+ 'after_quality': 'int',
511
+ 'agent_allowed': 'int',
512
+ 'estimated_after_bitmap': 'int | None',
513
+ 'live': 'int',
514
+ 'returned_limit': 'int',
515
+ 'universe': 'int',
516
+ },
517
+ total=False,
518
+ )
519
+
520
+ OpenApiAqlCostModelTerm = TypedDict(
521
+ 'OpenApiAqlCostModelTerm',
522
+ {
523
+ 'document_frequency': 'int',
524
+ 'term': 'str',
525
+ },
526
+ total=False,
527
+ )
528
+
529
+ OpenApiAqlCostModelEstimate = TypedDict(
530
+ 'OpenApiAqlCostModelEstimate',
531
+ {
532
+ 'cost_units': 'int',
533
+ 'path': "Literal['bitmap-first', 'lexical-first', 'vector-first', 'hybrid', 'pack']",
534
+ },
535
+ total=False,
536
+ )
537
+
538
+ OpenApiAqlCostModel = TypedDict(
539
+ 'OpenApiAqlCostModel',
540
+ {
541
+ 'estimated_after_bitmap': 'int | None',
542
+ 'estimated_live_rows': 'int',
543
+ 'estimates': 'list[OpenApiAqlCostModelEstimate]',
544
+ 'has_query_vector': 'bool',
545
+ 'rarest_term': 'OpenApiAqlCostModelTerm | Any',
546
+ 'reason': 'str',
547
+ 'recommended_candidate_limit': 'int',
548
+ 'selected_path': "Literal['bitmap-first', 'lexical-first', 'vector-first', 'hybrid']",
549
+ },
550
+ total=False,
551
+ )
552
+
553
+ OpenApiAqlLogicalPlanNode = TypedDict(
554
+ 'OpenApiAqlLogicalPlanNode',
555
+ {
556
+ 'detail': 'str',
557
+ 'id': 'int',
558
+ 'kind': 'str',
559
+ 'permission_predicate': 'str | Any',
560
+ },
561
+ total=False,
562
+ )
563
+
564
+ OpenApiAqlLogicalPlan = TypedDict(
565
+ 'OpenApiAqlLogicalPlan',
566
+ {
567
+ 'nodes': 'list[OpenApiAqlLogicalPlanNode]',
568
+ 'policy_complete': 'bool',
569
+ },
570
+ total=False,
571
+ )
572
+
573
+ OpenApiAqlExecutionOperator = TypedDict(
574
+ 'OpenApiAqlExecutionOperator',
575
+ {
576
+ 'actual_input_count': 'int',
577
+ 'actual_output_count': 'int',
578
+ 'elapsed_nanos': 'int',
579
+ 'estimated_output_count': 'int | Any',
580
+ 'input_count': 'int',
581
+ 'name': 'str',
582
+ 'output_count': 'int',
583
+ },
584
+ total=False,
585
+ )
586
+
587
+ OpenApiAqlExecutionTrace = TypedDict(
588
+ 'OpenApiAqlExecutionTrace',
589
+ {
590
+ 'operators': 'list[OpenApiAqlExecutionOperator]',
591
+ 'total_elapsed_nanos': 'int',
592
+ },
593
+ total=False,
594
+ )
595
+
596
+ OpenApiAqlExplainResponse = TypedDict(
597
+ 'OpenApiAqlExplainResponse',
598
+ {
599
+ 'bitmap_ops': 'list[str]',
600
+ 'bitmap_plan': 'str',
601
+ 'brain_id': 'int',
602
+ 'budget_tokens': 'int',
603
+ 'candidate_counts': 'OpenApiAqlCandidateCounts',
604
+ 'candidate_limit': 'int',
605
+ 'citations_required': 'bool',
606
+ 'cost_model': 'OpenApiAqlCostModel',
607
+ 'execution_trace': 'OpenApiAqlExecutionTrace',
608
+ 'filters': 'list[OpenApiAqlExplainFilter]',
609
+ 'logical_plan': 'OpenApiAqlLogicalPlan',
610
+ 'policy_rewritten_plan': 'OpenApiAqlLogicalPlan',
611
+ 'selected_mode': "Literal['fast', 'balanced', 'semantic', 'audit']",
612
+ 'task': 'str',
613
+ },
614
+ total=False,
615
+ )
616
+
617
+ OpenApiSearchRoutingDecision = TypedDict(
618
+ 'OpenApiSearchRoutingDecision',
619
+ {
620
+ 'reason': 'str',
621
+ 'requested_mode': 'str',
622
+ 'selected_strategy': "Literal['keyword', 'vector_exact', 'vector_ann', 'hybrid']",
623
+ 'text_available': 'bool',
624
+ 'vector_available': 'bool',
625
+ },
626
+ total=False,
627
+ )
628
+
629
+ OpenApiSearchResponse = TypedDict(
630
+ 'OpenApiSearchResponse',
631
+ {
632
+ 'ann_report': 'OpenApiAnnSearchReport | Any',
633
+ 'no_fallback_decision': 'OpenApiAnnNoFallbackDecision | Any',
634
+ 'rerank': "Literal['weighted']",
635
+ 'results': 'list[dict[str, Any]]',
636
+ 'routing': 'OpenApiSearchRoutingDecision | Any',
637
+ 'search_mode': "Literal['keyword', 'vector_exact', 'vector_ann', 'hybrid']",
638
+ },
639
+ total=False,
640
+ )
641
+
642
+ OpenApiAnnSearchReport = TypedDict(
643
+ 'OpenApiAnnSearchReport',
644
+ {
645
+ 'allowed_candidates': 'int',
646
+ 'fallback_performed': 'bool',
647
+ 'fallback_reason': "Literal['empty_graph', 'invalid_graph', 'stale_graph', 'insufficient_results', 'low_recall', 'visit_budget_exceeded', 'no_persisted_segments', 'uncheckpointed_changes', 'hnsw_disabled'] | Any",
648
+ 'graph_nodes': 'int',
649
+ 'hnsw_ef_construction': 'int',
650
+ 'hnsw_ef_search': 'int',
651
+ 'hnsw_layer_count': 'int',
652
+ 'hnsw_max_neighbors': 'int',
653
+ 'max_visited_candidates': 'int | Any',
654
+ 'min_recall_q16': 'int | Any',
655
+ 'path': "Literal['hnsw_graph', 'exact_fallback']",
656
+ 'production_safe': 'bool',
657
+ 'recall_q16': 'int | Any',
658
+ 'requested_limit': 'int',
659
+ 'require_slo': 'bool',
660
+ 'returned_candidates': 'int',
661
+ 'slo_violations': "list[Literal['empty_graph', 'invalid_graph', 'insufficient_results', 'low_recall', 'visit_budget_exceeded', 'no_persisted_segments', 'uncheckpointed_changes', 'hnsw_disabled', 'recall_below_minimum', 'weak_multi_layer_topology']]",
662
+ 'upper_graph_edges': 'int',
663
+ 'visited_candidates': 'int',
664
+ },
665
+ total=False,
666
+ )
667
+
668
+ OpenApiAnnNoFallbackDecision = TypedDict(
669
+ 'OpenApiAnnNoFallbackDecision',
670
+ {
671
+ 'allowed': 'bool',
672
+ 'reasons': "list[Literal['rollout_disabled', 'fallback_enabled', 'slo_not_required', 'not_hnsw_graph_path', 'fallback_occurred', 'fallback_reason_present', 'report_not_production_safe', 'slo_violations_present', 'empty_graph', 'no_eligible_candidates', 'no_results', 'weak_multi_layer_topology', 'recall_missing', 'recall_below_minimum', 'search_policy_below_rollout_minimum']]",
673
+ },
674
+ total=False,
675
+ )
676
+
677
+ OpenApiAnnEvaluationResponse = TypedDict(
678
+ 'OpenApiAnnEvaluationResponse',
679
+ {
680
+ 'ann_report': 'OpenApiAnnSearchReport | Any',
681
+ 'ann_top_k': 'list[int]',
682
+ 'available': 'bool',
683
+ 'exact_top_k': 'list[int]',
684
+ 'no_fallback_decision': 'OpenApiAnnNoFallbackDecision | Any',
685
+ 'overlap_count': 'int',
686
+ 'reason': "Literal['requires_persisted_checkpoint_without_wal_tail'] | Any",
687
+ 'recall_q16': 'int',
688
+ },
689
+ total=False,
690
+ )
691
+
692
+ OpenApiContextPackResponse = TypedDict(
693
+ 'OpenApiContextPackResponse',
694
+ {
695
+ 'anomalies': 'list[OpenApiContextPackAnomalyResponse]',
696
+ 'answerability_q16': 'int',
697
+ 'cells': 'list[OpenApiContextPackCellResponse]',
698
+ 'citations_required': 'bool',
699
+ 'conflict_visibility_q16': 'int',
700
+ 'estimated_tokens': 'int',
701
+ 'schema_version': "Literal['context_pack.v1']",
702
+ 'token_budget_tokens': 'int',
703
+ 'truncated': 'bool',
704
+ 'visible_conflict_count': 'int',
705
+ },
706
+ total=False,
707
+ )
708
+
709
+ OpenApiContextPackCellResponse = TypedDict(
710
+ 'OpenApiContextPackCellResponse',
711
+ {
712
+ 'access_decision': 'OpenApiContextAccessDecisionResponse | Any',
713
+ 'cell_id': 'int',
714
+ 'citation': 'str | Any',
715
+ 'estimated_tokens': 'int',
716
+ 'explain': 'OpenApiContextPackExplainResponse | Any',
717
+ 'payload_text': 'str',
718
+ 'provenance': 'OpenApiContextSpanProvenanceResponse | Any',
719
+ 'source_ref': 'OpenApiSourceRefResponse | Any',
720
+ },
721
+ total=False,
722
+ )
723
+
724
+ OpenApiContextAccessDecisionResponse = TypedDict(
725
+ 'OpenApiContextAccessDecisionResponse',
726
+ {
727
+ 'agent_id': 'int | Any',
728
+ 'auth_role': 'str',
729
+ 'cell_id': 'int',
730
+ 'decision': "Literal['allowed', 'not_recorded']",
731
+ 'policy': 'str',
732
+ 'principal_id': 'str',
733
+ 'reason': 'str',
734
+ 'scope': 'str',
735
+ 'scope_id': 'int',
736
+ },
737
+ total=False,
738
+ )
739
+
740
+ OpenApiContextSpanProvenanceResponse = TypedDict(
741
+ 'OpenApiContextSpanProvenanceResponse',
742
+ {
743
+ 'source_byte_end': 'int',
744
+ 'source_byte_start': 'int',
745
+ 'source_cell_id': 'int',
746
+ 'source_line_end': 'int',
747
+ 'source_line_start': 'int',
748
+ 'source_ref': 'OpenApiSourceRefResponse | Any',
749
+ },
750
+ total=False,
751
+ )
752
+
753
+ OpenApiContextPackExplainResponse = TypedDict(
754
+ 'OpenApiContextPackExplainResponse',
755
+ {
756
+ 'base_bm25': 'int',
757
+ 'matched_terms': 'list[str]',
758
+ 'redundancy_penalty': 'int',
759
+ 'score': 'int',
760
+ 'score_components': 'list[OpenApiContextPackScoreComponentResponse]',
761
+ 'source_freshness_bonus': 'int',
762
+ 'source_freshness_category': "Literal['unknown', 'stale', 'older', 'recent', 'current']",
763
+ 'source_freshness_q16': 'int',
764
+ 'source_trust_bonus': 'int',
765
+ 'source_trust_category': "Literal['unknown', 'low', 'medium', 'high', 'official']",
766
+ 'source_trust_q16': 'int',
767
+ 'why_selected': 'str',
768
+ },
769
+ total=False,
770
+ )
771
+
772
+ OpenApiContextPackScoreComponentResponse = TypedDict(
773
+ 'OpenApiContextPackScoreComponentResponse',
774
+ {
775
+ 'contribution': 'int',
776
+ 'name': 'str',
777
+ 'reason': 'str',
778
+ 'value': 'int',
779
+ },
780
+ total=False,
781
+ )
782
+
783
+ OpenApiSourceRefResponse = TypedDict(
784
+ 'OpenApiSourceRefResponse',
785
+ {
786
+ 'cell_range': 'str | Any',
787
+ 'confidence_q16': 'int',
788
+ 'document_id': 'str | Any',
789
+ 'json_path': 'str | Any',
790
+ 'page': 'int | Any',
791
+ 'row': 'int | Any',
792
+ 'source_id': 'str',
793
+ 'source_url': 'str | Any',
794
+ },
795
+ total=False,
796
+ )
797
+
798
+ OpenApiContextPackAnomalyResponse = TypedDict(
799
+ 'OpenApiContextPackAnomalyResponse',
800
+ {
801
+ 'cell_id': 'int | Any',
802
+ 'code': "Literal['redundant_cell', 'missing_citation', 'token_overload', 'scope_mismatch', 'insufficient_context', 'visible_conflict']",
803
+ 'message': 'str',
804
+ 'why_excluded': 'str | Any',
805
+ },
806
+ total=False,
807
+ )
808
+
809
+ OpenApiContextRequest = TypedDict(
810
+ 'OpenApiContextRequest',
811
+ {
812
+ 'embed_query': 'bool',
813
+ 'query_text': 'str | Any',
814
+ 'retrieve_aql': 'str',
815
+ },
816
+ total=False,
817
+ )
818
+
819
+ OpenApiContextTraceRequest = TypedDict(
820
+ 'OpenApiContextTraceRequest',
821
+ {
822
+ 'retrieve_aql': 'str',
823
+ 'verify_aql': 'str | Any',
824
+ },
825
+ total=False,
826
+ )
827
+
828
+ OpenApiContextTraceResponse = TypedDict(
829
+ 'OpenApiContextTraceResponse',
830
+ {
831
+ 'context': 'OpenApiContextPackResponse',
832
+ 'schema_version': "Literal['context_trace.v1']",
833
+ 'trace': 'OpenApiContextPipelineTrace',
834
+ 'verification': 'OpenApiVerificationReportResponse | Any',
835
+ },
836
+ total=False,
837
+ )
838
+
839
+ OpenApiContextPipelineTrace = TypedDict(
840
+ 'OpenApiContextPipelineTrace',
841
+ {
842
+ 'cells': 'list[OpenApiContextPipelineCellTrace]',
843
+ 'schema_version': "Literal['context_pipeline_trace.v1']",
844
+ 'stages': 'list[OpenApiContextPipelineStageTrace]',
845
+ 'total_duration_ms': 'int | Any',
846
+ 'verification': 'OpenApiContextPipelineVerificationTrace | Any',
847
+ },
848
+ total=False,
849
+ )
850
+
851
+ OpenApiContextPipelineStageTrace = TypedDict(
852
+ 'OpenApiContextPipelineStageTrace',
853
+ {
854
+ 'duration_ms': 'int | Any',
855
+ 'input_items': 'int',
856
+ 'name': "Literal['retrieve', 'pack', 'verify']",
857
+ 'notes': 'list[str]',
858
+ 'output_items': 'int',
859
+ },
860
+ total=False,
861
+ )
862
+
863
+ OpenApiContextPipelineCellTrace = TypedDict(
864
+ 'OpenApiContextPipelineCellTrace',
865
+ {
866
+ 'access_decision': "Literal['allowed', 'not_recorded'] | Any",
867
+ 'cell_id': 'int',
868
+ 'citation_present': 'bool',
869
+ 'estimated_tokens': 'int',
870
+ 'matched_terms': 'list[str]',
871
+ 'packed_rank': 'int',
872
+ 'provenance_present': 'bool',
873
+ 'score': 'int | Any',
874
+ 'score_components': 'list[OpenApiContextPipelineScoreComponentTrace]',
875
+ 'why_selected': 'str | Any',
876
+ },
877
+ total=False,
878
+ )
879
+
880
+ OpenApiContextPipelineScoreComponentTrace = TypedDict(
881
+ 'OpenApiContextPipelineScoreComponentTrace',
882
+ {
883
+ 'contribution': 'int',
884
+ 'name': 'str',
885
+ 'reason': 'str',
886
+ 'value': 'int',
887
+ },
888
+ total=False,
889
+ )
890
+
891
+ OpenApiContextPipelineVerificationTrace = TypedDict(
892
+ 'OpenApiContextPipelineVerificationTrace',
893
+ {
894
+ 'contradicting_cell_ids': 'list[int]',
895
+ 'contradicting_evidence_count': 'int',
896
+ 'evidence_cell_ids': 'list[int]',
897
+ 'evidence_count': 'int',
898
+ 'fact': 'str',
899
+ 'guard_count': 'int',
900
+ 'numeric_conflict_count': 'int',
901
+ 'status': "Literal['supported', 'insufficient', 'contradicted', 'mixed_evidence']",
902
+ },
903
+ total=False,
904
+ )
905
+
906
+ OpenApiLlmInferenceRequest = TypedDict(
907
+ 'OpenApiLlmInferenceRequest',
908
+ {
909
+ 'api_key': 'str | Any',
910
+ 'context_pack': 'dict[str, Any]',
911
+ 'enabled': 'bool',
912
+ 'model': "Literal['deterministic-echo-v1']",
913
+ 'prompt': 'str',
914
+ 'provider': "Literal['test_double']",
915
+ 'schema_version': "Literal['cortexdb.llm_inference.smoke_request.v1']",
916
+ },
917
+ total=False,
918
+ )
919
+
920
+ OpenApiLlmInferenceAuditResponse = TypedDict(
921
+ 'OpenApiLlmInferenceAuditResponse',
922
+ {
923
+ 'context_pack_only': 'bool',
924
+ 'prompt_body_logged': 'bool',
925
+ 'secrets_logged': 'bool',
926
+ },
927
+ total=False,
928
+ )
929
+
930
+ OpenApiLlmInferenceResponse = TypedDict(
931
+ 'OpenApiLlmInferenceResponse',
932
+ {
933
+ 'audit': 'OpenApiLlmInferenceAuditResponse',
934
+ 'citations': 'list[str]',
935
+ 'grounding': 'OpenApiAnswerGroundingReportResponse',
936
+ 'model': "Literal['deterministic-echo-v1']",
937
+ 'output': 'str',
938
+ 'provider': "Literal['test_double']",
939
+ 'schema_version': "Literal['cortexdb.llm_inference.smoke_response.v1']",
940
+ 'used_context_cell_ids': 'list[int]',
941
+ },
942
+ total=False,
943
+ )
944
+
945
+ OpenApiAnswerGroundingReportResponse = TypedDict(
946
+ 'OpenApiAnswerGroundingReportResponse',
947
+ {
948
+ 'answer_supported': 'bool',
949
+ 'rejected': 'bool',
950
+ 'spans': 'list[OpenApiAnswerGroundingSpanResponse]',
951
+ 'support_q16': 'int',
952
+ 'supported_span_count': 'int',
953
+ 'unsupported_span_count': 'int',
954
+ },
955
+ total=False,
956
+ )
957
+
958
+ OpenApiAnswerGroundingSpanResponse = TypedDict(
959
+ 'OpenApiAnswerGroundingSpanResponse',
960
+ {
961
+ 'citations': 'list[str]',
962
+ 'covered_terms': 'list[str]',
963
+ 'end_byte': 'int',
964
+ 'missing_terms': 'list[str]',
965
+ 'start_byte': 'int',
966
+ 'support_q16': 'int',
967
+ 'supported': 'bool',
968
+ 'supported_by_cell_ids': 'list[int]',
969
+ 'text': 'str',
970
+ },
971
+ total=False,
972
+ )
973
+
974
+ OpenApiGuardResponse = TypedDict(
975
+ 'OpenApiGuardResponse',
976
+ {
977
+ 'cell_id': 'int | Any',
978
+ 'code': "Literal['missing_citation', 'numeric_mismatch']",
979
+ 'message': 'str',
980
+ },
981
+ total=False,
982
+ )
983
+
984
+ OpenApiRememberResponse = TypedDict(
985
+ 'OpenApiRememberResponse',
986
+ {
987
+ 'cell_id': 'int',
988
+ 'seq': 'int',
989
+ 'ttl_seconds': 'int | Any',
990
+ },
991
+ total=False,
992
+ )
993
+
994
+ OpenApiVerificationReportResponse = TypedDict(
995
+ 'OpenApiVerificationReportResponse',
996
+ {
997
+ 'confidence_q16': 'int',
998
+ 'contradicting': 'list[OpenApiVerificationEvidenceResponse]',
999
+ 'contradicting_evidence': 'list[OpenApiVerificationEvidenceResponse]',
1000
+ 'evidence': 'list[OpenApiVerificationEvidenceResponse]',
1001
+ 'fact': 'str',
1002
+ 'guards': 'list[OpenApiGuardResponse]',
1003
+ 'numeric_conflicts': 'list[OpenApiNumericConflictResponse]',
1004
+ 'status': 'str',
1005
+ 'supporting': 'list[OpenApiVerificationEvidenceResponse]',
1006
+ 'verdict': 'str',
1007
+ },
1008
+ total=False,
1009
+ )
1010
+
1011
+ OpenApiNumericConflictResponse = TypedDict(
1012
+ 'OpenApiNumericConflictResponse',
1013
+ {
1014
+ 'left': 'str',
1015
+ 'metric': 'str',
1016
+ 'right': 'str',
1017
+ },
1018
+ total=False,
1019
+ )
1020
+
1021
+ OpenApiConflictIndexResponse = TypedDict(
1022
+ 'OpenApiConflictIndexResponse',
1023
+ {
1024
+ 'conflict_count': 'int',
1025
+ 'conflicts': 'list[OpenApiConflictRecordResponse]',
1026
+ 'schema_version': 'str',
1027
+ 'scope': 'str',
1028
+ },
1029
+ total=False,
1030
+ )
1031
+
1032
+ OpenApiConflictRecordResponse = TypedDict(
1033
+ 'OpenApiConflictRecordResponse',
1034
+ {
1035
+ 'cell_id': 'int',
1036
+ 'entity': 'str | Any',
1037
+ 'fact': 'str',
1038
+ 'metric': 'str | Any',
1039
+ 'relation_cell_id': 'int | Any',
1040
+ 'source': 'str | Any',
1041
+ 'source_cell_id': 'int | Any',
1042
+ 'source_trust_category': 'str',
1043
+ 'source_trust_q16': 'int',
1044
+ },
1045
+ total=False,
1046
+ )
1047
+
1048
+ OpenApiVerificationEvidenceResponse = TypedDict(
1049
+ 'OpenApiVerificationEvidenceResponse',
1050
+ {
1051
+ 'cell_id': 'int',
1052
+ 'citation': 'str | Any',
1053
+ 'match_kind': "Literal['exact_text', 'semantic_entailment', 'numeric_entailment', 'semantic_contradiction', 'numeric_contradiction', 'graph_contradiction']",
1054
+ 'match_score_q16': 'int',
1055
+ 'matched_terms': 'int',
1056
+ 'payload_text': 'str',
1057
+ 'source_trust_category': "Literal['unknown', 'low', 'medium', 'high', 'official']",
1058
+ 'source_trust_q16': 'int',
1059
+ },
1060
+ total=False,
1061
+ )
1062
+
1063
+ OpenApiIngestResponse = TypedDict(
1064
+ 'OpenApiIngestResponse',
1065
+ {
1066
+ 'chunks_ingested': 'int',
1067
+ 'facts_ingested': 'int',
1068
+ 'first_cell_id': 'int | Any',
1069
+ 'job_id': 'int | Any',
1070
+ 'rows_ingested': 'int',
1071
+ 'validation_report': 'OpenApiIngestionValidationReport',
1072
+ },
1073
+ total=False,
1074
+ )
1075
+
1076
+ OpenApiIngestionValidationReport = TypedDict(
1077
+ 'OpenApiIngestionValidationReport',
1078
+ {
1079
+ 'cells_seen': 'int',
1080
+ 'invalid_metadata_records': 'int',
1081
+ 'processed_records': 'int',
1082
+ 'skipped_items': 'list[OpenApiIngestionSkippedItem]',
1083
+ 'skipped_records': 'int',
1084
+ 'source_refs': 'list[OpenApiIngestionSourceRefReport]',
1085
+ 'warnings': 'list[OpenApiIngestionValidationIssue]',
1086
+ },
1087
+ total=False,
1088
+ )
1089
+
1090
+ OpenApiIngestionValidationIssue = TypedDict(
1091
+ 'OpenApiIngestionValidationIssue',
1092
+ {
1093
+ 'cell_id': 'int | Any',
1094
+ 'chunk_id': 'str | Any',
1095
+ 'code': 'str',
1096
+ 'message': 'str',
1097
+ },
1098
+ total=False,
1099
+ )
1100
+
1101
+ OpenApiIngestionSkippedItem = TypedDict(
1102
+ 'OpenApiIngestionSkippedItem',
1103
+ {
1104
+ 'input_ref': 'str | Any',
1105
+ 'reason': 'str',
1106
+ },
1107
+ total=False,
1108
+ )
1109
+
1110
+ OpenApiIngestionSourceRefReport = TypedDict(
1111
+ 'OpenApiIngestionSourceRefReport',
1112
+ {
1113
+ 'cell_id': 'int',
1114
+ 'cell_range': 'str | Any',
1115
+ 'chunk_id': 'str | Any',
1116
+ 'confidence_q16': 'int | Any',
1117
+ 'document_id': 'str | Any',
1118
+ 'has_source_ref': 'bool',
1119
+ 'json_path': 'str | Any',
1120
+ 'page': 'int | Any',
1121
+ 'row': 'int | Any',
1122
+ 'source_id': 'str | Any',
1123
+ 'source_url': 'str | Any',
1124
+ },
1125
+ total=False,
1126
+ )
1127
+
1128
+ OpenApiIngestionProgress = TypedDict(
1129
+ 'OpenApiIngestionProgress',
1130
+ {
1131
+ 'completed_items': 'int',
1132
+ 'failed_items': 'int',
1133
+ 'job_id': 'int',
1134
+ 'label': 'str',
1135
+ 'last_cell_id': 'int | Any',
1136
+ 'max_retries': 'int',
1137
+ 'message': 'str | Any',
1138
+ 'retry_count': 'int',
1139
+ 'status': "Literal['queued', 'running', 'completed', 'failed', 'cancelled']",
1140
+ 'total_items': 'int | Any',
1141
+ },
1142
+ total=False,
1143
+ )
1144
+
1145
+ OpenApiErrorResponse = TypedDict(
1146
+ 'OpenApiErrorResponse',
1147
+ {
1148
+ 'code': "Literal['not_found', 'bad_request', 'unauthorized', 'forbidden', 'payload_too_large', 'rate_limited', 'quota_exceeded', 'service_unavailable', 'internal', 'invalid_aql', 'unknown_field', 'unsupported_operator', 'permission_denied', 'database_busy', 'storage_corruption', 'invalid_tenant']",
1149
+ 'error': 'str',
1150
+ 'message': 'str',
1151
+ },
1152
+ total=False,
1153
+ )
1154
+
1155
+ OpenApiMetricsResponse = TypedDict(
1156
+ 'OpenApiMetricsResponse',
1157
+ {
1158
+ 'actor_queue_capacity': 'int',
1159
+ 'actor_queue_depth': 'int',
1160
+ 'actor_queue_wait_latency_ms': 'OpenApiLatencyHistogramResponse',
1161
+ 'actor_queue_wait_p95_ms': 'int',
1162
+ 'ann_fallbacks': 'int',
1163
+ 'ann_graph_nodes': 'int',
1164
+ 'ann_has_checkpoint': 'bool',
1165
+ 'ann_has_uncheckpointed_changes': 'bool',
1166
+ 'ann_no_fallback_allowed': 'int',
1167
+ 'ann_no_fallback_blocked': 'int',
1168
+ 'ann_no_fallback_requests': 'int',
1169
+ 'ann_persisted_segments': 'int',
1170
+ 'ann_search_latency_ms': 'OpenApiLatencyHistogramResponse',
1171
+ 'ann_search_requests': 'int',
1172
+ 'ann_total_edges': 'int',
1173
+ 'aql_query_cache': 'OpenApiAqlQueryCacheStatsResponse',
1174
+ 'backup_latest_age_seconds': 'int',
1175
+ 'checkpoint_seq': 'int',
1176
+ 'compaction_cells_compacted': 'int',
1177
+ 'compaction_duration_ms_total': 'int',
1178
+ 'compaction_input_bytes': 'int',
1179
+ 'compaction_pressure_q16': 'int',
1180
+ 'compactions_completed': 'int',
1181
+ 'compactions_triggered': 'int',
1182
+ 'current_seq': 'int',
1183
+ 'durable_storage_bytes': 'int',
1184
+ 'estimated_context_pack_bytes': 'int',
1185
+ 'estimated_index_bytes': 'int',
1186
+ 'estimated_memtable_bytes': 'int',
1187
+ 'estimated_total_memory_bytes': 'int',
1188
+ 'live_segment_bytes': 'int',
1189
+ 'live_segment_payload_bytes': 'int',
1190
+ 'live_segments': 'int',
1191
+ 'logical_payload_bytes': 'int',
1192
+ 'memtable_cells': 'int',
1193
+ 'memtable_payload_bytes': 'int',
1194
+ 'memtable_versions': 'int',
1195
+ 'principal_quota_body_bytes_allowed': 'int',
1196
+ 'principal_quota_body_bytes_rejected': 'int',
1197
+ 'principal_quota_queue_acquired': 'int',
1198
+ 'principal_quota_queue_rejected': 'int',
1199
+ 'principal_quota_requests_allowed': 'int',
1200
+ 'principal_quota_requests_rejected': 'int',
1201
+ 'request_count': 'int',
1202
+ 'request_duration_ms_total': 'int',
1203
+ 'request_id_client_provided': 'int',
1204
+ 'request_id_generated': 'int',
1205
+ 'request_rejected': 'int',
1206
+ 'retired_segment_bytes': 'int',
1207
+ 'retired_segments': 'int',
1208
+ 'space_amplification_q16': 'int',
1209
+ 'total_segment_bytes': 'int',
1210
+ 'validation_failures': 'int',
1211
+ 'wal_size_bytes': 'int',
1212
+ 'wal_writer_batches': 'int',
1213
+ 'wal_writer_bytes': 'int',
1214
+ 'wal_writer_fsyncs': 'int',
1215
+ 'wal_writer_records': 'int',
1216
+ 'write_amplification_q16': 'int',
1217
+ },
1218
+ total=False,
1219
+ )
1220
+
1221
+ OpenApiLatencyHistogramResponse = TypedDict(
1222
+ 'OpenApiLatencyHistogramResponse',
1223
+ {
1224
+ 'count': 'int',
1225
+ 'gt_1000_ms': 'int',
1226
+ 'le_1000_ms': 'int',
1227
+ 'le_100_ms': 'int',
1228
+ 'le_10_ms': 'int',
1229
+ 'le_500_ms': 'int',
1230
+ 'le_50_ms': 'int',
1231
+ 'sum_ms': 'int',
1232
+ },
1233
+ total=False,
1234
+ )
1235
+
1236
+ OpenApiCompactionResponse = TypedDict(
1237
+ 'OpenApiCompactionResponse',
1238
+ {
1239
+ 'cells_compacted': 'int',
1240
+ 'compacted': 'bool',
1241
+ 'duration_ms': 'int',
1242
+ 'input_bytes': 'int',
1243
+ 'output_bytes': 'int',
1244
+ 'segments_after': 'int',
1245
+ 'segments_before': 'int',
1246
+ },
1247
+ total=False,
1248
+ )
1249
+
1250
+ OpenApiCompactionMetricsResponse = TypedDict(
1251
+ 'OpenApiCompactionMetricsResponse',
1252
+ {
1253
+ 'compaction_cells_compacted': 'int',
1254
+ 'compaction_duration_ms_total': 'int',
1255
+ 'compaction_input_bytes': 'int',
1256
+ 'compactions_completed': 'int',
1257
+ 'compactions_triggered': 'int',
1258
+ },
1259
+ total=False,
1260
+ )
1261
+
1262
+ OpenApiCompactorStatusResponse = TypedDict(
1263
+ 'OpenApiCompactorStatusResponse',
1264
+ {
1265
+ 'compaction': 'OpenApiCompactionMetricsResponse',
1266
+ 'live_segments': 'int',
1267
+ 'retired_segments': 'int',
1268
+ },
1269
+ total=False,
1270
+ )
1271
+
1272
+ OpenApiCompactorControlResponse = TypedDict(
1273
+ 'OpenApiCompactorControlResponse',
1274
+ {
1275
+ 'background_enabled': 'bool',
1276
+ 'interval_seconds': 'int',
1277
+ 'paused': 'bool',
1278
+ },
1279
+ total=False,
1280
+ )
1281
+
1282
+ OpenApiAnnMetricsResponse = TypedDict(
1283
+ 'OpenApiAnnMetricsResponse',
1284
+ {
1285
+ 'deleted_vectors': 'int',
1286
+ 'graph_nodes': 'int',
1287
+ 'has_checkpoint': 'bool',
1288
+ 'has_uncheckpointed_changes': 'bool',
1289
+ 'persisted_segments': 'int',
1290
+ 'rebuild_count': 'int',
1291
+ 'total_edges': 'int',
1292
+ },
1293
+ total=False,
1294
+ )
1295
+
1296
+ OpenApiSearchExplainResponse = TypedDict(
1297
+ 'OpenApiSearchExplainResponse',
1298
+ {
1299
+ 'query_terms': 'list[str]',
1300
+ 'results': 'list[dict[str, Any]]',
1301
+ 'routing': 'OpenApiSearchRoutingDecision',
1302
+ 'search_mode': 'str',
1303
+ },
1304
+ total=False,
1305
+ )