@corsair-dev/amplitude 0.1.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 (47) hide show
  1. package/LICENSE +191 -0
  2. package/dist/client.d.ts +13 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/endpoints/annotations.d.ts +4 -0
  5. package/dist/endpoints/annotations.d.ts.map +1 -0
  6. package/dist/endpoints/charts.d.ts +3 -0
  7. package/dist/endpoints/charts.d.ts.map +1 -0
  8. package/dist/endpoints/cohorts.d.ts +6 -0
  9. package/dist/endpoints/cohorts.d.ts.map +1 -0
  10. package/dist/endpoints/dashboards.d.ts +4 -0
  11. package/dist/endpoints/dashboards.d.ts.map +1 -0
  12. package/dist/endpoints/events.d.ts +6 -0
  13. package/dist/endpoints/events.d.ts.map +1 -0
  14. package/dist/endpoints/exports.d.ts +3 -0
  15. package/dist/endpoints/exports.d.ts.map +1 -0
  16. package/dist/endpoints/index.d.ts +295 -0
  17. package/dist/endpoints/index.d.ts.map +1 -0
  18. package/dist/endpoints/types.d.ts +2411 -0
  19. package/dist/endpoints/types.d.ts.map +1 -0
  20. package/dist/endpoints/users.d.ts +5 -0
  21. package/dist/endpoints/users.d.ts.map +1 -0
  22. package/dist/error-handlers.d.ts +40 -0
  23. package/dist/error-handlers.d.ts.map +1 -0
  24. package/dist/index.d.ts +1497 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/schema/database.d.ts +170 -0
  28. package/dist/schema/database.d.ts.map +1 -0
  29. package/dist/schema/index.d.ts +171 -0
  30. package/dist/schema/index.d.ts.map +1 -0
  31. package/dist/tsup.config.d.ts +3 -0
  32. package/dist/tsup.config.d.ts.map +1 -0
  33. package/dist/webhooks/annotations.d.ts +4 -0
  34. package/dist/webhooks/annotations.d.ts.map +1 -0
  35. package/dist/webhooks/cohorts.d.ts +3 -0
  36. package/dist/webhooks/cohorts.d.ts.map +1 -0
  37. package/dist/webhooks/events.d.ts +4 -0
  38. package/dist/webhooks/events.d.ts.map +1 -0
  39. package/dist/webhooks/experiments.d.ts +3 -0
  40. package/dist/webhooks/experiments.d.ts.map +1 -0
  41. package/dist/webhooks/index.d.ts +202 -0
  42. package/dist/webhooks/index.d.ts.map +1 -0
  43. package/dist/webhooks/monitors.d.ts +3 -0
  44. package/dist/webhooks/monitors.d.ts.map +1 -0
  45. package/dist/webhooks/types.d.ts +305 -0
  46. package/dist/webhooks/types.d.ts.map +1 -0
  47. package/package.json +40 -0
@@ -0,0 +1,1497 @@
1
+ import type { BindEndpoints, BindWebhooks, CorsairEndpoint, CorsairErrorHandler, CorsairPlugin, CorsairPluginContext, CorsairWebhook, KeyBuilderContext, PluginPermissionsConfig } from 'corsair/core';
2
+ import type { AuthTypes, PickAuth } from 'corsair/core';
3
+ import type { AmplitudeEndpointInputs, AmplitudeEndpointOutputs } from './endpoints/types';
4
+ import { AmplitudeSchema } from './schema';
5
+ import type { AmplitudeAnnotationCreatedEvent, AmplitudeAnnotationUpdatedEvent, AmplitudeCohortComputedEvent, AmplitudeExperimentExposureEvent, AmplitudeIdentifyEvent, AmplitudeMonitorAlertEvent, AmplitudeTrackEvent, AmplitudeWebhookOutputs, AmplitudeWebhookPayload } from './webhooks/types';
6
+ export type AmplitudePluginOptions = {
7
+ authType?: PickAuth<'api_key'>;
8
+ key?: string;
9
+ webhookSecret?: string;
10
+ hooks?: InternalAmplitudePlugin['hooks'];
11
+ webhookHooks?: InternalAmplitudePlugin['webhookHooks'];
12
+ errorHandlers?: CorsairErrorHandler;
13
+ permissions?: PluginPermissionsConfig<typeof amplitudeEndpointsNested>;
14
+ };
15
+ export type AmplitudeContext = CorsairPluginContext<typeof AmplitudeSchema, AmplitudePluginOptions>;
16
+ export type AmplitudeKeyBuilderContext = KeyBuilderContext<AmplitudePluginOptions>;
17
+ export type AmplitudeBoundEndpoints = BindEndpoints<typeof amplitudeEndpointsNested>;
18
+ type AmplitudeEndpoint<K extends keyof AmplitudeEndpointOutputs, Input = AmplitudeEndpointInputs[K]> = CorsairEndpoint<AmplitudeContext, Input, AmplitudeEndpointOutputs[K]>;
19
+ export type AmplitudeEndpoints = {
20
+ eventsUpload: AmplitudeEndpoint<'eventsUpload'>;
21
+ eventsUploadBatch: AmplitudeEndpoint<'eventsUploadBatch'>;
22
+ eventsIdentifyUser: AmplitudeEndpoint<'eventsIdentifyUser'>;
23
+ eventsGetList: AmplitudeEndpoint<'eventsGetList'>;
24
+ usersSearch: AmplitudeEndpoint<'usersSearch'>;
25
+ usersGetProfile: AmplitudeEndpoint<'usersGetProfile'>;
26
+ usersGetActivity: AmplitudeEndpoint<'usersGetActivity'>;
27
+ cohortsList: AmplitudeEndpoint<'cohortsList'>;
28
+ cohortsGet: AmplitudeEndpoint<'cohortsGet'>;
29
+ cohortsCreate: AmplitudeEndpoint<'cohortsCreate'>;
30
+ cohortsGetMembers: AmplitudeEndpoint<'cohortsGetMembers'>;
31
+ chartsGet: AmplitudeEndpoint<'chartsGet'>;
32
+ dashboardsList: AmplitudeEndpoint<'dashboardsList'>;
33
+ dashboardsGet: AmplitudeEndpoint<'dashboardsGet'>;
34
+ annotationsList: AmplitudeEndpoint<'annotationsList'>;
35
+ annotationsCreate: AmplitudeEndpoint<'annotationsCreate'>;
36
+ exportsGetData: AmplitudeEndpoint<'exportsGetData'>;
37
+ };
38
+ type AmplitudeWebhook<K extends keyof AmplitudeWebhookOutputs, TEvent> = CorsairWebhook<AmplitudeContext, AmplitudeWebhookPayload<TEvent>, AmplitudeWebhookOutputs[K]>;
39
+ export type AmplitudeWebhooks = {
40
+ eventsTrack: AmplitudeWebhook<'eventsTrack', AmplitudeTrackEvent>;
41
+ eventsIdentify: AmplitudeWebhook<'eventsIdentify', AmplitudeIdentifyEvent>;
42
+ annotationsCreated: AmplitudeWebhook<'annotationsCreated', AmplitudeAnnotationCreatedEvent>;
43
+ annotationsUpdated: AmplitudeWebhook<'annotationsUpdated', AmplitudeAnnotationUpdatedEvent>;
44
+ monitorsAlert: AmplitudeWebhook<'monitorsAlert', AmplitudeMonitorAlertEvent>;
45
+ cohortsComputed: AmplitudeWebhook<'cohortsComputed', AmplitudeCohortComputedEvent>;
46
+ experimentsExposure: AmplitudeWebhook<'experimentsExposure', AmplitudeExperimentExposureEvent>;
47
+ };
48
+ export type AmplitudeBoundWebhooks = BindWebhooks<AmplitudeWebhooks>;
49
+ declare const amplitudeEndpointsNested: {
50
+ readonly events: {
51
+ readonly upload: AmplitudeEndpoint<"eventsUpload", {
52
+ api_key: string;
53
+ events: {
54
+ event_type: string;
55
+ user_id?: string | undefined;
56
+ device_id?: string | undefined;
57
+ time?: number | undefined;
58
+ event_properties?: Record<string, unknown> | undefined;
59
+ user_properties?: Record<string, unknown> | undefined;
60
+ app_version?: string | undefined;
61
+ platform?: string | undefined;
62
+ os_name?: string | undefined;
63
+ os_version?: string | undefined;
64
+ device_brand?: string | undefined;
65
+ device_manufacturer?: string | undefined;
66
+ device_model?: string | undefined;
67
+ carrier?: string | undefined;
68
+ country?: string | undefined;
69
+ region?: string | undefined;
70
+ city?: string | undefined;
71
+ language?: string | undefined;
72
+ ip?: string | undefined;
73
+ insert_id?: string | undefined;
74
+ session_id?: number | undefined;
75
+ }[];
76
+ options?: {
77
+ min_id_length?: number | undefined;
78
+ } | undefined;
79
+ }>;
80
+ readonly uploadBatch: AmplitudeEndpoint<"eventsUploadBatch", {
81
+ api_key: string;
82
+ events: {
83
+ event_type: string;
84
+ user_id?: string | undefined;
85
+ device_id?: string | undefined;
86
+ time?: number | undefined;
87
+ event_properties?: Record<string, unknown> | undefined;
88
+ user_properties?: Record<string, unknown> | undefined;
89
+ app_version?: string | undefined;
90
+ platform?: string | undefined;
91
+ os_name?: string | undefined;
92
+ os_version?: string | undefined;
93
+ device_brand?: string | undefined;
94
+ device_manufacturer?: string | undefined;
95
+ device_model?: string | undefined;
96
+ carrier?: string | undefined;
97
+ country?: string | undefined;
98
+ region?: string | undefined;
99
+ city?: string | undefined;
100
+ language?: string | undefined;
101
+ ip?: string | undefined;
102
+ insert_id?: string | undefined;
103
+ session_id?: number | undefined;
104
+ }[];
105
+ options?: {
106
+ min_id_length?: number | undefined;
107
+ } | undefined;
108
+ }>;
109
+ readonly identifyUser: AmplitudeEndpoint<"eventsIdentifyUser", {
110
+ api_key: string;
111
+ identification: {
112
+ user_properties: Record<string, unknown>;
113
+ user_id?: string | undefined;
114
+ device_id?: string | undefined;
115
+ }[];
116
+ }>;
117
+ readonly getList: AmplitudeEndpoint<"eventsGetList", {}>;
118
+ };
119
+ readonly users: {
120
+ readonly search: AmplitudeEndpoint<"usersSearch", {
121
+ user: string;
122
+ limit?: number | undefined;
123
+ offset?: number | undefined;
124
+ }>;
125
+ readonly getProfile: AmplitudeEndpoint<"usersGetProfile", {
126
+ user_id?: string | undefined;
127
+ amplitude_id?: number | undefined;
128
+ }>;
129
+ readonly getActivity: AmplitudeEndpoint<"usersGetActivity", {
130
+ user: number;
131
+ limit?: number | undefined;
132
+ offset?: number | undefined;
133
+ }>;
134
+ };
135
+ readonly cohorts: {
136
+ readonly list: AmplitudeEndpoint<"cohortsList", {}>;
137
+ readonly get: AmplitudeEndpoint<"cohortsGet", {
138
+ cohort_id: string;
139
+ }>;
140
+ readonly create: AmplitudeEndpoint<"cohortsCreate", {
141
+ name: string;
142
+ app_id: number;
143
+ id_type: "BY_AMP_ID" | "BY_USER_ID" | "BY_DEVICE_ID";
144
+ ids: string[];
145
+ description?: string | undefined;
146
+ owners?: string[] | undefined;
147
+ published?: boolean | undefined;
148
+ }>;
149
+ readonly getMembers: AmplitudeEndpoint<"cohortsGetMembers", {
150
+ request_id: string;
151
+ }>;
152
+ };
153
+ readonly charts: {
154
+ readonly get: AmplitudeEndpoint<"chartsGet", {
155
+ chart_id: string;
156
+ }>;
157
+ };
158
+ readonly dashboards: {
159
+ readonly list: AmplitudeEndpoint<"dashboardsList", {}>;
160
+ readonly get: AmplitudeEndpoint<"dashboardsGet", {
161
+ dashboard_id: number;
162
+ }>;
163
+ };
164
+ readonly annotations: {
165
+ readonly list: AmplitudeEndpoint<"annotationsList", {
166
+ app_id?: number | undefined;
167
+ }>;
168
+ readonly create: AmplitudeEndpoint<"annotationsCreate", {
169
+ date: string;
170
+ label: string;
171
+ app_id?: number | undefined;
172
+ details?: string | undefined;
173
+ }>;
174
+ };
175
+ readonly exports: {
176
+ readonly getData: AmplitudeEndpoint<"exportsGetData", {
177
+ start: string;
178
+ end: string;
179
+ }>;
180
+ };
181
+ };
182
+ declare const amplitudeWebhooksNested: {
183
+ readonly events: {
184
+ readonly track: AmplitudeWebhook<"eventsTrack", {
185
+ type: "event.track";
186
+ event_type: string;
187
+ time: number;
188
+ event_id: string;
189
+ user_id?: string | undefined;
190
+ device_id?: string | undefined;
191
+ event_properties?: Record<string, unknown> | undefined;
192
+ user_properties?: Record<string, unknown> | undefined;
193
+ app_version?: string | undefined;
194
+ platform?: string | undefined;
195
+ insert_id?: string | undefined;
196
+ session_id?: number | undefined;
197
+ }>;
198
+ readonly identify: AmplitudeWebhook<"eventsIdentify", {
199
+ type: "event.identify";
200
+ time: number;
201
+ user_id?: string | undefined;
202
+ device_id?: string | undefined;
203
+ user_properties?: Record<string, unknown> | undefined;
204
+ app_version?: string | undefined;
205
+ platform?: string | undefined;
206
+ insert_id?: string | undefined;
207
+ }>;
208
+ };
209
+ readonly annotations: {
210
+ readonly created: AmplitudeWebhook<"annotationsCreated", {
211
+ date: string;
212
+ created_at: string;
213
+ type: "annotation.created";
214
+ label: string;
215
+ annotation_id: number;
216
+ app_id?: number | undefined;
217
+ details?: string | undefined;
218
+ source?: string | undefined;
219
+ }>;
220
+ readonly updated: AmplitudeWebhook<"annotationsUpdated", {
221
+ date: string;
222
+ updated_at: string;
223
+ type: "annotation.updated";
224
+ label: string;
225
+ annotation_id: number;
226
+ app_id?: number | undefined;
227
+ details?: string | undefined;
228
+ source?: string | undefined;
229
+ }>;
230
+ };
231
+ readonly monitors: {
232
+ readonly alert: AmplitudeWebhook<"monitorsAlert", {
233
+ type: "monitor.alert";
234
+ monitor_id: string;
235
+ monitor_name: string;
236
+ alert_type: string;
237
+ triggered_at: string;
238
+ value?: number | undefined;
239
+ chart_id?: string | undefined;
240
+ dashboard_id?: number | undefined;
241
+ condition?: string | undefined;
242
+ threshold?: number | undefined;
243
+ recipients?: string[] | undefined;
244
+ }>;
245
+ };
246
+ readonly cohorts: {
247
+ readonly computed: AmplitudeWebhook<"cohortsComputed", {
248
+ type: "cohort.computed";
249
+ size: number;
250
+ cohort_id: string;
251
+ cohort_name: string;
252
+ computed_at: string;
253
+ published?: boolean | undefined;
254
+ app_id?: number | undefined;
255
+ }>;
256
+ };
257
+ readonly experiments: {
258
+ readonly exposure: AmplitudeWebhook<"experimentsExposure", {
259
+ type: "experiment.exposure";
260
+ time: number;
261
+ user: {
262
+ user_id?: string | undefined;
263
+ device_id?: string | undefined;
264
+ user_properties?: Record<string, unknown> | undefined;
265
+ platform?: string | undefined;
266
+ country?: string | undefined;
267
+ region?: string | undefined;
268
+ city?: string | undefined;
269
+ language?: string | undefined;
270
+ os?: string | undefined;
271
+ };
272
+ flag_key: string;
273
+ variant: string;
274
+ experiment_key?: string | undefined;
275
+ metadata?: {
276
+ deployment_name?: string | undefined;
277
+ flag_version?: number | undefined;
278
+ } | undefined;
279
+ }>;
280
+ };
281
+ };
282
+ export declare const amplitudeEndpointSchemas: {
283
+ readonly 'events.upload': {
284
+ readonly input: import("zod").ZodObject<{
285
+ api_key: import("zod").ZodString;
286
+ events: import("zod").ZodArray<import("zod").ZodObject<{
287
+ event_type: import("zod").ZodString;
288
+ user_id: import("zod").ZodOptional<import("zod").ZodString>;
289
+ device_id: import("zod").ZodOptional<import("zod").ZodString>;
290
+ time: import("zod").ZodOptional<import("zod").ZodNumber>;
291
+ event_properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
292
+ user_properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
293
+ app_version: import("zod").ZodOptional<import("zod").ZodString>;
294
+ platform: import("zod").ZodOptional<import("zod").ZodString>;
295
+ os_name: import("zod").ZodOptional<import("zod").ZodString>;
296
+ os_version: import("zod").ZodOptional<import("zod").ZodString>;
297
+ device_brand: import("zod").ZodOptional<import("zod").ZodString>;
298
+ device_manufacturer: import("zod").ZodOptional<import("zod").ZodString>;
299
+ device_model: import("zod").ZodOptional<import("zod").ZodString>;
300
+ carrier: import("zod").ZodOptional<import("zod").ZodString>;
301
+ country: import("zod").ZodOptional<import("zod").ZodString>;
302
+ region: import("zod").ZodOptional<import("zod").ZodString>;
303
+ city: import("zod").ZodOptional<import("zod").ZodString>;
304
+ language: import("zod").ZodOptional<import("zod").ZodString>;
305
+ ip: import("zod").ZodOptional<import("zod").ZodString>;
306
+ insert_id: import("zod").ZodOptional<import("zod").ZodString>;
307
+ session_id: import("zod").ZodOptional<import("zod").ZodNumber>;
308
+ }, "strip", import("zod").ZodTypeAny, {
309
+ event_type: string;
310
+ user_id?: string | undefined;
311
+ device_id?: string | undefined;
312
+ time?: number | undefined;
313
+ event_properties?: Record<string, unknown> | undefined;
314
+ user_properties?: Record<string, unknown> | undefined;
315
+ app_version?: string | undefined;
316
+ platform?: string | undefined;
317
+ os_name?: string | undefined;
318
+ os_version?: string | undefined;
319
+ device_brand?: string | undefined;
320
+ device_manufacturer?: string | undefined;
321
+ device_model?: string | undefined;
322
+ carrier?: string | undefined;
323
+ country?: string | undefined;
324
+ region?: string | undefined;
325
+ city?: string | undefined;
326
+ language?: string | undefined;
327
+ ip?: string | undefined;
328
+ insert_id?: string | undefined;
329
+ session_id?: number | undefined;
330
+ }, {
331
+ event_type: string;
332
+ user_id?: string | undefined;
333
+ device_id?: string | undefined;
334
+ time?: number | undefined;
335
+ event_properties?: Record<string, unknown> | undefined;
336
+ user_properties?: Record<string, unknown> | undefined;
337
+ app_version?: string | undefined;
338
+ platform?: string | undefined;
339
+ os_name?: string | undefined;
340
+ os_version?: string | undefined;
341
+ device_brand?: string | undefined;
342
+ device_manufacturer?: string | undefined;
343
+ device_model?: string | undefined;
344
+ carrier?: string | undefined;
345
+ country?: string | undefined;
346
+ region?: string | undefined;
347
+ city?: string | undefined;
348
+ language?: string | undefined;
349
+ ip?: string | undefined;
350
+ insert_id?: string | undefined;
351
+ session_id?: number | undefined;
352
+ }>, "many">;
353
+ options: import("zod").ZodOptional<import("zod").ZodObject<{
354
+ min_id_length: import("zod").ZodOptional<import("zod").ZodNumber>;
355
+ }, "strip", import("zod").ZodTypeAny, {
356
+ min_id_length?: number | undefined;
357
+ }, {
358
+ min_id_length?: number | undefined;
359
+ }>>;
360
+ }, "strip", import("zod").ZodTypeAny, {
361
+ api_key: string;
362
+ events: {
363
+ event_type: string;
364
+ user_id?: string | undefined;
365
+ device_id?: string | undefined;
366
+ time?: number | undefined;
367
+ event_properties?: Record<string, unknown> | undefined;
368
+ user_properties?: Record<string, unknown> | undefined;
369
+ app_version?: string | undefined;
370
+ platform?: string | undefined;
371
+ os_name?: string | undefined;
372
+ os_version?: string | undefined;
373
+ device_brand?: string | undefined;
374
+ device_manufacturer?: string | undefined;
375
+ device_model?: string | undefined;
376
+ carrier?: string | undefined;
377
+ country?: string | undefined;
378
+ region?: string | undefined;
379
+ city?: string | undefined;
380
+ language?: string | undefined;
381
+ ip?: string | undefined;
382
+ insert_id?: string | undefined;
383
+ session_id?: number | undefined;
384
+ }[];
385
+ options?: {
386
+ min_id_length?: number | undefined;
387
+ } | undefined;
388
+ }, {
389
+ api_key: string;
390
+ events: {
391
+ event_type: string;
392
+ user_id?: string | undefined;
393
+ device_id?: string | undefined;
394
+ time?: number | undefined;
395
+ event_properties?: Record<string, unknown> | undefined;
396
+ user_properties?: Record<string, unknown> | undefined;
397
+ app_version?: string | undefined;
398
+ platform?: string | undefined;
399
+ os_name?: string | undefined;
400
+ os_version?: string | undefined;
401
+ device_brand?: string | undefined;
402
+ device_manufacturer?: string | undefined;
403
+ device_model?: string | undefined;
404
+ carrier?: string | undefined;
405
+ country?: string | undefined;
406
+ region?: string | undefined;
407
+ city?: string | undefined;
408
+ language?: string | undefined;
409
+ ip?: string | undefined;
410
+ insert_id?: string | undefined;
411
+ session_id?: number | undefined;
412
+ }[];
413
+ options?: {
414
+ min_id_length?: number | undefined;
415
+ } | undefined;
416
+ }>;
417
+ readonly output: import("zod").ZodObject<{
418
+ code: import("zod").ZodNumber;
419
+ events_ingested: import("zod").ZodOptional<import("zod").ZodNumber>;
420
+ payload_size_bytes: import("zod").ZodOptional<import("zod").ZodNumber>;
421
+ server_upload_time: import("zod").ZodOptional<import("zod").ZodNumber>;
422
+ }, "strip", import("zod").ZodTypeAny, {
423
+ code: number;
424
+ events_ingested?: number | undefined;
425
+ payload_size_bytes?: number | undefined;
426
+ server_upload_time?: number | undefined;
427
+ }, {
428
+ code: number;
429
+ events_ingested?: number | undefined;
430
+ payload_size_bytes?: number | undefined;
431
+ server_upload_time?: number | undefined;
432
+ }>;
433
+ };
434
+ readonly 'events.uploadBatch': {
435
+ readonly input: import("zod").ZodObject<{
436
+ api_key: import("zod").ZodString;
437
+ events: import("zod").ZodArray<import("zod").ZodObject<{
438
+ event_type: import("zod").ZodString;
439
+ user_id: import("zod").ZodOptional<import("zod").ZodString>;
440
+ device_id: import("zod").ZodOptional<import("zod").ZodString>;
441
+ time: import("zod").ZodOptional<import("zod").ZodNumber>;
442
+ event_properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
443
+ user_properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
444
+ app_version: import("zod").ZodOptional<import("zod").ZodString>;
445
+ platform: import("zod").ZodOptional<import("zod").ZodString>;
446
+ os_name: import("zod").ZodOptional<import("zod").ZodString>;
447
+ os_version: import("zod").ZodOptional<import("zod").ZodString>;
448
+ device_brand: import("zod").ZodOptional<import("zod").ZodString>;
449
+ device_manufacturer: import("zod").ZodOptional<import("zod").ZodString>;
450
+ device_model: import("zod").ZodOptional<import("zod").ZodString>;
451
+ carrier: import("zod").ZodOptional<import("zod").ZodString>;
452
+ country: import("zod").ZodOptional<import("zod").ZodString>;
453
+ region: import("zod").ZodOptional<import("zod").ZodString>;
454
+ city: import("zod").ZodOptional<import("zod").ZodString>;
455
+ language: import("zod").ZodOptional<import("zod").ZodString>;
456
+ ip: import("zod").ZodOptional<import("zod").ZodString>;
457
+ insert_id: import("zod").ZodOptional<import("zod").ZodString>;
458
+ session_id: import("zod").ZodOptional<import("zod").ZodNumber>;
459
+ }, "strip", import("zod").ZodTypeAny, {
460
+ event_type: string;
461
+ user_id?: string | undefined;
462
+ device_id?: string | undefined;
463
+ time?: number | undefined;
464
+ event_properties?: Record<string, unknown> | undefined;
465
+ user_properties?: Record<string, unknown> | undefined;
466
+ app_version?: string | undefined;
467
+ platform?: string | undefined;
468
+ os_name?: string | undefined;
469
+ os_version?: string | undefined;
470
+ device_brand?: string | undefined;
471
+ device_manufacturer?: string | undefined;
472
+ device_model?: string | undefined;
473
+ carrier?: string | undefined;
474
+ country?: string | undefined;
475
+ region?: string | undefined;
476
+ city?: string | undefined;
477
+ language?: string | undefined;
478
+ ip?: string | undefined;
479
+ insert_id?: string | undefined;
480
+ session_id?: number | undefined;
481
+ }, {
482
+ event_type: string;
483
+ user_id?: string | undefined;
484
+ device_id?: string | undefined;
485
+ time?: number | undefined;
486
+ event_properties?: Record<string, unknown> | undefined;
487
+ user_properties?: Record<string, unknown> | undefined;
488
+ app_version?: string | undefined;
489
+ platform?: string | undefined;
490
+ os_name?: string | undefined;
491
+ os_version?: string | undefined;
492
+ device_brand?: string | undefined;
493
+ device_manufacturer?: string | undefined;
494
+ device_model?: string | undefined;
495
+ carrier?: string | undefined;
496
+ country?: string | undefined;
497
+ region?: string | undefined;
498
+ city?: string | undefined;
499
+ language?: string | undefined;
500
+ ip?: string | undefined;
501
+ insert_id?: string | undefined;
502
+ session_id?: number | undefined;
503
+ }>, "many">;
504
+ options: import("zod").ZodOptional<import("zod").ZodObject<{
505
+ min_id_length: import("zod").ZodOptional<import("zod").ZodNumber>;
506
+ }, "strip", import("zod").ZodTypeAny, {
507
+ min_id_length?: number | undefined;
508
+ }, {
509
+ min_id_length?: number | undefined;
510
+ }>>;
511
+ }, "strip", import("zod").ZodTypeAny, {
512
+ api_key: string;
513
+ events: {
514
+ event_type: string;
515
+ user_id?: string | undefined;
516
+ device_id?: string | undefined;
517
+ time?: number | undefined;
518
+ event_properties?: Record<string, unknown> | undefined;
519
+ user_properties?: Record<string, unknown> | undefined;
520
+ app_version?: string | undefined;
521
+ platform?: string | undefined;
522
+ os_name?: string | undefined;
523
+ os_version?: string | undefined;
524
+ device_brand?: string | undefined;
525
+ device_manufacturer?: string | undefined;
526
+ device_model?: string | undefined;
527
+ carrier?: string | undefined;
528
+ country?: string | undefined;
529
+ region?: string | undefined;
530
+ city?: string | undefined;
531
+ language?: string | undefined;
532
+ ip?: string | undefined;
533
+ insert_id?: string | undefined;
534
+ session_id?: number | undefined;
535
+ }[];
536
+ options?: {
537
+ min_id_length?: number | undefined;
538
+ } | undefined;
539
+ }, {
540
+ api_key: string;
541
+ events: {
542
+ event_type: string;
543
+ user_id?: string | undefined;
544
+ device_id?: string | undefined;
545
+ time?: number | undefined;
546
+ event_properties?: Record<string, unknown> | undefined;
547
+ user_properties?: Record<string, unknown> | undefined;
548
+ app_version?: string | undefined;
549
+ platform?: string | undefined;
550
+ os_name?: string | undefined;
551
+ os_version?: string | undefined;
552
+ device_brand?: string | undefined;
553
+ device_manufacturer?: string | undefined;
554
+ device_model?: string | undefined;
555
+ carrier?: string | undefined;
556
+ country?: string | undefined;
557
+ region?: string | undefined;
558
+ city?: string | undefined;
559
+ language?: string | undefined;
560
+ ip?: string | undefined;
561
+ insert_id?: string | undefined;
562
+ session_id?: number | undefined;
563
+ }[];
564
+ options?: {
565
+ min_id_length?: number | undefined;
566
+ } | undefined;
567
+ }>;
568
+ readonly output: import("zod").ZodObject<{
569
+ code: import("zod").ZodNumber;
570
+ events_ingested: import("zod").ZodOptional<import("zod").ZodNumber>;
571
+ payload_size_bytes: import("zod").ZodOptional<import("zod").ZodNumber>;
572
+ server_upload_time: import("zod").ZodOptional<import("zod").ZodNumber>;
573
+ }, "strip", import("zod").ZodTypeAny, {
574
+ code: number;
575
+ events_ingested?: number | undefined;
576
+ payload_size_bytes?: number | undefined;
577
+ server_upload_time?: number | undefined;
578
+ }, {
579
+ code: number;
580
+ events_ingested?: number | undefined;
581
+ payload_size_bytes?: number | undefined;
582
+ server_upload_time?: number | undefined;
583
+ }>;
584
+ };
585
+ readonly 'events.identifyUser': {
586
+ readonly input: import("zod").ZodObject<{
587
+ api_key: import("zod").ZodString;
588
+ identification: import("zod").ZodArray<import("zod").ZodObject<{
589
+ user_id: import("zod").ZodOptional<import("zod").ZodString>;
590
+ device_id: import("zod").ZodOptional<import("zod").ZodString>;
591
+ user_properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
592
+ }, "strip", import("zod").ZodTypeAny, {
593
+ user_properties: Record<string, unknown>;
594
+ user_id?: string | undefined;
595
+ device_id?: string | undefined;
596
+ }, {
597
+ user_properties: Record<string, unknown>;
598
+ user_id?: string | undefined;
599
+ device_id?: string | undefined;
600
+ }>, "many">;
601
+ }, "strip", import("zod").ZodTypeAny, {
602
+ api_key: string;
603
+ identification: {
604
+ user_properties: Record<string, unknown>;
605
+ user_id?: string | undefined;
606
+ device_id?: string | undefined;
607
+ }[];
608
+ }, {
609
+ api_key: string;
610
+ identification: {
611
+ user_properties: Record<string, unknown>;
612
+ user_id?: string | undefined;
613
+ device_id?: string | undefined;
614
+ }[];
615
+ }>;
616
+ readonly output: import("zod").ZodObject<{
617
+ code: import("zod").ZodNumber;
618
+ error: import("zod").ZodOptional<import("zod").ZodString>;
619
+ }, "strip", import("zod").ZodTypeAny, {
620
+ code: number;
621
+ error?: string | undefined;
622
+ }, {
623
+ code: number;
624
+ error?: string | undefined;
625
+ }>;
626
+ };
627
+ readonly 'events.getList': {
628
+ readonly input: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
629
+ readonly output: import("zod").ZodObject<{
630
+ data: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
631
+ event_type: import("zod").ZodOptional<import("zod").ZodString>;
632
+ display_name: import("zod").ZodOptional<import("zod").ZodString>;
633
+ totals: import("zod").ZodOptional<import("zod").ZodNumber>;
634
+ totals_delta: import("zod").ZodOptional<import("zod").ZodNumber>;
635
+ hidden: import("zod").ZodOptional<import("zod").ZodBoolean>;
636
+ deleted: import("zod").ZodOptional<import("zod").ZodBoolean>;
637
+ non_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
638
+ }, "strip", import("zod").ZodTypeAny, {
639
+ event_type?: string | undefined;
640
+ display_name?: string | undefined;
641
+ totals?: number | undefined;
642
+ totals_delta?: number | undefined;
643
+ hidden?: boolean | undefined;
644
+ deleted?: boolean | undefined;
645
+ non_active?: boolean | undefined;
646
+ }, {
647
+ event_type?: string | undefined;
648
+ display_name?: string | undefined;
649
+ totals?: number | undefined;
650
+ totals_delta?: number | undefined;
651
+ hidden?: boolean | undefined;
652
+ deleted?: boolean | undefined;
653
+ non_active?: boolean | undefined;
654
+ }>, "many">>;
655
+ }, "strip", import("zod").ZodTypeAny, {
656
+ data?: {
657
+ event_type?: string | undefined;
658
+ display_name?: string | undefined;
659
+ totals?: number | undefined;
660
+ totals_delta?: number | undefined;
661
+ hidden?: boolean | undefined;
662
+ deleted?: boolean | undefined;
663
+ non_active?: boolean | undefined;
664
+ }[] | undefined;
665
+ }, {
666
+ data?: {
667
+ event_type?: string | undefined;
668
+ display_name?: string | undefined;
669
+ totals?: number | undefined;
670
+ totals_delta?: number | undefined;
671
+ hidden?: boolean | undefined;
672
+ deleted?: boolean | undefined;
673
+ non_active?: boolean | undefined;
674
+ }[] | undefined;
675
+ }>;
676
+ };
677
+ readonly 'users.search': {
678
+ readonly input: import("zod").ZodObject<{
679
+ user: import("zod").ZodString;
680
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
681
+ offset: import("zod").ZodOptional<import("zod").ZodNumber>;
682
+ }, "strip", import("zod").ZodTypeAny, {
683
+ user: string;
684
+ limit?: number | undefined;
685
+ offset?: number | undefined;
686
+ }, {
687
+ user: string;
688
+ limit?: number | undefined;
689
+ offset?: number | undefined;
690
+ }>;
691
+ readonly output: import("zod").ZodObject<{
692
+ matches: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
693
+ amplitude_id: import("zod").ZodNumber;
694
+ user_id: import("zod").ZodOptional<import("zod").ZodString>;
695
+ last_seen: import("zod").ZodOptional<import("zod").ZodNumber>;
696
+ is_identified: import("zod").ZodOptional<import("zod").ZodBoolean>;
697
+ country: import("zod").ZodOptional<import("zod").ZodString>;
698
+ city: import("zod").ZodOptional<import("zod").ZodString>;
699
+ platform: import("zod").ZodOptional<import("zod").ZodString>;
700
+ os: import("zod").ZodOptional<import("zod").ZodString>;
701
+ device: import("zod").ZodOptional<import("zod").ZodString>;
702
+ }, "strip", import("zod").ZodTypeAny, {
703
+ amplitude_id: number;
704
+ user_id?: string | undefined;
705
+ platform?: string | undefined;
706
+ country?: string | undefined;
707
+ city?: string | undefined;
708
+ last_seen?: number | undefined;
709
+ is_identified?: boolean | undefined;
710
+ os?: string | undefined;
711
+ device?: string | undefined;
712
+ }, {
713
+ amplitude_id: number;
714
+ user_id?: string | undefined;
715
+ platform?: string | undefined;
716
+ country?: string | undefined;
717
+ city?: string | undefined;
718
+ last_seen?: number | undefined;
719
+ is_identified?: boolean | undefined;
720
+ os?: string | undefined;
721
+ device?: string | undefined;
722
+ }>, "many">>;
723
+ next: import("zod").ZodOptional<import("zod").ZodString>;
724
+ }, "strip", import("zod").ZodTypeAny, {
725
+ matches?: {
726
+ amplitude_id: number;
727
+ user_id?: string | undefined;
728
+ platform?: string | undefined;
729
+ country?: string | undefined;
730
+ city?: string | undefined;
731
+ last_seen?: number | undefined;
732
+ is_identified?: boolean | undefined;
733
+ os?: string | undefined;
734
+ device?: string | undefined;
735
+ }[] | undefined;
736
+ next?: string | undefined;
737
+ }, {
738
+ matches?: {
739
+ amplitude_id: number;
740
+ user_id?: string | undefined;
741
+ platform?: string | undefined;
742
+ country?: string | undefined;
743
+ city?: string | undefined;
744
+ last_seen?: number | undefined;
745
+ is_identified?: boolean | undefined;
746
+ os?: string | undefined;
747
+ device?: string | undefined;
748
+ }[] | undefined;
749
+ next?: string | undefined;
750
+ }>;
751
+ };
752
+ readonly 'users.getProfile': {
753
+ readonly input: import("zod").ZodObject<{
754
+ user_id: import("zod").ZodOptional<import("zod").ZodString>;
755
+ amplitude_id: import("zod").ZodOptional<import("zod").ZodNumber>;
756
+ }, "strip", import("zod").ZodTypeAny, {
757
+ user_id?: string | undefined;
758
+ amplitude_id?: number | undefined;
759
+ }, {
760
+ user_id?: string | undefined;
761
+ amplitude_id?: number | undefined;
762
+ }>;
763
+ readonly output: import("zod").ZodObject<{
764
+ userData: import("zod").ZodOptional<import("zod").ZodObject<{
765
+ user_id: import("zod").ZodOptional<import("zod").ZodString>;
766
+ amplitude_id: import("zod").ZodOptional<import("zod").ZodNumber>;
767
+ canonical_amplitude_id: import("zod").ZodOptional<import("zod").ZodNumber>;
768
+ merged_amplitude_ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
769
+ is_identified: import("zod").ZodOptional<import("zod").ZodBoolean>;
770
+ user_properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
771
+ country: import("zod").ZodOptional<import("zod").ZodString>;
772
+ region: import("zod").ZodOptional<import("zod").ZodString>;
773
+ city: import("zod").ZodOptional<import("zod").ZodString>;
774
+ language: import("zod").ZodOptional<import("zod").ZodString>;
775
+ platform: import("zod").ZodOptional<import("zod").ZodString>;
776
+ os: import("zod").ZodOptional<import("zod").ZodString>;
777
+ device: import("zod").ZodOptional<import("zod").ZodString>;
778
+ last_seen: import("zod").ZodOptional<import("zod").ZodNumber>;
779
+ }, "strip", import("zod").ZodTypeAny, {
780
+ user_id?: string | undefined;
781
+ user_properties?: Record<string, unknown> | undefined;
782
+ platform?: string | undefined;
783
+ country?: string | undefined;
784
+ region?: string | undefined;
785
+ city?: string | undefined;
786
+ language?: string | undefined;
787
+ amplitude_id?: number | undefined;
788
+ last_seen?: number | undefined;
789
+ is_identified?: boolean | undefined;
790
+ os?: string | undefined;
791
+ device?: string | undefined;
792
+ canonical_amplitude_id?: number | undefined;
793
+ merged_amplitude_ids?: number[] | undefined;
794
+ }, {
795
+ user_id?: string | undefined;
796
+ user_properties?: Record<string, unknown> | undefined;
797
+ platform?: string | undefined;
798
+ country?: string | undefined;
799
+ region?: string | undefined;
800
+ city?: string | undefined;
801
+ language?: string | undefined;
802
+ amplitude_id?: number | undefined;
803
+ last_seen?: number | undefined;
804
+ is_identified?: boolean | undefined;
805
+ os?: string | undefined;
806
+ device?: string | undefined;
807
+ canonical_amplitude_id?: number | undefined;
808
+ merged_amplitude_ids?: number[] | undefined;
809
+ }>>;
810
+ }, "strip", import("zod").ZodTypeAny, {
811
+ userData?: {
812
+ user_id?: string | undefined;
813
+ user_properties?: Record<string, unknown> | undefined;
814
+ platform?: string | undefined;
815
+ country?: string | undefined;
816
+ region?: string | undefined;
817
+ city?: string | undefined;
818
+ language?: string | undefined;
819
+ amplitude_id?: number | undefined;
820
+ last_seen?: number | undefined;
821
+ is_identified?: boolean | undefined;
822
+ os?: string | undefined;
823
+ device?: string | undefined;
824
+ canonical_amplitude_id?: number | undefined;
825
+ merged_amplitude_ids?: number[] | undefined;
826
+ } | undefined;
827
+ }, {
828
+ userData?: {
829
+ user_id?: string | undefined;
830
+ user_properties?: Record<string, unknown> | undefined;
831
+ platform?: string | undefined;
832
+ country?: string | undefined;
833
+ region?: string | undefined;
834
+ city?: string | undefined;
835
+ language?: string | undefined;
836
+ amplitude_id?: number | undefined;
837
+ last_seen?: number | undefined;
838
+ is_identified?: boolean | undefined;
839
+ os?: string | undefined;
840
+ device?: string | undefined;
841
+ canonical_amplitude_id?: number | undefined;
842
+ merged_amplitude_ids?: number[] | undefined;
843
+ } | undefined;
844
+ }>;
845
+ };
846
+ readonly 'users.getActivity': {
847
+ readonly input: import("zod").ZodObject<{
848
+ user: import("zod").ZodNumber;
849
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
850
+ offset: import("zod").ZodOptional<import("zod").ZodNumber>;
851
+ }, "strip", import("zod").ZodTypeAny, {
852
+ user: number;
853
+ limit?: number | undefined;
854
+ offset?: number | undefined;
855
+ }, {
856
+ user: number;
857
+ limit?: number | undefined;
858
+ offset?: number | undefined;
859
+ }>;
860
+ readonly output: import("zod").ZodObject<{
861
+ events: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
862
+ event_type: import("zod").ZodOptional<import("zod").ZodString>;
863
+ event_time: import("zod").ZodOptional<import("zod").ZodString>;
864
+ event_properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
865
+ session_id: import("zod").ZodOptional<import("zod").ZodNumber>;
866
+ amplitude_id: import("zod").ZodOptional<import("zod").ZodNumber>;
867
+ }, "strip", import("zod").ZodTypeAny, {
868
+ event_type?: string | undefined;
869
+ event_properties?: Record<string, unknown> | undefined;
870
+ session_id?: number | undefined;
871
+ amplitude_id?: number | undefined;
872
+ event_time?: string | undefined;
873
+ }, {
874
+ event_type?: string | undefined;
875
+ event_properties?: Record<string, unknown> | undefined;
876
+ session_id?: number | undefined;
877
+ amplitude_id?: number | undefined;
878
+ event_time?: string | undefined;
879
+ }>, "many">>;
880
+ userData: import("zod").ZodOptional<import("zod").ZodObject<{
881
+ num_events: import("zod").ZodOptional<import("zod").ZodNumber>;
882
+ num_sessions: import("zod").ZodOptional<import("zod").ZodNumber>;
883
+ first_used: import("zod").ZodOptional<import("zod").ZodString>;
884
+ last_used: import("zod").ZodOptional<import("zod").ZodString>;
885
+ canonical_amplitude_id: import("zod").ZodOptional<import("zod").ZodNumber>;
886
+ }, "strip", import("zod").ZodTypeAny, {
887
+ canonical_amplitude_id?: number | undefined;
888
+ num_events?: number | undefined;
889
+ num_sessions?: number | undefined;
890
+ first_used?: string | undefined;
891
+ last_used?: string | undefined;
892
+ }, {
893
+ canonical_amplitude_id?: number | undefined;
894
+ num_events?: number | undefined;
895
+ num_sessions?: number | undefined;
896
+ first_used?: string | undefined;
897
+ last_used?: string | undefined;
898
+ }>>;
899
+ }, "strip", import("zod").ZodTypeAny, {
900
+ events?: {
901
+ event_type?: string | undefined;
902
+ event_properties?: Record<string, unknown> | undefined;
903
+ session_id?: number | undefined;
904
+ amplitude_id?: number | undefined;
905
+ event_time?: string | undefined;
906
+ }[] | undefined;
907
+ userData?: {
908
+ canonical_amplitude_id?: number | undefined;
909
+ num_events?: number | undefined;
910
+ num_sessions?: number | undefined;
911
+ first_used?: string | undefined;
912
+ last_used?: string | undefined;
913
+ } | undefined;
914
+ }, {
915
+ events?: {
916
+ event_type?: string | undefined;
917
+ event_properties?: Record<string, unknown> | undefined;
918
+ session_id?: number | undefined;
919
+ amplitude_id?: number | undefined;
920
+ event_time?: string | undefined;
921
+ }[] | undefined;
922
+ userData?: {
923
+ canonical_amplitude_id?: number | undefined;
924
+ num_events?: number | undefined;
925
+ num_sessions?: number | undefined;
926
+ first_used?: string | undefined;
927
+ last_used?: string | undefined;
928
+ } | undefined;
929
+ }>;
930
+ };
931
+ readonly 'cohorts.list': {
932
+ readonly input: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
933
+ readonly output: import("zod").ZodObject<{
934
+ cohorts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
935
+ id: import("zod").ZodString;
936
+ name: import("zod").ZodString;
937
+ owners: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
938
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
939
+ published: import("zod").ZodOptional<import("zod").ZodBoolean>;
940
+ archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
941
+ app_id: import("zod").ZodOptional<import("zod").ZodNumber>;
942
+ size: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
943
+ last_computed: import("zod").ZodOptional<import("zod").ZodNumber>;
944
+ last_modified: import("zod").ZodOptional<import("zod").ZodNumber>;
945
+ is_predefined: import("zod").ZodOptional<import("zod").ZodBoolean>;
946
+ type: import("zod").ZodOptional<import("zod").ZodString>;
947
+ }, "strip", import("zod").ZodTypeAny, {
948
+ id: string;
949
+ name: string;
950
+ type?: string | undefined;
951
+ description?: string | null | undefined;
952
+ owners?: string[] | undefined;
953
+ published?: boolean | undefined;
954
+ archived?: boolean | undefined;
955
+ app_id?: number | undefined;
956
+ size?: number | null | undefined;
957
+ last_computed?: number | undefined;
958
+ last_modified?: number | undefined;
959
+ is_predefined?: boolean | undefined;
960
+ }, {
961
+ id: string;
962
+ name: string;
963
+ type?: string | undefined;
964
+ description?: string | null | undefined;
965
+ owners?: string[] | undefined;
966
+ published?: boolean | undefined;
967
+ archived?: boolean | undefined;
968
+ app_id?: number | undefined;
969
+ size?: number | null | undefined;
970
+ last_computed?: number | undefined;
971
+ last_modified?: number | undefined;
972
+ is_predefined?: boolean | undefined;
973
+ }>, "many">>;
974
+ }, "strip", import("zod").ZodTypeAny, {
975
+ cohorts?: {
976
+ id: string;
977
+ name: string;
978
+ type?: string | undefined;
979
+ description?: string | null | undefined;
980
+ owners?: string[] | undefined;
981
+ published?: boolean | undefined;
982
+ archived?: boolean | undefined;
983
+ app_id?: number | undefined;
984
+ size?: number | null | undefined;
985
+ last_computed?: number | undefined;
986
+ last_modified?: number | undefined;
987
+ is_predefined?: boolean | undefined;
988
+ }[] | undefined;
989
+ }, {
990
+ cohorts?: {
991
+ id: string;
992
+ name: string;
993
+ type?: string | undefined;
994
+ description?: string | null | undefined;
995
+ owners?: string[] | undefined;
996
+ published?: boolean | undefined;
997
+ archived?: boolean | undefined;
998
+ app_id?: number | undefined;
999
+ size?: number | null | undefined;
1000
+ last_computed?: number | undefined;
1001
+ last_modified?: number | undefined;
1002
+ is_predefined?: boolean | undefined;
1003
+ }[] | undefined;
1004
+ }>;
1005
+ };
1006
+ readonly 'cohorts.get': {
1007
+ readonly input: import("zod").ZodObject<{
1008
+ cohort_id: import("zod").ZodString;
1009
+ }, "strip", import("zod").ZodTypeAny, {
1010
+ cohort_id: string;
1011
+ }, {
1012
+ cohort_id: string;
1013
+ }>;
1014
+ readonly output: import("zod").ZodObject<{
1015
+ cohort: import("zod").ZodOptional<import("zod").ZodObject<{
1016
+ id: import("zod").ZodString;
1017
+ name: import("zod").ZodString;
1018
+ owners: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1019
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1020
+ published: import("zod").ZodOptional<import("zod").ZodBoolean>;
1021
+ archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1022
+ app_id: import("zod").ZodOptional<import("zod").ZodNumber>;
1023
+ size: import("zod").ZodOptional<import("zod").ZodNumber>;
1024
+ last_computed: import("zod").ZodOptional<import("zod").ZodNumber>;
1025
+ last_modified: import("zod").ZodOptional<import("zod").ZodNumber>;
1026
+ is_predefined: import("zod").ZodOptional<import("zod").ZodBoolean>;
1027
+ type: import("zod").ZodOptional<import("zod").ZodString>;
1028
+ }, "strip", import("zod").ZodTypeAny, {
1029
+ id: string;
1030
+ name: string;
1031
+ type?: string | undefined;
1032
+ description?: string | null | undefined;
1033
+ owners?: string[] | undefined;
1034
+ published?: boolean | undefined;
1035
+ archived?: boolean | undefined;
1036
+ app_id?: number | undefined;
1037
+ size?: number | undefined;
1038
+ last_computed?: number | undefined;
1039
+ last_modified?: number | undefined;
1040
+ is_predefined?: boolean | undefined;
1041
+ }, {
1042
+ id: string;
1043
+ name: string;
1044
+ type?: string | undefined;
1045
+ description?: string | null | undefined;
1046
+ owners?: string[] | undefined;
1047
+ published?: boolean | undefined;
1048
+ archived?: boolean | undefined;
1049
+ app_id?: number | undefined;
1050
+ size?: number | undefined;
1051
+ last_computed?: number | undefined;
1052
+ last_modified?: number | undefined;
1053
+ is_predefined?: boolean | undefined;
1054
+ }>>;
1055
+ }, "strip", import("zod").ZodTypeAny, {
1056
+ cohort?: {
1057
+ id: string;
1058
+ name: string;
1059
+ type?: string | undefined;
1060
+ description?: string | null | undefined;
1061
+ owners?: string[] | undefined;
1062
+ published?: boolean | undefined;
1063
+ archived?: boolean | undefined;
1064
+ app_id?: number | undefined;
1065
+ size?: number | undefined;
1066
+ last_computed?: number | undefined;
1067
+ last_modified?: number | undefined;
1068
+ is_predefined?: boolean | undefined;
1069
+ } | undefined;
1070
+ }, {
1071
+ cohort?: {
1072
+ id: string;
1073
+ name: string;
1074
+ type?: string | undefined;
1075
+ description?: string | null | undefined;
1076
+ owners?: string[] | undefined;
1077
+ published?: boolean | undefined;
1078
+ archived?: boolean | undefined;
1079
+ app_id?: number | undefined;
1080
+ size?: number | undefined;
1081
+ last_computed?: number | undefined;
1082
+ last_modified?: number | undefined;
1083
+ is_predefined?: boolean | undefined;
1084
+ } | undefined;
1085
+ }>;
1086
+ };
1087
+ readonly 'cohorts.create': {
1088
+ readonly input: import("zod").ZodObject<{
1089
+ name: import("zod").ZodString;
1090
+ app_id: import("zod").ZodNumber;
1091
+ id_type: import("zod").ZodEnum<["BY_AMP_ID", "BY_USER_ID", "BY_DEVICE_ID"]>;
1092
+ ids: import("zod").ZodArray<import("zod").ZodString, "many">;
1093
+ owners: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1094
+ description: import("zod").ZodOptional<import("zod").ZodString>;
1095
+ published: import("zod").ZodOptional<import("zod").ZodBoolean>;
1096
+ }, "strip", import("zod").ZodTypeAny, {
1097
+ name: string;
1098
+ app_id: number;
1099
+ id_type: "BY_AMP_ID" | "BY_USER_ID" | "BY_DEVICE_ID";
1100
+ ids: string[];
1101
+ description?: string | undefined;
1102
+ owners?: string[] | undefined;
1103
+ published?: boolean | undefined;
1104
+ }, {
1105
+ name: string;
1106
+ app_id: number;
1107
+ id_type: "BY_AMP_ID" | "BY_USER_ID" | "BY_DEVICE_ID";
1108
+ ids: string[];
1109
+ description?: string | undefined;
1110
+ owners?: string[] | undefined;
1111
+ published?: boolean | undefined;
1112
+ }>;
1113
+ readonly output: import("zod").ZodObject<{
1114
+ cohort: import("zod").ZodOptional<import("zod").ZodObject<{
1115
+ id: import("zod").ZodString;
1116
+ name: import("zod").ZodString;
1117
+ size: import("zod").ZodOptional<import("zod").ZodNumber>;
1118
+ last_computed: import("zod").ZodOptional<import("zod").ZodNumber>;
1119
+ }, "strip", import("zod").ZodTypeAny, {
1120
+ id: string;
1121
+ name: string;
1122
+ size?: number | undefined;
1123
+ last_computed?: number | undefined;
1124
+ }, {
1125
+ id: string;
1126
+ name: string;
1127
+ size?: number | undefined;
1128
+ last_computed?: number | undefined;
1129
+ }>>;
1130
+ }, "strip", import("zod").ZodTypeAny, {
1131
+ cohort?: {
1132
+ id: string;
1133
+ name: string;
1134
+ size?: number | undefined;
1135
+ last_computed?: number | undefined;
1136
+ } | undefined;
1137
+ }, {
1138
+ cohort?: {
1139
+ id: string;
1140
+ name: string;
1141
+ size?: number | undefined;
1142
+ last_computed?: number | undefined;
1143
+ } | undefined;
1144
+ }>;
1145
+ };
1146
+ readonly 'cohorts.getMembers': {
1147
+ readonly input: import("zod").ZodObject<{
1148
+ request_id: import("zod").ZodString;
1149
+ }, "strip", import("zod").ZodTypeAny, {
1150
+ request_id: string;
1151
+ }, {
1152
+ request_id: string;
1153
+ }>;
1154
+ readonly output: import("zod").ZodObject<{
1155
+ status: import("zod").ZodOptional<import("zod").ZodString>;
1156
+ zip_url: import("zod").ZodOptional<import("zod").ZodString>;
1157
+ }, "strip", import("zod").ZodTypeAny, {
1158
+ status?: string | undefined;
1159
+ zip_url?: string | undefined;
1160
+ }, {
1161
+ status?: string | undefined;
1162
+ zip_url?: string | undefined;
1163
+ }>;
1164
+ };
1165
+ readonly 'charts.get': {
1166
+ readonly input: import("zod").ZodObject<{
1167
+ chart_id: import("zod").ZodString;
1168
+ }, "strip", import("zod").ZodTypeAny, {
1169
+ chart_id: string;
1170
+ }, {
1171
+ chart_id: string;
1172
+ }>;
1173
+ readonly output: import("zod").ZodObject<{
1174
+ data: import("zod").ZodOptional<import("zod").ZodObject<{
1175
+ series: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1176
+ type: import("zod").ZodOptional<import("zod").ZodString>;
1177
+ values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>;
1178
+ }, "strip", import("zod").ZodTypeAny, {
1179
+ values?: unknown[] | undefined;
1180
+ type?: string | undefined;
1181
+ }, {
1182
+ values?: unknown[] | undefined;
1183
+ type?: string | undefined;
1184
+ }>, "many">>;
1185
+ xValues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1186
+ }, "strip", import("zod").ZodTypeAny, {
1187
+ series?: {
1188
+ values?: unknown[] | undefined;
1189
+ type?: string | undefined;
1190
+ }[] | undefined;
1191
+ xValues?: string[] | undefined;
1192
+ }, {
1193
+ series?: {
1194
+ values?: unknown[] | undefined;
1195
+ type?: string | undefined;
1196
+ }[] | undefined;
1197
+ xValues?: string[] | undefined;
1198
+ }>>;
1199
+ seriesLabels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1200
+ title: import("zod").ZodOptional<import("zod").ZodString>;
1201
+ }, "strip", import("zod").ZodTypeAny, {
1202
+ data?: {
1203
+ series?: {
1204
+ values?: unknown[] | undefined;
1205
+ type?: string | undefined;
1206
+ }[] | undefined;
1207
+ xValues?: string[] | undefined;
1208
+ } | undefined;
1209
+ seriesLabels?: string[] | undefined;
1210
+ title?: string | undefined;
1211
+ }, {
1212
+ data?: {
1213
+ series?: {
1214
+ values?: unknown[] | undefined;
1215
+ type?: string | undefined;
1216
+ }[] | undefined;
1217
+ xValues?: string[] | undefined;
1218
+ } | undefined;
1219
+ seriesLabels?: string[] | undefined;
1220
+ title?: string | undefined;
1221
+ }>;
1222
+ };
1223
+ readonly 'dashboards.list': {
1224
+ readonly input: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
1225
+ readonly output: import("zod").ZodObject<{
1226
+ dashboards: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1227
+ id: import("zod").ZodNumber;
1228
+ name: import("zod").ZodString;
1229
+ description: import("zod").ZodOptional<import("zod").ZodString>;
1230
+ created: import("zod").ZodOptional<import("zod").ZodString>;
1231
+ lastUpdated: import("zod").ZodOptional<import("zod").ZodString>;
1232
+ createdBy: import("zod").ZodOptional<import("zod").ZodString>;
1233
+ published: import("zod").ZodOptional<import("zod").ZodBoolean>;
1234
+ }, "strip", import("zod").ZodTypeAny, {
1235
+ id: number;
1236
+ name: string;
1237
+ description?: string | undefined;
1238
+ published?: boolean | undefined;
1239
+ created?: string | undefined;
1240
+ lastUpdated?: string | undefined;
1241
+ createdBy?: string | undefined;
1242
+ }, {
1243
+ id: number;
1244
+ name: string;
1245
+ description?: string | undefined;
1246
+ published?: boolean | undefined;
1247
+ created?: string | undefined;
1248
+ lastUpdated?: string | undefined;
1249
+ createdBy?: string | undefined;
1250
+ }>, "many">>;
1251
+ }, "strip", import("zod").ZodTypeAny, {
1252
+ dashboards?: {
1253
+ id: number;
1254
+ name: string;
1255
+ description?: string | undefined;
1256
+ published?: boolean | undefined;
1257
+ created?: string | undefined;
1258
+ lastUpdated?: string | undefined;
1259
+ createdBy?: string | undefined;
1260
+ }[] | undefined;
1261
+ }, {
1262
+ dashboards?: {
1263
+ id: number;
1264
+ name: string;
1265
+ description?: string | undefined;
1266
+ published?: boolean | undefined;
1267
+ created?: string | undefined;
1268
+ lastUpdated?: string | undefined;
1269
+ createdBy?: string | undefined;
1270
+ }[] | undefined;
1271
+ }>;
1272
+ };
1273
+ readonly 'dashboards.get': {
1274
+ readonly input: import("zod").ZodObject<{
1275
+ dashboard_id: import("zod").ZodNumber;
1276
+ }, "strip", import("zod").ZodTypeAny, {
1277
+ dashboard_id: number;
1278
+ }, {
1279
+ dashboard_id: number;
1280
+ }>;
1281
+ readonly output: import("zod").ZodObject<{
1282
+ dashboard: import("zod").ZodOptional<import("zod").ZodObject<{
1283
+ id: import("zod").ZodNumber;
1284
+ name: import("zod").ZodString;
1285
+ description: import("zod").ZodOptional<import("zod").ZodString>;
1286
+ created: import("zod").ZodOptional<import("zod").ZodString>;
1287
+ lastUpdated: import("zod").ZodOptional<import("zod").ZodString>;
1288
+ createdBy: import("zod").ZodOptional<import("zod").ZodString>;
1289
+ published: import("zod").ZodOptional<import("zod").ZodBoolean>;
1290
+ charts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1291
+ id: import("zod").ZodString;
1292
+ name: import("zod").ZodOptional<import("zod").ZodString>;
1293
+ }, "strip", import("zod").ZodTypeAny, {
1294
+ id: string;
1295
+ name?: string | undefined;
1296
+ }, {
1297
+ id: string;
1298
+ name?: string | undefined;
1299
+ }>, "many">>;
1300
+ }, "strip", import("zod").ZodTypeAny, {
1301
+ id: number;
1302
+ name: string;
1303
+ description?: string | undefined;
1304
+ published?: boolean | undefined;
1305
+ created?: string | undefined;
1306
+ lastUpdated?: string | undefined;
1307
+ createdBy?: string | undefined;
1308
+ charts?: {
1309
+ id: string;
1310
+ name?: string | undefined;
1311
+ }[] | undefined;
1312
+ }, {
1313
+ id: number;
1314
+ name: string;
1315
+ description?: string | undefined;
1316
+ published?: boolean | undefined;
1317
+ created?: string | undefined;
1318
+ lastUpdated?: string | undefined;
1319
+ createdBy?: string | undefined;
1320
+ charts?: {
1321
+ id: string;
1322
+ name?: string | undefined;
1323
+ }[] | undefined;
1324
+ }>>;
1325
+ }, "strip", import("zod").ZodTypeAny, {
1326
+ dashboard?: {
1327
+ id: number;
1328
+ name: string;
1329
+ description?: string | undefined;
1330
+ published?: boolean | undefined;
1331
+ created?: string | undefined;
1332
+ lastUpdated?: string | undefined;
1333
+ createdBy?: string | undefined;
1334
+ charts?: {
1335
+ id: string;
1336
+ name?: string | undefined;
1337
+ }[] | undefined;
1338
+ } | undefined;
1339
+ }, {
1340
+ dashboard?: {
1341
+ id: number;
1342
+ name: string;
1343
+ description?: string | undefined;
1344
+ published?: boolean | undefined;
1345
+ created?: string | undefined;
1346
+ lastUpdated?: string | undefined;
1347
+ createdBy?: string | undefined;
1348
+ charts?: {
1349
+ id: string;
1350
+ name?: string | undefined;
1351
+ }[] | undefined;
1352
+ } | undefined;
1353
+ }>;
1354
+ };
1355
+ readonly 'annotations.list': {
1356
+ readonly input: import("zod").ZodObject<{
1357
+ app_id: import("zod").ZodOptional<import("zod").ZodNumber>;
1358
+ }, "strip", import("zod").ZodTypeAny, {
1359
+ app_id?: number | undefined;
1360
+ }, {
1361
+ app_id?: number | undefined;
1362
+ }>;
1363
+ readonly output: import("zod").ZodObject<{
1364
+ data: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1365
+ id: import("zod").ZodNumber;
1366
+ date: import("zod").ZodString;
1367
+ label: import("zod").ZodString;
1368
+ details: import("zod").ZodOptional<import("zod").ZodString>;
1369
+ app_id: import("zod").ZodOptional<import("zod").ZodNumber>;
1370
+ source: import("zod").ZodOptional<import("zod").ZodString>;
1371
+ }, "strip", import("zod").ZodTypeAny, {
1372
+ date: string;
1373
+ id: number;
1374
+ label: string;
1375
+ app_id?: number | undefined;
1376
+ details?: string | undefined;
1377
+ source?: string | undefined;
1378
+ }, {
1379
+ date: string;
1380
+ id: number;
1381
+ label: string;
1382
+ app_id?: number | undefined;
1383
+ details?: string | undefined;
1384
+ source?: string | undefined;
1385
+ }>, "many">>;
1386
+ }, "strip", import("zod").ZodTypeAny, {
1387
+ data?: {
1388
+ date: string;
1389
+ id: number;
1390
+ label: string;
1391
+ app_id?: number | undefined;
1392
+ details?: string | undefined;
1393
+ source?: string | undefined;
1394
+ }[] | undefined;
1395
+ }, {
1396
+ data?: {
1397
+ date: string;
1398
+ id: number;
1399
+ label: string;
1400
+ app_id?: number | undefined;
1401
+ details?: string | undefined;
1402
+ source?: string | undefined;
1403
+ }[] | undefined;
1404
+ }>;
1405
+ };
1406
+ readonly 'annotations.create': {
1407
+ readonly input: import("zod").ZodObject<{
1408
+ date: import("zod").ZodString;
1409
+ label: import("zod").ZodString;
1410
+ details: import("zod").ZodOptional<import("zod").ZodString>;
1411
+ app_id: import("zod").ZodOptional<import("zod").ZodNumber>;
1412
+ }, "strip", import("zod").ZodTypeAny, {
1413
+ date: string;
1414
+ label: string;
1415
+ app_id?: number | undefined;
1416
+ details?: string | undefined;
1417
+ }, {
1418
+ date: string;
1419
+ label: string;
1420
+ app_id?: number | undefined;
1421
+ details?: string | undefined;
1422
+ }>;
1423
+ readonly output: import("zod").ZodObject<{
1424
+ data: import("zod").ZodOptional<import("zod").ZodObject<{
1425
+ id: import("zod").ZodNumber;
1426
+ date: import("zod").ZodString;
1427
+ label: import("zod").ZodString;
1428
+ details: import("zod").ZodOptional<import("zod").ZodString>;
1429
+ app_id: import("zod").ZodOptional<import("zod").ZodNumber>;
1430
+ }, "strip", import("zod").ZodTypeAny, {
1431
+ date: string;
1432
+ id: number;
1433
+ label: string;
1434
+ app_id?: number | undefined;
1435
+ details?: string | undefined;
1436
+ }, {
1437
+ date: string;
1438
+ id: number;
1439
+ label: string;
1440
+ app_id?: number | undefined;
1441
+ details?: string | undefined;
1442
+ }>>;
1443
+ }, "strip", import("zod").ZodTypeAny, {
1444
+ data?: {
1445
+ date: string;
1446
+ id: number;
1447
+ label: string;
1448
+ app_id?: number | undefined;
1449
+ details?: string | undefined;
1450
+ } | undefined;
1451
+ }, {
1452
+ data?: {
1453
+ date: string;
1454
+ id: number;
1455
+ label: string;
1456
+ app_id?: number | undefined;
1457
+ details?: string | undefined;
1458
+ } | undefined;
1459
+ }>;
1460
+ };
1461
+ readonly 'exports.getData': {
1462
+ readonly input: import("zod").ZodObject<{
1463
+ start: import("zod").ZodString;
1464
+ end: import("zod").ZodString;
1465
+ }, "strip", import("zod").ZodTypeAny, {
1466
+ start: string;
1467
+ end: string;
1468
+ }, {
1469
+ start: string;
1470
+ end: string;
1471
+ }>;
1472
+ readonly output: import("zod").ZodObject<{
1473
+ status: import("zod").ZodOptional<import("zod").ZodString>;
1474
+ url: import("zod").ZodOptional<import("zod").ZodString>;
1475
+ }, "strip", import("zod").ZodTypeAny, {
1476
+ status?: string | undefined;
1477
+ url?: string | undefined;
1478
+ }, {
1479
+ status?: string | undefined;
1480
+ url?: string | undefined;
1481
+ }>;
1482
+ };
1483
+ };
1484
+ declare const defaultAuthType: AuthTypes;
1485
+ export declare const amplitudeAuthConfig: {
1486
+ readonly api_key: {
1487
+ readonly account: readonly ["one"];
1488
+ };
1489
+ };
1490
+ export type BaseAmplitudePlugin<T extends AmplitudePluginOptions> = CorsairPlugin<'amplitude', typeof AmplitudeSchema, typeof amplitudeEndpointsNested, typeof amplitudeWebhooksNested, T, typeof defaultAuthType>;
1491
+ export type InternalAmplitudePlugin = BaseAmplitudePlugin<AmplitudePluginOptions>;
1492
+ export type ExternalAmplitudePlugin<T extends AmplitudePluginOptions> = BaseAmplitudePlugin<T>;
1493
+ export declare function amplitude<const T extends AmplitudePluginOptions>(incomingOptions?: AmplitudePluginOptions & T): ExternalAmplitudePlugin<T>;
1494
+ export type { AmplitudeAnnotationCreatedEvent, AmplitudeAnnotationUpdatedEvent, AmplitudeCohortComputedEvent, AmplitudeExperimentExposureEvent, AmplitudeIdentifyEvent, AmplitudeMonitorAlertEvent, AmplitudeTrackEvent, AmplitudeWebhookOutputs, AmplitudeWebhookPayload, } from './webhooks/types';
1495
+ export { createAmplitudeMatch } from './webhooks/types';
1496
+ export type { AmplitudeEndpointInputs, AmplitudeEndpointOutputs, AnnotationsCreateInput, AnnotationsCreateResponse, AnnotationsListInput, AnnotationsListResponse, ChartsGetInput, ChartsGetResponse, CohortsCreateInput, CohortsCreateResponse, CohortsGetInput, CohortsGetMembersInput, CohortsGetMembersResponse, CohortsGetResponse, CohortsListInput, CohortsListResponse, DashboardsGetInput, DashboardsGetResponse, DashboardsListInput, DashboardsListResponse, EventsGetListInput, EventsGetListResponse, EventsIdentifyUserInput, EventsIdentifyUserResponse, EventsUploadBatchInput, EventsUploadBatchResponse, EventsUploadInput, EventsUploadResponse, ExportsGetDataInput, ExportsGetDataResponse, UsersGetActivityInput, UsersGetActivityResponse, UsersGetProfileInput, UsersGetProfileResponse, UsersSearchInput, UsersSearchResponse, } from './endpoints/types';
1497
+ //# sourceMappingURL=index.d.ts.map