@keystrokehq/segment 0.0.9 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/audiences.d.mts +17 -106
- package/dist/audiences.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/computed-traits.d.mts +13 -80
- package/dist/computed-traits.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/{crud-DV9e4Spi.mjs → crud-DGM2Ekdr.mjs} +1 -1
- package/dist/deletion-suppression.d.mts +11 -67
- package/dist/deletion-suppression.mjs +2 -2
- package/dist/delivery-overview.d.mts +5 -28
- package/dist/delivery-overview.mjs +1 -1
- package/dist/destination-filters.d.mts +11 -67
- package/dist/destination-filters.mjs +1 -1
- package/dist/destinations.d.mts +29 -184
- package/dist/destinations.mjs +2 -2
- package/dist/edge-functions.d.mts +11 -67
- package/dist/edge-functions.mjs +2 -2
- package/dist/events-catalog.d.mts +7 -41
- package/dist/events-catalog.mjs +1 -1
- package/dist/factory-Dqb49Dfj.mjs +8 -0
- package/dist/functions.d.mts +26 -137
- package/dist/functions.mjs +2 -2
- package/dist/iam-groups.d.mts +19 -119
- package/dist/iam-groups.mjs +2 -2
- package/dist/iam-users.d.mts +13 -80
- package/dist/iam-users.mjs +2 -2
- package/dist/integration-CliT2xe3.mjs +26 -0
- package/dist/{integration-CeShwMIi.d.mts → integration-DWeMeBqQ.d.mts} +6 -16
- package/dist/labels.d.mts +7 -41
- package/dist/labels.mjs +2 -2
- package/dist/monitoring.d.mts +11 -67
- package/dist/monitoring.mjs +1 -1
- package/dist/profiles-sync.d.mts +9 -54
- package/dist/profiles-sync.mjs +1 -1
- package/dist/profiles.d.mts +13 -80
- package/dist/profiles.mjs +1 -1
- package/dist/reverse-etl.d.mts +25 -158
- package/dist/reverse-etl.mjs +2 -2
- package/dist/roles.d.mts +3 -15
- package/dist/roles.mjs +1 -1
- package/dist/sources.d.mts +33 -210
- package/dist/sources.mjs +2 -2
- package/dist/tracking-plans.d.mts +23 -145
- package/dist/tracking-plans.mjs +2 -2
- package/dist/tracking.d.mts +17 -106
- package/dist/tracking.mjs +1 -1
- package/dist/transformations.d.mts +11 -67
- package/dist/transformations.mjs +1 -1
- package/dist/triggers.d.mts +3 -3
- package/dist/triggers.mjs +3 -53
- package/dist/usage.d.mts +5 -28
- package/dist/usage.mjs +1 -1
- package/dist/warehouses.d.mts +23 -145
- package/dist/warehouses.mjs +2 -2
- package/dist/workspaces.d.mts +7 -41
- package/dist/workspaces.mjs +1 -1
- package/package.json +5 -5
- package/dist/factory-DRwj5eiU.mjs +0 -7
- package/dist/integration-B9FOjHPc.mjs +0 -115
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/tracking-plans.d.ts
|
|
6
5
|
declare const listTrackingPlans: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
@@ -16,18 +15,7 @@ declare const listTrackingPlans: _keystrokehq_core0.Operation<z.ZodIntersection<
|
|
|
16
15
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
17
16
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
18
17
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
20
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
21
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
22
|
-
us: "us";
|
|
23
|
-
eu: "eu";
|
|
24
|
-
}>>;
|
|
25
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
26
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
27
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
28
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
29
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
30
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
18
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
31
19
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
32
20
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
33
21
|
us: "us";
|
|
@@ -38,7 +26,7 @@ declare const listTrackingPlans: _keystrokehq_core0.Operation<z.ZodIntersection<
|
|
|
38
26
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
39
27
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
40
28
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
41
|
-
}, z.core.$strip>>
|
|
29
|
+
}, z.core.$strip>>], undefined>;
|
|
42
30
|
declare const getTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
43
31
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
44
32
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -47,18 +35,7 @@ declare const getTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
47
35
|
name: z.ZodOptional<z.ZodString>;
|
|
48
36
|
description: z.ZodOptional<z.ZodString>;
|
|
49
37
|
type: z.ZodOptional<z.ZodString>;
|
|
50
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
51
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
52
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
53
|
-
us: "us";
|
|
54
|
-
eu: "eu";
|
|
55
|
-
}>>;
|
|
56
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
57
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
58
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
59
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
60
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
61
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
38
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
62
39
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
63
40
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
64
41
|
us: "us";
|
|
@@ -69,7 +46,7 @@ declare const getTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
69
46
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
70
47
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
71
48
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
72
|
-
}, z.core.$strip>>
|
|
49
|
+
}, z.core.$strip>>], undefined>;
|
|
73
50
|
declare const createTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
74
51
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
75
52
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -78,18 +55,7 @@ declare const createTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
78
55
|
name: z.ZodOptional<z.ZodString>;
|
|
79
56
|
description: z.ZodOptional<z.ZodString>;
|
|
80
57
|
type: z.ZodOptional<z.ZodString>;
|
|
81
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
82
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
83
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
84
|
-
us: "us";
|
|
85
|
-
eu: "eu";
|
|
86
|
-
}>>;
|
|
87
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
88
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
89
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
90
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
91
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
92
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
58
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
93
59
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
94
60
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
95
61
|
us: "us";
|
|
@@ -100,7 +66,7 @@ declare const createTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
100
66
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
101
67
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
102
68
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
103
|
-
}, z.core.$strip>>
|
|
69
|
+
}, z.core.$strip>>], undefined>;
|
|
104
70
|
declare const updateTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
105
71
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
106
72
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -109,18 +75,7 @@ declare const updateTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
109
75
|
name: z.ZodOptional<z.ZodString>;
|
|
110
76
|
description: z.ZodOptional<z.ZodString>;
|
|
111
77
|
type: z.ZodOptional<z.ZodString>;
|
|
112
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
113
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
114
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
115
|
-
us: "us";
|
|
116
|
-
eu: "eu";
|
|
117
|
-
}>>;
|
|
118
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
119
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
120
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
121
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
122
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
123
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
78
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
124
79
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
125
80
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
126
81
|
us: "us";
|
|
@@ -131,10 +86,10 @@ declare const updateTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
131
86
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
132
87
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
133
88
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
134
|
-
}, z.core.$strip>>
|
|
89
|
+
}, z.core.$strip>>], undefined>;
|
|
135
90
|
declare const deleteTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
136
91
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
137
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
138
93
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
139
94
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
140
95
|
us: "us";
|
|
@@ -145,18 +100,7 @@ declare const deleteTrackingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
145
100
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
146
101
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
147
102
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
148
|
-
}, z.core.$strip
|
|
149
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
150
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
151
|
-
us: "us";
|
|
152
|
-
eu: "eu";
|
|
153
|
-
}>>;
|
|
154
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
155
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
156
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
157
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
158
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
159
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
103
|
+
}, z.core.$strip>>], undefined>;
|
|
160
104
|
declare const listTrackingPlanRules: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
161
105
|
id: z.ZodString;
|
|
162
106
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -166,18 +110,7 @@ declare const listTrackingPlanRules: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
166
110
|
version: z.ZodOptional<z.ZodNumber>;
|
|
167
111
|
description: z.ZodOptional<z.ZodString>;
|
|
168
112
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
169
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
170
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
171
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
172
|
-
us: "us";
|
|
173
|
-
eu: "eu";
|
|
174
|
-
}>>;
|
|
175
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
176
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
177
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
178
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
179
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
180
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
113
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
181
114
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
182
115
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
183
116
|
us: "us";
|
|
@@ -188,7 +121,7 @@ declare const listTrackingPlanRules: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
188
121
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
189
122
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
190
123
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
191
|
-
}, z.core.$strip>>
|
|
124
|
+
}, z.core.$strip>>], undefined>;
|
|
192
125
|
declare const replaceTrackingPlanRules: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
193
126
|
id: z.ZodString;
|
|
194
127
|
rules: z.ZodArray<z.ZodObject<{
|
|
@@ -204,18 +137,7 @@ declare const replaceTrackingPlanRules: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
204
137
|
version: z.ZodOptional<z.ZodNumber>;
|
|
205
138
|
description: z.ZodOptional<z.ZodString>;
|
|
206
139
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
207
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
208
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
209
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
210
|
-
us: "us";
|
|
211
|
-
eu: "eu";
|
|
212
|
-
}>>;
|
|
213
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
214
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
215
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
216
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
217
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
218
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
140
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
219
141
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
220
142
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
221
143
|
us: "us";
|
|
@@ -226,7 +148,7 @@ declare const replaceTrackingPlanRules: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
226
148
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
227
149
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
228
150
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
229
|
-
}, z.core.$strip>>
|
|
151
|
+
}, z.core.$strip>>], undefined>;
|
|
230
152
|
declare const listTrackingPlanSources: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
231
153
|
id: z.ZodString;
|
|
232
154
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -234,18 +156,7 @@ declare const listTrackingPlanSources: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
234
156
|
sourceId: z.ZodString;
|
|
235
157
|
trackingPlanId: z.ZodOptional<z.ZodString>;
|
|
236
158
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
237
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
238
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
239
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
240
|
-
us: "us";
|
|
241
|
-
eu: "eu";
|
|
242
|
-
}>>;
|
|
243
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
244
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
245
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
246
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
247
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
248
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
159
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
249
160
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
250
161
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
251
162
|
us: "us";
|
|
@@ -256,25 +167,14 @@ declare const listTrackingPlanSources: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
256
167
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
257
168
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
258
169
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
259
|
-
}, z.core.$strip>>
|
|
170
|
+
}, z.core.$strip>>], undefined>;
|
|
260
171
|
declare const connectTrackingPlanSource: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
261
172
|
id: z.ZodString;
|
|
262
173
|
sourceId: z.ZodString;
|
|
263
174
|
}, z.core.$strip>, z.ZodObject<{
|
|
264
175
|
sourceId: z.ZodString;
|
|
265
176
|
trackingPlanId: z.ZodOptional<z.ZodString>;
|
|
266
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
267
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
268
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
269
|
-
us: "us";
|
|
270
|
-
eu: "eu";
|
|
271
|
-
}>>;
|
|
272
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
273
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
274
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
275
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
276
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
277
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
177
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
278
178
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
279
179
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
280
180
|
us: "us";
|
|
@@ -285,24 +185,13 @@ declare const connectTrackingPlanSource: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
285
185
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
286
186
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
287
187
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
288
|
-
}, z.core.$strip>>
|
|
188
|
+
}, z.core.$strip>>], undefined>;
|
|
289
189
|
declare const disconnectTrackingPlanSource: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
290
190
|
id: z.ZodString;
|
|
291
191
|
sourceId: z.ZodString;
|
|
292
192
|
}, z.core.$strip>, z.ZodObject<{
|
|
293
193
|
removed: z.ZodLiteral<true>;
|
|
294
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
295
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
296
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
297
|
-
us: "us";
|
|
298
|
-
eu: "eu";
|
|
299
|
-
}>>;
|
|
300
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
301
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
302
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
303
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
304
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
305
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
194
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
306
195
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
307
196
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
308
197
|
us: "us";
|
|
@@ -313,7 +202,7 @@ declare const disconnectTrackingPlanSource: _keystrokehq_core0.Operation<z.ZodOb
|
|
|
313
202
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
314
203
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
315
204
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
316
|
-
}, z.core.$strip>>
|
|
205
|
+
}, z.core.$strip>>], undefined>;
|
|
317
206
|
declare const listTrackingPlanViolations: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
318
207
|
id: z.ZodString;
|
|
319
208
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -324,18 +213,7 @@ declare const listTrackingPlanViolations: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
324
213
|
violationReason: z.ZodOptional<z.ZodString>;
|
|
325
214
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
326
215
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
327
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
328
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
329
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
330
|
-
us: "us";
|
|
331
|
-
eu: "eu";
|
|
332
|
-
}>>;
|
|
333
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
334
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
335
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
336
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
337
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
338
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
216
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
339
217
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
340
218
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
341
219
|
us: "us";
|
|
@@ -346,6 +224,6 @@ declare const listTrackingPlanViolations: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
346
224
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
347
225
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
348
226
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
349
|
-
}, z.core.$strip>>
|
|
227
|
+
}, z.core.$strip>>], undefined>;
|
|
350
228
|
//#endregion
|
|
351
229
|
export { connectTrackingPlanSource, createTrackingPlan, deleteTrackingPlan, disconnectTrackingPlanSource, getTrackingPlan, listTrackingPlanRules, listTrackingPlanSources, listTrackingPlanViolations, listTrackingPlans, replaceTrackingPlanRules, updateTrackingPlan };
|
package/dist/tracking-plans.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSegmentClient } from "./client.mjs";
|
|
2
2
|
import { a as segmentLooseObjectSchema, n as segmentIdSchema } from "./common-CdGiJbjq.mjs";
|
|
3
|
-
import { t as segmentOperation } from "./factory-
|
|
4
|
-
import { n as crudList, r as crudMutate, t as crudGet } from "./crud-
|
|
3
|
+
import { t as segmentOperation } from "./factory-Dqb49Dfj.mjs";
|
|
4
|
+
import { n as crudList, r as crudMutate, t as crudGet } from "./crud-DGM2Ekdr.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/tracking-plans.ts
|
package/dist/tracking.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
3
|
|
|
5
4
|
//#region src/tracking.d.ts
|
|
6
5
|
declare const identify: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
@@ -40,7 +39,7 @@ declare const identify: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodInte
|
|
|
40
39
|
group: "group";
|
|
41
40
|
alias: "alias";
|
|
42
41
|
}>;
|
|
43
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
42
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
44
43
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
45
44
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
46
45
|
us: "us";
|
|
@@ -51,18 +50,7 @@ declare const identify: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodInte
|
|
|
51
50
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
52
51
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
53
52
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
54
|
-
}, z.core.$strip
|
|
55
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
56
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
57
|
-
us: "us";
|
|
58
|
-
eu: "eu";
|
|
59
|
-
}>>;
|
|
60
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
61
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
62
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
63
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
64
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
65
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
53
|
+
}, z.core.$strip>>], undefined>;
|
|
66
54
|
declare const track: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
67
55
|
userId: z.ZodOptional<z.ZodString>;
|
|
68
56
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
@@ -101,7 +89,7 @@ declare const track: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodInterse
|
|
|
101
89
|
group: "group";
|
|
102
90
|
alias: "alias";
|
|
103
91
|
}>;
|
|
104
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
92
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
105
93
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
106
94
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
107
95
|
us: "us";
|
|
@@ -112,18 +100,7 @@ declare const track: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodInterse
|
|
|
112
100
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
113
101
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
114
102
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
115
|
-
}, z.core.$strip
|
|
116
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
117
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
118
|
-
us: "us";
|
|
119
|
-
eu: "eu";
|
|
120
|
-
}>>;
|
|
121
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
122
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
123
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
124
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
125
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
126
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
103
|
+
}, z.core.$strip>>], undefined>;
|
|
127
104
|
declare const page: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
128
105
|
userId: z.ZodOptional<z.ZodString>;
|
|
129
106
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
@@ -163,18 +140,7 @@ declare const page: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodIntersec
|
|
|
163
140
|
group: "group";
|
|
164
141
|
alias: "alias";
|
|
165
142
|
}>;
|
|
166
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
167
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
168
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
169
|
-
us: "us";
|
|
170
|
-
eu: "eu";
|
|
171
|
-
}>>;
|
|
172
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
173
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
174
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
175
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
176
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
177
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
143
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
178
144
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
179
145
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
180
146
|
us: "us";
|
|
@@ -185,7 +151,7 @@ declare const page: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodIntersec
|
|
|
185
151
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
186
152
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
187
153
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
188
|
-
}, z.core.$strip>>
|
|
154
|
+
}, z.core.$strip>>], undefined>;
|
|
189
155
|
declare const screen: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
190
156
|
userId: z.ZodOptional<z.ZodString>;
|
|
191
157
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
@@ -225,18 +191,7 @@ declare const screen: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodInters
|
|
|
225
191
|
group: "group";
|
|
226
192
|
alias: "alias";
|
|
227
193
|
}>;
|
|
228
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
229
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
230
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
231
|
-
us: "us";
|
|
232
|
-
eu: "eu";
|
|
233
|
-
}>>;
|
|
234
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
235
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
236
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
237
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
238
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
239
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
194
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
240
195
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
241
196
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
242
197
|
us: "us";
|
|
@@ -247,7 +202,7 @@ declare const screen: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodInters
|
|
|
247
202
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
248
203
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
249
204
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
250
|
-
}, z.core.$strip>>
|
|
205
|
+
}, z.core.$strip>>], undefined>;
|
|
251
206
|
declare const group: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
252
207
|
userId: z.ZodOptional<z.ZodString>;
|
|
253
208
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
@@ -286,18 +241,7 @@ declare const group: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodInterse
|
|
|
286
241
|
group: "group";
|
|
287
242
|
alias: "alias";
|
|
288
243
|
}>;
|
|
289
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
290
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
291
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
292
|
-
us: "us";
|
|
293
|
-
eu: "eu";
|
|
294
|
-
}>>;
|
|
295
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
296
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
297
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
298
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
299
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
300
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
244
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
301
245
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
302
246
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
303
247
|
us: "us";
|
|
@@ -308,7 +252,7 @@ declare const group: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodInterse
|
|
|
308
252
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
309
253
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
310
254
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
311
|
-
}, z.core.$strip>>
|
|
255
|
+
}, z.core.$strip>>], undefined>;
|
|
312
256
|
declare const alias: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
313
257
|
context: z.ZodOptional<z.ZodObject<{
|
|
314
258
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -344,18 +288,7 @@ declare const alias: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<
|
|
|
344
288
|
group: "group";
|
|
345
289
|
alias: "alias";
|
|
346
290
|
}>;
|
|
347
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
348
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
349
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
350
|
-
us: "us";
|
|
351
|
-
eu: "eu";
|
|
352
|
-
}>>;
|
|
353
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
354
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
355
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
356
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
357
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
358
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
291
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
359
292
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
360
293
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
361
294
|
us: "us";
|
|
@@ -366,7 +299,7 @@ declare const alias: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<
|
|
|
366
299
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
367
300
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
368
301
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
369
|
-
}, z.core.$strip>>
|
|
302
|
+
}, z.core.$strip>>], undefined>;
|
|
370
303
|
declare const batch: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
371
304
|
context: z.ZodOptional<z.ZodObject<{
|
|
372
305
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -410,7 +343,7 @@ declare const batch: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<
|
|
|
410
343
|
alias: "alias";
|
|
411
344
|
}>;
|
|
412
345
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
413
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
346
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
414
347
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
415
348
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
416
349
|
us: "us";
|
|
@@ -421,18 +354,7 @@ declare const batch: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<
|
|
|
421
354
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
422
355
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
423
356
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
424
|
-
}, z.core.$strip
|
|
425
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
426
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
427
|
-
us: "us";
|
|
428
|
-
eu: "eu";
|
|
429
|
-
}>>;
|
|
430
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
431
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
432
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
433
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
434
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
435
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
357
|
+
}, z.core.$strip>>], undefined>;
|
|
436
358
|
declare const importEvent: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
437
359
|
userId: z.ZodOptional<z.ZodString>;
|
|
438
360
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
@@ -472,18 +394,7 @@ declare const importEvent: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodI
|
|
|
472
394
|
group: "group";
|
|
473
395
|
alias: "alias";
|
|
474
396
|
}>;
|
|
475
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
476
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
477
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
478
|
-
us: "us";
|
|
479
|
-
eu: "eu";
|
|
480
|
-
}>>;
|
|
481
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
482
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
483
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
484
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
485
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
486
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
397
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
487
398
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
488
399
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
489
400
|
us: "us";
|
|
@@ -494,6 +405,6 @@ declare const importEvent: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodI
|
|
|
494
405
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
495
406
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
496
407
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
497
|
-
}, z.core.$strip>>
|
|
408
|
+
}, z.core.$strip>>], undefined>;
|
|
498
409
|
//#endregion
|
|
499
410
|
export { alias, batch, group, identify, importEvent, page, screen, track };
|
package/dist/tracking.mjs
CHANGED