svix 2.4.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.
- package/dist/index.d.mts +108 -30
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +216 -113
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/autoconfigSubscription.ts +53 -0
- package/src/api_internal/autoconfigSubscription.ts +40 -0
- package/src/api_internal/{destinationAutoconfig.ts → autoconfigSubscriptionDestination.ts} +1 -1
- package/src/api_internal/{endpointAutoconfig.ts → autoconfigSubscriptionEndpoint.ts} +1 -24
- package/src/api_internal/endpoint.ts +0 -5
- package/src/autoconfig.ts +2 -1
- package/src/autoconfigConsumer.ts +4 -4
- package/src/index.ts +5 -0
- package/src/models/autoConfigOut.ts +26 -0
- package/src/models/eventBridgeConfigIn.ts +14 -2
- package/src/models/eventBridgeConfigOut.ts +7 -1
- package/src/models/eventBridgeConfigPatch.ts +6 -0
- package/src/models/index.ts +2 -0
- package/src/models/redshiftConfigIn.ts +14 -2
- package/src/models/redshiftConfigOut.ts +7 -1
- package/src/models/redshiftConfigPatch.ts +6 -0
- package/src/models/rotateSubscriptionIn2.ts +29 -0
- package/src/models/snsConfigIn.ts +14 -2
- package/src/models/snsConfigOut.ts +7 -1
- package/src/models/snsConfigPatch.ts +6 -0
- package/src/models/sqsConfigIn.ts +14 -2
- package/src/models/sqsConfigOut.ts +7 -1
- package/src/models/sqsConfigPatch.ts +6 -0
- package/src/request.ts +1 -1
- package/src/api_internal/destination.ts +0 -12
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
export interface SqsConfigOut {
|
|
4
4
|
queueUrl: string;
|
|
5
5
|
region: string;
|
|
6
|
-
accessKeyId
|
|
6
|
+
accessKeyId?: string | null;
|
|
7
|
+
roleArn?: string | null;
|
|
8
|
+
externalId?: string | null;
|
|
7
9
|
endpointUrl?: string | null;
|
|
8
10
|
}
|
|
9
11
|
|
|
@@ -13,6 +15,8 @@ export const SqsConfigOutSerializer = {
|
|
|
13
15
|
queueUrl: object["queueUrl"],
|
|
14
16
|
region: object["region"],
|
|
15
17
|
accessKeyId: object["accessKeyId"],
|
|
18
|
+
roleArn: object["roleArn"],
|
|
19
|
+
externalId: object["externalId"],
|
|
16
20
|
endpointUrl: object["endpointUrl"],
|
|
17
21
|
};
|
|
18
22
|
},
|
|
@@ -22,6 +26,8 @@ export const SqsConfigOutSerializer = {
|
|
|
22
26
|
queueUrl: self.queueUrl,
|
|
23
27
|
region: self.region,
|
|
24
28
|
accessKeyId: self.accessKeyId,
|
|
29
|
+
roleArn: self.roleArn,
|
|
30
|
+
externalId: self.externalId,
|
|
25
31
|
endpointUrl: self.endpointUrl,
|
|
26
32
|
};
|
|
27
33
|
},
|
|
@@ -5,6 +5,8 @@ export interface SqsConfigPatch {
|
|
|
5
5
|
region?: string;
|
|
6
6
|
accessKeyId?: string;
|
|
7
7
|
secretAccessKey?: string;
|
|
8
|
+
roleArn?: string;
|
|
9
|
+
externalId?: string;
|
|
8
10
|
endpointUrl?: string | null;
|
|
9
11
|
}
|
|
10
12
|
|
|
@@ -15,6 +17,8 @@ export const SqsConfigPatchSerializer = {
|
|
|
15
17
|
region: object["region"],
|
|
16
18
|
accessKeyId: object["accessKeyId"],
|
|
17
19
|
secretAccessKey: object["secretAccessKey"],
|
|
20
|
+
roleArn: object["roleArn"],
|
|
21
|
+
externalId: object["externalId"],
|
|
18
22
|
endpointUrl: object["endpointUrl"],
|
|
19
23
|
};
|
|
20
24
|
},
|
|
@@ -25,6 +29,8 @@ export const SqsConfigPatchSerializer = {
|
|
|
25
29
|
region: self.region,
|
|
26
30
|
accessKeyId: self.accessKeyId,
|
|
27
31
|
secretAccessKey: self.secretAccessKey,
|
|
32
|
+
roleArn: self.roleArn,
|
|
33
|
+
externalId: self.externalId,
|
|
28
34
|
endpointUrl: self.endpointUrl,
|
|
29
35
|
};
|
|
30
36
|
},
|
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.
|
|
4
|
+
export const LIB_VERSION = "2.5.0";
|
|
5
5
|
|
|
6
6
|
function getUserAgent() {
|
|
7
7
|
var fields = [`svix-libs/${LIB_VERSION}/javascript`];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// this file is @generated
|
|
2
|
-
|
|
3
|
-
import { DestinationAutoconfig } from "./destinationAutoconfig";
|
|
4
|
-
import type { SvixRequestContext } from "../request";
|
|
5
|
-
|
|
6
|
-
export class Destination {
|
|
7
|
-
public constructor(private readonly requestCtx: SvixRequestContext) {}
|
|
8
|
-
|
|
9
|
-
public get autoconfig() {
|
|
10
|
-
return new DestinationAutoconfig(this.requestCtx);
|
|
11
|
-
}
|
|
12
|
-
}
|