@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/edge-functions.d.ts
|
|
6
5
|
declare const edgeFunctionSchema: z.ZodObject<{
|
|
@@ -23,7 +22,7 @@ declare const listEdgeFunctions: _keystrokehq_core0.Operation<z.ZodIntersection<
|
|
|
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<{
|
|
25
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
27
26
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
28
27
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
29
28
|
us: "us";
|
|
@@ -34,18 +33,7 @@ declare const listEdgeFunctions: _keystrokehq_core0.Operation<z.ZodIntersection<
|
|
|
34
33
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
35
34
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
36
35
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
37
|
-
}, z.core.$strip
|
|
38
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
39
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
40
|
-
us: "us";
|
|
41
|
-
eu: "eu";
|
|
42
|
-
}>>;
|
|
43
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
44
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
45
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
46
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
47
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
36
|
+
}, z.core.$strip>>], undefined>;
|
|
49
37
|
declare const getEdgeFunction: _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 getEdgeFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
54
42
|
description: z.ZodOptional<z.ZodString>;
|
|
55
43
|
code: z.ZodOptional<z.ZodString>;
|
|
56
44
|
deployedVersion: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
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 getEdgeFunction: _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 upsertEdgeFunction: _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 upsertEdgeFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
85
62
|
description: z.ZodOptional<z.ZodString>;
|
|
86
63
|
code: z.ZodOptional<z.ZodString>;
|
|
87
64
|
deployedVersion: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
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,21 +73,10 @@ declare const upsertEdgeFunction: _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 deleteEdgeFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
112
78
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
113
|
-
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
114
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
115
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
116
|
-
us: "us";
|
|
117
|
-
eu: "eu";
|
|
118
|
-
}>>;
|
|
119
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
120
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
121
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
122
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
123
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
124
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
125
80
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
126
81
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
127
82
|
us: "us";
|
|
@@ -132,7 +87,7 @@ declare const deleteEdgeFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
132
87
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
133
88
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
134
89
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
135
|
-
}, z.core.$strip>>
|
|
90
|
+
}, z.core.$strip>>], undefined>;
|
|
136
91
|
declare const deployEdgeFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
137
92
|
id: z.ZodString;
|
|
138
93
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -141,18 +96,7 @@ declare const deployEdgeFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
141
96
|
description: z.ZodOptional<z.ZodString>;
|
|
142
97
|
code: z.ZodOptional<z.ZodString>;
|
|
143
98
|
deployedVersion: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
144
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
145
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
146
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
147
|
-
us: "us";
|
|
148
|
-
eu: "eu";
|
|
149
|
-
}>>;
|
|
150
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
151
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
152
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
153
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
154
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
155
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
99
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
156
100
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
157
101
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
158
102
|
us: "us";
|
|
@@ -163,6 +107,6 @@ declare const deployEdgeFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
163
107
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
164
108
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
165
109
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
166
|
-
}, z.core.$strip>>
|
|
110
|
+
}, z.core.$strip>>], undefined>;
|
|
167
111
|
//#endregion
|
|
168
112
|
export { deleteEdgeFunction, deployEdgeFunction, edgeFunctionSchema, getEdgeFunction, listEdgeFunctions, upsertEdgeFunction };
|
package/dist/edge-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-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/edge-functions.ts
|
|
@@ -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/events-catalog.d.ts
|
|
6
5
|
declare const listEventVolume: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
@@ -15,18 +14,7 @@ declare const listEventVolume: _keystrokehq_core0.Operation<z.ZodIntersection<z.
|
|
|
15
14
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
16
15
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
17
16
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
19
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
20
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
21
|
-
us: "us";
|
|
22
|
-
eu: "eu";
|
|
23
|
-
}>>;
|
|
24
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
25
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
26
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
27
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
28
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
29
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
17
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
30
18
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
31
19
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
32
20
|
us: "us";
|
|
@@ -37,7 +25,7 @@ declare const listEventVolume: _keystrokehq_core0.Operation<z.ZodIntersection<z.
|
|
|
37
25
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
38
26
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
39
27
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$strip>>
|
|
28
|
+
}, z.core.$strip>>], undefined>;
|
|
41
29
|
declare const listEventViolations: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
42
30
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
43
31
|
pageToken: z.ZodOptional<z.ZodString>;
|
|
@@ -50,18 +38,7 @@ declare const listEventViolations: _keystrokehq_core0.Operation<z.ZodIntersectio
|
|
|
50
38
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
51
39
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
52
40
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
53
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
54
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
55
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
56
|
-
us: "us";
|
|
57
|
-
eu: "eu";
|
|
58
|
-
}>>;
|
|
59
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
60
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
61
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
62
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
63
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
64
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
41
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
65
42
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
66
43
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
67
44
|
us: "us";
|
|
@@ -72,7 +49,7 @@ declare const listEventViolations: _keystrokehq_core0.Operation<z.ZodIntersectio
|
|
|
72
49
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
73
50
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
74
51
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
75
|
-
}, z.core.$strip>>
|
|
52
|
+
}, z.core.$strip>>], undefined>;
|
|
76
53
|
declare const listEventSchema: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
|
|
77
54
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
78
55
|
pageToken: z.ZodOptional<z.ZodString>;
|
|
@@ -84,18 +61,7 @@ declare const listEventSchema: _keystrokehq_core0.Operation<z.ZodIntersection<z.
|
|
|
84
61
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
85
62
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
86
63
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
87
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
88
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
89
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
90
|
-
us: "us";
|
|
91
|
-
eu: "eu";
|
|
92
|
-
}>>;
|
|
93
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
94
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
95
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
96
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
97
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
98
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
64
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
99
65
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
100
66
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
101
67
|
us: "us";
|
|
@@ -106,6 +72,6 @@ declare const listEventSchema: _keystrokehq_core0.Operation<z.ZodIntersection<z.
|
|
|
106
72
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
107
73
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
108
74
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
109
|
-
}, z.core.$strip>>
|
|
75
|
+
}, z.core.$strip>>], undefined>;
|
|
110
76
|
//#endregion
|
|
111
77
|
export { listEventSchema, listEventViolations, listEventVolume };
|
package/dist/events-catalog.mjs
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as segment } from "./integration-CliT2xe3.mjs";
|
|
2
|
+
import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
|
|
3
|
+
|
|
4
|
+
//#region src/factory.ts
|
|
5
|
+
const segmentOperation = createOfficialOperationFactory(segment);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { segmentOperation as t };
|
package/dist/functions.d.mts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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/functions.d.ts
|
|
6
5
|
declare const functionSchema: z.ZodObject<{
|
|
7
6
|
id: z.ZodString;
|
|
8
7
|
displayName: z.ZodOptional<z.ZodString>;
|
|
9
8
|
resourceType: z.ZodOptional<z.ZodEnum<{
|
|
10
|
-
destination: "destination";
|
|
11
9
|
source: "source";
|
|
10
|
+
destination: "destination";
|
|
12
11
|
insert: "insert";
|
|
13
12
|
}>>;
|
|
14
13
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -23,8 +22,8 @@ declare const listFunctions: _keystrokehq_core0.Operation<z.ZodIntersection<z.Zo
|
|
|
23
22
|
id: z.ZodString;
|
|
24
23
|
displayName: z.ZodOptional<z.ZodString>;
|
|
25
24
|
resourceType: z.ZodOptional<z.ZodEnum<{
|
|
26
|
-
destination: "destination";
|
|
27
25
|
source: "source";
|
|
26
|
+
destination: "destination";
|
|
28
27
|
insert: "insert";
|
|
29
28
|
}>>;
|
|
30
29
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -33,18 +32,7 @@ declare const listFunctions: _keystrokehq_core0.Operation<z.ZodIntersection<z.Zo
|
|
|
33
32
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
34
33
|
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
35
34
|
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
36
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
37
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
38
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
39
|
-
us: "us";
|
|
40
|
-
eu: "eu";
|
|
41
|
-
}>>;
|
|
42
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
43
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
44
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
45
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
46
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
47
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
35
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
48
36
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
49
37
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
50
38
|
us: "us";
|
|
@@ -55,32 +43,21 @@ declare const listFunctions: _keystrokehq_core0.Operation<z.ZodIntersection<z.Zo
|
|
|
55
43
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
56
44
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
57
45
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
58
|
-
}, z.core.$strip>>
|
|
46
|
+
}, z.core.$strip>>], undefined>;
|
|
59
47
|
declare const getFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
60
48
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
61
49
|
}, z.core.$strip>, z.ZodObject<{
|
|
62
50
|
id: z.ZodString;
|
|
63
51
|
displayName: z.ZodOptional<z.ZodString>;
|
|
64
52
|
resourceType: z.ZodOptional<z.ZodEnum<{
|
|
65
|
-
destination: "destination";
|
|
66
53
|
source: "source";
|
|
54
|
+
destination: "destination";
|
|
67
55
|
insert: "insert";
|
|
68
56
|
}>>;
|
|
69
57
|
description: z.ZodOptional<z.ZodString>;
|
|
70
58
|
code: z.ZodOptional<z.ZodString>;
|
|
71
59
|
settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
72
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
73
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
74
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
75
|
-
us: "us";
|
|
76
|
-
eu: "eu";
|
|
77
|
-
}>>;
|
|
78
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
79
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
80
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
81
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
82
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
60
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
84
61
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
85
62
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
86
63
|
us: "us";
|
|
@@ -91,32 +68,21 @@ declare const getFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
91
68
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
92
69
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
93
70
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
94
|
-
}, z.core.$strip>>
|
|
71
|
+
}, z.core.$strip>>], undefined>;
|
|
95
72
|
declare const createFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
96
73
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
97
74
|
}, z.core.$strip>, z.ZodObject<{
|
|
98
75
|
id: z.ZodString;
|
|
99
76
|
displayName: z.ZodOptional<z.ZodString>;
|
|
100
77
|
resourceType: z.ZodOptional<z.ZodEnum<{
|
|
101
|
-
destination: "destination";
|
|
102
78
|
source: "source";
|
|
79
|
+
destination: "destination";
|
|
103
80
|
insert: "insert";
|
|
104
81
|
}>>;
|
|
105
82
|
description: z.ZodOptional<z.ZodString>;
|
|
106
83
|
code: z.ZodOptional<z.ZodString>;
|
|
107
84
|
settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
108
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
109
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
110
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
111
|
-
us: "us";
|
|
112
|
-
eu: "eu";
|
|
113
|
-
}>>;
|
|
114
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
115
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
116
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
117
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
118
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
119
|
-
}, 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<{
|
|
120
86
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
121
87
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
122
88
|
us: "us";
|
|
@@ -127,21 +93,21 @@ declare const createFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
127
93
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
128
94
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
129
95
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
130
|
-
}, z.core.$strip>>
|
|
96
|
+
}, z.core.$strip>>], undefined>;
|
|
131
97
|
declare const updateFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
132
98
|
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
133
99
|
}, z.core.$strip>, z.ZodObject<{
|
|
134
100
|
id: z.ZodString;
|
|
135
101
|
displayName: z.ZodOptional<z.ZodString>;
|
|
136
102
|
resourceType: z.ZodOptional<z.ZodEnum<{
|
|
137
|
-
destination: "destination";
|
|
138
103
|
source: "source";
|
|
104
|
+
destination: "destination";
|
|
139
105
|
insert: "insert";
|
|
140
106
|
}>>;
|
|
141
107
|
description: z.ZodOptional<z.ZodString>;
|
|
142
108
|
code: z.ZodOptional<z.ZodString>;
|
|
143
109
|
settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
144
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
110
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
145
111
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
146
112
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
147
113
|
us: "us";
|
|
@@ -152,32 +118,10 @@ declare const updateFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
152
118
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
153
119
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
154
120
|
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>;
|
|
121
|
+
}, z.core.$strip>>], undefined>;
|
|
167
122
|
declare const deleteFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
168
123
|
[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<"segment", z.ZodObject<{
|
|
170
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
171
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
172
|
-
us: "us";
|
|
173
|
-
eu: "eu";
|
|
174
|
-
}>>;
|
|
175
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
176
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
177
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
178
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
179
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
180
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
181
125
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
182
126
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
183
127
|
us: "us";
|
|
@@ -188,25 +132,14 @@ declare const deleteFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
188
132
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
189
133
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
190
134
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
191
|
-
}, z.core.$strip>>
|
|
135
|
+
}, z.core.$strip>>], undefined>;
|
|
192
136
|
declare const deployFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
193
137
|
id: z.ZodString;
|
|
194
138
|
}, z.core.$strip>, z.ZodObject<{
|
|
195
139
|
id: z.ZodString;
|
|
196
140
|
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
197
141
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
198
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
199
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
200
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
201
|
-
us: "us";
|
|
202
|
-
eu: "eu";
|
|
203
|
-
}>>;
|
|
204
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
205
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
206
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
207
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
208
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
209
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
142
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
210
143
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
211
144
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
212
145
|
us: "us";
|
|
@@ -217,7 +150,7 @@ declare const deployFunction: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
217
150
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
218
151
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
219
152
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
220
|
-
}, z.core.$strip>>
|
|
153
|
+
}, z.core.$strip>>], undefined>;
|
|
221
154
|
declare const listFunctionVersions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
222
155
|
id: z.ZodString;
|
|
223
156
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -226,18 +159,7 @@ declare const listFunctionVersions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
226
159
|
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
227
160
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
228
161
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
229
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
230
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
231
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
232
|
-
us: "us";
|
|
233
|
-
eu: "eu";
|
|
234
|
-
}>>;
|
|
235
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
236
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
237
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
238
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
239
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
240
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
162
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
241
163
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
242
164
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
243
165
|
us: "us";
|
|
@@ -248,7 +170,7 @@ declare const listFunctionVersions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
248
170
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
249
171
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
250
172
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
251
|
-
}, z.core.$strip>>
|
|
173
|
+
}, z.core.$strip>>], undefined>;
|
|
252
174
|
declare const getFunctionVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
253
175
|
id: z.ZodString;
|
|
254
176
|
versionId: z.ZodString;
|
|
@@ -256,18 +178,7 @@ declare const getFunctionVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
256
178
|
id: z.ZodString;
|
|
257
179
|
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
258
180
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
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<{
|
|
181
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
271
182
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
272
183
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
273
184
|
us: "us";
|
|
@@ -278,7 +189,7 @@ declare const getFunctionVersion: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
278
189
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
279
190
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
280
191
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
281
|
-
}, z.core.$strip>>
|
|
192
|
+
}, z.core.$strip>>], undefined>;
|
|
282
193
|
declare const invokeFunctionTest: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
283
194
|
id: z.ZodString;
|
|
284
195
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -288,18 +199,7 @@ declare const invokeFunctionTest: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
288
199
|
logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
289
200
|
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
290
201
|
error: z.ZodOptional<z.ZodString>;
|
|
291
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
292
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
293
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
294
|
-
us: "us";
|
|
295
|
-
eu: "eu";
|
|
296
|
-
}>>;
|
|
297
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
298
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
299
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
300
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
301
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
302
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
202
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
303
203
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
304
204
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
305
205
|
us: "us";
|
|
@@ -310,7 +210,7 @@ declare const invokeFunctionTest: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
310
210
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
311
211
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
312
212
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
313
|
-
}, z.core.$strip>>
|
|
213
|
+
}, z.core.$strip>>], undefined>;
|
|
314
214
|
declare const listDeployedFunctionInstances: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
315
215
|
id: z.ZodString;
|
|
316
216
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -320,18 +220,7 @@ declare const listDeployedFunctionInstances: _keystrokehq_core0.Operation<z.ZodO
|
|
|
320
220
|
destinationId: z.ZodOptional<z.ZodString>;
|
|
321
221
|
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
322
222
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
323
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"segment", z.ZodObject<{
|
|
324
|
-
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
325
|
-
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
326
|
-
us: "us";
|
|
327
|
-
eu: "eu";
|
|
328
|
-
}>>;
|
|
329
|
-
SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
|
|
330
|
-
SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
|
|
331
|
-
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
332
|
-
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
333
|
-
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
334
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
223
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
|
|
335
224
|
SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
|
|
336
225
|
SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
|
|
337
226
|
us: "us";
|
|
@@ -342,6 +231,6 @@ declare const listDeployedFunctionInstances: _keystrokehq_core0.Operation<z.ZodO
|
|
|
342
231
|
SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
|
|
343
232
|
SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
|
|
344
233
|
SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
|
|
345
|
-
}, z.core.$strip>>
|
|
234
|
+
}, z.core.$strip>>], undefined>;
|
|
346
235
|
//#endregion
|
|
347
236
|
export { createFunction, deleteFunction, deployFunction, functionSchema, getFunction, getFunctionVersion, invokeFunctionTest, listDeployedFunctionInstances, listFunctionVersions, listFunctions, updateFunction };
|
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-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/functions.ts
|