@sixb/server 0.1.20 → 0.1.22

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 (179) hide show
  1. package/dist/artifacts/frame.d.ts +18 -0
  2. package/dist/artifacts/frame.d.ts.map +1 -0
  3. package/dist/auth/browser-origin.d.ts +10 -1
  4. package/dist/auth/browser-origin.d.ts.map +1 -1
  5. package/dist/auth/experience.d.ts +1 -0
  6. package/dist/auth/experience.d.ts.map +1 -1
  7. package/dist/auth/public-routes.d.ts.map +1 -1
  8. package/dist/auth/responses.d.ts +1 -1
  9. package/dist/auth/responses.d.ts.map +1 -1
  10. package/dist/auth/scope.d.ts +19 -3
  11. package/dist/auth/scope.d.ts.map +1 -1
  12. package/dist/files/content.d.ts +2 -3
  13. package/dist/files/content.d.ts.map +1 -1
  14. package/dist/index.js +10636 -7071
  15. package/dist/index.js.map +56 -38
  16. package/dist/models/display.d.ts +27 -0
  17. package/dist/models/display.d.ts.map +1 -1
  18. package/dist/openapi/components.d.ts +14 -0
  19. package/dist/openapi/components.d.ts.map +1 -0
  20. package/dist/openapi/tags.d.ts +22 -2
  21. package/dist/openapi/tags.d.ts.map +1 -1
  22. package/dist/registerRoutes.d.ts +3 -0
  23. package/dist/registerRoutes.d.ts.map +1 -1
  24. package/dist/routes/actions.d.ts +5 -5
  25. package/dist/routes/activity.d.ts +35 -0
  26. package/dist/routes/activity.d.ts.map +1 -0
  27. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  28. package/dist/routes/agent-approval-gate.d.ts +27 -0
  29. package/dist/routes/agent-approval-gate.d.ts.map +1 -0
  30. package/dist/routes/agent-approvals.d.ts +599 -0
  31. package/dist/routes/agent-approvals.d.ts.map +1 -0
  32. package/dist/routes/agent-children.d.ts +318 -0
  33. package/dist/routes/agent-children.d.ts.map +1 -0
  34. package/dist/routes/agent-memory.d.ts +267 -0
  35. package/dist/routes/agent-memory.d.ts.map +1 -0
  36. package/dist/routes/agents.d.ts +1008 -98
  37. package/dist/routes/agents.d.ts.map +1 -1
  38. package/dist/routes/ai-accounting.d.ts.map +1 -1
  39. package/dist/routes/artifact-frames.d.ts +98 -0
  40. package/dist/routes/artifact-frames.d.ts.map +1 -0
  41. package/dist/routes/artifacts.d.ts +1508 -0
  42. package/dist/routes/artifacts.d.ts.map +1 -0
  43. package/dist/routes/auth.d.ts +117 -11
  44. package/dist/routes/auth.d.ts.map +1 -1
  45. package/dist/routes/connector-connection-runs.d.ts +84 -84
  46. package/dist/routes/connector-connections.d.ts +2 -2
  47. package/dist/routes/connectors.d.ts +2 -2
  48. package/dist/routes/datasets.d.ts +27 -27
  49. package/dist/routes/events.d.ts +5 -5
  50. package/dist/routes/files.d.ts +14 -14
  51. package/dist/routes/files.d.ts.map +1 -1
  52. package/dist/routes/links.d.ts +2 -2
  53. package/dist/routes/logs.d.ts +5 -5
  54. package/dist/routes/model-calls.d.ts +155 -0
  55. package/dist/routes/model-calls.d.ts.map +1 -0
  56. package/dist/routes/model-generations.d.ts +400 -0
  57. package/dist/routes/model-generations.d.ts.map +1 -0
  58. package/dist/routes/models.d.ts +434 -1
  59. package/dist/routes/models.d.ts.map +1 -1
  60. package/dist/routes/objects.d.ts +71 -40
  61. package/dist/routes/objects.d.ts.map +1 -1
  62. package/dist/routes/observed-agent-threads.d.ts +682 -0
  63. package/dist/routes/observed-agent-threads.d.ts.map +1 -0
  64. package/dist/routes/ontology.d.ts +66 -62
  65. package/dist/routes/ontology.d.ts.map +1 -1
  66. package/dist/routes/pipelines.d.ts +53 -53
  67. package/dist/routes/projections.d.ts +63 -63
  68. package/dist/routes/rules.d.ts +2 -2
  69. package/dist/routes/share-grants.d.ts +4 -4
  70. package/dist/routes/syncs.d.ts +18 -18
  71. package/dist/routes/users.d.ts +117 -0
  72. package/dist/routes/users.d.ts.map +1 -0
  73. package/dist/routes/webhook-runs.d.ts +1 -1
  74. package/dist/routes/workflows.d.ts +142 -76
  75. package/dist/routes/workflows.d.ts.map +1 -1
  76. package/dist/routes/ws/agents.d.ts +7 -2
  77. package/dist/routes/ws/agents.d.ts.map +1 -1
  78. package/dist/routes/ws/events.d.ts +6 -6
  79. package/dist/routes/ws/events.d.ts.map +1 -1
  80. package/dist/routes/ws/logs.d.ts +14 -14
  81. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  82. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  83. package/dist/schemas/actions.d.ts +15 -15
  84. package/dist/schemas/activity.d.ts +1298 -0
  85. package/dist/schemas/activity.d.ts.map +1 -0
  86. package/dist/schemas/agent-approvals.d.ts +1091 -0
  87. package/dist/schemas/agent-approvals.d.ts.map +1 -0
  88. package/dist/schemas/agent-memory.d.ts +250 -0
  89. package/dist/schemas/agent-memory.d.ts.map +1 -0
  90. package/dist/schemas/agents.d.ts +5485 -460
  91. package/dist/schemas/agents.d.ts.map +1 -1
  92. package/dist/schemas/ai-accounting.d.ts +1315 -436
  93. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  94. package/dist/schemas/ai-limits.d.ts +36 -36
  95. package/dist/schemas/ai-usage.d.ts +12 -0
  96. package/dist/schemas/ai-usage.d.ts.map +1 -1
  97. package/dist/schemas/artifacts.d.ts +1857 -0
  98. package/dist/schemas/artifacts.d.ts.map +1 -0
  99. package/dist/schemas/auth.d.ts +125 -52
  100. package/dist/schemas/auth.d.ts.map +1 -1
  101. package/dist/schemas/connectors.d.ts +42 -42
  102. package/dist/schemas/datasets.d.ts +108 -108
  103. package/dist/schemas/event-payloads.d.ts +6 -6
  104. package/dist/schemas/events.d.ts +32 -32
  105. package/dist/schemas/events.d.ts.map +1 -1
  106. package/dist/schemas/files.d.ts +24 -24
  107. package/dist/schemas/links.d.ts +2 -2
  108. package/dist/schemas/logs.d.ts +32 -32
  109. package/dist/schemas/models.d.ts +8889 -10
  110. package/dist/schemas/models.d.ts.map +1 -1
  111. package/dist/schemas/objects.d.ts +48 -12
  112. package/dist/schemas/objects.d.ts.map +1 -1
  113. package/dist/schemas/ontology.d.ts +127 -104
  114. package/dist/schemas/ontology.d.ts.map +1 -1
  115. package/dist/schemas/pipelines.d.ts +166 -166
  116. package/dist/schemas/projections.d.ts +346 -346
  117. package/dist/schemas/rules.d.ts +4 -4
  118. package/dist/schemas/share-grants.d.ts +14 -14
  119. package/dist/schemas/syncs.d.ts +40 -40
  120. package/dist/schemas/users.d.ts +72 -0
  121. package/dist/schemas/users.d.ts.map +1 -0
  122. package/dist/schemas/webhook-runs.d.ts +6 -6
  123. package/dist/schemas/workflows.d.ts +769 -254
  124. package/dist/schemas/workflows.d.ts.map +1 -1
  125. package/dist/server.d.ts +1 -0
  126. package/dist/server.d.ts.map +1 -1
  127. package/dist/utils/http.d.ts.map +1 -1
  128. package/package.json +7 -7
  129. package/src/artifacts/frame.ts +51 -0
  130. package/src/auth/browser-origin.ts +20 -5
  131. package/src/auth/experience.ts +1 -1
  132. package/src/auth/guard.ts +2 -2
  133. package/src/auth/public-routes.ts +16 -0
  134. package/src/auth/responses.ts +7 -6
  135. package/src/auth/scope.ts +32 -3
  136. package/src/files/content.ts +9 -13
  137. package/src/models/display.ts +61 -16
  138. package/src/openapi/components.ts +54 -0
  139. package/src/openapi/tags.ts +20 -0
  140. package/src/registerRoutes.ts +23 -0
  141. package/src/routes/activity.ts +327 -0
  142. package/src/routes/agent-api-gateway.ts +115 -91
  143. package/src/routes/agent-approval-gate.ts +213 -0
  144. package/src/routes/agent-approvals.ts +299 -0
  145. package/src/routes/agent-children.ts +209 -0
  146. package/src/routes/agent-memory.ts +210 -0
  147. package/src/routes/agents.ts +364 -143
  148. package/src/routes/ai-accounting.ts +4 -0
  149. package/src/routes/artifact-frames.ts +144 -0
  150. package/src/routes/artifacts.ts +717 -0
  151. package/src/routes/auth.ts +306 -13
  152. package/src/routes/file-downloads.ts +1 -3
  153. package/src/routes/files.ts +6 -7
  154. package/src/routes/model-calls.ts +120 -0
  155. package/src/routes/model-generations.ts +245 -0
  156. package/src/routes/models.ts +116 -9
  157. package/src/routes/objects.ts +55 -61
  158. package/src/routes/observed-agent-threads.ts +253 -0
  159. package/src/routes/ontology.ts +1 -0
  160. package/src/routes/users.ts +73 -0
  161. package/src/routes/workflows.ts +6 -9
  162. package/src/routes/ws/agents.ts +10 -5
  163. package/src/routes/ws/events.ts +3 -2
  164. package/src/routes/ws/subscription-hub.ts +53 -20
  165. package/src/schemas/activity.ts +287 -0
  166. package/src/schemas/agent-approvals.ts +129 -0
  167. package/src/schemas/agent-memory.ts +96 -0
  168. package/src/schemas/agents.ts +240 -2
  169. package/src/schemas/ai-accounting.ts +40 -4
  170. package/src/schemas/ai-usage.ts +10 -0
  171. package/src/schemas/artifacts.ts +246 -0
  172. package/src/schemas/auth.ts +25 -0
  173. package/src/schemas/models.ts +197 -1
  174. package/src/schemas/objects.ts +181 -0
  175. package/src/schemas/ontology.ts +1 -0
  176. package/src/schemas/users.ts +24 -0
  177. package/src/schemas/workflows.ts +2 -0
  178. package/src/server.ts +34 -19
  179. package/src/utils/http.ts +2 -0
@@ -0,0 +1,1298 @@
1
+ import { z } from "zod";
2
+ export declare const ActivityEventInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ id: z.ZodString;
4
+ type: z.ZodEnum<["page.view", "visit.activity"]>;
5
+ route: z.ZodEffects<z.ZodString, string, string>;
6
+ attribution: z.ZodOptional<z.ZodObject<{
7
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
8
+ medium: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
9
+ campaign: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
10
+ referrer: z.ZodOptional<z.ZodString>;
11
+ }, "strict", z.ZodTypeAny, {
12
+ source?: string | undefined;
13
+ medium?: string | undefined;
14
+ campaign?: string | undefined;
15
+ referrer?: string | undefined;
16
+ }, {
17
+ source?: string | undefined;
18
+ medium?: string | undefined;
19
+ campaign?: string | undefined;
20
+ referrer?: string | undefined;
21
+ }>>;
22
+ }, "strict", z.ZodTypeAny, {
23
+ id: string;
24
+ type: "page.view" | "visit.activity";
25
+ route: string;
26
+ attribution?: {
27
+ source?: string | undefined;
28
+ medium?: string | undefined;
29
+ campaign?: string | undefined;
30
+ referrer?: string | undefined;
31
+ } | undefined;
32
+ }, {
33
+ id: string;
34
+ type: "page.view" | "visit.activity";
35
+ route: string;
36
+ attribution?: {
37
+ source?: string | undefined;
38
+ medium?: string | undefined;
39
+ campaign?: string | undefined;
40
+ referrer?: string | undefined;
41
+ } | undefined;
42
+ }>, z.ZodObject<{
43
+ id: z.ZodString;
44
+ type: z.ZodLiteral<"ui.interaction">;
45
+ name: z.ZodString;
46
+ route: z.ZodEffects<z.ZodString, string, string>;
47
+ }, "strict", z.ZodTypeAny, {
48
+ id: string;
49
+ type: "ui.interaction";
50
+ name: string;
51
+ route: string;
52
+ }, {
53
+ id: string;
54
+ type: "ui.interaction";
55
+ name: string;
56
+ route: string;
57
+ }>]>;
58
+ export declare const CaptureActivityBodySchema: z.ZodEffects<z.ZodObject<{
59
+ events: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
60
+ id: z.ZodString;
61
+ type: z.ZodEnum<["page.view", "visit.activity"]>;
62
+ route: z.ZodEffects<z.ZodString, string, string>;
63
+ attribution: z.ZodOptional<z.ZodObject<{
64
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
65
+ medium: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
66
+ campaign: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
67
+ referrer: z.ZodOptional<z.ZodString>;
68
+ }, "strict", z.ZodTypeAny, {
69
+ source?: string | undefined;
70
+ medium?: string | undefined;
71
+ campaign?: string | undefined;
72
+ referrer?: string | undefined;
73
+ }, {
74
+ source?: string | undefined;
75
+ medium?: string | undefined;
76
+ campaign?: string | undefined;
77
+ referrer?: string | undefined;
78
+ }>>;
79
+ }, "strict", z.ZodTypeAny, {
80
+ id: string;
81
+ type: "page.view" | "visit.activity";
82
+ route: string;
83
+ attribution?: {
84
+ source?: string | undefined;
85
+ medium?: string | undefined;
86
+ campaign?: string | undefined;
87
+ referrer?: string | undefined;
88
+ } | undefined;
89
+ }, {
90
+ id: string;
91
+ type: "page.view" | "visit.activity";
92
+ route: string;
93
+ attribution?: {
94
+ source?: string | undefined;
95
+ medium?: string | undefined;
96
+ campaign?: string | undefined;
97
+ referrer?: string | undefined;
98
+ } | undefined;
99
+ }>, z.ZodObject<{
100
+ id: z.ZodString;
101
+ type: z.ZodLiteral<"ui.interaction">;
102
+ name: z.ZodString;
103
+ route: z.ZodEffects<z.ZodString, string, string>;
104
+ }, "strict", z.ZodTypeAny, {
105
+ id: string;
106
+ type: "ui.interaction";
107
+ name: string;
108
+ route: string;
109
+ }, {
110
+ id: string;
111
+ type: "ui.interaction";
112
+ name: string;
113
+ route: string;
114
+ }>]>, "many">;
115
+ }, "strict", z.ZodTypeAny, {
116
+ events: ({
117
+ id: string;
118
+ type: "page.view" | "visit.activity";
119
+ route: string;
120
+ attribution?: {
121
+ source?: string | undefined;
122
+ medium?: string | undefined;
123
+ campaign?: string | undefined;
124
+ referrer?: string | undefined;
125
+ } | undefined;
126
+ } | {
127
+ id: string;
128
+ type: "ui.interaction";
129
+ name: string;
130
+ route: string;
131
+ })[];
132
+ }, {
133
+ events: ({
134
+ id: string;
135
+ type: "page.view" | "visit.activity";
136
+ route: string;
137
+ attribution?: {
138
+ source?: string | undefined;
139
+ medium?: string | undefined;
140
+ campaign?: string | undefined;
141
+ referrer?: string | undefined;
142
+ } | undefined;
143
+ } | {
144
+ id: string;
145
+ type: "ui.interaction";
146
+ name: string;
147
+ route: string;
148
+ })[];
149
+ }>, {
150
+ events: ({
151
+ id: string;
152
+ type: "page.view" | "visit.activity";
153
+ route: string;
154
+ attribution?: {
155
+ source?: string | undefined;
156
+ medium?: string | undefined;
157
+ campaign?: string | undefined;
158
+ referrer?: string | undefined;
159
+ } | undefined;
160
+ } | {
161
+ id: string;
162
+ type: "ui.interaction";
163
+ name: string;
164
+ route: string;
165
+ })[];
166
+ }, {
167
+ events: ({
168
+ id: string;
169
+ type: "page.view" | "visit.activity";
170
+ route: string;
171
+ attribution?: {
172
+ source?: string | undefined;
173
+ medium?: string | undefined;
174
+ campaign?: string | undefined;
175
+ referrer?: string | undefined;
176
+ } | undefined;
177
+ } | {
178
+ id: string;
179
+ type: "ui.interaction";
180
+ name: string;
181
+ route: string;
182
+ })[];
183
+ }>;
184
+ export declare const ActivityCaptureOptionsSchema: z.ZodObject<{
185
+ enabled: z.ZodBoolean;
186
+ idleTimeoutMs: z.ZodNumber;
187
+ }, "strip", z.ZodTypeAny, {
188
+ enabled: boolean;
189
+ idleTimeoutMs: number;
190
+ }, {
191
+ enabled: boolean;
192
+ idleTimeoutMs: number;
193
+ }>;
194
+ export declare const ActivityCaptureResultSchema: z.ZodObject<{
195
+ status: z.ZodEnum<["accepted", "disabled", "throttled"]>;
196
+ accepted: z.ZodNumber;
197
+ }, "strip", z.ZodTypeAny, {
198
+ status: "accepted" | "disabled" | "throttled";
199
+ accepted: number;
200
+ }, {
201
+ status: "accepted" | "disabled" | "throttled";
202
+ accepted: number;
203
+ }>;
204
+ export declare const ActivityVisitsPageSchema: z.ZodObject<{
205
+ visits: z.ZodArray<z.ZodObject<{
206
+ id: z.ZodString;
207
+ actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
208
+ type: z.ZodLiteral<"user">;
209
+ userId: z.ZodString;
210
+ }, "strip", z.ZodTypeAny, {
211
+ type: "user";
212
+ userId: string;
213
+ }, {
214
+ type: "user";
215
+ userId: string;
216
+ }>, z.ZodObject<{
217
+ type: z.ZodLiteral<"share">;
218
+ grantId: z.ZodString;
219
+ definitionId: z.ZodOptional<z.ZodString>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ grantId: string;
222
+ type: "share";
223
+ definitionId?: string | undefined;
224
+ }, {
225
+ grantId: string;
226
+ type: "share";
227
+ definitionId?: string | undefined;
228
+ }>]>;
229
+ attribution: z.ZodNullable<z.ZodObject<{
230
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
231
+ medium: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
232
+ campaign: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
233
+ referrer: z.ZodOptional<z.ZodString>;
234
+ }, "strict", z.ZodTypeAny, {
235
+ source?: string | undefined;
236
+ medium?: string | undefined;
237
+ campaign?: string | undefined;
238
+ referrer?: string | undefined;
239
+ }, {
240
+ source?: string | undefined;
241
+ medium?: string | undefined;
242
+ campaign?: string | undefined;
243
+ referrer?: string | undefined;
244
+ }>>;
245
+ startedAt: z.ZodString;
246
+ lastSeenAt: z.ZodString;
247
+ pageViews: z.ZodNumber;
248
+ interactions: z.ZodNumber;
249
+ }, "strip", z.ZodTypeAny, {
250
+ id: string;
251
+ startedAt: string;
252
+ attribution: {
253
+ source?: string | undefined;
254
+ medium?: string | undefined;
255
+ campaign?: string | undefined;
256
+ referrer?: string | undefined;
257
+ } | null;
258
+ actor: {
259
+ type: "user";
260
+ userId: string;
261
+ } | {
262
+ grantId: string;
263
+ type: "share";
264
+ definitionId?: string | undefined;
265
+ };
266
+ lastSeenAt: string;
267
+ pageViews: number;
268
+ interactions: number;
269
+ }, {
270
+ id: string;
271
+ startedAt: string;
272
+ attribution: {
273
+ source?: string | undefined;
274
+ medium?: string | undefined;
275
+ campaign?: string | undefined;
276
+ referrer?: string | undefined;
277
+ } | null;
278
+ actor: {
279
+ type: "user";
280
+ userId: string;
281
+ } | {
282
+ grantId: string;
283
+ type: "share";
284
+ definitionId?: string | undefined;
285
+ };
286
+ lastSeenAt: string;
287
+ pageViews: number;
288
+ interactions: number;
289
+ }>, "many">;
290
+ hasMore: z.ZodBoolean;
291
+ }, "strip", z.ZodTypeAny, {
292
+ hasMore: boolean;
293
+ visits: {
294
+ id: string;
295
+ startedAt: string;
296
+ attribution: {
297
+ source?: string | undefined;
298
+ medium?: string | undefined;
299
+ campaign?: string | undefined;
300
+ referrer?: string | undefined;
301
+ } | null;
302
+ actor: {
303
+ type: "user";
304
+ userId: string;
305
+ } | {
306
+ grantId: string;
307
+ type: "share";
308
+ definitionId?: string | undefined;
309
+ };
310
+ lastSeenAt: string;
311
+ pageViews: number;
312
+ interactions: number;
313
+ }[];
314
+ }, {
315
+ hasMore: boolean;
316
+ visits: {
317
+ id: string;
318
+ startedAt: string;
319
+ attribution: {
320
+ source?: string | undefined;
321
+ medium?: string | undefined;
322
+ campaign?: string | undefined;
323
+ referrer?: string | undefined;
324
+ } | null;
325
+ actor: {
326
+ type: "user";
327
+ userId: string;
328
+ } | {
329
+ grantId: string;
330
+ type: "share";
331
+ definitionId?: string | undefined;
332
+ };
333
+ lastSeenAt: string;
334
+ pageViews: number;
335
+ interactions: number;
336
+ }[];
337
+ }>;
338
+ export declare const ActivityUsersPageSchema: z.ZodObject<{
339
+ users: z.ZodArray<z.ZodObject<{
340
+ userId: z.ZodString;
341
+ displayName: z.ZodOptional<z.ZodString>;
342
+ lastSeenAt: z.ZodString;
343
+ visits: z.ZodNumber;
344
+ pageViews: z.ZodNumber;
345
+ }, "strip", z.ZodTypeAny, {
346
+ userId: string;
347
+ lastSeenAt: string;
348
+ pageViews: number;
349
+ visits: number;
350
+ displayName?: string | undefined;
351
+ }, {
352
+ userId: string;
353
+ lastSeenAt: string;
354
+ pageViews: number;
355
+ visits: number;
356
+ displayName?: string | undefined;
357
+ }>, "many">;
358
+ hasMore: z.ZodBoolean;
359
+ }, "strip", z.ZodTypeAny, {
360
+ users: {
361
+ userId: string;
362
+ lastSeenAt: string;
363
+ pageViews: number;
364
+ visits: number;
365
+ displayName?: string | undefined;
366
+ }[];
367
+ hasMore: boolean;
368
+ }, {
369
+ users: {
370
+ userId: string;
371
+ lastSeenAt: string;
372
+ pageViews: number;
373
+ visits: number;
374
+ displayName?: string | undefined;
375
+ }[];
376
+ hasMore: boolean;
377
+ }>;
378
+ export declare const ActivitySummarySchema: z.ZodObject<{
379
+ users: z.ZodNumber;
380
+ visits: z.ZodNumber;
381
+ sharedVisits: z.ZodNumber;
382
+ pageViews: z.ZodNumber;
383
+ }, "strip", z.ZodTypeAny, {
384
+ users: number;
385
+ pageViews: number;
386
+ visits: number;
387
+ sharedVisits: number;
388
+ }, {
389
+ users: number;
390
+ pageViews: number;
391
+ visits: number;
392
+ sharedVisits: number;
393
+ }>;
394
+ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
395
+ visit: z.ZodObject<{
396
+ id: z.ZodString;
397
+ actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
398
+ type: z.ZodLiteral<"user">;
399
+ userId: z.ZodString;
400
+ }, "strip", z.ZodTypeAny, {
401
+ type: "user";
402
+ userId: string;
403
+ }, {
404
+ type: "user";
405
+ userId: string;
406
+ }>, z.ZodObject<{
407
+ type: z.ZodLiteral<"share">;
408
+ grantId: z.ZodString;
409
+ definitionId: z.ZodOptional<z.ZodString>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ grantId: string;
412
+ type: "share";
413
+ definitionId?: string | undefined;
414
+ }, {
415
+ grantId: string;
416
+ type: "share";
417
+ definitionId?: string | undefined;
418
+ }>]>;
419
+ attribution: z.ZodNullable<z.ZodObject<{
420
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
421
+ medium: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
422
+ campaign: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
423
+ referrer: z.ZodOptional<z.ZodString>;
424
+ }, "strict", z.ZodTypeAny, {
425
+ source?: string | undefined;
426
+ medium?: string | undefined;
427
+ campaign?: string | undefined;
428
+ referrer?: string | undefined;
429
+ }, {
430
+ source?: string | undefined;
431
+ medium?: string | undefined;
432
+ campaign?: string | undefined;
433
+ referrer?: string | undefined;
434
+ }>>;
435
+ startedAt: z.ZodString;
436
+ lastSeenAt: z.ZodString;
437
+ pageViews: z.ZodNumber;
438
+ interactions: z.ZodNumber;
439
+ }, "strip", z.ZodTypeAny, {
440
+ id: string;
441
+ startedAt: string;
442
+ attribution: {
443
+ source?: string | undefined;
444
+ medium?: string | undefined;
445
+ campaign?: string | undefined;
446
+ referrer?: string | undefined;
447
+ } | null;
448
+ actor: {
449
+ type: "user";
450
+ userId: string;
451
+ } | {
452
+ grantId: string;
453
+ type: "share";
454
+ definitionId?: string | undefined;
455
+ };
456
+ lastSeenAt: string;
457
+ pageViews: number;
458
+ interactions: number;
459
+ }, {
460
+ id: string;
461
+ startedAt: string;
462
+ attribution: {
463
+ source?: string | undefined;
464
+ medium?: string | undefined;
465
+ campaign?: string | undefined;
466
+ referrer?: string | undefined;
467
+ } | null;
468
+ actor: {
469
+ type: "user";
470
+ userId: string;
471
+ } | {
472
+ grantId: string;
473
+ type: "share";
474
+ definitionId?: string | undefined;
475
+ };
476
+ lastSeenAt: string;
477
+ pageViews: number;
478
+ interactions: number;
479
+ }>;
480
+ connection: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
481
+ type: z.ZodLiteral<"session">;
482
+ device: z.ZodObject<{
483
+ browser: z.ZodOptional<z.ZodString>;
484
+ os: z.ZodOptional<z.ZodString>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ browser?: string | undefined;
487
+ os?: string | undefined;
488
+ }, {
489
+ browser?: string | undefined;
490
+ os?: string | undefined;
491
+ }>;
492
+ clientName: z.ZodOptional<z.ZodString>;
493
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
494
+ createdAt: z.ZodString;
495
+ lastSeenAt: z.ZodOptional<z.ZodString>;
496
+ revokedAt: z.ZodOptional<z.ZodString>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ status: "expired" | "active" | "revoked";
499
+ type: "session";
500
+ createdAt: string;
501
+ device: {
502
+ browser?: string | undefined;
503
+ os?: string | undefined;
504
+ };
505
+ lastSeenAt?: string | undefined;
506
+ clientName?: string | undefined;
507
+ revokedAt?: string | undefined;
508
+ }, {
509
+ status: "expired" | "active" | "revoked";
510
+ type: "session";
511
+ createdAt: string;
512
+ device: {
513
+ browser?: string | undefined;
514
+ os?: string | undefined;
515
+ };
516
+ lastSeenAt?: string | undefined;
517
+ clientName?: string | undefined;
518
+ revokedAt?: string | undefined;
519
+ }>, z.ZodObject<{
520
+ type: z.ZodLiteral<"share">;
521
+ grantId: z.ZodString;
522
+ definitionId: z.ZodOptional<z.ZodString>;
523
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
524
+ createdAt: z.ZodString;
525
+ revokedAt: z.ZodOptional<z.ZodString>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ status: "expired" | "active" | "revoked";
528
+ grantId: string;
529
+ type: "share";
530
+ createdAt: string;
531
+ definitionId?: string | undefined;
532
+ revokedAt?: string | undefined;
533
+ }, {
534
+ status: "expired" | "active" | "revoked";
535
+ grantId: string;
536
+ type: "share";
537
+ createdAt: string;
538
+ definitionId?: string | undefined;
539
+ revokedAt?: string | undefined;
540
+ }>]>>;
541
+ entries: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
542
+ kind: z.ZodLiteral<"page">;
543
+ at: z.ZodString;
544
+ sequence: z.ZodNumber;
545
+ route: z.ZodString;
546
+ }, "strip", z.ZodTypeAny, {
547
+ at: string;
548
+ kind: "page";
549
+ route: string;
550
+ sequence: number;
551
+ }, {
552
+ at: string;
553
+ kind: "page";
554
+ route: string;
555
+ sequence: number;
556
+ }>, z.ZodObject<{
557
+ kind: z.ZodLiteral<"interaction">;
558
+ at: z.ZodString;
559
+ sequence: z.ZodNumber;
560
+ name: z.ZodString;
561
+ route: z.ZodString;
562
+ }, "strip", z.ZodTypeAny, {
563
+ at: string;
564
+ kind: "interaction";
565
+ name: string;
566
+ route: string;
567
+ sequence: number;
568
+ }, {
569
+ at: string;
570
+ kind: "interaction";
571
+ name: string;
572
+ route: string;
573
+ sequence: number;
574
+ }>, z.ZodObject<{
575
+ kind: z.ZodLiteral<"action">;
576
+ at: z.ZodString;
577
+ executionId: z.ZodString;
578
+ actionId: z.ZodString;
579
+ runId: z.ZodString;
580
+ status: z.ZodUnion<[z.ZodEnum<["succeeded", "failed"]>, z.ZodLiteral<"incomplete">]>;
581
+ runVisible: z.ZodBoolean;
582
+ object: z.ZodOptional<z.ZodObject<{
583
+ objectTypeId: z.ZodString;
584
+ primaryId: z.ZodString;
585
+ }, "strip", z.ZodTypeAny, {
586
+ objectTypeId: string;
587
+ primaryId: string;
588
+ }, {
589
+ objectTypeId: string;
590
+ primaryId: string;
591
+ }>>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ at: string;
594
+ status: "succeeded" | "failed" | "incomplete";
595
+ kind: "action";
596
+ actionId: string;
597
+ runId: string;
598
+ executionId: string;
599
+ runVisible: boolean;
600
+ object?: {
601
+ objectTypeId: string;
602
+ primaryId: string;
603
+ } | undefined;
604
+ }, {
605
+ at: string;
606
+ status: "succeeded" | "failed" | "incomplete";
607
+ kind: "action";
608
+ actionId: string;
609
+ runId: string;
610
+ executionId: string;
611
+ runVisible: boolean;
612
+ object?: {
613
+ objectTypeId: string;
614
+ primaryId: string;
615
+ } | undefined;
616
+ }>, z.ZodObject<{
617
+ kind: z.ZodLiteral<"workflow">;
618
+ at: z.ZodString;
619
+ executionId: z.ZodString;
620
+ workflowId: z.ZodString;
621
+ runId: z.ZodString;
622
+ status: z.ZodUnion<[z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>, z.ZodLiteral<"incomplete">]>;
623
+ runVisible: z.ZodBoolean;
624
+ }, "strip", z.ZodTypeAny, {
625
+ at: string;
626
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | "incomplete";
627
+ kind: "workflow";
628
+ runId: string;
629
+ workflowId: string;
630
+ executionId: string;
631
+ runVisible: boolean;
632
+ }, {
633
+ at: string;
634
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | "incomplete";
635
+ kind: "workflow";
636
+ runId: string;
637
+ workflowId: string;
638
+ executionId: string;
639
+ runVisible: boolean;
640
+ }>, z.ZodObject<{
641
+ kind: z.ZodLiteral<"agent">;
642
+ at: z.ZodString;
643
+ executionId: z.ZodString;
644
+ runId: z.ZodString;
645
+ threadId: z.ZodString;
646
+ /** Only for a reader with can.observe(agent.threads), who can open the conversation. */
647
+ thread: z.ZodOptional<z.ZodObject<{
648
+ title: z.ZodOptional<z.ZodString>;
649
+ }, "strip", z.ZodTypeAny, {
650
+ title?: string | undefined;
651
+ }, {
652
+ title?: string | undefined;
653
+ }>>;
654
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
655
+ messages: z.ZodNumber;
656
+ cost: z.ZodOptional<z.ZodObject<{
657
+ amounts: z.ZodArray<z.ZodObject<{
658
+ currency: z.ZodString;
659
+ amountNanos: z.ZodString;
660
+ }, "strip", z.ZodTypeAny, {
661
+ currency: string;
662
+ amountNanos: string;
663
+ }, {
664
+ currency: string;
665
+ amountNanos: string;
666
+ }>, "many">;
667
+ ratedCallCount: z.ZodNumber;
668
+ unpriceableCallCount: z.ZodNumber;
669
+ unvaluedCallCount: z.ZodNumber;
670
+ }, "strip", z.ZodTypeAny, {
671
+ amounts: {
672
+ currency: string;
673
+ amountNanos: string;
674
+ }[];
675
+ ratedCallCount: number;
676
+ unpriceableCallCount: number;
677
+ unvaluedCallCount: number;
678
+ }, {
679
+ amounts: {
680
+ currency: string;
681
+ amountNanos: string;
682
+ }[];
683
+ ratedCallCount: number;
684
+ unpriceableCallCount: number;
685
+ unvaluedCallCount: number;
686
+ }>>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ at: string;
689
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
690
+ kind: "agent";
691
+ runId: string;
692
+ threadId: string;
693
+ executionId: string;
694
+ messages: number;
695
+ thread?: {
696
+ title?: string | undefined;
697
+ } | undefined;
698
+ cost?: {
699
+ amounts: {
700
+ currency: string;
701
+ amountNanos: string;
702
+ }[];
703
+ ratedCallCount: number;
704
+ unpriceableCallCount: number;
705
+ unvaluedCallCount: number;
706
+ } | undefined;
707
+ }, {
708
+ at: string;
709
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
710
+ kind: "agent";
711
+ runId: string;
712
+ threadId: string;
713
+ executionId: string;
714
+ messages: number;
715
+ thread?: {
716
+ title?: string | undefined;
717
+ } | undefined;
718
+ cost?: {
719
+ amounts: {
720
+ currency: string;
721
+ amountNanos: string;
722
+ }[];
723
+ ratedCallCount: number;
724
+ unpriceableCallCount: number;
725
+ unvaluedCallCount: number;
726
+ } | undefined;
727
+ }>]>, "many">;
728
+ truncated: z.ZodBoolean;
729
+ }, "strip", z.ZodTypeAny, {
730
+ entries: ({
731
+ at: string;
732
+ kind: "page";
733
+ route: string;
734
+ sequence: number;
735
+ } | {
736
+ at: string;
737
+ kind: "interaction";
738
+ name: string;
739
+ route: string;
740
+ sequence: number;
741
+ } | {
742
+ at: string;
743
+ status: "succeeded" | "failed" | "incomplete";
744
+ kind: "action";
745
+ actionId: string;
746
+ runId: string;
747
+ executionId: string;
748
+ runVisible: boolean;
749
+ object?: {
750
+ objectTypeId: string;
751
+ primaryId: string;
752
+ } | undefined;
753
+ } | {
754
+ at: string;
755
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | "incomplete";
756
+ kind: "workflow";
757
+ runId: string;
758
+ workflowId: string;
759
+ executionId: string;
760
+ runVisible: boolean;
761
+ } | {
762
+ at: string;
763
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
764
+ kind: "agent";
765
+ runId: string;
766
+ threadId: string;
767
+ executionId: string;
768
+ messages: number;
769
+ thread?: {
770
+ title?: string | undefined;
771
+ } | undefined;
772
+ cost?: {
773
+ amounts: {
774
+ currency: string;
775
+ amountNanos: string;
776
+ }[];
777
+ ratedCallCount: number;
778
+ unpriceableCallCount: number;
779
+ unvaluedCallCount: number;
780
+ } | undefined;
781
+ })[];
782
+ truncated: boolean;
783
+ visit: {
784
+ id: string;
785
+ startedAt: string;
786
+ attribution: {
787
+ source?: string | undefined;
788
+ medium?: string | undefined;
789
+ campaign?: string | undefined;
790
+ referrer?: string | undefined;
791
+ } | null;
792
+ actor: {
793
+ type: "user";
794
+ userId: string;
795
+ } | {
796
+ grantId: string;
797
+ type: "share";
798
+ definitionId?: string | undefined;
799
+ };
800
+ lastSeenAt: string;
801
+ pageViews: number;
802
+ interactions: number;
803
+ };
804
+ connection?: {
805
+ status: "expired" | "active" | "revoked";
806
+ type: "session";
807
+ createdAt: string;
808
+ device: {
809
+ browser?: string | undefined;
810
+ os?: string | undefined;
811
+ };
812
+ lastSeenAt?: string | undefined;
813
+ clientName?: string | undefined;
814
+ revokedAt?: string | undefined;
815
+ } | {
816
+ status: "expired" | "active" | "revoked";
817
+ grantId: string;
818
+ type: "share";
819
+ createdAt: string;
820
+ definitionId?: string | undefined;
821
+ revokedAt?: string | undefined;
822
+ } | undefined;
823
+ }, {
824
+ entries: ({
825
+ at: string;
826
+ kind: "page";
827
+ route: string;
828
+ sequence: number;
829
+ } | {
830
+ at: string;
831
+ kind: "interaction";
832
+ name: string;
833
+ route: string;
834
+ sequence: number;
835
+ } | {
836
+ at: string;
837
+ status: "succeeded" | "failed" | "incomplete";
838
+ kind: "action";
839
+ actionId: string;
840
+ runId: string;
841
+ executionId: string;
842
+ runVisible: boolean;
843
+ object?: {
844
+ objectTypeId: string;
845
+ primaryId: string;
846
+ } | undefined;
847
+ } | {
848
+ at: string;
849
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running" | "waiting" | "incomplete";
850
+ kind: "workflow";
851
+ runId: string;
852
+ workflowId: string;
853
+ executionId: string;
854
+ runVisible: boolean;
855
+ } | {
856
+ at: string;
857
+ status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
858
+ kind: "agent";
859
+ runId: string;
860
+ threadId: string;
861
+ executionId: string;
862
+ messages: number;
863
+ thread?: {
864
+ title?: string | undefined;
865
+ } | undefined;
866
+ cost?: {
867
+ amounts: {
868
+ currency: string;
869
+ amountNanos: string;
870
+ }[];
871
+ ratedCallCount: number;
872
+ unpriceableCallCount: number;
873
+ unvaluedCallCount: number;
874
+ } | undefined;
875
+ })[];
876
+ truncated: boolean;
877
+ visit: {
878
+ id: string;
879
+ startedAt: string;
880
+ attribution: {
881
+ source?: string | undefined;
882
+ medium?: string | undefined;
883
+ campaign?: string | undefined;
884
+ referrer?: string | undefined;
885
+ } | null;
886
+ actor: {
887
+ type: "user";
888
+ userId: string;
889
+ } | {
890
+ grantId: string;
891
+ type: "share";
892
+ definitionId?: string | undefined;
893
+ };
894
+ lastSeenAt: string;
895
+ pageViews: number;
896
+ interactions: number;
897
+ };
898
+ connection?: {
899
+ status: "expired" | "active" | "revoked";
900
+ type: "session";
901
+ createdAt: string;
902
+ device: {
903
+ browser?: string | undefined;
904
+ os?: string | undefined;
905
+ };
906
+ lastSeenAt?: string | undefined;
907
+ clientName?: string | undefined;
908
+ revokedAt?: string | undefined;
909
+ } | {
910
+ status: "expired" | "active" | "revoked";
911
+ grantId: string;
912
+ type: "share";
913
+ createdAt: string;
914
+ definitionId?: string | undefined;
915
+ revokedAt?: string | undefined;
916
+ } | undefined;
917
+ }>;
918
+ export declare const ActivityConnectionsPageSchema: z.ZodObject<{
919
+ connections: z.ZodArray<z.ZodObject<{
920
+ type: z.ZodLiteral<"session">;
921
+ device: z.ZodObject<{
922
+ browser: z.ZodOptional<z.ZodString>;
923
+ os: z.ZodOptional<z.ZodString>;
924
+ }, "strip", z.ZodTypeAny, {
925
+ browser?: string | undefined;
926
+ os?: string | undefined;
927
+ }, {
928
+ browser?: string | undefined;
929
+ os?: string | undefined;
930
+ }>;
931
+ clientName: z.ZodOptional<z.ZodString>;
932
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
933
+ createdAt: z.ZodString;
934
+ lastSeenAt: z.ZodOptional<z.ZodString>;
935
+ revokedAt: z.ZodOptional<z.ZodString>;
936
+ } & {
937
+ visits: z.ZodNumber;
938
+ latestVisits: z.ZodArray<z.ZodObject<{
939
+ id: z.ZodString;
940
+ actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
941
+ type: z.ZodLiteral<"user">;
942
+ userId: z.ZodString;
943
+ }, "strip", z.ZodTypeAny, {
944
+ type: "user";
945
+ userId: string;
946
+ }, {
947
+ type: "user";
948
+ userId: string;
949
+ }>, z.ZodObject<{
950
+ type: z.ZodLiteral<"share">;
951
+ grantId: z.ZodString;
952
+ definitionId: z.ZodOptional<z.ZodString>;
953
+ }, "strip", z.ZodTypeAny, {
954
+ grantId: string;
955
+ type: "share";
956
+ definitionId?: string | undefined;
957
+ }, {
958
+ grantId: string;
959
+ type: "share";
960
+ definitionId?: string | undefined;
961
+ }>]>;
962
+ attribution: z.ZodNullable<z.ZodObject<{
963
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
964
+ medium: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
965
+ campaign: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
966
+ referrer: z.ZodOptional<z.ZodString>;
967
+ }, "strict", z.ZodTypeAny, {
968
+ source?: string | undefined;
969
+ medium?: string | undefined;
970
+ campaign?: string | undefined;
971
+ referrer?: string | undefined;
972
+ }, {
973
+ source?: string | undefined;
974
+ medium?: string | undefined;
975
+ campaign?: string | undefined;
976
+ referrer?: string | undefined;
977
+ }>>;
978
+ startedAt: z.ZodString;
979
+ lastSeenAt: z.ZodString;
980
+ pageViews: z.ZodNumber;
981
+ interactions: z.ZodNumber;
982
+ }, "strip", z.ZodTypeAny, {
983
+ id: string;
984
+ startedAt: string;
985
+ attribution: {
986
+ source?: string | undefined;
987
+ medium?: string | undefined;
988
+ campaign?: string | undefined;
989
+ referrer?: string | undefined;
990
+ } | null;
991
+ actor: {
992
+ type: "user";
993
+ userId: string;
994
+ } | {
995
+ grantId: string;
996
+ type: "share";
997
+ definitionId?: string | undefined;
998
+ };
999
+ lastSeenAt: string;
1000
+ pageViews: number;
1001
+ interactions: number;
1002
+ }, {
1003
+ id: string;
1004
+ startedAt: string;
1005
+ attribution: {
1006
+ source?: string | undefined;
1007
+ medium?: string | undefined;
1008
+ campaign?: string | undefined;
1009
+ referrer?: string | undefined;
1010
+ } | null;
1011
+ actor: {
1012
+ type: "user";
1013
+ userId: string;
1014
+ } | {
1015
+ grantId: string;
1016
+ type: "share";
1017
+ definitionId?: string | undefined;
1018
+ };
1019
+ lastSeenAt: string;
1020
+ pageViews: number;
1021
+ interactions: number;
1022
+ }>, "many">;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ status: "expired" | "active" | "revoked";
1025
+ type: "session";
1026
+ createdAt: string;
1027
+ visits: number;
1028
+ device: {
1029
+ browser?: string | undefined;
1030
+ os?: string | undefined;
1031
+ };
1032
+ latestVisits: {
1033
+ id: string;
1034
+ startedAt: string;
1035
+ attribution: {
1036
+ source?: string | undefined;
1037
+ medium?: string | undefined;
1038
+ campaign?: string | undefined;
1039
+ referrer?: string | undefined;
1040
+ } | null;
1041
+ actor: {
1042
+ type: "user";
1043
+ userId: string;
1044
+ } | {
1045
+ grantId: string;
1046
+ type: "share";
1047
+ definitionId?: string | undefined;
1048
+ };
1049
+ lastSeenAt: string;
1050
+ pageViews: number;
1051
+ interactions: number;
1052
+ }[];
1053
+ lastSeenAt?: string | undefined;
1054
+ clientName?: string | undefined;
1055
+ revokedAt?: string | undefined;
1056
+ }, {
1057
+ status: "expired" | "active" | "revoked";
1058
+ type: "session";
1059
+ createdAt: string;
1060
+ visits: number;
1061
+ device: {
1062
+ browser?: string | undefined;
1063
+ os?: string | undefined;
1064
+ };
1065
+ latestVisits: {
1066
+ id: string;
1067
+ startedAt: string;
1068
+ attribution: {
1069
+ source?: string | undefined;
1070
+ medium?: string | undefined;
1071
+ campaign?: string | undefined;
1072
+ referrer?: string | undefined;
1073
+ } | null;
1074
+ actor: {
1075
+ type: "user";
1076
+ userId: string;
1077
+ } | {
1078
+ grantId: string;
1079
+ type: "share";
1080
+ definitionId?: string | undefined;
1081
+ };
1082
+ lastSeenAt: string;
1083
+ pageViews: number;
1084
+ interactions: number;
1085
+ }[];
1086
+ lastSeenAt?: string | undefined;
1087
+ clientName?: string | undefined;
1088
+ revokedAt?: string | undefined;
1089
+ }>, "many">;
1090
+ nextCursor: z.ZodOptional<z.ZodString>;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ connections: {
1093
+ status: "expired" | "active" | "revoked";
1094
+ type: "session";
1095
+ createdAt: string;
1096
+ visits: number;
1097
+ device: {
1098
+ browser?: string | undefined;
1099
+ os?: string | undefined;
1100
+ };
1101
+ latestVisits: {
1102
+ id: string;
1103
+ startedAt: string;
1104
+ attribution: {
1105
+ source?: string | undefined;
1106
+ medium?: string | undefined;
1107
+ campaign?: string | undefined;
1108
+ referrer?: string | undefined;
1109
+ } | null;
1110
+ actor: {
1111
+ type: "user";
1112
+ userId: string;
1113
+ } | {
1114
+ grantId: string;
1115
+ type: "share";
1116
+ definitionId?: string | undefined;
1117
+ };
1118
+ lastSeenAt: string;
1119
+ pageViews: number;
1120
+ interactions: number;
1121
+ }[];
1122
+ lastSeenAt?: string | undefined;
1123
+ clientName?: string | undefined;
1124
+ revokedAt?: string | undefined;
1125
+ }[];
1126
+ nextCursor?: string | undefined;
1127
+ }, {
1128
+ connections: {
1129
+ status: "expired" | "active" | "revoked";
1130
+ type: "session";
1131
+ createdAt: string;
1132
+ visits: number;
1133
+ device: {
1134
+ browser?: string | undefined;
1135
+ os?: string | undefined;
1136
+ };
1137
+ latestVisits: {
1138
+ id: string;
1139
+ startedAt: string;
1140
+ attribution: {
1141
+ source?: string | undefined;
1142
+ medium?: string | undefined;
1143
+ campaign?: string | undefined;
1144
+ referrer?: string | undefined;
1145
+ } | null;
1146
+ actor: {
1147
+ type: "user";
1148
+ userId: string;
1149
+ } | {
1150
+ grantId: string;
1151
+ type: "share";
1152
+ definitionId?: string | undefined;
1153
+ };
1154
+ lastSeenAt: string;
1155
+ pageViews: number;
1156
+ interactions: number;
1157
+ }[];
1158
+ lastSeenAt?: string | undefined;
1159
+ clientName?: string | undefined;
1160
+ revokedAt?: string | undefined;
1161
+ }[];
1162
+ nextCursor?: string | undefined;
1163
+ }>;
1164
+ export declare const ActivityCalendarSchema: z.ZodObject<{
1165
+ userId: z.ZodString;
1166
+ year: z.ZodNumber;
1167
+ days: z.ZodArray<z.ZodObject<{
1168
+ day: z.ZodString;
1169
+ visits: z.ZodNumber;
1170
+ pageViews: z.ZodNumber;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ day: string;
1173
+ pageViews: number;
1174
+ visits: number;
1175
+ }, {
1176
+ day: string;
1177
+ pageViews: number;
1178
+ visits: number;
1179
+ }>, "many">;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ userId: string;
1182
+ year: number;
1183
+ days: {
1184
+ day: string;
1185
+ pageViews: number;
1186
+ visits: number;
1187
+ }[];
1188
+ }, {
1189
+ userId: string;
1190
+ year: number;
1191
+ days: {
1192
+ day: string;
1193
+ pageViews: number;
1194
+ visits: number;
1195
+ }[];
1196
+ }>;
1197
+ export declare const ActivityPeriodQuerySchema: z.ZodEffects<z.ZodObject<{
1198
+ from: z.ZodString;
1199
+ to: z.ZodString;
1200
+ userId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1201
+ }, "strip", z.ZodTypeAny, {
1202
+ from: string;
1203
+ to: string;
1204
+ userId?: string | undefined;
1205
+ }, {
1206
+ from: string;
1207
+ to: string;
1208
+ userId?: string | undefined;
1209
+ }>, {
1210
+ from: string;
1211
+ to: string;
1212
+ userId?: string | undefined;
1213
+ }, {
1214
+ from: string;
1215
+ to: string;
1216
+ userId?: string | undefined;
1217
+ }>;
1218
+ export declare const ActivityPageQuerySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1219
+ limit: z.ZodOptional<z.ZodNumber>;
1220
+ beforeAt: z.ZodOptional<z.ZodString>;
1221
+ beforeId: z.ZodOptional<z.ZodString>;
1222
+ from: z.ZodString;
1223
+ to: z.ZodString;
1224
+ userId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ from: string;
1227
+ to: string;
1228
+ limit?: number | undefined;
1229
+ userId?: string | undefined;
1230
+ beforeAt?: string | undefined;
1231
+ beforeId?: string | undefined;
1232
+ }, {
1233
+ from: string;
1234
+ to: string;
1235
+ limit?: number | undefined;
1236
+ userId?: string | undefined;
1237
+ beforeAt?: string | undefined;
1238
+ beforeId?: string | undefined;
1239
+ }>, {
1240
+ from: string;
1241
+ to: string;
1242
+ limit?: number | undefined;
1243
+ userId?: string | undefined;
1244
+ beforeAt?: string | undefined;
1245
+ beforeId?: string | undefined;
1246
+ }, {
1247
+ from: string;
1248
+ to: string;
1249
+ limit?: number | undefined;
1250
+ userId?: string | undefined;
1251
+ beforeAt?: string | undefined;
1252
+ beforeId?: string | undefined;
1253
+ }>, {
1254
+ from: string;
1255
+ to: string;
1256
+ limit?: number | undefined;
1257
+ userId?: string | undefined;
1258
+ beforeAt?: string | undefined;
1259
+ beforeId?: string | undefined;
1260
+ }, {
1261
+ from: string;
1262
+ to: string;
1263
+ limit?: number | undefined;
1264
+ userId?: string | undefined;
1265
+ beforeAt?: string | undefined;
1266
+ beforeId?: string | undefined;
1267
+ }>;
1268
+ export declare const ActivityCalendarQuerySchema: z.ZodObject<{
1269
+ userId: z.ZodEffects<z.ZodString, string, string>;
1270
+ year: z.ZodNumber;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ userId: string;
1273
+ year: number;
1274
+ }, {
1275
+ userId: string;
1276
+ year: number;
1277
+ }>;
1278
+ export declare const ActivityConnectionsQuerySchema: z.ZodObject<{
1279
+ userId: z.ZodEffects<z.ZodString, string, string>;
1280
+ limit: z.ZodOptional<z.ZodNumber>;
1281
+ cursor: z.ZodOptional<z.ZodString>;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ userId: string;
1284
+ limit?: number | undefined;
1285
+ cursor?: string | undefined;
1286
+ }, {
1287
+ userId: string;
1288
+ limit?: number | undefined;
1289
+ cursor?: string | undefined;
1290
+ }>;
1291
+ export declare const ActivityVisitParamsSchema: z.ZodObject<{
1292
+ visitId: z.ZodString;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ visitId: string;
1295
+ }, {
1296
+ visitId: string;
1297
+ }>;
1298
+ //# sourceMappingURL=activity.d.ts.map