@propertysimple/client 0.1.0 → 0.2.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.
- package/API.md +27 -73
- package/README.md +200 -57
- package/client/src/index.d.ts +257 -2422
- package/client/src/index.js +6 -69
- package/contracts/src/index.d.ts +0 -7
- package/contracts/src/index.js +0 -7
- package/contracts/src/openapi.js +1 -1
- package/contracts/src/operations.d.ts +950 -4678
- package/contracts/src/operations.js +6 -36
- package/contracts/src/opportunity-events.d.ts +2 -1
- package/contracts/src/opportunity-events.js +6 -1
- package/contracts/src/property-features.d.ts +2 -2
- package/contracts/src/property-features.js +62 -19
- package/contracts/src/routes.d.ts +28 -305
- package/contracts/src/routes.js +82 -354
- package/contracts/src/schemas.d.ts +1114 -1355
- package/contracts/src/schemas.js +45 -223
- package/contracts/src/search.d.ts +1366 -253
- package/contracts/src/search.js +117 -2
- package/openapi.json +19288 -38596
- package/package.json +1 -9
- package/client/src/directory-sync.d.ts +0 -123
- package/client/src/directory-sync.js +0 -404
- package/client/src/managed-sync.d.ts +0 -129
- package/client/src/managed-sync.js +0 -410
- package/contracts/src/directory-execution.d.ts +0 -320
- package/contracts/src/directory-execution.js +0 -122
- package/contracts/src/directory-identity.d.ts +0 -1255
- package/contracts/src/directory-identity.js +0 -129
- package/contracts/src/directory-sales.d.ts +0 -333
- package/contracts/src/directory-sales.js +0 -102
- package/contracts/src/directory.d.ts +0 -1088
- package/contracts/src/directory.js +0 -179
- package/contracts/src/intelligence.d.ts +0 -366
- package/contracts/src/intelligence.js +0 -157
- package/contracts/src/professional-intelligence.d.ts +0 -256
- package/contracts/src/professional-intelligence.js +0 -90
- package/contracts/src/publication.d.ts +0 -44
- package/contracts/src/publication.js +0 -42
- package/contracts/src/smart-feed.d.ts +0 -3731
- package/contracts/src/smart-feed.js +0 -109
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
// Directory contracts are additive: legacy agent IDs still identify source records.
|
|
3
|
-
const Id = z.string().min(1).max(256);
|
|
4
|
-
const Time = z.iso.datetime({ offset: true });
|
|
5
|
-
export const DirectoryKind = z.enum(['professional', 'office', 'organization', 'team']);
|
|
6
|
-
export const DirectoryPurpose = z.enum([
|
|
7
|
-
'display',
|
|
8
|
-
'contacts',
|
|
9
|
-
'sync',
|
|
10
|
-
'inference',
|
|
11
|
-
'internal_sales',
|
|
12
|
-
]);
|
|
13
|
-
export const DirectoryValue = z.union([z.string(), z.boolean(), z.number(), z.null()]);
|
|
14
|
-
export const DirectoryFieldEvidenceSchema = z.strictObject({
|
|
15
|
-
state: z.enum(['supported', 'conflicting', 'withdrawn']),
|
|
16
|
-
// Bounded supporting examples. Internal immutable observations preserve complete evidence.
|
|
17
|
-
observation_ids: z.array(Id).max(8),
|
|
18
|
-
authority: z.enum(['source_listing', 'product_verified', 'operator_verified']),
|
|
19
|
-
source_modified_at: Time.nullable(),
|
|
20
|
-
});
|
|
21
|
-
export const DirectoryEntitySchema = z.strictObject({
|
|
22
|
-
id: Id,
|
|
23
|
-
kind: DirectoryKind,
|
|
24
|
-
source_identities: z.array(z.strictObject({
|
|
25
|
-
source: Id,
|
|
26
|
-
key: Id,
|
|
27
|
-
key_kind: z.enum(['source', 'derived_observation']),
|
|
28
|
-
legacy_agent_id: Id.nullable(),
|
|
29
|
-
})),
|
|
30
|
-
revision: z.string(),
|
|
31
|
-
name: z.string().nullable(),
|
|
32
|
-
fields: z.record(z.string(), DirectoryValue),
|
|
33
|
-
field_evidence: z.record(z.string(), DirectoryFieldEvidenceSchema),
|
|
34
|
-
resolution_state: z.enum(['source_identity', 'provisional']),
|
|
35
|
-
source_availability: z.enum(['present', 'unrepresented']),
|
|
36
|
-
first_seen_at: Time,
|
|
37
|
-
last_seen_at: Time,
|
|
38
|
-
updated_at: Time,
|
|
39
|
-
});
|
|
40
|
-
export const DirectoryRelationshipSchema = z.strictObject({
|
|
41
|
-
id: Id,
|
|
42
|
-
source: Id,
|
|
43
|
-
subject_id: Id,
|
|
44
|
-
object_id: Id,
|
|
45
|
-
relationship: z.enum([
|
|
46
|
-
'observed_at_office',
|
|
47
|
-
'observed_brokerage',
|
|
48
|
-
'affiliated_with',
|
|
49
|
-
'operates',
|
|
50
|
-
'member_of',
|
|
51
|
-
]),
|
|
52
|
-
evidence_state: z.enum(['observed', 'verified']),
|
|
53
|
-
authority: z.enum(['source_listing', 'product_verified', 'operator_verified']),
|
|
54
|
-
revision: z.string(),
|
|
55
|
-
current: z.boolean(),
|
|
56
|
-
listing_id: Id.nullable(),
|
|
57
|
-
observed_at: Time,
|
|
58
|
-
effective_from: Time.nullable(),
|
|
59
|
-
effective_to: Time.nullable(),
|
|
60
|
-
evidence_ref: Id,
|
|
61
|
-
});
|
|
62
|
-
export const DirectoryContactSchema = z.strictObject({
|
|
63
|
-
id: Id,
|
|
64
|
-
type: z.enum(['email', 'phone', 'website']),
|
|
65
|
-
purpose: z.enum(['professional', 'office', 'organization', 'lead_routing']),
|
|
66
|
-
value: z.string(),
|
|
67
|
-
original: z.string(),
|
|
68
|
-
observation_ids: z.array(Id).max(8),
|
|
69
|
-
source_modified_at: Time.nullable(),
|
|
70
|
-
verified_ownership: z.boolean(),
|
|
71
|
-
});
|
|
72
|
-
export const DirectoryContactsSchema = z.strictObject({
|
|
73
|
-
entity_id: Id,
|
|
74
|
-
revision: z.string(),
|
|
75
|
-
state: z.enum(['available', 'not_established', 'conflicting', 'unrepresented']),
|
|
76
|
-
data: z.array(DirectoryContactSchema),
|
|
77
|
-
});
|
|
78
|
-
export const DirectoryMetricsSchema = z.strictObject({
|
|
79
|
-
entity_id: Id,
|
|
80
|
-
inventory_basis: z.literal('listing_representation'),
|
|
81
|
-
definition_version: z.literal('observed-inventory-v1'),
|
|
82
|
-
listing_count: z.number().int().nonnegative(),
|
|
83
|
-
active_listing_count: z.number().int().nonnegative(),
|
|
84
|
-
source_namespaces: z.array(Id),
|
|
85
|
-
coverage: z.literal('authorized_observed_listings'),
|
|
86
|
-
calculated_at: Time,
|
|
87
|
-
});
|
|
88
|
-
export const DirectoryPageQuery = z.strictObject({
|
|
89
|
-
dataset_id: Id.optional(),
|
|
90
|
-
cursor: z.string().max(4096).optional(),
|
|
91
|
-
limit: z.coerce.number().int().min(1).max(200).default(100),
|
|
92
|
-
q: z.string().min(1).max(200).optional(),
|
|
93
|
-
include_unrepresented: z.enum(['true', 'false']).default('false'),
|
|
94
|
-
});
|
|
95
|
-
export const DirectoryResourceQuery = z.strictObject({ id: Id, dataset_id: Id.optional() });
|
|
96
|
-
export const DirectoryIdentityQuery = z.strictObject({
|
|
97
|
-
source: Id,
|
|
98
|
-
kind: DirectoryKind,
|
|
99
|
-
key: Id,
|
|
100
|
-
dataset_id: Id.optional(),
|
|
101
|
-
});
|
|
102
|
-
export const DirectoryRelationshipQuery = DirectoryPageQuery.extend({
|
|
103
|
-
subject_id: Id,
|
|
104
|
-
relationship: DirectoryRelationshipSchema.shape.relationship.optional(),
|
|
105
|
-
});
|
|
106
|
-
function page(schema) {
|
|
107
|
-
return z.strictObject({
|
|
108
|
-
data: z.array(schema),
|
|
109
|
-
next_cursor: z.string().nullable(),
|
|
110
|
-
has_more: z.boolean(),
|
|
111
|
-
meta: z.record(z.string(), z.json()),
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
export const DirectoryEntityPage = page(DirectoryEntitySchema);
|
|
115
|
-
export const DirectoryProfessionalQuery = DirectoryPageQuery.extend({
|
|
116
|
-
include_inventory: z.enum(['true', 'false']).optional(),
|
|
117
|
-
});
|
|
118
|
-
export const DirectoryInventorySummary = z.strictObject({
|
|
119
|
-
entity_id: Id,
|
|
120
|
-
active_listing_count: z.number().int().nonnegative(),
|
|
121
|
-
// Attribution on the first represented active listing, not verified affiliation.
|
|
122
|
-
office_name: z.string().nullable(),
|
|
123
|
-
});
|
|
124
|
-
export const DirectoryProfessionalPage = DirectoryEntityPage.extend({
|
|
125
|
-
inventory_summaries: z.array(DirectoryInventorySummary).max(200).optional(),
|
|
126
|
-
});
|
|
127
|
-
export const DirectoryRelationshipPage = page(DirectoryRelationshipSchema);
|
|
128
|
-
export const DirectoryContactInput = DirectoryContactSchema.pick({
|
|
129
|
-
type: true,
|
|
130
|
-
purpose: true,
|
|
131
|
-
}).extend({ value: z.string().min(1).max(2048) });
|
|
132
|
-
export const DirectoryProfileWrite = z.strictObject({
|
|
133
|
-
dataset_id: Id.optional(),
|
|
134
|
-
producer_id: Id,
|
|
135
|
-
source: Id,
|
|
136
|
-
kind: DirectoryKind,
|
|
137
|
-
key: Id,
|
|
138
|
-
subject_version: z.string().regex(/^[1-9]\d*$/),
|
|
139
|
-
observed_at: Time,
|
|
140
|
-
fields: z.record(z.string().max(100), DirectoryValue),
|
|
141
|
-
contacts: z.array(DirectoryContactInput).max(20).default([]),
|
|
142
|
-
withdrawn_fields: z.array(z.string().max(100)).max(50).default([]),
|
|
143
|
-
withdrawn_contacts: z.array(z.string().max(100)).max(20).default([]),
|
|
144
|
-
});
|
|
145
|
-
export const DirectoryRelationshipWrite = z.strictObject({
|
|
146
|
-
dataset_id: Id.optional(),
|
|
147
|
-
producer_id: Id,
|
|
148
|
-
subject_id: Id,
|
|
149
|
-
object_id: Id,
|
|
150
|
-
relationship: z.enum(['affiliated_with', 'operates', 'member_of']),
|
|
151
|
-
subject_version: z.string().regex(/^[1-9]\d*$/),
|
|
152
|
-
current: z.boolean(),
|
|
153
|
-
observed_at: Time,
|
|
154
|
-
effective_from: Time.nullable().default(null),
|
|
155
|
-
effective_to: Time.nullable().default(null),
|
|
156
|
-
});
|
|
157
|
-
export const directoryOperations = {
|
|
158
|
-
directoryListProfessionals: {
|
|
159
|
-
input: DirectoryProfessionalQuery,
|
|
160
|
-
output: DirectoryProfessionalPage,
|
|
161
|
-
},
|
|
162
|
-
directoryListOffices: { input: DirectoryPageQuery, output: DirectoryEntityPage },
|
|
163
|
-
directoryListOrganizations: { input: DirectoryPageQuery, output: DirectoryEntityPage },
|
|
164
|
-
directoryListTeams: { input: DirectoryPageQuery, output: DirectoryEntityPage },
|
|
165
|
-
directoryGetEntity: { input: DirectoryResourceQuery, output: DirectoryEntitySchema },
|
|
166
|
-
directoryResolveAgent: { input: DirectoryResourceQuery, output: DirectoryEntitySchema },
|
|
167
|
-
directoryResolveIdentity: { input: DirectoryIdentityQuery, output: DirectoryEntitySchema },
|
|
168
|
-
directoryListRelationships: {
|
|
169
|
-
input: DirectoryRelationshipQuery,
|
|
170
|
-
output: DirectoryRelationshipPage,
|
|
171
|
-
},
|
|
172
|
-
directoryGetContacts: { input: DirectoryResourceQuery, output: DirectoryContactsSchema },
|
|
173
|
-
directoryGetMetrics: { input: DirectoryResourceQuery, output: DirectoryMetricsSchema },
|
|
174
|
-
directoryRecordProfile: { input: DirectoryProfileWrite, output: DirectoryEntitySchema },
|
|
175
|
-
directoryRecordRelationship: {
|
|
176
|
-
input: DirectoryRelationshipWrite,
|
|
177
|
-
output: DirectoryRelationshipSchema,
|
|
178
|
-
},
|
|
179
|
-
};
|
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const JudgmentTask: z.ZodEnum<{
|
|
3
|
-
claim_verification: "claim_verification";
|
|
4
|
-
meaningful_text_change: "meaningful_text_change";
|
|
5
|
-
marketing_angle: "marketing_angle";
|
|
6
|
-
preference_relevance: "preference_relevance";
|
|
7
|
-
intent_routing: "intent_routing";
|
|
8
|
-
operational_triage: "operational_triage";
|
|
9
|
-
}>;
|
|
10
|
-
export declare const JudgmentRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
|
-
task: z.ZodLiteral<"claim_verification">;
|
|
12
|
-
claims: z.ZodArray<z.ZodObject<{
|
|
13
|
-
id: z.ZodString;
|
|
14
|
-
text: z.ZodString;
|
|
15
|
-
}, z.core.$strict>>;
|
|
16
|
-
source_spans: z.ZodArray<z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
text: z.ZodString;
|
|
19
|
-
}, z.core.$strict>>;
|
|
20
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
-
task: z.ZodLiteral<"meaningful_text_change">;
|
|
22
|
-
before: z.ZodString;
|
|
23
|
-
after: z.ZodString;
|
|
24
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
-
task: z.ZodLiteral<"marketing_angle">;
|
|
26
|
-
product_brief: z.ZodString;
|
|
27
|
-
candidates: z.ZodArray<z.ZodObject<{
|
|
28
|
-
id: z.ZodString;
|
|
29
|
-
text: z.ZodString;
|
|
30
|
-
}, z.core.$strict>>;
|
|
31
|
-
source_spans: z.ZodArray<z.ZodObject<{
|
|
32
|
-
id: z.ZodString;
|
|
33
|
-
text: z.ZodString;
|
|
34
|
-
}, z.core.$strict>>;
|
|
35
|
-
previous_messages: z.ZodArray<z.ZodObject<{
|
|
36
|
-
id: z.ZodString;
|
|
37
|
-
text: z.ZodString;
|
|
38
|
-
}, z.core.$strict>>;
|
|
39
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
40
|
-
task: z.ZodLiteral<"preference_relevance">;
|
|
41
|
-
preferences: z.ZodArray<z.ZodObject<{
|
|
42
|
-
id: z.ZodString;
|
|
43
|
-
text: z.ZodString;
|
|
44
|
-
importance: z.ZodEnum<{
|
|
45
|
-
required: "required";
|
|
46
|
-
preferred: "preferred";
|
|
47
|
-
}>;
|
|
48
|
-
}, z.core.$strict>>;
|
|
49
|
-
candidates: z.ZodArray<z.ZodObject<{
|
|
50
|
-
id: z.ZodString;
|
|
51
|
-
text: z.ZodString;
|
|
52
|
-
}, z.core.$strict>>;
|
|
53
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
54
|
-
task: z.ZodLiteral<"intent_routing">;
|
|
55
|
-
text: z.ZodString;
|
|
56
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
57
|
-
task: z.ZodLiteral<"operational_triage">;
|
|
58
|
-
component: z.ZodEnum<{
|
|
59
|
-
source: "source";
|
|
60
|
-
unknown: "unknown";
|
|
61
|
-
api: "api";
|
|
62
|
-
worker: "worker";
|
|
63
|
-
model: "model";
|
|
64
|
-
database: "database";
|
|
65
|
-
}>;
|
|
66
|
-
sanitized_logs: z.ZodArray<z.ZodObject<{
|
|
67
|
-
id: z.ZodString;
|
|
68
|
-
text: z.ZodString;
|
|
69
|
-
}, z.core.$strict>>;
|
|
70
|
-
}, z.core.$strict>], "task">;
|
|
71
|
-
export declare const JudgmentDecision: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
72
|
-
task: z.ZodLiteral<"claim_verification">;
|
|
73
|
-
claims: z.ZodArray<z.ZodObject<{
|
|
74
|
-
id: z.ZodString;
|
|
75
|
-
verdict: z.ZodEnum<{
|
|
76
|
-
supported: "supported";
|
|
77
|
-
conflicting: "conflicting";
|
|
78
|
-
contradicted: "contradicted";
|
|
79
|
-
not_established: "not_established";
|
|
80
|
-
}>;
|
|
81
|
-
evidence_refs: z.ZodArray<z.ZodString>;
|
|
82
|
-
review_required: z.ZodBoolean;
|
|
83
|
-
}, z.core.$strict>>;
|
|
84
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
85
|
-
task: z.ZodLiteral<"meaningful_text_change">;
|
|
86
|
-
change: z.ZodEnum<{
|
|
87
|
-
material: "material";
|
|
88
|
-
editorial: "editorial";
|
|
89
|
-
unchanged: "unchanged";
|
|
90
|
-
uncertain: "uncertain";
|
|
91
|
-
}>;
|
|
92
|
-
review_required: z.ZodBoolean;
|
|
93
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
94
|
-
task: z.ZodLiteral<"marketing_angle">;
|
|
95
|
-
selected_candidate_id: z.ZodNullable<z.ZodString>;
|
|
96
|
-
repeat_status: z.ZodEnum<{
|
|
97
|
-
unknown: "unknown";
|
|
98
|
-
novel: "novel";
|
|
99
|
-
repetition: "repetition";
|
|
100
|
-
}>;
|
|
101
|
-
evidence_refs: z.ZodArray<z.ZodString>;
|
|
102
|
-
review_required: z.ZodBoolean;
|
|
103
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
104
|
-
task: z.ZodLiteral<"preference_relevance">;
|
|
105
|
-
ranked: z.ZodArray<z.ZodObject<{
|
|
106
|
-
candidate_id: z.ZodString;
|
|
107
|
-
score: z.ZodNullable<z.ZodNumber>;
|
|
108
|
-
relevance: z.ZodEnum<{
|
|
109
|
-
unknown: "unknown";
|
|
110
|
-
relevant: "relevant";
|
|
111
|
-
not_relevant: "not_relevant";
|
|
112
|
-
}>;
|
|
113
|
-
}, z.core.$strict>>;
|
|
114
|
-
review_required: z.ZodBoolean;
|
|
115
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
116
|
-
task: z.ZodLiteral<"intent_routing">;
|
|
117
|
-
intent: z.ZodEnum<{
|
|
118
|
-
unknown: "unknown";
|
|
119
|
-
property_details: "property_details";
|
|
120
|
-
billing: "billing";
|
|
121
|
-
listing_correction: "listing_correction";
|
|
122
|
-
access_issue: "access_issue";
|
|
123
|
-
marketing_question: "marketing_question";
|
|
124
|
-
technical_issue: "technical_issue";
|
|
125
|
-
tour_request: "tour_request";
|
|
126
|
-
agent_help: "agent_help";
|
|
127
|
-
unsubscribe: "unsubscribe";
|
|
128
|
-
other: "other";
|
|
129
|
-
}>;
|
|
130
|
-
urgent: z.ZodNullable<z.ZodBoolean>;
|
|
131
|
-
review_required: z.ZodBoolean;
|
|
132
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
133
|
-
task: z.ZodLiteral<"operational_triage">;
|
|
134
|
-
category: z.ZodEnum<{
|
|
135
|
-
unknown: "unknown";
|
|
136
|
-
auth: "auth";
|
|
137
|
-
source_format: "source_format";
|
|
138
|
-
rate_limit: "rate_limit";
|
|
139
|
-
transient_dependency: "transient_dependency";
|
|
140
|
-
}>;
|
|
141
|
-
severity: z.ZodEnum<{
|
|
142
|
-
unknown: "unknown";
|
|
143
|
-
informational: "informational";
|
|
144
|
-
degraded: "degraded";
|
|
145
|
-
blocking: "blocking";
|
|
146
|
-
critical: "critical";
|
|
147
|
-
}>;
|
|
148
|
-
recommended_check: z.ZodEnum<{
|
|
149
|
-
credential_configuration: "credential_configuration";
|
|
150
|
-
source_contract: "source_contract";
|
|
151
|
-
retry_budget: "retry_budget";
|
|
152
|
-
dependency_health: "dependency_health";
|
|
153
|
-
manual_review: "manual_review";
|
|
154
|
-
}>;
|
|
155
|
-
review_required: z.ZodBoolean;
|
|
156
|
-
}, z.core.$strict>], "task">;
|
|
157
|
-
export declare const JudgmentProvenance: z.ZodObject<{
|
|
158
|
-
provider: z.ZodEnum<{
|
|
159
|
-
openrouter: "openrouter";
|
|
160
|
-
vercel_gateway: "vercel_gateway";
|
|
161
|
-
fixture: "fixture";
|
|
162
|
-
disabled: "disabled";
|
|
163
|
-
}>;
|
|
164
|
-
requested_model: z.ZodString;
|
|
165
|
-
resolved_model: z.ZodNullable<z.ZodString>;
|
|
166
|
-
model_policy: z.ZodEnum<{
|
|
167
|
-
fixture: "fixture";
|
|
168
|
-
pinned: "pinned";
|
|
169
|
-
rolling_alias: "rolling_alias";
|
|
170
|
-
}>;
|
|
171
|
-
policy_revision: z.ZodString;
|
|
172
|
-
adapter_version: z.ZodString;
|
|
173
|
-
execution: z.ZodOptional<z.ZodLiteral<"deterministic_exact_comparison">>;
|
|
174
|
-
}, z.core.$strict>;
|
|
175
|
-
export declare const JudgmentSchema: z.ZodObject<{
|
|
176
|
-
id: z.ZodString;
|
|
177
|
-
task: z.ZodEnum<{
|
|
178
|
-
claim_verification: "claim_verification";
|
|
179
|
-
meaningful_text_change: "meaningful_text_change";
|
|
180
|
-
marketing_angle: "marketing_angle";
|
|
181
|
-
preference_relevance: "preference_relevance";
|
|
182
|
-
intent_routing: "intent_routing";
|
|
183
|
-
operational_triage: "operational_triage";
|
|
184
|
-
}>;
|
|
185
|
-
task_version: z.ZodString;
|
|
186
|
-
state: z.ZodEnum<{
|
|
187
|
-
expired: "expired";
|
|
188
|
-
failed: "failed";
|
|
189
|
-
running: "running";
|
|
190
|
-
succeeded: "succeeded";
|
|
191
|
-
}>;
|
|
192
|
-
input_fingerprint: z.ZodString;
|
|
193
|
-
source_trust: z.ZodLiteral<"caller_supplied">;
|
|
194
|
-
provenance: z.ZodObject<{
|
|
195
|
-
provider: z.ZodEnum<{
|
|
196
|
-
openrouter: "openrouter";
|
|
197
|
-
vercel_gateway: "vercel_gateway";
|
|
198
|
-
fixture: "fixture";
|
|
199
|
-
disabled: "disabled";
|
|
200
|
-
}>;
|
|
201
|
-
requested_model: z.ZodString;
|
|
202
|
-
resolved_model: z.ZodNullable<z.ZodString>;
|
|
203
|
-
model_policy: z.ZodEnum<{
|
|
204
|
-
fixture: "fixture";
|
|
205
|
-
pinned: "pinned";
|
|
206
|
-
rolling_alias: "rolling_alias";
|
|
207
|
-
}>;
|
|
208
|
-
policy_revision: z.ZodString;
|
|
209
|
-
adapter_version: z.ZodString;
|
|
210
|
-
execution: z.ZodOptional<z.ZodLiteral<"deterministic_exact_comparison">>;
|
|
211
|
-
}, z.core.$strict>;
|
|
212
|
-
result: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
213
|
-
task: z.ZodLiteral<"claim_verification">;
|
|
214
|
-
claims: z.ZodArray<z.ZodObject<{
|
|
215
|
-
id: z.ZodString;
|
|
216
|
-
verdict: z.ZodEnum<{
|
|
217
|
-
supported: "supported";
|
|
218
|
-
conflicting: "conflicting";
|
|
219
|
-
contradicted: "contradicted";
|
|
220
|
-
not_established: "not_established";
|
|
221
|
-
}>;
|
|
222
|
-
evidence_refs: z.ZodArray<z.ZodString>;
|
|
223
|
-
review_required: z.ZodBoolean;
|
|
224
|
-
}, z.core.$strict>>;
|
|
225
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
226
|
-
task: z.ZodLiteral<"meaningful_text_change">;
|
|
227
|
-
change: z.ZodEnum<{
|
|
228
|
-
material: "material";
|
|
229
|
-
editorial: "editorial";
|
|
230
|
-
unchanged: "unchanged";
|
|
231
|
-
uncertain: "uncertain";
|
|
232
|
-
}>;
|
|
233
|
-
review_required: z.ZodBoolean;
|
|
234
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
235
|
-
task: z.ZodLiteral<"marketing_angle">;
|
|
236
|
-
selected_candidate_id: z.ZodNullable<z.ZodString>;
|
|
237
|
-
repeat_status: z.ZodEnum<{
|
|
238
|
-
unknown: "unknown";
|
|
239
|
-
novel: "novel";
|
|
240
|
-
repetition: "repetition";
|
|
241
|
-
}>;
|
|
242
|
-
evidence_refs: z.ZodArray<z.ZodString>;
|
|
243
|
-
review_required: z.ZodBoolean;
|
|
244
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
245
|
-
task: z.ZodLiteral<"preference_relevance">;
|
|
246
|
-
ranked: z.ZodArray<z.ZodObject<{
|
|
247
|
-
candidate_id: z.ZodString;
|
|
248
|
-
score: z.ZodNullable<z.ZodNumber>;
|
|
249
|
-
relevance: z.ZodEnum<{
|
|
250
|
-
unknown: "unknown";
|
|
251
|
-
relevant: "relevant";
|
|
252
|
-
not_relevant: "not_relevant";
|
|
253
|
-
}>;
|
|
254
|
-
}, z.core.$strict>>;
|
|
255
|
-
review_required: z.ZodBoolean;
|
|
256
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
257
|
-
task: z.ZodLiteral<"intent_routing">;
|
|
258
|
-
intent: z.ZodEnum<{
|
|
259
|
-
unknown: "unknown";
|
|
260
|
-
property_details: "property_details";
|
|
261
|
-
billing: "billing";
|
|
262
|
-
listing_correction: "listing_correction";
|
|
263
|
-
access_issue: "access_issue";
|
|
264
|
-
marketing_question: "marketing_question";
|
|
265
|
-
technical_issue: "technical_issue";
|
|
266
|
-
tour_request: "tour_request";
|
|
267
|
-
agent_help: "agent_help";
|
|
268
|
-
unsubscribe: "unsubscribe";
|
|
269
|
-
other: "other";
|
|
270
|
-
}>;
|
|
271
|
-
urgent: z.ZodNullable<z.ZodBoolean>;
|
|
272
|
-
review_required: z.ZodBoolean;
|
|
273
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
274
|
-
task: z.ZodLiteral<"operational_triage">;
|
|
275
|
-
category: z.ZodEnum<{
|
|
276
|
-
unknown: "unknown";
|
|
277
|
-
auth: "auth";
|
|
278
|
-
source_format: "source_format";
|
|
279
|
-
rate_limit: "rate_limit";
|
|
280
|
-
transient_dependency: "transient_dependency";
|
|
281
|
-
}>;
|
|
282
|
-
severity: z.ZodEnum<{
|
|
283
|
-
unknown: "unknown";
|
|
284
|
-
informational: "informational";
|
|
285
|
-
degraded: "degraded";
|
|
286
|
-
blocking: "blocking";
|
|
287
|
-
critical: "critical";
|
|
288
|
-
}>;
|
|
289
|
-
recommended_check: z.ZodEnum<{
|
|
290
|
-
credential_configuration: "credential_configuration";
|
|
291
|
-
source_contract: "source_contract";
|
|
292
|
-
retry_budget: "retry_budget";
|
|
293
|
-
dependency_health: "dependency_health";
|
|
294
|
-
manual_review: "manual_review";
|
|
295
|
-
}>;
|
|
296
|
-
review_required: z.ZodBoolean;
|
|
297
|
-
}, z.core.$strict>], "task">>;
|
|
298
|
-
error_code: z.ZodNullable<z.ZodString>;
|
|
299
|
-
created_at: z.ZodISODateTime;
|
|
300
|
-
completed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
301
|
-
valid_until: z.ZodISODateTime;
|
|
302
|
-
cached: z.ZodBoolean;
|
|
303
|
-
}, z.core.$strict>;
|
|
304
|
-
export declare const IntelligenceCapabilitySchema: z.ZodObject<{
|
|
305
|
-
id: z.ZodString;
|
|
306
|
-
description: z.ZodString;
|
|
307
|
-
status: z.ZodEnum<{
|
|
308
|
-
implemented: "implemented";
|
|
309
|
-
not_implemented: "not_implemented";
|
|
310
|
-
}>;
|
|
311
|
-
task_version: z.ZodNullable<z.ZodString>;
|
|
312
|
-
task_id: z.ZodNullable<z.ZodEnum<{
|
|
313
|
-
claim_verification: "claim_verification";
|
|
314
|
-
meaningful_text_change: "meaningful_text_change";
|
|
315
|
-
marketing_angle: "marketing_angle";
|
|
316
|
-
preference_relevance: "preference_relevance";
|
|
317
|
-
intent_routing: "intent_routing";
|
|
318
|
-
operational_triage: "operational_triage";
|
|
319
|
-
}>>;
|
|
320
|
-
input_kind: z.ZodString;
|
|
321
|
-
limitations: z.ZodArray<z.ZodString>;
|
|
322
|
-
}, z.core.$strict>;
|
|
323
|
-
export declare const IntelligenceCapabilitiesSchema: z.ZodObject<{
|
|
324
|
-
data: z.ZodArray<z.ZodObject<{
|
|
325
|
-
id: z.ZodString;
|
|
326
|
-
description: z.ZodString;
|
|
327
|
-
status: z.ZodEnum<{
|
|
328
|
-
implemented: "implemented";
|
|
329
|
-
not_implemented: "not_implemented";
|
|
330
|
-
}>;
|
|
331
|
-
task_version: z.ZodNullable<z.ZodString>;
|
|
332
|
-
task_id: z.ZodNullable<z.ZodEnum<{
|
|
333
|
-
claim_verification: "claim_verification";
|
|
334
|
-
meaningful_text_change: "meaningful_text_change";
|
|
335
|
-
marketing_angle: "marketing_angle";
|
|
336
|
-
preference_relevance: "preference_relevance";
|
|
337
|
-
intent_routing: "intent_routing";
|
|
338
|
-
operational_triage: "operational_triage";
|
|
339
|
-
}>>;
|
|
340
|
-
input_kind: z.ZodString;
|
|
341
|
-
limitations: z.ZodArray<z.ZodString>;
|
|
342
|
-
}, z.core.$strict>>;
|
|
343
|
-
provider: z.ZodObject<{
|
|
344
|
-
provider: z.ZodEnum<{
|
|
345
|
-
openrouter: "openrouter";
|
|
346
|
-
vercel_gateway: "vercel_gateway";
|
|
347
|
-
fixture: "fixture";
|
|
348
|
-
disabled: "disabled";
|
|
349
|
-
}>;
|
|
350
|
-
requested_model: z.ZodString;
|
|
351
|
-
resolved_model: z.ZodNullable<z.ZodString>;
|
|
352
|
-
model_policy: z.ZodEnum<{
|
|
353
|
-
fixture: "fixture";
|
|
354
|
-
pinned: "pinned";
|
|
355
|
-
rolling_alias: "rolling_alias";
|
|
356
|
-
}>;
|
|
357
|
-
policy_revision: z.ZodString;
|
|
358
|
-
adapter_version: z.ZodString;
|
|
359
|
-
execution: z.ZodOptional<z.ZodLiteral<"deterministic_exact_comparison">>;
|
|
360
|
-
}, z.core.$strict>;
|
|
361
|
-
effects_enabled: z.ZodBoolean;
|
|
362
|
-
catalog_model: z.ZodString;
|
|
363
|
-
taxonomy_version: z.ZodString;
|
|
364
|
-
}, z.core.$strict>;
|
|
365
|
-
export type JudgmentInput = z.infer<typeof JudgmentRequest>;
|
|
366
|
-
export type JudgmentResult = z.infer<typeof JudgmentSchema>;
|