svix 2.3.0 → 2.5.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 (50) hide show
  1. package/dist/index.d.mts +1248 -798
  2. package/dist/index.d.mts.map +1 -1
  3. package/dist/index.mjs +4500 -3712
  4. package/dist/index.mjs.map +1 -1
  5. package/package.json +1 -1
  6. package/src/api/autoconfigSubscription.ts +53 -0
  7. package/src/api/destination.ts +133 -0
  8. package/src/api/destinationTransformation.ts +55 -0
  9. package/src/api_internal/autoconfigSubscription.ts +40 -0
  10. package/src/api_internal/autoconfigSubscriptionDestination.ts +27 -0
  11. package/src/api_internal/autoconfigSubscriptionEndpoint.ts +27 -0
  12. package/src/api_internal/endpoint.ts +3 -3
  13. package/src/api_internal/{endpointAutoConfig.ts → endpointAutoConfigDeprecated.ts} +1 -1
  14. package/src/autoconfig.test.ts +162 -3
  15. package/src/autoconfig.ts +88 -26
  16. package/src/autoconfigConsumer.ts +90 -16
  17. package/src/index.ts +10 -0
  18. package/src/models/autoConfigOut.ts +26 -0
  19. package/src/models/autoConfigSubscriptionOut.ts +38 -0
  20. package/src/models/destinationIn.ts +303 -0
  21. package/src/models/destinationOut.ts +295 -0
  22. package/src/models/destinationPatch.ts +302 -0
  23. package/src/models/destinationStatus.ts +18 -0
  24. package/src/models/destinationStatusIn.ts +16 -0
  25. package/src/models/destinationTransformIn.ts +19 -0
  26. package/src/models/destinationTransformationOut.ts +22 -0
  27. package/src/models/eventBridgeConfigIn.ts +14 -2
  28. package/src/models/eventBridgeConfigOut.ts +7 -1
  29. package/src/models/eventBridgeConfigPatch.ts +6 -0
  30. package/src/models/fifoEndpointConfigIn.ts +25 -0
  31. package/src/models/index.ts +13 -0
  32. package/src/models/ingestSourceIn.ts +12 -0
  33. package/src/models/ingestSourceOut.ts +12 -0
  34. package/src/models/listResponseDestinationOut.ts +31 -0
  35. package/src/models/mergeConfig.ts +19 -0
  36. package/src/models/mergeConfigOut.ts +15 -0
  37. package/src/models/redshiftConfigIn.ts +14 -2
  38. package/src/models/redshiftConfigOut.ts +7 -1
  39. package/src/models/redshiftConfigPatch.ts +6 -0
  40. package/src/models/rotateSubscriptionIn2.ts +29 -0
  41. package/src/models/s3ConfigIn.ts +1 -1
  42. package/src/models/snsConfigIn.ts +14 -2
  43. package/src/models/snsConfigOut.ts +7 -1
  44. package/src/models/snsConfigPatch.ts +6 -0
  45. package/src/models/sqsConfigIn.ts +14 -2
  46. package/src/models/sqsConfigOut.ts +7 -1
  47. package/src/models/sqsConfigPatch.ts +6 -0
  48. package/src/models/status.ts +16 -0
  49. package/src/models/streamSinkOut.ts +15 -0
  50. package/src/request.ts +1 -1
@@ -0,0 +1,302 @@
1
+ // this file is @generated
2
+ import {
3
+ type AzureBlobStorageConfigPatch,
4
+ AzureBlobStorageConfigPatchSerializer,
5
+ } from "./azureBlobStorageConfigPatch";
6
+ import {
7
+ type BigQueryConfigPatch,
8
+ BigQueryConfigPatchSerializer,
9
+ } from "./bigQueryConfigPatch";
10
+ import {
11
+ type ClickhouseConfigPatch,
12
+ ClickhouseConfigPatchSerializer,
13
+ } from "./clickhouseConfigPatch";
14
+ import {
15
+ type DestinationStatusIn,
16
+ DestinationStatusInSerializer,
17
+ } from "./destinationStatusIn";
18
+ import {
19
+ type EventBridgeConfigPatch,
20
+ EventBridgeConfigPatchSerializer,
21
+ } from "./eventBridgeConfigPatch";
22
+ import {
23
+ type GoogleCloudPubSubConfigPatch,
24
+ GoogleCloudPubSubConfigPatchSerializer,
25
+ } from "./googleCloudPubSubConfigPatch";
26
+ import {
27
+ type GoogleCloudStorageConfigPatch,
28
+ GoogleCloudStorageConfigPatchSerializer,
29
+ } from "./googleCloudStorageConfigPatch";
30
+ import {
31
+ type OtelTracingConfigPatch,
32
+ OtelTracingConfigPatchSerializer,
33
+ } from "./otelTracingConfigPatch";
34
+ import {
35
+ type PostgresConfigPatch,
36
+ PostgresConfigPatchSerializer,
37
+ } from "./postgresConfigPatch";
38
+ import {
39
+ type RabbitMqConfigPatch,
40
+ RabbitMqConfigPatchSerializer,
41
+ } from "./rabbitMqConfigPatch";
42
+ import {
43
+ type RedshiftConfigPatch,
44
+ RedshiftConfigPatchSerializer,
45
+ } from "./redshiftConfigPatch";
46
+ import { type S3ConfigPatch, S3ConfigPatchSerializer } from "./s3ConfigPatch";
47
+ import {
48
+ type SinkHttpConfigPatch,
49
+ SinkHttpConfigPatchSerializer,
50
+ } from "./sinkHttpConfigPatch";
51
+ import {
52
+ type SnowflakeConfigPatch,
53
+ SnowflakeConfigPatchSerializer,
54
+ } from "./snowflakeConfigPatch";
55
+ import { type SnsConfigPatch, SnsConfigPatchSerializer } from "./snsConfigPatch";
56
+ import { type SqsConfigPatch, SqsConfigPatchSerializer } from "./sqsConfigPatch";
57
+
58
+ interface _DestinationPatchFields {
59
+ /** The Destination's UID. */
60
+ uid?: string | null;
61
+ status?: DestinationStatusIn | null;
62
+ batchSize?: number | null;
63
+ maxWaitSecs?: number | null;
64
+ eventTypes?: string[];
65
+ channels?: string[];
66
+ metadata?: { [key: string]: string };
67
+ }
68
+
69
+ // biome-ignore lint/suspicious/noEmptyInterface: backwards compat
70
+ interface DestinationPatchPollingEndpointConfig {}
71
+
72
+ interface DestinationPatchPollingEndpoint {
73
+ type: "pollingEndpoint";
74
+ config?: DestinationPatchPollingEndpointConfig;
75
+ }
76
+
77
+ interface DestinationPatchAzureBlobStorage {
78
+ type: "azureBlobStorage";
79
+ config: AzureBlobStorageConfigPatch;
80
+ }
81
+
82
+ interface DestinationPatchOtelTracing {
83
+ type: "otelTracing";
84
+ config: OtelTracingConfigPatch;
85
+ }
86
+
87
+ interface DestinationPatchFifoEndpoint {
88
+ type: "fifoEndpoint";
89
+ config: SinkHttpConfigPatch;
90
+ }
91
+
92
+ interface DestinationPatchAmazonS3 {
93
+ type: "amazonS3";
94
+ config: S3ConfigPatch;
95
+ }
96
+
97
+ interface DestinationPatchGoogleCloudStorage {
98
+ type: "googleCloudStorage";
99
+ config: GoogleCloudStorageConfigPatch;
100
+ }
101
+
102
+ interface DestinationPatchGoogleCloudPubSub {
103
+ type: "googleCloudPubSub";
104
+ config: GoogleCloudPubSubConfigPatch;
105
+ }
106
+
107
+ interface DestinationPatchSqs {
108
+ type: "sqs";
109
+ config: SqsConfigPatch;
110
+ }
111
+
112
+ interface DestinationPatchSns {
113
+ type: "sns";
114
+ config: SnsConfigPatch;
115
+ }
116
+
117
+ interface DestinationPatchBigQuery {
118
+ type: "bigQuery";
119
+ config: BigQueryConfigPatch;
120
+ }
121
+
122
+ interface DestinationPatchClickhouse {
123
+ type: "clickhouse";
124
+ config: ClickhouseConfigPatch;
125
+ }
126
+
127
+ interface DestinationPatchEventBridge {
128
+ type: "eventBridge";
129
+ config: EventBridgeConfigPatch;
130
+ }
131
+
132
+ interface DestinationPatchSnowflake {
133
+ type: "snowflake";
134
+ config: SnowflakeConfigPatch;
135
+ }
136
+
137
+ interface DestinationPatchRabbitMq {
138
+ type: "rabbitMq";
139
+ config: RabbitMqConfigPatch;
140
+ }
141
+
142
+ interface DestinationPatchRedshift {
143
+ type: "redshift";
144
+ config: RedshiftConfigPatch;
145
+ }
146
+
147
+ interface DestinationPatchPostgres {
148
+ type: "postgres";
149
+ config: PostgresConfigPatch;
150
+ }
151
+
152
+ export type DestinationPatch = _DestinationPatchFields &
153
+ (
154
+ | DestinationPatchPollingEndpoint
155
+ | DestinationPatchAzureBlobStorage
156
+ | DestinationPatchOtelTracing
157
+ | DestinationPatchFifoEndpoint
158
+ | DestinationPatchAmazonS3
159
+ | DestinationPatchGoogleCloudStorage
160
+ | DestinationPatchGoogleCloudPubSub
161
+ | DestinationPatchSqs
162
+ | DestinationPatchSns
163
+ | DestinationPatchBigQuery
164
+ | DestinationPatchClickhouse
165
+ | DestinationPatchEventBridge
166
+ | DestinationPatchSnowflake
167
+ | DestinationPatchRabbitMq
168
+ | DestinationPatchRedshift
169
+ | DestinationPatchPostgres
170
+ );
171
+
172
+ export const DestinationPatchSerializer = {
173
+ _fromJsonObject(object: any): DestinationPatch {
174
+ const type = object["type"];
175
+
176
+ function getConfig(type: string): any {
177
+ switch (type) {
178
+ case "pollingEndpoint":
179
+ return {};
180
+ case "azureBlobStorage":
181
+ return AzureBlobStorageConfigPatchSerializer._fromJsonObject(object["config"]);
182
+ case "otelTracing":
183
+ return OtelTracingConfigPatchSerializer._fromJsonObject(object["config"]);
184
+ case "fifoEndpoint":
185
+ return SinkHttpConfigPatchSerializer._fromJsonObject(object["config"]);
186
+ case "amazonS3":
187
+ return S3ConfigPatchSerializer._fromJsonObject(object["config"]);
188
+ case "googleCloudStorage":
189
+ return GoogleCloudStorageConfigPatchSerializer._fromJsonObject(
190
+ object["config"]
191
+ );
192
+ case "googleCloudPubSub":
193
+ return GoogleCloudPubSubConfigPatchSerializer._fromJsonObject(object["config"]);
194
+ case "sqs":
195
+ return SqsConfigPatchSerializer._fromJsonObject(object["config"]);
196
+ case "sns":
197
+ return SnsConfigPatchSerializer._fromJsonObject(object["config"]);
198
+ case "bigQuery":
199
+ return BigQueryConfigPatchSerializer._fromJsonObject(object["config"]);
200
+ case "clickhouse":
201
+ return ClickhouseConfigPatchSerializer._fromJsonObject(object["config"]);
202
+ case "eventBridge":
203
+ return EventBridgeConfigPatchSerializer._fromJsonObject(object["config"]);
204
+ case "snowflake":
205
+ return SnowflakeConfigPatchSerializer._fromJsonObject(object["config"]);
206
+ case "rabbitMq":
207
+ return RabbitMqConfigPatchSerializer._fromJsonObject(object["config"]);
208
+ case "redshift":
209
+ return RedshiftConfigPatchSerializer._fromJsonObject(object["config"]);
210
+ case "postgres":
211
+ return PostgresConfigPatchSerializer._fromJsonObject(object["config"]);
212
+ default:
213
+ throw new Error(`Unexpected type: ${type}`);
214
+ }
215
+ }
216
+
217
+ return {
218
+ type,
219
+ config: getConfig(type),
220
+ uid: object["uid"],
221
+ status:
222
+ object["status"] != null
223
+ ? DestinationStatusInSerializer._fromJsonObject(object["status"])
224
+ : undefined,
225
+ batchSize: object["batchSize"],
226
+ maxWaitSecs: object["maxWaitSecs"],
227
+ eventTypes: object["eventTypes"],
228
+ channels: object["channels"],
229
+ metadata: object["metadata"],
230
+ };
231
+ },
232
+
233
+ _toJsonObject(self: DestinationPatch): any {
234
+ // biome-ignore lint/suspicious/noImplicitAnyLet: the return type needs to be any
235
+ let config;
236
+ switch (self.type) {
237
+ case "pollingEndpoint":
238
+ config = {};
239
+ break;
240
+ case "azureBlobStorage":
241
+ config = AzureBlobStorageConfigPatchSerializer._toJsonObject(self.config);
242
+ break;
243
+ case "otelTracing":
244
+ config = OtelTracingConfigPatchSerializer._toJsonObject(self.config);
245
+ break;
246
+ case "fifoEndpoint":
247
+ config = SinkHttpConfigPatchSerializer._toJsonObject(self.config);
248
+ break;
249
+ case "amazonS3":
250
+ config = S3ConfigPatchSerializer._toJsonObject(self.config);
251
+ break;
252
+ case "googleCloudStorage":
253
+ config = GoogleCloudStorageConfigPatchSerializer._toJsonObject(self.config);
254
+ break;
255
+ case "googleCloudPubSub":
256
+ config = GoogleCloudPubSubConfigPatchSerializer._toJsonObject(self.config);
257
+ break;
258
+ case "sqs":
259
+ config = SqsConfigPatchSerializer._toJsonObject(self.config);
260
+ break;
261
+ case "sns":
262
+ config = SnsConfigPatchSerializer._toJsonObject(self.config);
263
+ break;
264
+ case "bigQuery":
265
+ config = BigQueryConfigPatchSerializer._toJsonObject(self.config);
266
+ break;
267
+ case "clickhouse":
268
+ config = ClickhouseConfigPatchSerializer._toJsonObject(self.config);
269
+ break;
270
+ case "eventBridge":
271
+ config = EventBridgeConfigPatchSerializer._toJsonObject(self.config);
272
+ break;
273
+ case "snowflake":
274
+ config = SnowflakeConfigPatchSerializer._toJsonObject(self.config);
275
+ break;
276
+ case "rabbitMq":
277
+ config = RabbitMqConfigPatchSerializer._toJsonObject(self.config);
278
+ break;
279
+ case "redshift":
280
+ config = RedshiftConfigPatchSerializer._toJsonObject(self.config);
281
+ break;
282
+ case "postgres":
283
+ config = PostgresConfigPatchSerializer._toJsonObject(self.config);
284
+ break;
285
+ }
286
+
287
+ return {
288
+ type: self.type,
289
+ config: config,
290
+ uid: self.uid,
291
+ status:
292
+ self.status != null
293
+ ? DestinationStatusInSerializer._toJsonObject(self.status)
294
+ : undefined,
295
+ batchSize: self.batchSize,
296
+ maxWaitSecs: self.maxWaitSecs,
297
+ eventTypes: self.eventTypes,
298
+ channels: self.channels,
299
+ metadata: self.metadata,
300
+ };
301
+ },
302
+ };
@@ -0,0 +1,18 @@
1
+ // this file is @generated
2
+
3
+ export enum DestinationStatus {
4
+ Enabled = "enabled",
5
+ Paused = "paused",
6
+ Disabled = "disabled",
7
+ Retrying = "retrying",
8
+ }
9
+
10
+ export const DestinationStatusSerializer = {
11
+ _fromJsonObject(object: any): DestinationStatus {
12
+ return object;
13
+ },
14
+
15
+ _toJsonObject(self: DestinationStatus): any {
16
+ return self;
17
+ },
18
+ };
@@ -0,0 +1,16 @@
1
+ // this file is @generated
2
+
3
+ export enum DestinationStatusIn {
4
+ Enabled = "enabled",
5
+ Disabled = "disabled",
6
+ }
7
+
8
+ export const DestinationStatusInSerializer = {
9
+ _fromJsonObject(object: any): DestinationStatusIn {
10
+ return object;
11
+ },
12
+
13
+ _toJsonObject(self: DestinationStatusIn): any {
14
+ return self;
15
+ },
16
+ };
@@ -0,0 +1,19 @@
1
+ // this file is @generated
2
+
3
+ export interface DestinationTransformIn {
4
+ code?: string | null;
5
+ }
6
+
7
+ export const DestinationTransformInSerializer = {
8
+ _fromJsonObject(object: any): DestinationTransformIn {
9
+ return {
10
+ code: object["code"],
11
+ };
12
+ },
13
+
14
+ _toJsonObject(self: DestinationTransformIn): any {
15
+ return {
16
+ code: self.code,
17
+ };
18
+ },
19
+ };
@@ -0,0 +1,22 @@
1
+ // this file is @generated
2
+
3
+ export interface DestinationTransformationOut {
4
+ code?: string | null;
5
+ enabled: boolean;
6
+ }
7
+
8
+ export const DestinationTransformationOutSerializer = {
9
+ _fromJsonObject(object: any): DestinationTransformationOut {
10
+ return {
11
+ code: object["code"],
12
+ enabled: object["enabled"],
13
+ };
14
+ },
15
+
16
+ _toJsonObject(self: DestinationTransformationOut): any {
17
+ return {
18
+ code: self.code,
19
+ enabled: self.enabled,
20
+ };
21
+ },
22
+ };
@@ -8,15 +8,23 @@ export interface EventBridgeConfigIn {
8
8
  /**
9
9
  * Access key ID.
10
10
  *
11
- * Currently a required field, but marked as optional because we may add different authentication in the future.
11
+ * Required (along with `secret_access_key`) if `role_arn` is blank.
12
12
  */
13
13
  accessKeyId?: string | null;
14
14
  /**
15
15
  * Secret access key.
16
16
  *
17
- * Currently a required field, but marked as optional because we may add different authentication in the future.
17
+ * Required (along with `access_key_id`) if `role_arn` is blank.
18
18
  */
19
19
  secretAccessKey?: string | null;
20
+ /** Role ARN for delegated authentication */
21
+ roleArn?: string | null;
22
+ /**
23
+ * Shared secret passed as the STS ExternalId.
24
+ *
25
+ * Can only be set if `role_arn` is Some
26
+ */
27
+ externalId?: string | null;
20
28
  /**
21
29
  * The region of the EventBridge bus.
22
30
  *
@@ -32,6 +40,8 @@ export const EventBridgeConfigInSerializer = {
32
40
  detailType: object["detailType"],
33
41
  accessKeyId: object["accessKeyId"],
34
42
  secretAccessKey: object["secretAccessKey"],
43
+ roleArn: object["roleArn"],
44
+ externalId: object["externalId"],
35
45
  region: object["region"],
36
46
  };
37
47
  },
@@ -42,6 +52,8 @@ export const EventBridgeConfigInSerializer = {
42
52
  detailType: self.detailType,
43
53
  accessKeyId: self.accessKeyId,
44
54
  secretAccessKey: self.secretAccessKey,
55
+ roleArn: self.roleArn,
56
+ externalId: self.externalId,
45
57
  region: self.region,
46
58
  };
47
59
  },
@@ -3,7 +3,9 @@
3
3
  export interface EventBridgeConfigOut {
4
4
  eventBusName: string;
5
5
  detailType: string;
6
- accessKeyId: string;
6
+ accessKeyId?: string | null;
7
+ roleArn?: string | null;
8
+ externalId?: string | null;
7
9
  region: string;
8
10
  }
9
11
 
@@ -13,6 +15,8 @@ export const EventBridgeConfigOutSerializer = {
13
15
  eventBusName: object["eventBusName"],
14
16
  detailType: object["detailType"],
15
17
  accessKeyId: object["accessKeyId"],
18
+ roleArn: object["roleArn"],
19
+ externalId: object["externalId"],
16
20
  region: object["region"],
17
21
  };
18
22
  },
@@ -22,6 +26,8 @@ export const EventBridgeConfigOutSerializer = {
22
26
  eventBusName: self.eventBusName,
23
27
  detailType: self.detailType,
24
28
  accessKeyId: self.accessKeyId,
29
+ roleArn: self.roleArn,
30
+ externalId: self.externalId,
25
31
  region: self.region,
26
32
  };
27
33
  },
@@ -5,6 +5,8 @@ export interface EventBridgeConfigPatch {
5
5
  detailType?: string;
6
6
  accessKeyId?: string;
7
7
  secretAccessKey?: string;
8
+ roleArn?: string;
9
+ externalId?: string;
8
10
  region?: string;
9
11
  }
10
12
 
@@ -15,6 +17,8 @@ export const EventBridgeConfigPatchSerializer = {
15
17
  detailType: object["detailType"],
16
18
  accessKeyId: object["accessKeyId"],
17
19
  secretAccessKey: object["secretAccessKey"],
20
+ roleArn: object["roleArn"],
21
+ externalId: object["externalId"],
18
22
  region: object["region"],
19
23
  };
20
24
  },
@@ -25,6 +29,8 @@ export const EventBridgeConfigPatchSerializer = {
25
29
  detailType: self.detailType,
26
30
  accessKeyId: self.accessKeyId,
27
31
  secretAccessKey: self.secretAccessKey,
32
+ roleArn: self.roleArn,
33
+ externalId: self.externalId,
28
34
  region: self.region,
29
35
  };
30
36
  },
@@ -0,0 +1,25 @@
1
+ // this file is @generated
2
+
3
+ export interface FifoEndpointConfigIn {
4
+ url: string;
5
+ headers?: { [key: string]: string };
6
+ key?: string | null;
7
+ }
8
+
9
+ export const FifoEndpointConfigInSerializer = {
10
+ _fromJsonObject(object: any): FifoEndpointConfigIn {
11
+ return {
12
+ url: object["url"],
13
+ headers: object["headers"],
14
+ key: object["key"],
15
+ };
16
+ },
17
+
18
+ _toJsonObject(self: FifoEndpointConfigIn): any {
19
+ return {
20
+ url: self.url,
21
+ headers: self.headers,
22
+ key: self.key,
23
+ };
24
+ },
25
+ };
@@ -14,6 +14,7 @@ export { type ApplicationIn } from "./applicationIn";
14
14
  export { type ApplicationOut } from "./applicationOut";
15
15
  export { type ApplicationPatch } from "./applicationPatch";
16
16
  export { type ApplicationTokenExpireIn } from "./applicationTokenExpireIn";
17
+ export { type AutoConfigOut } from "./autoConfigOut";
17
18
  export { type AzureBlobStorageConfigIn } from "./azureBlobStorageConfigIn";
18
19
  export { type AzureBlobStorageConfigOut } from "./azureBlobStorageConfigOut";
19
20
  export { type AzureBlobStorageConfigPatch } from "./azureBlobStorageConfigPatch";
@@ -41,6 +42,13 @@ export { type ConnectorUpsertIn } from "./connectorUpsertIn";
41
42
  export { type CreateStreamEventsIn } from "./createStreamEventsIn";
42
43
  export { type CreateStreamEventsOut } from "./createStreamEventsOut";
43
44
  export { type CronConfig } from "./cronConfig";
45
+ export { type DestinationIn } from "./destinationIn";
46
+ export { type DestinationOut } from "./destinationOut";
47
+ export { type DestinationPatch } from "./destinationPatch";
48
+ export { DestinationStatus } from "./destinationStatus";
49
+ export { DestinationStatusIn } from "./destinationStatusIn";
50
+ export { type DestinationTransformIn } from "./destinationTransformIn";
51
+ export { type DestinationTransformationOut } from "./destinationTransformationOut";
44
52
  export { type DocusignConfig } from "./docusignConfig";
45
53
  export { type DocusignConfigOut } from "./docusignConfigOut";
46
54
  export { type EasypostConfig } from "./easypostConfig";
@@ -78,6 +86,7 @@ export { type EventTypeOut } from "./eventTypeOut";
78
86
  export { type EventTypePatch } from "./eventTypePatch";
79
87
  export { type EventTypeUpsertIn } from "./eventTypeUpsertIn";
80
88
  export { type ExpungeAllContentsOut } from "./expungeAllContentsOut";
89
+ export { type FifoEndpointConfigIn } from "./fifoEndpointConfigIn";
81
90
  export { type GithubConfig } from "./githubConfig";
82
91
  export { type GithubConfigOut } from "./githubConfigOut";
83
92
  export { type GoogleCloudPubSubConfigIn } from "./googleCloudPubSubConfigIn";
@@ -108,6 +117,7 @@ export { type IntegrationUpdate } from "./integrationUpdate";
108
117
  export { type ListResponseApplicationOut } from "./listResponseApplicationOut";
109
118
  export { type ListResponseBackgroundTaskOut } from "./listResponseBackgroundTaskOut";
110
119
  export { type ListResponseConnectorOut } from "./listResponseConnectorOut";
120
+ export { type ListResponseDestinationOut } from "./listResponseDestinationOut";
111
121
  export { type ListResponseEndpointMessageOut } from "./listResponseEndpointMessageOut";
112
122
  export { type ListResponseEndpointOut } from "./listResponseEndpointOut";
113
123
  export { type ListResponseEventTypeOut } from "./listResponseEventTypeOut";
@@ -121,6 +131,8 @@ export { type ListResponseOperationalWebhookEndpointOut } from "./listResponseOp
121
131
  export { type ListResponseStreamEventTypeOut } from "./listResponseStreamEventTypeOut";
122
132
  export { type ListResponseStreamOut } from "./listResponseStreamOut";
123
133
  export { type ListResponseStreamSinkOut } from "./listResponseStreamSinkOut";
134
+ export { type MergeConfig } from "./mergeConfig";
135
+ export { type MergeConfigOut } from "./mergeConfigOut";
124
136
  export { type MessageAttemptOut } from "./messageAttemptOut";
125
137
  export { MessageAttemptTriggerType } from "./messageAttemptTriggerType";
126
138
  export { type MessageEndpointOut } from "./messageEndpointOut";
@@ -171,6 +183,7 @@ export { type RedshiftConfigPatch } from "./redshiftConfigPatch";
171
183
  export { type ReplayIn } from "./replayIn";
172
184
  export { type ReplayOut } from "./replayOut";
173
185
  export { type RotatePollerTokenIn } from "./rotatePollerTokenIn";
186
+ export { type RotateSubscriptionIn2 } from "./rotateSubscriptionIn2";
174
187
  export { type RotateTokenOut } from "./rotateTokenOut";
175
188
  export { type RutterConfig } from "./rutterConfig";
176
189
  export { type RutterConfigOut } from "./rutterConfigOut";
@@ -7,6 +7,7 @@ import { type DocusignConfig, DocusignConfigSerializer } from "./docusignConfig"
7
7
  import { type EasypostConfig, EasypostConfigSerializer } from "./easypostConfig";
8
8
  import { type GithubConfig, GithubConfigSerializer } from "./githubConfig";
9
9
  import { type HubspotConfig, HubspotConfigSerializer } from "./hubspotConfig";
10
+ import { type MergeConfig, MergeConfigSerializer } from "./mergeConfig";
10
11
  import { type MetaConfig, MetaConfigSerializer } from "./metaConfig";
11
12
  import { type NangoConfig, NangoConfigSerializer } from "./nangoConfig";
12
13
  import { type OpenClawConfig, OpenClawConfigSerializer } from "./openClawConfig";
@@ -106,6 +107,11 @@ interface IngestSourceInLithic {
106
107
  config: SvixConfig;
107
108
  }
108
109
 
110
+ interface IngestSourceInMerge {
111
+ type: "merge";
112
+ config: MergeConfig;
113
+ }
114
+
109
115
  interface IngestSourceInMeta {
110
116
  type: "meta";
111
117
  config: MetaConfig;
@@ -267,6 +273,7 @@ export type IngestSourceIn = _IngestSourceInFields &
267
273
  | IngestSourceInHubspot
268
274
  | IngestSourceInIncidentIo
269
275
  | IngestSourceInLithic
276
+ | IngestSourceInMerge
270
277
  | IngestSourceInMeta
271
278
  | IngestSourceInNango
272
279
  | IngestSourceInNash
@@ -332,6 +339,8 @@ export const IngestSourceInSerializer = {
332
339
  return SvixConfigSerializer._fromJsonObject(object["config"]);
333
340
  case "lithic":
334
341
  return SvixConfigSerializer._fromJsonObject(object["config"]);
342
+ case "merge":
343
+ return MergeConfigSerializer._fromJsonObject(object["config"]);
335
344
  case "meta":
336
345
  return MetaConfigSerializer._fromJsonObject(object["config"]);
337
346
  case "nango":
@@ -450,6 +459,9 @@ export const IngestSourceInSerializer = {
450
459
  case "lithic":
451
460
  config = SvixConfigSerializer._toJsonObject(self.config);
452
461
  break;
462
+ case "merge":
463
+ config = MergeConfigSerializer._toJsonObject(self.config);
464
+ break;
453
465
  case "meta":
454
466
  config = MetaConfigSerializer._toJsonObject(self.config);
455
467
  break;
@@ -16,6 +16,7 @@ import { type DocusignConfigOut, DocusignConfigOutSerializer } from "./docusignC
16
16
  import { type EasypostConfigOut, EasypostConfigOutSerializer } from "./easypostConfigOut";
17
17
  import { type GithubConfigOut, GithubConfigOutSerializer } from "./githubConfigOut";
18
18
  import { type HubspotConfigOut, HubspotConfigOutSerializer } from "./hubspotConfigOut";
19
+ import { type MergeConfigOut, MergeConfigOutSerializer } from "./mergeConfigOut";
19
20
  import { type MetaConfigOut, MetaConfigOutSerializer } from "./metaConfigOut";
20
21
  import { type NangoConfigOut, NangoConfigOutSerializer } from "./nangoConfigOut";
21
22
  import { type OpenClawConfigOut, OpenClawConfigOutSerializer } from "./openClawConfigOut";
@@ -123,6 +124,11 @@ interface IngestSourceOutLithic {
123
124
  config: SvixConfigOut;
124
125
  }
125
126
 
127
+ interface IngestSourceOutMerge {
128
+ type: "merge";
129
+ config: MergeConfigOut;
130
+ }
131
+
126
132
  interface IngestSourceOutMeta {
127
133
  type: "meta";
128
134
  config: MetaConfigOut;
@@ -284,6 +290,7 @@ export type IngestSourceOut = _IngestSourceOutFields &
284
290
  | IngestSourceOutHubspot
285
291
  | IngestSourceOutIncidentIo
286
292
  | IngestSourceOutLithic
293
+ | IngestSourceOutMerge
287
294
  | IngestSourceOutMeta
288
295
  | IngestSourceOutNango
289
296
  | IngestSourceOutNash
@@ -349,6 +356,8 @@ export const IngestSourceOutSerializer = {
349
356
  return SvixConfigOutSerializer._fromJsonObject(object["config"]);
350
357
  case "lithic":
351
358
  return SvixConfigOutSerializer._fromJsonObject(object["config"]);
359
+ case "merge":
360
+ return MergeConfigOutSerializer._fromJsonObject(object["config"]);
352
361
  case "meta":
353
362
  return MetaConfigOutSerializer._fromJsonObject(object["config"]);
354
363
  case "nango":
@@ -471,6 +480,9 @@ export const IngestSourceOutSerializer = {
471
480
  case "lithic":
472
481
  config = SvixConfigOutSerializer._toJsonObject(self.config);
473
482
  break;
483
+ case "merge":
484
+ config = MergeConfigOutSerializer._toJsonObject(self.config);
485
+ break;
474
486
  case "meta":
475
487
  config = MetaConfigOutSerializer._toJsonObject(self.config);
476
488
  break;
@@ -0,0 +1,31 @@
1
+ // this file is @generated
2
+ import { type DestinationOut, DestinationOutSerializer } from "./destinationOut";
3
+
4
+ export interface ListResponseDestinationOut {
5
+ data: DestinationOut[];
6
+ iterator: string | null;
7
+ prevIterator?: string | null;
8
+ done: boolean;
9
+ }
10
+
11
+ export const ListResponseDestinationOutSerializer = {
12
+ _fromJsonObject(object: any): ListResponseDestinationOut {
13
+ return {
14
+ data: object["data"].map((item: DestinationOut) =>
15
+ DestinationOutSerializer._fromJsonObject(item)
16
+ ),
17
+ iterator: object["iterator"],
18
+ prevIterator: object["prevIterator"],
19
+ done: object["done"],
20
+ };
21
+ },
22
+
23
+ _toJsonObject(self: ListResponseDestinationOut): any {
24
+ return {
25
+ data: self.data.map((item) => DestinationOutSerializer._toJsonObject(item)),
26
+ iterator: self.iterator,
27
+ prevIterator: self.prevIterator,
28
+ done: self.done,
29
+ };
30
+ },
31
+ };