@fern-api/fdr-sdk 1.2.73-d554614c7c → 1.2.74-04dd3d68b3

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,1419 @@
1
+ import * as z from "zod";
2
+ export declare const DashboardAnalyticsCommonInputSchema: z.ZodObject<{
3
+ orgId: z.ZodString;
4
+ domain: z.ZodString;
5
+ dateRange: z.ZodOptional<z.ZodString>;
6
+ includeInternal: z.ZodOptional<z.ZodBoolean>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ orgId: string;
9
+ domain: string;
10
+ dateRange?: string | undefined;
11
+ includeInternal?: boolean | undefined;
12
+ }, {
13
+ orgId: string;
14
+ domain: string;
15
+ dateRange?: string | undefined;
16
+ includeInternal?: boolean | undefined;
17
+ }>;
18
+ export type DashboardAnalyticsCommonInput = z.infer<typeof DashboardAnalyticsCommonInputSchema>;
19
+ export declare const DashboardFeedbackInputSchema: z.ZodObject<{
20
+ orgId: z.ZodString;
21
+ domain: z.ZodString;
22
+ dateRange: z.ZodOptional<z.ZodString>;
23
+ feedbackType: z.ZodOptional<z.ZodEnum<["page", "code_block", "all"]>>;
24
+ limit: z.ZodOptional<z.ZodNumber>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ orgId: string;
27
+ domain: string;
28
+ limit?: number | undefined;
29
+ dateRange?: string | undefined;
30
+ feedbackType?: "page" | "code_block" | "all" | undefined;
31
+ }, {
32
+ orgId: string;
33
+ domain: string;
34
+ limit?: number | undefined;
35
+ dateRange?: string | undefined;
36
+ feedbackType?: "page" | "code_block" | "all" | undefined;
37
+ }>;
38
+ export type DashboardFeedbackInput = z.infer<typeof DashboardFeedbackInputSchema>;
39
+ export declare const DashboardListOrgDocDomainsInputSchema: z.ZodObject<{
40
+ orgId: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ orgId: string;
43
+ }, {
44
+ orgId: string;
45
+ }>;
46
+ export type DashboardListOrgDocDomainsInput = z.infer<typeof DashboardListOrgDocDomainsInputSchema>;
47
+ export declare const DashboardListOrgMembersInputSchema: z.ZodObject<{
48
+ orgId: z.ZodString;
49
+ includeFernEmployees: z.ZodOptional<z.ZodBoolean>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ orgId: string;
52
+ includeFernEmployees?: boolean | undefined;
53
+ }, {
54
+ orgId: string;
55
+ includeFernEmployees?: boolean | undefined;
56
+ }>;
57
+ export type DashboardListOrgMembersInput = z.infer<typeof DashboardListOrgMembersInputSchema>;
58
+ export declare const DashboardGetSiteConfigInputSchema: z.ZodObject<{
59
+ orgId: z.ZodString;
60
+ domain: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ orgId: string;
63
+ domain: string;
64
+ }, {
65
+ orgId: string;
66
+ domain: string;
67
+ }>;
68
+ export type DashboardGetSiteConfigInput = z.infer<typeof DashboardGetSiteConfigInputSchema>;
69
+ /** Metrics backed by concrete `posthog.events` aggregates (no invented columns). */
70
+ export declare const AnalyticsMetricSchema: z.ZodEnum<["pageviews", "visitors", "sessions", "404s"]>;
71
+ export type AnalyticsMetric = z.infer<typeof AnalyticsMetricSchema>;
72
+ /** Groupable columns. `referrer` is only valid for the pageview-family metrics. */
73
+ export declare const AnalyticsDimensionSchema: z.ZodEnum<["path", "referrer"]>;
74
+ export type AnalyticsDimension = z.infer<typeof AnalyticsDimensionSchema>;
75
+ export declare const AnalyticsGranularitySchema: z.ZodEnum<["day", "week", "month"]>;
76
+ export type AnalyticsGranularity = z.infer<typeof AnalyticsGranularitySchema>;
77
+ export declare const AnalyticsFilterFieldSchema: z.ZodEnum<["path", "referrer"]>;
78
+ export declare const AnalyticsFilterOpSchema: z.ZodEnum<["eq", "prefix", "contains"]>;
79
+ /** A single filter clause; `value` is always bound as a query parameter. */
80
+ export declare const AnalyticsFilterSchema: z.ZodObject<{
81
+ field: z.ZodEnum<["path", "referrer"]>;
82
+ op: z.ZodEnum<["eq", "prefix", "contains"]>;
83
+ value: z.ZodString;
84
+ }, "strip", z.ZodTypeAny, {
85
+ value: string;
86
+ field: "path" | "referrer";
87
+ op: "prefix" | "eq" | "contains";
88
+ }, {
89
+ value: string;
90
+ field: "path" | "referrer";
91
+ op: "prefix" | "eq" | "contains";
92
+ }>;
93
+ export type AnalyticsFilter = z.infer<typeof AnalyticsFilterSchema>;
94
+ export declare const AnalyticsOrderBySchema: z.ZodObject<{
95
+ field: z.ZodEnum<["count", "visitors"]>;
96
+ dir: z.ZodEnum<["asc", "desc"]>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ field: "visitors" | "count";
99
+ dir: "asc" | "desc";
100
+ }, {
101
+ field: "visitors" | "count";
102
+ dir: "asc" | "desc";
103
+ }>;
104
+ /** Either a semantic range string (e.g. `last_n_days:30`) or explicit ISO bounds. */
105
+ export declare const AnalyticsDateRangeSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
106
+ startDate: z.ZodString;
107
+ endDate: z.ZodString;
108
+ }, "strip", z.ZodTypeAny, {
109
+ startDate: string;
110
+ endDate: string;
111
+ }, {
112
+ startDate: string;
113
+ endDate: string;
114
+ }>]>;
115
+ export declare const QueryAnalyticsInputSchema: z.ZodObject<{
116
+ orgId: z.ZodString;
117
+ domain: z.ZodString;
118
+ metric: z.ZodEnum<["pageviews", "visitors", "sessions", "404s"]>;
119
+ dimensions: z.ZodOptional<z.ZodArray<z.ZodEnum<["path", "referrer"]>, "many">>;
120
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
+ field: z.ZodEnum<["path", "referrer"]>;
122
+ op: z.ZodEnum<["eq", "prefix", "contains"]>;
123
+ value: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ value: string;
126
+ field: "path" | "referrer";
127
+ op: "prefix" | "eq" | "contains";
128
+ }, {
129
+ value: string;
130
+ field: "path" | "referrer";
131
+ op: "prefix" | "eq" | "contains";
132
+ }>, "many">>;
133
+ dateRange: z.ZodUnion<[z.ZodString, z.ZodObject<{
134
+ startDate: z.ZodString;
135
+ endDate: z.ZodString;
136
+ }, "strip", z.ZodTypeAny, {
137
+ startDate: string;
138
+ endDate: string;
139
+ }, {
140
+ startDate: string;
141
+ endDate: string;
142
+ }>]>;
143
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month"]>>;
144
+ orderBy: z.ZodOptional<z.ZodObject<{
145
+ field: z.ZodEnum<["count", "visitors"]>;
146
+ dir: z.ZodEnum<["asc", "desc"]>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ field: "visitors" | "count";
149
+ dir: "asc" | "desc";
150
+ }, {
151
+ field: "visitors" | "count";
152
+ dir: "asc" | "desc";
153
+ }>>;
154
+ limit: z.ZodOptional<z.ZodNumber>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ orgId: string;
157
+ domain: string;
158
+ dateRange: string | {
159
+ startDate: string;
160
+ endDate: string;
161
+ };
162
+ metric: "pageviews" | "visitors" | "sessions" | "404s";
163
+ limit?: number | undefined;
164
+ dimensions?: ("path" | "referrer")[] | undefined;
165
+ filters?: {
166
+ value: string;
167
+ field: "path" | "referrer";
168
+ op: "prefix" | "eq" | "contains";
169
+ }[] | undefined;
170
+ granularity?: "day" | "week" | "month" | undefined;
171
+ orderBy?: {
172
+ field: "visitors" | "count";
173
+ dir: "asc" | "desc";
174
+ } | undefined;
175
+ }, {
176
+ orgId: string;
177
+ domain: string;
178
+ dateRange: string | {
179
+ startDate: string;
180
+ endDate: string;
181
+ };
182
+ metric: "pageviews" | "visitors" | "sessions" | "404s";
183
+ limit?: number | undefined;
184
+ dimensions?: ("path" | "referrer")[] | undefined;
185
+ filters?: {
186
+ value: string;
187
+ field: "path" | "referrer";
188
+ op: "prefix" | "eq" | "contains";
189
+ }[] | undefined;
190
+ granularity?: "day" | "week" | "month" | undefined;
191
+ orderBy?: {
192
+ field: "visitors" | "count";
193
+ dir: "asc" | "desc";
194
+ } | undefined;
195
+ }>;
196
+ export type QueryAnalyticsInput = z.infer<typeof QueryAnalyticsInputSchema>;
197
+ export declare const ResolvedDateRangeSchema: z.ZodObject<{
198
+ startDate: z.ZodString;
199
+ endDate: z.ZodString;
200
+ }, "strip", z.ZodTypeAny, {
201
+ startDate: string;
202
+ endDate: string;
203
+ }, {
204
+ startDate: string;
205
+ endDate: string;
206
+ }>;
207
+ export type ResolvedDateRange = z.infer<typeof ResolvedDateRangeSchema>;
208
+ export declare const TrafficSummaryResponseSchema: z.ZodObject<{
209
+ resolvedDateRange: z.ZodObject<{
210
+ startDate: z.ZodString;
211
+ endDate: z.ZodString;
212
+ }, "strip", z.ZodTypeAny, {
213
+ startDate: string;
214
+ endDate: string;
215
+ }, {
216
+ startDate: string;
217
+ endDate: string;
218
+ }>;
219
+ metrics: z.ZodObject<{
220
+ visitors: z.ZodNumber;
221
+ pageViews: z.ZodNumber;
222
+ sessions: z.ZodNumber;
223
+ }, "strip", z.ZodTypeAny, {
224
+ visitors: number;
225
+ sessions: number;
226
+ pageViews: number;
227
+ }, {
228
+ visitors: number;
229
+ sessions: number;
230
+ pageViews: number;
231
+ }>;
232
+ baseSiteUrl: z.ZodString;
233
+ }, "strip", z.ZodTypeAny, {
234
+ resolvedDateRange: {
235
+ startDate: string;
236
+ endDate: string;
237
+ };
238
+ metrics: {
239
+ visitors: number;
240
+ sessions: number;
241
+ pageViews: number;
242
+ };
243
+ baseSiteUrl: string;
244
+ }, {
245
+ resolvedDateRange: {
246
+ startDate: string;
247
+ endDate: string;
248
+ };
249
+ metrics: {
250
+ visitors: number;
251
+ sessions: number;
252
+ pageViews: number;
253
+ };
254
+ baseSiteUrl: string;
255
+ }>;
256
+ export type TrafficSummaryResponse = z.infer<typeof TrafficSummaryResponseSchema>;
257
+ export declare const TopPagesResponseSchema: z.ZodObject<{
258
+ resolvedDateRange: z.ZodObject<{
259
+ startDate: z.ZodString;
260
+ endDate: z.ZodString;
261
+ }, "strip", z.ZodTypeAny, {
262
+ startDate: string;
263
+ endDate: string;
264
+ }, {
265
+ startDate: string;
266
+ endDate: string;
267
+ }>;
268
+ topPages: z.ZodArray<z.ZodObject<{
269
+ path: z.ZodString;
270
+ visitors: z.ZodNumber;
271
+ views: z.ZodNumber;
272
+ }, "strip", z.ZodTypeAny, {
273
+ path: string;
274
+ visitors: number;
275
+ views: number;
276
+ }, {
277
+ path: string;
278
+ visitors: number;
279
+ views: number;
280
+ }>, "many">;
281
+ }, "strip", z.ZodTypeAny, {
282
+ resolvedDateRange: {
283
+ startDate: string;
284
+ endDate: string;
285
+ };
286
+ topPages: {
287
+ path: string;
288
+ visitors: number;
289
+ views: number;
290
+ }[];
291
+ }, {
292
+ resolvedDateRange: {
293
+ startDate: string;
294
+ endDate: string;
295
+ };
296
+ topPages: {
297
+ path: string;
298
+ visitors: number;
299
+ views: number;
300
+ }[];
301
+ }>;
302
+ export type TopPagesResponse = z.infer<typeof TopPagesResponseSchema>;
303
+ export declare const Pages404ResponseSchema: z.ZodObject<{
304
+ resolvedDateRange: z.ZodObject<{
305
+ startDate: z.ZodString;
306
+ endDate: z.ZodString;
307
+ }, "strip", z.ZodTypeAny, {
308
+ startDate: string;
309
+ endDate: string;
310
+ }, {
311
+ startDate: string;
312
+ endDate: string;
313
+ }>;
314
+ pages404: z.ZodArray<z.ZodObject<{
315
+ path: z.ZodString;
316
+ count: z.ZodNumber;
317
+ }, "strip", z.ZodTypeAny, {
318
+ path: string;
319
+ count: number;
320
+ }, {
321
+ path: string;
322
+ count: number;
323
+ }>, "many">;
324
+ }, "strip", z.ZodTypeAny, {
325
+ resolvedDateRange: {
326
+ startDate: string;
327
+ endDate: string;
328
+ };
329
+ pages404: {
330
+ path: string;
331
+ count: number;
332
+ }[];
333
+ }, {
334
+ resolvedDateRange: {
335
+ startDate: string;
336
+ endDate: string;
337
+ };
338
+ pages404: {
339
+ path: string;
340
+ count: number;
341
+ }[];
342
+ }>;
343
+ export type Pages404Response = z.infer<typeof Pages404ResponseSchema>;
344
+ export declare const ReferringDomainsResponseSchema: z.ZodObject<{
345
+ resolvedDateRange: z.ZodObject<{
346
+ startDate: z.ZodString;
347
+ endDate: z.ZodString;
348
+ }, "strip", z.ZodTypeAny, {
349
+ startDate: string;
350
+ endDate: string;
351
+ }, {
352
+ startDate: string;
353
+ endDate: string;
354
+ }>;
355
+ referringDomains: z.ZodArray<z.ZodObject<{
356
+ domain: z.ZodString;
357
+ visitors: z.ZodNumber;
358
+ views: z.ZodNumber;
359
+ }, "strip", z.ZodTypeAny, {
360
+ domain: string;
361
+ visitors: number;
362
+ views: number;
363
+ }, {
364
+ domain: string;
365
+ visitors: number;
366
+ views: number;
367
+ }>, "many">;
368
+ }, "strip", z.ZodTypeAny, {
369
+ resolvedDateRange: {
370
+ startDate: string;
371
+ endDate: string;
372
+ };
373
+ referringDomains: {
374
+ domain: string;
375
+ visitors: number;
376
+ views: number;
377
+ }[];
378
+ }, {
379
+ resolvedDateRange: {
380
+ startDate: string;
381
+ endDate: string;
382
+ };
383
+ referringDomains: {
384
+ domain: string;
385
+ visitors: number;
386
+ views: number;
387
+ }[];
388
+ }>;
389
+ export type ReferringDomainsResponse = z.infer<typeof ReferringDomainsResponseSchema>;
390
+ export declare const LlmBotTrafficResponseSchema: z.ZodObject<{
391
+ resolvedDateRange: z.ZodObject<{
392
+ startDate: z.ZodString;
393
+ endDate: z.ZodString;
394
+ }, "strip", z.ZodTypeAny, {
395
+ startDate: string;
396
+ endDate: string;
397
+ }, {
398
+ startDate: string;
399
+ endDate: string;
400
+ }>;
401
+ providers: z.ZodArray<z.ZodObject<{
402
+ provider: z.ZodString;
403
+ count: z.ZodNumber;
404
+ }, "strip", z.ZodTypeAny, {
405
+ count: number;
406
+ provider: string;
407
+ }, {
408
+ count: number;
409
+ provider: string;
410
+ }>, "many">;
411
+ }, "strip", z.ZodTypeAny, {
412
+ resolvedDateRange: {
413
+ startDate: string;
414
+ endDate: string;
415
+ };
416
+ providers: {
417
+ count: number;
418
+ provider: string;
419
+ }[];
420
+ }, {
421
+ resolvedDateRange: {
422
+ startDate: string;
423
+ endDate: string;
424
+ };
425
+ providers: {
426
+ count: number;
427
+ provider: string;
428
+ }[];
429
+ }>;
430
+ export type LlmBotTrafficResponse = z.infer<typeof LlmBotTrafficResponseSchema>;
431
+ export declare const RecentFeedbackResponseSchema: z.ZodObject<{
432
+ resolvedDateRange: z.ZodObject<{
433
+ startDate: z.ZodString;
434
+ endDate: z.ZodString;
435
+ }, "strip", z.ZodTypeAny, {
436
+ startDate: string;
437
+ endDate: string;
438
+ }, {
439
+ startDate: string;
440
+ endDate: string;
441
+ }>;
442
+ helpfulCount: z.ZodNumber;
443
+ unhelpfulCount: z.ZodNumber;
444
+ entries: z.ZodArray<z.ZodObject<{
445
+ date: z.ZodString;
446
+ location: z.ZodString;
447
+ wasHelpful: z.ZodBoolean;
448
+ userFeedback: z.ZodString;
449
+ feedbackType: z.ZodOptional<z.ZodString>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ date: string;
452
+ location: string;
453
+ wasHelpful: boolean;
454
+ userFeedback: string;
455
+ feedbackType?: string | undefined;
456
+ }, {
457
+ date: string;
458
+ location: string;
459
+ wasHelpful: boolean;
460
+ userFeedback: string;
461
+ feedbackType?: string | undefined;
462
+ }>, "many">;
463
+ hasMore: z.ZodBoolean;
464
+ }, "strip", z.ZodTypeAny, {
465
+ entries: {
466
+ date: string;
467
+ location: string;
468
+ wasHelpful: boolean;
469
+ userFeedback: string;
470
+ feedbackType?: string | undefined;
471
+ }[];
472
+ hasMore: boolean;
473
+ resolvedDateRange: {
474
+ startDate: string;
475
+ endDate: string;
476
+ };
477
+ helpfulCount: number;
478
+ unhelpfulCount: number;
479
+ }, {
480
+ entries: {
481
+ date: string;
482
+ location: string;
483
+ wasHelpful: boolean;
484
+ userFeedback: string;
485
+ feedbackType?: string | undefined;
486
+ }[];
487
+ hasMore: boolean;
488
+ resolvedDateRange: {
489
+ startDate: string;
490
+ endDate: string;
491
+ };
492
+ helpfulCount: number;
493
+ unhelpfulCount: number;
494
+ }>;
495
+ export type RecentFeedbackResponse = z.infer<typeof RecentFeedbackResponseSchema>;
496
+ export declare const OrgDocDomainsResponseSchema: z.ZodObject<{
497
+ domains: z.ZodArray<z.ZodString, "many">;
498
+ }, "strip", z.ZodTypeAny, {
499
+ domains: string[];
500
+ }, {
501
+ domains: string[];
502
+ }>;
503
+ export type OrgDocDomainsResponse = z.infer<typeof OrgDocDomainsResponseSchema>;
504
+ export declare const QueryAnalyticsResponseSchema: z.ZodObject<{
505
+ resolvedDateRange: z.ZodObject<{
506
+ startDate: z.ZodString;
507
+ endDate: z.ZodString;
508
+ }, "strip", z.ZodTypeAny, {
509
+ startDate: string;
510
+ endDate: string;
511
+ }, {
512
+ startDate: string;
513
+ endDate: string;
514
+ }>;
515
+ metric: z.ZodEnum<["pageviews", "visitors", "sessions", "404s"]>;
516
+ dimensions: z.ZodArray<z.ZodEnum<["path", "referrer"]>, "many">;
517
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month"]>>;
518
+ rows: z.ZodArray<z.ZodObject<{
519
+ dimensions: z.ZodRecord<z.ZodString, z.ZodString>;
520
+ bucket: z.ZodOptional<z.ZodString>;
521
+ count: z.ZodNumber;
522
+ visitors: z.ZodOptional<z.ZodNumber>;
523
+ sessions: z.ZodOptional<z.ZodNumber>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ count: number;
526
+ dimensions: Record<string, string>;
527
+ visitors?: number | undefined;
528
+ sessions?: number | undefined;
529
+ bucket?: string | undefined;
530
+ }, {
531
+ count: number;
532
+ dimensions: Record<string, string>;
533
+ visitors?: number | undefined;
534
+ sessions?: number | undefined;
535
+ bucket?: string | undefined;
536
+ }>, "many">;
537
+ }, "strip", z.ZodTypeAny, {
538
+ metric: "pageviews" | "visitors" | "sessions" | "404s";
539
+ dimensions: ("path" | "referrer")[];
540
+ resolvedDateRange: {
541
+ startDate: string;
542
+ endDate: string;
543
+ };
544
+ rows: {
545
+ count: number;
546
+ dimensions: Record<string, string>;
547
+ visitors?: number | undefined;
548
+ sessions?: number | undefined;
549
+ bucket?: string | undefined;
550
+ }[];
551
+ granularity?: "day" | "week" | "month" | undefined;
552
+ }, {
553
+ metric: "pageviews" | "visitors" | "sessions" | "404s";
554
+ dimensions: ("path" | "referrer")[];
555
+ resolvedDateRange: {
556
+ startDate: string;
557
+ endDate: string;
558
+ };
559
+ rows: {
560
+ count: number;
561
+ dimensions: Record<string, string>;
562
+ visitors?: number | undefined;
563
+ sessions?: number | undefined;
564
+ bucket?: string | undefined;
565
+ }[];
566
+ granularity?: "day" | "week" | "month" | undefined;
567
+ }>;
568
+ export type QueryAnalyticsResponse = z.infer<typeof QueryAnalyticsResponseSchema>;
569
+ export declare const OrgMembersResponseSchema: z.ZodObject<{
570
+ members: z.ZodArray<z.ZodObject<{
571
+ name: z.ZodString;
572
+ email: z.ZodString;
573
+ roles: z.ZodArray<z.ZodString, "many">;
574
+ }, "strip", z.ZodTypeAny, {
575
+ name: string;
576
+ email: string;
577
+ roles: string[];
578
+ }, {
579
+ name: string;
580
+ email: string;
581
+ roles: string[];
582
+ }>, "many">;
583
+ count: z.ZodNumber;
584
+ }, "strip", z.ZodTypeAny, {
585
+ count: number;
586
+ members: {
587
+ name: string;
588
+ email: string;
589
+ roles: string[];
590
+ }[];
591
+ }, {
592
+ count: number;
593
+ members: {
594
+ name: string;
595
+ email: string;
596
+ roles: string[];
597
+ }[];
598
+ }>;
599
+ export type OrgMembersResponse = z.infer<typeof OrgMembersResponseSchema>;
600
+ export declare const SiteGitRepositorySchema: z.ZodObject<{
601
+ gitUrl: z.ZodString;
602
+ provider: z.ZodEnum<["github", "gitlab", "other"]>;
603
+ /** `owner/repo` when the git url points at GitHub, else null. */
604
+ githubRepository: z.ZodNullable<z.ZodString>;
605
+ branch: z.ZodNullable<z.ZodString>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ gitUrl: string;
608
+ provider: "github" | "gitlab" | "other";
609
+ githubRepository: string | null;
610
+ branch: string | null;
611
+ }, {
612
+ gitUrl: string;
613
+ provider: "github" | "gitlab" | "other";
614
+ githubRepository: string | null;
615
+ branch: string | null;
616
+ }>;
617
+ export type SiteGitRepository = z.infer<typeof SiteGitRepositorySchema>;
618
+ export declare const SiteConfigResponseSchema: z.ZodObject<{
619
+ domain: z.ZodString;
620
+ basepath: z.ZodNullable<z.ZodString>;
621
+ status: z.ZodNullable<z.ZodString>;
622
+ isPreview: z.ZodBoolean;
623
+ /** The git repository connected to this docs site, when one exists. */
624
+ gitRepository: z.ZodNullable<z.ZodObject<{
625
+ gitUrl: z.ZodString;
626
+ provider: z.ZodEnum<["github", "gitlab", "other"]>;
627
+ /** `owner/repo` when the git url points at GitHub, else null. */
628
+ githubRepository: z.ZodNullable<z.ZodString>;
629
+ branch: z.ZodNullable<z.ZodString>;
630
+ }, "strip", z.ZodTypeAny, {
631
+ gitUrl: string;
632
+ provider: "github" | "gitlab" | "other";
633
+ githubRepository: string | null;
634
+ branch: string | null;
635
+ }, {
636
+ gitUrl: string;
637
+ provider: "github" | "gitlab" | "other";
638
+ githubRepository: string | null;
639
+ branch: string | null;
640
+ }>>;
641
+ /** True when the queried domain is a customer-owned custom domain (not *.docs.buildwithfern.com). */
642
+ isCustomDomain: z.ZodBoolean;
643
+ /** Fern CLI version that published the current deployment, when known. */
644
+ fernCliVersion: z.ZodNullable<z.ZodString>;
645
+ /** Connected Postman collection id, when one exists. */
646
+ postmanCollectionId: z.ZodNullable<z.ZodString>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ status: string | null;
649
+ domain: string;
650
+ basepath: string | null;
651
+ postmanCollectionId: string | null;
652
+ isPreview: boolean;
653
+ gitRepository: {
654
+ gitUrl: string;
655
+ provider: "github" | "gitlab" | "other";
656
+ githubRepository: string | null;
657
+ branch: string | null;
658
+ } | null;
659
+ isCustomDomain: boolean;
660
+ fernCliVersion: string | null;
661
+ }, {
662
+ status: string | null;
663
+ domain: string;
664
+ basepath: string | null;
665
+ postmanCollectionId: string | null;
666
+ isPreview: boolean;
667
+ gitRepository: {
668
+ gitUrl: string;
669
+ provider: "github" | "gitlab" | "other";
670
+ githubRepository: string | null;
671
+ branch: string | null;
672
+ } | null;
673
+ isCustomDomain: boolean;
674
+ fernCliVersion: string | null;
675
+ }>;
676
+ export type SiteConfigResponse = z.infer<typeof SiteConfigResponseSchema>;
677
+ export declare const SitePasswordProtectionSchema: z.ZodObject<{
678
+ enabled: z.ZodBoolean;
679
+ /** Number of configured passwords. Passwords themselves are never returned. */
680
+ passwordCount: z.ZodNumber;
681
+ }, "strip", z.ZodTypeAny, {
682
+ enabled: boolean;
683
+ passwordCount: number;
684
+ }, {
685
+ enabled: boolean;
686
+ passwordCount: number;
687
+ }>;
688
+ export type SitePasswordProtection = z.infer<typeof SitePasswordProtectionSchema>;
689
+ export declare const SiteSettingsResponseSchema: z.ZodObject<{
690
+ domain: z.ZodString;
691
+ basepath: z.ZodNullable<z.ZodString>;
692
+ /** Default basepath route for multi-basepath domains, when configured. */
693
+ defaultBasepath: z.ZodNullable<z.ZodString>;
694
+ /** Basepaths routed on this domain, when configured. */
695
+ basepaths: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
696
+ searchBehavior: z.ZodNullable<z.ZodEnum<["hierarchical", "unified"]>>;
697
+ passwordProtection: z.ZodObject<{
698
+ enabled: z.ZodBoolean;
699
+ /** Number of configured passwords. Passwords themselves are never returned. */
700
+ passwordCount: z.ZodNumber;
701
+ }, "strip", z.ZodTypeAny, {
702
+ enabled: boolean;
703
+ passwordCount: number;
704
+ }, {
705
+ enabled: boolean;
706
+ passwordCount: number;
707
+ }>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ domain: string;
710
+ basepath: string | null;
711
+ defaultBasepath: string | null;
712
+ basepaths: string[] | null;
713
+ searchBehavior: "hierarchical" | "unified" | null;
714
+ passwordProtection: {
715
+ enabled: boolean;
716
+ passwordCount: number;
717
+ };
718
+ }, {
719
+ domain: string;
720
+ basepath: string | null;
721
+ defaultBasepath: string | null;
722
+ basepaths: string[] | null;
723
+ searchBehavior: "hierarchical" | "unified" | null;
724
+ passwordProtection: {
725
+ enabled: boolean;
726
+ passwordCount: number;
727
+ };
728
+ }>;
729
+ export type SiteSettingsResponse = z.infer<typeof SiteSettingsResponseSchema>;
730
+ export declare const dashboardAgentContract: {
731
+ getTrafficSummary: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
732
+ orgId: z.ZodString;
733
+ domain: z.ZodString;
734
+ dateRange: z.ZodOptional<z.ZodString>;
735
+ includeInternal: z.ZodOptional<z.ZodBoolean>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ orgId: string;
738
+ domain: string;
739
+ dateRange?: string | undefined;
740
+ includeInternal?: boolean | undefined;
741
+ }, {
742
+ orgId: string;
743
+ domain: string;
744
+ dateRange?: string | undefined;
745
+ includeInternal?: boolean | undefined;
746
+ }>, z.ZodObject<{
747
+ resolvedDateRange: z.ZodObject<{
748
+ startDate: z.ZodString;
749
+ endDate: z.ZodString;
750
+ }, "strip", z.ZodTypeAny, {
751
+ startDate: string;
752
+ endDate: string;
753
+ }, {
754
+ startDate: string;
755
+ endDate: string;
756
+ }>;
757
+ metrics: z.ZodObject<{
758
+ visitors: z.ZodNumber;
759
+ pageViews: z.ZodNumber;
760
+ sessions: z.ZodNumber;
761
+ }, "strip", z.ZodTypeAny, {
762
+ visitors: number;
763
+ sessions: number;
764
+ pageViews: number;
765
+ }, {
766
+ visitors: number;
767
+ sessions: number;
768
+ pageViews: number;
769
+ }>;
770
+ baseSiteUrl: z.ZodString;
771
+ }, "strip", z.ZodTypeAny, {
772
+ resolvedDateRange: {
773
+ startDate: string;
774
+ endDate: string;
775
+ };
776
+ metrics: {
777
+ visitors: number;
778
+ sessions: number;
779
+ pageViews: number;
780
+ };
781
+ baseSiteUrl: string;
782
+ }, {
783
+ resolvedDateRange: {
784
+ startDate: string;
785
+ endDate: string;
786
+ };
787
+ metrics: {
788
+ visitors: number;
789
+ sessions: number;
790
+ pageViews: number;
791
+ };
792
+ baseSiteUrl: string;
793
+ }>, Record<never, never>, Record<never, never>>;
794
+ getTopPages: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
795
+ orgId: z.ZodString;
796
+ domain: z.ZodString;
797
+ dateRange: z.ZodOptional<z.ZodString>;
798
+ includeInternal: z.ZodOptional<z.ZodBoolean>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ orgId: string;
801
+ domain: string;
802
+ dateRange?: string | undefined;
803
+ includeInternal?: boolean | undefined;
804
+ }, {
805
+ orgId: string;
806
+ domain: string;
807
+ dateRange?: string | undefined;
808
+ includeInternal?: boolean | undefined;
809
+ }>, z.ZodObject<{
810
+ resolvedDateRange: z.ZodObject<{
811
+ startDate: z.ZodString;
812
+ endDate: z.ZodString;
813
+ }, "strip", z.ZodTypeAny, {
814
+ startDate: string;
815
+ endDate: string;
816
+ }, {
817
+ startDate: string;
818
+ endDate: string;
819
+ }>;
820
+ topPages: z.ZodArray<z.ZodObject<{
821
+ path: z.ZodString;
822
+ visitors: z.ZodNumber;
823
+ views: z.ZodNumber;
824
+ }, "strip", z.ZodTypeAny, {
825
+ path: string;
826
+ visitors: number;
827
+ views: number;
828
+ }, {
829
+ path: string;
830
+ visitors: number;
831
+ views: number;
832
+ }>, "many">;
833
+ }, "strip", z.ZodTypeAny, {
834
+ resolvedDateRange: {
835
+ startDate: string;
836
+ endDate: string;
837
+ };
838
+ topPages: {
839
+ path: string;
840
+ visitors: number;
841
+ views: number;
842
+ }[];
843
+ }, {
844
+ resolvedDateRange: {
845
+ startDate: string;
846
+ endDate: string;
847
+ };
848
+ topPages: {
849
+ path: string;
850
+ visitors: number;
851
+ views: number;
852
+ }[];
853
+ }>, Record<never, never>, Record<never, never>>;
854
+ get404Pages: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
855
+ orgId: z.ZodString;
856
+ domain: z.ZodString;
857
+ dateRange: z.ZodOptional<z.ZodString>;
858
+ includeInternal: z.ZodOptional<z.ZodBoolean>;
859
+ }, "strip", z.ZodTypeAny, {
860
+ orgId: string;
861
+ domain: string;
862
+ dateRange?: string | undefined;
863
+ includeInternal?: boolean | undefined;
864
+ }, {
865
+ orgId: string;
866
+ domain: string;
867
+ dateRange?: string | undefined;
868
+ includeInternal?: boolean | undefined;
869
+ }>, z.ZodObject<{
870
+ resolvedDateRange: z.ZodObject<{
871
+ startDate: z.ZodString;
872
+ endDate: z.ZodString;
873
+ }, "strip", z.ZodTypeAny, {
874
+ startDate: string;
875
+ endDate: string;
876
+ }, {
877
+ startDate: string;
878
+ endDate: string;
879
+ }>;
880
+ pages404: z.ZodArray<z.ZodObject<{
881
+ path: z.ZodString;
882
+ count: z.ZodNumber;
883
+ }, "strip", z.ZodTypeAny, {
884
+ path: string;
885
+ count: number;
886
+ }, {
887
+ path: string;
888
+ count: number;
889
+ }>, "many">;
890
+ }, "strip", z.ZodTypeAny, {
891
+ resolvedDateRange: {
892
+ startDate: string;
893
+ endDate: string;
894
+ };
895
+ pages404: {
896
+ path: string;
897
+ count: number;
898
+ }[];
899
+ }, {
900
+ resolvedDateRange: {
901
+ startDate: string;
902
+ endDate: string;
903
+ };
904
+ pages404: {
905
+ path: string;
906
+ count: number;
907
+ }[];
908
+ }>, Record<never, never>, Record<never, never>>;
909
+ getReferringDomains: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
910
+ orgId: z.ZodString;
911
+ domain: z.ZodString;
912
+ dateRange: z.ZodOptional<z.ZodString>;
913
+ includeInternal: z.ZodOptional<z.ZodBoolean>;
914
+ }, "strip", z.ZodTypeAny, {
915
+ orgId: string;
916
+ domain: string;
917
+ dateRange?: string | undefined;
918
+ includeInternal?: boolean | undefined;
919
+ }, {
920
+ orgId: string;
921
+ domain: string;
922
+ dateRange?: string | undefined;
923
+ includeInternal?: boolean | undefined;
924
+ }>, z.ZodObject<{
925
+ resolvedDateRange: z.ZodObject<{
926
+ startDate: z.ZodString;
927
+ endDate: z.ZodString;
928
+ }, "strip", z.ZodTypeAny, {
929
+ startDate: string;
930
+ endDate: string;
931
+ }, {
932
+ startDate: string;
933
+ endDate: string;
934
+ }>;
935
+ referringDomains: z.ZodArray<z.ZodObject<{
936
+ domain: z.ZodString;
937
+ visitors: z.ZodNumber;
938
+ views: z.ZodNumber;
939
+ }, "strip", z.ZodTypeAny, {
940
+ domain: string;
941
+ visitors: number;
942
+ views: number;
943
+ }, {
944
+ domain: string;
945
+ visitors: number;
946
+ views: number;
947
+ }>, "many">;
948
+ }, "strip", z.ZodTypeAny, {
949
+ resolvedDateRange: {
950
+ startDate: string;
951
+ endDate: string;
952
+ };
953
+ referringDomains: {
954
+ domain: string;
955
+ visitors: number;
956
+ views: number;
957
+ }[];
958
+ }, {
959
+ resolvedDateRange: {
960
+ startDate: string;
961
+ endDate: string;
962
+ };
963
+ referringDomains: {
964
+ domain: string;
965
+ visitors: number;
966
+ views: number;
967
+ }[];
968
+ }>, Record<never, never>, Record<never, never>>;
969
+ getLlmBotTraffic: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
970
+ orgId: z.ZodString;
971
+ domain: z.ZodString;
972
+ dateRange: z.ZodOptional<z.ZodString>;
973
+ includeInternal: z.ZodOptional<z.ZodBoolean>;
974
+ }, "strip", z.ZodTypeAny, {
975
+ orgId: string;
976
+ domain: string;
977
+ dateRange?: string | undefined;
978
+ includeInternal?: boolean | undefined;
979
+ }, {
980
+ orgId: string;
981
+ domain: string;
982
+ dateRange?: string | undefined;
983
+ includeInternal?: boolean | undefined;
984
+ }>, z.ZodObject<{
985
+ resolvedDateRange: z.ZodObject<{
986
+ startDate: z.ZodString;
987
+ endDate: z.ZodString;
988
+ }, "strip", z.ZodTypeAny, {
989
+ startDate: string;
990
+ endDate: string;
991
+ }, {
992
+ startDate: string;
993
+ endDate: string;
994
+ }>;
995
+ providers: z.ZodArray<z.ZodObject<{
996
+ provider: z.ZodString;
997
+ count: z.ZodNumber;
998
+ }, "strip", z.ZodTypeAny, {
999
+ count: number;
1000
+ provider: string;
1001
+ }, {
1002
+ count: number;
1003
+ provider: string;
1004
+ }>, "many">;
1005
+ }, "strip", z.ZodTypeAny, {
1006
+ resolvedDateRange: {
1007
+ startDate: string;
1008
+ endDate: string;
1009
+ };
1010
+ providers: {
1011
+ count: number;
1012
+ provider: string;
1013
+ }[];
1014
+ }, {
1015
+ resolvedDateRange: {
1016
+ startDate: string;
1017
+ endDate: string;
1018
+ };
1019
+ providers: {
1020
+ count: number;
1021
+ provider: string;
1022
+ }[];
1023
+ }>, Record<never, never>, Record<never, never>>;
1024
+ getRecentFeedback: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1025
+ orgId: z.ZodString;
1026
+ domain: z.ZodString;
1027
+ dateRange: z.ZodOptional<z.ZodString>;
1028
+ feedbackType: z.ZodOptional<z.ZodEnum<["page", "code_block", "all"]>>;
1029
+ limit: z.ZodOptional<z.ZodNumber>;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ orgId: string;
1032
+ domain: string;
1033
+ limit?: number | undefined;
1034
+ dateRange?: string | undefined;
1035
+ feedbackType?: "page" | "code_block" | "all" | undefined;
1036
+ }, {
1037
+ orgId: string;
1038
+ domain: string;
1039
+ limit?: number | undefined;
1040
+ dateRange?: string | undefined;
1041
+ feedbackType?: "page" | "code_block" | "all" | undefined;
1042
+ }>, z.ZodObject<{
1043
+ resolvedDateRange: z.ZodObject<{
1044
+ startDate: z.ZodString;
1045
+ endDate: z.ZodString;
1046
+ }, "strip", z.ZodTypeAny, {
1047
+ startDate: string;
1048
+ endDate: string;
1049
+ }, {
1050
+ startDate: string;
1051
+ endDate: string;
1052
+ }>;
1053
+ helpfulCount: z.ZodNumber;
1054
+ unhelpfulCount: z.ZodNumber;
1055
+ entries: z.ZodArray<z.ZodObject<{
1056
+ date: z.ZodString;
1057
+ location: z.ZodString;
1058
+ wasHelpful: z.ZodBoolean;
1059
+ userFeedback: z.ZodString;
1060
+ feedbackType: z.ZodOptional<z.ZodString>;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ date: string;
1063
+ location: string;
1064
+ wasHelpful: boolean;
1065
+ userFeedback: string;
1066
+ feedbackType?: string | undefined;
1067
+ }, {
1068
+ date: string;
1069
+ location: string;
1070
+ wasHelpful: boolean;
1071
+ userFeedback: string;
1072
+ feedbackType?: string | undefined;
1073
+ }>, "many">;
1074
+ hasMore: z.ZodBoolean;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ entries: {
1077
+ date: string;
1078
+ location: string;
1079
+ wasHelpful: boolean;
1080
+ userFeedback: string;
1081
+ feedbackType?: string | undefined;
1082
+ }[];
1083
+ hasMore: boolean;
1084
+ resolvedDateRange: {
1085
+ startDate: string;
1086
+ endDate: string;
1087
+ };
1088
+ helpfulCount: number;
1089
+ unhelpfulCount: number;
1090
+ }, {
1091
+ entries: {
1092
+ date: string;
1093
+ location: string;
1094
+ wasHelpful: boolean;
1095
+ userFeedback: string;
1096
+ feedbackType?: string | undefined;
1097
+ }[];
1098
+ hasMore: boolean;
1099
+ resolvedDateRange: {
1100
+ startDate: string;
1101
+ endDate: string;
1102
+ };
1103
+ helpfulCount: number;
1104
+ unhelpfulCount: number;
1105
+ }>, Record<never, never>, Record<never, never>>;
1106
+ queryAnalytics: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1107
+ orgId: z.ZodString;
1108
+ domain: z.ZodString;
1109
+ metric: z.ZodEnum<["pageviews", "visitors", "sessions", "404s"]>;
1110
+ dimensions: z.ZodOptional<z.ZodArray<z.ZodEnum<["path", "referrer"]>, "many">>;
1111
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1112
+ field: z.ZodEnum<["path", "referrer"]>;
1113
+ op: z.ZodEnum<["eq", "prefix", "contains"]>;
1114
+ value: z.ZodString;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ value: string;
1117
+ field: "path" | "referrer";
1118
+ op: "prefix" | "eq" | "contains";
1119
+ }, {
1120
+ value: string;
1121
+ field: "path" | "referrer";
1122
+ op: "prefix" | "eq" | "contains";
1123
+ }>, "many">>;
1124
+ dateRange: z.ZodUnion<[z.ZodString, z.ZodObject<{
1125
+ startDate: z.ZodString;
1126
+ endDate: z.ZodString;
1127
+ }, "strip", z.ZodTypeAny, {
1128
+ startDate: string;
1129
+ endDate: string;
1130
+ }, {
1131
+ startDate: string;
1132
+ endDate: string;
1133
+ }>]>;
1134
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month"]>>;
1135
+ orderBy: z.ZodOptional<z.ZodObject<{
1136
+ field: z.ZodEnum<["count", "visitors"]>;
1137
+ dir: z.ZodEnum<["asc", "desc"]>;
1138
+ }, "strip", z.ZodTypeAny, {
1139
+ field: "visitors" | "count";
1140
+ dir: "asc" | "desc";
1141
+ }, {
1142
+ field: "visitors" | "count";
1143
+ dir: "asc" | "desc";
1144
+ }>>;
1145
+ limit: z.ZodOptional<z.ZodNumber>;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ orgId: string;
1148
+ domain: string;
1149
+ dateRange: string | {
1150
+ startDate: string;
1151
+ endDate: string;
1152
+ };
1153
+ metric: "pageviews" | "visitors" | "sessions" | "404s";
1154
+ limit?: number | undefined;
1155
+ dimensions?: ("path" | "referrer")[] | undefined;
1156
+ filters?: {
1157
+ value: string;
1158
+ field: "path" | "referrer";
1159
+ op: "prefix" | "eq" | "contains";
1160
+ }[] | undefined;
1161
+ granularity?: "day" | "week" | "month" | undefined;
1162
+ orderBy?: {
1163
+ field: "visitors" | "count";
1164
+ dir: "asc" | "desc";
1165
+ } | undefined;
1166
+ }, {
1167
+ orgId: string;
1168
+ domain: string;
1169
+ dateRange: string | {
1170
+ startDate: string;
1171
+ endDate: string;
1172
+ };
1173
+ metric: "pageviews" | "visitors" | "sessions" | "404s";
1174
+ limit?: number | undefined;
1175
+ dimensions?: ("path" | "referrer")[] | undefined;
1176
+ filters?: {
1177
+ value: string;
1178
+ field: "path" | "referrer";
1179
+ op: "prefix" | "eq" | "contains";
1180
+ }[] | undefined;
1181
+ granularity?: "day" | "week" | "month" | undefined;
1182
+ orderBy?: {
1183
+ field: "visitors" | "count";
1184
+ dir: "asc" | "desc";
1185
+ } | undefined;
1186
+ }>, z.ZodObject<{
1187
+ resolvedDateRange: z.ZodObject<{
1188
+ startDate: z.ZodString;
1189
+ endDate: z.ZodString;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ startDate: string;
1192
+ endDate: string;
1193
+ }, {
1194
+ startDate: string;
1195
+ endDate: string;
1196
+ }>;
1197
+ metric: z.ZodEnum<["pageviews", "visitors", "sessions", "404s"]>;
1198
+ dimensions: z.ZodArray<z.ZodEnum<["path", "referrer"]>, "many">;
1199
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month"]>>;
1200
+ rows: z.ZodArray<z.ZodObject<{
1201
+ dimensions: z.ZodRecord<z.ZodString, z.ZodString>;
1202
+ bucket: z.ZodOptional<z.ZodString>;
1203
+ count: z.ZodNumber;
1204
+ visitors: z.ZodOptional<z.ZodNumber>;
1205
+ sessions: z.ZodOptional<z.ZodNumber>;
1206
+ }, "strip", z.ZodTypeAny, {
1207
+ count: number;
1208
+ dimensions: Record<string, string>;
1209
+ visitors?: number | undefined;
1210
+ sessions?: number | undefined;
1211
+ bucket?: string | undefined;
1212
+ }, {
1213
+ count: number;
1214
+ dimensions: Record<string, string>;
1215
+ visitors?: number | undefined;
1216
+ sessions?: number | undefined;
1217
+ bucket?: string | undefined;
1218
+ }>, "many">;
1219
+ }, "strip", z.ZodTypeAny, {
1220
+ metric: "pageviews" | "visitors" | "sessions" | "404s";
1221
+ dimensions: ("path" | "referrer")[];
1222
+ resolvedDateRange: {
1223
+ startDate: string;
1224
+ endDate: string;
1225
+ };
1226
+ rows: {
1227
+ count: number;
1228
+ dimensions: Record<string, string>;
1229
+ visitors?: number | undefined;
1230
+ sessions?: number | undefined;
1231
+ bucket?: string | undefined;
1232
+ }[];
1233
+ granularity?: "day" | "week" | "month" | undefined;
1234
+ }, {
1235
+ metric: "pageviews" | "visitors" | "sessions" | "404s";
1236
+ dimensions: ("path" | "referrer")[];
1237
+ resolvedDateRange: {
1238
+ startDate: string;
1239
+ endDate: string;
1240
+ };
1241
+ rows: {
1242
+ count: number;
1243
+ dimensions: Record<string, string>;
1244
+ visitors?: number | undefined;
1245
+ sessions?: number | undefined;
1246
+ bucket?: string | undefined;
1247
+ }[];
1248
+ granularity?: "day" | "week" | "month" | undefined;
1249
+ }>, Record<never, never>, Record<never, never>>;
1250
+ listOrgDocDomains: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1251
+ orgId: z.ZodString;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ orgId: string;
1254
+ }, {
1255
+ orgId: string;
1256
+ }>, z.ZodObject<{
1257
+ domains: z.ZodArray<z.ZodString, "many">;
1258
+ }, "strip", z.ZodTypeAny, {
1259
+ domains: string[];
1260
+ }, {
1261
+ domains: string[];
1262
+ }>, Record<never, never>, Record<never, never>>;
1263
+ listOrgMembers: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1264
+ orgId: z.ZodString;
1265
+ includeFernEmployees: z.ZodOptional<z.ZodBoolean>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ orgId: string;
1268
+ includeFernEmployees?: boolean | undefined;
1269
+ }, {
1270
+ orgId: string;
1271
+ includeFernEmployees?: boolean | undefined;
1272
+ }>, z.ZodObject<{
1273
+ members: z.ZodArray<z.ZodObject<{
1274
+ name: z.ZodString;
1275
+ email: z.ZodString;
1276
+ roles: z.ZodArray<z.ZodString, "many">;
1277
+ }, "strip", z.ZodTypeAny, {
1278
+ name: string;
1279
+ email: string;
1280
+ roles: string[];
1281
+ }, {
1282
+ name: string;
1283
+ email: string;
1284
+ roles: string[];
1285
+ }>, "many">;
1286
+ count: z.ZodNumber;
1287
+ }, "strip", z.ZodTypeAny, {
1288
+ count: number;
1289
+ members: {
1290
+ name: string;
1291
+ email: string;
1292
+ roles: string[];
1293
+ }[];
1294
+ }, {
1295
+ count: number;
1296
+ members: {
1297
+ name: string;
1298
+ email: string;
1299
+ roles: string[];
1300
+ }[];
1301
+ }>, Record<never, never>, Record<never, never>>;
1302
+ getSiteConfig: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1303
+ orgId: z.ZodString;
1304
+ domain: z.ZodString;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ orgId: string;
1307
+ domain: string;
1308
+ }, {
1309
+ orgId: string;
1310
+ domain: string;
1311
+ }>, z.ZodObject<{
1312
+ domain: z.ZodString;
1313
+ basepath: z.ZodNullable<z.ZodString>;
1314
+ status: z.ZodNullable<z.ZodString>;
1315
+ isPreview: z.ZodBoolean;
1316
+ /** The git repository connected to this docs site, when one exists. */
1317
+ gitRepository: z.ZodNullable<z.ZodObject<{
1318
+ gitUrl: z.ZodString;
1319
+ provider: z.ZodEnum<["github", "gitlab", "other"]>;
1320
+ /** `owner/repo` when the git url points at GitHub, else null. */
1321
+ githubRepository: z.ZodNullable<z.ZodString>;
1322
+ branch: z.ZodNullable<z.ZodString>;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ gitUrl: string;
1325
+ provider: "github" | "gitlab" | "other";
1326
+ githubRepository: string | null;
1327
+ branch: string | null;
1328
+ }, {
1329
+ gitUrl: string;
1330
+ provider: "github" | "gitlab" | "other";
1331
+ githubRepository: string | null;
1332
+ branch: string | null;
1333
+ }>>;
1334
+ /** True when the queried domain is a customer-owned custom domain (not *.docs.buildwithfern.com). */
1335
+ isCustomDomain: z.ZodBoolean;
1336
+ /** Fern CLI version that published the current deployment, when known. */
1337
+ fernCliVersion: z.ZodNullable<z.ZodString>;
1338
+ /** Connected Postman collection id, when one exists. */
1339
+ postmanCollectionId: z.ZodNullable<z.ZodString>;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ status: string | null;
1342
+ domain: string;
1343
+ basepath: string | null;
1344
+ postmanCollectionId: string | null;
1345
+ isPreview: boolean;
1346
+ gitRepository: {
1347
+ gitUrl: string;
1348
+ provider: "github" | "gitlab" | "other";
1349
+ githubRepository: string | null;
1350
+ branch: string | null;
1351
+ } | null;
1352
+ isCustomDomain: boolean;
1353
+ fernCliVersion: string | null;
1354
+ }, {
1355
+ status: string | null;
1356
+ domain: string;
1357
+ basepath: string | null;
1358
+ postmanCollectionId: string | null;
1359
+ isPreview: boolean;
1360
+ gitRepository: {
1361
+ gitUrl: string;
1362
+ provider: "github" | "gitlab" | "other";
1363
+ githubRepository: string | null;
1364
+ branch: string | null;
1365
+ } | null;
1366
+ isCustomDomain: boolean;
1367
+ fernCliVersion: string | null;
1368
+ }>, Record<never, never>, Record<never, never>>;
1369
+ getSiteSettings: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1370
+ orgId: z.ZodString;
1371
+ domain: z.ZodString;
1372
+ }, "strip", z.ZodTypeAny, {
1373
+ orgId: string;
1374
+ domain: string;
1375
+ }, {
1376
+ orgId: string;
1377
+ domain: string;
1378
+ }>, z.ZodObject<{
1379
+ domain: z.ZodString;
1380
+ basepath: z.ZodNullable<z.ZodString>;
1381
+ /** Default basepath route for multi-basepath domains, when configured. */
1382
+ defaultBasepath: z.ZodNullable<z.ZodString>;
1383
+ /** Basepaths routed on this domain, when configured. */
1384
+ basepaths: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1385
+ searchBehavior: z.ZodNullable<z.ZodEnum<["hierarchical", "unified"]>>;
1386
+ passwordProtection: z.ZodObject<{
1387
+ enabled: z.ZodBoolean;
1388
+ /** Number of configured passwords. Passwords themselves are never returned. */
1389
+ passwordCount: z.ZodNumber;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ enabled: boolean;
1392
+ passwordCount: number;
1393
+ }, {
1394
+ enabled: boolean;
1395
+ passwordCount: number;
1396
+ }>;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ domain: string;
1399
+ basepath: string | null;
1400
+ defaultBasepath: string | null;
1401
+ basepaths: string[] | null;
1402
+ searchBehavior: "hierarchical" | "unified" | null;
1403
+ passwordProtection: {
1404
+ enabled: boolean;
1405
+ passwordCount: number;
1406
+ };
1407
+ }, {
1408
+ domain: string;
1409
+ basepath: string | null;
1410
+ defaultBasepath: string | null;
1411
+ basepaths: string[] | null;
1412
+ searchBehavior: "hierarchical" | "unified" | null;
1413
+ passwordProtection: {
1414
+ enabled: boolean;
1415
+ passwordCount: number;
1416
+ };
1417
+ }>, Record<never, never>, Record<never, never>>;
1418
+ };
1419
+ //# sourceMappingURL=contract.d.ts.map