@hookdeck/outpost-sdk 0.4.0 → 0.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/README.md +2 -6
- package/RUNTIMES.md +6 -6
- package/bin/mcp-server.js +286 -50
- package/bin/mcp-server.js.map +47 -41
- package/dist/commonjs/funcs/destinationsCreate.js +1 -1
- package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDelete.js +1 -1
- package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
- package/dist/commonjs/funcs/destinationsDisable.js +1 -1
- package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsEnable.js +1 -1
- package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
- package/dist/commonjs/funcs/destinationsGet.js +1 -1
- package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
- package/dist/commonjs/funcs/destinationsList.js +1 -1
- package/dist/commonjs/funcs/destinationsList.js.map +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js +1 -1
- package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsGet.js +1 -1
- package/dist/commonjs/funcs/eventsGet.js.map +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js +1 -1
- package/dist/commonjs/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +1 -1
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.js +1 -1
- package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js +1 -1
- package/dist/commonjs/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/commonjs/funcs/eventsRetry.js +1 -1
- package/dist/commonjs/funcs/eventsRetry.js.map +1 -1
- package/dist/commonjs/funcs/healthCheck.js +1 -1
- package/dist/commonjs/funcs/healthCheck.js.map +1 -1
- package/dist/commonjs/funcs/publishEvent.js +1 -1
- package/dist/commonjs/funcs/publishEvent.js.map +1 -1
- package/dist/commonjs/funcs/schemasGet.js +1 -1
- package/dist/commonjs/funcs/schemasGet.js.map +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js +1 -1
- package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js +1 -1
- package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js +1 -1
- package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/commonjs/funcs/tenantsDelete.js +1 -1
- package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGet.js +1 -1
- package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js +1 -1
- package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js +1 -1
- package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js +1 -1
- package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
- package/dist/commonjs/funcs/topicsList.js +1 -1
- package/dist/commonjs/funcs/topicsList.js.map +1 -1
- package/dist/commonjs/funcs/topicsListJwt.js +1 -1
- package/dist/commonjs/funcs/topicsListJwt.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/config.js.map +1 -1
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.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/models/components/deliveryattempt.d.ts +8 -8
- package/dist/commonjs/models/components/deliveryattempt.d.ts.map +1 -1
- package/dist/commonjs/models/components/deliveryattempt.js +13 -14
- package/dist/commonjs/models/components/deliveryattempt.js.map +1 -1
- 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/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/destinationcreategcppubsub.d.ts +78 -0
- package/dist/commonjs/models/components/destinationcreategcppubsub.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationcreategcppubsub.js +101 -0
- package/dist/commonjs/models/components/destinationcreategcppubsub.js.map +1 -0
- package/dist/commonjs/models/components/destinationgcppubsub.d.ts +98 -0
- package/dist/commonjs/models/components/destinationgcppubsub.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationgcppubsub.js +122 -0
- package/dist/commonjs/models/components/destinationgcppubsub.js.map +1 -0
- package/dist/commonjs/models/components/destinationupdate.d.ts +4 -2
- package/dist/commonjs/models/components/destinationupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/destinationupdate.js +6 -0
- package/dist/commonjs/models/components/destinationupdate.js.map +1 -1
- package/dist/commonjs/models/components/destinationupdateazureservicebus.d.ts +39 -0
- package/dist/commonjs/models/components/destinationupdateazureservicebus.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationupdateazureservicebus.js +76 -0
- package/dist/commonjs/models/components/destinationupdateazureservicebus.js.map +1 -0
- package/dist/commonjs/models/components/destinationupdategcppubsub.d.ts +39 -0
- package/dist/commonjs/models/components/destinationupdategcppubsub.d.ts.map +1 -0
- package/dist/commonjs/models/components/destinationupdategcppubsub.js +76 -0
- package/dist/commonjs/models/components/destinationupdategcppubsub.js.map +1 -0
- package/dist/commonjs/models/components/event.d.ts +30 -2
- package/dist/commonjs/models/components/event.d.ts.map +1 -1
- package/dist/commonjs/models/components/event.js +25 -3
- package/dist/commonjs/models/components/event.js.map +1 -1
- package/dist/commonjs/models/components/gcppubsubconfig.d.ts +42 -0
- package/dist/commonjs/models/components/gcppubsubconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/gcppubsubconfig.js +82 -0
- package/dist/commonjs/models/components/gcppubsubconfig.js.map +1 -0
- package/dist/commonjs/models/components/gcppubsubcredentials.d.ts +32 -0
- package/dist/commonjs/models/components/gcppubsubcredentials.d.ts.map +1 -0
- package/dist/commonjs/models/components/gcppubsubcredentials.js +78 -0
- package/dist/commonjs/models/components/gcppubsubcredentials.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +6 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +6 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts +12 -0
- package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listtenantdestinations.js +4 -0
- package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
- package/dist/esm/funcs/destinationsCreate.js +1 -1
- package/dist/esm/funcs/destinationsCreate.js.map +1 -1
- package/dist/esm/funcs/destinationsDelete.js +1 -1
- package/dist/esm/funcs/destinationsDelete.js.map +1 -1
- package/dist/esm/funcs/destinationsDisable.js +1 -1
- package/dist/esm/funcs/destinationsDisable.js.map +1 -1
- package/dist/esm/funcs/destinationsEnable.js +1 -1
- package/dist/esm/funcs/destinationsEnable.js.map +1 -1
- package/dist/esm/funcs/destinationsGet.js +1 -1
- package/dist/esm/funcs/destinationsGet.js.map +1 -1
- package/dist/esm/funcs/destinationsList.js +1 -1
- package/dist/esm/funcs/destinationsList.js.map +1 -1
- package/dist/esm/funcs/destinationsUpdate.js +1 -1
- package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsGet.js +1 -1
- package/dist/esm/funcs/eventsGet.js.map +1 -1
- package/dist/esm/funcs/eventsGetByDestination.js +1 -1
- package/dist/esm/funcs/eventsGetByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsList.js +1 -1
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/eventsListByDestination.js +1 -1
- package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
- package/dist/esm/funcs/eventsListDeliveries.js +1 -1
- package/dist/esm/funcs/eventsListDeliveries.js.map +1 -1
- package/dist/esm/funcs/eventsRetry.js +1 -1
- package/dist/esm/funcs/eventsRetry.js.map +1 -1
- package/dist/esm/funcs/healthCheck.js +1 -1
- package/dist/esm/funcs/healthCheck.js.map +1 -1
- package/dist/esm/funcs/publishEvent.js +1 -1
- package/dist/esm/funcs/publishEvent.js.map +1 -1
- package/dist/esm/funcs/schemasGet.js +1 -1
- package/dist/esm/funcs/schemasGet.js.map +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js +1 -1
- package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js +1 -1
- package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js +1 -1
- package/dist/esm/funcs/schemasListTenantDestinationTypes.js.map +1 -1
- package/dist/esm/funcs/tenantsDelete.js +1 -1
- package/dist/esm/funcs/tenantsDelete.js.map +1 -1
- package/dist/esm/funcs/tenantsGet.js +1 -1
- package/dist/esm/funcs/tenantsGet.js.map +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js +1 -1
- package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
- package/dist/esm/funcs/tenantsGetToken.js +1 -1
- package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
- package/dist/esm/funcs/tenantsUpsert.js +1 -1
- package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
- package/dist/esm/funcs/topicsList.js +1 -1
- package/dist/esm/funcs/topicsList.js.map +1 -1
- package/dist/esm/funcs/topicsListJwt.js +1 -1
- package/dist/esm/funcs/topicsListJwt.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/config.js.map +1 -1
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.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/models/components/deliveryattempt.d.ts +8 -8
- package/dist/esm/models/components/deliveryattempt.d.ts.map +1 -1
- package/dist/esm/models/components/deliveryattempt.js +12 -13
- package/dist/esm/models/components/deliveryattempt.js.map +1 -1
- 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/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/destinationcreategcppubsub.d.ts +78 -0
- package/dist/esm/models/components/destinationcreategcppubsub.d.ts.map +1 -0
- package/dist/esm/models/components/destinationcreategcppubsub.js +63 -0
- package/dist/esm/models/components/destinationcreategcppubsub.js.map +1 -0
- package/dist/esm/models/components/destinationgcppubsub.d.ts +98 -0
- package/dist/esm/models/components/destinationgcppubsub.d.ts.map +1 -0
- package/dist/esm/models/components/destinationgcppubsub.js +84 -0
- package/dist/esm/models/components/destinationgcppubsub.js.map +1 -0
- package/dist/esm/models/components/destinationupdate.d.ts +4 -2
- package/dist/esm/models/components/destinationupdate.d.ts.map +1 -1
- package/dist/esm/models/components/destinationupdate.js +6 -0
- package/dist/esm/models/components/destinationupdate.js.map +1 -1
- package/dist/esm/models/components/destinationupdateazureservicebus.d.ts +39 -0
- package/dist/esm/models/components/destinationupdateazureservicebus.d.ts.map +1 -0
- package/dist/esm/models/components/destinationupdateazureservicebus.js +38 -0
- package/dist/esm/models/components/destinationupdateazureservicebus.js.map +1 -0
- package/dist/esm/models/components/destinationupdategcppubsub.d.ts +39 -0
- package/dist/esm/models/components/destinationupdategcppubsub.d.ts.map +1 -0
- package/dist/esm/models/components/destinationupdategcppubsub.js +38 -0
- package/dist/esm/models/components/destinationupdategcppubsub.js.map +1 -0
- package/dist/esm/models/components/event.d.ts +30 -2
- package/dist/esm/models/components/event.d.ts.map +1 -1
- package/dist/esm/models/components/event.js +24 -2
- package/dist/esm/models/components/event.js.map +1 -1
- package/dist/esm/models/components/gcppubsubconfig.d.ts +42 -0
- package/dist/esm/models/components/gcppubsubconfig.d.ts.map +1 -0
- package/dist/esm/models/components/gcppubsubconfig.js +44 -0
- package/dist/esm/models/components/gcppubsubconfig.js.map +1 -0
- package/dist/esm/models/components/gcppubsubcredentials.d.ts +32 -0
- package/dist/esm/models/components/gcppubsubcredentials.d.ts.map +1 -0
- package/dist/esm/models/components/gcppubsubcredentials.js +40 -0
- package/dist/esm/models/components/gcppubsubcredentials.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +6 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +6 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.d.ts +12 -0
- package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
- package/dist/esm/models/operations/listtenantdestinations.js +4 -0
- package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
- package/examples/healthCheck.example.ts +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/destinationsCreate.ts +1 -1
- package/src/funcs/destinationsDelete.ts +1 -1
- package/src/funcs/destinationsDisable.ts +1 -1
- package/src/funcs/destinationsEnable.ts +1 -1
- package/src/funcs/destinationsGet.ts +1 -1
- package/src/funcs/destinationsList.ts +1 -1
- package/src/funcs/destinationsUpdate.ts +1 -1
- package/src/funcs/eventsGet.ts +1 -1
- package/src/funcs/eventsGetByDestination.ts +1 -1
- package/src/funcs/eventsList.ts +1 -1
- package/src/funcs/eventsListByDestination.ts +1 -1
- package/src/funcs/eventsListDeliveries.ts +1 -1
- package/src/funcs/eventsRetry.ts +1 -1
- package/src/funcs/healthCheck.ts +1 -1
- package/src/funcs/publishEvent.ts +1 -1
- package/src/funcs/schemasGet.ts +1 -1
- package/src/funcs/schemasGetDestinationTypeJwt.ts +1 -1
- package/src/funcs/schemasListDestinationTypesJwt.ts +1 -1
- package/src/funcs/schemasListTenantDestinationTypes.ts +1 -1
- package/src/funcs/tenantsDelete.ts +1 -1
- package/src/funcs/tenantsGet.ts +1 -1
- package/src/funcs/tenantsGetPortalUrl.ts +1 -1
- package/src/funcs/tenantsGetToken.ts +1 -1
- package/src/funcs/tenantsUpsert.ts +1 -1
- package/src/funcs/topicsList.ts +1 -1
- package/src/funcs/topicsListJwt.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/deliveryattempt.ts +16 -14
- package/src/models/components/destination.ts +18 -0
- package/src/models/components/destinationcreate.ts +18 -0
- package/src/models/components/destinationcreategcppubsub.ts +144 -0
- package/src/models/components/destinationgcppubsub.ts +187 -0
- package/src/models/components/destinationupdate.ts +22 -2
- package/src/models/components/destinationupdateazureservicebus.ts +97 -0
- package/src/models/components/destinationupdategcppubsub.ts +95 -0
- package/src/models/components/event.ts +34 -4
- package/src/models/components/gcppubsubconfig.ts +90 -0
- package/src/models/components/gcppubsubcredentials.ts +78 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/listtenantdestinations.ts +4 -0
- package/docs/sdks/outpost/README.md +0 -7
package/src/mcp-server/server.ts
CHANGED
|
@@ -9,37 +9,39 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const DeliveryAttemptStatus = {
|
|
13
13
|
Success: "success",
|
|
14
14
|
Failed: "failed",
|
|
15
15
|
} as const;
|
|
16
|
-
export type
|
|
16
|
+
export type DeliveryAttemptStatus = ClosedEnum<typeof DeliveryAttemptStatus>;
|
|
17
17
|
|
|
18
18
|
export type DeliveryAttempt = {
|
|
19
19
|
deliveredAt?: Date | undefined;
|
|
20
|
-
status?:
|
|
20
|
+
status?: DeliveryAttemptStatus | undefined;
|
|
21
21
|
responseStatusCode?: number | undefined;
|
|
22
22
|
responseBody?: string | undefined;
|
|
23
23
|
responseHeaders?: { [k: string]: string } | undefined;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
/** @internal */
|
|
27
|
-
export const
|
|
28
|
-
|
|
27
|
+
export const DeliveryAttemptStatus$inboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof DeliveryAttemptStatus
|
|
29
|
+
> = z.nativeEnum(DeliveryAttemptStatus);
|
|
29
30
|
|
|
30
31
|
/** @internal */
|
|
31
|
-
export const
|
|
32
|
-
|
|
32
|
+
export const DeliveryAttemptStatus$outboundSchema: z.ZodNativeEnum<
|
|
33
|
+
typeof DeliveryAttemptStatus
|
|
34
|
+
> = DeliveryAttemptStatus$inboundSchema;
|
|
33
35
|
|
|
34
36
|
/**
|
|
35
37
|
* @internal
|
|
36
38
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
39
|
*/
|
|
38
|
-
export namespace
|
|
39
|
-
/** @deprecated use `
|
|
40
|
-
export const inboundSchema =
|
|
41
|
-
/** @deprecated use `
|
|
42
|
-
export const outboundSchema =
|
|
40
|
+
export namespace DeliveryAttemptStatus$ {
|
|
41
|
+
/** @deprecated use `DeliveryAttemptStatus$inboundSchema` instead. */
|
|
42
|
+
export const inboundSchema = DeliveryAttemptStatus$inboundSchema;
|
|
43
|
+
/** @deprecated use `DeliveryAttemptStatus$outboundSchema` instead. */
|
|
44
|
+
export const outboundSchema = DeliveryAttemptStatus$outboundSchema;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
/** @internal */
|
|
@@ -51,7 +53,7 @@ export const DeliveryAttempt$inboundSchema: z.ZodType<
|
|
|
51
53
|
delivered_at: z.string().datetime({ offset: true }).transform(v =>
|
|
52
54
|
new Date(v)
|
|
53
55
|
).optional(),
|
|
54
|
-
status:
|
|
56
|
+
status: DeliveryAttemptStatus$inboundSchema.optional(),
|
|
55
57
|
response_status_code: z.number().int().optional(),
|
|
56
58
|
response_body: z.string().optional(),
|
|
57
59
|
response_headers: z.record(z.string()).optional(),
|
|
@@ -80,7 +82,7 @@ export const DeliveryAttempt$outboundSchema: z.ZodType<
|
|
|
80
82
|
DeliveryAttempt
|
|
81
83
|
> = z.object({
|
|
82
84
|
deliveredAt: z.date().transform(v => v.toISOString()).optional(),
|
|
83
|
-
status:
|
|
85
|
+
status: DeliveryAttemptStatus$outboundSchema.optional(),
|
|
84
86
|
responseStatusCode: z.number().int().optional(),
|
|
85
87
|
responseBody: z.string().optional(),
|
|
86
88
|
responseHeaders: z.record(z.string()).optional(),
|
|
@@ -30,6 +30,12 @@ import {
|
|
|
30
30
|
DestinationAzureServiceBus$Outbound,
|
|
31
31
|
DestinationAzureServiceBus$outboundSchema,
|
|
32
32
|
} from "./destinationazureservicebus.js";
|
|
33
|
+
import {
|
|
34
|
+
DestinationGCPPubSub,
|
|
35
|
+
DestinationGCPPubSub$inboundSchema,
|
|
36
|
+
DestinationGCPPubSub$Outbound,
|
|
37
|
+
DestinationGCPPubSub$outboundSchema,
|
|
38
|
+
} from "./destinationgcppubsub.js";
|
|
33
39
|
import {
|
|
34
40
|
DestinationHookdeck,
|
|
35
41
|
DestinationHookdeck$inboundSchema,
|
|
@@ -56,6 +62,7 @@ export type Destination =
|
|
|
56
62
|
| (DestinationAWSKinesis & { type: "aws_kinesis" })
|
|
57
63
|
| (DestinationAzureServiceBus & { type: "azure_servicebus" })
|
|
58
64
|
| (DestinationAwss3 & { type: "aws_s3" })
|
|
65
|
+
| (DestinationGCPPubSub & { type: "gcp_pubsub" })
|
|
59
66
|
| (DestinationHookdeck & { type: "hookdeck" });
|
|
60
67
|
|
|
61
68
|
/** @internal */
|
|
@@ -94,6 +101,11 @@ export const Destination$inboundSchema: z.ZodType<
|
|
|
94
101
|
type: v.type,
|
|
95
102
|
})),
|
|
96
103
|
),
|
|
104
|
+
DestinationGCPPubSub$inboundSchema.and(
|
|
105
|
+
z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
|
|
106
|
+
type: v.type,
|
|
107
|
+
})),
|
|
108
|
+
),
|
|
97
109
|
DestinationHookdeck$inboundSchema.and(
|
|
98
110
|
z.object({ type: z.literal("hookdeck") }).transform((v) => ({
|
|
99
111
|
type: v.type,
|
|
@@ -109,6 +121,7 @@ export type Destination$Outbound =
|
|
|
109
121
|
| (DestinationAWSKinesis$Outbound & { type: "aws_kinesis" })
|
|
110
122
|
| (DestinationAzureServiceBus$Outbound & { type: "azure_servicebus" })
|
|
111
123
|
| (DestinationAwss3$Outbound & { type: "aws_s3" })
|
|
124
|
+
| (DestinationGCPPubSub$Outbound & { type: "gcp_pubsub" })
|
|
112
125
|
| (DestinationHookdeck$Outbound & { type: "hookdeck" });
|
|
113
126
|
|
|
114
127
|
/** @internal */
|
|
@@ -147,6 +160,11 @@ export const Destination$outboundSchema: z.ZodType<
|
|
|
147
160
|
type: v.type,
|
|
148
161
|
})),
|
|
149
162
|
),
|
|
163
|
+
DestinationGCPPubSub$outboundSchema.and(
|
|
164
|
+
z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
|
|
165
|
+
type: v.type,
|
|
166
|
+
})),
|
|
167
|
+
),
|
|
150
168
|
DestinationHookdeck$outboundSchema.and(
|
|
151
169
|
z.object({ type: z.literal("hookdeck") }).transform((v) => ({
|
|
152
170
|
type: v.type,
|
|
@@ -30,6 +30,12 @@ import {
|
|
|
30
30
|
DestinationCreateAzureServiceBus$Outbound,
|
|
31
31
|
DestinationCreateAzureServiceBus$outboundSchema,
|
|
32
32
|
} from "./destinationcreateazureservicebus.js";
|
|
33
|
+
import {
|
|
34
|
+
DestinationCreateGCPPubSub,
|
|
35
|
+
DestinationCreateGCPPubSub$inboundSchema,
|
|
36
|
+
DestinationCreateGCPPubSub$Outbound,
|
|
37
|
+
DestinationCreateGCPPubSub$outboundSchema,
|
|
38
|
+
} from "./destinationcreategcppubsub.js";
|
|
33
39
|
import {
|
|
34
40
|
DestinationCreateHookdeck,
|
|
35
41
|
DestinationCreateHookdeck$inboundSchema,
|
|
@@ -55,6 +61,7 @@ export type DestinationCreate =
|
|
|
55
61
|
| (DestinationCreateAWSKinesis & { type: "aws_kinesis" })
|
|
56
62
|
| (DestinationCreateAzureServiceBus & { type: "azure_servicebus" })
|
|
57
63
|
| (DestinationCreateAwss3 & { type: "aws_s3" })
|
|
64
|
+
| (DestinationCreateGCPPubSub & { type: "gcp_pubsub" })
|
|
58
65
|
| (DestinationCreateWebhook & { type: "webhook" })
|
|
59
66
|
| (DestinationCreateHookdeck & { type: "hookdeck" });
|
|
60
67
|
|
|
@@ -89,6 +96,11 @@ export const DestinationCreate$inboundSchema: z.ZodType<
|
|
|
89
96
|
type: v.type,
|
|
90
97
|
})),
|
|
91
98
|
),
|
|
99
|
+
DestinationCreateGCPPubSub$inboundSchema.and(
|
|
100
|
+
z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
|
|
101
|
+
type: v.type,
|
|
102
|
+
})),
|
|
103
|
+
),
|
|
92
104
|
DestinationCreateWebhook$inboundSchema.and(
|
|
93
105
|
z.object({ type: z.literal("webhook") }).transform((v) => ({
|
|
94
106
|
type: v.type,
|
|
@@ -108,6 +120,7 @@ export type DestinationCreate$Outbound =
|
|
|
108
120
|
| (DestinationCreateAWSKinesis$Outbound & { type: "aws_kinesis" })
|
|
109
121
|
| (DestinationCreateAzureServiceBus$Outbound & { type: "azure_servicebus" })
|
|
110
122
|
| (DestinationCreateAwss3$Outbound & { type: "aws_s3" })
|
|
123
|
+
| (DestinationCreateGCPPubSub$Outbound & { type: "gcp_pubsub" })
|
|
111
124
|
| (DestinationCreateWebhook$Outbound & { type: "webhook" })
|
|
112
125
|
| (DestinationCreateHookdeck$Outbound & { type: "hookdeck" });
|
|
113
126
|
|
|
@@ -142,6 +155,11 @@ export const DestinationCreate$outboundSchema: z.ZodType<
|
|
|
142
155
|
type: v.type,
|
|
143
156
|
})),
|
|
144
157
|
),
|
|
158
|
+
DestinationCreateGCPPubSub$outboundSchema.and(
|
|
159
|
+
z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
|
|
160
|
+
type: v.type,
|
|
161
|
+
})),
|
|
162
|
+
),
|
|
145
163
|
DestinationCreateWebhook$outboundSchema.and(
|
|
146
164
|
z.object({ type: z.literal("webhook") }).transform((v) => ({
|
|
147
165
|
type: v.type,
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
GCPPubSubConfig,
|
|
12
|
+
GCPPubSubConfig$inboundSchema,
|
|
13
|
+
GCPPubSubConfig$Outbound,
|
|
14
|
+
GCPPubSubConfig$outboundSchema,
|
|
15
|
+
} from "./gcppubsubconfig.js";
|
|
16
|
+
import {
|
|
17
|
+
GCPPubSubCredentials,
|
|
18
|
+
GCPPubSubCredentials$inboundSchema,
|
|
19
|
+
GCPPubSubCredentials$Outbound,
|
|
20
|
+
GCPPubSubCredentials$outboundSchema,
|
|
21
|
+
} from "./gcppubsubcredentials.js";
|
|
22
|
+
import {
|
|
23
|
+
Topics,
|
|
24
|
+
Topics$inboundSchema,
|
|
25
|
+
Topics$Outbound,
|
|
26
|
+
Topics$outboundSchema,
|
|
27
|
+
} from "./topics.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Type of the destination. Must be 'gcp_pubsub'.
|
|
31
|
+
*/
|
|
32
|
+
export const DestinationCreateGCPPubSubType = {
|
|
33
|
+
GcpPubsub: "gcp_pubsub",
|
|
34
|
+
} as const;
|
|
35
|
+
/**
|
|
36
|
+
* Type of the destination. Must be 'gcp_pubsub'.
|
|
37
|
+
*/
|
|
38
|
+
export type DestinationCreateGCPPubSubType = ClosedEnum<
|
|
39
|
+
typeof DestinationCreateGCPPubSubType
|
|
40
|
+
>;
|
|
41
|
+
|
|
42
|
+
export type DestinationCreateGCPPubSub = {
|
|
43
|
+
/**
|
|
44
|
+
* Optional user-provided ID. A UUID will be generated if empty.
|
|
45
|
+
*/
|
|
46
|
+
id?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Type of the destination. Must be 'gcp_pubsub'.
|
|
49
|
+
*/
|
|
50
|
+
type: DestinationCreateGCPPubSubType;
|
|
51
|
+
/**
|
|
52
|
+
* "*" or an array of enabled topics.
|
|
53
|
+
*/
|
|
54
|
+
topics: Topics;
|
|
55
|
+
config: GCPPubSubConfig;
|
|
56
|
+
credentials: GCPPubSubCredentials;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const DestinationCreateGCPPubSubType$inboundSchema: z.ZodNativeEnum<
|
|
61
|
+
typeof DestinationCreateGCPPubSubType
|
|
62
|
+
> = z.nativeEnum(DestinationCreateGCPPubSubType);
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const DestinationCreateGCPPubSubType$outboundSchema: z.ZodNativeEnum<
|
|
66
|
+
typeof DestinationCreateGCPPubSubType
|
|
67
|
+
> = DestinationCreateGCPPubSubType$inboundSchema;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace DestinationCreateGCPPubSubType$ {
|
|
74
|
+
/** @deprecated use `DestinationCreateGCPPubSubType$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = DestinationCreateGCPPubSubType$inboundSchema;
|
|
76
|
+
/** @deprecated use `DestinationCreateGCPPubSubType$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = DestinationCreateGCPPubSubType$outboundSchema;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const DestinationCreateGCPPubSub$inboundSchema: z.ZodType<
|
|
82
|
+
DestinationCreateGCPPubSub,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z.object({
|
|
86
|
+
id: z.string().optional(),
|
|
87
|
+
type: DestinationCreateGCPPubSubType$inboundSchema,
|
|
88
|
+
topics: Topics$inboundSchema,
|
|
89
|
+
config: GCPPubSubConfig$inboundSchema,
|
|
90
|
+
credentials: GCPPubSubCredentials$inboundSchema,
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export type DestinationCreateGCPPubSub$Outbound = {
|
|
95
|
+
id?: string | undefined;
|
|
96
|
+
type: string;
|
|
97
|
+
topics: Topics$Outbound;
|
|
98
|
+
config: GCPPubSubConfig$Outbound;
|
|
99
|
+
credentials: GCPPubSubCredentials$Outbound;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const DestinationCreateGCPPubSub$outboundSchema: z.ZodType<
|
|
104
|
+
DestinationCreateGCPPubSub$Outbound,
|
|
105
|
+
z.ZodTypeDef,
|
|
106
|
+
DestinationCreateGCPPubSub
|
|
107
|
+
> = z.object({
|
|
108
|
+
id: z.string().optional(),
|
|
109
|
+
type: DestinationCreateGCPPubSubType$outboundSchema,
|
|
110
|
+
topics: Topics$outboundSchema,
|
|
111
|
+
config: GCPPubSubConfig$outboundSchema,
|
|
112
|
+
credentials: GCPPubSubCredentials$outboundSchema,
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
|
+
*/
|
|
119
|
+
export namespace DestinationCreateGCPPubSub$ {
|
|
120
|
+
/** @deprecated use `DestinationCreateGCPPubSub$inboundSchema` instead. */
|
|
121
|
+
export const inboundSchema = DestinationCreateGCPPubSub$inboundSchema;
|
|
122
|
+
/** @deprecated use `DestinationCreateGCPPubSub$outboundSchema` instead. */
|
|
123
|
+
export const outboundSchema = DestinationCreateGCPPubSub$outboundSchema;
|
|
124
|
+
/** @deprecated use `DestinationCreateGCPPubSub$Outbound` instead. */
|
|
125
|
+
export type Outbound = DestinationCreateGCPPubSub$Outbound;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function destinationCreateGCPPubSubToJSON(
|
|
129
|
+
destinationCreateGCPPubSub: DestinationCreateGCPPubSub,
|
|
130
|
+
): string {
|
|
131
|
+
return JSON.stringify(
|
|
132
|
+
DestinationCreateGCPPubSub$outboundSchema.parse(destinationCreateGCPPubSub),
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function destinationCreateGCPPubSubFromJSON(
|
|
137
|
+
jsonString: string,
|
|
138
|
+
): SafeParseResult<DestinationCreateGCPPubSub, SDKValidationError> {
|
|
139
|
+
return safeParse(
|
|
140
|
+
jsonString,
|
|
141
|
+
(x) => DestinationCreateGCPPubSub$inboundSchema.parse(JSON.parse(x)),
|
|
142
|
+
`Failed to parse 'DestinationCreateGCPPubSub' from JSON`,
|
|
143
|
+
);
|
|
144
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
GCPPubSubConfig,
|
|
13
|
+
GCPPubSubConfig$inboundSchema,
|
|
14
|
+
GCPPubSubConfig$Outbound,
|
|
15
|
+
GCPPubSubConfig$outboundSchema,
|
|
16
|
+
} from "./gcppubsubconfig.js";
|
|
17
|
+
import {
|
|
18
|
+
GCPPubSubCredentials,
|
|
19
|
+
GCPPubSubCredentials$inboundSchema,
|
|
20
|
+
GCPPubSubCredentials$Outbound,
|
|
21
|
+
GCPPubSubCredentials$outboundSchema,
|
|
22
|
+
} from "./gcppubsubcredentials.js";
|
|
23
|
+
import {
|
|
24
|
+
Topics,
|
|
25
|
+
Topics$inboundSchema,
|
|
26
|
+
Topics$Outbound,
|
|
27
|
+
Topics$outboundSchema,
|
|
28
|
+
} from "./topics.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Type of the destination.
|
|
32
|
+
*/
|
|
33
|
+
export const DestinationGCPPubSubType = {
|
|
34
|
+
GcpPubsub: "gcp_pubsub",
|
|
35
|
+
} as const;
|
|
36
|
+
/**
|
|
37
|
+
* Type of the destination.
|
|
38
|
+
*/
|
|
39
|
+
export type DestinationGCPPubSubType = ClosedEnum<
|
|
40
|
+
typeof DestinationGCPPubSubType
|
|
41
|
+
>;
|
|
42
|
+
|
|
43
|
+
export type DestinationGCPPubSub = {
|
|
44
|
+
/**
|
|
45
|
+
* Control plane generated ID or user provided ID for the destination.
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
/**
|
|
49
|
+
* Type of the destination.
|
|
50
|
+
*/
|
|
51
|
+
type: DestinationGCPPubSubType;
|
|
52
|
+
/**
|
|
53
|
+
* "*" or an array of enabled topics.
|
|
54
|
+
*/
|
|
55
|
+
topics: Topics;
|
|
56
|
+
/**
|
|
57
|
+
* ISO Date when the destination was disabled, or null if enabled.
|
|
58
|
+
*/
|
|
59
|
+
disabledAt: Date | null;
|
|
60
|
+
/**
|
|
61
|
+
* ISO Date when the destination was created.
|
|
62
|
+
*/
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
config: GCPPubSubConfig;
|
|
65
|
+
credentials: GCPPubSubCredentials;
|
|
66
|
+
/**
|
|
67
|
+
* A human-readable representation of the destination target (project/topic). Read-only.
|
|
68
|
+
*/
|
|
69
|
+
target?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* A URL link to the destination target (GCP Console link to the topic). Read-only.
|
|
72
|
+
*/
|
|
73
|
+
targetUrl?: string | null | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const DestinationGCPPubSubType$inboundSchema: z.ZodNativeEnum<
|
|
78
|
+
typeof DestinationGCPPubSubType
|
|
79
|
+
> = z.nativeEnum(DestinationGCPPubSubType);
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const DestinationGCPPubSubType$outboundSchema: z.ZodNativeEnum<
|
|
83
|
+
typeof DestinationGCPPubSubType
|
|
84
|
+
> = DestinationGCPPubSubType$inboundSchema;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
+
*/
|
|
90
|
+
export namespace DestinationGCPPubSubType$ {
|
|
91
|
+
/** @deprecated use `DestinationGCPPubSubType$inboundSchema` instead. */
|
|
92
|
+
export const inboundSchema = DestinationGCPPubSubType$inboundSchema;
|
|
93
|
+
/** @deprecated use `DestinationGCPPubSubType$outboundSchema` instead. */
|
|
94
|
+
export const outboundSchema = DestinationGCPPubSubType$outboundSchema;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const DestinationGCPPubSub$inboundSchema: z.ZodType<
|
|
99
|
+
DestinationGCPPubSub,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
unknown
|
|
102
|
+
> = z.object({
|
|
103
|
+
id: z.string(),
|
|
104
|
+
type: DestinationGCPPubSubType$inboundSchema,
|
|
105
|
+
topics: Topics$inboundSchema,
|
|
106
|
+
disabled_at: z.nullable(
|
|
107
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
108
|
+
),
|
|
109
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
110
|
+
config: GCPPubSubConfig$inboundSchema,
|
|
111
|
+
credentials: GCPPubSubCredentials$inboundSchema,
|
|
112
|
+
target: z.string().optional(),
|
|
113
|
+
target_url: z.nullable(z.string()).optional(),
|
|
114
|
+
}).transform((v) => {
|
|
115
|
+
return remap$(v, {
|
|
116
|
+
"disabled_at": "disabledAt",
|
|
117
|
+
"created_at": "createdAt",
|
|
118
|
+
"target_url": "targetUrl",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export type DestinationGCPPubSub$Outbound = {
|
|
124
|
+
id: string;
|
|
125
|
+
type: string;
|
|
126
|
+
topics: Topics$Outbound;
|
|
127
|
+
disabled_at: string | null;
|
|
128
|
+
created_at: string;
|
|
129
|
+
config: GCPPubSubConfig$Outbound;
|
|
130
|
+
credentials: GCPPubSubCredentials$Outbound;
|
|
131
|
+
target?: string | undefined;
|
|
132
|
+
target_url?: string | null | undefined;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const DestinationGCPPubSub$outboundSchema: z.ZodType<
|
|
137
|
+
DestinationGCPPubSub$Outbound,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
DestinationGCPPubSub
|
|
140
|
+
> = z.object({
|
|
141
|
+
id: z.string(),
|
|
142
|
+
type: DestinationGCPPubSubType$outboundSchema,
|
|
143
|
+
topics: Topics$outboundSchema,
|
|
144
|
+
disabledAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
145
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
146
|
+
config: GCPPubSubConfig$outboundSchema,
|
|
147
|
+
credentials: GCPPubSubCredentials$outboundSchema,
|
|
148
|
+
target: z.string().optional(),
|
|
149
|
+
targetUrl: z.nullable(z.string()).optional(),
|
|
150
|
+
}).transform((v) => {
|
|
151
|
+
return remap$(v, {
|
|
152
|
+
disabledAt: "disabled_at",
|
|
153
|
+
createdAt: "created_at",
|
|
154
|
+
targetUrl: "target_url",
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @internal
|
|
160
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
161
|
+
*/
|
|
162
|
+
export namespace DestinationGCPPubSub$ {
|
|
163
|
+
/** @deprecated use `DestinationGCPPubSub$inboundSchema` instead. */
|
|
164
|
+
export const inboundSchema = DestinationGCPPubSub$inboundSchema;
|
|
165
|
+
/** @deprecated use `DestinationGCPPubSub$outboundSchema` instead. */
|
|
166
|
+
export const outboundSchema = DestinationGCPPubSub$outboundSchema;
|
|
167
|
+
/** @deprecated use `DestinationGCPPubSub$Outbound` instead. */
|
|
168
|
+
export type Outbound = DestinationGCPPubSub$Outbound;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function destinationGCPPubSubToJSON(
|
|
172
|
+
destinationGCPPubSub: DestinationGCPPubSub,
|
|
173
|
+
): string {
|
|
174
|
+
return JSON.stringify(
|
|
175
|
+
DestinationGCPPubSub$outboundSchema.parse(destinationGCPPubSub),
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function destinationGCPPubSubFromJSON(
|
|
180
|
+
jsonString: string,
|
|
181
|
+
): SafeParseResult<DestinationGCPPubSub, SDKValidationError> {
|
|
182
|
+
return safeParse(
|
|
183
|
+
jsonString,
|
|
184
|
+
(x) => DestinationGCPPubSub$inboundSchema.parse(JSON.parse(x)),
|
|
185
|
+
`Failed to parse 'DestinationGCPPubSub' from JSON`,
|
|
186
|
+
);
|
|
187
|
+
}
|
|
@@ -24,6 +24,18 @@ import {
|
|
|
24
24
|
DestinationUpdateAWSSQS$Outbound,
|
|
25
25
|
DestinationUpdateAWSSQS$outboundSchema,
|
|
26
26
|
} from "./destinationupdateawssqs.js";
|
|
27
|
+
import {
|
|
28
|
+
DestinationUpdateAzureServiceBus,
|
|
29
|
+
DestinationUpdateAzureServiceBus$inboundSchema,
|
|
30
|
+
DestinationUpdateAzureServiceBus$Outbound,
|
|
31
|
+
DestinationUpdateAzureServiceBus$outboundSchema,
|
|
32
|
+
} from "./destinationupdateazureservicebus.js";
|
|
33
|
+
import {
|
|
34
|
+
DestinationUpdateGCPPubSub,
|
|
35
|
+
DestinationUpdateGCPPubSub$inboundSchema,
|
|
36
|
+
DestinationUpdateGCPPubSub$Outbound,
|
|
37
|
+
DestinationUpdateGCPPubSub$outboundSchema,
|
|
38
|
+
} from "./destinationupdategcppubsub.js";
|
|
27
39
|
import {
|
|
28
40
|
DestinationUpdateHookdeck,
|
|
29
41
|
DestinationUpdateHookdeck$inboundSchema,
|
|
@@ -49,7 +61,9 @@ export type DestinationUpdate =
|
|
|
49
61
|
| DestinationUpdateRabbitMQ
|
|
50
62
|
| DestinationUpdateHookdeck
|
|
51
63
|
| DestinationUpdateAWSKinesis
|
|
52
|
-
|
|
|
64
|
+
| DestinationUpdateAzureServiceBus
|
|
65
|
+
| DestinationUpdateAwss3
|
|
66
|
+
| DestinationUpdateGCPPubSub;
|
|
53
67
|
|
|
54
68
|
/** @internal */
|
|
55
69
|
export const DestinationUpdate$inboundSchema: z.ZodType<
|
|
@@ -62,7 +76,9 @@ export const DestinationUpdate$inboundSchema: z.ZodType<
|
|
|
62
76
|
DestinationUpdateRabbitMQ$inboundSchema,
|
|
63
77
|
DestinationUpdateHookdeck$inboundSchema,
|
|
64
78
|
DestinationUpdateAWSKinesis$inboundSchema,
|
|
79
|
+
DestinationUpdateAzureServiceBus$inboundSchema,
|
|
65
80
|
DestinationUpdateAwss3$inboundSchema,
|
|
81
|
+
DestinationUpdateGCPPubSub$inboundSchema,
|
|
66
82
|
]);
|
|
67
83
|
|
|
68
84
|
/** @internal */
|
|
@@ -72,7 +88,9 @@ export type DestinationUpdate$Outbound =
|
|
|
72
88
|
| DestinationUpdateRabbitMQ$Outbound
|
|
73
89
|
| DestinationUpdateHookdeck$Outbound
|
|
74
90
|
| DestinationUpdateAWSKinesis$Outbound
|
|
75
|
-
|
|
|
91
|
+
| DestinationUpdateAzureServiceBus$Outbound
|
|
92
|
+
| DestinationUpdateAwss3$Outbound
|
|
93
|
+
| DestinationUpdateGCPPubSub$Outbound;
|
|
76
94
|
|
|
77
95
|
/** @internal */
|
|
78
96
|
export const DestinationUpdate$outboundSchema: z.ZodType<
|
|
@@ -85,7 +103,9 @@ export const DestinationUpdate$outboundSchema: z.ZodType<
|
|
|
85
103
|
DestinationUpdateRabbitMQ$outboundSchema,
|
|
86
104
|
DestinationUpdateHookdeck$outboundSchema,
|
|
87
105
|
DestinationUpdateAWSKinesis$outboundSchema,
|
|
106
|
+
DestinationUpdateAzureServiceBus$outboundSchema,
|
|
88
107
|
DestinationUpdateAwss3$outboundSchema,
|
|
108
|
+
DestinationUpdateGCPPubSub$outboundSchema,
|
|
89
109
|
]);
|
|
90
110
|
|
|
91
111
|
/**
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AzureServiceBusConfig,
|
|
11
|
+
AzureServiceBusConfig$inboundSchema,
|
|
12
|
+
AzureServiceBusConfig$Outbound,
|
|
13
|
+
AzureServiceBusConfig$outboundSchema,
|
|
14
|
+
} from "./azureservicebusconfig.js";
|
|
15
|
+
import {
|
|
16
|
+
AzureServiceBusCredentials,
|
|
17
|
+
AzureServiceBusCredentials$inboundSchema,
|
|
18
|
+
AzureServiceBusCredentials$Outbound,
|
|
19
|
+
AzureServiceBusCredentials$outboundSchema,
|
|
20
|
+
} from "./azureservicebuscredentials.js";
|
|
21
|
+
import {
|
|
22
|
+
Topics,
|
|
23
|
+
Topics$inboundSchema,
|
|
24
|
+
Topics$Outbound,
|
|
25
|
+
Topics$outboundSchema,
|
|
26
|
+
} from "./topics.js";
|
|
27
|
+
|
|
28
|
+
export type DestinationUpdateAzureServiceBus = {
|
|
29
|
+
/**
|
|
30
|
+
* "*" or an array of enabled topics.
|
|
31
|
+
*/
|
|
32
|
+
topics?: Topics | undefined;
|
|
33
|
+
config?: AzureServiceBusConfig | undefined;
|
|
34
|
+
credentials?: AzureServiceBusCredentials | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const DestinationUpdateAzureServiceBus$inboundSchema: z.ZodType<
|
|
39
|
+
DestinationUpdateAzureServiceBus,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
topics: Topics$inboundSchema.optional(),
|
|
44
|
+
config: AzureServiceBusConfig$inboundSchema.optional(),
|
|
45
|
+
credentials: AzureServiceBusCredentials$inboundSchema.optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type DestinationUpdateAzureServiceBus$Outbound = {
|
|
50
|
+
topics?: Topics$Outbound | undefined;
|
|
51
|
+
config?: AzureServiceBusConfig$Outbound | undefined;
|
|
52
|
+
credentials?: AzureServiceBusCredentials$Outbound | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const DestinationUpdateAzureServiceBus$outboundSchema: z.ZodType<
|
|
57
|
+
DestinationUpdateAzureServiceBus$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
DestinationUpdateAzureServiceBus
|
|
60
|
+
> = z.object({
|
|
61
|
+
topics: Topics$outboundSchema.optional(),
|
|
62
|
+
config: AzureServiceBusConfig$outboundSchema.optional(),
|
|
63
|
+
credentials: AzureServiceBusCredentials$outboundSchema.optional(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
export namespace DestinationUpdateAzureServiceBus$ {
|
|
71
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$inboundSchema` instead. */
|
|
72
|
+
export const inboundSchema = DestinationUpdateAzureServiceBus$inboundSchema;
|
|
73
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$outboundSchema` instead. */
|
|
74
|
+
export const outboundSchema = DestinationUpdateAzureServiceBus$outboundSchema;
|
|
75
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$Outbound` instead. */
|
|
76
|
+
export type Outbound = DestinationUpdateAzureServiceBus$Outbound;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function destinationUpdateAzureServiceBusToJSON(
|
|
80
|
+
destinationUpdateAzureServiceBus: DestinationUpdateAzureServiceBus,
|
|
81
|
+
): string {
|
|
82
|
+
return JSON.stringify(
|
|
83
|
+
DestinationUpdateAzureServiceBus$outboundSchema.parse(
|
|
84
|
+
destinationUpdateAzureServiceBus,
|
|
85
|
+
),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function destinationUpdateAzureServiceBusFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<DestinationUpdateAzureServiceBus, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => DestinationUpdateAzureServiceBus$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'DestinationUpdateAzureServiceBus' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|