@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/transformations.d.ts
|
|
6
5
|
declare const transformationSchema: z.ZodObject<{
|
|
@@ -31,7 +30,7 @@ declare const listTransformations: _keystrokehq_core0.Operation<z.ZodIntersectio
|
|
|
31
30
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
32
31
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
33
32
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
33
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
35
34
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
36
35
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
37
36
|
us: "us";
|
|
@@ -42,18 +41,7 @@ declare const listTransformations: _keystrokehq_core0.Operation<z.ZodIntersectio
|
|
|
42
41
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
43
42
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
44
43
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
45
|
-
}, z.core.$strip
|
|
46
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
47
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
48
|
-
us: "us";
|
|
49
|
-
eu: "eu";
|
|
50
|
-
}>>;
|
|
51
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
52
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
53
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
54
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
55
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
56
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
44
|
+
}, z.core.$strip>>], undefined>;
|
|
57
45
|
declare const getTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
58
46
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
59
47
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -66,18 +54,7 @@ declare const getTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
66
54
|
newEventName: z.ZodOptional<z.ZodString>;
|
|
67
55
|
propertyRenames: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
68
56
|
propertyValueTransformations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
69
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
70
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
71
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
72
|
-
us: "us";
|
|
73
|
-
eu: "eu";
|
|
74
|
-
}>>;
|
|
75
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
76
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
77
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
78
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
79
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
80
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
57
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
81
58
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
82
59
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
83
60
|
us: "us";
|
|
@@ -88,7 +65,7 @@ declare const getTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
88
65
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
89
66
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
90
67
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
91
|
-
}, z.core.$strip>>
|
|
68
|
+
}, z.core.$strip>>], undefined>;
|
|
92
69
|
declare const createTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
93
70
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
94
71
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -101,18 +78,7 @@ declare const createTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
101
78
|
newEventName: z.ZodOptional<z.ZodString>;
|
|
102
79
|
propertyRenames: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
103
80
|
propertyValueTransformations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
104
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
105
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
106
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
107
|
-
us: "us";
|
|
108
|
-
eu: "eu";
|
|
109
|
-
}>>;
|
|
110
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
111
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
112
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
113
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
114
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
115
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
81
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
116
82
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
117
83
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
118
84
|
us: "us";
|
|
@@ -123,7 +89,7 @@ declare const createTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
123
89
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
124
90
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
125
91
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
126
|
-
}, z.core.$strip>>
|
|
92
|
+
}, z.core.$strip>>], undefined>;
|
|
127
93
|
declare const updateTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
128
94
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
129
95
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -136,18 +102,7 @@ declare const updateTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
136
102
|
newEventName: z.ZodOptional<z.ZodString>;
|
|
137
103
|
propertyRenames: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
138
104
|
propertyValueTransformations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
139
|
-
}, 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<{
|
|
105
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
151
106
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
152
107
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
153
108
|
us: "us";
|
|
@@ -158,21 +113,10 @@ declare const updateTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
158
113
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
159
114
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
160
115
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, z.core.$strip>>
|
|
116
|
+
}, z.core.$strip>>], undefined>;
|
|
162
117
|
declare const deleteTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
163
118
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
164
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
165
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
166
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
167
|
-
us: "us";
|
|
168
|
-
eu: "eu";
|
|
169
|
-
}>>;
|
|
170
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
171
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
172
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
173
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
174
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
175
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
176
120
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
177
121
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
178
122
|
us: "us";
|
|
@@ -183,6 +127,6 @@ declare const deleteTransformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
183
127
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
184
128
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
185
129
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
186
|
-
}, z.core.$strip>>
|
|
130
|
+
}, z.core.$strip>>], undefined>;
|
|
187
131
|
//#endregion
|
|
188
132
|
export { createTransformation, deleteTransformation, getTransformation, listTransformations, transformationSchema, updateTransformation };
|
package/dist/transformations.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, t as crudGet } from "./crud-
|
|
2
|
+
import { n as crudList, r as crudMutate, t as crudGet } from "./crud-DGM2Ekdr.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/transformations.ts
|
package/dist/triggers.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as segment } from "./integration-
|
|
1
|
+
import { r as segment } from "./integration-DWeMeBqQ.mjs";
|
|
2
2
|
import { SegmentAudienceSyncEvent, SegmentDeletionRegulationEvent, SegmentDestinationCreatedEvent, SegmentFunctionVersionEvent, SegmentReverseEtlRunEvent, SegmentSourceCreatedEvent, SegmentTrackingPlanViolationEvent } from "./events.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { IntegrationTriggerBindingOptions } from "@keystrokehq/integration-authoring";
|
|
4
|
+
import { BoundTrigger } from "@keystrokehq/core";
|
|
5
5
|
import { PollingTriggerManifest } from "@keystrokehq/core/trigger";
|
|
6
6
|
|
|
7
7
|
//#region src/triggers.d.ts
|
package/dist/triggers.mjs
CHANGED
|
@@ -1,58 +1,8 @@
|
|
|
1
|
-
import { t as segment } from "./integration-
|
|
1
|
+
import { t as segment } from "./integration-CliT2xe3.mjs";
|
|
2
2
|
import { createSegmentClient } from "./client.mjs";
|
|
3
3
|
import { segmentAudienceSyncEventSchema, segmentDeletionRegulationEventSchema, segmentDestinationCreatedEventSchema, segmentFunctionVersionEventSchema, segmentReverseEtlRunEventSchema, segmentSourceCreatedEventSchema, segmentTrackingPlanViolationEventSchema } from "./events.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import { pollingTrigger } from "@keystrokehq/core/trigger";
|
|
4
|
+
import { createPollingTriggerBindingFactory } from "@keystrokehq/integration-authoring";
|
|
7
5
|
|
|
8
|
-
//#region ../../packages/integration-authoring/dist/index.mjs
|
|
9
|
-
const IntegrationConfigSchema = z.object({
|
|
10
|
-
id: z.string().min(1),
|
|
11
|
-
name: z.string().min(1),
|
|
12
|
-
description: z.string().optional()
|
|
13
|
-
});
|
|
14
|
-
function resolveMetadata(metadata, defaults) {
|
|
15
|
-
return {
|
|
16
|
-
id: metadata?.id ?? defaults.defaultId,
|
|
17
|
-
description: metadata?.description ?? defaults.defaultDescription
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function resolveAuthorPayload(payload, mapPayload) {
|
|
21
|
-
if (!mapPayload) return payload;
|
|
22
|
-
return mapPayload(payload);
|
|
23
|
-
}
|
|
24
|
-
function createIntegrationTriggerBindingFactory(config) {
|
|
25
|
-
const bind = (options) => {
|
|
26
|
-
const resolvedMetadata = resolveMetadata(options, config);
|
|
27
|
-
const baseTrigger = config.createBaseTrigger(resolvedMetadata);
|
|
28
|
-
const userTransform = options?.transform;
|
|
29
|
-
return baseTrigger({ transform: userTransform || config.mapPayload ? (runtimePayload, request) => {
|
|
30
|
-
const authorPayload = resolveAuthorPayload(runtimePayload, config.mapPayload);
|
|
31
|
-
if (authorPayload === null) throw new Error(`Trigger "${resolvedMetadata.id}" mapPayload returned null after the trigger filter passed; tighten the trigger filter schema.`);
|
|
32
|
-
if (!userTransform) return authorPayload;
|
|
33
|
-
return userTransform(authorPayload, request);
|
|
34
|
-
} : void 0 });
|
|
35
|
-
};
|
|
36
|
-
return Object.freeze(bind);
|
|
37
|
-
}
|
|
38
|
-
function createPollingTriggerBindingFactory(config) {
|
|
39
|
-
return createIntegrationTriggerBindingFactory({
|
|
40
|
-
defaultId: config.defaultId,
|
|
41
|
-
defaultDescription: config.defaultDescription,
|
|
42
|
-
mapPayload: config.mapPayload,
|
|
43
|
-
createBaseTrigger: (metadata) => pollingTrigger({
|
|
44
|
-
id: metadata.id,
|
|
45
|
-
description: metadata.description,
|
|
46
|
-
schedule: config.schedule,
|
|
47
|
-
response: config.response,
|
|
48
|
-
poll: config.poll,
|
|
49
|
-
...config.credentialSets ? { credentialSets: config.credentialSets } : {},
|
|
50
|
-
...config.filter ? { filter: config.filter } : {}
|
|
51
|
-
})
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
//#endregion
|
|
56
6
|
//#region src/triggers.ts
|
|
57
7
|
function buildPollingBinding(definition, options) {
|
|
58
8
|
const schedule = options?.schedule ?? definition.defaultSchedule;
|
|
@@ -63,7 +13,7 @@ function buildPollingBinding(definition, options) {
|
|
|
63
13
|
credentialSets: [segment],
|
|
64
14
|
response: definition.eventSchema,
|
|
65
15
|
poll: async (ctx) => {
|
|
66
|
-
const credentials = ctx.credentials["segment"];
|
|
16
|
+
const credentials = ctx.credentials["keystroke:segment"];
|
|
67
17
|
return definition.poll(credentials, ctx.lastPolledAt);
|
|
68
18
|
}
|
|
69
19
|
})({
|
package/dist/usage.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/usage.d.ts
|
|
6
5
|
declare const getDailyPerSourceUsage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -13,18 +12,7 @@ declare const getDailyPerSourceUsage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
13
12
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
14
13
|
callCount: z.ZodOptional<z.ZodNumber>;
|
|
15
14
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
16
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
17
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
18
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
19
|
-
us: "us";
|
|
20
|
-
eu: "eu";
|
|
21
|
-
}>>;
|
|
22
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
23
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
24
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
25
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
26
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
27
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
15
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
28
16
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
29
17
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
30
18
|
us: "us";
|
|
@@ -35,7 +23,7 @@ declare const getDailyPerSourceUsage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
35
23
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
36
24
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
37
25
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
38
|
-
}, z.core.$strip>>
|
|
26
|
+
}, z.core.$strip>>], undefined>;
|
|
39
27
|
declare const getMonthlyWorkspaceUsage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
40
28
|
month: z.ZodOptional<z.ZodString>;
|
|
41
29
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -43,18 +31,7 @@ declare const getMonthlyWorkspaceUsage: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
43
31
|
mtu: z.ZodOptional<z.ZodNumber>;
|
|
44
32
|
events: z.ZodOptional<z.ZodNumber>;
|
|
45
33
|
breakdowns: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
46
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
47
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
48
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
49
|
-
us: "us";
|
|
50
|
-
eu: "eu";
|
|
51
|
-
}>>;
|
|
52
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
53
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
54
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
55
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
56
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
57
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
34
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
58
35
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
59
36
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
60
37
|
us: "us";
|
|
@@ -65,6 +42,6 @@ declare const getMonthlyWorkspaceUsage: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
65
42
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
66
43
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
67
44
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
68
|
-
}, z.core.$strip>>
|
|
45
|
+
}, z.core.$strip>>], undefined>;
|
|
69
46
|
//#endregion
|
|
70
47
|
export { getDailyPerSourceUsage, getMonthlyWorkspaceUsage };
|
package/dist/usage.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSegmentClient } from "./client.mjs";
|
|
2
2
|
import { a as segmentLooseObjectSchema } 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/usage.ts
|
package/dist/warehouses.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/warehouses.d.ts
|
|
6
5
|
declare const warehouseSchema: z.ZodObject<{
|
|
@@ -23,18 +22,7 @@ declare const listWarehouses: _keystrokehq_core0.Operation<z.ZodIntersection<z.Z
|
|
|
23
22
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
24
23
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
25
24
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
26
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
27
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
28
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
29
|
-
us: "us";
|
|
30
|
-
eu: "eu";
|
|
31
|
-
}>>;
|
|
32
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
33
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
34
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
35
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
36
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
37
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
25
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
38
26
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
39
27
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
40
28
|
us: "us";
|
|
@@ -45,7 +33,7 @@ declare const listWarehouses: _keystrokehq_core0.Operation<z.ZodIntersection<z.Z
|
|
|
45
33
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
46
34
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
47
35
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strip>>
|
|
36
|
+
}, z.core.$strip>>], undefined>;
|
|
49
37
|
declare const getWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
50
38
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
51
39
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -54,18 +42,7 @@ declare const getWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
54
42
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
55
43
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
56
44
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
57
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
58
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
59
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
60
|
-
us: "us";
|
|
61
|
-
eu: "eu";
|
|
62
|
-
}>>;
|
|
63
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
64
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
65
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
66
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
67
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
68
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
45
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
69
46
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
70
47
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
71
48
|
us: "us";
|
|
@@ -76,7 +53,7 @@ declare const getWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
76
53
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
77
54
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
78
55
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
79
|
-
}, z.core.$strip>>
|
|
56
|
+
}, z.core.$strip>>], undefined>;
|
|
80
57
|
declare const createWarehouse: _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<{
|
|
@@ -85,18 +62,7 @@ declare const createWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
85
62
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
86
63
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
87
64
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
88
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
89
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
90
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
91
|
-
us: "us";
|
|
92
|
-
eu: "eu";
|
|
93
|
-
}>>;
|
|
94
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
95
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
96
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
97
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
98
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
99
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
65
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
100
66
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
101
67
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
102
68
|
us: "us";
|
|
@@ -107,7 +73,7 @@ declare const createWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
107
73
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
108
74
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
109
75
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
110
|
-
}, z.core.$strip>>
|
|
76
|
+
}, z.core.$strip>>], undefined>;
|
|
111
77
|
declare const updateWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
112
78
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
113
79
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -116,18 +82,7 @@ declare const updateWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
116
82
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
117
83
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
118
84
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
119
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
120
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
121
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
122
|
-
us: "us";
|
|
123
|
-
eu: "eu";
|
|
124
|
-
}>>;
|
|
125
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
126
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
127
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
128
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
129
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
130
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
85
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
131
86
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
132
87
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
133
88
|
us: "us";
|
|
@@ -138,10 +93,10 @@ declare const updateWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
138
93
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
139
94
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
140
95
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
141
|
-
}, z.core.$strip>>
|
|
96
|
+
}, z.core.$strip>>], undefined>;
|
|
142
97
|
declare const deleteWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
143
98
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
144
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
145
100
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
146
101
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
147
102
|
us: "us";
|
|
@@ -152,18 +107,7 @@ declare const deleteWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
152
107
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
153
108
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
154
109
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
155
|
-
}, z.core.$strip
|
|
156
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
157
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
158
|
-
us: "us";
|
|
159
|
-
eu: "eu";
|
|
160
|
-
}>>;
|
|
161
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
162
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
163
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
164
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
165
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
166
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
110
|
+
}, z.core.$strip>>], undefined>;
|
|
167
111
|
declare const listConnectedSources: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
168
112
|
id: z.ZodString;
|
|
169
113
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -172,18 +116,7 @@ declare const listConnectedSources: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
172
116
|
name: z.ZodOptional<z.ZodString>;
|
|
173
117
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
174
118
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
175
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
176
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
177
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
178
|
-
us: "us";
|
|
179
|
-
eu: "eu";
|
|
180
|
-
}>>;
|
|
181
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
182
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
183
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
184
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
185
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
186
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
119
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
187
120
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
188
121
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
189
122
|
us: "us";
|
|
@@ -194,24 +127,13 @@ declare const listConnectedSources: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
194
127
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
195
128
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
196
129
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
197
|
-
}, z.core.$strip>>
|
|
130
|
+
}, z.core.$strip>>], undefined>;
|
|
198
131
|
declare const connectSourceToWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
199
132
|
id: z.ZodString;
|
|
200
133
|
sourceId: z.ZodString;
|
|
201
134
|
}, z.core.$strip>, z.ZodObject<{
|
|
202
135
|
connected: z.ZodLiteral<true>;
|
|
203
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
204
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
205
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
206
|
-
us: "us";
|
|
207
|
-
eu: "eu";
|
|
208
|
-
}>>;
|
|
209
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
210
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
211
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
212
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
213
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
214
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
136
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
215
137
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
216
138
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
217
139
|
us: "us";
|
|
@@ -222,24 +144,13 @@ declare const connectSourceToWarehouse: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
222
144
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
223
145
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
224
146
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
225
|
-
}, z.core.$strip>>
|
|
147
|
+
}, z.core.$strip>>], undefined>;
|
|
226
148
|
declare const disconnectSourceFromWarehouse: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
227
149
|
id: z.ZodString;
|
|
228
150
|
sourceId: z.ZodString;
|
|
229
151
|
}, z.core.$strip>, z.ZodObject<{
|
|
230
152
|
disconnected: z.ZodLiteral<true>;
|
|
231
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
232
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
233
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
234
|
-
us: "us";
|
|
235
|
-
eu: "eu";
|
|
236
|
-
}>>;
|
|
237
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
238
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
239
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
240
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
241
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
242
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
153
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
243
154
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
244
155
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
245
156
|
us: "us";
|
|
@@ -250,24 +161,13 @@ declare const disconnectSourceFromWarehouse: _keystrokehq_core0.Operation<z.ZodO
|
|
|
250
161
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
251
162
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
252
163
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
253
|
-
}, z.core.$strip>>
|
|
164
|
+
}, z.core.$strip>>], undefined>;
|
|
254
165
|
declare const getSelectiveSync: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
255
166
|
id: z.ZodString;
|
|
256
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
257
168
|
warehouseId: z.ZodOptional<z.ZodString>;
|
|
258
169
|
items: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
259
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
260
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
261
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
262
|
-
us: "us";
|
|
263
|
-
eu: "eu";
|
|
264
|
-
}>>;
|
|
265
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
266
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
267
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
268
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
269
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
270
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
170
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
271
171
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
272
172
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
273
173
|
us: "us";
|
|
@@ -278,25 +178,14 @@ declare const getSelectiveSync: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
278
178
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
279
179
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
280
180
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
281
|
-
}, z.core.$strip>>
|
|
181
|
+
}, z.core.$strip>>], undefined>;
|
|
282
182
|
declare const updateSelectiveSync: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
283
183
|
id: z.ZodString;
|
|
284
184
|
items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
285
185
|
}, z.core.$strip>, z.ZodObject<{
|
|
286
186
|
warehouseId: z.ZodOptional<z.ZodString>;
|
|
287
187
|
items: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
288
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
289
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
290
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
291
|
-
us: "us";
|
|
292
|
-
eu: "eu";
|
|
293
|
-
}>>;
|
|
294
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
295
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
296
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
297
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
298
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
299
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
188
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
300
189
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
301
190
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
302
191
|
us: "us";
|
|
@@ -307,25 +196,14 @@ declare const updateSelectiveSync: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
307
196
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
308
197
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
309
198
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
310
|
-
}, z.core.$strip>>
|
|
199
|
+
}, z.core.$strip>>], undefined>;
|
|
311
200
|
declare const testWarehouseConnection: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
312
201
|
id: z.ZodString;
|
|
313
202
|
}, z.core.$strip>, z.ZodObject<{
|
|
314
203
|
success: z.ZodOptional<z.ZodBoolean>;
|
|
315
204
|
message: z.ZodOptional<z.ZodString>;
|
|
316
205
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
317
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
318
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
319
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
320
|
-
us: "us";
|
|
321
|
-
eu: "eu";
|
|
322
|
-
}>>;
|
|
323
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
324
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
325
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
326
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
327
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
328
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
206
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
329
207
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
330
208
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
331
209
|
us: "us";
|
|
@@ -336,6 +214,6 @@ declare const testWarehouseConnection: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
336
214
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
337
215
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
338
216
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
339
|
-
}, z.core.$strip>>
|
|
217
|
+
}, z.core.$strip>>], undefined>;
|
|
340
218
|
//#endregion
|
|
341
219
|
export { connectSourceToWarehouse, createWarehouse, deleteWarehouse, disconnectSourceFromWarehouse, getSelectiveSync, getWarehouse, listConnectedSources, listWarehouses, testWarehouseConnection, updateSelectiveSync, updateWarehouse, warehouseSchema };
|
package/dist/warehouses.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/warehouses.ts
|