@hookdeck/outpost-sdk 0.3.0 → 0.4.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/README.md +36 -0
- package/bin/mcp-server.js +457 -38
- package/bin/mcp-server.js.map +27 -20
- package/dist/commonjs/funcs/eventsList.d.ts +4 -2
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +46 -8
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.d.ts +4 -2
- package/dist/commonjs/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.js +44 -8
- package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.js +1 -1
- package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsListByDestination.js +1 -1
- package/dist/commonjs/mcp-server/tools/eventsListByDestination.js.map +1 -1
- package/dist/commonjs/models/components/awss3config.d.ts +47 -0
- package/dist/commonjs/models/components/awss3config.d.ts.map +1 -0
- package/dist/commonjs/models/components/awss3config.js +86 -0
- package/dist/commonjs/models/components/awss3config.js.map +1 -0
- package/dist/commonjs/models/components/awss3credentials.d.ts +42 -0
- package/dist/commonjs/models/components/awss3credentials.d.ts.map +1 -0
- package/dist/commonjs/models/components/awss3credentials.js +73 -0
- package/dist/commonjs/models/components/awss3credentials.js.map +1 -0
- package/dist/commonjs/models/components/destination.d.ts +5 -0
- package/dist/commonjs/models/components/destination.d.ts.map +1 -1
- package/dist/commonjs/models/components/destination.js +7 -0
- package/dist/commonjs/models/components/destination.js.map +1 -1
- package/dist/commonjs/models/components/destinationawss3.d.ts +98 -0
- package/dist/commonjs/models/components/destinationawss3.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationawss3.js +122 -0
- package/dist/commonjs/models/components/destinationawss3.js.map +1 -0
- package/dist/commonjs/models/components/destinationcreate.d.ts +5 -0
- package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationcreate.js +7 -0
- package/dist/commonjs/models/components/destinationcreate.js.map +1 -1
- package/dist/commonjs/models/components/destinationcreateawss3.d.ts +78 -0
- package/dist/commonjs/models/components/destinationcreateawss3.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationcreateawss3.js +101 -0
- package/dist/commonjs/models/components/destinationcreateawss3.js.map +1 -0
- package/dist/commonjs/models/components/destinationupdate.d.ts +3 -2
- package/dist/commonjs/models/components/destinationupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationupdate.js +3 -0
- package/dist/commonjs/models/components/destinationupdate.js.map +1 -1
- package/dist/commonjs/models/components/destinationupdateawss3.d.ts +39 -0
- package/dist/commonjs/models/components/destinationupdateawss3.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationupdateawss3.js +76 -0
- package/dist/commonjs/models/components/destinationupdateawss3.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts +3 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getdestinationtypeschema.js +1 -0
- package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js +1 -0
- package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts +6 -0
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.js +2 -0
- package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantevents.d.ts +94 -0
- package/dist/commonjs/models/operations/listtenantevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantevents.js +92 -1
- package/dist/commonjs/models/operations/listtenantevents.js.map +1 -1
- package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts +94 -0
- package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenanteventsbydestination.js +92 -1
- package/dist/commonjs/models/operations/listtenanteventsbydestination.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +7 -2
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +3 -2
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts +4 -2
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +46 -8
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.d.ts +4 -2
- package/dist/esm/funcs/eventsListByDestination.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.js +44 -8
- package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/eventsList.js +1 -1
- package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/eventsListByDestination.js +1 -1
- package/dist/esm/mcp-server/tools/eventsListByDestination.js.map +1 -1
- package/dist/esm/models/components/awss3config.d.ts +47 -0
- package/dist/esm/models/components/awss3config.d.ts.map +1 -0
- package/dist/esm/models/components/awss3config.js +48 -0
- package/dist/esm/models/components/awss3config.js.map +1 -0
- package/dist/esm/models/components/awss3credentials.d.ts +42 -0
- package/dist/esm/models/components/awss3credentials.d.ts.map +1 -0
- package/dist/esm/models/components/awss3credentials.js +35 -0
- package/dist/esm/models/components/awss3credentials.js.map +1 -0
- package/dist/esm/models/components/destination.d.ts +5 -0
- package/dist/esm/models/components/destination.d.ts.map +1 -1
- package/dist/esm/models/components/destination.js +7 -0
- package/dist/esm/models/components/destination.js.map +1 -1
- package/dist/esm/models/components/destinationawss3.d.ts +98 -0
- package/dist/esm/models/components/destinationawss3.d.ts.map +1 -0
- package/dist/esm/models/components/destinationawss3.js +84 -0
- package/dist/esm/models/components/destinationawss3.js.map +1 -0
- package/dist/esm/models/components/destinationcreate.d.ts +5 -0
- package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationcreate.js +7 -0
- package/dist/esm/models/components/destinationcreate.js.map +1 -1
- package/dist/esm/models/components/destinationcreateawss3.d.ts +78 -0
- package/dist/esm/models/components/destinationcreateawss3.d.ts.map +1 -0
- package/dist/esm/models/components/destinationcreateawss3.js +63 -0
- package/dist/esm/models/components/destinationcreateawss3.js.map +1 -0
- package/dist/esm/models/components/destinationupdate.d.ts +3 -2
- package/dist/esm/models/components/destinationupdate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationupdate.js +3 -0
- package/dist/esm/models/components/destinationupdate.js.map +1 -1
- package/dist/esm/models/components/destinationupdateawss3.d.ts +39 -0
- package/dist/esm/models/components/destinationupdateawss3.d.ts.map +1 -0
- package/dist/esm/models/components/destinationupdateawss3.js +38 -0
- package/dist/esm/models/components/destinationupdateawss3.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts +3 -0
- package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
- package/dist/esm/models/operations/getdestinationtypeschema.js +1 -0
- package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
- package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
- package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
- package/dist/esm/models/operations/gettenantdestinationtypeschema.js +1 -0
- package/dist/esm/models/operations/gettenantdestinationtypeschema.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.d.ts +6 -0
- package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.js +2 -0
- package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
- package/dist/esm/models/operations/listtenantevents.d.ts +94 -0
- package/dist/esm/models/operations/listtenantevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantevents.js +87 -0
- package/dist/esm/models/operations/listtenantevents.js.map +1 -1
- package/dist/esm/models/operations/listtenanteventsbydestination.d.ts +94 -0
- package/dist/esm/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenanteventsbydestination.js +87 -0
- package/dist/esm/models/operations/listtenanteventsbydestination.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +7 -2
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +3 -2
- package/dist/esm/sdk/events.js.map +1 -1
- package/docs/sdks/events/README.md +14 -6
- package/examples/healthCheck.example.ts +1 -1
- package/examples/package-lock.json +3 -3
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/eventsList.ts +122 -42
- package/src/funcs/eventsListByDestination.ts +124 -42
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +4 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/eventsList.ts +1 -1
- package/src/mcp-server/tools/eventsListByDestination.ts +1 -1
- package/src/models/components/awss3config.ts +97 -0
- package/src/models/components/awss3credentials.ts +83 -0
- package/src/models/components/destination.ts +18 -0
- package/src/models/components/destinationawss3.ts +185 -0
- package/src/models/components/destinationcreate.ts +18 -0
- package/src/models/components/destinationcreateawss3.ts +144 -0
- package/src/models/components/destinationupdate.ts +12 -2
- package/src/models/components/destinationupdateawss3.ts +95 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/operations/getdestinationtypeschema.ts +1 -0
- package/src/models/operations/gettenantdestinationtypeschema.ts +1 -0
- package/src/models/operations/listtenantdestinations.ts +2 -0
- package/src/models/operations/listtenantevents.ts +198 -0
- package/src/models/operations/listtenanteventsbydestination.ts +215 -0
- package/src/sdk/events.ts +12 -4
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type Awss3Credentials = {
|
|
5
|
+
/**
|
|
6
|
+
* AWS Access Key ID.
|
|
7
|
+
*/
|
|
8
|
+
key: string;
|
|
9
|
+
/**
|
|
10
|
+
* AWS Secret Access Key.
|
|
11
|
+
*/
|
|
12
|
+
secret: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional AWS Session Token (for temporary credentials).
|
|
15
|
+
*/
|
|
16
|
+
session?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const Awss3Credentials$inboundSchema: z.ZodType<Awss3Credentials, z.ZodTypeDef, unknown>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type Awss3Credentials$Outbound = {
|
|
22
|
+
key: string;
|
|
23
|
+
secret: string;
|
|
24
|
+
session?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const Awss3Credentials$outboundSchema: z.ZodType<Awss3Credentials$Outbound, z.ZodTypeDef, Awss3Credentials>;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export declare namespace Awss3Credentials$ {
|
|
33
|
+
/** @deprecated use `Awss3Credentials$inboundSchema` instead. */
|
|
34
|
+
const inboundSchema: z.ZodType<Awss3Credentials, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @deprecated use `Awss3Credentials$outboundSchema` instead. */
|
|
36
|
+
const outboundSchema: z.ZodType<Awss3Credentials$Outbound, z.ZodTypeDef, Awss3Credentials>;
|
|
37
|
+
/** @deprecated use `Awss3Credentials$Outbound` instead. */
|
|
38
|
+
type Outbound = Awss3Credentials$Outbound;
|
|
39
|
+
}
|
|
40
|
+
export declare function awss3CredentialsToJSON(awss3Credentials: Awss3Credentials): string;
|
|
41
|
+
export declare function awss3CredentialsFromJSON(jsonString: string): SafeParseResult<Awss3Credentials, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=awss3credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"awss3credentials.d.ts","sourceRoot":"","sources":["../../../../src/models/components/awss3credentials.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAKhB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const Awss3Credentials$inboundSchema = z.object({
|
|
8
|
+
key: z.string(),
|
|
9
|
+
secret: z.string(),
|
|
10
|
+
session: z.string().optional(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const Awss3Credentials$outboundSchema = z.object({
|
|
14
|
+
key: z.string(),
|
|
15
|
+
secret: z.string(),
|
|
16
|
+
session: z.string().optional(),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export var Awss3Credentials$;
|
|
23
|
+
(function (Awss3Credentials$) {
|
|
24
|
+
/** @deprecated use `Awss3Credentials$inboundSchema` instead. */
|
|
25
|
+
Awss3Credentials$.inboundSchema = Awss3Credentials$inboundSchema;
|
|
26
|
+
/** @deprecated use `Awss3Credentials$outboundSchema` instead. */
|
|
27
|
+
Awss3Credentials$.outboundSchema = Awss3Credentials$outboundSchema;
|
|
28
|
+
})(Awss3Credentials$ || (Awss3Credentials$ = {}));
|
|
29
|
+
export function awss3CredentialsToJSON(awss3Credentials) {
|
|
30
|
+
return JSON.stringify(Awss3Credentials$outboundSchema.parse(awss3Credentials));
|
|
31
|
+
}
|
|
32
|
+
export function awss3CredentialsFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => Awss3Credentials$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Awss3Credentials' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=awss3credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"awss3credentials.js","sourceRoot":"","sources":["../../../../src/models/components/awss3credentials.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAmBjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,8BAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,+BAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,KAAjB,iBAAiB,QAOjC;AAED,MAAM,UAAU,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,+BAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|
|
@@ -2,6 +2,7 @@ import * as z from "zod";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import { DestinationAWSKinesis, DestinationAWSKinesis$Outbound } from "./destinationawskinesis.js";
|
|
5
|
+
import { DestinationAwss3, DestinationAwss3$Outbound } from "./destinationawss3.js";
|
|
5
6
|
import { DestinationAWSSQS, DestinationAWSSQS$Outbound } from "./destinationawssqs.js";
|
|
6
7
|
import { DestinationAzureServiceBus, DestinationAzureServiceBus$Outbound } from "./destinationazureservicebus.js";
|
|
7
8
|
import { DestinationHookdeck, DestinationHookdeck$Outbound } from "./destinationhookdeck.js";
|
|
@@ -17,6 +18,8 @@ export type Destination = (DestinationWebhook & {
|
|
|
17
18
|
type: "aws_kinesis";
|
|
18
19
|
}) | (DestinationAzureServiceBus & {
|
|
19
20
|
type: "azure_servicebus";
|
|
21
|
+
}) | (DestinationAwss3 & {
|
|
22
|
+
type: "aws_s3";
|
|
20
23
|
}) | (DestinationHookdeck & {
|
|
21
24
|
type: "hookdeck";
|
|
22
25
|
});
|
|
@@ -33,6 +36,8 @@ export type Destination$Outbound = (DestinationWebhook$Outbound & {
|
|
|
33
36
|
type: "aws_kinesis";
|
|
34
37
|
}) | (DestinationAzureServiceBus$Outbound & {
|
|
35
38
|
type: "azure_servicebus";
|
|
39
|
+
}) | (DestinationAwss3$Outbound & {
|
|
40
|
+
type: "aws_s3";
|
|
36
41
|
}) | (DestinationHookdeck$Outbound & {
|
|
37
42
|
type: "hookdeck";
|
|
38
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destination.d.ts","sourceRoot":"","sources":["../../../../src/models/components/destination.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,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,CAAC;AAE1D,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CAqCX,CAAC;AAEH;;;GAGG;AACH,yBAAiB,YAAY,CAAC;IAC5B,2DAA2D;IACpD,MAAM,aAAa,+CAA4B,CAAC;IACvD,4DAA4D;IACrD,MAAM,cAAc,4DAA6B,CAAC;IACzD,sDAAsD;IACtD,KAAY,QAAQ,GAAG,oBAAoB,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
6
|
import { DestinationAWSKinesis$inboundSchema, DestinationAWSKinesis$outboundSchema, } from "./destinationawskinesis.js";
|
|
7
|
+
import { DestinationAwss3$inboundSchema, DestinationAwss3$outboundSchema, } from "./destinationawss3.js";
|
|
7
8
|
import { DestinationAWSSQS$inboundSchema, DestinationAWSSQS$outboundSchema, } from "./destinationawssqs.js";
|
|
8
9
|
import { DestinationAzureServiceBus$inboundSchema, DestinationAzureServiceBus$outboundSchema, } from "./destinationazureservicebus.js";
|
|
9
10
|
import { DestinationHookdeck$inboundSchema, DestinationHookdeck$outboundSchema, } from "./destinationhookdeck.js";
|
|
@@ -26,6 +27,9 @@ export const Destination$inboundSchema = z.union([
|
|
|
26
27
|
DestinationAzureServiceBus$inboundSchema.and(z.object({ type: z.literal("azure_servicebus") }).transform((v) => ({
|
|
27
28
|
type: v.type,
|
|
28
29
|
}))),
|
|
30
|
+
DestinationAwss3$inboundSchema.and(z.object({ type: z.literal("aws_s3") }).transform((v) => ({
|
|
31
|
+
type: v.type,
|
|
32
|
+
}))),
|
|
29
33
|
DestinationHookdeck$inboundSchema.and(z.object({ type: z.literal("hookdeck") }).transform((v) => ({
|
|
30
34
|
type: v.type,
|
|
31
35
|
}))),
|
|
@@ -47,6 +51,9 @@ export const Destination$outboundSchema = z.union([
|
|
|
47
51
|
DestinationAzureServiceBus$outboundSchema.and(z.object({ type: z.literal("azure_servicebus") }).transform((v) => ({
|
|
48
52
|
type: v.type,
|
|
49
53
|
}))),
|
|
54
|
+
DestinationAwss3$outboundSchema.and(z.object({ type: z.literal("aws_s3") }).transform((v) => ({
|
|
55
|
+
type: v.type,
|
|
56
|
+
}))),
|
|
50
57
|
DestinationHookdeck$outboundSchema.and(z.object({ type: z.literal("hookdeck") }).transform((v) => ({
|
|
51
58
|
type: v.type,
|
|
52
59
|
}))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destination.js","sourceRoot":"","sources":["../../../../src/models/components/destination.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,mCAAmC,EAEnC,oCAAoC,GACrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,+BAA+B,EAE/B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,wCAAwC,EAExC,yCAAyC,GAC1C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,iCAAiC,EAEjC,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,iCAAiC,EAEjC,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,gCAAgC,EAEhC,iCAAiC,GAClC,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"destination.js","sourceRoot":"","sources":["../../../../src/models/components/destination.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK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EAAE,EAAE,CAAC,CAAC;QACxD,IAAI,EAAE,CAAC,CAAC,IAAI;KACb,CAAC,CAAC,CACJ;IACD,kCAAkC,CAAC,GAAG,CACpC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC1D,IAAI,EAAE,CAAC,CAAC,IAAI;KACb,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,YAAY,CAO5B;AAPD,WAAiB,YAAY;IAC3B,2DAA2D;IAC9C,0BAAa,GAAG,yBAAyB,CAAC;IACvD,4DAA4D;IAC/C,2BAAc,GAAG,0BAA0B,CAAC;AAG3D,CAAC,EAPgB,YAAY,KAAZ,YAAY,QAO5B;AAED,MAAM,UAAU,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,mBAAmB,CACjC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { Awss3Config, Awss3Config$Outbound } from "./awss3config.js";
|
|
6
|
+
import { Awss3Credentials, Awss3Credentials$Outbound } from "./awss3credentials.js";
|
|
7
|
+
import { Topics, Topics$Outbound } from "./topics.js";
|
|
8
|
+
/**
|
|
9
|
+
* Type of the destination.
|
|
10
|
+
*/
|
|
11
|
+
export declare const DestinationAwss3Type: {
|
|
12
|
+
readonly AwsS3: "aws_s3";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Type of the destination.
|
|
16
|
+
*/
|
|
17
|
+
export type DestinationAwss3Type = ClosedEnum<typeof DestinationAwss3Type>;
|
|
18
|
+
export type DestinationAwss3 = {
|
|
19
|
+
/**
|
|
20
|
+
* Control plane generated ID or user provided ID for the destination.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* Type of the destination.
|
|
25
|
+
*/
|
|
26
|
+
type: DestinationAwss3Type;
|
|
27
|
+
/**
|
|
28
|
+
* "*" or an array of enabled topics.
|
|
29
|
+
*/
|
|
30
|
+
topics: Topics;
|
|
31
|
+
/**
|
|
32
|
+
* ISO Date when the destination was disabled, or null if enabled.
|
|
33
|
+
*/
|
|
34
|
+
disabledAt: Date | null;
|
|
35
|
+
/**
|
|
36
|
+
* ISO Date when the destination was created.
|
|
37
|
+
*/
|
|
38
|
+
createdAt: Date;
|
|
39
|
+
config: Awss3Config;
|
|
40
|
+
credentials: Awss3Credentials;
|
|
41
|
+
/**
|
|
42
|
+
* A human-readable representation of the destination target (bucket and region). Read-only.
|
|
43
|
+
*/
|
|
44
|
+
target?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* A URL link to the destination target (AWS Console link to the bucket). Read-only.
|
|
47
|
+
*/
|
|
48
|
+
targetUrl?: string | null | undefined;
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare const DestinationAwss3Type$inboundSchema: z.ZodNativeEnum<typeof DestinationAwss3Type>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare const DestinationAwss3Type$outboundSchema: z.ZodNativeEnum<typeof DestinationAwss3Type>;
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export declare namespace DestinationAwss3Type$ {
|
|
59
|
+
/** @deprecated use `DestinationAwss3Type$inboundSchema` instead. */
|
|
60
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
61
|
+
readonly AwsS3: "aws_s3";
|
|
62
|
+
}>;
|
|
63
|
+
/** @deprecated use `DestinationAwss3Type$outboundSchema` instead. */
|
|
64
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
65
|
+
readonly AwsS3: "aws_s3";
|
|
66
|
+
}>;
|
|
67
|
+
}
|
|
68
|
+
/** @internal */
|
|
69
|
+
export declare const DestinationAwss3$inboundSchema: z.ZodType<DestinationAwss3, z.ZodTypeDef, unknown>;
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type DestinationAwss3$Outbound = {
|
|
72
|
+
id: string;
|
|
73
|
+
type: string;
|
|
74
|
+
topics: Topics$Outbound;
|
|
75
|
+
disabled_at: string | null;
|
|
76
|
+
created_at: string;
|
|
77
|
+
config: Awss3Config$Outbound;
|
|
78
|
+
credentials: Awss3Credentials$Outbound;
|
|
79
|
+
target?: string | undefined;
|
|
80
|
+
target_url?: string | null | undefined;
|
|
81
|
+
};
|
|
82
|
+
/** @internal */
|
|
83
|
+
export declare const DestinationAwss3$outboundSchema: z.ZodType<DestinationAwss3$Outbound, z.ZodTypeDef, DestinationAwss3>;
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
export declare namespace DestinationAwss3$ {
|
|
89
|
+
/** @deprecated use `DestinationAwss3$inboundSchema` instead. */
|
|
90
|
+
const inboundSchema: z.ZodType<DestinationAwss3, z.ZodTypeDef, unknown>;
|
|
91
|
+
/** @deprecated use `DestinationAwss3$outboundSchema` instead. */
|
|
92
|
+
const outboundSchema: z.ZodType<DestinationAwss3$Outbound, z.ZodTypeDef, DestinationAwss3>;
|
|
93
|
+
/** @deprecated use `DestinationAwss3$Outbound` instead. */
|
|
94
|
+
type Outbound = DestinationAwss3$Outbound;
|
|
95
|
+
}
|
|
96
|
+
export declare function destinationAwss3ToJSON(destinationAwss3: DestinationAwss3): string;
|
|
97
|
+
export declare function destinationAwss3FromJSON(jsonString: string): SafeParseResult<DestinationAwss3, SDKValidationError>;
|
|
98
|
+
//# sourceMappingURL=destinationawss3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinationawss3.d.ts","sourceRoot":"","sources":["../../../../src/models/components/destinationawss3.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;CAEvB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC;IAC3B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,EAAE,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,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Awss3Config$inboundSchema, Awss3Config$outboundSchema, } from "./awss3config.js";
|
|
8
|
+
import { Awss3Credentials$inboundSchema, Awss3Credentials$outboundSchema, } from "./awss3credentials.js";
|
|
9
|
+
import { Topics$inboundSchema, Topics$outboundSchema, } from "./topics.js";
|
|
10
|
+
/**
|
|
11
|
+
* Type of the destination.
|
|
12
|
+
*/
|
|
13
|
+
export const DestinationAwss3Type = {
|
|
14
|
+
AwsS3: "aws_s3",
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const DestinationAwss3Type$inboundSchema = z.nativeEnum(DestinationAwss3Type);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const DestinationAwss3Type$outboundSchema = DestinationAwss3Type$inboundSchema;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
23
|
+
*/
|
|
24
|
+
export var DestinationAwss3Type$;
|
|
25
|
+
(function (DestinationAwss3Type$) {
|
|
26
|
+
/** @deprecated use `DestinationAwss3Type$inboundSchema` instead. */
|
|
27
|
+
DestinationAwss3Type$.inboundSchema = DestinationAwss3Type$inboundSchema;
|
|
28
|
+
/** @deprecated use `DestinationAwss3Type$outboundSchema` instead. */
|
|
29
|
+
DestinationAwss3Type$.outboundSchema = DestinationAwss3Type$outboundSchema;
|
|
30
|
+
})(DestinationAwss3Type$ || (DestinationAwss3Type$ = {}));
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const DestinationAwss3$inboundSchema = z.object({
|
|
33
|
+
id: z.string(),
|
|
34
|
+
type: DestinationAwss3Type$inboundSchema,
|
|
35
|
+
topics: Topics$inboundSchema,
|
|
36
|
+
disabled_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
37
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
38
|
+
config: Awss3Config$inboundSchema,
|
|
39
|
+
credentials: Awss3Credentials$inboundSchema,
|
|
40
|
+
target: z.string().optional(),
|
|
41
|
+
target_url: z.nullable(z.string()).optional(),
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
"disabled_at": "disabledAt",
|
|
45
|
+
"created_at": "createdAt",
|
|
46
|
+
"target_url": "targetUrl",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const DestinationAwss3$outboundSchema = z.object({
|
|
51
|
+
id: z.string(),
|
|
52
|
+
type: DestinationAwss3Type$outboundSchema,
|
|
53
|
+
topics: Topics$outboundSchema,
|
|
54
|
+
disabledAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
55
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
56
|
+
config: Awss3Config$outboundSchema,
|
|
57
|
+
credentials: Awss3Credentials$outboundSchema,
|
|
58
|
+
target: z.string().optional(),
|
|
59
|
+
targetUrl: z.nullable(z.string()).optional(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
disabledAt: "disabled_at",
|
|
63
|
+
createdAt: "created_at",
|
|
64
|
+
targetUrl: "target_url",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
+
*/
|
|
71
|
+
export var DestinationAwss3$;
|
|
72
|
+
(function (DestinationAwss3$) {
|
|
73
|
+
/** @deprecated use `DestinationAwss3$inboundSchema` instead. */
|
|
74
|
+
DestinationAwss3$.inboundSchema = DestinationAwss3$inboundSchema;
|
|
75
|
+
/** @deprecated use `DestinationAwss3$outboundSchema` instead. */
|
|
76
|
+
DestinationAwss3$.outboundSchema = DestinationAwss3$outboundSchema;
|
|
77
|
+
})(DestinationAwss3$ || (DestinationAwss3$ = {}));
|
|
78
|
+
export function destinationAwss3ToJSON(destinationAwss3) {
|
|
79
|
+
return JSON.stringify(DestinationAwss3$outboundSchema.parse(destinationAwss3));
|
|
80
|
+
}
|
|
81
|
+
export function destinationAwss3FromJSON(jsonString) {
|
|
82
|
+
return safeParse(jsonString, (x) => DestinationAwss3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestinationAwss3' from JSON`);
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=destinationawss3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinationawss3.js","sourceRoot":"","sources":["../../../../src/models/components/destinationawss3.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,yBAAyB,EAEzB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,8BAA8B,EAE9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa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AAC,EAPgB,iBAAiB,KAAjB,iBAAiB,QAOjC;AAED,MAAM,UAAU,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,+BAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|
|
@@ -2,6 +2,7 @@ import * as z from "zod";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import { DestinationCreateAWSKinesis, DestinationCreateAWSKinesis$Outbound } from "./destinationcreateawskinesis.js";
|
|
5
|
+
import { DestinationCreateAwss3, DestinationCreateAwss3$Outbound } from "./destinationcreateawss3.js";
|
|
5
6
|
import { DestinationCreateAWSSQS, DestinationCreateAWSSQS$Outbound } from "./destinationcreateawssqs.js";
|
|
6
7
|
import { DestinationCreateAzureServiceBus, DestinationCreateAzureServiceBus$Outbound } from "./destinationcreateazureservicebus.js";
|
|
7
8
|
import { DestinationCreateHookdeck, DestinationCreateHookdeck$Outbound } from "./destinationcreatehookdeck.js";
|
|
@@ -15,6 +16,8 @@ export type DestinationCreate = (DestinationCreateAWSSQS & {
|
|
|
15
16
|
type: "aws_kinesis";
|
|
16
17
|
}) | (DestinationCreateAzureServiceBus & {
|
|
17
18
|
type: "azure_servicebus";
|
|
19
|
+
}) | (DestinationCreateAwss3 & {
|
|
20
|
+
type: "aws_s3";
|
|
18
21
|
}) | (DestinationCreateWebhook & {
|
|
19
22
|
type: "webhook";
|
|
20
23
|
}) | (DestinationCreateHookdeck & {
|
|
@@ -31,6 +34,8 @@ export type DestinationCreate$Outbound = (DestinationCreateAWSSQS$Outbound & {
|
|
|
31
34
|
type: "aws_kinesis";
|
|
32
35
|
}) | (DestinationCreateAzureServiceBus$Outbound & {
|
|
33
36
|
type: "azure_servicebus";
|
|
37
|
+
}) | (DestinationCreateAwss3$Outbound & {
|
|
38
|
+
type: "aws_s3";
|
|
34
39
|
}) | (DestinationCreateWebhook$Outbound & {
|
|
35
40
|
type: "webhook";
|
|
36
41
|
}) | (DestinationCreateHookdeck$Outbound & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destinationcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/destinationcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gCAAgC,EAEhC,yCAAyC,EAE1C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GACzB,CAAC,uBAAuB,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,GAC/C,CAAC,yBAAyB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GAClD,CAAC,2BAA2B,GAAG;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,GACvD,CAAC,gCAAgC,GAAG;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAAC,GACjE,CAAC,wBAAwB,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,GAChD,CAAC,yBAAyB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAEvD,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"destinationcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/destinationcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gCAAgC,EAEhC,yCAAyC,EAE1C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GACzB,CAAC,uBAAuB,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,GAC/C,CAAC,yBAAyB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GAClD,CAAC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AC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
6
|
import { DestinationCreateAWSKinesis$inboundSchema, DestinationCreateAWSKinesis$outboundSchema, } from "./destinationcreateawskinesis.js";
|
|
7
|
+
import { DestinationCreateAwss3$inboundSchema, DestinationCreateAwss3$outboundSchema, } from "./destinationcreateawss3.js";
|
|
7
8
|
import { DestinationCreateAWSSQS$inboundSchema, DestinationCreateAWSSQS$outboundSchema, } from "./destinationcreateawssqs.js";
|
|
8
9
|
import { DestinationCreateAzureServiceBus$inboundSchema, DestinationCreateAzureServiceBus$outboundSchema, } from "./destinationcreateazureservicebus.js";
|
|
9
10
|
import { DestinationCreateHookdeck$inboundSchema, DestinationCreateHookdeck$outboundSchema, } from "./destinationcreatehookdeck.js";
|
|
@@ -23,6 +24,9 @@ export const DestinationCreate$inboundSchema = z.union([
|
|
|
23
24
|
DestinationCreateAzureServiceBus$inboundSchema.and(z.object({ type: z.literal("azure_servicebus") }).transform((v) => ({
|
|
24
25
|
type: v.type,
|
|
25
26
|
}))),
|
|
27
|
+
DestinationCreateAwss3$inboundSchema.and(z.object({ type: z.literal("aws_s3") }).transform((v) => ({
|
|
28
|
+
type: v.type,
|
|
29
|
+
}))),
|
|
26
30
|
DestinationCreateWebhook$inboundSchema.and(z.object({ type: z.literal("webhook") }).transform((v) => ({
|
|
27
31
|
type: v.type,
|
|
28
32
|
}))),
|
|
@@ -44,6 +48,9 @@ export const DestinationCreate$outboundSchema = z.union([
|
|
|
44
48
|
DestinationCreateAzureServiceBus$outboundSchema.and(z.object({ type: z.literal("azure_servicebus") }).transform((v) => ({
|
|
45
49
|
type: v.type,
|
|
46
50
|
}))),
|
|
51
|
+
DestinationCreateAwss3$outboundSchema.and(z.object({ type: z.literal("aws_s3") }).transform((v) => ({
|
|
52
|
+
type: v.type,
|
|
53
|
+
}))),
|
|
47
54
|
DestinationCreateWebhook$outboundSchema.and(z.object({ type: z.literal("webhook") }).transform((v) => ({
|
|
48
55
|
type: v.type,
|
|
49
56
|
}))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destinationcreate.js","sourceRoot":"","sources":["../../../../src/models/components/destinationcreate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,yCAAyC,EAEzC,0CAA0C,GAC3C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,qCAAqC,EAErC,sCAAsC,GACvC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,8CAA8C,EAE9C,+CAA+C,GAChD,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAEL,uCAAuC,EAEvC,wCAAwC,GACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,uCAAuC,EAEvC,wCAAwC,GACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,sCAAsC,EAEtC,uCAAuC,GACxC,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"destinationcreate.js","sourceRoot":"","sources":["../../../../src/models/components/destinationcreate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,yCAAyC,EAEzC,0CAA0C,GAC3C,MAAM,k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1C,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC1D,IAAI,EAAE,CAAC,CAAC,IAAI;KACb,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,+BAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,gCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,KAAlB,kBAAkB,QAOlC;AAED,MAAM,UAAU,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { Awss3Config, Awss3Config$Outbound } from "./awss3config.js";
|
|
6
|
+
import { Awss3Credentials, Awss3Credentials$Outbound } from "./awss3credentials.js";
|
|
7
|
+
import { Topics, Topics$Outbound } from "./topics.js";
|
|
8
|
+
/**
|
|
9
|
+
* Type of the destination. Must be 'aws_s3'.
|
|
10
|
+
*/
|
|
11
|
+
export declare const DestinationCreateAwss3Type: {
|
|
12
|
+
readonly AwsS3: "aws_s3";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Type of the destination. Must be 'aws_s3'.
|
|
16
|
+
*/
|
|
17
|
+
export type DestinationCreateAwss3Type = ClosedEnum<typeof DestinationCreateAwss3Type>;
|
|
18
|
+
export type DestinationCreateAwss3 = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional user-provided ID. A UUID will be generated if empty.
|
|
21
|
+
*/
|
|
22
|
+
id?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Type of the destination. Must be 'aws_s3'.
|
|
25
|
+
*/
|
|
26
|
+
type: DestinationCreateAwss3Type;
|
|
27
|
+
/**
|
|
28
|
+
* "*" or an array of enabled topics.
|
|
29
|
+
*/
|
|
30
|
+
topics: Topics;
|
|
31
|
+
config: Awss3Config;
|
|
32
|
+
credentials: Awss3Credentials;
|
|
33
|
+
};
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const DestinationCreateAwss3Type$inboundSchema: z.ZodNativeEnum<typeof DestinationCreateAwss3Type>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const DestinationCreateAwss3Type$outboundSchema: z.ZodNativeEnum<typeof DestinationCreateAwss3Type>;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
|
+
*/
|
|
42
|
+
export declare namespace DestinationCreateAwss3Type$ {
|
|
43
|
+
/** @deprecated use `DestinationCreateAwss3Type$inboundSchema` instead. */
|
|
44
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
45
|
+
readonly AwsS3: "aws_s3";
|
|
46
|
+
}>;
|
|
47
|
+
/** @deprecated use `DestinationCreateAwss3Type$outboundSchema` instead. */
|
|
48
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
49
|
+
readonly AwsS3: "aws_s3";
|
|
50
|
+
}>;
|
|
51
|
+
}
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare const DestinationCreateAwss3$inboundSchema: z.ZodType<DestinationCreateAwss3, z.ZodTypeDef, unknown>;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type DestinationCreateAwss3$Outbound = {
|
|
56
|
+
id?: string | undefined;
|
|
57
|
+
type: string;
|
|
58
|
+
topics: Topics$Outbound;
|
|
59
|
+
config: Awss3Config$Outbound;
|
|
60
|
+
credentials: Awss3Credentials$Outbound;
|
|
61
|
+
};
|
|
62
|
+
/** @internal */
|
|
63
|
+
export declare const DestinationCreateAwss3$outboundSchema: z.ZodType<DestinationCreateAwss3$Outbound, z.ZodTypeDef, DestinationCreateAwss3>;
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export declare namespace DestinationCreateAwss3$ {
|
|
69
|
+
/** @deprecated use `DestinationCreateAwss3$inboundSchema` instead. */
|
|
70
|
+
const inboundSchema: z.ZodType<DestinationCreateAwss3, z.ZodTypeDef, unknown>;
|
|
71
|
+
/** @deprecated use `DestinationCreateAwss3$outboundSchema` instead. */
|
|
72
|
+
const outboundSchema: z.ZodType<DestinationCreateAwss3$Outbound, z.ZodTypeDef, DestinationCreateAwss3>;
|
|
73
|
+
/** @deprecated use `DestinationCreateAwss3$Outbound` instead. */
|
|
74
|
+
type Outbound = DestinationCreateAwss3$Outbound;
|
|
75
|
+
}
|
|
76
|
+
export declare function destinationCreateAwss3ToJSON(destinationCreateAwss3: DestinationCreateAwss3): string;
|
|
77
|
+
export declare function destinationCreateAwss3FromJSON(jsonString: string): SafeParseResult<DestinationCreateAwss3, SDKValidationError>;
|
|
78
|
+
//# sourceMappingURL=destinationcreateawss3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinationcreateawss3.d.ts","sourceRoot":"","sources":["../../../../src/models/components/destinationcreateawss3.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,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OP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,WAAW,EAAE,yBAAyB,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAOtB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD;AAED,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
import { Awss3Config$inboundSchema, Awss3Config$outboundSchema, } from "./awss3config.js";
|
|
7
|
+
import { Awss3Credentials$inboundSchema, Awss3Credentials$outboundSchema, } from "./awss3credentials.js";
|
|
8
|
+
import { Topics$inboundSchema, Topics$outboundSchema, } from "./topics.js";
|
|
9
|
+
/**
|
|
10
|
+
* Type of the destination. Must be 'aws_s3'.
|
|
11
|
+
*/
|
|
12
|
+
export const DestinationCreateAwss3Type = {
|
|
13
|
+
AwsS3: "aws_s3",
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const DestinationCreateAwss3Type$inboundSchema = z.nativeEnum(DestinationCreateAwss3Type);
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const DestinationCreateAwss3Type$outboundSchema = DestinationCreateAwss3Type$inboundSchema;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
+
*/
|
|
23
|
+
export var DestinationCreateAwss3Type$;
|
|
24
|
+
(function (DestinationCreateAwss3Type$) {
|
|
25
|
+
/** @deprecated use `DestinationCreateAwss3Type$inboundSchema` instead. */
|
|
26
|
+
DestinationCreateAwss3Type$.inboundSchema = DestinationCreateAwss3Type$inboundSchema;
|
|
27
|
+
/** @deprecated use `DestinationCreateAwss3Type$outboundSchema` instead. */
|
|
28
|
+
DestinationCreateAwss3Type$.outboundSchema = DestinationCreateAwss3Type$outboundSchema;
|
|
29
|
+
})(DestinationCreateAwss3Type$ || (DestinationCreateAwss3Type$ = {}));
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const DestinationCreateAwss3$inboundSchema = z.object({
|
|
32
|
+
id: z.string().optional(),
|
|
33
|
+
type: DestinationCreateAwss3Type$inboundSchema,
|
|
34
|
+
topics: Topics$inboundSchema,
|
|
35
|
+
config: Awss3Config$inboundSchema,
|
|
36
|
+
credentials: Awss3Credentials$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const DestinationCreateAwss3$outboundSchema = z.object({
|
|
40
|
+
id: z.string().optional(),
|
|
41
|
+
type: DestinationCreateAwss3Type$outboundSchema,
|
|
42
|
+
topics: Topics$outboundSchema,
|
|
43
|
+
config: Awss3Config$outboundSchema,
|
|
44
|
+
credentials: Awss3Credentials$outboundSchema,
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export var DestinationCreateAwss3$;
|
|
51
|
+
(function (DestinationCreateAwss3$) {
|
|
52
|
+
/** @deprecated use `DestinationCreateAwss3$inboundSchema` instead. */
|
|
53
|
+
DestinationCreateAwss3$.inboundSchema = DestinationCreateAwss3$inboundSchema;
|
|
54
|
+
/** @deprecated use `DestinationCreateAwss3$outboundSchema` instead. */
|
|
55
|
+
DestinationCreateAwss3$.outboundSchema = DestinationCreateAwss3$outboundSchema;
|
|
56
|
+
})(DestinationCreateAwss3$ || (DestinationCreateAwss3$ = {}));
|
|
57
|
+
export function destinationCreateAwss3ToJSON(destinationCreateAwss3) {
|
|
58
|
+
return JSON.stringify(DestinationCreateAwss3$outboundSchema.parse(destinationCreateAwss3));
|
|
59
|
+
}
|
|
60
|
+
export function destinationCreateAwss3FromJSON(jsonString) {
|
|
61
|
+
return safeParse(jsonString, (x) => DestinationCreateAwss3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestinationCreateAwss3' from JSON`);
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=destinationcreateawss3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinationcreateawss3.js","sourceRoot":"","sources":["../../../../src/models/components/destinationcreateawss3.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,yBAAyB,EAEzB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,8BAA8B,EAE9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,KAAK,EAAE,QAAQ;CACP,CAAC;AAyBX,gB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