svix 2.5.0 → 2.6.1

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 (45) hide show
  1. package/dist/index.d.mts +168 -54
  2. package/dist/index.d.mts.map +1 -1
  3. package/dist/index.mjs +76 -12
  4. package/dist/index.mjs.map +1 -1
  5. package/package.json +1 -1
  6. package/src/api/autoconfigSubscription.ts +23 -0
  7. package/src/api/endpoint.ts +39 -0
  8. package/src/api/eventType.ts +4 -1
  9. package/src/api/message.ts +6 -3
  10. package/src/api/messageAttempt.ts +6 -3
  11. package/src/models/appPortalAccessIn.ts +4 -2
  12. package/src/models/appUsageStatsOut.ts +7 -7
  13. package/src/models/applicationTokenExpireIn.ts +2 -1
  14. package/src/models/autoConfigOut.ts +1 -0
  15. package/src/models/autoConfigSubscriptionOut.ts +1 -0
  16. package/src/models/azureBlobStorageConfigIn.ts +2 -1
  17. package/src/models/clickhouseConfigIn.ts +4 -2
  18. package/src/models/connectorKind.ts +1 -0
  19. package/src/models/createAutoConfigSubscriptionIn.ts +25 -0
  20. package/src/models/createStreamEventsIn.ts +2 -1
  21. package/src/models/destinationIn.ts +14 -5
  22. package/src/models/endpointAttemptStats.ts +25 -0
  23. package/src/models/endpointMessageOut.ts +4 -1
  24. package/src/models/endpointSecretRotateIn.ts +2 -1
  25. package/src/models/eventBridgeConfigIn.ts +2 -1
  26. package/src/models/eventTypeImportOpenApiIn.ts +3 -1
  27. package/src/models/index.ts +2 -0
  28. package/src/models/ingestEndpointSecretIn.ts +2 -1
  29. package/src/models/ingestSourceConsumerPortalAccessIn.ts +2 -1
  30. package/src/models/messageIn.ts +12 -4
  31. package/src/models/operationalWebhookEndpointSecretIn.ts +2 -1
  32. package/src/models/postgresConfigIn.ts +7 -3
  33. package/src/models/rabbitMqConfigIn.ts +14 -0
  34. package/src/models/rabbitMqConfigOut.ts +6 -0
  35. package/src/models/rabbitMqConfigPatch.ts +3 -0
  36. package/src/models/redshiftConfigIn.ts +4 -2
  37. package/src/models/rotatePollerTokenIn.ts +2 -1
  38. package/src/models/s3ConfigIn.ts +2 -1
  39. package/src/models/snowflakeConfigIn.ts +8 -3
  40. package/src/models/snsConfigIn.ts +2 -1
  41. package/src/models/sqsConfigIn.ts +2 -1
  42. package/src/models/streamPortalAccessIn.ts +4 -2
  43. package/src/models/streamSinkIn.ts +6 -2
  44. package/src/models/streamTokenExpireIn.ts +2 -1
  45. package/src/request.ts +1 -1
@@ -3,6 +3,7 @@
3
3
  export interface RabbitMqConfigPatch {
4
4
  routingKey?: string;
5
5
  uri?: string;
6
+ mandatory?: boolean;
6
7
  }
7
8
 
8
9
  export const RabbitMqConfigPatchSerializer = {
@@ -10,6 +11,7 @@ export const RabbitMqConfigPatchSerializer = {
10
11
  return {
11
12
  routingKey: object["routingKey"],
12
13
  uri: object["uri"],
14
+ mandatory: object["mandatory"],
13
15
  };
14
16
  },
15
17
 
@@ -17,6 +19,7 @@ export const RabbitMqConfigPatchSerializer = {
17
19
  return {
18
20
  routingKey: self.routingKey,
19
21
  uri: self.uri,
22
+ mandatory: self.mandatory,
20
23
  };
21
24
  },
22
25
  };
@@ -3,7 +3,8 @@
3
3
  /**
4
4
  * Configuration parameters for defining a Redshift sink.
5
5
  *
6
- * For provisioned clusters, set `cluster_identifier` and `db_user`. For Redshift Serverless, set `workgroup_name`.
6
+ * For provisioned clusters, set `cluster_identifier` and `db_user`.
7
+ * For Redshift Serverless, set `workgroup_name`.
7
8
  */
8
9
  export interface RedshiftConfigIn {
9
10
  /**
@@ -29,7 +30,8 @@ export interface RedshiftConfigIn {
29
30
  /**
30
31
  * The region of the Redshift DB.
31
32
  *
32
- * Currently a required field, but marked as optional because we may infer it from other fields in the future.
33
+ * Currently a required field, but marked as optional because we may infer
34
+ * it from other fields in the future.
33
35
  */
34
36
  region?: string | null;
35
37
  /** Required for provisioned clusters. */
@@ -6,7 +6,8 @@ export interface RotatePollerTokenIn {
6
6
  /**
7
7
  * Updates the previous token's expiration, in seconds.
8
8
  *
9
- * If set to 0, the old token will immediately be revoked. Must be between 0 and 86,400 seconds (1 day).
9
+ * If set to 0, the old token will immediately be revoked.
10
+ * Must be between 0 and 86,400 seconds (1 day).
10
11
  *
11
12
  * Defaults to 300 seconds (5 minutes).
12
13
  */
@@ -17,7 +17,8 @@ export interface S3ConfigIn {
17
17
  /**
18
18
  * The region of the S3 bucket
19
19
  *
20
- * Currently a required field, but marked as optional because we may infer it from other fields in the future.
20
+ * Currently a required field, but marked as optional because we may infer
21
+ * it from other fields in the future.
21
22
  */
22
23
  region?: string | null;
23
24
  endpointUrl?: string | null;
@@ -3,14 +3,19 @@
3
3
  /** Configuration parameters for defining a Snowflake sink. */
4
4
  export interface SnowflakeConfigIn {
5
5
  /**
6
- * PEM-encoded private key used for signing token-based requests to the Snowflake API.
6
+ * PEM-encoded private key used for signing token-based requests
7
+ * to the Snowflake API.
7
8
  *
8
9
  * Beginning/end delimiters are not required.
9
10
  *
10
- * Currently a required field, but marked as optional because we may add different authentication in the future.
11
+ * Currently a required field, but marked as optional because we may add
12
+ * different authentication in the future.
11
13
  */
12
14
  privateKey?: string | null;
13
- /** Snowflake account identifier, which includes both the organization and account IDs separated by a hyphen. */
15
+ /**
16
+ * Snowflake account identifier, which includes both the organization and account
17
+ * IDs separated by a hyphen.
18
+ */
14
19
  accountIdentifier: string;
15
20
  /** The Snowflake user id. */
16
21
  userId: string;
@@ -6,7 +6,8 @@ export interface SnsConfigIn {
6
6
  /**
7
7
  * The region of the SNS instance.
8
8
  *
9
- * Currently a required field, but marked as optional because we may infer it from other fields in the future.
9
+ * Currently a required field, but marked as optional because we may infer
10
+ * it from other fields in the future.
10
11
  */
11
12
  region?: string | null;
12
13
  /**
@@ -6,7 +6,8 @@ export interface SqsConfigIn {
6
6
  /**
7
7
  * The region of the SQS queue.
8
8
  *
9
- * Currently a required field, but marked as optional because we may infer it from other fields in the future.
9
+ * Currently a required field, but marked as optional because we may infer
10
+ * it from other fields in the future.
10
11
  */
11
12
  region?: string | null;
12
13
  /**
@@ -6,13 +6,15 @@ export interface StreamPortalAccessIn {
6
6
  /**
7
7
  * How long the token will be valid for, in seconds.
8
8
  *
9
- * Valid values are between 1 hour and 7 days. The default is 7 days.
9
+ * Valid values are between 1 hour and 7 days.
10
+ * The default is 7 days.
10
11
  */
11
12
  expiry?: number | null;
12
13
  /**
13
14
  * An optional session ID to attach to the token.
14
15
  *
15
- * When expiring tokens with "Expire All", you can include the session ID to only expire tokens that were created with that session ID.
16
+ * When expiring tokens with "Expire All", you can include the session ID
17
+ * to only expire tokens that were created with that session ID.
16
18
  */
17
19
  sessionId?: string | null;
18
20
  }
@@ -40,7 +40,8 @@ interface _StreamSinkInFields {
40
40
  /**
41
41
  * Whether the sink will receive events.
42
42
  *
43
- * If the sink is `enabled`, any events posted to the stream will be dispatched to the Sink in the same order that events were posted to the stream.
43
+ * If the sink is `enabled`, any events posted to the stream will be
44
+ * dispatched to the Sink in the same order that events were posted to the stream.
44
45
  *
45
46
  * If the sink is `disabled`, events will not be dispatched to the sink until the sink is reenabled.
46
47
  */
@@ -55,7 +56,10 @@ interface _StreamSinkInFields {
55
56
  * Note that we will never send an empty batch of events to the Sink.
56
57
  */
57
58
  maxWaitSecs?: number;
58
- /** A list of event types that filter which events are dispatched to the Sink. An empty list (or null) will not filter out any events. */
59
+ /**
60
+ * A list of event types that filter which events are dispatched to the Sink. An empty list (or null) will not filter out
61
+ * any events.
62
+ */
59
63
  eventTypes?: string[];
60
64
  channels?: string[];
61
65
  metadata?: { [key: string]: string };
@@ -6,7 +6,8 @@ export interface StreamTokenExpireIn {
6
6
  /**
7
7
  * An optional list of session ids.
8
8
  *
9
- * If any session ids are specified, only Stream tokens created with that session id will be expired.
9
+ * If any session ids are specified, only Stream tokens created with that
10
+ * session id will be expired.
10
11
  */
11
12
  sessionIds?: string[];
12
13
  }
package/src/request.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ApiException, type XOR } from "./util";
2
2
  import type { HttpErrorOut, HTTPValidationError } from "./HttpErrors";
3
3
 
4
- export const LIB_VERSION = "2.5.0";
4
+ export const LIB_VERSION = "2.6.1";
5
5
 
6
6
  function getUserAgent() {
7
7
  var fields = [`svix-libs/${LIB_VERSION}/javascript`];