@specstream/sdk 0.0.0-stage → 1.1.0

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,2533 @@
1
+ export interface Schemas {
2
+ "AcceptedRow": {
3
+ "target_evidence"?: ({
4
+ [key: string]: unknown;
5
+ } | null);
6
+ "worded_evidence"?: ({
7
+ [key: string]: unknown;
8
+ } | null);
9
+ "lineage"?: (Schemas["MatchLineage"] | null);
10
+ "spec_version"?: "accepted_row.v1";
11
+ "entity_id": string;
12
+ "ordinal": number;
13
+ "cells": Array<Schemas["RowCell"]>;
14
+ "predicates": Array<Schemas["PredicateEvidence"]>;
15
+ "match_proof"?: (Schemas["LogicalProof"] | null);
16
+ "billable": boolean;
17
+ "contact_visibility": Schemas["ContactVisibility"];
18
+ "locked"?: boolean;
19
+ "details"?: Array<Schemas["RowCell"]>;
20
+ };
21
+ "AccountData": {
22
+ "account_id": string;
23
+ "email": string;
24
+ "finds": Array<Schemas["Find"]>;
25
+ };
26
+ "AccountDeleteData": {
27
+ "account_id": string;
28
+ "access_revoked"?: true;
29
+ "private_work_erased"?: true;
30
+ "recoverable"?: false;
31
+ "grace_days"?: (number | null);
32
+ };
33
+ "AccountPhotoData": {
34
+ "version": number;
35
+ "url": (string | null);
36
+ };
37
+ "AccountSpendData": {
38
+ "spend_ceiling_cents": number;
39
+ "remaining_spend_kind"?: "authorization_ceiling";
40
+ };
41
+ "AccountSpendRequest": {
42
+ "spend_ceiling_cents": number;
43
+ };
44
+ "AcquiredRecordCountProof": {
45
+ "spec_version"?: "acquired_record_count_proof.v1";
46
+ "scope"?: "published_acquired_native_records";
47
+ "collection_complete": boolean;
48
+ "members_seen": number;
49
+ "lower_bound": number;
50
+ "upper_bound"?: (number | null);
51
+ "matching_members": Array<number>;
52
+ "unresolved_members": Array<number>;
53
+ "witnesses": Array<Schemas["AcquiredRecordWitness"]>;
54
+ "witnesses_complete": boolean;
55
+ };
56
+ "AcquiredRecordWitness": {
57
+ "source_pointer": string;
58
+ "predicates": Array<Schemas["PredicateEvidence"]>;
59
+ "proof": Schemas["LogicalProof"];
60
+ "field_pointers"?: {
61
+ [key: string]: string;
62
+ };
63
+ "member_index": number;
64
+ "record_id": string;
65
+ "source_ref": Schemas["PredicateSourceRef"];
66
+ "source_url": string;
67
+ "observed_at": string;
68
+ };
69
+ "AcquisitionIntent": {
70
+ "spec_version"?: "acquisition_intent.v1";
71
+ "source_hash": string;
72
+ "ast_hash"?: (string | null);
73
+ "target"?: (string | null);
74
+ "discovery_terms"?: Array<string>;
75
+ "requirement_refs"?: Array<string>;
76
+ "output_refs"?: Array<string>;
77
+ "unresolved_span_ids"?: Array<string>;
78
+ "can_execute"?: boolean;
79
+ "blocked_reasons"?: Array<string>;
80
+ };
81
+ "ActivityPage": {
82
+ "items": Array<{
83
+ [key: string]: unknown;
84
+ }>;
85
+ "next_cursor"?: (string | null);
86
+ };
87
+ "AnalyticsEvent": {
88
+ "name": "page_viewed" | "query_started" | "support_opened";
89
+ "props"?: {
90
+ [key: string]: string;
91
+ };
92
+ "occurred_at"?: (string | null);
93
+ };
94
+ "AppleStoreNotification": {
95
+ "signedPayload": string;
96
+ };
97
+ "AssessedSpan": {
98
+ "start": number;
99
+ "end": number;
100
+ "role": "subject" | "quantity" | "geography" | "condition" | "output" | "syntax" | "unresolved";
101
+ "normalized": string;
102
+ "kind": "identity" | "spelling" | "slang" | "typography" | "translation" | "paraphrase";
103
+ "reason": string;
104
+ };
105
+ "BilledUnit": {
106
+ "id": string;
107
+ "unit_cents": number;
108
+ };
109
+ "BringBackOption": {
110
+ "field_id": string;
111
+ "label": string;
112
+ "value_type": string;
113
+ "recommended": boolean;
114
+ "contact": boolean;
115
+ "definition"?: string;
116
+ };
117
+ "CalendarSchedule": {
118
+ "startAt": string;
119
+ "hour": number;
120
+ "minute"?: number;
121
+ "timezone": string;
122
+ "type": "hours" | "days" | "weeks" | "months" | "years";
123
+ "interval": number;
124
+ "daysOfWeek"?: Array<number>;
125
+ };
126
+ "CancelData": {
127
+ "find_id": string;
128
+ "status": Schemas["FindStatus"];
129
+ "cancel_requested"?: boolean;
130
+ };
131
+ "CapacityAuthorityRequest": {
132
+ "actor_key": string;
133
+ "project_id"?: (string | null);
134
+ "operations": Array<"find" | "extend" | "add_facts" | "refresh" | "retained">;
135
+ "scope_hash"?: (string | null);
136
+ "quote_id"?: (string | null);
137
+ "per_run_cents": number;
138
+ "period_cents": number;
139
+ "valid_until": string;
140
+ };
141
+ "CapacityAuthorizeRequest": {
142
+ "quote_id": string;
143
+ "quote_hash": string;
144
+ "idempotency_key": string;
145
+ "confirm_max_cents": number;
146
+ "authority_id"?: (string | null);
147
+ };
148
+ "CapacityBalanceData": {
149
+ "currency"?: "USD" | "EUR";
150
+ "available_cents": number;
151
+ "reserved_cents": number;
152
+ "payment_hold": boolean;
153
+ "internal_unlimited": boolean;
154
+ "hold_reason"?: (string | null);
155
+ "lots"?: (Array<Schemas["CapacityLotData"]> | null);
156
+ "free_cycle"?: (Schemas["CapacityFreeCycleData"] | null);
157
+ "trial_ending"?: (Schemas["CapacityTrialEndingData"] | null);
158
+ "free_allowance": Schemas["CapacityFreeAllowanceData"];
159
+ "membership"?: (Schemas["CapacityMembershipData"] | null);
160
+ "budget_period": string;
161
+ "monthly_limit_cents"?: (number | null);
162
+ "period_spent_or_reserved_cents": number;
163
+ };
164
+ "CapacityBalanceLimitRequest": {
165
+ "monthly_cents": (number | null);
166
+ };
167
+ "CapacityCustomRequest": {
168
+ "brief": string;
169
+ };
170
+ "CapacityEntitlementsData": {
171
+ "plan": "free" | "starter" | "pro" | "team" | "enterprise";
172
+ "plan_name": string;
173
+ "members_limit": (number | null);
174
+ "members_used": number;
175
+ "current_lists_limit": (number | null);
176
+ "current_lists_used": number;
177
+ "finds_at_once": number;
178
+ "finds_per_hour": number;
179
+ "capabilities": Schemas["CapacityPlanCapabilities"];
180
+ "unlock": {
181
+ [key: string]: "starter" | "pro" | "team" | "enterprise";
182
+ };
183
+ };
184
+ "CapacityExecutionData": {
185
+ "reservation_id": string;
186
+ "find_id"?: (string | null);
187
+ "maximum_cents": number;
188
+ "state": "reserved" | "running" | "committed" | "released";
189
+ "replay": boolean;
190
+ };
191
+ "CapacityFreeAllowanceData": {
192
+ "status": "unclaimed" | "review" | "approved" | "granted";
193
+ "message"?: (string | null);
194
+ };
195
+ "CapacityFreeCycleData": {
196
+ "first_month": boolean;
197
+ "amount_cents": number;
198
+ "period_start": string;
199
+ "period_end": string;
200
+ };
201
+ "CapacityFundingData": {
202
+ "funding_id": string;
203
+ "kind": "topup" | "subscription";
204
+ "state": "pending" | "open" | "paid" | "expired" | "failed";
205
+ "currency"?: "USD" | "EUR";
206
+ "amount_cents": number;
207
+ "plan_id"?: (string | null);
208
+ "checkout_url"?: (string | null);
209
+ "expires_at": string;
210
+ "intended_quote_id"?: (string | null);
211
+ "error"?: (string | null);
212
+ "execution_authorized"?: false;
213
+ "next_action": "review_quote" | "open_checkout" | "wait" | "none";
214
+ };
215
+ "CapacityFundingRequest": {
216
+ "kind": "topup" | "subscription";
217
+ "amount_cents"?: (number | null);
218
+ "plan_id"?: (string | null);
219
+ "intended_quote_id"?: (string | null);
220
+ "idempotency_key": string;
221
+ "currency"?: ("usd" | "eur" | null);
222
+ };
223
+ "CapacityHistoryData": {
224
+ "events": Array<Schemas["CapacityHistoryEventData"]>;
225
+ };
226
+ "CapacityHistoryEventData": {
227
+ "event_key": string;
228
+ "kind": string;
229
+ "payload": {
230
+ [key: string]: unknown;
231
+ };
232
+ "created_at": string;
233
+ };
234
+ "CapacityLotData": {
235
+ "lot_id": string;
236
+ "kind": "free" | "free_monthly" | "purchased" | "membership" | "service_refund" | "bonus";
237
+ "available_cents": number;
238
+ "reserved_cents": number;
239
+ "settled_cents": number;
240
+ "expired_cents": number;
241
+ "expires_at"?: (string | null);
242
+ "issued_cents"?: (number | null);
243
+ "issued_at"?: (string | null);
244
+ };
245
+ "CapacityMembershipData": {
246
+ "plan_id": string;
247
+ "pending_plan_id"?: (string | null);
248
+ "billed_by"?: "card" | "app_store" | "google_play";
249
+ "next_plan"?: (string | null);
250
+ "upgrade_pending"?: boolean;
251
+ "payment_action_url"?: (string | null);
252
+ "change_status"?: ("pending" | "running" | "succeeded" | "failed" | "review" | null);
253
+ "change_error"?: (string | null);
254
+ "status": string;
255
+ "cancel_at_period_end": boolean;
256
+ "paid_period_start"?: (string | null);
257
+ "paid_period_end"?: (string | null);
258
+ };
259
+ "CapacityMembershipRequest": {
260
+ "action": "change" | "cancel" | "resume";
261
+ "plan_id"?: (string | null);
262
+ "idempotency_key": string;
263
+ };
264
+ "CapacityMembershipStatusData": {
265
+ "membership"?: (Schemas["CapacityMembershipData"] | null);
266
+ };
267
+ "CapacityPlanCapabilities": {
268
+ "schedules": boolean;
269
+ "deliveries": boolean;
270
+ "tables": boolean;
271
+ "automation": boolean;
272
+ "chat": boolean;
273
+ "route_planner": boolean;
274
+ "crm": boolean;
275
+ "sso": boolean;
276
+ "scim": boolean;
277
+ "audit_export": boolean;
278
+ };
279
+ "CapacityQuoteData": {
280
+ "pricing_version"?: "capacity.v1";
281
+ "quote_id": string;
282
+ "quote_hash": string;
283
+ "currency"?: "USD" | "EUR";
284
+ "maximum_cents": number;
285
+ "expires_at": string;
286
+ "scope": {
287
+ [key: string]: unknown;
288
+ };
289
+ "terms": {
290
+ "unit_cents"?: number;
291
+ "contact_unit_cents"?: number;
292
+ "contact_phone_unit_cents"?: number;
293
+ "check_unit_cents"?: number;
294
+ "required_check_unit_cents"?: number;
295
+ "required_check_allowance"?: number;
296
+ "related_block_cents"?: number;
297
+ "undelivered_unit_cents"?: number;
298
+ "retail_rate"?: {
299
+ "version"?: string;
300
+ "recheck"?: boolean;
301
+ "contact_unit_cents"?: (number | null);
302
+ [key: string]: unknown;
303
+ };
304
+ [key: string]: unknown;
305
+ };
306
+ "cost_basis": "estimated" | "measured";
307
+ "cost_profile_version": string;
308
+ "retained_work_cents"?: 0;
309
+ "existing_execution"?: ({
310
+ [key: string]: unknown;
311
+ } | null);
312
+ "can_authorize"?: boolean;
313
+ };
314
+ "CapacityQuoteRequest": {
315
+ "ast_hash": string;
316
+ "operation"?: "find" | "extend" | "add_facts" | "refresh" | "retained";
317
+ "parent_find_id"?: (string | null);
318
+ "revision_id"?: (string | null);
319
+ "project_id"?: (string | null);
320
+ "source_import_id"?: (string | null);
321
+ "source_row_ids"?: Array<string>;
322
+ "requested_units"?: number;
323
+ "minimum_units"?: (number | null);
324
+ "selected_entity_ids"?: (Array<string> | null);
325
+ };
326
+ "CapacityReferralData": {
327
+ "code": string;
328
+ "link": string;
329
+ "signed_up": number;
330
+ "rewarded": number;
331
+ "earned_cents": number;
332
+ };
333
+ "CapacityReferralVisitData": {
334
+ "attributed": boolean;
335
+ };
336
+ "CapacityReferralVisitRequest": {
337
+ "ref": string;
338
+ };
339
+ "CapacityRefundClaimData": {
340
+ "claim_id": string;
341
+ "status": string;
342
+ "find_id": string;
343
+ "unit_ids": Array<string>;
344
+ "created_at": string;
345
+ "resolved_at": (string | null);
346
+ "support_ticket_id": (string | null);
347
+ };
348
+ "CapacityRefundClaimsData": {
349
+ "claims": Array<Schemas["CapacityRefundClaimData"]>;
350
+ };
351
+ "CapacityRefundRequest": {
352
+ "reservation_id": string;
353
+ "unit_ids": Array<string>;
354
+ "reason": string;
355
+ "idempotency_key": string;
356
+ };
357
+ "CapacitySchedulePatch": {
358
+ "expected_version": number;
359
+ "state": "active" | "paused" | "deleted";
360
+ };
361
+ "CapacityScheduleRequest": {
362
+ "idempotency_key": string;
363
+ "scope": Schemas["CapacityQuoteRequest"];
364
+ "cadence_seconds": number;
365
+ "first_due_at": string;
366
+ "per_run_cents": number;
367
+ "period_cents": number;
368
+ "calendar_schedule"?: (Schemas["CalendarSchedule"] | null);
369
+ "valid_until": string;
370
+ };
371
+ "CapacityTrialEndingData": {
372
+ "event"?: "trial_ending";
373
+ "expires_at": string;
374
+ "remaining_free_cents": number;
375
+ };
376
+ "CheckableRewording": {
377
+ "text": string;
378
+ "condition": (Schemas["Predicate"] | null);
379
+ "operations"?: Array<Schemas["ChipOperation"]>;
380
+ };
381
+ "Chip": {
382
+ "chip_id": string;
383
+ "category": Schemas["ChipCategory"];
384
+ "field_id"?: (string | null);
385
+ "label": string;
386
+ "value"?: (boolean | number | string | Array<string> | Schemas["CountMatches"] | null);
387
+ "status": Schemas["ChipStatus"];
388
+ };
389
+ "ChipCategory": "type" | "category" | "place" | "rows" | "predicate" | "output";
390
+ "ChipOp": "set" | "remove";
391
+ "ChipOperation": {
392
+ "op": Schemas["ChipOp"];
393
+ "chip_id": string;
394
+ "value"?: (boolean | number | string | Array<string> | Schemas["CountMatches"] | null);
395
+ };
396
+ "ChipStatus": "resolved" | "ambiguous" | "unsupported" | "unresolved";
397
+ "CloudImportInput": {
398
+ "connection_id": string;
399
+ "import_id": string;
400
+ "name": string;
401
+ "project_id"?: (string | null);
402
+ "link": string;
403
+ "keepUpdated"?: boolean;
404
+ "mapping"?: {
405
+ [key: string]: string;
406
+ };
407
+ "source_sha256"?: (string | null);
408
+ "identity_column"?: (string | null);
409
+ "sheet_id"?: (string | null);
410
+ };
411
+ "CloudImportPreview": {
412
+ "connection_id": string;
413
+ "link": string;
414
+ "sheet_id"?: (string | null);
415
+ };
416
+ "CloudImportUpdate": {
417
+ "keepUpdated": boolean;
418
+ };
419
+ "CollectionFilter": {
420
+ "record_ids"?: (Array<string> | null);
421
+ "source_collection_ids"?: (Array<string> | null);
422
+ "bbox"?: (Array<unknown> | null);
423
+ };
424
+ "CombineCollectionsInput": {
425
+ "request_id": string;
426
+ "name": string;
427
+ "collection_ids": Array<string>;
428
+ "project_id"?: (string | null);
429
+ };
430
+ "CommerceData": {
431
+ "spec_version"?: "commerce.v1";
432
+ "find_id": string;
433
+ "payment_status": string;
434
+ "fulfillment_status": string;
435
+ "settlement_status": "none" | "pending" | "settled" | "attention";
436
+ "access_state": string;
437
+ "access_allowed": boolean;
438
+ "next_action": "wait" | "retrieve" | "contact_support" | "none";
439
+ "currency"?: "USD";
440
+ "amount_authorized_cents": number;
441
+ "amount_captured_cents": number;
442
+ "amount_refunded_cents": number;
443
+ "delivered_rows": number;
444
+ "fulfilled_at": (string | null);
445
+ "access_expires_at": (string | null);
446
+ "cancel_requested": boolean;
447
+ "capacity_offer": Schemas["CapacityQuoteData"];
448
+ "billing_model"?: "capacity.v1";
449
+ "reservation_id": string;
450
+ "billed_unit_ids"?: Array<string>;
451
+ "billed_units"?: Array<Schemas["BilledUnit"]>;
452
+ "shortfall"?: (Schemas["Shortfall"] | null);
453
+ };
454
+ "CompilerStatus": "runnable" | "needs_edit" | "rejected" | "capability_pending" | "compiler_unavailable" | "unquoted_plan";
455
+ "ConditionGrade": {
456
+ "part_id": string;
457
+ "field_id": (string | null);
458
+ "check": "instant" | "page" | "own_words";
459
+ "single_source"?: (string | null);
460
+ };
461
+ "ConnectedToolData": {
462
+ "result": {
463
+ [key: string]: unknown;
464
+ };
465
+ };
466
+ "ContactBadge": "Phone on file" | "Email published" | "Email not published" | "Site on file";
467
+ "ContactVisibility": "full" | "badge" | "hidden";
468
+ "CopyCollectionInput": {
469
+ "request_id": string;
470
+ "name": string;
471
+ "project_id"?: (string | null);
472
+ };
473
+ "CountComparison": {
474
+ "op": "gte" | "gt" | "lte" | "lt" | "eq" | "ne";
475
+ "value": number;
476
+ };
477
+ "CountMatches": {
478
+ "condition"?: (Schemas["MemberExpression"] | Schemas["MemberPredicate"] | null);
479
+ "count": Schemas["CountComparison"];
480
+ };
481
+ "CustomerWebhookData": {
482
+ "hook_id": string;
483
+ "event_name": string;
484
+ "events": Array<"find.completed" | "monitor.found" | "collection.records_added">;
485
+ "secret": string;
486
+ };
487
+ "CustomerWebhookListData": {
488
+ "webhooks": Array<Schemas["CustomerWebhookListItem"]>;
489
+ };
490
+ "CustomerWebhookListItem": {
491
+ "hook_id": string;
492
+ "url": string;
493
+ "event_name": string;
494
+ "events": Array<"find.completed" | "monitor.found" | "collection.records_added">;
495
+ "revoked": boolean;
496
+ "key_rotation_required": boolean;
497
+ };
498
+ "CustomerWebhookRequest": {
499
+ "url": string;
500
+ "event_name"?: "find.completed" | "monitor.found" | "collection.records_added";
501
+ "events"?: (Array<"find.completed" | "monitor.found" | "collection.records_added"> | null);
502
+ };
503
+ "DecisionPage": {
504
+ "execution_manifest"?: (Schemas["ExecutionManifest"] | null);
505
+ "find_id": string;
506
+ "decisions": Array<Schemas["MatchDecision"]>;
507
+ "next_cursor"?: (string | null);
508
+ };
509
+ "DeliveryProjection": {
510
+ "execution_manifest"?: (Schemas["ExecutionManifest"] | null);
511
+ "spec_version"?: "delivery.v1";
512
+ "find_id": string;
513
+ "ast_hash": string;
514
+ "snapshot_id": string;
515
+ "generated_at": string;
516
+ "lineage"?: (Schemas["FindLineage"] | null);
517
+ "rows": Array<Schemas["AcceptedRow"]>;
518
+ };
519
+ "DeliveryReference": {
520
+ "find_id": string;
521
+ "ast_hash": string;
522
+ "snapshot_id": string;
523
+ "generated_at": string;
524
+ };
525
+ "DestinationRequest": {
526
+ "selection": {
527
+ [key: string]: unknown;
528
+ };
529
+ };
530
+ "DestinationSyncInput": {
531
+ "connection_id": string;
532
+ "collectionId": string;
533
+ "destination_sha256": string;
534
+ "keepSending"?: boolean;
535
+ };
536
+ "DestinationSyncUpdate": {
537
+ "keepSending": boolean;
538
+ };
539
+ "DictationCapabilities": {
540
+ "spec_version"?: "dictation.v1";
541
+ "configured": boolean;
542
+ "ready": boolean;
543
+ "provider": ("cloudflare" | "groq" | null);
544
+ "model": (string | null);
545
+ "languages"?: Array<string>;
546
+ "language_detection"?: "automatic_unless_hint_supplied";
547
+ "content_types"?: Array<string>;
548
+ "max_upload_bytes"?: number;
549
+ "max_audio_seconds"?: number;
550
+ "mode"?: "complete_utterances";
551
+ "processing"?: "hosted_api";
552
+ "audio_retention"?: "request_memory_only";
553
+ "automatically_executes"?: false;
554
+ "multilingual_intent_enabled"?: false;
555
+ "readiness_scope"?: "configuration_and_decoder_not_provider_health";
556
+ };
557
+ "DictationInput": {
558
+ "document_id": string;
559
+ "revision": number;
560
+ "recording_id": string;
561
+ "sequence"?: number;
562
+ "base_text_hash": string;
563
+ "language"?: (string | null);
564
+ "expected_audio_sha256"?: (string | null);
565
+ };
566
+ "DictationResult": {
567
+ "spec_version"?: "dictation.v1";
568
+ "input": Schemas["DictationInput"];
569
+ "audio_sha256": string;
570
+ "request_hash": string;
571
+ "duration_seconds": number;
572
+ "status": "transcribed" | "uncertain" | "no_speech";
573
+ "text": string;
574
+ "transcript_sha256": string;
575
+ "detected_language"?: (string | null);
576
+ "provider": ("cloudflare" | "groq" | null);
577
+ "model": (string | null);
578
+ "segments"?: Array<Schemas["TranscriptSegment"]>;
579
+ "warnings"?: Array<string>;
580
+ "transcription_only"?: true;
581
+ "translation_requested"?: false;
582
+ "audio_retention"?: "request_memory_only";
583
+ "machine_generated"?: true;
584
+ };
585
+ "Discovery": {
586
+ "geography_scope"?: ("worldwide.v1" | null);
587
+ "term": string;
588
+ "platforms"?: Array<string>;
589
+ "searches"?: Array<string>;
590
+ "role_phrases"?: Array<string>;
591
+ "seed_identifiers"?: {
592
+ [key: string]: string;
593
+ };
594
+ };
595
+ "DisplayAbsence": "Not published" | "Couldn't check";
596
+ "EntityKind": "place" | "creator" | "organization" | "storefront_product" | "app_listing" | "job_posting" | "scholarly_work" | "tender" | "grant" | "software_repository" | "software_package" | "dataset" | "clinical_trial" | "regulatory_document" | "vulnerability" | "book" | "podcast" | "web_page" | "knowledge_entity" | "person";
597
+ "EntityType": "local_business" | "creator" | "organization" | "storefront_product" | "app_listing" | "job_posting" | "scholarly_work" | "tender" | "grant" | "software_repository" | "software_package" | "dataset" | "clinical_trial" | "regulatory_document" | "vulnerability" | "book" | "podcast" | "web_page" | "knowledge_entity" | "person";
598
+ "EquivalenceRecord": {
599
+ "assessment_id": string;
600
+ "provider": string;
601
+ "model": string;
602
+ "verdict": "equivalent";
603
+ "segments": Array<Schemas["AssessedSpan"]>;
604
+ "assessed_ast_hash": (string | null);
605
+ "segment_verdicts": Array<"equivalent">;
606
+ "reason": string;
607
+ "meaning"?: "recorded_model_judgment_not_source_fact";
608
+ };
609
+ "ErrorBody": {
610
+ "code": Schemas["ErrorCode"];
611
+ "message": string;
612
+ "details"?: {
613
+ [key: string]: unknown;
614
+ };
615
+ };
616
+ "ErrorCode": "unsupported_query" | "unsupported_predicate" | "unsupported_entity_family" | "ambiguous_geo" | "capability_pending" | "source_blocked" | "challenge_page" | "unquoted_plan" | "compiler_unavailable" | "parse_failed" | "payments_not_live" | "capacity" | "kill_switch" | "internal_failure" | "plan_required";
617
+ "ErrorEnvelope": {
618
+ "error": Schemas["ErrorBody"];
619
+ };
620
+ "EvidenceTime": {
621
+ "contract"?: "source-time.v1";
622
+ "state"?: "historical_capture";
623
+ "captured_at": string;
624
+ "retrieved_at": string;
625
+ "original_url"?: (string | null);
626
+ "archive": "commoncrawl" | "wayback" | "arquivo";
627
+ };
628
+ "ExecutionManifest": {
629
+ "version"?: "evidence-bound.v1";
630
+ "policy_hash": string;
631
+ "decision_root": string;
632
+ "plan_version": string;
633
+ "ast_hash": string;
634
+ "registry_version": string;
635
+ "decision_count": number;
636
+ "stages": {
637
+ [key: string]: number;
638
+ };
639
+ "semantic_judgments": number;
640
+ "unavailable_judgments": number;
641
+ "qualified_matches": number;
642
+ "unknown_never_promoted": boolean;
643
+ "replay_verified": boolean;
644
+ "replay_scope": string;
645
+ "live_sources_can_change": boolean;
646
+ "sealed": boolean;
647
+ };
648
+ "ExportData": {
649
+ "download_url": string;
650
+ "filename": string;
651
+ "expires_in_s"?: number;
652
+ "single_use"?: boolean;
653
+ };
654
+ "ExportFormat": "xlsx" | "csv" | "json" | "html" | "kml" | "geojson";
655
+ "ExportRequest": {
656
+ "format": Schemas["ExportFormat"];
657
+ };
658
+ "FieldObservation": {
659
+ "entity_id": string;
660
+ "field_id": string;
661
+ "value": (unknown | null);
662
+ "normalized_value": (string | null);
663
+ "source": string;
664
+ "source_url": (string | null);
665
+ "observed_at": string;
666
+ "observation_id": string;
667
+ "request_hash": string;
668
+ "join_method": (Schemas["JoinMethod"] | null);
669
+ "join_confidence"?: (number | null);
670
+ "null_reason": (Schemas["NullReason"] | null);
671
+ "selected"?: boolean;
672
+ "value_complete"?: (boolean | null);
673
+ "source_record_id"?: (string | null);
674
+ "source_pointer"?: (string | null);
675
+ "source_response_sha256"?: (string | null);
676
+ "source_time"?: (Schemas["EvidenceTime"] | null);
677
+ };
678
+ "FileImportCommand": {
679
+ "import_id": string;
680
+ "name": string;
681
+ "format": string;
682
+ "project_id"?: (string | null);
683
+ "sheet"?: (string | null);
684
+ "content"?: (string | null);
685
+ "content_base64"?: (string | null);
686
+ "mapping"?: ({
687
+ [key: string]: string;
688
+ } | null);
689
+ };
690
+ "FileImportInput": {
691
+ "import_id": string;
692
+ "name": string;
693
+ "format": "csv" | "xlsx";
694
+ "project_id"?: (string | null);
695
+ "sheet"?: (string | null);
696
+ };
697
+ "Find": {
698
+ "spec_version"?: "find.v1";
699
+ "find_id": string;
700
+ "parent_find_id": (string | null);
701
+ "query_id": string;
702
+ "guest_id": string;
703
+ "account_id": (string | null);
704
+ "project_id"?: (string | null);
705
+ "status": Schemas["FindStatus"];
706
+ "ast_hash": string;
707
+ "spec"?: (Schemas["QueryAst"] | null);
708
+ "operation"?: (Schemas["FindOperation"] | null);
709
+ "revisit"?: (Schemas["RevisitSummary"] | null);
710
+ "requested_count": number;
711
+ "accepted_count": number;
712
+ "stop_reason": (Schemas["StopReason"] | null);
713
+ "error_code": (Schemas["ErrorCode"] | null);
714
+ "immutable": boolean;
715
+ "created_at": string;
716
+ "updated_at": string;
717
+ "expires_at": (string | null);
718
+ "commerce"?: (Schemas["CommerceData"] | null);
719
+ "queue_position"?: (number | null);
720
+ "missing_required_details"?: {
721
+ [key: string]: number;
722
+ };
723
+ };
724
+ "FindContinuationRequest": {
725
+ "operation": "extend" | "refresh" | "add_facts";
726
+ "idempotency_key": string;
727
+ "additional_rows"?: (number | null);
728
+ "ast_hash"?: (string | null);
729
+ "selected_entity_ids"?: (Array<string> | null);
730
+ };
731
+ "FindLineage": {
732
+ "find_id": string;
733
+ "parent_find_id": (string | null);
734
+ "spec_id": string;
735
+ "revision_id": string;
736
+ "operation": "find" | "extend" | "add_facts" | "refresh";
737
+ };
738
+ "FindOperation": {
739
+ "operation": "extend" | "refresh" | "add_facts";
740
+ "parent_find_id": string;
741
+ "root_find_id": string;
742
+ "parent_snapshot_id": string;
743
+ "context_hash": string;
744
+ };
745
+ "FindRowsPage": {
746
+ "find_id": string;
747
+ "status": Schemas["FindStatus"];
748
+ "accepted_count": number;
749
+ "rows": Array<Schemas["AcceptedRow"]>;
750
+ "possible"?: Array<Schemas["PossibleRow"]>;
751
+ "entitlement": string;
752
+ "commerce"?: (Schemas["CommerceData"] | null);
753
+ "next_cursor"?: (string | null);
754
+ "delivery"?: (Schemas["DeliveryReference"] | null);
755
+ };
756
+ "FindStatus": "queued" | "planning" | "running" | "completed" | "partial" | "failed" | "canceled" | "expired";
757
+ "Geo": ({
758
+ "kind": Schemas["GeoKind"];
759
+ "query_label": string;
760
+ "country_code"?: (string | null);
761
+ "admin1_code": (string | null);
762
+ "locality": (string | null);
763
+ "postal_code": (string | null);
764
+ "status": Schemas["GeoStatus"];
765
+ "source": Schemas["GeoSource"];
766
+ "geoname_id"?: (number | null);
767
+ "near"?: (Schemas["Near"] | null);
768
+ } & (unknown));
769
+ "GeoKind": "country" | "locality" | "admin1";
770
+ "GeoSource": "gazetteer" | "catalog" | "alias" | "well_formed";
771
+ "GeoStatus": "qualified" | "ambiguous" | "unqualified";
772
+ "Healthz": {
773
+ "contract"?: "finder.cross-source.v1";
774
+ "db": "ok" | "down";
775
+ "payments_live": boolean;
776
+ "worker_age_s": (number | null);
777
+ "kill_switch": boolean;
778
+ };
779
+ "ImportRejectedRow": {
780
+ "row_number": number;
781
+ "reason": string;
782
+ "id"?: (string | null);
783
+ };
784
+ "InferredClause": {
785
+ "field_id": string;
786
+ "reason": string;
787
+ };
788
+ "InputIdentityAgreement": {
789
+ "field": string;
790
+ "supplied": string;
791
+ "observed": Schemas["FieldObservation"];
792
+ };
793
+ "InputIdentityCandidate": {
794
+ "name": string;
795
+ "website"?: (string | null);
796
+ "native_identity": {
797
+ [key: string]: string;
798
+ };
799
+ "agreements"?: Array<Schemas["InputIdentityAgreement"]>;
800
+ "conflicting_fields"?: Array<string>;
801
+ "missing_fields"?: Array<string>;
802
+ };
803
+ "InputIdentityResolution": {
804
+ "policy"?: "name-location.v1";
805
+ "status": "matched" | "ambiguous" | "needs_context" | "unresolved" | "unavailable";
806
+ "reason": string;
807
+ "candidates"?: Array<Schemas["InputIdentityCandidate"]>;
808
+ "candidates_considered": number;
809
+ "candidates_truncated"?: boolean;
810
+ "scope"?: "observed_source_candidates";
811
+ "native_identity"?: ({
812
+ [key: string]: string;
813
+ } | null);
814
+ };
815
+ "InvestigationBatch": {
816
+ "batch_id": string;
817
+ "function_id": string;
818
+ "name": string;
819
+ "collection_id": string;
820
+ "state": string;
821
+ "reason": (string | null);
822
+ "maximum_cents": number;
823
+ "currency": string;
824
+ "quote_hash": string;
825
+ "expires_at": string;
826
+ "counts": {
827
+ [key: string]: number;
828
+ };
829
+ "rows": Array<{
830
+ [key: string]: unknown;
831
+ }>;
832
+ "works": Array<{
833
+ [key: string]: unknown;
834
+ }>;
835
+ "created_at": string;
836
+ };
837
+ "InvestigationBatchApprove": {
838
+ "quote_hash": string;
839
+ "confirm_max_cents": number;
840
+ };
841
+ "InvestigationBatchPage": {
842
+ "batches": Array<Schemas["InvestigationBatch"]>;
843
+ };
844
+ "InvestigationBatchPrepare": {
845
+ "request_id": string;
846
+ "function_id": string;
847
+ "collection_id": string;
848
+ "record_ids": Array<string>;
849
+ "bindings": {
850
+ [key: string]: Schemas["InvestigationBinding"];
851
+ };
852
+ "reuse_completed"?: boolean;
853
+ };
854
+ "InvestigationBinding": {
855
+ "field"?: (string | null);
856
+ "value"?: (string | number | boolean | null);
857
+ };
858
+ "InvestigationFunction": {
859
+ "function_id": string;
860
+ "name": string;
861
+ "spec_id": string;
862
+ "revision_id": string;
863
+ "project_id": (string | null);
864
+ "contract_hash": string;
865
+ "parameters": Array<Schemas["InvestigationParameter"]>;
866
+ "request": string;
867
+ "output_fields": Array<string>;
868
+ "results_per_input": number;
869
+ "created_at": string;
870
+ };
871
+ "InvestigationFunctionCreate": {
872
+ "name": string;
873
+ "spec_id": string;
874
+ "revision_id": string;
875
+ "parameters": Array<Schemas["InvestigationParameter"]>;
876
+ };
877
+ "InvestigationFunctionPage": {
878
+ "functions": Array<Schemas["InvestigationFunction"]>;
879
+ };
880
+ "InvestigationInputCatalog": {
881
+ "collection_id": string;
882
+ "project_id": (string | null);
883
+ "fields": Array<Schemas["InvestigationInputColumn"]>;
884
+ "total_rows": number;
885
+ };
886
+ "InvestigationInputColumn": {
887
+ "field": string;
888
+ "nonempty_rows": number;
889
+ "examples": Array<unknown>;
890
+ };
891
+ "InvestigationParameter": {
892
+ "name": string;
893
+ "label": string;
894
+ "paths": Array<string>;
895
+ "value_type": "text" | "integer" | "number" | "boolean" | "url";
896
+ "prefix"?: string;
897
+ "suffix"?: string;
898
+ };
899
+ "InvestigationParameterOption": {
900
+ "path": string;
901
+ "label": string;
902
+ "value_type": "text" | "integer" | "number" | "boolean" | "url";
903
+ "value": unknown;
904
+ };
905
+ "InvestigationParameterPage": {
906
+ "spec_id": string;
907
+ "revision_id": string;
908
+ "parameters": Array<Schemas["InvestigationParameterOption"]>;
909
+ };
910
+ "InvestigationResults": {
911
+ "schema"?: "specstream.investigation-delivery.v1";
912
+ "batch_id": string;
913
+ "inputs_are_not_evidence_for_child_results"?: true;
914
+ "inputs": Array<{
915
+ [key: string]: unknown;
916
+ }>;
917
+ "deliveries": Array<{
918
+ [key: string]: unknown;
919
+ }>;
920
+ };
921
+ "InvitationData": {
922
+ "id": string;
923
+ "email": string;
924
+ "role": string;
925
+ "status": string;
926
+ "project_id": string;
927
+ };
928
+ "InvitationInput": {
929
+ "request_id": string;
930
+ "project_id": string;
931
+ "email": string;
932
+ "role"?: "editor" | "viewer";
933
+ "monthly_spend_cap_cents"?: number;
934
+ "expires_in_days"?: 1 | 7 | 30;
935
+ };
936
+ "JoinMethod": "place_id" | "registrable_domain" | "e164_phone_locality" | "address_name" | "reciprocal_handle" | "source_declared_link";
937
+ "KeyCreateData": {
938
+ "key_id": string;
939
+ "prefix": string;
940
+ "name": string;
941
+ "token": string;
942
+ "scopes": Array<"specs:read" | "specs:write" | "finds:read" | "finds:write" | "finds:spend" | "projects:read" | "projects:manage" | "account:read">;
943
+ "project_id": (string | null);
944
+ "spend_cap_cents": number;
945
+ "expires_at": (string | null);
946
+ };
947
+ "KeyCreateRequest": {
948
+ "name"?: string;
949
+ "scopes"?: Array<"specs:read" | "specs:write" | "finds:read" | "finds:write" | "finds:spend" | "projects:read" | "projects:manage" | "account:read">;
950
+ "project_id"?: (string | null);
951
+ "spend_cap_cents"?: number;
952
+ "expires_in_days"?: number;
953
+ };
954
+ "KeyListItem": {
955
+ "key_id": string;
956
+ "prefix": string;
957
+ "name": string;
958
+ "revoked": boolean;
959
+ "scopes": Array<"specs:read" | "specs:write" | "finds:read" | "finds:write" | "finds:spend" | "projects:read" | "projects:manage" | "account:read">;
960
+ "project_id": (string | null);
961
+ "spend_cap_cents": number;
962
+ "expires_at": (string | null);
963
+ "last_used_at": (string | null);
964
+ };
965
+ "LineagePage": {
966
+ "finds": Array<Schemas["FindLineage"]>;
967
+ "next_cursor"?: (string | null);
968
+ };
969
+ "LiveUnderstandingRequest": {
970
+ "document_id": string;
971
+ "revision": number;
972
+ "generation"?: number;
973
+ "text": string;
974
+ "kind"?: (Schemas["EntityType"] | null);
975
+ "context"?: Schemas["ReadingContext"];
976
+ "phase"?: "fast" | "refined";
977
+ "expected_source_hash"?: (string | null);
978
+ };
979
+ "LiveUnderstandingResult": {
980
+ "document_id": string;
981
+ "revision": number;
982
+ "generation": number;
983
+ "phase": "fast" | "refined";
984
+ "context": Schemas["ReadingContext"];
985
+ "source_hash": string;
986
+ "request_hash": string;
987
+ "receipt": Schemas["ReadingReceipt"];
988
+ "result": Schemas["ParseResult"];
989
+ };
990
+ "LogicalProof": {
991
+ "op": "predicate" | "all" | "any" | "not";
992
+ "truth": "true" | "false" | "unknown";
993
+ "predicate_index"?: (number | null);
994
+ "children"?: Array<Schemas["LogicalProof"]>;
995
+ };
996
+ "MagicLinkConsumeRequest": {
997
+ "token": string;
998
+ };
999
+ "MagicLinkRequest": {
1000
+ "email": string;
1001
+ "ref"?: (string | null);
1002
+ };
1003
+ "MatchDecision": {
1004
+ "decision_hash"?: (string | null);
1005
+ "entity_id": string;
1006
+ "predicates": Array<Schemas["PredicateEvidence"]>;
1007
+ "match_proof"?: (Schemas["LogicalProof"] | null);
1008
+ "billable": boolean;
1009
+ "locked": boolean;
1010
+ };
1011
+ "MatchExpression": ({
1012
+ "op": "all" | "any" | "not";
1013
+ "clauses": Array<(Schemas["Predicate"] | Schemas["MatchExpression"])>;
1014
+ } & (unknown));
1015
+ "MatchLineage": {
1016
+ "find_id": string;
1017
+ "entity_id": string;
1018
+ "relation"?: "same_public_object";
1019
+ };
1020
+ "McpData": {
1021
+ "mcp"?: boolean;
1022
+ "transport"?: "streamable-http";
1023
+ };
1024
+ "MeData": {
1025
+ "account_id"?: (string | null);
1026
+ "guest": boolean;
1027
+ "spend_ceiling_cents"?: number;
1028
+ "amount_spent_cents"?: number;
1029
+ "remaining_spend_cents"?: number;
1030
+ "authorization_available"?: boolean;
1031
+ "remaining_spend_kind"?: "delegated_authorization_ceiling";
1032
+ };
1033
+ "MemberExpression": ({
1034
+ "op": "all" | "any" | "not";
1035
+ "clauses": Array<(Schemas["MemberPredicate"] | Schemas["MemberExpression"])>;
1036
+ } & (unknown));
1037
+ "MemberPage": {
1038
+ "members": Array<Schemas["ProjectMember"]>;
1039
+ "next_cursor"?: (string | null);
1040
+ };
1041
+ "MemberPredicate": ({
1042
+ "field_id": string;
1043
+ "op": Schemas["PredicateOp"];
1044
+ "value": (boolean | number | string | Array<string> | null);
1045
+ } & (unknown));
1046
+ "MemberRevokeData": {
1047
+ "revoked": boolean;
1048
+ };
1049
+ "MustMatchOption": {
1050
+ "field_id": string;
1051
+ "label": string;
1052
+ "value_type": string;
1053
+ "operators": Array<Schemas["PredicateOp"]>;
1054
+ };
1055
+ "NativeAuthRedeem": {
1056
+ "handoff_id": string;
1057
+ "code_verifier": string;
1058
+ };
1059
+ "NativeAuthRedeemData": {
1060
+ "ok": boolean;
1061
+ "pending_provider": boolean;
1062
+ "connection_id"?: (string | null);
1063
+ "purpose"?: "signin" | "connection";
1064
+ };
1065
+ "NativeAuthStart": {
1066
+ "provider": string;
1067
+ "code_challenge": string;
1068
+ "email"?: (string | null);
1069
+ "ref"?: (string | null);
1070
+ "enroll"?: boolean;
1071
+ "purpose"?: "signin" | "connection";
1072
+ };
1073
+ "NativeAuthStartData": {
1074
+ "handoff_id": string;
1075
+ "callback_url": string;
1076
+ "authorization_url": string;
1077
+ };
1078
+ "NativeExportRequest": {
1079
+ "find_id": string;
1080
+ "entity_id": string;
1081
+ "destination_sha256": string;
1082
+ };
1083
+ "Near": {
1084
+ "point": string;
1085
+ "latitude": number;
1086
+ "longitude": number;
1087
+ "radius_km": number;
1088
+ };
1089
+ "Normalization": {
1090
+ "start": number;
1091
+ "end": number;
1092
+ "original": string;
1093
+ "normalized": string;
1094
+ "kind": "spelling" | "slang" | "typography" | "translation" | "paraphrase";
1095
+ "reason": string;
1096
+ "authority": "registered_rule" | "recorded_equivalence";
1097
+ "assessment_id"?: (string | null);
1098
+ };
1099
+ "NotificationPatch": {
1100
+ "read"?: (boolean | null);
1101
+ "archived"?: (boolean | null);
1102
+ };
1103
+ "NotificationRead": {
1104
+ "ids": Array<string>;
1105
+ };
1106
+ "NullReason": "not_published" | "blocked_at_source" | "challenge_page" | "unreadable" | "timeout" | "join_ambiguous" | "predicate_unknown" | "internal_failure";
1107
+ "OauthTokenData": {
1108
+ "access_token": string;
1109
+ "token_type"?: "Bearer";
1110
+ "expires_in": number;
1111
+ };
1112
+ "OauthTokenRequest": {
1113
+ "grant_type": "authorization_code";
1114
+ "code": string;
1115
+ "code_verifier": string;
1116
+ "client_id": string;
1117
+ "redirect_uri": string;
1118
+ };
1119
+ "OptOutRequest": {
1120
+ "website"?: (string | null);
1121
+ "email"?: (string | null);
1122
+ "phone"?: (string | null);
1123
+ "profile_url"?: (string | null);
1124
+ "name"?: (string | null);
1125
+ "employer"?: (string | null);
1126
+ };
1127
+ "OutputField": {
1128
+ "field_id": string;
1129
+ "required"?: boolean;
1130
+ };
1131
+ "ParseFromChipsRequest": {
1132
+ "ast": Schemas["QueryAst"];
1133
+ "operations": Array<Schemas["ChipOperation"]>;
1134
+ };
1135
+ "ParseRequest": {
1136
+ "retained"?: (Schemas["RetainedRequest"] | null);
1137
+ "q": string;
1138
+ "kind"?: (Schemas["EntityType"] | null);
1139
+ "locale"?: string;
1140
+ "expected_source_hash"?: (string | null);
1141
+ };
1142
+ "ParseResult": {
1143
+ "retained"?: (Schemas["RetainedRequest"] | null);
1144
+ "grading"?: (Schemas["ReadingGrade"] | null);
1145
+ "understanding"?: (Schemas["Understanding"] | null);
1146
+ "decision_id"?: (string | null);
1147
+ "status": Schemas["CompilerStatus"];
1148
+ "ast": (Schemas["QueryAst"] | null);
1149
+ "chips": Array<Schemas["Chip"]>;
1150
+ "unsupported": Array<Schemas["UnsupportedClause"]>;
1151
+ "compiler_version": string;
1152
+ "ast_hash": (string | null);
1153
+ "canonical_sentence": (string | null);
1154
+ };
1155
+ "PasskeyComplete": {
1156
+ "challenge_id": string;
1157
+ "credential": {
1158
+ [key: string]: unknown;
1159
+ };
1160
+ };
1161
+ "PasskeyData": {
1162
+ "id": string;
1163
+ "label": string;
1164
+ "created_at": string;
1165
+ "last_used_at"?: (string | null);
1166
+ };
1167
+ "PasskeyLabel": {
1168
+ "label": string;
1169
+ };
1170
+ "PasskeyList": {
1171
+ "passkeys": Array<Schemas["PasskeyData"]>;
1172
+ };
1173
+ "PasskeyRegistration": {
1174
+ "challenge_id": string;
1175
+ "credential": {
1176
+ [key: string]: unknown;
1177
+ };
1178
+ "label": string;
1179
+ };
1180
+ "PlacementMonthlyData": {
1181
+ "period_id": string;
1182
+ "free_limit": number;
1183
+ "free_used": number;
1184
+ "free_reserved": number;
1185
+ "free_remaining": number;
1186
+ "cached_rows_count_toward_free": boolean;
1187
+ };
1188
+ "PlacementQuoteData": {
1189
+ "quote_id": string;
1190
+ "quote_hash": string;
1191
+ "import_id": string;
1192
+ "expires_at": string;
1193
+ "rows_needing_placement": number;
1194
+ "cached_rows": number;
1195
+ "free_rows": number;
1196
+ "monthly_free_rows": number;
1197
+ "charged_rows": number;
1198
+ "unit_cents": number;
1199
+ "total_cents": number;
1200
+ "monthly": Schemas["PlacementMonthlyData"];
1201
+ };
1202
+ "PlacementRowData": {
1203
+ "row_id": string;
1204
+ "status": "placed" | "not_found" | "ambiguous";
1205
+ "latitude"?: (number | null);
1206
+ "longitude"?: (number | null);
1207
+ "precision"?: (string | null);
1208
+ "match_quality"?: (string | null);
1209
+ "source"?: (string | null);
1210
+ "cached": boolean;
1211
+ "charged_cents": number;
1212
+ };
1213
+ "PlacementStartInput": {
1214
+ "quote_id": string;
1215
+ "quote_hash": string;
1216
+ "confirm_max_cents": number;
1217
+ "request_id": string;
1218
+ };
1219
+ "PlacementStatusData": {
1220
+ "placement_id": string;
1221
+ "import_id": string;
1222
+ "state": "pending" | "running" | "completed" | "failed";
1223
+ "rows_total": number;
1224
+ "rows_processed": number;
1225
+ "placed": number;
1226
+ "not_found": number;
1227
+ "ambiguous": number;
1228
+ "charged_cents": number;
1229
+ "error_code": (string | null);
1230
+ "rows": Array<Schemas["PlacementRowData"]>;
1231
+ "monthly": Schemas["PlacementMonthlyData"];
1232
+ };
1233
+ "PossibleCell": {
1234
+ "column_id": "identity" | "link" | "location";
1235
+ "label": string;
1236
+ "value": string;
1237
+ };
1238
+ "PossibleCondition": {
1239
+ "condition_id": string;
1240
+ "label": string;
1241
+ "status": "yes" | "open";
1242
+ "reason": string;
1243
+ "quote"?: (string | null);
1244
+ "source_url"?: (string | null);
1245
+ };
1246
+ "PossibleRow": {
1247
+ "spec_version"?: "possible_row.v1";
1248
+ "entity_id": string;
1249
+ "ordinal": number;
1250
+ "cells": Array<Schemas["PossibleCell"]>;
1251
+ "conditions": Array<Schemas["PossibleCondition"]>;
1252
+ "billable"?: false;
1253
+ };
1254
+ "Predicate": ({
1255
+ "field_id": string;
1256
+ "op": Schemas["PredicateOp"];
1257
+ "value": (boolean | number | string | Array<string> | Schemas["CountMatches"] | null);
1258
+ } & (unknown));
1259
+ "PredicateEvidence": {
1260
+ "field_id": string;
1261
+ "op": Schemas["PredicateOp"];
1262
+ "required_value": (unknown | null);
1263
+ "observed_value": (unknown | null);
1264
+ "passed": boolean;
1265
+ "source_label": string;
1266
+ "source_url": (string | null);
1267
+ "observed_at": string;
1268
+ "null_reason"?: (Schemas["NullReason"] | null);
1269
+ "source_ref"?: (Schemas["PredicateSourceRef"] | null);
1270
+ "record_proof"?: (Schemas["RecordCountProof"] | Schemas["AcquiredRecordCountProof"] | null);
1271
+ };
1272
+ "PredicateOp": "count_matches" | "contains" | "not_contains" | "has_any" | "has_all" | "has_none" | "before" | "after" | "on_or_before" | "on_or_after" | "gt" | "lt" | "ne" | "not_in" | "gte" | "lte" | "eq" | "exists" | "class_in" | "in";
1273
+ "PredicateSourceRef": {
1274
+ "observation_id": string;
1275
+ "request_hash": string;
1276
+ "native_record_id"?: (string | null);
1277
+ "pointer"?: (string | null);
1278
+ "response_sha256"?: (string | null);
1279
+ "source_time"?: (Schemas["EvidenceTime"] | null);
1280
+ };
1281
+ "PreviewWebSource": {
1282
+ "source_id": string;
1283
+ };
1284
+ "Project": {
1285
+ "project_id": string;
1286
+ "name": string;
1287
+ "owner_account_id": string;
1288
+ "version": number;
1289
+ "monthly_spend_cap_cents": number;
1290
+ "role": "owner" | "editor" | "viewer";
1291
+ "can_spend": boolean;
1292
+ "created_at": string;
1293
+ };
1294
+ "ProjectCreateRequest": {
1295
+ "name": string;
1296
+ "monthly_spend_cap_cents"?: number;
1297
+ };
1298
+ "ProjectMember": {
1299
+ "account_id": string;
1300
+ "role": "owner" | "editor" | "viewer";
1301
+ "monthly_spend_cap_cents": number;
1302
+ };
1303
+ "ProjectMemberRequest": {
1304
+ "account_id": string;
1305
+ "role": "editor" | "viewer";
1306
+ "monthly_spend_cap_cents"?: number;
1307
+ };
1308
+ "ProjectPage": {
1309
+ "projects": Array<Schemas["Project"]>;
1310
+ "next_cursor"?: (string | null);
1311
+ };
1312
+ "ProjectPatchRequest": {
1313
+ "expected_version": number;
1314
+ "name"?: (string | null);
1315
+ "monthly_spend_cap_cents"?: (number | null);
1316
+ };
1317
+ "PushCapabilities": {
1318
+ "apns": boolean;
1319
+ "fcm": boolean;
1320
+ "web_push": boolean;
1321
+ "vapid_public_key"?: (string | null);
1322
+ };
1323
+ "PushDevice": {
1324
+ "device_id": string;
1325
+ "platform": "apns" | "fcm" | "web_push";
1326
+ "name": string;
1327
+ "active": boolean;
1328
+ "created_at": string;
1329
+ "updated_at": string;
1330
+ };
1331
+ "PushDeviceInput": {
1332
+ "platform": "apns" | "fcm";
1333
+ "token": string;
1334
+ "name": string;
1335
+ };
1336
+ "PushDevicePage": {
1337
+ "devices": Array<Schemas["PushDevice"]>;
1338
+ };
1339
+ "PushDeviceRevoked": {
1340
+ "revoked"?: true;
1341
+ };
1342
+ "QueryAst": ({
1343
+ "target_requirement"?: (Schemas["TargetRequirement"] | null);
1344
+ "semantic_binding"?: (Schemas["SemanticBinding"] | null);
1345
+ "spec_version"?: "query_ast.v1";
1346
+ "entity_type": Schemas["EntityType"];
1347
+ "limit": Schemas["QueryLimit"];
1348
+ "discovery": Schemas["Discovery"];
1349
+ "geo"?: (Schemas["Geo"] | null);
1350
+ "where": Array<Schemas["Predicate"]>;
1351
+ "match_expression"?: (Schemas["MatchExpression"] | null);
1352
+ "output_fields"?: Array<Schemas["OutputField"]>;
1353
+ "worded_conditions"?: Array<Schemas["WordedCondition"]>;
1354
+ "worded_outputs"?: Array<Schemas["WordedOutput"]>;
1355
+ "sort": Array<Schemas["SortKey"]>;
1356
+ "locale": string;
1357
+ "inferred": Array<Schemas["InferredClause"]>;
1358
+ "unsupported": Array<Schemas["UnsupportedClause"]>;
1359
+ } & (unknown));
1360
+ "QueryLimit": {
1361
+ "max"?: number;
1362
+ "inferred"?: boolean;
1363
+ };
1364
+ "ReadingContext": {
1365
+ "locale"?: string;
1366
+ "target_type"?: (string | null);
1367
+ "source_collection"?: (string | null);
1368
+ "operation"?: ("find" | "extend" | "add-facts" | "refresh" | null);
1369
+ "retained"?: (Schemas["RetainedRequest"] | null);
1370
+ };
1371
+ "ReadingGrade": {
1372
+ "kind": (Schemas["EntityType"] | null);
1373
+ "strength": "strong" | "good" | "weak";
1374
+ "path": ("catalog" | "web" | "knowledge" | null);
1375
+ "conditions"?: Array<Schemas["ConditionGrade"]>;
1376
+ "suggestions"?: Array<Schemas["ReadingSuggestion"]>;
1377
+ };
1378
+ "ReadingReceipt": {
1379
+ "text": string;
1380
+ "source_hash": string;
1381
+ "spans": Array<Schemas["ReceiptSpan"]>;
1382
+ "normalizations"?: Array<Schemas["ReceiptNormalization"]>;
1383
+ "refinement": "enabled" | "disabled";
1384
+ "ast": ({
1385
+ [key: string]: unknown;
1386
+ } | null);
1387
+ };
1388
+ "ReadingSuggestion": {
1389
+ "part_id": string;
1390
+ "words": string;
1391
+ "span_id"?: (string | null);
1392
+ "nature": "stated" | "judgment" | "absence" | "cross_page_count";
1393
+ "rewordings"?: Array<Schemas["CheckableRewording"]>;
1394
+ };
1395
+ "Readyz": {
1396
+ "db": "ok";
1397
+ };
1398
+ "ReceiptNormalization": {
1399
+ "span_id"?: (string | null);
1400
+ "utf16_start": number;
1401
+ "utf16_end": number;
1402
+ "start": number;
1403
+ "end": number;
1404
+ "from": string;
1405
+ "to": string;
1406
+ "reason": string;
1407
+ };
1408
+ "ReceiptSpan": {
1409
+ "span_id": string;
1410
+ "text": string;
1411
+ "utf16_start": number;
1412
+ "utf16_end": number;
1413
+ "start": number;
1414
+ "end": number;
1415
+ "role": "target" | "quantity" | "geography" | "condition" | "output" | "syntax" | "unknown";
1416
+ "state": "typed" | "discovery" | "syntax" | "unresolved";
1417
+ "ast_refs"?: Array<string>;
1418
+ "reason": string;
1419
+ };
1420
+ "ReconciliationAgreement": {
1421
+ "left_field": string;
1422
+ "right_field": string;
1423
+ "mode": "exact" | "edit";
1424
+ "normalization": "literal" | "nfkc_casefold_space";
1425
+ "minimum_bps": number;
1426
+ "score_bps": number;
1427
+ "edits": number;
1428
+ };
1429
+ "ReconciliationApply": {
1430
+ "comparison_hash": string;
1431
+ "import_id": string;
1432
+ "name": string;
1433
+ "choices": Array<Schemas["ReconciliationChoice"]>;
1434
+ };
1435
+ "ReconciliationBlocked": {
1436
+ "right_record_id": string;
1437
+ "right_name": string;
1438
+ "contradictions": Array<Schemas["ReconciliationContradiction"]>;
1439
+ };
1440
+ "ReconciliationCandidate": {
1441
+ "right_record_id": string;
1442
+ "right_name": string;
1443
+ "score_bps": number;
1444
+ "groups": Array<Schemas["ReconciliationEvidenceGroup"]>;
1445
+ "right_values": {
1446
+ [key: string]: unknown;
1447
+ };
1448
+ "references": {
1449
+ [key: string]: Array<{
1450
+ [key: string]: unknown;
1451
+ }>;
1452
+ };
1453
+ "unknown_guards": Array<Schemas["ReconciliationGuard"]>;
1454
+ "reference_candidate_for": number;
1455
+ };
1456
+ "ReconciliationChoice": {
1457
+ "left_record_id": string;
1458
+ "right_record_id": string;
1459
+ };
1460
+ "ReconciliationContradiction": {
1461
+ "left_field": string;
1462
+ "right_field": string;
1463
+ "left_value": unknown;
1464
+ "right_value": unknown;
1465
+ };
1466
+ "ReconciliationEvidenceGroup": {
1467
+ "group": number;
1468
+ "comparisons": Array<Schemas["ReconciliationAgreement"]>;
1469
+ };
1470
+ "ReconciliationField": {
1471
+ "field": string;
1472
+ "present": number;
1473
+ "comparable": number;
1474
+ "examples": Array<unknown>;
1475
+ };
1476
+ "ReconciliationFields": {
1477
+ "collection_id": string;
1478
+ "name": string;
1479
+ "records": number;
1480
+ "fields": Array<Schemas["ReconciliationField"]>;
1481
+ };
1482
+ "ReconciliationFill": {
1483
+ "right_field": string;
1484
+ "output_field": string;
1485
+ };
1486
+ "ReconciliationGroup": {
1487
+ "rules": Array<Schemas["ReconciliationRule"]>;
1488
+ };
1489
+ "ReconciliationGuard": {
1490
+ "left_field": string;
1491
+ "right_field": string;
1492
+ };
1493
+ "ReconciliationHistory": {
1494
+ "comparisons": Array<{
1495
+ [key: string]: unknown;
1496
+ }>;
1497
+ };
1498
+ "ReconciliationIncomplete": {
1499
+ "group": number;
1500
+ "fields": Array<string>;
1501
+ };
1502
+ "ReconciliationPrepare": {
1503
+ "request_id": string;
1504
+ "name": string;
1505
+ "project_id"?: (string | null);
1506
+ "left": Schemas["ReconciliationScope"];
1507
+ "right": Schemas["ReconciliationScope"];
1508
+ "groups": Array<Schemas["ReconciliationGroup"]>;
1509
+ "vetoes"?: Array<Schemas["ReconciliationVeto"]>;
1510
+ "fill": Array<Schemas["ReconciliationFill"]>;
1511
+ "assignment"?: "one_to_one" | "many_to_one";
1512
+ "include_private_fields"?: boolean;
1513
+ };
1514
+ "ReconciliationReceipt": {
1515
+ "import_id": string;
1516
+ "name": string;
1517
+ "comparison_id": string;
1518
+ "rows": Array<{
1519
+ [key: string]: unknown;
1520
+ }>;
1521
+ "qualification_authority"?: false;
1522
+ };
1523
+ "ReconciliationRow": {
1524
+ "left_record_id": string;
1525
+ "name": string;
1526
+ "left_values": {
1527
+ [key: string]: unknown;
1528
+ };
1529
+ "references": {
1530
+ [key: string]: Array<{
1531
+ [key: string]: unknown;
1532
+ }>;
1533
+ };
1534
+ "status": "one_candidate" | "ambiguous" | "needs_fields" | "no_candidate";
1535
+ "candidates": Array<Schemas["ReconciliationCandidate"]>;
1536
+ "incomplete_groups": Array<Schemas["ReconciliationIncomplete"]>;
1537
+ "blocked_candidates": Array<Schemas["ReconciliationBlocked"]>;
1538
+ "candidate_count": number;
1539
+ };
1540
+ "ReconciliationRule": {
1541
+ "left_field": string;
1542
+ "right_field": string;
1543
+ "mode"?: "exact" | "edit";
1544
+ "threshold_bps"?: number;
1545
+ "normalization"?: "literal" | "nfkc_casefold_space";
1546
+ };
1547
+ "ReconciliationScope": {
1548
+ "collection_id": string;
1549
+ "record_ids"?: (Array<string> | null);
1550
+ };
1551
+ "ReconciliationVeto": {
1552
+ "left_field": string;
1553
+ "right_field": string;
1554
+ "normalization"?: "literal" | "nfkc_casefold_space";
1555
+ };
1556
+ "ReconciliationView": {
1557
+ "comparison_id": string;
1558
+ "comparison_hash": string;
1559
+ "name": string;
1560
+ "project_id": (string | null);
1561
+ "request": Schemas["ReconciliationPrepare"];
1562
+ "created_at": string;
1563
+ "scopes": {
1564
+ [key: string]: unknown;
1565
+ };
1566
+ "summary": {
1567
+ [key: string]: number;
1568
+ };
1569
+ "metrics": {
1570
+ [key: string]: number;
1571
+ };
1572
+ "rows": Array<Schemas["ReconciliationRow"]>;
1573
+ "qualification_authority"?: false;
1574
+ "metric"?: "normalized_levenshtein_v1";
1575
+ };
1576
+ "RecordCountProof": {
1577
+ "spec_version"?: "record_count_proof.v1";
1578
+ "scope"?: "published_source_records";
1579
+ "collection_complete": boolean;
1580
+ "members_seen": number;
1581
+ "lower_bound": number;
1582
+ "upper_bound"?: (number | null);
1583
+ "matching_pointers": Array<string>;
1584
+ "unresolved_pointers": Array<string>;
1585
+ "witnesses": Array<Schemas["RecordWitness"]>;
1586
+ "witnesses_complete": boolean;
1587
+ };
1588
+ "RecordWitness": {
1589
+ "source_pointer": string;
1590
+ "predicates": Array<Schemas["PredicateEvidence"]>;
1591
+ "proof": Schemas["LogicalProof"];
1592
+ };
1593
+ "RelationshipData": {
1594
+ "collection_id": string;
1595
+ "version": number;
1596
+ "field_id": (string | null);
1597
+ "label": (string | null);
1598
+ "groups": Array<{
1599
+ [key: string]: unknown;
1600
+ }>;
1601
+ "missing": number;
1602
+ };
1603
+ "RelationshipSelection": {
1604
+ "expected_version": number;
1605
+ "field_id": string;
1606
+ "label": string;
1607
+ };
1608
+ "ReplayCheck": {
1609
+ "available": boolean;
1610
+ "verified": boolean;
1611
+ "decisions_checked": number;
1612
+ "qualifications_checked": number;
1613
+ "decision_root": (string | null);
1614
+ "policy_version": string;
1615
+ "message": string;
1616
+ };
1617
+ "RequestTemplate": {
1618
+ "id": string;
1619
+ "record_type": string;
1620
+ "category": string;
1621
+ "request": string;
1622
+ };
1623
+ "RequestTemplateList": {
1624
+ "version"?: "request_templates.v1";
1625
+ "templates"?: Array<Schemas["RequestTemplate"]>;
1626
+ };
1627
+ "ResearchRuleApprove": {
1628
+ "review_hash": string;
1629
+ "confirm_total_cents": number;
1630
+ };
1631
+ "ResearchRuleCondition": {
1632
+ "field": string;
1633
+ "operator"?: "equals" | "not_equals" | "present" | "empty";
1634
+ "value"?: (string | number | boolean | null);
1635
+ };
1636
+ "ResearchRulePage": {
1637
+ "rules": Array<{
1638
+ [key: string]: unknown;
1639
+ }>;
1640
+ };
1641
+ "ResearchRulePatch": {
1642
+ "expected_version": number;
1643
+ "state": "active" | "paused" | "deleted";
1644
+ };
1645
+ "ResearchRulePrepare": {
1646
+ "request_id": string;
1647
+ "name": string;
1648
+ "collection_id": string;
1649
+ "function_id": string;
1650
+ "bindings": {
1651
+ [key: string]: Schemas["InvestigationBinding"];
1652
+ };
1653
+ "conditions"?: Array<Schemas["ResearchRuleCondition"]>;
1654
+ "trigger"?: "first_ready" | "input_changed";
1655
+ "include_existing"?: boolean;
1656
+ "reuse_completed"?: boolean;
1657
+ "batch_size"?: number;
1658
+ "per_batch_cents": number;
1659
+ "total_cents": number;
1660
+ "valid_until": string;
1661
+ };
1662
+ "ResearchRuleResults": {
1663
+ "rule_id": string;
1664
+ "original_deliveries_unchanged"?: true;
1665
+ "inputs_are_not_qualification_evidence"?: true;
1666
+ "runs": Array<{
1667
+ [key: string]: unknown;
1668
+ }>;
1669
+ "current_inputs": Array<{
1670
+ [key: string]: unknown;
1671
+ }>;
1672
+ };
1673
+ "ResearchRuleView": {
1674
+ "rule_id": string;
1675
+ "name": string;
1676
+ "collection_id": string;
1677
+ "function_id": string;
1678
+ "project_id": (string | null);
1679
+ "definition": Schemas["ResearchRulePrepare"];
1680
+ "request": string;
1681
+ "state": string;
1682
+ "reason": (string | null);
1683
+ "version": number;
1684
+ "review_hash": string;
1685
+ "review_expires_at": string;
1686
+ "currency": string;
1687
+ "committed_maximum_cents": number;
1688
+ "remaining_cents": number;
1689
+ "last_checked_at": (string | null);
1690
+ "created_at": string;
1691
+ "counts": {
1692
+ [key: string]: number;
1693
+ };
1694
+ "rows": Array<{
1695
+ [key: string]: unknown;
1696
+ }>;
1697
+ "rows_offset": number;
1698
+ "next_rows_offset": (number | null);
1699
+ "runs": Array<{
1700
+ [key: string]: unknown;
1701
+ }>;
1702
+ "total_runs": number;
1703
+ "automatic_execution"?: boolean;
1704
+ "original_deliveries_unchanged"?: true;
1705
+ };
1706
+ "ResultReportData": {
1707
+ "claim_id": string;
1708
+ "status": string;
1709
+ "automatic_refund"?: boolean;
1710
+ "support_ticket_id"?: (string | null);
1711
+ };
1712
+ "ResultReportInput": {
1713
+ "request_id": string;
1714
+ "record_id": string;
1715
+ "check": string;
1716
+ "truth": string;
1717
+ "link"?: (string | null);
1718
+ };
1719
+ "RetainedRequest": {
1720
+ "parent_find_id": string;
1721
+ "operation": "extend" | "add-facts" | "refresh";
1722
+ "label"?: (string | null);
1723
+ "ast_hash"?: (string | null);
1724
+ };
1725
+ "RevisionPage": {
1726
+ "revisions": Array<Schemas["SpecRevision"]>;
1727
+ "next_cursor"?: (string | null);
1728
+ };
1729
+ "RevisitOutcome": {
1730
+ "target_id": string;
1731
+ "status": "verified" | "no_longer_matches" | "unresolved" | "unavailable";
1732
+ "reason": string;
1733
+ "evaluated_at": string;
1734
+ "predicates"?: Array<Schemas["PredicateEvidence"]>;
1735
+ "match_proof"?: (Schemas["LogicalProof"] | null);
1736
+ "input_resolution"?: (Schemas["InputIdentityResolution"] | null);
1737
+ };
1738
+ "RevisitPage": {
1739
+ "find_id": string;
1740
+ "outcomes": Array<Schemas["RevisitOutcome"]>;
1741
+ "next_after"?: (string | null);
1742
+ "summary": Schemas["RevisitSummary"];
1743
+ };
1744
+ "RevisitSummary": {
1745
+ "targets": number;
1746
+ "checked": number;
1747
+ "verified": number;
1748
+ "no_longer_matches": number;
1749
+ "unresolved": number;
1750
+ "unavailable": number;
1751
+ "not_reached": number;
1752
+ "delivered": number;
1753
+ "missing_required_details"?: {
1754
+ [key: string]: number;
1755
+ };
1756
+ };
1757
+ "RowCell": {
1758
+ "column_id": string;
1759
+ "label": string;
1760
+ "value": (unknown | null);
1761
+ "display": (string | null);
1762
+ "absence"?: (Schemas["DisplayAbsence"] | null);
1763
+ "provenance"?: (Schemas["FieldObservation"] | null);
1764
+ "badges"?: Array<Schemas["ContactBadge"]>;
1765
+ };
1766
+ "SCIMCredential": {
1767
+ "credential_id": string;
1768
+ "token": string;
1769
+ "scim_url": string;
1770
+ };
1771
+ "SCIMCredentialState": {
1772
+ "credential_id": string;
1773
+ "created_at": string;
1774
+ };
1775
+ "SCIMGroup": {
1776
+ "group_id": string;
1777
+ "display_name": string;
1778
+ "members": number;
1779
+ };
1780
+ "SCIMMappings": {
1781
+ "mappings": Array<Schemas["SCIMProjectMapping"]>;
1782
+ };
1783
+ "SCIMProjectMapping": {
1784
+ "group_id"?: string;
1785
+ "project_id": string;
1786
+ "role"?: "viewer" | "editor";
1787
+ "monthly_spend_cap_cents"?: number;
1788
+ };
1789
+ "SCIMProvisioning": {
1790
+ "mappings": Array<Schemas["SCIMProjectMapping"]>;
1791
+ "groups": Array<Schemas["SCIMGroup"]>;
1792
+ "credential": (Schemas["SCIMCredentialState"] | null);
1793
+ "users": number;
1794
+ };
1795
+ "SSOConfigInput": {
1796
+ "provider": "Okta" | "Microsoft Entra ID" | "Google Workspace" | "OneLogin" | "JumpCloud" | "Another SAML 2.0 provider";
1797
+ "metadata_url": string;
1798
+ };
1799
+ "SSODomain": {
1800
+ "id": string;
1801
+ "domain": string;
1802
+ "txt_record": string;
1803
+ "verified_at": (string | null);
1804
+ "provider": (string | null);
1805
+ "metadata_url": (string | null);
1806
+ "require_sso": boolean;
1807
+ "scim_enabled": boolean;
1808
+ "config_version": number;
1809
+ "acs_url": string;
1810
+ "entity_id": string;
1811
+ "scim_url": string;
1812
+ };
1813
+ "SSODomainInput": {
1814
+ "domain": string;
1815
+ };
1816
+ "SSODomains": {
1817
+ "domains": Array<Schemas["SSODomain"]>;
1818
+ };
1819
+ "SSOPolicyInput": {
1820
+ "require_sso": boolean;
1821
+ "scim_enabled": boolean;
1822
+ };
1823
+ "SSOStartData": {
1824
+ "url": string;
1825
+ };
1826
+ "SSOStartInput": {
1827
+ "domain": string;
1828
+ "enroll"?: boolean;
1829
+ };
1830
+ "SaveWebSourceList": {
1831
+ "preview_id": string;
1832
+ "preview_hash": string;
1833
+ "import_id": string;
1834
+ "name": string;
1835
+ "mapping"?: {
1836
+ [key: string]: string;
1837
+ };
1838
+ };
1839
+ "SavedSpec": {
1840
+ "spec_id": string;
1841
+ "project_id": (string | null);
1842
+ "account_id": (string | null);
1843
+ "head_revision_id": string;
1844
+ "revision": Schemas["SpecRevision"];
1845
+ "archived": boolean;
1846
+ "created_at": string;
1847
+ "updated_at": string;
1848
+ };
1849
+ "ScheduleDeliveryData": {
1850
+ "schedule_id": string;
1851
+ "version": number;
1852
+ "delivery": Schemas["ScheduleDeliverySettings"];
1853
+ "webhook_secret"?: (string | null);
1854
+ };
1855
+ "ScheduleDeliveryInput": {
1856
+ "notify"?: boolean;
1857
+ "slack"?: (string | null);
1858
+ "sendTo"?: (string | null);
1859
+ "webhook"?: (string | null);
1860
+ "expected_version": number;
1861
+ };
1862
+ "ScheduleDeliverySettings": {
1863
+ "notify"?: boolean;
1864
+ "slack"?: (string | null);
1865
+ "sendTo"?: (string | null);
1866
+ "webhook"?: (string | null);
1867
+ };
1868
+ "SecurityChallenge": {
1869
+ "challenge_id": string;
1870
+ "public_key": {
1871
+ [key: string]: unknown;
1872
+ };
1873
+ };
1874
+ "SecuritySuccess": {
1875
+ "ok"?: boolean;
1876
+ };
1877
+ "SemanticBinding": {
1878
+ "spec_version"?: "semantic_binding.v1";
1879
+ "catalog_sha256": string;
1880
+ "target_id": string;
1881
+ "footprint_id"?: (string | null);
1882
+ };
1883
+ "SendToDestinationInput": {
1884
+ "find_id": string;
1885
+ "entity_ids": Array<string>;
1886
+ "destination_sha256": string;
1887
+ };
1888
+ "ShareCreateRequest": {
1889
+ "include_contacts"?: boolean;
1890
+ };
1891
+ "ShareData": {
1892
+ "share_id": string;
1893
+ "public_url": string;
1894
+ "kind": Schemas["ShareKind"];
1895
+ "include_contacts": boolean;
1896
+ "expires_at": string;
1897
+ };
1898
+ "ShareKind": "snapshot";
1899
+ "ShareRevokeRequest": {
1900
+ "share_id": string;
1901
+ };
1902
+ "SharedSpec": {
1903
+ "name": string;
1904
+ "ast": Schemas["QueryAst"];
1905
+ "ast_hash": string;
1906
+ "context": string;
1907
+ "snapshot_hash": string;
1908
+ "expires_at": string;
1909
+ "execution_authorized"?: false;
1910
+ };
1911
+ "Shortfall": {
1912
+ "requested_units": number;
1913
+ "delivered_units": number;
1914
+ "refunded_cents": number;
1915
+ };
1916
+ "SortDirection": "asc" | "desc";
1917
+ "SortKey": {
1918
+ "field_id": string;
1919
+ "direction": Schemas["SortDirection"];
1920
+ };
1921
+ "SourceSpan": {
1922
+ "span_id": string;
1923
+ "start": number;
1924
+ "end": number;
1925
+ "start_utf16": number;
1926
+ "end_utf16": number;
1927
+ "text": string;
1928
+ "role": "target" | "quantity" | "geography" | "condition" | "output" | "syntax" | "unknown";
1929
+ "state": "typed" | "discovery" | "syntax" | "unresolved";
1930
+ "ast_refs"?: Array<string>;
1931
+ "reason": string;
1932
+ };
1933
+ "SpecArchiveRequest": {
1934
+ "expected_revision_id": string;
1935
+ "archived"?: boolean;
1936
+ };
1937
+ "SpecCreateRequest": ({
1938
+ "name": string;
1939
+ "ast"?: (Schemas["QueryAst"] | null);
1940
+ "source_find_id"?: (string | null);
1941
+ "project_id"?: (string | null);
1942
+ "context"?: string;
1943
+ } & ({
1944
+ "ast": NonNullable<unknown>;
1945
+ "source_find_id"?: null;
1946
+ } | {
1947
+ "source_find_id": string;
1948
+ "ast"?: null;
1949
+ }));
1950
+ "SpecLinkData": {
1951
+ "link_id": string;
1952
+ "public_url": string;
1953
+ "expires_at": string;
1954
+ "snapshot_hash": string;
1955
+ };
1956
+ "SpecLinkRequest": {
1957
+ "revision_id": string;
1958
+ "expected_ast_hash": string;
1959
+ "include_context"?: boolean;
1960
+ "expires_seconds"?: number;
1961
+ };
1962
+ "SpecLinkRevoked": {
1963
+ "link_id": string;
1964
+ "revoked"?: true;
1965
+ };
1966
+ "SpecOptionsData": {
1967
+ "semantic_binding"?: (Schemas["SemanticBinding"] | null);
1968
+ "target_refinements"?: Array<Schemas["TargetDefinition"]>;
1969
+ "entity_type": Schemas["EntityType"];
1970
+ "target_label": string;
1971
+ "must_match": Array<Schemas["MustMatchOption"]>;
1972
+ "bring_back": Array<Schemas["BringBackOption"]>;
1973
+ };
1974
+ "SpecPage": {
1975
+ "specs": Array<Schemas["SavedSpec"]>;
1976
+ "next_cursor"?: (string | null);
1977
+ };
1978
+ "SpecRevision": {
1979
+ "revision_id": string;
1980
+ "spec_id": string;
1981
+ "revision": number;
1982
+ "parent_revision_id": (string | null);
1983
+ "ast": Schemas["QueryAst"];
1984
+ "ast_hash": string;
1985
+ "name": string;
1986
+ "context": string;
1987
+ "created_at": string;
1988
+ };
1989
+ "SpecRevisionRequest": {
1990
+ "expected_revision_id": string;
1991
+ "parent_revision_id"?: (string | null);
1992
+ "ast": Schemas["QueryAst"];
1993
+ "name"?: (string | null);
1994
+ "context"?: (string | null);
1995
+ };
1996
+ "SseComplete": {
1997
+ "row_count": number;
1998
+ "stop_reason": Schemas["StopReason"];
1999
+ };
2000
+ "SseError": {
2001
+ "code": Schemas["ErrorCode"];
2002
+ "message": string;
2003
+ };
2004
+ "SseEvent": {
2005
+ "id": number;
2006
+ "event": Schemas["SseEventName"];
2007
+ "data": (Schemas["SseHello"] | Schemas["SseStatus"] | Schemas["SseProgress"] | Schemas["SseRow"] | Schemas["SseRowPatch"] | Schemas["SseGate"] | Schemas["SseZero"] | Schemas["SseComplete"] | Schemas["SseStopped"] | Schemas["SseError"] | Schemas["SseHeartbeat"]);
2008
+ };
2009
+ "SseEventName": "hello" | "status" | "progress" | "row" | "row_patch" | "gate" | "zero" | "complete" | "stopped" | "error" | "heartbeat";
2010
+ "SseGate": {
2011
+ "reason": string;
2012
+ "shown": number;
2013
+ "target": number;
2014
+ };
2015
+ "SseHeartbeat": {
2016
+ "ts": string;
2017
+ };
2018
+ "SseHello": {
2019
+ "find_id": string;
2020
+ "status": Schemas["FindStatus"];
2021
+ "last_id": number;
2022
+ };
2023
+ "SseProgress": {
2024
+ "phase": string;
2025
+ "done": number;
2026
+ "target": number;
2027
+ "message": string;
2028
+ "found"?: (number | null);
2029
+ "checked"?: (number | null);
2030
+ "sources"?: (number | null);
2031
+ "pages"?: (number | null);
2032
+ };
2033
+ "SseRow": {
2034
+ "entity_id": string;
2035
+ "ordinal": number;
2036
+ "cells": Array<{
2037
+ [key: string]: unknown;
2038
+ }>;
2039
+ "locked": boolean;
2040
+ };
2041
+ "SseRowPatch": {
2042
+ "entity_id": string;
2043
+ "cells": Array<{
2044
+ [key: string]: unknown;
2045
+ }>;
2046
+ };
2047
+ "SseStatus": {
2048
+ "status": Schemas["FindStatus"];
2049
+ "commerce"?: (Schemas["CommerceData"] | null);
2050
+ };
2051
+ "SseStopped": {
2052
+ "row_count": number;
2053
+ };
2054
+ "SseZero": {
2055
+ "cause": string;
2056
+ };
2057
+ "StopReason": "complete_target" | "saturated_discovery" | "budget_reserved_exhausted" | "wall_clock" | "fetch_count" | "source_blocked" | "unsupported_predicate" | "zero_after_filters" | "user_cancel" | "capacity";
2058
+ "StoreCardTransferRequest": {
2059
+ "plan_id": string;
2060
+ "idempotency_key": string;
2061
+ };
2062
+ "StorePurchaseRequest": {
2063
+ "provider": "app_store" | "google_play";
2064
+ "product_id": string;
2065
+ "purchase_token": string;
2066
+ };
2067
+ "StoreRestoreRequest": {
2068
+ "purchases": Array<Schemas["StorePurchaseRequest"]>;
2069
+ };
2070
+ "SupportTicketData": {
2071
+ "ticket_id": string;
2072
+ "kind": string;
2073
+ };
2074
+ "SupportTicketRequest": {
2075
+ "kind": "correction" | "report" | "opt_out" | "export" | "delete";
2076
+ "body"?: string;
2077
+ "find_id"?: (string | null);
2078
+ "entity_id"?: (string | null);
2079
+ "reason"?: (string | null);
2080
+ };
2081
+ "TargetDefinition": {
2082
+ "target_id": string;
2083
+ "entity_type": Schemas["EntityType"];
2084
+ "grain": string;
2085
+ "phrases"?: Array<string>;
2086
+ "retrieval_noun": string;
2087
+ "retrieval_aliases"?: Array<string>;
2088
+ "footprint_id"?: (string | null);
2089
+ };
2090
+ "TargetRequirement": {
2091
+ "contract"?: "target-source-assertion.v1";
2092
+ "entity_kind": Schemas["EntityKind"];
2093
+ "text": string;
2094
+ "reading_policy_sha256": string;
2095
+ "max_candidates"?: number;
2096
+ "max_passages"?: number;
2097
+ "max_context_chars"?: number;
2098
+ "max_source_chars"?: number;
2099
+ "timeout_ms"?: number;
2100
+ "evidence_meaning"?: "interpreted_published_assertion";
2101
+ "prior_knowledge_authority"?: false;
2102
+ "modifies_typed_predicates"?: false;
2103
+ };
2104
+ "TeachWebSource": {
2105
+ "url": string;
2106
+ "name": string;
2107
+ "name_column"?: string;
2108
+ "examples": Array<{
2109
+ [key: string]: string;
2110
+ }>;
2111
+ "exclude"?: Array<string>;
2112
+ "project_id"?: (string | null);
2113
+ };
2114
+ "TranscriptSegment": {
2115
+ "start": number;
2116
+ "end": number;
2117
+ "text": string;
2118
+ "avg_logprob"?: (number | null);
2119
+ "no_speech_probability"?: (number | null);
2120
+ "compression_ratio"?: (number | null);
2121
+ };
2122
+ "Understanding": {
2123
+ "spec_version"?: "request_understanding.v1";
2124
+ "raw": string;
2125
+ "source_hash": string;
2126
+ "request_hash": string;
2127
+ "locale": string;
2128
+ "spans": Array<Schemas["SourceSpan"]>;
2129
+ "normalizations"?: Array<Schemas["Normalization"]>;
2130
+ "refinement"?: "not_needed" | "fast_only" | "accepted" | "unavailable" | "uncertain" | "invalid" | "saturated" | "disabled";
2131
+ "assessment_id"?: (string | null);
2132
+ "assessment"?: (Schemas["EquivalenceRecord"] | null);
2133
+ "acquisition": Schemas["AcquisitionIntent"];
2134
+ };
2135
+ "UnsupportedClause": {
2136
+ "field_id": string;
2137
+ "op": (Schemas["PredicateOp"] | null);
2138
+ "value": (boolean | number | string | Array<string> | Schemas["CountMatches"] | null);
2139
+ "reason": string;
2140
+ };
2141
+ "VocabularyData": {
2142
+ "default_count"?: 25;
2143
+ "kinds": Array<Schemas["VocabularyKind"]>;
2144
+ };
2145
+ "VocabularyDetail": {
2146
+ "field_id": string;
2147
+ "label": string;
2148
+ "instant": boolean;
2149
+ };
2150
+ "VocabularyKind": {
2151
+ "kind": Schemas["EntityType"];
2152
+ "name": string;
2153
+ "plural": string;
2154
+ "types": Array<string>;
2155
+ "details": Array<Schemas["VocabularyDetail"]>;
2156
+ "examples": Array<string>;
2157
+ "suggested": boolean;
2158
+ };
2159
+ "WebPushKeys": {
2160
+ "p256dh": string;
2161
+ "auth": string;
2162
+ };
2163
+ "WebPushSubscriptionInput": {
2164
+ "endpoint": string;
2165
+ "keys": Schemas["WebPushKeys"];
2166
+ "expirationTime"?: ((number) | null);
2167
+ "name": string;
2168
+ };
2169
+ "WebSourceCell": {
2170
+ "source_url": string;
2171
+ "response_sha256": string;
2172
+ "pointer": string;
2173
+ "association": "anchor" | "same_element" | "within_record" | "positional_example";
2174
+ };
2175
+ "WebSourceExplanation": {
2176
+ "example_rows": number;
2177
+ "inferred_rows": number;
2178
+ "left_out"?: Array<string>;
2179
+ "fields": Array<Schemas["WebSourceFieldExplanation"]>;
2180
+ "on_change": string;
2181
+ "page_kept_until"?: (string | null);
2182
+ };
2183
+ "WebSourceFieldExplanation": {
2184
+ "column": string;
2185
+ "relationship": "anchor" | "same_element" | "within_record" | "positional_example";
2186
+ "how": string;
2187
+ "on_change": string;
2188
+ "pattern"?: string;
2189
+ "found"?: number;
2190
+ "missing"?: number;
2191
+ };
2192
+ "WebSourceInfo": {
2193
+ "source_id": string;
2194
+ "name": string;
2195
+ "source_url": string;
2196
+ "project_id"?: (string | null);
2197
+ "created_at": string;
2198
+ "reuse": "local_relationships" | "same_snapshot_only";
2199
+ "name_column": string;
2200
+ "headers": Array<string>;
2201
+ "fields"?: Array<Schemas["WebSourceFieldExplanation"]>;
2202
+ };
2203
+ "WebSourceList": {
2204
+ "sources": Array<Schemas["WebSourceInfo"]>;
2205
+ };
2206
+ "WebSourcePreview": {
2207
+ "source_id": string;
2208
+ "preview_id": string;
2209
+ "preview_hash": string;
2210
+ "name": string;
2211
+ "source_url": string;
2212
+ "source_sha256": string;
2213
+ "fetched_at": string;
2214
+ "headers": Array<string>;
2215
+ "name_column": string;
2216
+ "rows": Array<Schemas["WebSourceRow"]>;
2217
+ "count": number;
2218
+ "missing_cells": number;
2219
+ "reuse": "local_relationships" | "same_snapshot_only";
2220
+ "notice": string;
2221
+ "explanation"?: (Schemas["WebSourceExplanation"] | null);
2222
+ "qualification_authority"?: false;
2223
+ };
2224
+ "WebSourceRow": {
2225
+ "id": string;
2226
+ "provided": {
2227
+ [key: string]: (string | null);
2228
+ };
2229
+ "cells": {
2230
+ [key: string]: Schemas["WebSourceCell"];
2231
+ };
2232
+ "missing"?: Array<string>;
2233
+ "example"?: boolean;
2234
+ };
2235
+ "WordedCondition": {
2236
+ "condition_id": string;
2237
+ "words": string;
2238
+ "statement": string;
2239
+ "search_words"?: string;
2240
+ };
2241
+ "WordedOutput": {
2242
+ "detail_id": string;
2243
+ "words": string;
2244
+ "description": string;
2245
+ "value_type"?: "text" | "number" | "date" | "url" | "email" | "phone" | "yes_no";
2246
+ "required"?: boolean;
2247
+ };
2248
+ "WorkspaceAuditEvent": {
2249
+ "id": string;
2250
+ "at": string;
2251
+ "who": string;
2252
+ "actor_account_id": (string | null);
2253
+ "actor_key_id": (string | null);
2254
+ "project_id": (string | null);
2255
+ "kind": "Sign-in" | "Access" | "Spending" | "Exports" | "Automation" | "Lists";
2256
+ "what": string;
2257
+ "action": string;
2258
+ "target_type": string;
2259
+ "target_id": string;
2260
+ };
2261
+ "WorkspaceAuditPage": {
2262
+ "events": Array<Schemas["WorkspaceAuditEvent"]>;
2263
+ "next_cursor": (string | null);
2264
+ "retention_months"?: 12;
2265
+ };
2266
+ "WorkspaceCollection": {
2267
+ "id": string;
2268
+ "name": string;
2269
+ "project_id"?: (string | null);
2270
+ "kind": "find" | "import" | "snapshot" | "combined";
2271
+ "imported": boolean;
2272
+ "rows": Array<{
2273
+ [key: string]: unknown;
2274
+ }>;
2275
+ "columns"?: Array<{
2276
+ [key: string]: string;
2277
+ }>;
2278
+ "created_at": string;
2279
+ "total": number;
2280
+ "duplicates"?: number;
2281
+ "source_collection_ids"?: Array<string>;
2282
+ "account_id"?: (string | null);
2283
+ "source_snapshot_id"?: (string | null);
2284
+ "find_id"?: (string | null);
2285
+ "import_id"?: (string | null);
2286
+ "source_preview_id"?: (string | null);
2287
+ "source_program_id"?: (string | null);
2288
+ "combined_id"?: (string | null);
2289
+ "combined"?: boolean;
2290
+ "immutable"?: boolean;
2291
+ "selection"?: boolean;
2292
+ "ast_hash"?: (string | null);
2293
+ "ast"?: ({
2294
+ [key: string]: unknown;
2295
+ } | null);
2296
+ "execution_manifest"?: ({
2297
+ [key: string]: unknown;
2298
+ } | null);
2299
+ "yourFields"?: Array<Schemas["YourField"]>;
2300
+ "yourFieldsVersion"?: number;
2301
+ };
2302
+ "WorkspaceCollectionChanges": {
2303
+ "collectionId": string;
2304
+ "checkedAt"?: (string | null);
2305
+ "runId"?: (string | null);
2306
+ "monitorId"?: (string | null);
2307
+ "status": "changed" | "unchanged" | "unresolved" | "unavailable" | "not_checked";
2308
+ "changes"?: Array<Schemas["WorkspaceRecordChange"]>;
2309
+ "comparisons"?: Array<Schemas["WorkspaceFieldComparison"]>;
2310
+ "records"?: Array<{
2311
+ [key: string]: unknown;
2312
+ }>;
2313
+ "summary"?: {
2314
+ [key: string]: number;
2315
+ };
2316
+ "parentSnapshotId"?: (string | null);
2317
+ "checks"?: Array<{
2318
+ [key: string]: unknown;
2319
+ }>;
2320
+ };
2321
+ "WorkspaceCollectionPage": {
2322
+ "collections": Array<{
2323
+ [key: string]: unknown;
2324
+ }>;
2325
+ "next_after"?: (string | null);
2326
+ };
2327
+ "WorkspaceFieldComparison": {
2328
+ "recordId": string;
2329
+ "field": string;
2330
+ "label": string;
2331
+ "status": "changed" | "added" | "unchanged" | "unresolved" | "unavailable";
2332
+ "before"?: (unknown | null);
2333
+ "after"?: (unknown | null);
2334
+ "source"?: (string | null);
2335
+ "url"?: (string | null);
2336
+ "sourceCollectionId"?: (string | null);
2337
+ "sourceRecordId"?: (string | null);
2338
+ };
2339
+ "WorkspaceImportData": {
2340
+ "id": string;
2341
+ "account_id": string;
2342
+ "project_id": (string | null);
2343
+ "name": string;
2344
+ "rows": Array<{
2345
+ [key: string]: unknown;
2346
+ }>;
2347
+ "created_at": string;
2348
+ "imported": true;
2349
+ "total_rows": number;
2350
+ "imported_count": number;
2351
+ "rejected_rows": Array<Schemas["ImportRejectedRow"]>;
2352
+ "max_rows": number;
2353
+ "metadata": {
2354
+ [key: string]: unknown;
2355
+ };
2356
+ };
2357
+ "WorkspaceNote": {
2358
+ "id": string;
2359
+ "text": string;
2360
+ "author": string;
2361
+ "authorId": string;
2362
+ "at": string;
2363
+ "createdAt": string;
2364
+ "resolved": boolean;
2365
+ "projectId"?: (string | null);
2366
+ "resolvedBy"?: (string | null);
2367
+ "resolvedAt"?: (string | null);
2368
+ };
2369
+ "WorkspaceNoteAdd": {
2370
+ "project_id"?: (string | null);
2371
+ "collection_id"?: (string | null);
2372
+ "record_id"?: (string | null);
2373
+ "expected_version": number;
2374
+ "id": string;
2375
+ "text": string;
2376
+ };
2377
+ "WorkspaceNoteDelete": {
2378
+ "project_id"?: (string | null);
2379
+ "collection_id"?: (string | null);
2380
+ "record_id"?: (string | null);
2381
+ "expected_version": number;
2382
+ };
2383
+ "WorkspaceNoteEdit": {
2384
+ "project_id"?: (string | null);
2385
+ "collection_id"?: (string | null);
2386
+ "record_id"?: (string | null);
2387
+ "expected_version": number;
2388
+ "text": string;
2389
+ };
2390
+ "WorkspaceNoteResolve": {
2391
+ "project_id"?: (string | null);
2392
+ "collection_id"?: (string | null);
2393
+ "record_id"?: (string | null);
2394
+ "expected_version": number;
2395
+ "resolved": boolean;
2396
+ };
2397
+ "WorkspaceNoteScope": {
2398
+ "project_id"?: (string | null);
2399
+ "collection_id"?: (string | null);
2400
+ "record_id"?: (string | null);
2401
+ };
2402
+ "WorkspaceNotes": {
2403
+ "version": number;
2404
+ "notes": Array<Schemas["WorkspaceNote"]>;
2405
+ };
2406
+ "WorkspaceNotification": {
2407
+ "id": string;
2408
+ "kind": "completion" | "mention" | "monitor" | "achievement";
2409
+ "title": string;
2410
+ "body": string;
2411
+ "project": string;
2412
+ "project_id": (string | null);
2413
+ "route": string;
2414
+ "createdAt": string;
2415
+ "read": boolean;
2416
+ "archived": boolean;
2417
+ };
2418
+ "WorkspaceNotificationPage": {
2419
+ "notifications": Array<Schemas["WorkspaceNotification"]>;
2420
+ "next_cursor": (string | null);
2421
+ };
2422
+ "WorkspaceNotifications": {
2423
+ "notifications": Array<Schemas["WorkspaceNotification"]>;
2424
+ };
2425
+ "WorkspaceRecordChange": {
2426
+ "recordId": string;
2427
+ "field": string;
2428
+ "label": string;
2429
+ "before": string;
2430
+ "after": string;
2431
+ "source"?: (string | null);
2432
+ "url"?: (string | null);
2433
+ "currentRecordId"?: (string | null);
2434
+ "sourceCollectionId"?: (string | null);
2435
+ "sourceRecordId"?: (string | null);
2436
+ };
2437
+ "WorkspaceResearchInput": {
2438
+ "source_import_id": (string | null);
2439
+ "source_name"?: (string | null);
2440
+ "provenance"?: (string | null);
2441
+ "input_access"?: ("not_shared" | null);
2442
+ "rows": Array<Schemas["WorkspaceResearchInputRow"]>;
2443
+ };
2444
+ "WorkspaceResearchInputRow": {
2445
+ "id": string;
2446
+ "provided": {
2447
+ [key: string]: unknown;
2448
+ };
2449
+ "entity_id": (string | null);
2450
+ "status": "pending" | "verified" | "excluded" | "not_delivered" | "unresolved" | "unavailable";
2451
+ "resolution"?: (Schemas["InputIdentityResolution"] | null);
2452
+ "qualification_reason"?: (string | null);
2453
+ };
2454
+ "WorkspaceSavedView": {
2455
+ "id": string;
2456
+ "name": string;
2457
+ "view"?: "table" | "list" | "map" | "relationships" | "compare" | "history";
2458
+ "query"?: string;
2459
+ "status"?: string;
2460
+ "area"?: (Array<Array<unknown>> | null);
2461
+ "hiddenColumns"?: Array<string>;
2462
+ "sorting"?: (Schemas["WorkspaceViewSorting"] | null);
2463
+ };
2464
+ "WorkspaceSearchHit": {
2465
+ "id": string;
2466
+ "kind": string;
2467
+ "title": string;
2468
+ "route": string;
2469
+ "snippet": string;
2470
+ "project_id"?: (string | null);
2471
+ "collection_id"?: (string | null);
2472
+ "record_id"?: (string | null);
2473
+ "note_id"?: (string | null);
2474
+ "imported"?: (boolean | null);
2475
+ };
2476
+ "WorkspaceSearchPage": {
2477
+ "results": Array<Schemas["WorkspaceSearchHit"]>;
2478
+ "next_cursor": (string | null);
2479
+ };
2480
+ "WorkspaceStarItem": {
2481
+ "id": string;
2482
+ "name": string;
2483
+ "route": string;
2484
+ };
2485
+ "WorkspaceStarList": {
2486
+ "version": number;
2487
+ "starred": Array<Schemas["WorkspaceStarItem"]>;
2488
+ };
2489
+ "WorkspaceStarWrite": {
2490
+ "expected_version": number;
2491
+ "item": Schemas["WorkspaceStarItem"];
2492
+ "starred": boolean;
2493
+ };
2494
+ "WorkspaceViewList": {
2495
+ "collection_id": string;
2496
+ "version": number;
2497
+ "views": Array<Schemas["WorkspaceSavedView"]>;
2498
+ };
2499
+ "WorkspaceViewSave": {
2500
+ "expected_version": number;
2501
+ "view": Schemas["WorkspaceSavedView"];
2502
+ };
2503
+ "WorkspaceViewSorting": {
2504
+ "columnKey": string;
2505
+ "order": number;
2506
+ };
2507
+ "YourField": {
2508
+ "key": string;
2509
+ "label": string;
2510
+ "type": "choice" | "check" | "text";
2511
+ "options"?: (Array<string> | null);
2512
+ };
2513
+ "YourFieldValue": {
2514
+ "expected_version": number;
2515
+ "record_ids": Array<string>;
2516
+ "key": string;
2517
+ "value"?: (string | boolean | null);
2518
+ };
2519
+ "YourFields": {
2520
+ "collection_id": string;
2521
+ "version": number;
2522
+ "fields": Array<Schemas["YourField"]>;
2523
+ "values": {
2524
+ [key: string]: {
2525
+ [key: string]: (string | boolean);
2526
+ };
2527
+ };
2528
+ };
2529
+ "YourFieldsSave": {
2530
+ "expected_version": number;
2531
+ "fields": Array<Schemas["YourField"]>;
2532
+ };
2533
+ }