@keystrokehq/segment 0.0.7 → 0.0.9
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 +9 -9
- package/dist/audiences.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/computed-traits.d.mts +7 -7
- package/dist/computed-traits.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/{crud-SWa_79Hg.mjs → crud-DV9e4Spi.mjs} +1 -1
- package/dist/deletion-suppression.d.mts +6 -6
- package/dist/deletion-suppression.mjs +2 -2
- package/dist/delivery-overview.d.mts +3 -3
- package/dist/delivery-overview.mjs +1 -1
- package/dist/destination-filters.d.mts +6 -6
- package/dist/destination-filters.mjs +1 -1
- package/dist/destinations.d.mts +15 -15
- package/dist/destinations.mjs +2 -2
- package/dist/edge-functions.d.mts +6 -6
- package/dist/edge-functions.mjs +2 -2
- package/dist/events-catalog.d.mts +4 -4
- package/dist/events-catalog.mjs +1 -1
- package/dist/factory-DRwj5eiU.mjs +7 -0
- package/dist/functions.d.mts +16 -16
- package/dist/functions.mjs +2 -2
- package/dist/iam-groups.d.mts +10 -10
- package/dist/iam-groups.mjs +2 -2
- package/dist/iam-users.d.mts +7 -7
- package/dist/iam-users.mjs +2 -2
- package/dist/integration-B9FOjHPc.mjs +115 -0
- package/dist/{integration-DJ9tRlCV.d.mts → integration-CeShwMIi.d.mts} +3 -4
- package/dist/labels.d.mts +4 -4
- package/dist/labels.mjs +2 -2
- package/dist/monitoring.d.mts +6 -6
- package/dist/monitoring.mjs +1 -1
- package/dist/profiles-sync.d.mts +5 -5
- package/dist/profiles-sync.mjs +1 -1
- package/dist/profiles.d.mts +7 -7
- package/dist/profiles.mjs +1 -1
- package/dist/reverse-etl.d.mts +13 -13
- package/dist/reverse-etl.mjs +2 -2
- package/dist/roles.d.mts +2 -2
- package/dist/roles.mjs +1 -1
- package/dist/sources.d.mts +17 -17
- package/dist/sources.mjs +2 -2
- package/dist/tracking-plans.d.mts +12 -12
- package/dist/tracking-plans.mjs +2 -2
- package/dist/tracking.d.mts +18 -18
- package/dist/tracking.mjs +1 -1
- package/dist/transformations.d.mts +6 -6
- package/dist/transformations.mjs +1 -1
- package/dist/triggers.d.mts +3 -3
- package/dist/triggers.mjs +53 -3
- package/dist/usage.d.mts +3 -3
- package/dist/usage.mjs +1 -1
- package/dist/warehouses.d.mts +12 -12
- package/dist/warehouses.mjs +2 -2
- package/dist/workspaces.d.mts +4 -4
- package/dist/workspaces.mjs +1 -1
- package/package.json +4 -4
- package/dist/factory-CvfKfzMq.mjs +0 -8
- package/dist/integration-B5zYasBZ.mjs +0 -25
package/dist/functions.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/functions.d.ts
|
|
6
6
|
declare const functionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
displayName: z.ZodOptional<z.ZodString>;
|
|
9
9
|
resourceType: z.ZodOptional<z.ZodEnum<{
|
|
10
|
-
source: "source";
|
|
11
10
|
destination: "destination";
|
|
11
|
+
source: "source";
|
|
12
12
|
insert: "insert";
|
|
13
13
|
}>>;
|
|
14
14
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -23,8 +23,8 @@ declare const listFunctions: _keystrokehq_core0.Operation<z.ZodIntersection<z.Zo
|
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
displayName: z.ZodOptional<z.ZodString>;
|
|
25
25
|
resourceType: z.ZodOptional<z.ZodEnum<{
|
|
26
|
-
source: "source";
|
|
27
26
|
destination: "destination";
|
|
27
|
+
source: "source";
|
|
28
28
|
insert: "insert";
|
|
29
29
|
}>>;
|
|
30
30
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -33,7 +33,7 @@ declare const listFunctions: _keystrokehq_core0.Operation<z.ZodIntersection<z.Zo
|
|
|
33
33
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
34
34
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
35
35
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
36
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
36
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
37
37
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
38
38
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
39
39
|
us: "us";
|
|
@@ -62,14 +62,14 @@ declare const getFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
62
62
|
id: z.ZodString;
|
|
63
63
|
displayName: z.ZodOptional<z.ZodString>;
|
|
64
64
|
resourceType: z.ZodOptional<z.ZodEnum<{
|
|
65
|
-
source: "source";
|
|
66
65
|
destination: "destination";
|
|
66
|
+
source: "source";
|
|
67
67
|
insert: "insert";
|
|
68
68
|
}>>;
|
|
69
69
|
description: z.ZodOptional<z.ZodString>;
|
|
70
70
|
code: z.ZodOptional<z.ZodString>;
|
|
71
71
|
settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
72
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
72
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
73
73
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
74
74
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
75
75
|
us: "us";
|
|
@@ -98,14 +98,14 @@ declare const createFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
98
98
|
id: z.ZodString;
|
|
99
99
|
displayName: z.ZodOptional<z.ZodString>;
|
|
100
100
|
resourceType: z.ZodOptional<z.ZodEnum<{
|
|
101
|
-
source: "source";
|
|
102
101
|
destination: "destination";
|
|
102
|
+
source: "source";
|
|
103
103
|
insert: "insert";
|
|
104
104
|
}>>;
|
|
105
105
|
description: z.ZodOptional<z.ZodString>;
|
|
106
106
|
code: z.ZodOptional<z.ZodString>;
|
|
107
107
|
settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
108
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
108
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
109
109
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
110
110
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
111
111
|
us: "us";
|
|
@@ -134,14 +134,14 @@ declare const updateFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
134
134
|
id: z.ZodString;
|
|
135
135
|
displayName: z.ZodOptional<z.ZodString>;
|
|
136
136
|
resourceType: z.ZodOptional<z.ZodEnum<{
|
|
137
|
-
source: "source";
|
|
138
137
|
destination: "destination";
|
|
138
|
+
source: "source";
|
|
139
139
|
insert: "insert";
|
|
140
140
|
}>>;
|
|
141
141
|
description: z.ZodOptional<z.ZodString>;
|
|
142
142
|
code: z.ZodOptional<z.ZodString>;
|
|
143
143
|
settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
144
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
144
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
145
145
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
146
146
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
147
147
|
us: "us";
|
|
@@ -166,7 +166,7 @@ declare const updateFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
166
166
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
167
167
|
declare const deleteFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
168
168
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
169
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
169
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
170
170
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
171
171
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
172
172
|
us: "us";
|
|
@@ -195,7 +195,7 @@ declare const deployFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
195
195
|
id: z.ZodString;
|
|
196
196
|
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
197
197
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
198
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
198
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
199
199
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
200
200
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
201
201
|
us: "us";
|
|
@@ -226,7 +226,7 @@ declare const listFunctionVersions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
226
226
|
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
227
227
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
228
228
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
229
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
229
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
230
230
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
231
231
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
232
232
|
us: "us";
|
|
@@ -256,7 +256,7 @@ declare const getFunctionVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
256
256
|
id: z.ZodString;
|
|
257
257
|
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
258
258
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
259
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
259
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
260
260
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
261
261
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
262
262
|
us: "us";
|
|
@@ -288,7 +288,7 @@ declare const invokeFunctionTest: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
288
288
|
logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
289
289
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
290
290
|
error: z.ZodOptional<z.ZodString>;
|
|
291
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
291
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
292
292
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
293
293
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
294
294
|
us: "us";
|
|
@@ -320,7 +320,7 @@ declare const listDeployedFunctionInstances: _keystrokehq_core0.Operation<z.ZodO
|
|
|
320
320
|
destinationId: z.ZodOptional<z.ZodString>;
|
|
321
321
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
322
322
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
323
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
323
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
324
324
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
325
325
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
326
326
|
us: "us";
|
package/dist/functions.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-DRwj5eiU.mjs";
|
|
4
|
+
import { n as crudList, r as crudMutate, t as crudGet } from "./crud-DV9e4Spi.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/functions.ts
|
package/dist/iam-groups.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/iam-groups.d.ts
|
|
6
6
|
declare const iamGroupSchema: z.ZodObject<{
|
|
@@ -21,7 +21,7 @@ declare const listGroups: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodOb
|
|
|
21
21
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
22
22
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
23
23
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
24
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
24
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
25
25
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
26
26
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
27
27
|
us: "us";
|
|
@@ -51,7 +51,7 @@ declare const getGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
51
51
|
name: z.ZodOptional<z.ZodString>;
|
|
52
52
|
description: z.ZodOptional<z.ZodString>;
|
|
53
53
|
memberCount: z.ZodOptional<z.ZodNumber>;
|
|
54
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
54
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
55
55
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
56
56
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
57
57
|
us: "us";
|
|
@@ -81,7 +81,7 @@ declare const createGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
81
81
|
name: z.ZodOptional<z.ZodString>;
|
|
82
82
|
description: z.ZodOptional<z.ZodString>;
|
|
83
83
|
memberCount: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
84
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
85
85
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
86
86
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
87
87
|
us: "us";
|
|
@@ -111,7 +111,7 @@ declare const updateGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
111
111
|
name: z.ZodOptional<z.ZodString>;
|
|
112
112
|
description: z.ZodOptional<z.ZodString>;
|
|
113
113
|
memberCount: z.ZodOptional<z.ZodNumber>;
|
|
114
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
114
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
115
115
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
116
116
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
117
117
|
us: "us";
|
|
@@ -136,7 +136,7 @@ declare const updateGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
136
136
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
137
137
|
declare const deleteGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
138
138
|
[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<"
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
140
140
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
141
141
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
142
142
|
us: "us";
|
|
@@ -167,7 +167,7 @@ declare const listGroupMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
167
167
|
email: z.ZodOptional<z.ZodString>;
|
|
168
168
|
name: z.ZodOptional<z.ZodString>;
|
|
169
169
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
170
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
170
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
171
171
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
172
172
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
173
173
|
us: "us";
|
|
@@ -195,7 +195,7 @@ declare const addGroupMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
195
195
|
emails: z.ZodArray<z.ZodString>;
|
|
196
196
|
}, z.core.$strip>, z.ZodObject<{
|
|
197
197
|
added: z.ZodNumber;
|
|
198
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
198
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
199
199
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
200
200
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
201
201
|
us: "us";
|
|
@@ -223,7 +223,7 @@ declare const removeGroupMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
223
223
|
emails: z.ZodArray<z.ZodString>;
|
|
224
224
|
}, z.core.$strip>, z.ZodObject<{
|
|
225
225
|
removed: z.ZodNumber;
|
|
226
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
226
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
227
227
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
228
228
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
229
229
|
us: "us";
|
|
@@ -257,7 +257,7 @@ declare const replaceGroupPermissions: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
257
257
|
roleId: z.ZodString;
|
|
258
258
|
resources: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
259
259
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
260
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
260
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
261
261
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
262
262
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
263
263
|
us: "us";
|
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-DRwj5eiU.mjs";
|
|
4
|
+
import { n as crudList, r as crudMutate, t as crudGet } from "./crud-DV9e4Spi.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,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/iam-users.d.ts
|
|
6
6
|
declare const iamUserSchema: z.ZodObject<{
|
|
@@ -25,7 +25,7 @@ declare const listUsers: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObj
|
|
|
25
25
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
26
26
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
27
27
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
28
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
28
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
29
29
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
30
30
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
31
31
|
us: "us";
|
|
@@ -54,7 +54,7 @@ declare const getUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
54
54
|
id: z.ZodString;
|
|
55
55
|
email: z.ZodOptional<z.ZodString>;
|
|
56
56
|
name: z.ZodOptional<z.ZodString>;
|
|
57
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
57
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
58
58
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
59
59
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
60
60
|
us: "us";
|
|
@@ -84,7 +84,7 @@ declare const inviteUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
84
84
|
email: z.ZodOptional<z.ZodString>;
|
|
85
85
|
status: z.ZodOptional<z.ZodString>;
|
|
86
86
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
87
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
88
88
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
89
89
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
90
90
|
us: "us";
|
|
@@ -119,7 +119,7 @@ declare const listInvites: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodO
|
|
|
119
119
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
120
120
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
121
121
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
122
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
122
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
123
123
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
124
124
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
125
125
|
us: "us";
|
|
@@ -144,7 +144,7 @@ declare const listInvites: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodO
|
|
|
144
144
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
145
145
|
declare const deleteInvite: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
146
146
|
[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<"
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
148
148
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
149
149
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
150
150
|
us: "us";
|
|
@@ -178,7 +178,7 @@ declare const replaceUserPermissions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
178
178
|
roleId: z.ZodString;
|
|
179
179
|
resources: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
180
180
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
181
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
181
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
182
182
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
183
183
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
184
184
|
us: "us";
|
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-DRwj5eiU.mjs";
|
|
4
|
+
import { n as crudList, r as crudMutate, t as crudGet } from "./crud-DV9e4Spi.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/iam-users.ts
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { CredentialSet, Operation } from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region ../../packages/integration-authoring/dist/official/runtime.mjs
|
|
5
|
+
const REGISTRY_KEY = "__ks_official_integration_metadata_registry";
|
|
6
|
+
function getRegistry() {
|
|
7
|
+
const globalStore = globalThis;
|
|
8
|
+
if (!globalStore[REGISTRY_KEY]) globalStore[REGISTRY_KEY] = /* @__PURE__ */ new WeakMap();
|
|
9
|
+
return globalStore[REGISTRY_KEY];
|
|
10
|
+
}
|
|
11
|
+
function registerOfficialOperation(operation, metadata) {
|
|
12
|
+
getRegistry().set(operation, Object.freeze({ ...metadata }));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ../../packages/integration-authoring/dist/official/index.mjs
|
|
17
|
+
const OFFICIAL_CREDENTIAL_SET_ID_PREFIX = "keystroke:";
|
|
18
|
+
function stripOfficialCredentialSetIdPrefix(id) {
|
|
19
|
+
return id.startsWith(OFFICIAL_CREDENTIAL_SET_ID_PREFIX) ? id.slice(10) : id;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Creates a factory for Keystroke-official integration operations.
|
|
23
|
+
*
|
|
24
|
+
* It keeps the same flat `run(input, credentials)` ergonomics as the generic
|
|
25
|
+
* operation factory, while registering official metadata for builder/runtime
|
|
26
|
+
* operation metadata.
|
|
27
|
+
*/
|
|
28
|
+
function createOfficialOperationFactory(credentialSet) {
|
|
29
|
+
const integrationId = stripOfficialCredentialSetIdPrefix(credentialSet.id);
|
|
30
|
+
return (config) => {
|
|
31
|
+
const wrappedRun = async (input, ctx) => {
|
|
32
|
+
const creds = ctx.credentials[credentialSet.id];
|
|
33
|
+
return config.run(input, creds);
|
|
34
|
+
};
|
|
35
|
+
const operation = new Operation({
|
|
36
|
+
id: config.id,
|
|
37
|
+
name: config.name,
|
|
38
|
+
description: config.description,
|
|
39
|
+
input: config.input,
|
|
40
|
+
output: config.output,
|
|
41
|
+
credentialSets: [credentialSet],
|
|
42
|
+
...config.tags !== void 0 ? { tags: config.tags } : {},
|
|
43
|
+
...config.needsApproval !== void 0 ? { needsApproval: config.needsApproval } : {},
|
|
44
|
+
...config.requiredOAuthScopes !== void 0 ? { requiredOAuthScopes: config.requiredOAuthScopes } : {},
|
|
45
|
+
...config.retries !== void 0 ? { retries: config.retries } : {},
|
|
46
|
+
...config.timeout !== void 0 ? { timeout: config.timeout } : {},
|
|
47
|
+
...config.maxDurationMs !== void 0 ? { maxDurationMs: config.maxDurationMs } : {},
|
|
48
|
+
run: wrappedRun
|
|
49
|
+
});
|
|
50
|
+
registerOfficialOperation(operation, { integrationId });
|
|
51
|
+
return operation;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Creates an official integration bundle from a single config object.
|
|
56
|
+
*
|
|
57
|
+
* - Creates the public `CredentialSet` internally.
|
|
58
|
+
* - Accepts optional `internal` fields for Keystroke-owned platform credentials.
|
|
59
|
+
*/
|
|
60
|
+
function defineOfficialIntegration(config) {
|
|
61
|
+
const internalCredentialSets = config.internal ?? {};
|
|
62
|
+
const allInternalCredentialSets = [
|
|
63
|
+
...internalCredentialSets.providerApp ? [internalCredentialSets.providerApp] : [],
|
|
64
|
+
...internalCredentialSets.providerAppVariants ?? [],
|
|
65
|
+
...internalCredentialSets.webhookVerification ? [internalCredentialSets.webhookVerification] : [],
|
|
66
|
+
...internalCredentialSets.other ?? []
|
|
67
|
+
];
|
|
68
|
+
const credentialSet = new CredentialSet({
|
|
69
|
+
id: config.id,
|
|
70
|
+
name: config.name,
|
|
71
|
+
description: config.description,
|
|
72
|
+
auth: config.auth,
|
|
73
|
+
...config.connections ? { connections: config.connections } : {},
|
|
74
|
+
...config.proxy ? { proxy: config.proxy } : {},
|
|
75
|
+
...config.needsRawSecret === true ? { needsRawSecret: true } : {}
|
|
76
|
+
});
|
|
77
|
+
return Object.freeze({
|
|
78
|
+
integration: {
|
|
79
|
+
id: config.id,
|
|
80
|
+
name: config.name,
|
|
81
|
+
...config.description !== void 0 ? { description: config.description } : {},
|
|
82
|
+
auth: config.auth,
|
|
83
|
+
...config.proxy ? { proxy: config.proxy } : {},
|
|
84
|
+
...config.needsRawSecret === true ? { needsRawSecret: true } : {},
|
|
85
|
+
...config.connections ? { connections: config.connections } : {}
|
|
86
|
+
},
|
|
87
|
+
credentialSet,
|
|
88
|
+
internalCredentialSets,
|
|
89
|
+
allInternalCredentialSets
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/integration.ts
|
|
95
|
+
const segmentRegionSchema = z.enum(["us", "eu"]);
|
|
96
|
+
const segmentAuthSchema = z.object({
|
|
97
|
+
SEGMENT_PUBLIC_API_TOKEN: z.string().min(1),
|
|
98
|
+
SEGMENT_REGION: segmentRegionSchema.default("us"),
|
|
99
|
+
SEGMENT_DEFAULT_WRITE_KEY: z.string().min(1).optional(),
|
|
100
|
+
SEGMENT_WRITE_KEYS_JSON: z.string().optional(),
|
|
101
|
+
SEGMENT_PROFILE_API_TOKEN: z.string().min(1).optional(),
|
|
102
|
+
SEGMENT_PROFILE_SPACE_ID: z.string().min(1).optional(),
|
|
103
|
+
SEGMENT_WEBHOOK_SHARED_SECRET: z.string().min(1).optional()
|
|
104
|
+
});
|
|
105
|
+
const segmentOfficialIntegration = {
|
|
106
|
+
id: "segment",
|
|
107
|
+
name: "Segment",
|
|
108
|
+
description: "Twilio Segment Customer Data Platform — track events, manage sources/destinations/tracking plans/warehouses, audiences, reverse ETL, and monitor delivery from Keystroke workflows.",
|
|
109
|
+
auth: segmentAuthSchema
|
|
110
|
+
};
|
|
111
|
+
const segmentBundle = defineOfficialIntegration(segmentOfficialIntegration);
|
|
112
|
+
const segment = segmentBundle.credentialSet;
|
|
113
|
+
|
|
114
|
+
//#endregion
|
|
115
|
+
export { createOfficialOperationFactory as i, segmentBundle as n, segmentOfficialIntegration as r, segment as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
5
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
6
5
|
|
|
7
6
|
//#region src/integration.d.ts
|
|
8
7
|
declare const segmentRegionSchema: z.ZodEnum<{
|
|
@@ -26,7 +25,7 @@ declare const segmentOfficialIntegration: {
|
|
|
26
25
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
27
26
|
}, z.core.$strip>;
|
|
28
27
|
};
|
|
29
|
-
declare const segmentBundle:
|
|
28
|
+
declare const segmentBundle: undefined<"segment", z.ZodObject<{
|
|
30
29
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
31
30
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
32
31
|
us: "us";
|
|
@@ -38,7 +37,7 @@ declare const segmentBundle: _keystrokehq_integration_authoring_official0.Offici
|
|
|
38
37
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
39
38
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
40
39
|
}, z.core.$strip>>;
|
|
41
|
-
declare const segment: _keystrokehq_core0.CredentialSet<"
|
|
40
|
+
declare const segment: _keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
42
41
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
43
42
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
44
43
|
us: "us";
|
package/dist/labels.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/labels.d.ts
|
|
6
6
|
declare const listLabels: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
@@ -14,7 +14,7 @@ declare const listLabels: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodOb
|
|
|
14
14
|
}, z.core.$strip>>;
|
|
15
15
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
16
16
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
17
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
17
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
18
18
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
19
19
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
20
20
|
us: "us";
|
|
@@ -45,7 +45,7 @@ declare const createLabel: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
45
45
|
key: z.ZodString;
|
|
46
46
|
value: z.ZodString;
|
|
47
47
|
description: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
48
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
49
49
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
50
50
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
51
51
|
us: "us";
|
|
@@ -73,7 +73,7 @@ declare const deleteLabel: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
73
73
|
value: z.ZodString;
|
|
74
74
|
}, z.core.$strip>, z.ZodObject<{
|
|
75
75
|
deleted: z.ZodLiteral<true>;
|
|
76
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
76
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
77
77
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
78
78
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
79
79
|
us: "us";
|
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-DRwj5eiU.mjs";
|
|
4
|
+
import { n as crudList } from "./crud-DV9e4Spi.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/labels.ts
|
package/dist/monitoring.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/monitoring.d.ts
|
|
6
6
|
declare const monitoringSubscriptionSchema: z.ZodObject<{
|
|
@@ -31,7 +31,7 @@ declare const listMonitoringSubscriptions: _keystrokehq_core0.Operation<z.ZodInt
|
|
|
31
31
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
32
32
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
33
33
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
34
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
35
35
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
36
36
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
37
37
|
us: "us";
|
|
@@ -62,7 +62,7 @@ declare const createMonitoringSubscription: _keystrokehq_core0.Operation<z.ZodOb
|
|
|
62
62
|
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
63
63
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
64
64
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
65
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
65
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
66
66
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
67
67
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
68
68
|
us: "us";
|
|
@@ -93,7 +93,7 @@ declare const updateMonitoringSubscription: _keystrokehq_core0.Operation<z.ZodOb
|
|
|
93
93
|
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
94
94
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
95
95
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
96
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
96
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
97
97
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
98
98
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
99
99
|
us: "us";
|
|
@@ -118,7 +118,7 @@ declare const updateMonitoringSubscription: _keystrokehq_core0.Operation<z.ZodOb
|
|
|
118
118
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
119
119
|
declare const deleteMonitoringSubscription: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
120
120
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
121
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
121
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
122
122
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
123
123
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
124
124
|
us: "us";
|
|
@@ -155,7 +155,7 @@ declare const listMonitoringAlerts: _keystrokehq_core0.Operation<z.ZodIntersecti
|
|
|
155
155
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
156
156
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
157
157
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
158
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
158
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
159
159
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
160
160
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
161
161
|
us: "us";
|
package/dist/monitoring.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as segmentLooseObjectSchema, n as segmentIdSchema } from "./common-CdGiJbjq.mjs";
|
|
2
|
-
import { n as crudList, r as crudMutate } from "./crud-
|
|
2
|
+
import { n as crudList, r as crudMutate } from "./crud-DV9e4Spi.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/monitoring.ts
|
package/dist/profiles-sync.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/profiles-sync.d.ts
|
|
6
6
|
declare const getProfilesSyncConfig: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -10,7 +10,7 @@ declare const getProfilesSyncConfig: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
10
10
|
warehouseId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
schemaName: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
13
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
14
14
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
15
15
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
16
16
|
us: "us";
|
|
@@ -43,7 +43,7 @@ declare const updateProfilesSyncConfig: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
43
43
|
warehouseId: z.ZodOptional<z.ZodString>;
|
|
44
44
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
45
45
|
schemaName: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
46
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
47
47
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
48
48
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
49
49
|
us: "us";
|
|
@@ -71,7 +71,7 @@ declare const getProfilesSyncSelectiveSync: _keystrokehq_core0.Operation<z.ZodOb
|
|
|
71
71
|
}, z.core.$strip>, z.ZodObject<{
|
|
72
72
|
spaceId: z.ZodOptional<z.ZodString>;
|
|
73
73
|
items: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
74
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
74
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
75
75
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
76
76
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
77
77
|
us: "us";
|
|
@@ -100,7 +100,7 @@ declare const updateProfilesSyncSelectiveSync: _keystrokehq_core0.Operation<z.Zo
|
|
|
100
100
|
}, z.core.$strip>, z.ZodObject<{
|
|
101
101
|
spaceId: z.ZodOptional<z.ZodString>;
|
|
102
102
|
items: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
103
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
103
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
104
104
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
105
105
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
106
106
|
us: "us";
|
package/dist/profiles-sync.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
+
import { t as segmentOperation } from "./factory-DRwj5eiU.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/profiles-sync.ts
|