@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/delivery-overview.d.ts
|
|
6
5
|
declare const listDeliveryOverviewMetrics: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
@@ -16,18 +15,7 @@ declare const listDeliveryOverviewMetrics: _keystrokehq_core0.Operation<z.ZodInt
|
|
|
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 listDeliveryOverviewMetrics: _keystrokehq_core0.Operation<z.ZodInt
|
|
|
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 listDeliveryOverviewEvents: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
43
31
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
44
32
|
pageToken: z.ZodOptional<z.ZodString>;
|
|
@@ -52,18 +40,7 @@ declare const listDeliveryOverviewEvents: _keystrokehq_core0.Operation<z.ZodInte
|
|
|
52
40
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
53
41
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
54
42
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
55
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
56
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
57
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
58
|
-
us: "us";
|
|
59
|
-
eu: "eu";
|
|
60
|
-
}>>;
|
|
61
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
62
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
63
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
64
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
65
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
66
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
43
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
67
44
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
68
45
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
69
46
|
us: "us";
|
|
@@ -74,6 +51,6 @@ declare const listDeliveryOverviewEvents: _keystrokehq_core0.Operation<z.ZodInte
|
|
|
74
51
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
75
52
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
76
53
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
77
|
-
}, z.core.$strip>>
|
|
54
|
+
}, z.core.$strip>>], undefined>;
|
|
78
55
|
//#endregion
|
|
79
56
|
export { listDeliveryOverviewEvents, listDeliveryOverviewMetrics };
|
|
@@ -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/destination-filters.d.ts
|
|
6
5
|
declare const destinationFilterSchema: z.ZodObject<{
|
|
@@ -24,7 +23,7 @@ declare const listDestinationFilters: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
24
23
|
title: z.ZodOptional<z.ZodString>;
|
|
25
24
|
description: z.ZodOptional<z.ZodString>;
|
|
26
25
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
27
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
26
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
28
27
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
29
28
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
30
29
|
us: "us";
|
|
@@ -35,18 +34,7 @@ declare const listDestinationFilters: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
35
34
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
36
35
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
37
36
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
38
|
-
}, z.core.$strip
|
|
39
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
40
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
41
|
-
us: "us";
|
|
42
|
-
eu: "eu";
|
|
43
|
-
}>>;
|
|
44
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
45
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
46
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
47
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
48
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
49
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
37
|
+
}, z.core.$strip>>], undefined>;
|
|
50
38
|
declare const getDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
51
39
|
destinationId: z.ZodString;
|
|
52
40
|
filterId: z.ZodString;
|
|
@@ -58,18 +46,7 @@ declare const getDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
58
46
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
59
47
|
title: z.ZodOptional<z.ZodString>;
|
|
60
48
|
description: z.ZodOptional<z.ZodString>;
|
|
61
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
62
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
63
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
64
|
-
us: "us";
|
|
65
|
-
eu: "eu";
|
|
66
|
-
}>>;
|
|
67
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
68
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
69
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
70
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
71
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
72
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
49
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
73
50
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
74
51
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
75
52
|
us: "us";
|
|
@@ -80,7 +57,7 @@ declare const getDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
80
57
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
81
58
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
82
59
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.core.$strip>>
|
|
60
|
+
}, z.core.$strip>>], undefined>;
|
|
84
61
|
declare const createDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
85
62
|
destinationId: z.ZodString;
|
|
86
63
|
if: z.ZodString;
|
|
@@ -96,18 +73,7 @@ declare const createDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
96
73
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
97
74
|
title: z.ZodOptional<z.ZodString>;
|
|
98
75
|
description: z.ZodOptional<z.ZodString>;
|
|
99
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
100
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
101
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
102
|
-
us: "us";
|
|
103
|
-
eu: "eu";
|
|
104
|
-
}>>;
|
|
105
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
106
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
107
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
108
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
109
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
110
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
76
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
111
77
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
112
78
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
113
79
|
us: "us";
|
|
@@ -118,7 +84,7 @@ declare const createDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
118
84
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
119
85
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
120
86
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
121
|
-
}, z.core.$strip>>
|
|
87
|
+
}, z.core.$strip>>], undefined>;
|
|
122
88
|
declare const updateDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
123
89
|
destinationId: z.ZodString;
|
|
124
90
|
filterId: z.ZodString;
|
|
@@ -135,18 +101,7 @@ declare const updateDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
135
101
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
136
102
|
title: z.ZodOptional<z.ZodString>;
|
|
137
103
|
description: z.ZodOptional<z.ZodString>;
|
|
138
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
139
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
140
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
141
|
-
us: "us";
|
|
142
|
-
eu: "eu";
|
|
143
|
-
}>>;
|
|
144
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
145
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
146
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
147
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
148
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
149
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
104
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
150
105
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
151
106
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
152
107
|
us: "us";
|
|
@@ -157,24 +112,13 @@ declare const updateDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
157
112
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
158
113
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
159
114
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
160
|
-
}, z.core.$strip>>
|
|
115
|
+
}, z.core.$strip>>], undefined>;
|
|
161
116
|
declare const deleteDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
162
117
|
destinationId: z.ZodString;
|
|
163
118
|
filterId: z.ZodString;
|
|
164
119
|
}, z.core.$strip>, z.ZodObject<{
|
|
165
120
|
deleted: z.ZodLiteral<true>;
|
|
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<{
|
|
121
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
178
122
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
179
123
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
180
124
|
us: "us";
|
|
@@ -185,6 +129,6 @@ declare const deleteDestinationFilter: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
185
129
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
186
130
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
187
131
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
188
|
-
}, z.core.$strip>>
|
|
132
|
+
}, z.core.$strip>>], undefined>;
|
|
189
133
|
//#endregion
|
|
190
134
|
export { createDestinationFilter, deleteDestinationFilter, destinationFilterSchema, getDestinationFilter, listDestinationFilters, updateDestinationFilter };
|
|
@@ -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-Dqb49Dfj.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/destination-filters.ts
|
package/dist/destinations.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/destinations.d.ts
|
|
6
5
|
declare const destinationSchema: z.ZodObject<{
|
|
@@ -25,18 +24,7 @@ declare const listDestinations: _keystrokehq_core0.Operation<z.ZodIntersection<z
|
|
|
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,7 +35,7 @@ declare const listDestinations: _keystrokehq_core0.Operation<z.ZodIntersection<z
|
|
|
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 getDestination: _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<{
|
|
@@ -57,18 +45,7 @@ declare const getDestination: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
57
45
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
58
46
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
59
47
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
60
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
61
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
62
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
63
|
-
us: "us";
|
|
64
|
-
eu: "eu";
|
|
65
|
-
}>>;
|
|
66
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
67
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
68
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
69
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
70
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
48
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
72
49
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
73
50
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
74
51
|
us: "us";
|
|
@@ -79,7 +56,7 @@ declare const getDestination: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
79
56
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
80
57
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
81
58
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
82
|
-
}, z.core.$strip>>
|
|
59
|
+
}, z.core.$strip>>], undefined>;
|
|
83
60
|
declare const createDestination: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
84
61
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
85
62
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -89,18 +66,7 @@ declare const createDestination: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
89
66
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
90
67
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
91
68
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
92
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
93
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
94
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
95
|
-
us: "us";
|
|
96
|
-
eu: "eu";
|
|
97
|
-
}>>;
|
|
98
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
99
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
100
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
101
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
102
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
103
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
69
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
104
70
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
105
71
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
106
72
|
us: "us";
|
|
@@ -111,7 +77,7 @@ declare const createDestination: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
111
77
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
112
78
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
113
79
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
114
|
-
}, z.core.$strip>>
|
|
80
|
+
}, z.core.$strip>>], undefined>;
|
|
115
81
|
declare const updateDestination: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
116
82
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
117
83
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -121,7 +87,7 @@ declare const updateDestination: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
121
87
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
122
88
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
123
89
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
124
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
90
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
125
91
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
126
92
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
127
93
|
us: "us";
|
|
@@ -132,32 +98,10 @@ declare const updateDestination: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
132
98
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
133
99
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
134
100
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
135
|
-
}, z.core.$strip
|
|
136
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
137
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
138
|
-
us: "us";
|
|
139
|
-
eu: "eu";
|
|
140
|
-
}>>;
|
|
141
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
142
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
143
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
144
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
145
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
146
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
101
|
+
}, z.core.$strip>>], undefined>;
|
|
147
102
|
declare const deleteDestination: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
148
103
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
149
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
150
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
151
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
152
|
-
us: "us";
|
|
153
|
-
eu: "eu";
|
|
154
|
-
}>>;
|
|
155
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
156
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
157
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
158
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
159
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
160
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
104
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
161
105
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
162
106
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
163
107
|
us: "us";
|
|
@@ -168,7 +112,7 @@ declare const deleteDestination: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
168
112
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
169
113
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
170
114
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
171
|
-
}, z.core.$strip>>
|
|
115
|
+
}, z.core.$strip>>], undefined>;
|
|
172
116
|
declare const listDestinationMetadata: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
173
117
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
174
118
|
pageToken: z.ZodOptional<z.ZodString>;
|
|
@@ -182,7 +126,7 @@ declare const listDestinationMetadata: _keystrokehq_core0.Operation<z.ZodInterse
|
|
|
182
126
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
183
127
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
184
128
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
185
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
129
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
186
130
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
187
131
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
188
132
|
us: "us";
|
|
@@ -193,18 +137,7 @@ declare const listDestinationMetadata: _keystrokehq_core0.Operation<z.ZodInterse
|
|
|
193
137
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
194
138
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
195
139
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
196
|
-
}, z.core.$strip
|
|
197
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
198
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
199
|
-
us: "us";
|
|
200
|
-
eu: "eu";
|
|
201
|
-
}>>;
|
|
202
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
203
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
204
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
205
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
206
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
207
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
140
|
+
}, z.core.$strip>>], undefined>;
|
|
208
141
|
declare const getDestinationMetadata: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
209
142
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
210
143
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -213,18 +146,7 @@ declare const getDestinationMetadata: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
213
146
|
description: z.ZodOptional<z.ZodString>;
|
|
214
147
|
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
215
148
|
website: z.ZodOptional<z.ZodString>;
|
|
216
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
217
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
218
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
219
|
-
us: "us";
|
|
220
|
-
eu: "eu";
|
|
221
|
-
}>>;
|
|
222
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
223
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
224
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
225
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
226
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
227
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
149
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
228
150
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
229
151
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
230
152
|
us: "us";
|
|
@@ -235,7 +157,7 @@ declare const getDestinationMetadata: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
235
157
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
236
158
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
237
159
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
238
|
-
}, z.core.$strip>>
|
|
160
|
+
}, z.core.$strip>>], undefined>;
|
|
239
161
|
declare const listSubscriptions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
240
162
|
id: z.ZodString;
|
|
241
163
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -248,18 +170,7 @@ declare const listSubscriptions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
248
170
|
trigger: z.ZodOptional<z.ZodString>;
|
|
249
171
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
250
172
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
251
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
252
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
253
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
254
|
-
us: "us";
|
|
255
|
-
eu: "eu";
|
|
256
|
-
}>>;
|
|
257
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
258
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
259
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
260
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
261
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
262
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
173
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
263
174
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
264
175
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
265
176
|
us: "us";
|
|
@@ -270,7 +181,7 @@ declare const listSubscriptions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
270
181
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
271
182
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
272
183
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
273
|
-
}, z.core.$strip>>
|
|
184
|
+
}, z.core.$strip>>], undefined>;
|
|
274
185
|
declare const createSubscription: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
275
186
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
276
187
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -281,18 +192,7 @@ declare const createSubscription: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
281
192
|
actionSlug: z.ZodOptional<z.ZodString>;
|
|
282
193
|
trigger: z.ZodOptional<z.ZodString>;
|
|
283
194
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
284
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
285
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
286
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
287
|
-
us: "us";
|
|
288
|
-
eu: "eu";
|
|
289
|
-
}>>;
|
|
290
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
291
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
292
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
293
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
294
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
295
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
195
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
296
196
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
297
197
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
298
198
|
us: "us";
|
|
@@ -303,7 +203,7 @@ declare const createSubscription: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
303
203
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
304
204
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
305
205
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
306
|
-
}, z.core.$strip>>
|
|
206
|
+
}, z.core.$strip>>], undefined>;
|
|
307
207
|
declare const updateSubscription: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
308
208
|
destinationId: z.ZodString;
|
|
309
209
|
subscriptionId: z.ZodString;
|
|
@@ -318,18 +218,7 @@ declare const updateSubscription: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
318
218
|
actionSlug: z.ZodOptional<z.ZodString>;
|
|
319
219
|
trigger: z.ZodOptional<z.ZodString>;
|
|
320
220
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
321
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
322
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
323
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
324
|
-
us: "us";
|
|
325
|
-
eu: "eu";
|
|
326
|
-
}>>;
|
|
327
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
328
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
329
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
330
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
331
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
332
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
221
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
333
222
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
334
223
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
335
224
|
us: "us";
|
|
@@ -340,13 +229,13 @@ declare const updateSubscription: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
340
229
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
341
230
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
342
231
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
343
|
-
}, z.core.$strip>>
|
|
232
|
+
}, z.core.$strip>>], undefined>;
|
|
344
233
|
declare const deleteSubscription: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
345
234
|
destinationId: z.ZodString;
|
|
346
235
|
subscriptionId: z.ZodString;
|
|
347
236
|
}, z.core.$strip>, z.ZodObject<{
|
|
348
237
|
deleted: z.ZodLiteral<true>;
|
|
349
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
238
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
350
239
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
351
240
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
352
241
|
us: "us";
|
|
@@ -357,18 +246,7 @@ declare const deleteSubscription: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
357
246
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
358
247
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
359
248
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
360
|
-
}, z.core.$strip
|
|
361
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
362
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
363
|
-
us: "us";
|
|
364
|
-
eu: "eu";
|
|
365
|
-
}>>;
|
|
366
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
367
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
368
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
369
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
370
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
371
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
249
|
+
}, z.core.$strip>>], undefined>;
|
|
372
250
|
declare const listDeliveryMetricsSummary: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
373
251
|
id: z.ZodString;
|
|
374
252
|
startTime: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -378,18 +256,7 @@ declare const listDeliveryMetricsSummary: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
378
256
|
totalFailed: z.ZodOptional<z.ZodNumber>;
|
|
379
257
|
totalRetried: z.ZodOptional<z.ZodNumber>;
|
|
380
258
|
metrics: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
381
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
382
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
383
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
384
|
-
us: "us";
|
|
385
|
-
eu: "eu";
|
|
386
|
-
}>>;
|
|
387
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
388
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
389
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
390
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
391
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
392
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
259
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
393
260
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
394
261
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
395
262
|
us: "us";
|
|
@@ -400,7 +267,7 @@ declare const listDeliveryMetricsSummary: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
400
267
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
401
268
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
402
269
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
403
|
-
}, z.core.$strip>>
|
|
270
|
+
}, z.core.$strip>>], undefined>;
|
|
404
271
|
declare const listDeliveryMetricsSeries: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
405
272
|
id: z.ZodString;
|
|
406
273
|
startTime: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -411,7 +278,7 @@ declare const listDeliveryMetricsSeries: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
411
278
|
totalFailed: z.ZodOptional<z.ZodNumber>;
|
|
412
279
|
totalRetried: z.ZodOptional<z.ZodNumber>;
|
|
413
280
|
metrics: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
414
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
281
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
415
282
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
416
283
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
417
284
|
us: "us";
|
|
@@ -422,18 +289,7 @@ declare const listDeliveryMetricsSeries: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
422
289
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
423
290
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
424
291
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
425
|
-
}, z.core.$strip
|
|
426
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
427
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
428
|
-
us: "us";
|
|
429
|
-
eu: "eu";
|
|
430
|
-
}>>;
|
|
431
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
432
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
433
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
434
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
435
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
436
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
292
|
+
}, z.core.$strip>>], undefined>;
|
|
437
293
|
declare const listEventDeliveryFailures: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
438
294
|
id: z.ZodString;
|
|
439
295
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -446,18 +302,7 @@ declare const listEventDeliveryFailures: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
446
302
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
447
303
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
448
304
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
449
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
450
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
451
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
452
|
-
us: "us";
|
|
453
|
-
eu: "eu";
|
|
454
|
-
}>>;
|
|
455
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
456
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
457
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
458
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
459
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
460
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
305
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
461
306
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
462
307
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
463
308
|
us: "us";
|
|
@@ -468,6 +313,6 @@ declare const listEventDeliveryFailures: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
468
313
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
469
314
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
470
315
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
471
|
-
}, z.core.$strip>>
|
|
316
|
+
}, z.core.$strip>>], undefined>;
|
|
472
317
|
//#endregion
|
|
473
318
|
export { createDestination, createSubscription, deleteDestination, deleteSubscription, destinationSchema, getDestination, getDestinationMetadata, listDeliveryMetricsSeries, listDeliveryMetricsSummary, listDestinationMetadata, listDestinations, listEventDeliveryFailures, listSubscriptions, updateDestination, updateSubscription };
|
package/dist/destinations.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/destinations.ts
|