@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
package/dist/iam-groups.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/iam-groups.d.ts
|
|
6
5
|
declare const iamGroupSchema: z.ZodObject<{
|
|
@@ -21,18 +20,7 @@ declare const listGroups: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodOb
|
|
|
21
20
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
22
21
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
23
22
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
24
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
25
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
26
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
27
|
-
us: "us";
|
|
28
|
-
eu: "eu";
|
|
29
|
-
}>>;
|
|
30
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
31
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
32
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
33
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
34
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
35
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
23
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
36
24
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
37
25
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
38
26
|
us: "us";
|
|
@@ -43,7 +31,7 @@ declare const listGroups: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodOb
|
|
|
43
31
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
44
32
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
45
33
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$strip>>
|
|
34
|
+
}, z.core.$strip>>], undefined>;
|
|
47
35
|
declare const getGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
48
36
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
49
37
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -51,7 +39,7 @@ declare const getGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
51
39
|
name: z.ZodOptional<z.ZodString>;
|
|
52
40
|
description: z.ZodOptional<z.ZodString>;
|
|
53
41
|
memberCount: z.ZodOptional<z.ZodNumber>;
|
|
54
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
42
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
55
43
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
56
44
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
57
45
|
us: "us";
|
|
@@ -62,18 +50,7 @@ declare const getGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
62
50
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
63
51
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
64
52
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
65
|
-
}, z.core.$strip
|
|
66
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
67
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
68
|
-
us: "us";
|
|
69
|
-
eu: "eu";
|
|
70
|
-
}>>;
|
|
71
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
72
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
73
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
74
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
75
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
76
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
53
|
+
}, z.core.$strip>>], undefined>;
|
|
77
54
|
declare const createGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
78
55
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
79
56
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -81,18 +58,7 @@ declare const createGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
81
58
|
name: z.ZodOptional<z.ZodString>;
|
|
82
59
|
description: z.ZodOptional<z.ZodString>;
|
|
83
60
|
memberCount: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
85
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
86
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
87
|
-
us: "us";
|
|
88
|
-
eu: "eu";
|
|
89
|
-
}>>;
|
|
90
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
91
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
92
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
93
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
94
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
95
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
61
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
96
62
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
97
63
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
98
64
|
us: "us";
|
|
@@ -103,7 +69,7 @@ declare const createGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
103
69
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
104
70
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
105
71
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
106
|
-
}, z.core.$strip>>
|
|
72
|
+
}, z.core.$strip>>], undefined>;
|
|
107
73
|
declare const updateGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
108
74
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
109
75
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -111,7 +77,7 @@ declare const updateGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
111
77
|
name: z.ZodOptional<z.ZodString>;
|
|
112
78
|
description: z.ZodOptional<z.ZodString>;
|
|
113
79
|
memberCount: z.ZodOptional<z.ZodNumber>;
|
|
114
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
80
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
115
81
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
116
82
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
117
83
|
us: "us";
|
|
@@ -122,32 +88,10 @@ declare const updateGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
122
88
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
123
89
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
124
90
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
125
|
-
}, z.core.$strip
|
|
126
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
127
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
128
|
-
us: "us";
|
|
129
|
-
eu: "eu";
|
|
130
|
-
}>>;
|
|
131
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
132
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
133
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
134
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
135
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
136
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
91
|
+
}, z.core.$strip>>], undefined>;
|
|
137
92
|
declare const deleteGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
138
93
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
139
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
140
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
141
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
142
|
-
us: "us";
|
|
143
|
-
eu: "eu";
|
|
144
|
-
}>>;
|
|
145
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
146
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
147
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
148
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
149
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
150
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
151
95
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
152
96
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
153
97
|
us: "us";
|
|
@@ -158,7 +102,7 @@ declare const deleteGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
158
102
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
159
103
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
160
104
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, z.core.$strip>>
|
|
105
|
+
}, z.core.$strip>>], undefined>;
|
|
162
106
|
declare const listGroupMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
163
107
|
id: z.ZodString;
|
|
164
108
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -167,7 +111,7 @@ declare const listGroupMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
167
111
|
email: z.ZodOptional<z.ZodString>;
|
|
168
112
|
name: z.ZodOptional<z.ZodString>;
|
|
169
113
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
170
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
114
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
171
115
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
172
116
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
173
117
|
us: "us";
|
|
@@ -178,35 +122,13 @@ declare const listGroupMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
178
122
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
179
123
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
180
124
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
181
|
-
}, z.core.$strip
|
|
182
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
183
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
184
|
-
us: "us";
|
|
185
|
-
eu: "eu";
|
|
186
|
-
}>>;
|
|
187
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
188
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
189
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
190
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
191
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
192
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
125
|
+
}, z.core.$strip>>], undefined>;
|
|
193
126
|
declare const addGroupMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
194
127
|
id: z.ZodString;
|
|
195
128
|
emails: z.ZodArray<z.ZodString>;
|
|
196
129
|
}, z.core.$strip>, z.ZodObject<{
|
|
197
130
|
added: z.ZodNumber;
|
|
198
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
199
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
200
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
201
|
-
us: "us";
|
|
202
|
-
eu: "eu";
|
|
203
|
-
}>>;
|
|
204
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
205
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
206
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
207
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
208
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
209
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
131
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
210
132
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
211
133
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
212
134
|
us: "us";
|
|
@@ -217,13 +139,13 @@ declare const addGroupMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
217
139
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
218
140
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
219
141
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
220
|
-
}, z.core.$strip>>
|
|
142
|
+
}, z.core.$strip>>], undefined>;
|
|
221
143
|
declare const removeGroupMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
222
144
|
id: z.ZodString;
|
|
223
145
|
emails: z.ZodArray<z.ZodString>;
|
|
224
146
|
}, z.core.$strip>, z.ZodObject<{
|
|
225
147
|
removed: z.ZodNumber;
|
|
226
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
148
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
227
149
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
228
150
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
229
151
|
us: "us";
|
|
@@ -234,18 +156,7 @@ declare const removeGroupMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
234
156
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
235
157
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
236
158
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
237
|
-
}, z.core.$strip
|
|
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>>[] | undefined>], undefined>;
|
|
159
|
+
}, z.core.$strip>>], undefined>;
|
|
249
160
|
declare const replaceGroupPermissions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
250
161
|
id: z.ZodString;
|
|
251
162
|
permissions: z.ZodArray<z.ZodObject<{
|
|
@@ -257,18 +168,7 @@ declare const replaceGroupPermissions: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
257
168
|
roleId: z.ZodString;
|
|
258
169
|
resources: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
259
170
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
260
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
261
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
262
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
263
|
-
us: "us";
|
|
264
|
-
eu: "eu";
|
|
265
|
-
}>>;
|
|
266
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
267
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
268
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
269
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
270
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
271
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
171
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
272
172
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
273
173
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
274
174
|
us: "us";
|
|
@@ -279,6 +179,6 @@ declare const replaceGroupPermissions: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
279
179
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
280
180
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
281
181
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
282
|
-
}, z.core.$strip>>
|
|
182
|
+
}, z.core.$strip>>], undefined>;
|
|
283
183
|
//#endregion
|
|
284
184
|
export { addGroupMembers, createGroup, deleteGroup, getGroup, iamGroupSchema, listGroupMembers, listGroups, removeGroupMembers, replaceGroupPermissions, updateGroup };
|
package/dist/iam-groups.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/iam-groups.ts
|
package/dist/iam-users.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/iam-users.d.ts
|
|
6
5
|
declare const iamUserSchema: z.ZodObject<{
|
|
@@ -25,18 +24,7 @@ declare const listUsers: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObj
|
|
|
25
24
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
26
25
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
27
26
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
28
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
29
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
30
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
31
|
-
us: "us";
|
|
32
|
-
eu: "eu";
|
|
33
|
-
}>>;
|
|
34
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
35
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
36
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
37
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
38
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
27
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
40
28
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
41
29
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
42
30
|
us: "us";
|
|
@@ -47,14 +35,14 @@ declare const listUsers: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObj
|
|
|
47
35
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
48
36
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
49
37
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
50
|
-
}, z.core.$strip>>
|
|
38
|
+
}, z.core.$strip>>], undefined>;
|
|
51
39
|
declare const getUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
52
40
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
53
41
|
}, z.core.$strip>, z.ZodObject<{
|
|
54
42
|
id: z.ZodString;
|
|
55
43
|
email: z.ZodOptional<z.ZodString>;
|
|
56
44
|
name: z.ZodOptional<z.ZodString>;
|
|
57
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
45
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
58
46
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
59
47
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
60
48
|
us: "us";
|
|
@@ -65,18 +53,7 @@ declare const getUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
65
53
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
66
54
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
67
55
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
68
|
-
}, z.core.$strip
|
|
69
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
70
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
71
|
-
us: "us";
|
|
72
|
-
eu: "eu";
|
|
73
|
-
}>>;
|
|
74
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
75
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
76
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
77
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
78
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
79
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
56
|
+
}, z.core.$strip>>], undefined>;
|
|
80
57
|
declare const inviteUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
81
58
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
82
59
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -84,18 +61,7 @@ declare const inviteUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
84
61
|
email: z.ZodOptional<z.ZodString>;
|
|
85
62
|
status: z.ZodOptional<z.ZodString>;
|
|
86
63
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
88
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
89
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
90
|
-
us: "us";
|
|
91
|
-
eu: "eu";
|
|
92
|
-
}>>;
|
|
93
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
94
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
95
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
96
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
97
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
98
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
64
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
99
65
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
100
66
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
101
67
|
us: "us";
|
|
@@ -106,7 +72,7 @@ declare const inviteUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
106
72
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
107
73
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
108
74
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
109
|
-
}, z.core.$strip>>
|
|
75
|
+
}, z.core.$strip>>], undefined>;
|
|
110
76
|
declare const listInvites: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
111
77
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
112
78
|
pageToken: z.ZodOptional<z.ZodString>;
|
|
@@ -119,18 +85,7 @@ declare const listInvites: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodO
|
|
|
119
85
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
120
86
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
121
87
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
122
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
123
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
124
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
125
|
-
us: "us";
|
|
126
|
-
eu: "eu";
|
|
127
|
-
}>>;
|
|
128
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
129
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
130
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
131
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
132
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
133
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
88
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
134
89
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
135
90
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
136
91
|
us: "us";
|
|
@@ -141,10 +96,10 @@ declare const listInvites: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodO
|
|
|
141
96
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
142
97
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
143
98
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
144
|
-
}, z.core.$strip>>
|
|
99
|
+
}, z.core.$strip>>], undefined>;
|
|
145
100
|
declare const deleteInvite: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
146
101
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
147
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
148
103
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
149
104
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
150
105
|
us: "us";
|
|
@@ -155,18 +110,7 @@ declare const deleteInvite: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
155
110
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
156
111
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
157
112
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
158
|
-
}, z.core.$strip
|
|
159
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
160
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
161
|
-
us: "us";
|
|
162
|
-
eu: "eu";
|
|
163
|
-
}>>;
|
|
164
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
165
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
166
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
167
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
168
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
169
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
113
|
+
}, z.core.$strip>>], undefined>;
|
|
170
114
|
declare const replaceUserPermissions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
171
115
|
id: z.ZodString;
|
|
172
116
|
permissions: z.ZodArray<z.ZodObject<{
|
|
@@ -178,18 +122,7 @@ declare const replaceUserPermissions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
178
122
|
roleId: z.ZodString;
|
|
179
123
|
resources: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
180
124
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
181
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
182
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
183
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
184
|
-
us: "us";
|
|
185
|
-
eu: "eu";
|
|
186
|
-
}>>;
|
|
187
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
188
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
189
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
190
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
191
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
192
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
125
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
193
126
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
194
127
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
195
128
|
us: "us";
|
|
@@ -200,6 +133,6 @@ declare const replaceUserPermissions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
200
133
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
201
134
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
202
135
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
203
|
-
}, z.core.$strip>>
|
|
136
|
+
}, z.core.$strip>>], undefined>;
|
|
204
137
|
//#endregion
|
|
205
138
|
export { deleteInvite, getUser, iamInviteSchema, iamUserSchema, inviteUser, listInvites, listUsers, replaceUserPermissions };
|
package/dist/iam-users.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/iam-users.ts
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineOfficialIntegration } from "@keystrokehq/integration-authoring/official";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/integration.ts
|
|
5
|
+
const segmentRegionSchema = z.enum(["us", "eu"]);
|
|
6
|
+
const segmentAuthSchema = z.object({
|
|
7
|
+
SEGMENT_PUBLIC_API_TOKEN: z.string().min(1),
|
|
8
|
+
SEGMENT_REGION: segmentRegionSchema.default("us"),
|
|
9
|
+
SEGMENT_DEFAULT_WRITE_KEY: z.string().min(1).optional(),
|
|
10
|
+
SEGMENT_WRITE_KEYS_JSON: z.string().optional(),
|
|
11
|
+
SEGMENT_PROFILE_API_TOKEN: z.string().min(1).optional(),
|
|
12
|
+
SEGMENT_PROFILE_SPACE_ID: z.string().min(1).optional(),
|
|
13
|
+
SEGMENT_WEBHOOK_SHARED_SECRET: z.string().min(1).optional()
|
|
14
|
+
});
|
|
15
|
+
const segmentOfficialIntegration = {
|
|
16
|
+
id: "segment",
|
|
17
|
+
name: "Segment",
|
|
18
|
+
description: "Twilio Segment Customer Data Platform — track events, manage sources/destinations/tracking plans/warehouses, audiences, reverse ETL, and monitor delivery from Keystroke workflows.",
|
|
19
|
+
credentialType: "manual",
|
|
20
|
+
auth: segmentAuthSchema
|
|
21
|
+
};
|
|
22
|
+
const segmentBundle = defineOfficialIntegration(segmentOfficialIntegration);
|
|
23
|
+
const segment = segmentBundle.credentialSet;
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { segmentBundle as n, segmentOfficialIntegration as r, segment as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
5
5
|
|
|
6
6
|
//#region src/integration.d.ts
|
|
@@ -12,6 +12,7 @@ declare const segmentOfficialIntegration: {
|
|
|
12
12
|
id: "segment";
|
|
13
13
|
name: string;
|
|
14
14
|
description: string;
|
|
15
|
+
credentialType: "manual";
|
|
15
16
|
auth: z.ZodObject<{
|
|
16
17
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
17
18
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
@@ -25,7 +26,7 @@ declare const segmentOfficialIntegration: {
|
|
|
25
26
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
26
27
|
}, z.core.$strip>;
|
|
27
28
|
};
|
|
28
|
-
declare const segmentBundle:
|
|
29
|
+
declare const segmentBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"segment", z.ZodObject<{
|
|
29
30
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
30
31
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
31
32
|
us: "us";
|
|
@@ -37,7 +38,7 @@ declare const segmentBundle: undefined<"segment", z.ZodObject<{
|
|
|
37
38
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
38
39
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
39
40
|
}, z.core.$strip>>;
|
|
40
|
-
declare const segment: _keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
41
|
+
declare const segment: _keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
41
42
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
42
43
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
43
44
|
us: "us";
|
|
@@ -48,18 +49,7 @@ declare const segment: _keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
|
48
49
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
49
50
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
50
51
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
51
|
-
}, z.core.$strip
|
|
52
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
53
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
54
|
-
us: "us";
|
|
55
|
-
eu: "eu";
|
|
56
|
-
}>>;
|
|
57
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
58
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
59
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
60
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
61
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
62
|
-
}, z.core.$strip>>[] | undefined>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
63
53
|
type SegmentCredentials = InferCredentialSetAuth<typeof segment>;
|
|
64
54
|
type SegmentRegion = z.infer<typeof segmentRegionSchema>;
|
|
65
55
|
//#endregion
|
package/dist/labels.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/labels.d.ts
|
|
6
5
|
declare const listLabels: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
@@ -14,18 +13,7 @@ declare const listLabels: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodOb
|
|
|
14
13
|
}, z.core.$strip>>;
|
|
15
14
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
16
15
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
17
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
18
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
19
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
20
|
-
us: "us";
|
|
21
|
-
eu: "eu";
|
|
22
|
-
}>>;
|
|
23
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
24
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
25
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
26
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
27
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
28
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
16
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
29
17
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
30
18
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
31
19
|
us: "us";
|
|
@@ -36,7 +24,7 @@ declare const listLabels: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodOb
|
|
|
36
24
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
37
25
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
38
26
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>>
|
|
27
|
+
}, z.core.$strip>>], undefined>;
|
|
40
28
|
declare const createLabel: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
41
29
|
key: z.ZodString;
|
|
42
30
|
value: z.ZodString;
|
|
@@ -45,18 +33,7 @@ declare const createLabel: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
45
33
|
key: z.ZodString;
|
|
46
34
|
value: z.ZodString;
|
|
47
35
|
description: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
49
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
50
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
51
|
-
us: "us";
|
|
52
|
-
eu: "eu";
|
|
53
|
-
}>>;
|
|
54
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
55
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
56
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
57
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
58
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
36
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
60
37
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
61
38
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
62
39
|
us: "us";
|
|
@@ -67,24 +44,13 @@ declare const createLabel: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
67
44
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
68
45
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
69
46
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
70
|
-
}, z.core.$strip>>
|
|
47
|
+
}, z.core.$strip>>], undefined>;
|
|
71
48
|
declare const deleteLabel: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
72
49
|
key: z.ZodString;
|
|
73
50
|
value: z.ZodString;
|
|
74
51
|
}, z.core.$strip>, z.ZodObject<{
|
|
75
52
|
deleted: z.ZodLiteral<true>;
|
|
76
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
77
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
78
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
79
|
-
us: "us";
|
|
80
|
-
eu: "eu";
|
|
81
|
-
}>>;
|
|
82
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
83
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
84
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
85
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
86
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
53
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
88
54
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
89
55
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
90
56
|
us: "us";
|
|
@@ -95,6 +61,6 @@ declare const deleteLabel: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
95
61
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
96
62
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
97
63
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
98
|
-
}, z.core.$strip>>
|
|
64
|
+
}, z.core.$strip>>], undefined>;
|
|
99
65
|
//#endregion
|
|
100
66
|
export { createLabel, deleteLabel, listLabels };
|
package/dist/labels.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSegmentClient } from "./client.mjs";
|
|
2
2
|
import { r as segmentLabelSchema } from "./common-CdGiJbjq.mjs";
|
|
3
|
-
import { t as segmentOperation } from "./factory-
|
|
4
|
-
import { n as crudList } from "./crud-
|
|
3
|
+
import { t as segmentOperation } from "./factory-Dqb49Dfj.mjs";
|
|
4
|
+
import { n as crudList } from "./crud-DGM2Ekdr.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/labels.ts
|