@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.
Files changed (41) hide show
  1. package/API.md +27 -73
  2. package/README.md +200 -57
  3. package/client/src/index.d.ts +257 -2422
  4. package/client/src/index.js +6 -69
  5. package/contracts/src/index.d.ts +0 -7
  6. package/contracts/src/index.js +0 -7
  7. package/contracts/src/openapi.js +1 -1
  8. package/contracts/src/operations.d.ts +950 -4678
  9. package/contracts/src/operations.js +6 -36
  10. package/contracts/src/opportunity-events.d.ts +2 -1
  11. package/contracts/src/opportunity-events.js +6 -1
  12. package/contracts/src/property-features.d.ts +2 -2
  13. package/contracts/src/property-features.js +62 -19
  14. package/contracts/src/routes.d.ts +28 -305
  15. package/contracts/src/routes.js +82 -354
  16. package/contracts/src/schemas.d.ts +1114 -1355
  17. package/contracts/src/schemas.js +45 -223
  18. package/contracts/src/search.d.ts +1366 -253
  19. package/contracts/src/search.js +117 -2
  20. package/openapi.json +19288 -38596
  21. package/package.json +1 -9
  22. package/client/src/directory-sync.d.ts +0 -123
  23. package/client/src/directory-sync.js +0 -404
  24. package/client/src/managed-sync.d.ts +0 -129
  25. package/client/src/managed-sync.js +0 -410
  26. package/contracts/src/directory-execution.d.ts +0 -320
  27. package/contracts/src/directory-execution.js +0 -122
  28. package/contracts/src/directory-identity.d.ts +0 -1255
  29. package/contracts/src/directory-identity.js +0 -129
  30. package/contracts/src/directory-sales.d.ts +0 -333
  31. package/contracts/src/directory-sales.js +0 -102
  32. package/contracts/src/directory.d.ts +0 -1088
  33. package/contracts/src/directory.js +0 -179
  34. package/contracts/src/intelligence.d.ts +0 -366
  35. package/contracts/src/intelligence.js +0 -157
  36. package/contracts/src/professional-intelligence.d.ts +0 -256
  37. package/contracts/src/professional-intelligence.js +0 -90
  38. package/contracts/src/publication.d.ts +0 -44
  39. package/contracts/src/publication.js +0 -42
  40. package/contracts/src/smart-feed.d.ts +0 -3731
  41. package/contracts/src/smart-feed.js +0 -109
@@ -1,1088 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const DirectoryKind: z.ZodEnum<{
3
- office: "office";
4
- professional: "professional";
5
- organization: "organization";
6
- team: "team";
7
- }>;
8
- export declare const DirectoryPurpose: z.ZodEnum<{
9
- display: "display";
10
- contacts: "contacts";
11
- sync: "sync";
12
- inference: "inference";
13
- internal_sales: "internal_sales";
14
- }>;
15
- export declare const DirectoryValue: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>;
16
- export declare const DirectoryFieldEvidenceSchema: z.ZodObject<{
17
- state: z.ZodEnum<{
18
- supported: "supported";
19
- conflicting: "conflicting";
20
- withdrawn: "withdrawn";
21
- }>;
22
- observation_ids: z.ZodArray<z.ZodString>;
23
- authority: z.ZodEnum<{
24
- source_listing: "source_listing";
25
- product_verified: "product_verified";
26
- operator_verified: "operator_verified";
27
- }>;
28
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
29
- }, z.core.$strict>;
30
- export declare const DirectoryEntitySchema: z.ZodObject<{
31
- id: z.ZodString;
32
- kind: z.ZodEnum<{
33
- office: "office";
34
- professional: "professional";
35
- organization: "organization";
36
- team: "team";
37
- }>;
38
- source_identities: z.ZodArray<z.ZodObject<{
39
- source: z.ZodString;
40
- key: z.ZodString;
41
- key_kind: z.ZodEnum<{
42
- source: "source";
43
- derived_observation: "derived_observation";
44
- }>;
45
- legacy_agent_id: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strict>>;
47
- revision: z.ZodString;
48
- name: z.ZodNullable<z.ZodString>;
49
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
50
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
51
- state: z.ZodEnum<{
52
- supported: "supported";
53
- conflicting: "conflicting";
54
- withdrawn: "withdrawn";
55
- }>;
56
- observation_ids: z.ZodArray<z.ZodString>;
57
- authority: z.ZodEnum<{
58
- source_listing: "source_listing";
59
- product_verified: "product_verified";
60
- operator_verified: "operator_verified";
61
- }>;
62
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
63
- }, z.core.$strict>>;
64
- resolution_state: z.ZodEnum<{
65
- source_identity: "source_identity";
66
- provisional: "provisional";
67
- }>;
68
- source_availability: z.ZodEnum<{
69
- present: "present";
70
- unrepresented: "unrepresented";
71
- }>;
72
- first_seen_at: z.ZodISODateTime;
73
- last_seen_at: z.ZodISODateTime;
74
- updated_at: z.ZodISODateTime;
75
- }, z.core.$strict>;
76
- export declare const DirectoryRelationshipSchema: z.ZodObject<{
77
- id: z.ZodString;
78
- source: z.ZodString;
79
- subject_id: z.ZodString;
80
- object_id: z.ZodString;
81
- relationship: z.ZodEnum<{
82
- observed_at_office: "observed_at_office";
83
- observed_brokerage: "observed_brokerage";
84
- affiliated_with: "affiliated_with";
85
- operates: "operates";
86
- member_of: "member_of";
87
- }>;
88
- evidence_state: z.ZodEnum<{
89
- observed: "observed";
90
- verified: "verified";
91
- }>;
92
- authority: z.ZodEnum<{
93
- source_listing: "source_listing";
94
- product_verified: "product_verified";
95
- operator_verified: "operator_verified";
96
- }>;
97
- revision: z.ZodString;
98
- current: z.ZodBoolean;
99
- listing_id: z.ZodNullable<z.ZodString>;
100
- observed_at: z.ZodISODateTime;
101
- effective_from: z.ZodNullable<z.ZodISODateTime>;
102
- effective_to: z.ZodNullable<z.ZodISODateTime>;
103
- evidence_ref: z.ZodString;
104
- }, z.core.$strict>;
105
- export declare const DirectoryContactSchema: z.ZodObject<{
106
- id: z.ZodString;
107
- type: z.ZodEnum<{
108
- email: "email";
109
- phone: "phone";
110
- website: "website";
111
- }>;
112
- purpose: z.ZodEnum<{
113
- office: "office";
114
- professional: "professional";
115
- organization: "organization";
116
- lead_routing: "lead_routing";
117
- }>;
118
- value: z.ZodString;
119
- original: z.ZodString;
120
- observation_ids: z.ZodArray<z.ZodString>;
121
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
122
- verified_ownership: z.ZodBoolean;
123
- }, z.core.$strict>;
124
- export declare const DirectoryContactsSchema: z.ZodObject<{
125
- entity_id: z.ZodString;
126
- revision: z.ZodString;
127
- state: z.ZodEnum<{
128
- conflicting: "conflicting";
129
- not_established: "not_established";
130
- unrepresented: "unrepresented";
131
- available: "available";
132
- }>;
133
- data: z.ZodArray<z.ZodObject<{
134
- id: z.ZodString;
135
- type: z.ZodEnum<{
136
- email: "email";
137
- phone: "phone";
138
- website: "website";
139
- }>;
140
- purpose: z.ZodEnum<{
141
- office: "office";
142
- professional: "professional";
143
- organization: "organization";
144
- lead_routing: "lead_routing";
145
- }>;
146
- value: z.ZodString;
147
- original: z.ZodString;
148
- observation_ids: z.ZodArray<z.ZodString>;
149
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
150
- verified_ownership: z.ZodBoolean;
151
- }, z.core.$strict>>;
152
- }, z.core.$strict>;
153
- export declare const DirectoryMetricsSchema: z.ZodObject<{
154
- entity_id: z.ZodString;
155
- inventory_basis: z.ZodLiteral<"listing_representation">;
156
- definition_version: z.ZodLiteral<"observed-inventory-v1">;
157
- listing_count: z.ZodNumber;
158
- active_listing_count: z.ZodNumber;
159
- source_namespaces: z.ZodArray<z.ZodString>;
160
- coverage: z.ZodLiteral<"authorized_observed_listings">;
161
- calculated_at: z.ZodISODateTime;
162
- }, z.core.$strict>;
163
- export declare const DirectoryPageQuery: z.ZodObject<{
164
- dataset_id: z.ZodOptional<z.ZodString>;
165
- cursor: z.ZodOptional<z.ZodString>;
166
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
167
- q: z.ZodOptional<z.ZodString>;
168
- include_unrepresented: z.ZodDefault<z.ZodEnum<{
169
- true: "true";
170
- false: "false";
171
- }>>;
172
- }, z.core.$strict>;
173
- export declare const DirectoryResourceQuery: z.ZodObject<{
174
- id: z.ZodString;
175
- dataset_id: z.ZodOptional<z.ZodString>;
176
- }, z.core.$strict>;
177
- export declare const DirectoryIdentityQuery: z.ZodObject<{
178
- source: z.ZodString;
179
- kind: z.ZodEnum<{
180
- office: "office";
181
- professional: "professional";
182
- organization: "organization";
183
- team: "team";
184
- }>;
185
- key: z.ZodString;
186
- dataset_id: z.ZodOptional<z.ZodString>;
187
- }, z.core.$strict>;
188
- export declare const DirectoryRelationshipQuery: z.ZodObject<{
189
- dataset_id: z.ZodOptional<z.ZodString>;
190
- cursor: z.ZodOptional<z.ZodString>;
191
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
192
- q: z.ZodOptional<z.ZodString>;
193
- include_unrepresented: z.ZodDefault<z.ZodEnum<{
194
- true: "true";
195
- false: "false";
196
- }>>;
197
- subject_id: z.ZodString;
198
- relationship: z.ZodOptional<z.ZodEnum<{
199
- observed_at_office: "observed_at_office";
200
- observed_brokerage: "observed_brokerage";
201
- affiliated_with: "affiliated_with";
202
- operates: "operates";
203
- member_of: "member_of";
204
- }>>;
205
- }, z.core.$strict>;
206
- export declare const DirectoryEntityPage: z.ZodObject<{
207
- data: z.ZodArray<z.ZodObject<{
208
- id: z.ZodString;
209
- kind: z.ZodEnum<{
210
- office: "office";
211
- professional: "professional";
212
- organization: "organization";
213
- team: "team";
214
- }>;
215
- source_identities: z.ZodArray<z.ZodObject<{
216
- source: z.ZodString;
217
- key: z.ZodString;
218
- key_kind: z.ZodEnum<{
219
- source: "source";
220
- derived_observation: "derived_observation";
221
- }>;
222
- legacy_agent_id: z.ZodNullable<z.ZodString>;
223
- }, z.core.$strict>>;
224
- revision: z.ZodString;
225
- name: z.ZodNullable<z.ZodString>;
226
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
227
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
228
- state: z.ZodEnum<{
229
- supported: "supported";
230
- conflicting: "conflicting";
231
- withdrawn: "withdrawn";
232
- }>;
233
- observation_ids: z.ZodArray<z.ZodString>;
234
- authority: z.ZodEnum<{
235
- source_listing: "source_listing";
236
- product_verified: "product_verified";
237
- operator_verified: "operator_verified";
238
- }>;
239
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
240
- }, z.core.$strict>>;
241
- resolution_state: z.ZodEnum<{
242
- source_identity: "source_identity";
243
- provisional: "provisional";
244
- }>;
245
- source_availability: z.ZodEnum<{
246
- present: "present";
247
- unrepresented: "unrepresented";
248
- }>;
249
- first_seen_at: z.ZodISODateTime;
250
- last_seen_at: z.ZodISODateTime;
251
- updated_at: z.ZodISODateTime;
252
- }, z.core.$strict>>;
253
- next_cursor: z.ZodNullable<z.ZodString>;
254
- has_more: z.ZodBoolean;
255
- meta: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
256
- }, z.core.$strict>;
257
- export declare const DirectoryProfessionalQuery: z.ZodObject<{
258
- dataset_id: z.ZodOptional<z.ZodString>;
259
- cursor: z.ZodOptional<z.ZodString>;
260
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
261
- q: z.ZodOptional<z.ZodString>;
262
- include_unrepresented: z.ZodDefault<z.ZodEnum<{
263
- true: "true";
264
- false: "false";
265
- }>>;
266
- include_inventory: z.ZodOptional<z.ZodEnum<{
267
- true: "true";
268
- false: "false";
269
- }>>;
270
- }, z.core.$strict>;
271
- export declare const DirectoryInventorySummary: z.ZodObject<{
272
- entity_id: z.ZodString;
273
- active_listing_count: z.ZodNumber;
274
- office_name: z.ZodNullable<z.ZodString>;
275
- }, z.core.$strict>;
276
- export declare const DirectoryProfessionalPage: z.ZodObject<{
277
- data: z.ZodArray<z.ZodObject<{
278
- id: z.ZodString;
279
- kind: z.ZodEnum<{
280
- office: "office";
281
- professional: "professional";
282
- organization: "organization";
283
- team: "team";
284
- }>;
285
- source_identities: z.ZodArray<z.ZodObject<{
286
- source: z.ZodString;
287
- key: z.ZodString;
288
- key_kind: z.ZodEnum<{
289
- source: "source";
290
- derived_observation: "derived_observation";
291
- }>;
292
- legacy_agent_id: z.ZodNullable<z.ZodString>;
293
- }, z.core.$strict>>;
294
- revision: z.ZodString;
295
- name: z.ZodNullable<z.ZodString>;
296
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
297
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
298
- state: z.ZodEnum<{
299
- supported: "supported";
300
- conflicting: "conflicting";
301
- withdrawn: "withdrawn";
302
- }>;
303
- observation_ids: z.ZodArray<z.ZodString>;
304
- authority: z.ZodEnum<{
305
- source_listing: "source_listing";
306
- product_verified: "product_verified";
307
- operator_verified: "operator_verified";
308
- }>;
309
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
310
- }, z.core.$strict>>;
311
- resolution_state: z.ZodEnum<{
312
- source_identity: "source_identity";
313
- provisional: "provisional";
314
- }>;
315
- source_availability: z.ZodEnum<{
316
- present: "present";
317
- unrepresented: "unrepresented";
318
- }>;
319
- first_seen_at: z.ZodISODateTime;
320
- last_seen_at: z.ZodISODateTime;
321
- updated_at: z.ZodISODateTime;
322
- }, z.core.$strict>>;
323
- next_cursor: z.ZodNullable<z.ZodString>;
324
- has_more: z.ZodBoolean;
325
- meta: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
326
- inventory_summaries: z.ZodOptional<z.ZodArray<z.ZodObject<{
327
- entity_id: z.ZodString;
328
- active_listing_count: z.ZodNumber;
329
- office_name: z.ZodNullable<z.ZodString>;
330
- }, z.core.$strict>>>;
331
- }, z.core.$strict>;
332
- export declare const DirectoryRelationshipPage: z.ZodObject<{
333
- data: z.ZodArray<z.ZodObject<{
334
- id: z.ZodString;
335
- source: z.ZodString;
336
- subject_id: z.ZodString;
337
- object_id: z.ZodString;
338
- relationship: z.ZodEnum<{
339
- observed_at_office: "observed_at_office";
340
- observed_brokerage: "observed_brokerage";
341
- affiliated_with: "affiliated_with";
342
- operates: "operates";
343
- member_of: "member_of";
344
- }>;
345
- evidence_state: z.ZodEnum<{
346
- observed: "observed";
347
- verified: "verified";
348
- }>;
349
- authority: z.ZodEnum<{
350
- source_listing: "source_listing";
351
- product_verified: "product_verified";
352
- operator_verified: "operator_verified";
353
- }>;
354
- revision: z.ZodString;
355
- current: z.ZodBoolean;
356
- listing_id: z.ZodNullable<z.ZodString>;
357
- observed_at: z.ZodISODateTime;
358
- effective_from: z.ZodNullable<z.ZodISODateTime>;
359
- effective_to: z.ZodNullable<z.ZodISODateTime>;
360
- evidence_ref: z.ZodString;
361
- }, z.core.$strict>>;
362
- next_cursor: z.ZodNullable<z.ZodString>;
363
- has_more: z.ZodBoolean;
364
- meta: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
365
- }, z.core.$strict>;
366
- export declare const DirectoryContactInput: z.ZodObject<{
367
- type: z.ZodEnum<{
368
- email: "email";
369
- phone: "phone";
370
- website: "website";
371
- }>;
372
- purpose: z.ZodEnum<{
373
- office: "office";
374
- professional: "professional";
375
- organization: "organization";
376
- lead_routing: "lead_routing";
377
- }>;
378
- value: z.ZodString;
379
- }, z.core.$strict>;
380
- export declare const DirectoryProfileWrite: z.ZodObject<{
381
- dataset_id: z.ZodOptional<z.ZodString>;
382
- producer_id: z.ZodString;
383
- source: z.ZodString;
384
- kind: z.ZodEnum<{
385
- office: "office";
386
- professional: "professional";
387
- organization: "organization";
388
- team: "team";
389
- }>;
390
- key: z.ZodString;
391
- subject_version: z.ZodString;
392
- observed_at: z.ZodISODateTime;
393
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
394
- contacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
395
- type: z.ZodEnum<{
396
- email: "email";
397
- phone: "phone";
398
- website: "website";
399
- }>;
400
- purpose: z.ZodEnum<{
401
- office: "office";
402
- professional: "professional";
403
- organization: "organization";
404
- lead_routing: "lead_routing";
405
- }>;
406
- value: z.ZodString;
407
- }, z.core.$strict>>>;
408
- withdrawn_fields: z.ZodDefault<z.ZodArray<z.ZodString>>;
409
- withdrawn_contacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
410
- }, z.core.$strict>;
411
- export declare const DirectoryRelationshipWrite: z.ZodObject<{
412
- dataset_id: z.ZodOptional<z.ZodString>;
413
- producer_id: z.ZodString;
414
- subject_id: z.ZodString;
415
- object_id: z.ZodString;
416
- relationship: z.ZodEnum<{
417
- affiliated_with: "affiliated_with";
418
- operates: "operates";
419
- member_of: "member_of";
420
- }>;
421
- subject_version: z.ZodString;
422
- current: z.ZodBoolean;
423
- observed_at: z.ZodISODateTime;
424
- effective_from: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
425
- effective_to: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
426
- }, z.core.$strict>;
427
- export declare const directoryOperations: {
428
- readonly directoryListProfessionals: {
429
- readonly input: z.ZodObject<{
430
- dataset_id: z.ZodOptional<z.ZodString>;
431
- cursor: z.ZodOptional<z.ZodString>;
432
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
433
- q: z.ZodOptional<z.ZodString>;
434
- include_unrepresented: z.ZodDefault<z.ZodEnum<{
435
- true: "true";
436
- false: "false";
437
- }>>;
438
- include_inventory: z.ZodOptional<z.ZodEnum<{
439
- true: "true";
440
- false: "false";
441
- }>>;
442
- }, z.core.$strict>;
443
- readonly output: z.ZodObject<{
444
- data: z.ZodArray<z.ZodObject<{
445
- id: z.ZodString;
446
- kind: z.ZodEnum<{
447
- office: "office";
448
- professional: "professional";
449
- organization: "organization";
450
- team: "team";
451
- }>;
452
- source_identities: z.ZodArray<z.ZodObject<{
453
- source: z.ZodString;
454
- key: z.ZodString;
455
- key_kind: z.ZodEnum<{
456
- source: "source";
457
- derived_observation: "derived_observation";
458
- }>;
459
- legacy_agent_id: z.ZodNullable<z.ZodString>;
460
- }, z.core.$strict>>;
461
- revision: z.ZodString;
462
- name: z.ZodNullable<z.ZodString>;
463
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
464
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
465
- state: z.ZodEnum<{
466
- supported: "supported";
467
- conflicting: "conflicting";
468
- withdrawn: "withdrawn";
469
- }>;
470
- observation_ids: z.ZodArray<z.ZodString>;
471
- authority: z.ZodEnum<{
472
- source_listing: "source_listing";
473
- product_verified: "product_verified";
474
- operator_verified: "operator_verified";
475
- }>;
476
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
477
- }, z.core.$strict>>;
478
- resolution_state: z.ZodEnum<{
479
- source_identity: "source_identity";
480
- provisional: "provisional";
481
- }>;
482
- source_availability: z.ZodEnum<{
483
- present: "present";
484
- unrepresented: "unrepresented";
485
- }>;
486
- first_seen_at: z.ZodISODateTime;
487
- last_seen_at: z.ZodISODateTime;
488
- updated_at: z.ZodISODateTime;
489
- }, z.core.$strict>>;
490
- next_cursor: z.ZodNullable<z.ZodString>;
491
- has_more: z.ZodBoolean;
492
- meta: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
493
- inventory_summaries: z.ZodOptional<z.ZodArray<z.ZodObject<{
494
- entity_id: z.ZodString;
495
- active_listing_count: z.ZodNumber;
496
- office_name: z.ZodNullable<z.ZodString>;
497
- }, z.core.$strict>>>;
498
- }, z.core.$strict>;
499
- };
500
- readonly directoryListOffices: {
501
- readonly input: z.ZodObject<{
502
- dataset_id: z.ZodOptional<z.ZodString>;
503
- cursor: z.ZodOptional<z.ZodString>;
504
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
505
- q: z.ZodOptional<z.ZodString>;
506
- include_unrepresented: z.ZodDefault<z.ZodEnum<{
507
- true: "true";
508
- false: "false";
509
- }>>;
510
- }, z.core.$strict>;
511
- readonly output: z.ZodObject<{
512
- data: z.ZodArray<z.ZodObject<{
513
- id: z.ZodString;
514
- kind: z.ZodEnum<{
515
- office: "office";
516
- professional: "professional";
517
- organization: "organization";
518
- team: "team";
519
- }>;
520
- source_identities: z.ZodArray<z.ZodObject<{
521
- source: z.ZodString;
522
- key: z.ZodString;
523
- key_kind: z.ZodEnum<{
524
- source: "source";
525
- derived_observation: "derived_observation";
526
- }>;
527
- legacy_agent_id: z.ZodNullable<z.ZodString>;
528
- }, z.core.$strict>>;
529
- revision: z.ZodString;
530
- name: z.ZodNullable<z.ZodString>;
531
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
532
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
533
- state: z.ZodEnum<{
534
- supported: "supported";
535
- conflicting: "conflicting";
536
- withdrawn: "withdrawn";
537
- }>;
538
- observation_ids: z.ZodArray<z.ZodString>;
539
- authority: z.ZodEnum<{
540
- source_listing: "source_listing";
541
- product_verified: "product_verified";
542
- operator_verified: "operator_verified";
543
- }>;
544
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
545
- }, z.core.$strict>>;
546
- resolution_state: z.ZodEnum<{
547
- source_identity: "source_identity";
548
- provisional: "provisional";
549
- }>;
550
- source_availability: z.ZodEnum<{
551
- present: "present";
552
- unrepresented: "unrepresented";
553
- }>;
554
- first_seen_at: z.ZodISODateTime;
555
- last_seen_at: z.ZodISODateTime;
556
- updated_at: z.ZodISODateTime;
557
- }, z.core.$strict>>;
558
- next_cursor: z.ZodNullable<z.ZodString>;
559
- has_more: z.ZodBoolean;
560
- meta: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
561
- }, z.core.$strict>;
562
- };
563
- readonly directoryListOrganizations: {
564
- readonly input: z.ZodObject<{
565
- dataset_id: z.ZodOptional<z.ZodString>;
566
- cursor: z.ZodOptional<z.ZodString>;
567
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
568
- q: z.ZodOptional<z.ZodString>;
569
- include_unrepresented: z.ZodDefault<z.ZodEnum<{
570
- true: "true";
571
- false: "false";
572
- }>>;
573
- }, z.core.$strict>;
574
- readonly output: z.ZodObject<{
575
- data: z.ZodArray<z.ZodObject<{
576
- id: z.ZodString;
577
- kind: z.ZodEnum<{
578
- office: "office";
579
- professional: "professional";
580
- organization: "organization";
581
- team: "team";
582
- }>;
583
- source_identities: z.ZodArray<z.ZodObject<{
584
- source: z.ZodString;
585
- key: z.ZodString;
586
- key_kind: z.ZodEnum<{
587
- source: "source";
588
- derived_observation: "derived_observation";
589
- }>;
590
- legacy_agent_id: z.ZodNullable<z.ZodString>;
591
- }, z.core.$strict>>;
592
- revision: z.ZodString;
593
- name: z.ZodNullable<z.ZodString>;
594
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
595
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
596
- state: z.ZodEnum<{
597
- supported: "supported";
598
- conflicting: "conflicting";
599
- withdrawn: "withdrawn";
600
- }>;
601
- observation_ids: z.ZodArray<z.ZodString>;
602
- authority: z.ZodEnum<{
603
- source_listing: "source_listing";
604
- product_verified: "product_verified";
605
- operator_verified: "operator_verified";
606
- }>;
607
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
608
- }, z.core.$strict>>;
609
- resolution_state: z.ZodEnum<{
610
- source_identity: "source_identity";
611
- provisional: "provisional";
612
- }>;
613
- source_availability: z.ZodEnum<{
614
- present: "present";
615
- unrepresented: "unrepresented";
616
- }>;
617
- first_seen_at: z.ZodISODateTime;
618
- last_seen_at: z.ZodISODateTime;
619
- updated_at: z.ZodISODateTime;
620
- }, z.core.$strict>>;
621
- next_cursor: z.ZodNullable<z.ZodString>;
622
- has_more: z.ZodBoolean;
623
- meta: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
624
- }, z.core.$strict>;
625
- };
626
- readonly directoryListTeams: {
627
- readonly input: z.ZodObject<{
628
- dataset_id: z.ZodOptional<z.ZodString>;
629
- cursor: z.ZodOptional<z.ZodString>;
630
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
631
- q: z.ZodOptional<z.ZodString>;
632
- include_unrepresented: z.ZodDefault<z.ZodEnum<{
633
- true: "true";
634
- false: "false";
635
- }>>;
636
- }, z.core.$strict>;
637
- readonly output: z.ZodObject<{
638
- data: z.ZodArray<z.ZodObject<{
639
- id: z.ZodString;
640
- kind: z.ZodEnum<{
641
- office: "office";
642
- professional: "professional";
643
- organization: "organization";
644
- team: "team";
645
- }>;
646
- source_identities: z.ZodArray<z.ZodObject<{
647
- source: z.ZodString;
648
- key: z.ZodString;
649
- key_kind: z.ZodEnum<{
650
- source: "source";
651
- derived_observation: "derived_observation";
652
- }>;
653
- legacy_agent_id: z.ZodNullable<z.ZodString>;
654
- }, z.core.$strict>>;
655
- revision: z.ZodString;
656
- name: z.ZodNullable<z.ZodString>;
657
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
658
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
659
- state: z.ZodEnum<{
660
- supported: "supported";
661
- conflicting: "conflicting";
662
- withdrawn: "withdrawn";
663
- }>;
664
- observation_ids: z.ZodArray<z.ZodString>;
665
- authority: z.ZodEnum<{
666
- source_listing: "source_listing";
667
- product_verified: "product_verified";
668
- operator_verified: "operator_verified";
669
- }>;
670
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
671
- }, z.core.$strict>>;
672
- resolution_state: z.ZodEnum<{
673
- source_identity: "source_identity";
674
- provisional: "provisional";
675
- }>;
676
- source_availability: z.ZodEnum<{
677
- present: "present";
678
- unrepresented: "unrepresented";
679
- }>;
680
- first_seen_at: z.ZodISODateTime;
681
- last_seen_at: z.ZodISODateTime;
682
- updated_at: z.ZodISODateTime;
683
- }, z.core.$strict>>;
684
- next_cursor: z.ZodNullable<z.ZodString>;
685
- has_more: z.ZodBoolean;
686
- meta: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
687
- }, z.core.$strict>;
688
- };
689
- readonly directoryGetEntity: {
690
- readonly input: z.ZodObject<{
691
- id: z.ZodString;
692
- dataset_id: z.ZodOptional<z.ZodString>;
693
- }, z.core.$strict>;
694
- readonly output: z.ZodObject<{
695
- id: z.ZodString;
696
- kind: z.ZodEnum<{
697
- office: "office";
698
- professional: "professional";
699
- organization: "organization";
700
- team: "team";
701
- }>;
702
- source_identities: z.ZodArray<z.ZodObject<{
703
- source: z.ZodString;
704
- key: z.ZodString;
705
- key_kind: z.ZodEnum<{
706
- source: "source";
707
- derived_observation: "derived_observation";
708
- }>;
709
- legacy_agent_id: z.ZodNullable<z.ZodString>;
710
- }, z.core.$strict>>;
711
- revision: z.ZodString;
712
- name: z.ZodNullable<z.ZodString>;
713
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
714
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
715
- state: z.ZodEnum<{
716
- supported: "supported";
717
- conflicting: "conflicting";
718
- withdrawn: "withdrawn";
719
- }>;
720
- observation_ids: z.ZodArray<z.ZodString>;
721
- authority: z.ZodEnum<{
722
- source_listing: "source_listing";
723
- product_verified: "product_verified";
724
- operator_verified: "operator_verified";
725
- }>;
726
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
727
- }, z.core.$strict>>;
728
- resolution_state: z.ZodEnum<{
729
- source_identity: "source_identity";
730
- provisional: "provisional";
731
- }>;
732
- source_availability: z.ZodEnum<{
733
- present: "present";
734
- unrepresented: "unrepresented";
735
- }>;
736
- first_seen_at: z.ZodISODateTime;
737
- last_seen_at: z.ZodISODateTime;
738
- updated_at: z.ZodISODateTime;
739
- }, z.core.$strict>;
740
- };
741
- readonly directoryResolveAgent: {
742
- readonly input: z.ZodObject<{
743
- id: z.ZodString;
744
- dataset_id: z.ZodOptional<z.ZodString>;
745
- }, z.core.$strict>;
746
- readonly output: z.ZodObject<{
747
- id: z.ZodString;
748
- kind: z.ZodEnum<{
749
- office: "office";
750
- professional: "professional";
751
- organization: "organization";
752
- team: "team";
753
- }>;
754
- source_identities: z.ZodArray<z.ZodObject<{
755
- source: z.ZodString;
756
- key: z.ZodString;
757
- key_kind: z.ZodEnum<{
758
- source: "source";
759
- derived_observation: "derived_observation";
760
- }>;
761
- legacy_agent_id: z.ZodNullable<z.ZodString>;
762
- }, z.core.$strict>>;
763
- revision: z.ZodString;
764
- name: z.ZodNullable<z.ZodString>;
765
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
766
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
767
- state: z.ZodEnum<{
768
- supported: "supported";
769
- conflicting: "conflicting";
770
- withdrawn: "withdrawn";
771
- }>;
772
- observation_ids: z.ZodArray<z.ZodString>;
773
- authority: z.ZodEnum<{
774
- source_listing: "source_listing";
775
- product_verified: "product_verified";
776
- operator_verified: "operator_verified";
777
- }>;
778
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
779
- }, z.core.$strict>>;
780
- resolution_state: z.ZodEnum<{
781
- source_identity: "source_identity";
782
- provisional: "provisional";
783
- }>;
784
- source_availability: z.ZodEnum<{
785
- present: "present";
786
- unrepresented: "unrepresented";
787
- }>;
788
- first_seen_at: z.ZodISODateTime;
789
- last_seen_at: z.ZodISODateTime;
790
- updated_at: z.ZodISODateTime;
791
- }, z.core.$strict>;
792
- };
793
- readonly directoryResolveIdentity: {
794
- readonly input: z.ZodObject<{
795
- source: z.ZodString;
796
- kind: z.ZodEnum<{
797
- office: "office";
798
- professional: "professional";
799
- organization: "organization";
800
- team: "team";
801
- }>;
802
- key: z.ZodString;
803
- dataset_id: z.ZodOptional<z.ZodString>;
804
- }, z.core.$strict>;
805
- readonly output: z.ZodObject<{
806
- id: z.ZodString;
807
- kind: z.ZodEnum<{
808
- office: "office";
809
- professional: "professional";
810
- organization: "organization";
811
- team: "team";
812
- }>;
813
- source_identities: z.ZodArray<z.ZodObject<{
814
- source: z.ZodString;
815
- key: z.ZodString;
816
- key_kind: z.ZodEnum<{
817
- source: "source";
818
- derived_observation: "derived_observation";
819
- }>;
820
- legacy_agent_id: z.ZodNullable<z.ZodString>;
821
- }, z.core.$strict>>;
822
- revision: z.ZodString;
823
- name: z.ZodNullable<z.ZodString>;
824
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
825
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
826
- state: z.ZodEnum<{
827
- supported: "supported";
828
- conflicting: "conflicting";
829
- withdrawn: "withdrawn";
830
- }>;
831
- observation_ids: z.ZodArray<z.ZodString>;
832
- authority: z.ZodEnum<{
833
- source_listing: "source_listing";
834
- product_verified: "product_verified";
835
- operator_verified: "operator_verified";
836
- }>;
837
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
838
- }, z.core.$strict>>;
839
- resolution_state: z.ZodEnum<{
840
- source_identity: "source_identity";
841
- provisional: "provisional";
842
- }>;
843
- source_availability: z.ZodEnum<{
844
- present: "present";
845
- unrepresented: "unrepresented";
846
- }>;
847
- first_seen_at: z.ZodISODateTime;
848
- last_seen_at: z.ZodISODateTime;
849
- updated_at: z.ZodISODateTime;
850
- }, z.core.$strict>;
851
- };
852
- readonly directoryListRelationships: {
853
- readonly input: z.ZodObject<{
854
- dataset_id: z.ZodOptional<z.ZodString>;
855
- cursor: z.ZodOptional<z.ZodString>;
856
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
857
- q: z.ZodOptional<z.ZodString>;
858
- include_unrepresented: z.ZodDefault<z.ZodEnum<{
859
- true: "true";
860
- false: "false";
861
- }>>;
862
- subject_id: z.ZodString;
863
- relationship: z.ZodOptional<z.ZodEnum<{
864
- observed_at_office: "observed_at_office";
865
- observed_brokerage: "observed_brokerage";
866
- affiliated_with: "affiliated_with";
867
- operates: "operates";
868
- member_of: "member_of";
869
- }>>;
870
- }, z.core.$strict>;
871
- readonly output: z.ZodObject<{
872
- data: z.ZodArray<z.ZodObject<{
873
- id: z.ZodString;
874
- source: z.ZodString;
875
- subject_id: z.ZodString;
876
- object_id: z.ZodString;
877
- relationship: z.ZodEnum<{
878
- observed_at_office: "observed_at_office";
879
- observed_brokerage: "observed_brokerage";
880
- affiliated_with: "affiliated_with";
881
- operates: "operates";
882
- member_of: "member_of";
883
- }>;
884
- evidence_state: z.ZodEnum<{
885
- observed: "observed";
886
- verified: "verified";
887
- }>;
888
- authority: z.ZodEnum<{
889
- source_listing: "source_listing";
890
- product_verified: "product_verified";
891
- operator_verified: "operator_verified";
892
- }>;
893
- revision: z.ZodString;
894
- current: z.ZodBoolean;
895
- listing_id: z.ZodNullable<z.ZodString>;
896
- observed_at: z.ZodISODateTime;
897
- effective_from: z.ZodNullable<z.ZodISODateTime>;
898
- effective_to: z.ZodNullable<z.ZodISODateTime>;
899
- evidence_ref: z.ZodString;
900
- }, z.core.$strict>>;
901
- next_cursor: z.ZodNullable<z.ZodString>;
902
- has_more: z.ZodBoolean;
903
- meta: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
904
- }, z.core.$strict>;
905
- };
906
- readonly directoryGetContacts: {
907
- readonly input: z.ZodObject<{
908
- id: z.ZodString;
909
- dataset_id: z.ZodOptional<z.ZodString>;
910
- }, z.core.$strict>;
911
- readonly output: z.ZodObject<{
912
- entity_id: z.ZodString;
913
- revision: z.ZodString;
914
- state: z.ZodEnum<{
915
- conflicting: "conflicting";
916
- not_established: "not_established";
917
- unrepresented: "unrepresented";
918
- available: "available";
919
- }>;
920
- data: z.ZodArray<z.ZodObject<{
921
- id: z.ZodString;
922
- type: z.ZodEnum<{
923
- email: "email";
924
- phone: "phone";
925
- website: "website";
926
- }>;
927
- purpose: z.ZodEnum<{
928
- office: "office";
929
- professional: "professional";
930
- organization: "organization";
931
- lead_routing: "lead_routing";
932
- }>;
933
- value: z.ZodString;
934
- original: z.ZodString;
935
- observation_ids: z.ZodArray<z.ZodString>;
936
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
937
- verified_ownership: z.ZodBoolean;
938
- }, z.core.$strict>>;
939
- }, z.core.$strict>;
940
- };
941
- readonly directoryGetMetrics: {
942
- readonly input: z.ZodObject<{
943
- id: z.ZodString;
944
- dataset_id: z.ZodOptional<z.ZodString>;
945
- }, z.core.$strict>;
946
- readonly output: z.ZodObject<{
947
- entity_id: z.ZodString;
948
- inventory_basis: z.ZodLiteral<"listing_representation">;
949
- definition_version: z.ZodLiteral<"observed-inventory-v1">;
950
- listing_count: z.ZodNumber;
951
- active_listing_count: z.ZodNumber;
952
- source_namespaces: z.ZodArray<z.ZodString>;
953
- coverage: z.ZodLiteral<"authorized_observed_listings">;
954
- calculated_at: z.ZodISODateTime;
955
- }, z.core.$strict>;
956
- };
957
- readonly directoryRecordProfile: {
958
- readonly input: z.ZodObject<{
959
- dataset_id: z.ZodOptional<z.ZodString>;
960
- producer_id: z.ZodString;
961
- source: z.ZodString;
962
- kind: z.ZodEnum<{
963
- office: "office";
964
- professional: "professional";
965
- organization: "organization";
966
- team: "team";
967
- }>;
968
- key: z.ZodString;
969
- subject_version: z.ZodString;
970
- observed_at: z.ZodISODateTime;
971
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
972
- contacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
973
- type: z.ZodEnum<{
974
- email: "email";
975
- phone: "phone";
976
- website: "website";
977
- }>;
978
- purpose: z.ZodEnum<{
979
- office: "office";
980
- professional: "professional";
981
- organization: "organization";
982
- lead_routing: "lead_routing";
983
- }>;
984
- value: z.ZodString;
985
- }, z.core.$strict>>>;
986
- withdrawn_fields: z.ZodDefault<z.ZodArray<z.ZodString>>;
987
- withdrawn_contacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
988
- }, z.core.$strict>;
989
- readonly output: z.ZodObject<{
990
- id: z.ZodString;
991
- kind: z.ZodEnum<{
992
- office: "office";
993
- professional: "professional";
994
- organization: "organization";
995
- team: "team";
996
- }>;
997
- source_identities: z.ZodArray<z.ZodObject<{
998
- source: z.ZodString;
999
- key: z.ZodString;
1000
- key_kind: z.ZodEnum<{
1001
- source: "source";
1002
- derived_observation: "derived_observation";
1003
- }>;
1004
- legacy_agent_id: z.ZodNullable<z.ZodString>;
1005
- }, z.core.$strict>>;
1006
- revision: z.ZodString;
1007
- name: z.ZodNullable<z.ZodString>;
1008
- fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodNull]>>;
1009
- field_evidence: z.ZodRecord<z.ZodString, z.ZodObject<{
1010
- state: z.ZodEnum<{
1011
- supported: "supported";
1012
- conflicting: "conflicting";
1013
- withdrawn: "withdrawn";
1014
- }>;
1015
- observation_ids: z.ZodArray<z.ZodString>;
1016
- authority: z.ZodEnum<{
1017
- source_listing: "source_listing";
1018
- product_verified: "product_verified";
1019
- operator_verified: "operator_verified";
1020
- }>;
1021
- source_modified_at: z.ZodNullable<z.ZodISODateTime>;
1022
- }, z.core.$strict>>;
1023
- resolution_state: z.ZodEnum<{
1024
- source_identity: "source_identity";
1025
- provisional: "provisional";
1026
- }>;
1027
- source_availability: z.ZodEnum<{
1028
- present: "present";
1029
- unrepresented: "unrepresented";
1030
- }>;
1031
- first_seen_at: z.ZodISODateTime;
1032
- last_seen_at: z.ZodISODateTime;
1033
- updated_at: z.ZodISODateTime;
1034
- }, z.core.$strict>;
1035
- };
1036
- readonly directoryRecordRelationship: {
1037
- readonly input: z.ZodObject<{
1038
- dataset_id: z.ZodOptional<z.ZodString>;
1039
- producer_id: z.ZodString;
1040
- subject_id: z.ZodString;
1041
- object_id: z.ZodString;
1042
- relationship: z.ZodEnum<{
1043
- affiliated_with: "affiliated_with";
1044
- operates: "operates";
1045
- member_of: "member_of";
1046
- }>;
1047
- subject_version: z.ZodString;
1048
- current: z.ZodBoolean;
1049
- observed_at: z.ZodISODateTime;
1050
- effective_from: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
1051
- effective_to: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
1052
- }, z.core.$strict>;
1053
- readonly output: z.ZodObject<{
1054
- id: z.ZodString;
1055
- source: z.ZodString;
1056
- subject_id: z.ZodString;
1057
- object_id: z.ZodString;
1058
- relationship: z.ZodEnum<{
1059
- observed_at_office: "observed_at_office";
1060
- observed_brokerage: "observed_brokerage";
1061
- affiliated_with: "affiliated_with";
1062
- operates: "operates";
1063
- member_of: "member_of";
1064
- }>;
1065
- evidence_state: z.ZodEnum<{
1066
- observed: "observed";
1067
- verified: "verified";
1068
- }>;
1069
- authority: z.ZodEnum<{
1070
- source_listing: "source_listing";
1071
- product_verified: "product_verified";
1072
- operator_verified: "operator_verified";
1073
- }>;
1074
- revision: z.ZodString;
1075
- current: z.ZodBoolean;
1076
- listing_id: z.ZodNullable<z.ZodString>;
1077
- observed_at: z.ZodISODateTime;
1078
- effective_from: z.ZodNullable<z.ZodISODateTime>;
1079
- effective_to: z.ZodNullable<z.ZodISODateTime>;
1080
- evidence_ref: z.ZodString;
1081
- }, z.core.$strict>;
1082
- };
1083
- };
1084
- export type DirectoryEntity = z.infer<typeof DirectoryEntitySchema>;
1085
- export type DirectoryRelationship = z.infer<typeof DirectoryRelationshipSchema>;
1086
- export type DirectoryContact = z.infer<typeof DirectoryContactSchema>;
1087
- export type DirectoryEntityKind = z.infer<typeof DirectoryKind>;
1088
- export type DirectoryUsePurpose = z.infer<typeof DirectoryPurpose>;