@specstream/sdk 0.0.0-stage → 1.0.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,2046 @@
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
+ "finds_at_once": number;
176
+ "finds_per_hour": number;
177
+ "capabilities": Schemas["CapacityPlanCapabilities"];
178
+ "unlock": {
179
+ [key: string]: "starter" | "pro" | "team" | "enterprise";
180
+ };
181
+ };
182
+ "CapacityExecutionData": {
183
+ "reservation_id": string;
184
+ "find_id"?: (string | null);
185
+ "maximum_cents": number;
186
+ "state": "reserved" | "running" | "committed" | "released";
187
+ "replay": boolean;
188
+ };
189
+ "CapacityFreeAllowanceData": {
190
+ "status": "unclaimed" | "review" | "approved" | "granted";
191
+ "message"?: (string | null);
192
+ };
193
+ "CapacityFreeCycleData": {
194
+ "first_month": boolean;
195
+ "amount_cents": number;
196
+ "period_start": string;
197
+ "period_end": string;
198
+ };
199
+ "CapacityFundingData": {
200
+ "funding_id": string;
201
+ "kind": "topup" | "subscription";
202
+ "state": "pending" | "open" | "paid" | "expired" | "failed";
203
+ "currency"?: "USD" | "EUR";
204
+ "amount_cents": number;
205
+ "plan_id"?: (string | null);
206
+ "checkout_url"?: (string | null);
207
+ "expires_at": string;
208
+ "intended_quote_id"?: (string | null);
209
+ "error"?: (string | null);
210
+ "execution_authorized"?: false;
211
+ "next_action": "review_quote" | "open_checkout" | "wait" | "none";
212
+ };
213
+ "CapacityFundingRequest": {
214
+ "kind": "topup" | "subscription";
215
+ "amount_cents"?: (number | null);
216
+ "plan_id"?: (string | null);
217
+ "intended_quote_id"?: (string | null);
218
+ "idempotency_key": string;
219
+ "currency"?: ("usd" | "eur" | null);
220
+ };
221
+ "CapacityHistoryData": {
222
+ "events": Array<Schemas["CapacityHistoryEventData"]>;
223
+ };
224
+ "CapacityHistoryEventData": {
225
+ "event_key": string;
226
+ "kind": string;
227
+ "payload": {
228
+ [key: string]: unknown;
229
+ };
230
+ "created_at": string;
231
+ };
232
+ "CapacityLotData": {
233
+ "lot_id": string;
234
+ "kind": "free" | "free_monthly" | "purchased" | "membership" | "service_refund" | "bonus";
235
+ "available_cents": number;
236
+ "reserved_cents": number;
237
+ "settled_cents": number;
238
+ "expired_cents": number;
239
+ "expires_at"?: (string | null);
240
+ "issued_cents"?: (number | null);
241
+ "issued_at"?: (string | null);
242
+ };
243
+ "CapacityMembershipData": {
244
+ "plan_id": string;
245
+ "pending_plan_id"?: (string | null);
246
+ "billed_by"?: "card" | "app_store" | "google_play";
247
+ "next_plan"?: (string | null);
248
+ "upgrade_pending"?: boolean;
249
+ "payment_action_url"?: (string | null);
250
+ "change_status"?: ("pending" | "running" | "succeeded" | "failed" | "review" | null);
251
+ "change_error"?: (string | null);
252
+ "status": string;
253
+ "cancel_at_period_end": boolean;
254
+ "paid_period_start"?: (string | null);
255
+ "paid_period_end"?: (string | null);
256
+ };
257
+ "CapacityMembershipRequest": {
258
+ "action": "change" | "cancel" | "resume";
259
+ "plan_id"?: (string | null);
260
+ "idempotency_key": string;
261
+ };
262
+ "CapacityMembershipStatusData": {
263
+ "membership"?: (Schemas["CapacityMembershipData"] | null);
264
+ };
265
+ "CapacityPlanCapabilities": {
266
+ "schedules": boolean;
267
+ "deliveries": boolean;
268
+ "tables": boolean;
269
+ "automation": boolean;
270
+ "chat": boolean;
271
+ "route_planner": boolean;
272
+ "crm": boolean;
273
+ "sso": boolean;
274
+ "scim": boolean;
275
+ "audit_export": boolean;
276
+ };
277
+ "CapacityQuoteData": {
278
+ "pricing_version"?: "capacity.v1";
279
+ "quote_id": string;
280
+ "quote_hash": string;
281
+ "currency"?: "USD" | "EUR";
282
+ "maximum_cents": number;
283
+ "expires_at": string;
284
+ "scope": {
285
+ [key: string]: unknown;
286
+ };
287
+ "terms": {
288
+ "unit_cents"?: number;
289
+ "contact_unit_cents"?: number;
290
+ "contact_phone_unit_cents"?: number;
291
+ "check_unit_cents"?: number;
292
+ "required_check_unit_cents"?: number;
293
+ "required_check_allowance"?: number;
294
+ "related_block_cents"?: number;
295
+ "undelivered_unit_cents"?: number;
296
+ "retail_rate"?: {
297
+ "version"?: string;
298
+ "recheck"?: boolean;
299
+ "contact_unit_cents"?: (number | null);
300
+ [key: string]: unknown;
301
+ };
302
+ [key: string]: unknown;
303
+ };
304
+ "cost_basis": "estimated" | "measured";
305
+ "cost_profile_version": string;
306
+ "retained_work_cents"?: 0;
307
+ "existing_execution"?: ({
308
+ [key: string]: unknown;
309
+ } | null);
310
+ "can_authorize"?: boolean;
311
+ };
312
+ "CapacityQuoteRequest": {
313
+ "ast_hash": string;
314
+ "operation"?: "find" | "extend" | "add_facts" | "refresh" | "retained";
315
+ "parent_find_id"?: (string | null);
316
+ "revision_id"?: (string | null);
317
+ "project_id"?: (string | null);
318
+ "source_import_id"?: (string | null);
319
+ "source_row_ids"?: Array<string>;
320
+ "requested_units"?: number;
321
+ "minimum_units"?: (number | null);
322
+ "selected_entity_ids"?: (Array<string> | null);
323
+ };
324
+ "CapacityReferralData": {
325
+ "code": string;
326
+ "link": string;
327
+ "signed_up": number;
328
+ "rewarded": number;
329
+ "earned_cents": number;
330
+ };
331
+ "CapacityReferralVisitData": {
332
+ "attributed": boolean;
333
+ };
334
+ "CapacityReferralVisitRequest": {
335
+ "ref": string;
336
+ };
337
+ "CapacityRefundClaimData": {
338
+ "claim_id": string;
339
+ "status": string;
340
+ "find_id": string;
341
+ "unit_ids": Array<string>;
342
+ "created_at": string;
343
+ "resolved_at": (string | null);
344
+ "support_ticket_id": (string | null);
345
+ };
346
+ "CapacityRefundClaimsData": {
347
+ "claims": Array<Schemas["CapacityRefundClaimData"]>;
348
+ };
349
+ "CapacityRefundRequest": {
350
+ "reservation_id": string;
351
+ "unit_ids": Array<string>;
352
+ "reason": string;
353
+ "idempotency_key": string;
354
+ };
355
+ "CapacitySchedulePatch": {
356
+ "expected_version": number;
357
+ "state": "active" | "paused" | "deleted";
358
+ };
359
+ "CapacityScheduleRequest": {
360
+ "idempotency_key": string;
361
+ "scope": Schemas["CapacityQuoteRequest"];
362
+ "cadence_seconds": number;
363
+ "first_due_at": string;
364
+ "per_run_cents": number;
365
+ "period_cents": number;
366
+ "calendar_schedule"?: (Schemas["CalendarSchedule"] | null);
367
+ "valid_until": string;
368
+ };
369
+ "CapacityTrialEndingData": {
370
+ "event"?: "trial_ending";
371
+ "expires_at": string;
372
+ "remaining_free_cents": number;
373
+ };
374
+ "CheckableRewording": {
375
+ "text": string;
376
+ "condition": (Schemas["Predicate"] | null);
377
+ "operations"?: Array<Schemas["ChipOperation"]>;
378
+ };
379
+ "Chip": {
380
+ "chip_id": string;
381
+ "category": Schemas["ChipCategory"];
382
+ "field_id"?: (string | null);
383
+ "label": string;
384
+ "value"?: (boolean | number | string | Array<string> | Schemas["CountMatches"] | null);
385
+ "status": Schemas["ChipStatus"];
386
+ };
387
+ "ChipCategory": "type" | "category" | "place" | "rows" | "predicate" | "output";
388
+ "ChipOp": "set" | "remove";
389
+ "ChipOperation": {
390
+ "op": Schemas["ChipOp"];
391
+ "chip_id": string;
392
+ "value"?: (boolean | number | string | Array<string> | Schemas["CountMatches"] | null);
393
+ };
394
+ "ChipStatus": "resolved" | "ambiguous" | "unsupported" | "unresolved";
395
+ "CloudImportInput": {
396
+ "connection_id": string;
397
+ "import_id": string;
398
+ "name": string;
399
+ "project_id"?: (string | null);
400
+ "link": string;
401
+ "keepUpdated"?: boolean;
402
+ "mapping"?: {
403
+ [key: string]: string;
404
+ };
405
+ "source_sha256"?: (string | null);
406
+ "identity_column"?: (string | null);
407
+ "sheet_id"?: (string | null);
408
+ };
409
+ "CloudImportPreview": {
410
+ "connection_id": string;
411
+ "link": string;
412
+ "sheet_id"?: (string | null);
413
+ };
414
+ "CloudImportUpdate": {
415
+ "keepUpdated": boolean;
416
+ };
417
+ "CollectionFilter": {
418
+ "record_ids"?: (Array<string> | null);
419
+ "source_collection_ids"?: (Array<string> | null);
420
+ "bbox"?: (Array<unknown> | null);
421
+ };
422
+ "CombineCollectionsInput": {
423
+ "request_id": string;
424
+ "name": string;
425
+ "collection_ids": Array<string>;
426
+ "project_id"?: (string | null);
427
+ };
428
+ "CommerceData": {
429
+ "spec_version"?: "commerce.v1";
430
+ "find_id": string;
431
+ "payment_status": string;
432
+ "fulfillment_status": string;
433
+ "settlement_status": "none" | "pending" | "settled" | "attention";
434
+ "access_state": string;
435
+ "access_allowed": boolean;
436
+ "next_action": "wait" | "retrieve" | "contact_support" | "none";
437
+ "currency"?: "USD";
438
+ "amount_authorized_cents": number;
439
+ "amount_captured_cents": number;
440
+ "amount_refunded_cents": number;
441
+ "delivered_rows": number;
442
+ "fulfilled_at": (string | null);
443
+ "access_expires_at": (string | null);
444
+ "cancel_requested": boolean;
445
+ "capacity_offer": Schemas["CapacityQuoteData"];
446
+ "billing_model"?: "capacity.v1";
447
+ "reservation_id": string;
448
+ "billed_unit_ids"?: Array<string>;
449
+ "billed_units"?: Array<Schemas["BilledUnit"]>;
450
+ "shortfall"?: (Schemas["Shortfall"] | null);
451
+ };
452
+ "CompilerStatus": "runnable" | "needs_edit" | "rejected" | "capability_pending" | "compiler_unavailable" | "unquoted_plan";
453
+ "ConditionGrade": {
454
+ "part_id": string;
455
+ "field_id": (string | null);
456
+ "check": "instant" | "page" | "own_words";
457
+ "single_source"?: (string | null);
458
+ };
459
+ "ConnectedToolData": {
460
+ "result": {
461
+ [key: string]: unknown;
462
+ };
463
+ };
464
+ "ContactBadge": "Phone on file" | "Email published" | "Email not published" | "Site on file";
465
+ "ContactVisibility": "full" | "badge" | "hidden";
466
+ "CopyCollectionInput": {
467
+ "request_id": string;
468
+ "name": string;
469
+ "project_id"?: (string | null);
470
+ };
471
+ "CountComparison": {
472
+ "op": "gte" | "gt" | "lte" | "lt" | "eq" | "ne";
473
+ "value": number;
474
+ };
475
+ "CountMatches": {
476
+ "condition"?: (Schemas["MemberExpression"] | Schemas["MemberPredicate"] | null);
477
+ "count": Schemas["CountComparison"];
478
+ };
479
+ "CustomerWebhookData": {
480
+ "hook_id": string;
481
+ "event_name": string;
482
+ "events": Array<"find.completed" | "monitor.found" | "collection.records_added">;
483
+ "secret": string;
484
+ };
485
+ "CustomerWebhookListData": {
486
+ "webhooks": Array<Schemas["CustomerWebhookListItem"]>;
487
+ };
488
+ "CustomerWebhookListItem": {
489
+ "hook_id": string;
490
+ "url": string;
491
+ "event_name": string;
492
+ "events": Array<"find.completed" | "monitor.found" | "collection.records_added">;
493
+ "revoked": boolean;
494
+ "key_rotation_required": boolean;
495
+ };
496
+ "CustomerWebhookRequest": {
497
+ "url": string;
498
+ "event_name"?: "find.completed" | "monitor.found" | "collection.records_added";
499
+ "events"?: (Array<"find.completed" | "monitor.found" | "collection.records_added"> | null);
500
+ };
501
+ "DecisionPage": {
502
+ "execution_manifest"?: (Schemas["ExecutionManifest"] | null);
503
+ "find_id": string;
504
+ "decisions": Array<Schemas["MatchDecision"]>;
505
+ "next_cursor"?: (string | null);
506
+ };
507
+ "DeliveryProjection": {
508
+ "execution_manifest"?: (Schemas["ExecutionManifest"] | null);
509
+ "spec_version"?: "delivery.v1";
510
+ "find_id": string;
511
+ "ast_hash": string;
512
+ "snapshot_id": string;
513
+ "generated_at": string;
514
+ "lineage"?: (Schemas["FindLineage"] | null);
515
+ "rows": Array<Schemas["AcceptedRow"]>;
516
+ };
517
+ "DeliveryReference": {
518
+ "find_id": string;
519
+ "ast_hash": string;
520
+ "snapshot_id": string;
521
+ "generated_at": string;
522
+ };
523
+ "DestinationRequest": {
524
+ "selection": {
525
+ [key: string]: unknown;
526
+ };
527
+ };
528
+ "DestinationSyncInput": {
529
+ "connection_id": string;
530
+ "collectionId": string;
531
+ "destination_sha256": string;
532
+ "keepSending"?: boolean;
533
+ };
534
+ "DestinationSyncUpdate": {
535
+ "keepSending": boolean;
536
+ };
537
+ "DictationCapabilities": {
538
+ "spec_version"?: "dictation.v1";
539
+ "configured": boolean;
540
+ "ready": boolean;
541
+ "provider": ("cloudflare" | "groq" | null);
542
+ "model": (string | null);
543
+ "languages"?: Array<string>;
544
+ "language_detection"?: "automatic_unless_hint_supplied";
545
+ "content_types"?: Array<string>;
546
+ "max_upload_bytes"?: number;
547
+ "max_audio_seconds"?: number;
548
+ "mode"?: "complete_utterances";
549
+ "processing"?: "hosted_api";
550
+ "audio_retention"?: "request_memory_only";
551
+ "automatically_executes"?: false;
552
+ "multilingual_intent_enabled"?: false;
553
+ "readiness_scope"?: "configuration_and_decoder_not_provider_health";
554
+ };
555
+ "DictationInput": {
556
+ "document_id": string;
557
+ "revision": number;
558
+ "recording_id": string;
559
+ "sequence"?: number;
560
+ "base_text_hash": string;
561
+ "language"?: (string | null);
562
+ "expected_audio_sha256"?: (string | null);
563
+ };
564
+ "DictationResult": {
565
+ "spec_version"?: "dictation.v1";
566
+ "input": Schemas["DictationInput"];
567
+ "audio_sha256": string;
568
+ "request_hash": string;
569
+ "duration_seconds": number;
570
+ "status": "transcribed" | "uncertain" | "no_speech";
571
+ "text": string;
572
+ "transcript_sha256": string;
573
+ "detected_language"?: (string | null);
574
+ "provider": ("cloudflare" | "groq" | null);
575
+ "model": (string | null);
576
+ "segments"?: Array<Schemas["TranscriptSegment"]>;
577
+ "warnings"?: Array<string>;
578
+ "transcription_only"?: true;
579
+ "translation_requested"?: false;
580
+ "audio_retention"?: "request_memory_only";
581
+ "machine_generated"?: true;
582
+ };
583
+ "Discovery": {
584
+ "geography_scope"?: ("worldwide.v1" | null);
585
+ "term": string;
586
+ "platforms"?: Array<string>;
587
+ "searches"?: Array<string>;
588
+ "role_phrases"?: Array<string>;
589
+ "seed_identifiers"?: {
590
+ [key: string]: string;
591
+ };
592
+ };
593
+ "DisplayAbsence": "Not published" | "Couldn't check";
594
+ "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";
595
+ "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";
596
+ "EquivalenceRecord": {
597
+ "assessment_id": string;
598
+ "provider": string;
599
+ "model": string;
600
+ "verdict": "equivalent";
601
+ "segments": Array<Schemas["AssessedSpan"]>;
602
+ "assessed_ast_hash": (string | null);
603
+ "segment_verdicts": Array<"equivalent">;
604
+ "reason": string;
605
+ "meaning"?: "recorded_model_judgment_not_source_fact";
606
+ };
607
+ "ErrorBody": {
608
+ "code": Schemas["ErrorCode"];
609
+ "message": string;
610
+ "details"?: {
611
+ [key: string]: unknown;
612
+ };
613
+ };
614
+ "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";
615
+ "ErrorEnvelope": {
616
+ "error": Schemas["ErrorBody"];
617
+ };
618
+ "EvidenceTime": {
619
+ "contract"?: "source-time.v1";
620
+ "state"?: "historical_capture";
621
+ "captured_at": string;
622
+ "retrieved_at": string;
623
+ "original_url"?: (string | null);
624
+ "archive": "commoncrawl" | "wayback" | "arquivo";
625
+ };
626
+ "ExecutionManifest": {
627
+ "version"?: "evidence-bound.v1";
628
+ "policy_hash": string;
629
+ "decision_root": string;
630
+ "plan_version": string;
631
+ "ast_hash": string;
632
+ "registry_version": string;
633
+ "decision_count": number;
634
+ "stages": {
635
+ [key: string]: number;
636
+ };
637
+ "semantic_judgments": number;
638
+ "unavailable_judgments": number;
639
+ "qualified_matches": number;
640
+ "unknown_never_promoted": boolean;
641
+ "replay_verified": boolean;
642
+ "replay_scope": string;
643
+ "live_sources_can_change": boolean;
644
+ "sealed": boolean;
645
+ };
646
+ "ExportData": {
647
+ "download_url": string;
648
+ "filename": string;
649
+ "expires_in_s"?: number;
650
+ "single_use"?: boolean;
651
+ };
652
+ "ExportFormat": "xlsx" | "csv" | "json" | "html" | "kml" | "geojson";
653
+ "ExportRequest": {
654
+ "format": Schemas["ExportFormat"];
655
+ };
656
+ "FieldObservation": {
657
+ "entity_id": string;
658
+ "field_id": string;
659
+ "value": (unknown | null);
660
+ "normalized_value": (string | null);
661
+ "source": string;
662
+ "source_url": (string | null);
663
+ "observed_at": string;
664
+ "observation_id": string;
665
+ "request_hash": string;
666
+ "join_method": (Schemas["JoinMethod"] | null);
667
+ "join_confidence"?: (number | null);
668
+ "null_reason": (Schemas["NullReason"] | null);
669
+ "selected"?: boolean;
670
+ "value_complete"?: (boolean | null);
671
+ "source_record_id"?: (string | null);
672
+ "source_pointer"?: (string | null);
673
+ "source_response_sha256"?: (string | null);
674
+ "source_time"?: (Schemas["EvidenceTime"] | null);
675
+ };
676
+ "FileImportCommand": {
677
+ "import_id": string;
678
+ "name": string;
679
+ "format": string;
680
+ "project_id"?: (string | null);
681
+ "sheet"?: (string | null);
682
+ "content"?: (string | null);
683
+ "content_base64"?: (string | null);
684
+ "mapping"?: ({
685
+ [key: string]: string;
686
+ } | null);
687
+ };
688
+ "FileImportInput": {
689
+ "import_id": string;
690
+ "name": string;
691
+ "format": "csv" | "xlsx";
692
+ "project_id"?: (string | null);
693
+ "sheet"?: (string | null);
694
+ };
695
+ "Find": {
696
+ "spec_version"?: "find.v1";
697
+ "find_id": string;
698
+ "parent_find_id": (string | null);
699
+ "query_id": string;
700
+ "guest_id": string;
701
+ "account_id": (string | null);
702
+ "project_id"?: (string | null);
703
+ "status": Schemas["FindStatus"];
704
+ "ast_hash": string;
705
+ "spec"?: (Schemas["QueryAst"] | null);
706
+ "operation"?: (Schemas["FindOperation"] | null);
707
+ "revisit"?: (Schemas["RevisitSummary"] | null);
708
+ "requested_count": number;
709
+ "accepted_count": number;
710
+ "stop_reason": (Schemas["StopReason"] | null);
711
+ "error_code": (Schemas["ErrorCode"] | null);
712
+ "immutable": boolean;
713
+ "created_at": string;
714
+ "updated_at": string;
715
+ "expires_at": (string | null);
716
+ "commerce"?: (Schemas["CommerceData"] | null);
717
+ "queue_position"?: (number | null);
718
+ "missing_required_details"?: {
719
+ [key: string]: number;
720
+ };
721
+ };
722
+ "FindContinuationRequest": {
723
+ "operation": "extend" | "refresh" | "add_facts";
724
+ "idempotency_key": string;
725
+ "additional_rows"?: (number | null);
726
+ "ast_hash"?: (string | null);
727
+ "selected_entity_ids"?: (Array<string> | null);
728
+ };
729
+ "FindLineage": {
730
+ "find_id": string;
731
+ "parent_find_id": (string | null);
732
+ "spec_id": string;
733
+ "revision_id": string;
734
+ "operation": "find" | "extend" | "add_facts" | "refresh";
735
+ };
736
+ "FindOperation": {
737
+ "operation": "extend" | "refresh" | "add_facts";
738
+ "parent_find_id": string;
739
+ "root_find_id": string;
740
+ "parent_snapshot_id": string;
741
+ "context_hash": string;
742
+ };
743
+ "FindRowsPage": {
744
+ "find_id": string;
745
+ "status": Schemas["FindStatus"];
746
+ "accepted_count": number;
747
+ "rows": Array<Schemas["AcceptedRow"]>;
748
+ "possible"?: Array<Schemas["PossibleRow"]>;
749
+ "entitlement": string;
750
+ "commerce"?: (Schemas["CommerceData"] | null);
751
+ "next_cursor"?: (string | null);
752
+ "delivery"?: (Schemas["DeliveryReference"] | null);
753
+ };
754
+ "FindStatus": "queued" | "planning" | "running" | "completed" | "partial" | "failed" | "canceled" | "expired";
755
+ "Geo": ({
756
+ "kind": Schemas["GeoKind"];
757
+ "query_label": string;
758
+ "country_code"?: (string | null);
759
+ "admin1_code": (string | null);
760
+ "locality": (string | null);
761
+ "postal_code": (string | null);
762
+ "status": Schemas["GeoStatus"];
763
+ "source": Schemas["GeoSource"];
764
+ "geoname_id"?: (number | null);
765
+ "near"?: (Schemas["Near"] | null);
766
+ } & (unknown));
767
+ "GeoKind": "country" | "locality" | "admin1";
768
+ "GeoSource": "gazetteer" | "catalog" | "alias" | "well_formed";
769
+ "GeoStatus": "qualified" | "ambiguous" | "unqualified";
770
+ "Healthz": {
771
+ "contract"?: "finder.cross-source.v1";
772
+ "db": "ok" | "down";
773
+ "payments_live": boolean;
774
+ "worker_age_s": (number | null);
775
+ "kill_switch": boolean;
776
+ };
777
+ "ImportRejectedRow": {
778
+ "row_number": number;
779
+ "reason": string;
780
+ "id"?: (string | null);
781
+ };
782
+ "InferredClause": {
783
+ "field_id": string;
784
+ "reason": string;
785
+ };
786
+ "InvitationData": {
787
+ "id": string;
788
+ "email": string;
789
+ "role": string;
790
+ "status": string;
791
+ "project_id": string;
792
+ };
793
+ "InvitationInput": {
794
+ "request_id": string;
795
+ "project_id": string;
796
+ "email": string;
797
+ "role"?: "editor" | "viewer";
798
+ "monthly_spend_cap_cents"?: number;
799
+ "expires_in_days"?: 1 | 7 | 30;
800
+ };
801
+ "JoinMethod": "place_id" | "registrable_domain" | "e164_phone_locality" | "address_name" | "reciprocal_handle" | "source_declared_link";
802
+ "KeyCreateData": {
803
+ "key_id": string;
804
+ "prefix": string;
805
+ "name": string;
806
+ "token": string;
807
+ "scopes": Array<"specs:read" | "specs:write" | "finds:read" | "finds:write" | "finds:spend" | "projects:read" | "projects:manage" | "account:read">;
808
+ "project_id": (string | null);
809
+ "spend_cap_cents": number;
810
+ "expires_at": (string | null);
811
+ };
812
+ "KeyCreateRequest": {
813
+ "name"?: string;
814
+ "scopes"?: Array<"specs:read" | "specs:write" | "finds:read" | "finds:write" | "finds:spend" | "projects:read" | "projects:manage" | "account:read">;
815
+ "project_id"?: (string | null);
816
+ "spend_cap_cents"?: number;
817
+ "expires_in_days"?: number;
818
+ };
819
+ "KeyListItem": {
820
+ "key_id": string;
821
+ "prefix": string;
822
+ "name": string;
823
+ "revoked": boolean;
824
+ "scopes": Array<"specs:read" | "specs:write" | "finds:read" | "finds:write" | "finds:spend" | "projects:read" | "projects:manage" | "account:read">;
825
+ "project_id": (string | null);
826
+ "spend_cap_cents": number;
827
+ "expires_at": (string | null);
828
+ "last_used_at": (string | null);
829
+ };
830
+ "LineagePage": {
831
+ "finds": Array<Schemas["FindLineage"]>;
832
+ "next_cursor"?: (string | null);
833
+ };
834
+ "LiveUnderstandingRequest": {
835
+ "document_id": string;
836
+ "revision": number;
837
+ "generation"?: number;
838
+ "text": string;
839
+ "kind"?: (Schemas["EntityType"] | null);
840
+ "context"?: Schemas["ReadingContext"];
841
+ "phase"?: "fast" | "refined";
842
+ "expected_source_hash"?: (string | null);
843
+ };
844
+ "LiveUnderstandingResult": {
845
+ "document_id": string;
846
+ "revision": number;
847
+ "generation": number;
848
+ "phase": "fast" | "refined";
849
+ "context": Schemas["ReadingContext"];
850
+ "source_hash": string;
851
+ "request_hash": string;
852
+ "receipt": Schemas["ReadingReceipt"];
853
+ "result": Schemas["ParseResult"];
854
+ };
855
+ "LogicalProof": {
856
+ "op": "predicate" | "all" | "any" | "not";
857
+ "truth": "true" | "false" | "unknown";
858
+ "predicate_index"?: (number | null);
859
+ "children"?: Array<Schemas["LogicalProof"]>;
860
+ };
861
+ "MagicLinkConsumeRequest": {
862
+ "token": string;
863
+ };
864
+ "MagicLinkRequest": {
865
+ "email": string;
866
+ "ref"?: (string | null);
867
+ };
868
+ "MatchDecision": {
869
+ "decision_hash"?: (string | null);
870
+ "entity_id": string;
871
+ "predicates": Array<Schemas["PredicateEvidence"]>;
872
+ "match_proof"?: (Schemas["LogicalProof"] | null);
873
+ "billable": boolean;
874
+ "locked": boolean;
875
+ };
876
+ "MatchExpression": ({
877
+ "op": "all" | "any" | "not";
878
+ "clauses": Array<(Schemas["Predicate"] | Schemas["MatchExpression"])>;
879
+ } & (unknown));
880
+ "MatchLineage": {
881
+ "find_id": string;
882
+ "entity_id": string;
883
+ "relation"?: "same_public_object";
884
+ };
885
+ "McpData": {
886
+ "mcp"?: boolean;
887
+ "transport"?: "streamable-http";
888
+ };
889
+ "MeData": {
890
+ "account_id"?: (string | null);
891
+ "guest": boolean;
892
+ "spend_ceiling_cents"?: number;
893
+ "amount_spent_cents"?: number;
894
+ "remaining_spend_cents"?: number;
895
+ "authorization_available"?: boolean;
896
+ "remaining_spend_kind"?: "delegated_authorization_ceiling";
897
+ };
898
+ "MemberExpression": ({
899
+ "op": "all" | "any" | "not";
900
+ "clauses": Array<(Schemas["MemberPredicate"] | Schemas["MemberExpression"])>;
901
+ } & (unknown));
902
+ "MemberPage": {
903
+ "members": Array<Schemas["ProjectMember"]>;
904
+ "next_cursor"?: (string | null);
905
+ };
906
+ "MemberPredicate": ({
907
+ "field_id": string;
908
+ "op": Schemas["PredicateOp"];
909
+ "value": (boolean | number | string | Array<string> | null);
910
+ } & (unknown));
911
+ "MemberRevokeData": {
912
+ "revoked": boolean;
913
+ };
914
+ "MustMatchOption": {
915
+ "field_id": string;
916
+ "label": string;
917
+ "value_type": string;
918
+ "operators": Array<Schemas["PredicateOp"]>;
919
+ };
920
+ "NativeAuthRedeem": {
921
+ "handoff_id": string;
922
+ "code_verifier": string;
923
+ };
924
+ "NativeAuthRedeemData": {
925
+ "ok": boolean;
926
+ "pending_provider": boolean;
927
+ "connection_id"?: (string | null);
928
+ "purpose"?: "signin" | "connection";
929
+ };
930
+ "NativeAuthStart": {
931
+ "provider": string;
932
+ "code_challenge": string;
933
+ "email"?: (string | null);
934
+ "ref"?: (string | null);
935
+ "enroll"?: boolean;
936
+ "purpose"?: "signin" | "connection";
937
+ };
938
+ "NativeAuthStartData": {
939
+ "handoff_id": string;
940
+ "callback_url": string;
941
+ "authorization_url": string;
942
+ };
943
+ "NativeExportRequest": {
944
+ "find_id": string;
945
+ "entity_id": string;
946
+ "destination_sha256": string;
947
+ };
948
+ "Near": {
949
+ "point": string;
950
+ "latitude": number;
951
+ "longitude": number;
952
+ "radius_km": number;
953
+ };
954
+ "Normalization": {
955
+ "start": number;
956
+ "end": number;
957
+ "original": string;
958
+ "normalized": string;
959
+ "kind": "spelling" | "slang" | "typography" | "translation" | "paraphrase";
960
+ "reason": string;
961
+ "authority": "registered_rule" | "recorded_equivalence";
962
+ "assessment_id"?: (string | null);
963
+ };
964
+ "NotificationPatch": {
965
+ "read"?: (boolean | null);
966
+ "archived"?: (boolean | null);
967
+ };
968
+ "NotificationRead": {
969
+ "ids": Array<string>;
970
+ };
971
+ "NullReason": "not_published" | "blocked_at_source" | "challenge_page" | "unreadable" | "timeout" | "join_ambiguous" | "predicate_unknown" | "internal_failure";
972
+ "OauthTokenData": {
973
+ "access_token": string;
974
+ "token_type"?: "Bearer";
975
+ "expires_in": number;
976
+ };
977
+ "OauthTokenRequest": {
978
+ "grant_type": "authorization_code";
979
+ "code": string;
980
+ "code_verifier": string;
981
+ "client_id": string;
982
+ "redirect_uri": string;
983
+ };
984
+ "OptOutRequest": {
985
+ "website"?: (string | null);
986
+ "email"?: (string | null);
987
+ "phone"?: (string | null);
988
+ "profile_url"?: (string | null);
989
+ "name"?: (string | null);
990
+ "employer"?: (string | null);
991
+ };
992
+ "OutputField": {
993
+ "field_id": string;
994
+ "required"?: boolean;
995
+ };
996
+ "ParseFromChipsRequest": {
997
+ "ast": Schemas["QueryAst"];
998
+ "operations": Array<Schemas["ChipOperation"]>;
999
+ };
1000
+ "ParseRequest": {
1001
+ "q": string;
1002
+ "kind"?: (Schemas["EntityType"] | null);
1003
+ "locale"?: string;
1004
+ "expected_source_hash"?: (string | null);
1005
+ };
1006
+ "ParseResult": {
1007
+ "grading"?: (Schemas["ReadingGrade"] | null);
1008
+ "understanding"?: (Schemas["Understanding"] | null);
1009
+ "decision_id"?: (string | null);
1010
+ "status": Schemas["CompilerStatus"];
1011
+ "ast": (Schemas["QueryAst"] | null);
1012
+ "chips": Array<Schemas["Chip"]>;
1013
+ "unsupported": Array<Schemas["UnsupportedClause"]>;
1014
+ "compiler_version": string;
1015
+ "ast_hash": (string | null);
1016
+ "canonical_sentence": (string | null);
1017
+ };
1018
+ "PasskeyComplete": {
1019
+ "challenge_id": string;
1020
+ "credential": {
1021
+ [key: string]: unknown;
1022
+ };
1023
+ };
1024
+ "PasskeyData": {
1025
+ "id": string;
1026
+ "label": string;
1027
+ "created_at": string;
1028
+ "last_used_at"?: (string | null);
1029
+ };
1030
+ "PasskeyLabel": {
1031
+ "label": string;
1032
+ };
1033
+ "PasskeyList": {
1034
+ "passkeys": Array<Schemas["PasskeyData"]>;
1035
+ };
1036
+ "PasskeyRegistration": {
1037
+ "challenge_id": string;
1038
+ "credential": {
1039
+ [key: string]: unknown;
1040
+ };
1041
+ "label": string;
1042
+ };
1043
+ "PlacementMonthlyData": {
1044
+ "period_id": string;
1045
+ "free_limit": number;
1046
+ "free_used": number;
1047
+ "free_reserved": number;
1048
+ "free_remaining": number;
1049
+ "cached_rows_count_toward_free": boolean;
1050
+ };
1051
+ "PlacementQuoteData": {
1052
+ "quote_id": string;
1053
+ "quote_hash": string;
1054
+ "import_id": string;
1055
+ "expires_at": string;
1056
+ "rows_needing_placement": number;
1057
+ "cached_rows": number;
1058
+ "free_rows": number;
1059
+ "monthly_free_rows": number;
1060
+ "charged_rows": number;
1061
+ "unit_cents": number;
1062
+ "total_cents": number;
1063
+ "monthly": Schemas["PlacementMonthlyData"];
1064
+ };
1065
+ "PlacementRowData": {
1066
+ "row_id": string;
1067
+ "status": "placed" | "not_found" | "ambiguous";
1068
+ "latitude"?: (number | null);
1069
+ "longitude"?: (number | null);
1070
+ "precision"?: (string | null);
1071
+ "match_quality"?: (string | null);
1072
+ "source"?: (string | null);
1073
+ "cached": boolean;
1074
+ "charged_cents": number;
1075
+ };
1076
+ "PlacementStartInput": {
1077
+ "quote_id": string;
1078
+ "quote_hash": string;
1079
+ "confirm_max_cents": number;
1080
+ "request_id": string;
1081
+ };
1082
+ "PlacementStatusData": {
1083
+ "placement_id": string;
1084
+ "import_id": string;
1085
+ "state": "pending" | "running" | "completed" | "failed";
1086
+ "rows_total": number;
1087
+ "rows_processed": number;
1088
+ "placed": number;
1089
+ "not_found": number;
1090
+ "ambiguous": number;
1091
+ "charged_cents": number;
1092
+ "error_code": (string | null);
1093
+ "rows": Array<Schemas["PlacementRowData"]>;
1094
+ "monthly": Schemas["PlacementMonthlyData"];
1095
+ };
1096
+ "PossibleCell": {
1097
+ "column_id": "identity" | "link" | "location";
1098
+ "label": string;
1099
+ "value": string;
1100
+ };
1101
+ "PossibleCondition": {
1102
+ "condition_id": string;
1103
+ "label": string;
1104
+ "status": "yes" | "open";
1105
+ "reason": string;
1106
+ "quote"?: (string | null);
1107
+ "source_url"?: (string | null);
1108
+ };
1109
+ "PossibleRow": {
1110
+ "spec_version"?: "possible_row.v1";
1111
+ "entity_id": string;
1112
+ "ordinal": number;
1113
+ "cells": Array<Schemas["PossibleCell"]>;
1114
+ "conditions": Array<Schemas["PossibleCondition"]>;
1115
+ "billable"?: false;
1116
+ };
1117
+ "Predicate": ({
1118
+ "field_id": string;
1119
+ "op": Schemas["PredicateOp"];
1120
+ "value": (boolean | number | string | Array<string> | Schemas["CountMatches"] | null);
1121
+ } & (unknown));
1122
+ "PredicateEvidence": {
1123
+ "field_id": string;
1124
+ "op": Schemas["PredicateOp"];
1125
+ "required_value": (unknown | null);
1126
+ "observed_value": (unknown | null);
1127
+ "passed": boolean;
1128
+ "source_label": string;
1129
+ "source_url": (string | null);
1130
+ "observed_at": string;
1131
+ "null_reason"?: (Schemas["NullReason"] | null);
1132
+ "source_ref"?: (Schemas["PredicateSourceRef"] | null);
1133
+ "record_proof"?: (Schemas["RecordCountProof"] | Schemas["AcquiredRecordCountProof"] | null);
1134
+ };
1135
+ "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";
1136
+ "PredicateSourceRef": {
1137
+ "observation_id": string;
1138
+ "request_hash": string;
1139
+ "native_record_id"?: (string | null);
1140
+ "pointer"?: (string | null);
1141
+ "response_sha256"?: (string | null);
1142
+ "source_time"?: (Schemas["EvidenceTime"] | null);
1143
+ };
1144
+ "Project": {
1145
+ "project_id": string;
1146
+ "name": string;
1147
+ "owner_account_id": string;
1148
+ "version": number;
1149
+ "monthly_spend_cap_cents": number;
1150
+ "role": "owner" | "editor" | "viewer";
1151
+ "can_spend": boolean;
1152
+ "created_at": string;
1153
+ };
1154
+ "ProjectCreateRequest": {
1155
+ "name": string;
1156
+ "monthly_spend_cap_cents"?: number;
1157
+ };
1158
+ "ProjectMember": {
1159
+ "account_id": string;
1160
+ "role": "owner" | "editor" | "viewer";
1161
+ "monthly_spend_cap_cents": number;
1162
+ };
1163
+ "ProjectMemberRequest": {
1164
+ "account_id": string;
1165
+ "role": "editor" | "viewer";
1166
+ "monthly_spend_cap_cents"?: number;
1167
+ };
1168
+ "ProjectPage": {
1169
+ "projects": Array<Schemas["Project"]>;
1170
+ "next_cursor"?: (string | null);
1171
+ };
1172
+ "ProjectPatchRequest": {
1173
+ "expected_version": number;
1174
+ "name"?: (string | null);
1175
+ "monthly_spend_cap_cents"?: (number | null);
1176
+ };
1177
+ "PushCapabilities": {
1178
+ "apns": boolean;
1179
+ "fcm": boolean;
1180
+ "web_push": boolean;
1181
+ "vapid_public_key"?: (string | null);
1182
+ };
1183
+ "PushDevice": {
1184
+ "device_id": string;
1185
+ "platform": "apns" | "fcm" | "web_push";
1186
+ "name": string;
1187
+ "active": boolean;
1188
+ "created_at": string;
1189
+ "updated_at": string;
1190
+ };
1191
+ "PushDeviceInput": {
1192
+ "platform": "apns" | "fcm";
1193
+ "token": string;
1194
+ "name": string;
1195
+ };
1196
+ "PushDevicePage": {
1197
+ "devices": Array<Schemas["PushDevice"]>;
1198
+ };
1199
+ "PushDeviceRevoked": {
1200
+ "revoked"?: true;
1201
+ };
1202
+ "QueryAst": ({
1203
+ "target_requirement"?: (Schemas["TargetRequirement"] | null);
1204
+ "semantic_binding"?: (Schemas["SemanticBinding"] | null);
1205
+ "spec_version"?: "query_ast.v1";
1206
+ "entity_type": Schemas["EntityType"];
1207
+ "limit": Schemas["QueryLimit"];
1208
+ "discovery": Schemas["Discovery"];
1209
+ "geo"?: (Schemas["Geo"] | null);
1210
+ "where": Array<Schemas["Predicate"]>;
1211
+ "match_expression"?: (Schemas["MatchExpression"] | null);
1212
+ "output_fields"?: Array<Schemas["OutputField"]>;
1213
+ "worded_conditions"?: Array<Schemas["WordedCondition"]>;
1214
+ "worded_outputs"?: Array<Schemas["WordedOutput"]>;
1215
+ "sort": Array<Schemas["SortKey"]>;
1216
+ "locale": string;
1217
+ "inferred": Array<Schemas["InferredClause"]>;
1218
+ "unsupported": Array<Schemas["UnsupportedClause"]>;
1219
+ } & (unknown));
1220
+ "QueryLimit": {
1221
+ "max"?: number;
1222
+ "inferred"?: boolean;
1223
+ };
1224
+ "ReadingContext": {
1225
+ "locale"?: string;
1226
+ "target_type"?: (string | null);
1227
+ "source_collection"?: (string | null);
1228
+ "operation"?: ("find" | "extend" | "add-facts" | "refresh" | null);
1229
+ };
1230
+ "ReadingGrade": {
1231
+ "kind": (Schemas["EntityType"] | null);
1232
+ "strength": "strong" | "good" | "weak";
1233
+ "path": ("catalog" | "web" | "knowledge" | null);
1234
+ "conditions"?: Array<Schemas["ConditionGrade"]>;
1235
+ "suggestions"?: Array<Schemas["ReadingSuggestion"]>;
1236
+ };
1237
+ "ReadingReceipt": {
1238
+ "text": string;
1239
+ "source_hash": string;
1240
+ "spans": Array<Schemas["ReceiptSpan"]>;
1241
+ "normalizations"?: Array<Schemas["ReceiptNormalization"]>;
1242
+ "refinement": "enabled" | "disabled";
1243
+ "ast": ({
1244
+ [key: string]: unknown;
1245
+ } | null);
1246
+ };
1247
+ "ReadingSuggestion": {
1248
+ "part_id": string;
1249
+ "words": string;
1250
+ "span_id"?: (string | null);
1251
+ "nature": "stated" | "judgment" | "absence" | "cross_page_count";
1252
+ "rewordings"?: Array<Schemas["CheckableRewording"]>;
1253
+ };
1254
+ "Readyz": {
1255
+ "db": "ok";
1256
+ };
1257
+ "ReceiptNormalization": {
1258
+ "span_id"?: (string | null);
1259
+ "utf16_start": number;
1260
+ "utf16_end": number;
1261
+ "start": number;
1262
+ "end": number;
1263
+ "from": string;
1264
+ "to": string;
1265
+ "reason": string;
1266
+ };
1267
+ "ReceiptSpan": {
1268
+ "span_id": string;
1269
+ "text": string;
1270
+ "utf16_start": number;
1271
+ "utf16_end": number;
1272
+ "start": number;
1273
+ "end": number;
1274
+ "role": "target" | "quantity" | "geography" | "condition" | "output" | "syntax" | "unknown";
1275
+ "state": "typed" | "discovery" | "syntax" | "unresolved";
1276
+ "ast_refs"?: Array<string>;
1277
+ "reason": string;
1278
+ };
1279
+ "RecordCountProof": {
1280
+ "spec_version"?: "record_count_proof.v1";
1281
+ "scope"?: "published_source_records";
1282
+ "collection_complete": boolean;
1283
+ "members_seen": number;
1284
+ "lower_bound": number;
1285
+ "upper_bound"?: (number | null);
1286
+ "matching_pointers": Array<string>;
1287
+ "unresolved_pointers": Array<string>;
1288
+ "witnesses": Array<Schemas["RecordWitness"]>;
1289
+ "witnesses_complete": boolean;
1290
+ };
1291
+ "RecordWitness": {
1292
+ "source_pointer": string;
1293
+ "predicates": Array<Schemas["PredicateEvidence"]>;
1294
+ "proof": Schemas["LogicalProof"];
1295
+ };
1296
+ "RelationshipData": {
1297
+ "collection_id": string;
1298
+ "version": number;
1299
+ "field_id": (string | null);
1300
+ "label": (string | null);
1301
+ "groups": Array<{
1302
+ [key: string]: unknown;
1303
+ }>;
1304
+ "missing": number;
1305
+ };
1306
+ "RelationshipSelection": {
1307
+ "expected_version": number;
1308
+ "field_id": string;
1309
+ "label": string;
1310
+ };
1311
+ "ReplayCheck": {
1312
+ "available": boolean;
1313
+ "verified": boolean;
1314
+ "decisions_checked": number;
1315
+ "qualifications_checked": number;
1316
+ "decision_root": (string | null);
1317
+ "policy_version": string;
1318
+ "message": string;
1319
+ };
1320
+ "RequestTemplate": {
1321
+ "id": string;
1322
+ "record_type": string;
1323
+ "category": string;
1324
+ "request": string;
1325
+ };
1326
+ "RequestTemplateList": {
1327
+ "version"?: "request_templates.v1";
1328
+ "templates"?: Array<Schemas["RequestTemplate"]>;
1329
+ };
1330
+ "ResultReportData": {
1331
+ "claim_id": string;
1332
+ "status": string;
1333
+ "automatic_refund"?: boolean;
1334
+ "support_ticket_id"?: (string | null);
1335
+ };
1336
+ "ResultReportInput": {
1337
+ "request_id": string;
1338
+ "record_id": string;
1339
+ "check": string;
1340
+ "truth": string;
1341
+ "link"?: (string | null);
1342
+ };
1343
+ "RevisionPage": {
1344
+ "revisions": Array<Schemas["SpecRevision"]>;
1345
+ "next_cursor"?: (string | null);
1346
+ };
1347
+ "RevisitOutcome": {
1348
+ "target_id": string;
1349
+ "status": "verified" | "no_longer_matches" | "unresolved" | "unavailable";
1350
+ "reason": string;
1351
+ "evaluated_at": string;
1352
+ "predicates"?: Array<Schemas["PredicateEvidence"]>;
1353
+ "match_proof"?: (Schemas["LogicalProof"] | null);
1354
+ };
1355
+ "RevisitPage": {
1356
+ "find_id": string;
1357
+ "outcomes": Array<Schemas["RevisitOutcome"]>;
1358
+ "next_after"?: (string | null);
1359
+ "summary": Schemas["RevisitSummary"];
1360
+ };
1361
+ "RevisitSummary": {
1362
+ "targets": number;
1363
+ "checked": number;
1364
+ "verified": number;
1365
+ "no_longer_matches": number;
1366
+ "unresolved": number;
1367
+ "unavailable": number;
1368
+ "not_reached": number;
1369
+ "delivered": number;
1370
+ "missing_required_details"?: {
1371
+ [key: string]: number;
1372
+ };
1373
+ };
1374
+ "RowCell": {
1375
+ "column_id": string;
1376
+ "label": string;
1377
+ "value": (unknown | null);
1378
+ "display": (string | null);
1379
+ "absence"?: (Schemas["DisplayAbsence"] | null);
1380
+ "provenance"?: (Schemas["FieldObservation"] | null);
1381
+ "badges"?: Array<Schemas["ContactBadge"]>;
1382
+ };
1383
+ "SCIMCredential": {
1384
+ "credential_id": string;
1385
+ "token": string;
1386
+ "scim_url": string;
1387
+ };
1388
+ "SCIMCredentialState": {
1389
+ "credential_id": string;
1390
+ "created_at": string;
1391
+ };
1392
+ "SCIMGroup": {
1393
+ "group_id": string;
1394
+ "display_name": string;
1395
+ "members": number;
1396
+ };
1397
+ "SCIMMappings": {
1398
+ "mappings": Array<Schemas["SCIMProjectMapping"]>;
1399
+ };
1400
+ "SCIMProjectMapping": {
1401
+ "group_id"?: string;
1402
+ "project_id": string;
1403
+ "role"?: "viewer" | "editor";
1404
+ "monthly_spend_cap_cents"?: number;
1405
+ };
1406
+ "SCIMProvisioning": {
1407
+ "mappings": Array<Schemas["SCIMProjectMapping"]>;
1408
+ "groups": Array<Schemas["SCIMGroup"]>;
1409
+ "credential": (Schemas["SCIMCredentialState"] | null);
1410
+ "users": number;
1411
+ };
1412
+ "SSOConfigInput": {
1413
+ "provider": "Okta" | "Microsoft Entra ID" | "Google Workspace" | "OneLogin" | "JumpCloud" | "Another SAML 2.0 provider";
1414
+ "metadata_url": string;
1415
+ };
1416
+ "SSODomain": {
1417
+ "id": string;
1418
+ "domain": string;
1419
+ "txt_record": string;
1420
+ "verified_at": (string | null);
1421
+ "provider": (string | null);
1422
+ "metadata_url": (string | null);
1423
+ "require_sso": boolean;
1424
+ "scim_enabled": boolean;
1425
+ "config_version": number;
1426
+ "acs_url": string;
1427
+ "entity_id": string;
1428
+ "scim_url": string;
1429
+ };
1430
+ "SSODomainInput": {
1431
+ "domain": string;
1432
+ };
1433
+ "SSODomains": {
1434
+ "domains": Array<Schemas["SSODomain"]>;
1435
+ };
1436
+ "SSOPolicyInput": {
1437
+ "require_sso": boolean;
1438
+ "scim_enabled": boolean;
1439
+ };
1440
+ "SSOStartData": {
1441
+ "url": string;
1442
+ };
1443
+ "SSOStartInput": {
1444
+ "domain": string;
1445
+ "enroll"?: boolean;
1446
+ };
1447
+ "SavedSpec": {
1448
+ "spec_id": string;
1449
+ "project_id": (string | null);
1450
+ "account_id": (string | null);
1451
+ "head_revision_id": string;
1452
+ "revision": Schemas["SpecRevision"];
1453
+ "archived": boolean;
1454
+ "created_at": string;
1455
+ "updated_at": string;
1456
+ };
1457
+ "ScheduleDeliveryData": {
1458
+ "schedule_id": string;
1459
+ "version": number;
1460
+ "delivery": Schemas["ScheduleDeliverySettings"];
1461
+ "webhook_secret"?: (string | null);
1462
+ };
1463
+ "ScheduleDeliveryInput": {
1464
+ "notify"?: boolean;
1465
+ "slack"?: (string | null);
1466
+ "sendTo"?: (string | null);
1467
+ "webhook"?: (string | null);
1468
+ "expected_version": number;
1469
+ };
1470
+ "ScheduleDeliverySettings": {
1471
+ "notify"?: boolean;
1472
+ "slack"?: (string | null);
1473
+ "sendTo"?: (string | null);
1474
+ "webhook"?: (string | null);
1475
+ };
1476
+ "SecurityChallenge": {
1477
+ "challenge_id": string;
1478
+ "public_key": {
1479
+ [key: string]: unknown;
1480
+ };
1481
+ };
1482
+ "SecuritySuccess": {
1483
+ "ok"?: boolean;
1484
+ };
1485
+ "SemanticBinding": {
1486
+ "spec_version"?: "semantic_binding.v1";
1487
+ "catalog_sha256": string;
1488
+ "target_id": string;
1489
+ "footprint_id"?: (string | null);
1490
+ };
1491
+ "SendToDestinationInput": {
1492
+ "find_id": string;
1493
+ "entity_ids": Array<string>;
1494
+ "destination_sha256": string;
1495
+ };
1496
+ "ShareCreateRequest": {
1497
+ "include_contacts"?: boolean;
1498
+ };
1499
+ "ShareData": {
1500
+ "share_id": string;
1501
+ "public_url": string;
1502
+ "kind": Schemas["ShareKind"];
1503
+ "include_contacts": boolean;
1504
+ "expires_at": string;
1505
+ };
1506
+ "ShareKind": "snapshot";
1507
+ "ShareRevokeRequest": {
1508
+ "share_id": string;
1509
+ };
1510
+ "SharedSpec": {
1511
+ "name": string;
1512
+ "ast": Schemas["QueryAst"];
1513
+ "ast_hash": string;
1514
+ "context": string;
1515
+ "snapshot_hash": string;
1516
+ "expires_at": string;
1517
+ "execution_authorized"?: false;
1518
+ };
1519
+ "Shortfall": {
1520
+ "requested_units": number;
1521
+ "delivered_units": number;
1522
+ "refunded_cents": number;
1523
+ };
1524
+ "SortDirection": "asc" | "desc";
1525
+ "SortKey": {
1526
+ "field_id": string;
1527
+ "direction": Schemas["SortDirection"];
1528
+ };
1529
+ "SourceSpan": {
1530
+ "span_id": string;
1531
+ "start": number;
1532
+ "end": number;
1533
+ "start_utf16": number;
1534
+ "end_utf16": number;
1535
+ "text": string;
1536
+ "role": "target" | "quantity" | "geography" | "condition" | "output" | "syntax" | "unknown";
1537
+ "state": "typed" | "discovery" | "syntax" | "unresolved";
1538
+ "ast_refs"?: Array<string>;
1539
+ "reason": string;
1540
+ };
1541
+ "SpecArchiveRequest": {
1542
+ "expected_revision_id": string;
1543
+ "archived"?: boolean;
1544
+ };
1545
+ "SpecCreateRequest": ({
1546
+ "name": string;
1547
+ "ast"?: (Schemas["QueryAst"] | null);
1548
+ "source_find_id"?: (string | null);
1549
+ "project_id"?: (string | null);
1550
+ "context"?: string;
1551
+ } & ({
1552
+ "ast": NonNullable<unknown>;
1553
+ "source_find_id"?: null;
1554
+ } | {
1555
+ "source_find_id": string;
1556
+ "ast"?: null;
1557
+ }));
1558
+ "SpecLinkData": {
1559
+ "link_id": string;
1560
+ "public_url": string;
1561
+ "expires_at": string;
1562
+ "snapshot_hash": string;
1563
+ };
1564
+ "SpecLinkRequest": {
1565
+ "revision_id": string;
1566
+ "expected_ast_hash": string;
1567
+ "include_context"?: boolean;
1568
+ "expires_seconds"?: number;
1569
+ };
1570
+ "SpecLinkRevoked": {
1571
+ "link_id": string;
1572
+ "revoked"?: true;
1573
+ };
1574
+ "SpecOptionsData": {
1575
+ "semantic_binding"?: (Schemas["SemanticBinding"] | null);
1576
+ "target_refinements"?: Array<Schemas["TargetDefinition"]>;
1577
+ "entity_type": Schemas["EntityType"];
1578
+ "target_label": string;
1579
+ "must_match": Array<Schemas["MustMatchOption"]>;
1580
+ "bring_back": Array<Schemas["BringBackOption"]>;
1581
+ };
1582
+ "SpecPage": {
1583
+ "specs": Array<Schemas["SavedSpec"]>;
1584
+ "next_cursor"?: (string | null);
1585
+ };
1586
+ "SpecRevision": {
1587
+ "revision_id": string;
1588
+ "spec_id": string;
1589
+ "revision": number;
1590
+ "parent_revision_id": (string | null);
1591
+ "ast": Schemas["QueryAst"];
1592
+ "ast_hash": string;
1593
+ "name": string;
1594
+ "context": string;
1595
+ "created_at": string;
1596
+ };
1597
+ "SpecRevisionRequest": {
1598
+ "expected_revision_id": string;
1599
+ "parent_revision_id"?: (string | null);
1600
+ "ast": Schemas["QueryAst"];
1601
+ "name"?: (string | null);
1602
+ "context"?: (string | null);
1603
+ };
1604
+ "SseComplete": {
1605
+ "row_count": number;
1606
+ "stop_reason": Schemas["StopReason"];
1607
+ };
1608
+ "SseError": {
1609
+ "code": Schemas["ErrorCode"];
1610
+ "message": string;
1611
+ };
1612
+ "SseEvent": {
1613
+ "id": number;
1614
+ "event": Schemas["SseEventName"];
1615
+ "data": (Schemas["SseHello"] | Schemas["SseStatus"] | Schemas["SseProgress"] | Schemas["SseRow"] | Schemas["SseRowPatch"] | Schemas["SseGate"] | Schemas["SseZero"] | Schemas["SseComplete"] | Schemas["SseStopped"] | Schemas["SseError"] | Schemas["SseHeartbeat"]);
1616
+ };
1617
+ "SseEventName": "hello" | "status" | "progress" | "row" | "row_patch" | "gate" | "zero" | "complete" | "stopped" | "error" | "heartbeat";
1618
+ "SseGate": {
1619
+ "reason": string;
1620
+ "shown": number;
1621
+ "target": number;
1622
+ };
1623
+ "SseHeartbeat": {
1624
+ "ts": string;
1625
+ };
1626
+ "SseHello": {
1627
+ "find_id": string;
1628
+ "status": Schemas["FindStatus"];
1629
+ "last_id": number;
1630
+ };
1631
+ "SseProgress": {
1632
+ "phase": string;
1633
+ "done": number;
1634
+ "target": number;
1635
+ "message": string;
1636
+ "found"?: (number | null);
1637
+ "checked"?: (number | null);
1638
+ "sources"?: (number | null);
1639
+ "pages"?: (number | null);
1640
+ };
1641
+ "SseRow": {
1642
+ "entity_id": string;
1643
+ "ordinal": number;
1644
+ "cells": Array<{
1645
+ [key: string]: unknown;
1646
+ }>;
1647
+ "locked": boolean;
1648
+ };
1649
+ "SseRowPatch": {
1650
+ "entity_id": string;
1651
+ "cells": Array<{
1652
+ [key: string]: unknown;
1653
+ }>;
1654
+ };
1655
+ "SseStatus": {
1656
+ "status": Schemas["FindStatus"];
1657
+ "commerce"?: (Schemas["CommerceData"] | null);
1658
+ };
1659
+ "SseStopped": {
1660
+ "row_count": number;
1661
+ };
1662
+ "SseZero": {
1663
+ "cause": string;
1664
+ };
1665
+ "StopReason": "complete_target" | "saturated_discovery" | "budget_reserved_exhausted" | "wall_clock" | "fetch_count" | "source_blocked" | "unsupported_predicate" | "zero_after_filters" | "user_cancel" | "capacity";
1666
+ "StoreCardTransferRequest": {
1667
+ "plan_id": string;
1668
+ "idempotency_key": string;
1669
+ };
1670
+ "StorePurchaseRequest": {
1671
+ "provider": "app_store" | "google_play";
1672
+ "product_id": string;
1673
+ "purchase_token": string;
1674
+ };
1675
+ "StoreRestoreRequest": {
1676
+ "purchases": Array<Schemas["StorePurchaseRequest"]>;
1677
+ };
1678
+ "SupportTicketData": {
1679
+ "ticket_id": string;
1680
+ "kind": string;
1681
+ };
1682
+ "SupportTicketRequest": {
1683
+ "kind": "correction" | "report" | "opt_out" | "export" | "delete";
1684
+ "body"?: string;
1685
+ "find_id"?: (string | null);
1686
+ "entity_id"?: (string | null);
1687
+ "reason"?: (string | null);
1688
+ };
1689
+ "TargetDefinition": {
1690
+ "target_id": string;
1691
+ "entity_type": Schemas["EntityType"];
1692
+ "grain": string;
1693
+ "phrases"?: Array<string>;
1694
+ "retrieval_noun": string;
1695
+ "retrieval_aliases"?: Array<string>;
1696
+ "footprint_id"?: (string | null);
1697
+ };
1698
+ "TargetRequirement": {
1699
+ "contract"?: "target-source-assertion.v1";
1700
+ "entity_kind": Schemas["EntityKind"];
1701
+ "text": string;
1702
+ "reading_policy_sha256": string;
1703
+ "max_candidates"?: number;
1704
+ "max_passages"?: number;
1705
+ "max_context_chars"?: number;
1706
+ "max_source_chars"?: number;
1707
+ "timeout_ms"?: number;
1708
+ "evidence_meaning"?: "interpreted_published_assertion";
1709
+ "prior_knowledge_authority"?: false;
1710
+ "modifies_typed_predicates"?: false;
1711
+ };
1712
+ "TranscriptSegment": {
1713
+ "start": number;
1714
+ "end": number;
1715
+ "text": string;
1716
+ "avg_logprob"?: (number | null);
1717
+ "no_speech_probability"?: (number | null);
1718
+ "compression_ratio"?: (number | null);
1719
+ };
1720
+ "Understanding": {
1721
+ "spec_version"?: "request_understanding.v1";
1722
+ "raw": string;
1723
+ "source_hash": string;
1724
+ "request_hash": string;
1725
+ "locale": string;
1726
+ "spans": Array<Schemas["SourceSpan"]>;
1727
+ "normalizations"?: Array<Schemas["Normalization"]>;
1728
+ "refinement"?: "not_needed" | "fast_only" | "accepted" | "unavailable" | "uncertain" | "invalid" | "saturated" | "disabled";
1729
+ "assessment_id"?: (string | null);
1730
+ "assessment"?: (Schemas["EquivalenceRecord"] | null);
1731
+ "acquisition": Schemas["AcquisitionIntent"];
1732
+ };
1733
+ "UnsupportedClause": {
1734
+ "field_id": string;
1735
+ "op": (Schemas["PredicateOp"] | null);
1736
+ "value": (boolean | number | string | Array<string> | Schemas["CountMatches"] | null);
1737
+ "reason": string;
1738
+ };
1739
+ "VocabularyData": {
1740
+ "default_count"?: 25;
1741
+ "kinds": Array<Schemas["VocabularyKind"]>;
1742
+ };
1743
+ "VocabularyDetail": {
1744
+ "field_id": string;
1745
+ "label": string;
1746
+ "instant": boolean;
1747
+ };
1748
+ "VocabularyKind": {
1749
+ "kind": Schemas["EntityType"];
1750
+ "name": string;
1751
+ "plural": string;
1752
+ "types": Array<string>;
1753
+ "details": Array<Schemas["VocabularyDetail"]>;
1754
+ "examples": Array<string>;
1755
+ "suggested": boolean;
1756
+ };
1757
+ "WebPushKeys": {
1758
+ "p256dh": string;
1759
+ "auth": string;
1760
+ };
1761
+ "WebPushSubscriptionInput": {
1762
+ "endpoint": string;
1763
+ "keys": Schemas["WebPushKeys"];
1764
+ "expirationTime"?: ((number) | null);
1765
+ "name": string;
1766
+ };
1767
+ "WordedCondition": {
1768
+ "condition_id": string;
1769
+ "words": string;
1770
+ "statement": string;
1771
+ "search_words"?: string;
1772
+ };
1773
+ "WordedOutput": {
1774
+ "detail_id": string;
1775
+ "words": string;
1776
+ "description": string;
1777
+ "value_type"?: "text" | "number" | "date" | "url" | "email" | "phone" | "yes_no";
1778
+ "required"?: boolean;
1779
+ };
1780
+ "WorkspaceAuditEvent": {
1781
+ "id": string;
1782
+ "at": string;
1783
+ "who": string;
1784
+ "actor_account_id": (string | null);
1785
+ "actor_key_id": (string | null);
1786
+ "project_id": (string | null);
1787
+ "kind": "Sign-in" | "Access" | "Spending" | "Exports" | "Automation" | "Lists";
1788
+ "what": string;
1789
+ "action": string;
1790
+ "target_type": string;
1791
+ "target_id": string;
1792
+ };
1793
+ "WorkspaceAuditPage": {
1794
+ "events": Array<Schemas["WorkspaceAuditEvent"]>;
1795
+ "next_cursor": (string | null);
1796
+ "retention_months"?: 12;
1797
+ };
1798
+ "WorkspaceCollection": {
1799
+ "id": string;
1800
+ "name": string;
1801
+ "project_id"?: (string | null);
1802
+ "kind": "find" | "import" | "snapshot" | "combined";
1803
+ "imported": boolean;
1804
+ "rows": Array<{
1805
+ [key: string]: unknown;
1806
+ }>;
1807
+ "columns"?: Array<{
1808
+ [key: string]: string;
1809
+ }>;
1810
+ "created_at": string;
1811
+ "total": number;
1812
+ "duplicates"?: number;
1813
+ "source_collection_ids"?: Array<string>;
1814
+ "account_id"?: (string | null);
1815
+ "source_snapshot_id"?: (string | null);
1816
+ "find_id"?: (string | null);
1817
+ "import_id"?: (string | null);
1818
+ "combined_id"?: (string | null);
1819
+ "combined"?: boolean;
1820
+ "immutable"?: boolean;
1821
+ "selection"?: boolean;
1822
+ "ast_hash"?: (string | null);
1823
+ "ast"?: ({
1824
+ [key: string]: unknown;
1825
+ } | null);
1826
+ "execution_manifest"?: ({
1827
+ [key: string]: unknown;
1828
+ } | null);
1829
+ "yourFields"?: Array<Schemas["YourField"]>;
1830
+ "yourFieldsVersion"?: number;
1831
+ };
1832
+ "WorkspaceCollectionChanges": {
1833
+ "collectionId": string;
1834
+ "checkedAt"?: (string | null);
1835
+ "runId"?: (string | null);
1836
+ "monitorId"?: (string | null);
1837
+ "status": "changed" | "unchanged" | "unresolved" | "unavailable" | "not_checked";
1838
+ "changes"?: Array<Schemas["WorkspaceRecordChange"]>;
1839
+ "comparisons"?: Array<Schemas["WorkspaceFieldComparison"]>;
1840
+ "records"?: Array<{
1841
+ [key: string]: unknown;
1842
+ }>;
1843
+ "summary"?: {
1844
+ [key: string]: number;
1845
+ };
1846
+ "parentSnapshotId"?: (string | null);
1847
+ "checks"?: Array<{
1848
+ [key: string]: unknown;
1849
+ }>;
1850
+ };
1851
+ "WorkspaceCollectionPage": {
1852
+ "collections": Array<{
1853
+ [key: string]: unknown;
1854
+ }>;
1855
+ "next_after"?: (string | null);
1856
+ };
1857
+ "WorkspaceFieldComparison": {
1858
+ "recordId": string;
1859
+ "field": string;
1860
+ "label": string;
1861
+ "status": "changed" | "added" | "unchanged" | "unresolved" | "unavailable";
1862
+ "before"?: (unknown | null);
1863
+ "after"?: (unknown | null);
1864
+ "source"?: (string | null);
1865
+ "url"?: (string | null);
1866
+ "sourceCollectionId"?: (string | null);
1867
+ "sourceRecordId"?: (string | null);
1868
+ };
1869
+ "WorkspaceImportData": {
1870
+ "id": string;
1871
+ "account_id": string;
1872
+ "project_id": (string | null);
1873
+ "name": string;
1874
+ "rows": Array<{
1875
+ [key: string]: unknown;
1876
+ }>;
1877
+ "created_at": string;
1878
+ "imported": true;
1879
+ "total_rows": number;
1880
+ "imported_count": number;
1881
+ "rejected_rows": Array<Schemas["ImportRejectedRow"]>;
1882
+ "max_rows": number;
1883
+ "metadata": {
1884
+ [key: string]: unknown;
1885
+ };
1886
+ };
1887
+ "WorkspaceNote": {
1888
+ "id": string;
1889
+ "text": string;
1890
+ "author": string;
1891
+ "authorId": string;
1892
+ "at": string;
1893
+ "createdAt": string;
1894
+ "resolved": boolean;
1895
+ "projectId"?: (string | null);
1896
+ "resolvedBy"?: (string | null);
1897
+ "resolvedAt"?: (string | null);
1898
+ };
1899
+ "WorkspaceNoteAdd": {
1900
+ "project_id"?: (string | null);
1901
+ "collection_id"?: (string | null);
1902
+ "record_id"?: (string | null);
1903
+ "expected_version": number;
1904
+ "id": string;
1905
+ "text": string;
1906
+ };
1907
+ "WorkspaceNoteDelete": {
1908
+ "project_id"?: (string | null);
1909
+ "collection_id"?: (string | null);
1910
+ "record_id"?: (string | null);
1911
+ "expected_version": number;
1912
+ };
1913
+ "WorkspaceNoteEdit": {
1914
+ "project_id"?: (string | null);
1915
+ "collection_id"?: (string | null);
1916
+ "record_id"?: (string | null);
1917
+ "expected_version": number;
1918
+ "text": string;
1919
+ };
1920
+ "WorkspaceNoteResolve": {
1921
+ "project_id"?: (string | null);
1922
+ "collection_id"?: (string | null);
1923
+ "record_id"?: (string | null);
1924
+ "expected_version": number;
1925
+ "resolved": boolean;
1926
+ };
1927
+ "WorkspaceNoteScope": {
1928
+ "project_id"?: (string | null);
1929
+ "collection_id"?: (string | null);
1930
+ "record_id"?: (string | null);
1931
+ };
1932
+ "WorkspaceNotes": {
1933
+ "version": number;
1934
+ "notes": Array<Schemas["WorkspaceNote"]>;
1935
+ };
1936
+ "WorkspaceNotification": {
1937
+ "id": string;
1938
+ "kind": "completion" | "mention" | "monitor" | "achievement";
1939
+ "title": string;
1940
+ "body": string;
1941
+ "project": string;
1942
+ "project_id": (string | null);
1943
+ "route": string;
1944
+ "createdAt": string;
1945
+ "read": boolean;
1946
+ "archived": boolean;
1947
+ };
1948
+ "WorkspaceNotificationPage": {
1949
+ "notifications": Array<Schemas["WorkspaceNotification"]>;
1950
+ "next_cursor": (string | null);
1951
+ };
1952
+ "WorkspaceNotifications": {
1953
+ "notifications": Array<Schemas["WorkspaceNotification"]>;
1954
+ };
1955
+ "WorkspaceRecordChange": {
1956
+ "recordId": string;
1957
+ "field": string;
1958
+ "label": string;
1959
+ "before": string;
1960
+ "after": string;
1961
+ "source"?: (string | null);
1962
+ "url"?: (string | null);
1963
+ "currentRecordId"?: (string | null);
1964
+ "sourceCollectionId"?: (string | null);
1965
+ "sourceRecordId"?: (string | null);
1966
+ };
1967
+ "WorkspaceSavedView": {
1968
+ "id": string;
1969
+ "name": string;
1970
+ "view"?: "table" | "list" | "map" | "relationships" | "compare" | "history";
1971
+ "query"?: string;
1972
+ "status"?: string;
1973
+ "area"?: (Array<Array<unknown>> | null);
1974
+ "hiddenColumns"?: Array<string>;
1975
+ "sorting"?: (Schemas["WorkspaceViewSorting"] | null);
1976
+ };
1977
+ "WorkspaceSearchHit": {
1978
+ "id": string;
1979
+ "kind": string;
1980
+ "title": string;
1981
+ "route": string;
1982
+ "snippet": string;
1983
+ "project_id"?: (string | null);
1984
+ "collection_id"?: (string | null);
1985
+ "record_id"?: (string | null);
1986
+ "note_id"?: (string | null);
1987
+ "imported"?: (boolean | null);
1988
+ };
1989
+ "WorkspaceSearchPage": {
1990
+ "results": Array<Schemas["WorkspaceSearchHit"]>;
1991
+ "next_cursor": (string | null);
1992
+ };
1993
+ "WorkspaceStarItem": {
1994
+ "id": string;
1995
+ "name": string;
1996
+ "route": string;
1997
+ };
1998
+ "WorkspaceStarList": {
1999
+ "version": number;
2000
+ "starred": Array<Schemas["WorkspaceStarItem"]>;
2001
+ };
2002
+ "WorkspaceStarWrite": {
2003
+ "expected_version": number;
2004
+ "item": Schemas["WorkspaceStarItem"];
2005
+ "starred": boolean;
2006
+ };
2007
+ "WorkspaceViewList": {
2008
+ "collection_id": string;
2009
+ "version": number;
2010
+ "views": Array<Schemas["WorkspaceSavedView"]>;
2011
+ };
2012
+ "WorkspaceViewSave": {
2013
+ "expected_version": number;
2014
+ "view": Schemas["WorkspaceSavedView"];
2015
+ };
2016
+ "WorkspaceViewSorting": {
2017
+ "columnKey": string;
2018
+ "order": number;
2019
+ };
2020
+ "YourField": {
2021
+ "key": string;
2022
+ "label": string;
2023
+ "type": "choice" | "check" | "text";
2024
+ "options"?: (Array<string> | null);
2025
+ };
2026
+ "YourFieldValue": {
2027
+ "expected_version": number;
2028
+ "record_ids": Array<string>;
2029
+ "key": string;
2030
+ "value"?: (string | boolean | null);
2031
+ };
2032
+ "YourFields": {
2033
+ "collection_id": string;
2034
+ "version": number;
2035
+ "fields": Array<Schemas["YourField"]>;
2036
+ "values": {
2037
+ [key: string]: {
2038
+ [key: string]: (string | boolean);
2039
+ };
2040
+ };
2041
+ };
2042
+ "YourFieldsSave": {
2043
+ "expected_version": number;
2044
+ "fields": Array<Schemas["YourField"]>;
2045
+ };
2046
+ }