@keystrokehq/segment 0.0.15 → 0.0.16-integration-id-canonicalization.0

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.
Files changed (79) hide show
  1. package/README.md +52 -173
  2. package/dist/{client.mjs → client-DQfeZzLR.mjs} +28 -3
  3. package/dist/credential-sets/index.d.mts +2 -0
  4. package/dist/credential-sets/index.mjs +3 -0
  5. package/dist/index.d.mts +4 -1
  6. package/dist/index.mjs +5 -1
  7. package/dist/operations/index.d.mts +2 -0
  8. package/dist/operations/index.mjs +3 -0
  9. package/dist/schemas/index.mjs +1 -1
  10. package/dist/{integration-CliT2xe3.mjs → segment.credential-set-BTTrkHO7.mjs} +16 -9
  11. package/dist/{integration-DWeMeBqQ.d.mts → segment.credential-set-BgROtI_9.d.mts} +28 -27
  12. package/dist/{triggers.d.mts → triggers/index.d.mts} +72 -6
  13. package/dist/{triggers.mjs → triggers/index.mjs} +186 -7
  14. package/dist/workspace-list-spaces.operation-DKWX3vl5.mjs +5200 -0
  15. package/dist/workspace-list-spaces.operation-QbDIgfRG.d.mts +6548 -0
  16. package/package.json +14 -126
  17. package/dist/_official/index.d.mts +0 -2
  18. package/dist/_official/index.mjs +0 -3
  19. package/dist/_runtime/index.d.mts +0 -1
  20. package/dist/_runtime/index.mjs +0 -1
  21. package/dist/audiences.d.mts +0 -193
  22. package/dist/audiences.mjs +0 -205
  23. package/dist/client.d.mts +0 -90
  24. package/dist/computed-traits.d.mts +0 -148
  25. package/dist/computed-traits.mjs +0 -149
  26. package/dist/connection.d.mts +0 -2
  27. package/dist/connection.mjs +0 -3
  28. package/dist/crud-DGM2Ekdr.mjs +0 -140
  29. package/dist/deletion-suppression.d.mts +0 -135
  30. package/dist/deletion-suppression.mjs +0 -103
  31. package/dist/delivery-overview.d.mts +0 -56
  32. package/dist/delivery-overview.mjs +0 -54
  33. package/dist/destination-filters.d.mts +0 -134
  34. package/dist/destination-filters.mjs +0 -115
  35. package/dist/destinations.d.mts +0 -318
  36. package/dist/destinations.mjs +0 -257
  37. package/dist/edge-functions.d.mts +0 -112
  38. package/dist/edge-functions.mjs +0 -72
  39. package/dist/errors-4FGnrowW.mjs +0 -27
  40. package/dist/events-catalog.d.mts +0 -77
  41. package/dist/events-catalog.mjs +0 -65
  42. package/dist/events.d.mts +0 -167
  43. package/dist/events.mjs +0 -134
  44. package/dist/factory-Dqb49Dfj.mjs +0 -8
  45. package/dist/functions.d.mts +0 -236
  46. package/dist/functions.mjs +0 -180
  47. package/dist/iam-groups.d.mts +0 -184
  48. package/dist/iam-groups.mjs +0 -144
  49. package/dist/iam-users.d.mts +0 -138
  50. package/dist/iam-users.mjs +0 -91
  51. package/dist/labels.d.mts +0 -66
  52. package/dist/labels.mjs +0 -58
  53. package/dist/monitoring.d.mts +0 -126
  54. package/dist/monitoring.mjs +0 -88
  55. package/dist/profiles-sync.d.mts +0 -82
  56. package/dist/profiles-sync.mjs +0 -89
  57. package/dist/profiles.d.mts +0 -130
  58. package/dist/profiles.mjs +0 -137
  59. package/dist/reverse-etl.d.mts +0 -315
  60. package/dist/reverse-etl.mjs +0 -228
  61. package/dist/roles.d.mts +0 -36
  62. package/dist/roles.mjs +0 -25
  63. package/dist/sources.d.mts +0 -383
  64. package/dist/sources.mjs +0 -259
  65. package/dist/tracking-plans.d.mts +0 -229
  66. package/dist/tracking-plans.mjs +0 -160
  67. package/dist/tracking.d.mts +0 -410
  68. package/dist/tracking.mjs +0 -255
  69. package/dist/transformations.d.mts +0 -132
  70. package/dist/transformations.mjs +0 -83
  71. package/dist/usage.d.mts +0 -47
  72. package/dist/usage.mjs +0 -55
  73. package/dist/verification.d.mts +0 -17
  74. package/dist/verification.mjs +0 -51
  75. package/dist/warehouses.d.mts +0 -219
  76. package/dist/warehouses.mjs +0 -176
  77. package/dist/workspaces.d.mts +0 -61
  78. package/dist/workspaces.mjs +0 -67
  79. /package/dist/{common-CdGiJbjq.mjs → common-DUU0airJ.mjs} +0 -0
package/dist/events.d.mts DELETED
@@ -1,167 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region src/events.d.ts
4
- /** Loose envelope a Segment Webhook destination delivers for Engage
5
- * audiences: the destination wraps the Engage event as a Segment "track"
6
- * call with properties carrying audience state. */
7
- declare const segmentAudienceWebhookEnvelopeSchema: z.ZodObject<{
8
- type: z.ZodOptional<z.ZodString>;
9
- event: z.ZodOptional<z.ZodString>;
10
- userId: z.ZodOptional<z.ZodString>;
11
- anonymousId: z.ZodOptional<z.ZodString>;
12
- messageId: z.ZodOptional<z.ZodString>;
13
- timestamp: z.ZodOptional<z.ZodString>;
14
- traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
- }, z.core.$catchall<z.ZodUnknown>>;
18
- /** Monitoring alert webhook envelope (fired for delivery-failure spikes,
19
- * function invocation errors, etc.). */
20
- declare const segmentMonitoringAlertEnvelopeSchema: z.ZodObject<{
21
- id: z.ZodOptional<z.ZodString>;
22
- subscriptionId: z.ZodOptional<z.ZodString>;
23
- eventType: z.ZodOptional<z.ZodString>;
24
- severity: z.ZodOptional<z.ZodString>;
25
- firedAt: z.ZodOptional<z.ZodString>;
26
- message: z.ZodOptional<z.ZodString>;
27
- sourceId: z.ZodOptional<z.ZodString>;
28
- destinationId: z.ZodOptional<z.ZodString>;
29
- functionId: z.ZodOptional<z.ZodString>;
30
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31
- }, z.core.$catchall<z.ZodUnknown>>;
32
- declare const segmentAudienceEventSchema: z.ZodObject<{
33
- type: z.ZodEnum<{
34
- entered: "entered";
35
- exited: "exited";
36
- }>;
37
- audienceKey: z.ZodString;
38
- userId: z.ZodOptional<z.ZodString>;
39
- anonymousId: z.ZodOptional<z.ZodString>;
40
- profileId: z.ZodOptional<z.ZodString>;
41
- traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
42
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
43
- messageId: z.ZodOptional<z.ZodString>;
44
- timestamp: z.ZodOptional<z.ZodString>;
45
- raw: z.ZodObject<{
46
- type: z.ZodOptional<z.ZodString>;
47
- event: z.ZodOptional<z.ZodString>;
48
- userId: z.ZodOptional<z.ZodString>;
49
- anonymousId: z.ZodOptional<z.ZodString>;
50
- messageId: z.ZodOptional<z.ZodString>;
51
- timestamp: z.ZodOptional<z.ZodString>;
52
- traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
53
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
54
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
55
- }, z.core.$catchall<z.ZodUnknown>>;
56
- }, z.core.$strip>;
57
- type SegmentAudienceEvent = z.infer<typeof segmentAudienceEventSchema>;
58
- declare const segmentComputedTraitEventSchema: z.ZodObject<{
59
- traitKey: z.ZodString;
60
- value: z.ZodUnknown;
61
- userId: z.ZodOptional<z.ZodString>;
62
- profileId: z.ZodOptional<z.ZodString>;
63
- messageId: z.ZodOptional<z.ZodString>;
64
- timestamp: z.ZodOptional<z.ZodString>;
65
- raw: z.ZodObject<{
66
- type: z.ZodOptional<z.ZodString>;
67
- event: z.ZodOptional<z.ZodString>;
68
- userId: z.ZodOptional<z.ZodString>;
69
- anonymousId: z.ZodOptional<z.ZodString>;
70
- messageId: z.ZodOptional<z.ZodString>;
71
- timestamp: z.ZodOptional<z.ZodString>;
72
- traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
73
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
74
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
75
- }, z.core.$catchall<z.ZodUnknown>>;
76
- }, z.core.$strip>;
77
- type SegmentComputedTraitEvent = z.infer<typeof segmentComputedTraitEventSchema>;
78
- declare const segmentMonitoringEventSchema: z.ZodObject<{
79
- alertId: z.ZodString;
80
- eventType: z.ZodString;
81
- severity: z.ZodOptional<z.ZodString>;
82
- firedAt: z.ZodOptional<z.ZodString>;
83
- sourceId: z.ZodOptional<z.ZodString>;
84
- destinationId: z.ZodOptional<z.ZodString>;
85
- functionId: z.ZodOptional<z.ZodString>;
86
- message: z.ZodOptional<z.ZodString>;
87
- raw: z.ZodObject<{
88
- id: z.ZodOptional<z.ZodString>;
89
- subscriptionId: z.ZodOptional<z.ZodString>;
90
- eventType: z.ZodOptional<z.ZodString>;
91
- severity: z.ZodOptional<z.ZodString>;
92
- firedAt: z.ZodOptional<z.ZodString>;
93
- message: z.ZodOptional<z.ZodString>;
94
- sourceId: z.ZodOptional<z.ZodString>;
95
- destinationId: z.ZodOptional<z.ZodString>;
96
- functionId: z.ZodOptional<z.ZodString>;
97
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
98
- }, z.core.$catchall<z.ZodUnknown>>;
99
- }, z.core.$strip>;
100
- type SegmentMonitoringEvent = z.infer<typeof segmentMonitoringEventSchema>;
101
- declare const segmentReverseEtlRunEventSchema: z.ZodObject<{
102
- runId: z.ZodString;
103
- modelId: z.ZodString;
104
- status: z.ZodEnum<{
105
- IN_PROGRESS: "IN_PROGRESS";
106
- SUCCEEDED: "SUCCEEDED";
107
- FAILED: "FAILED";
108
- }>;
109
- startedAt: z.ZodOptional<z.ZodString>;
110
- finishedAt: z.ZodOptional<z.ZodString>;
111
- error: z.ZodOptional<z.ZodString>;
112
- raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
113
- }, z.core.$strip>;
114
- type SegmentReverseEtlRunEvent = z.infer<typeof segmentReverseEtlRunEventSchema>;
115
- declare const segmentFunctionVersionEventSchema: z.ZodObject<{
116
- functionId: z.ZodString;
117
- versionId: z.ZodString;
118
- createdAt: z.ZodOptional<z.ZodString>;
119
- raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
120
- }, z.core.$strip>;
121
- type SegmentFunctionVersionEvent = z.infer<typeof segmentFunctionVersionEventSchema>;
122
- declare const segmentAudienceSyncEventSchema: z.ZodObject<{
123
- syncId: z.ZodString;
124
- audienceId: z.ZodString;
125
- spaceId: z.ZodString;
126
- status: z.ZodEnum<{
127
- success: "success";
128
- partial: "partial";
129
- failed: "failed";
130
- }>;
131
- finishedAt: z.ZodOptional<z.ZodString>;
132
- raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
133
- }, z.core.$strip>;
134
- type SegmentAudienceSyncEvent = z.infer<typeof segmentAudienceSyncEventSchema>;
135
- declare const segmentSourceCreatedEventSchema: z.ZodObject<{
136
- sourceId: z.ZodString;
137
- name: z.ZodOptional<z.ZodString>;
138
- createdAt: z.ZodOptional<z.ZodString>;
139
- raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
140
- }, z.core.$strip>;
141
- type SegmentSourceCreatedEvent = z.infer<typeof segmentSourceCreatedEventSchema>;
142
- declare const segmentDestinationCreatedEventSchema: z.ZodObject<{
143
- destinationId: z.ZodString;
144
- name: z.ZodOptional<z.ZodString>;
145
- sourceId: z.ZodOptional<z.ZodString>;
146
- createdAt: z.ZodOptional<z.ZodString>;
147
- raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
148
- }, z.core.$strip>;
149
- type SegmentDestinationCreatedEvent = z.infer<typeof segmentDestinationCreatedEventSchema>;
150
- declare const segmentTrackingPlanViolationEventSchema: z.ZodObject<{
151
- violationId: z.ZodString;
152
- eventName: z.ZodOptional<z.ZodString>;
153
- trackingPlanId: z.ZodOptional<z.ZodString>;
154
- sourceId: z.ZodOptional<z.ZodString>;
155
- messageId: z.ZodOptional<z.ZodString>;
156
- raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
157
- }, z.core.$strip>;
158
- type SegmentTrackingPlanViolationEvent = z.infer<typeof segmentTrackingPlanViolationEventSchema>;
159
- declare const segmentDeletionRegulationEventSchema: z.ZodObject<{
160
- regulationId: z.ZodString;
161
- regulationType: z.ZodOptional<z.ZodString>;
162
- finishedAt: z.ZodOptional<z.ZodString>;
163
- raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
164
- }, z.core.$strip>;
165
- type SegmentDeletionRegulationEvent = z.infer<typeof segmentDeletionRegulationEventSchema>;
166
- //#endregion
167
- export { SegmentAudienceEvent, SegmentAudienceSyncEvent, SegmentComputedTraitEvent, SegmentDeletionRegulationEvent, SegmentDestinationCreatedEvent, SegmentFunctionVersionEvent, SegmentMonitoringEvent, SegmentReverseEtlRunEvent, SegmentSourceCreatedEvent, SegmentTrackingPlanViolationEvent, segmentAudienceEventSchema, segmentAudienceSyncEventSchema, segmentAudienceWebhookEnvelopeSchema, segmentComputedTraitEventSchema, segmentDeletionRegulationEventSchema, segmentDestinationCreatedEventSchema, segmentFunctionVersionEventSchema, segmentMonitoringAlertEnvelopeSchema, segmentMonitoringEventSchema, segmentReverseEtlRunEventSchema, segmentSourceCreatedEventSchema, segmentTrackingPlanViolationEventSchema };
package/dist/events.mjs DELETED
@@ -1,134 +0,0 @@
1
- import { a as segmentLooseObjectSchema } from "./common-CdGiJbjq.mjs";
2
- import { z } from "zod";
3
-
4
- //#region src/events.ts
5
- /**
6
- * segment/events.ts
7
- *
8
- * Curated trigger-event schemas. Segment does not publish a unified webhook
9
- * event catalog — each destination shape (Webhook destination, Monitoring
10
- * alert webhook, Functions runtime webhook) carries its own body. We define
11
- * the author-visible shapes here and parse the raw payload into them in
12
- * `triggers.ts`.
13
- */
14
- /** Loose envelope a Segment Webhook destination delivers for Engage
15
- * audiences: the destination wraps the Engage event as a Segment "track"
16
- * call with properties carrying audience state. */
17
- const segmentAudienceWebhookEnvelopeSchema = segmentLooseObjectSchema({
18
- type: z.string().optional(),
19
- event: z.string().optional(),
20
- userId: z.string().optional(),
21
- anonymousId: z.string().optional(),
22
- messageId: z.string().optional(),
23
- timestamp: z.string().optional(),
24
- traits: z.record(z.string(), z.unknown()).optional(),
25
- properties: z.record(z.string(), z.unknown()).optional(),
26
- context: z.record(z.string(), z.unknown()).optional()
27
- });
28
- /** Monitoring alert webhook envelope (fired for delivery-failure spikes,
29
- * function invocation errors, etc.). */
30
- const segmentMonitoringAlertEnvelopeSchema = segmentLooseObjectSchema({
31
- id: z.string().optional(),
32
- subscriptionId: z.string().optional(),
33
- eventType: z.string().optional(),
34
- severity: z.string().optional(),
35
- firedAt: z.string().optional(),
36
- message: z.string().optional(),
37
- sourceId: z.string().optional(),
38
- destinationId: z.string().optional(),
39
- functionId: z.string().optional(),
40
- metadata: z.record(z.string(), z.unknown()).optional()
41
- });
42
- const segmentAudienceEventSchema = z.object({
43
- type: z.enum(["entered", "exited"]),
44
- audienceKey: z.string(),
45
- userId: z.string().optional(),
46
- anonymousId: z.string().optional(),
47
- profileId: z.string().optional(),
48
- traits: z.record(z.string(), z.unknown()).optional(),
49
- properties: z.record(z.string(), z.unknown()).optional(),
50
- messageId: z.string().optional(),
51
- timestamp: z.string().optional(),
52
- raw: segmentAudienceWebhookEnvelopeSchema
53
- });
54
- const segmentComputedTraitEventSchema = z.object({
55
- traitKey: z.string(),
56
- value: z.unknown(),
57
- userId: z.string().optional(),
58
- profileId: z.string().optional(),
59
- messageId: z.string().optional(),
60
- timestamp: z.string().optional(),
61
- raw: segmentAudienceWebhookEnvelopeSchema
62
- });
63
- const segmentMonitoringEventSchema = z.object({
64
- alertId: z.string(),
65
- eventType: z.string(),
66
- severity: z.string().optional(),
67
- firedAt: z.string().optional(),
68
- sourceId: z.string().optional(),
69
- destinationId: z.string().optional(),
70
- functionId: z.string().optional(),
71
- message: z.string().optional(),
72
- raw: segmentMonitoringAlertEnvelopeSchema
73
- });
74
- const segmentReverseEtlRunEventSchema = z.object({
75
- runId: z.string(),
76
- modelId: z.string(),
77
- status: z.enum([
78
- "IN_PROGRESS",
79
- "SUCCEEDED",
80
- "FAILED"
81
- ]),
82
- startedAt: z.string().optional(),
83
- finishedAt: z.string().optional(),
84
- error: z.string().optional(),
85
- raw: z.record(z.string(), z.unknown())
86
- });
87
- const segmentFunctionVersionEventSchema = z.object({
88
- functionId: z.string(),
89
- versionId: z.string(),
90
- createdAt: z.string().optional(),
91
- raw: z.record(z.string(), z.unknown())
92
- });
93
- const segmentAudienceSyncEventSchema = z.object({
94
- syncId: z.string(),
95
- audienceId: z.string(),
96
- spaceId: z.string(),
97
- status: z.enum([
98
- "success",
99
- "partial",
100
- "failed"
101
- ]),
102
- finishedAt: z.string().optional(),
103
- raw: z.record(z.string(), z.unknown())
104
- });
105
- const segmentSourceCreatedEventSchema = z.object({
106
- sourceId: z.string(),
107
- name: z.string().optional(),
108
- createdAt: z.string().optional(),
109
- raw: z.record(z.string(), z.unknown())
110
- });
111
- const segmentDestinationCreatedEventSchema = z.object({
112
- destinationId: z.string(),
113
- name: z.string().optional(),
114
- sourceId: z.string().optional(),
115
- createdAt: z.string().optional(),
116
- raw: z.record(z.string(), z.unknown())
117
- });
118
- const segmentTrackingPlanViolationEventSchema = z.object({
119
- violationId: z.string(),
120
- eventName: z.string().optional(),
121
- trackingPlanId: z.string().optional(),
122
- sourceId: z.string().optional(),
123
- messageId: z.string().optional(),
124
- raw: z.record(z.string(), z.unknown())
125
- });
126
- const segmentDeletionRegulationEventSchema = z.object({
127
- regulationId: z.string(),
128
- regulationType: z.string().optional(),
129
- finishedAt: z.string().optional(),
130
- raw: z.record(z.string(), z.unknown())
131
- });
132
-
133
- //#endregion
134
- export { segmentAudienceEventSchema, segmentAudienceSyncEventSchema, segmentAudienceWebhookEnvelopeSchema, segmentComputedTraitEventSchema, segmentDeletionRegulationEventSchema, segmentDestinationCreatedEventSchema, segmentFunctionVersionEventSchema, segmentMonitoringAlertEnvelopeSchema, segmentMonitoringEventSchema, segmentReverseEtlRunEventSchema, segmentSourceCreatedEventSchema, segmentTrackingPlanViolationEventSchema };
@@ -1,8 +0,0 @@
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 };
@@ -1,236 +0,0 @@
1
- import { z } from "zod";
2
- import * as _keystrokehq_core0 from "@keystrokehq/core";
3
-
4
- //#region src/functions.d.ts
5
- declare const functionSchema: z.ZodObject<{
6
- id: z.ZodString;
7
- displayName: z.ZodOptional<z.ZodString>;
8
- resourceType: z.ZodOptional<z.ZodEnum<{
9
- source: "source";
10
- destination: "destination";
11
- insert: "insert";
12
- }>>;
13
- description: z.ZodOptional<z.ZodString>;
14
- code: z.ZodOptional<z.ZodString>;
15
- settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
- }, z.core.$catchall<z.ZodUnknown>>;
17
- declare const listFunctions: _keystrokehq_core0.Operation<z.ZodIntersection<z.ZodObject<{
18
- pageSize: z.ZodOptional<z.ZodNumber>;
19
- pageToken: z.ZodOptional<z.ZodString>;
20
- }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
21
- items: z.ZodArray<z.ZodObject<{
22
- id: z.ZodString;
23
- displayName: z.ZodOptional<z.ZodString>;
24
- resourceType: z.ZodOptional<z.ZodEnum<{
25
- source: "source";
26
- destination: "destination";
27
- insert: "insert";
28
- }>>;
29
- description: z.ZodOptional<z.ZodString>;
30
- code: z.ZodOptional<z.ZodString>;
31
- settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
32
- }, z.core.$catchall<z.ZodUnknown>>>;
33
- nextPageToken: z.ZodOptional<z.ZodString>;
34
- totalEntries: z.ZodOptional<z.ZodNumber>;
35
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
36
- SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
37
- SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
38
- us: "us";
39
- eu: "eu";
40
- }>>;
41
- SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
42
- SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
43
- SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
44
- SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
45
- SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
46
- }, z.core.$strip>>], undefined>;
47
- declare const getFunction: _keystrokehq_core0.Operation<z.ZodObject<{
48
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
49
- }, z.core.$strip>, z.ZodObject<{
50
- id: z.ZodString;
51
- displayName: z.ZodOptional<z.ZodString>;
52
- resourceType: z.ZodOptional<z.ZodEnum<{
53
- source: "source";
54
- destination: "destination";
55
- insert: "insert";
56
- }>>;
57
- description: z.ZodOptional<z.ZodString>;
58
- code: z.ZodOptional<z.ZodString>;
59
- settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
60
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
72
- declare const createFunction: _keystrokehq_core0.Operation<z.ZodObject<{
73
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
74
- }, z.core.$strip>, z.ZodObject<{
75
- id: z.ZodString;
76
- displayName: z.ZodOptional<z.ZodString>;
77
- resourceType: z.ZodOptional<z.ZodEnum<{
78
- source: "source";
79
- destination: "destination";
80
- insert: "insert";
81
- }>>;
82
- description: z.ZodOptional<z.ZodString>;
83
- code: z.ZodOptional<z.ZodString>;
84
- settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
85
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
86
- SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
87
- SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
88
- us: "us";
89
- eu: "eu";
90
- }>>;
91
- SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
92
- SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
93
- SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
94
- SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
95
- SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
96
- }, z.core.$strip>>], undefined>;
97
- declare const updateFunction: _keystrokehq_core0.Operation<z.ZodObject<{
98
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
99
- }, z.core.$strip>, z.ZodObject<{
100
- id: z.ZodString;
101
- displayName: z.ZodOptional<z.ZodString>;
102
- resourceType: z.ZodOptional<z.ZodEnum<{
103
- source: "source";
104
- destination: "destination";
105
- insert: "insert";
106
- }>>;
107
- description: z.ZodOptional<z.ZodString>;
108
- code: z.ZodOptional<z.ZodString>;
109
- settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
110
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
111
- SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
112
- SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
113
- us: "us";
114
- eu: "eu";
115
- }>>;
116
- SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
117
- SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
118
- SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
119
- SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
120
- SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
121
- }, z.core.$strip>>], undefined>;
122
- declare const deleteFunction: _keystrokehq_core0.Operation<z.ZodObject<{
123
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
124
- }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
125
- SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
126
- SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
127
- us: "us";
128
- eu: "eu";
129
- }>>;
130
- SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
131
- SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
132
- SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
133
- SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
134
- SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
135
- }, z.core.$strip>>], undefined>;
136
- declare const deployFunction: _keystrokehq_core0.Operation<z.ZodObject<{
137
- id: z.ZodString;
138
- }, z.core.$strip>, z.ZodObject<{
139
- id: z.ZodString;
140
- version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
141
- createdAt: z.ZodOptional<z.ZodString>;
142
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
143
- SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
144
- SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
145
- us: "us";
146
- eu: "eu";
147
- }>>;
148
- SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
149
- SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
150
- SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
151
- SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
152
- SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
153
- }, z.core.$strip>>], undefined>;
154
- declare const listFunctionVersions: _keystrokehq_core0.Operation<z.ZodObject<{
155
- id: z.ZodString;
156
- }, z.core.$strip>, z.ZodObject<{
157
- items: z.ZodArray<z.ZodObject<{
158
- id: z.ZodString;
159
- version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
160
- createdAt: z.ZodOptional<z.ZodString>;
161
- }, z.core.$catchall<z.ZodUnknown>>>;
162
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
163
- SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
164
- SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
165
- us: "us";
166
- eu: "eu";
167
- }>>;
168
- SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
169
- SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
170
- SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
171
- SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
172
- SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
173
- }, z.core.$strip>>], undefined>;
174
- declare const getFunctionVersion: _keystrokehq_core0.Operation<z.ZodObject<{
175
- id: z.ZodString;
176
- versionId: z.ZodString;
177
- }, z.core.$strip>, z.ZodObject<{
178
- id: z.ZodString;
179
- version: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
180
- createdAt: z.ZodOptional<z.ZodString>;
181
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
182
- SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
183
- SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
184
- us: "us";
185
- eu: "eu";
186
- }>>;
187
- SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
188
- SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
189
- SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
190
- SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
191
- SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
192
- }, z.core.$strip>>], undefined>;
193
- declare const invokeFunctionTest: _keystrokehq_core0.Operation<z.ZodObject<{
194
- id: z.ZodString;
195
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
196
- settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
197
- }, z.core.$strip>, z.ZodObject<{
198
- success: z.ZodOptional<z.ZodBoolean>;
199
- logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
200
- output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
201
- error: z.ZodOptional<z.ZodString>;
202
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
203
- SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
204
- SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
205
- us: "us";
206
- eu: "eu";
207
- }>>;
208
- SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
209
- SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
210
- SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
211
- SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
212
- SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
213
- }, z.core.$strip>>], undefined>;
214
- declare const listDeployedFunctionInstances: _keystrokehq_core0.Operation<z.ZodObject<{
215
- id: z.ZodString;
216
- }, z.core.$strip>, z.ZodObject<{
217
- items: z.ZodArray<z.ZodObject<{
218
- id: z.ZodString;
219
- sourceId: z.ZodOptional<z.ZodString>;
220
- destinationId: z.ZodOptional<z.ZodString>;
221
- settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
222
- }, z.core.$catchall<z.ZodUnknown>>>;
223
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:segment", z.ZodObject<{
224
- SEGMENT_PUBLIC_API_TOKEN: z.ZodString;
225
- SEGMENT_REGION: z.ZodDefault<z.ZodEnum<{
226
- us: "us";
227
- eu: "eu";
228
- }>>;
229
- SEGMENT_DEFAULT_WRITE_KEY: z.ZodOptional<z.ZodString>;
230
- SEGMENT_WRITE_KEYS_JSON: z.ZodOptional<z.ZodString>;
231
- SEGMENT_PROFILE_API_TOKEN: z.ZodOptional<z.ZodString>;
232
- SEGMENT_PROFILE_SPACE_ID: z.ZodOptional<z.ZodString>;
233
- SEGMENT_WEBHOOK_SHARED_SECRET: z.ZodOptional<z.ZodString>;
234
- }, z.core.$strip>>], undefined>;
235
- //#endregion
236
- export { createFunction, deleteFunction, deployFunction, functionSchema, getFunction, getFunctionVersion, invokeFunctionTest, listDeployedFunctionInstances, listFunctionVersions, listFunctions, updateFunction };