@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
|
@@ -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 { GCPPubSubConfig$inboundSchema, GCPPubSubConfig$outboundSchema, } from "./gcppubsubconfig.js";
|
|
8
|
+
import { GCPPubSubCredentials$inboundSchema, GCPPubSubCredentials$outboundSchema, } from "./gcppubsubcredentials.js";
|
|
9
|
+
import { Topics$inboundSchema, Topics$outboundSchema, } from "./topics.js";
|
|
10
|
+
/**
|
|
11
|
+
* Type of the destination.
|
|
12
|
+
*/
|
|
13
|
+
export const DestinationGCPPubSubType = {
|
|
14
|
+
GcpPubsub: "gcp_pubsub",
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const DestinationGCPPubSubType$inboundSchema = z.nativeEnum(DestinationGCPPubSubType);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const DestinationGCPPubSubType$outboundSchema = DestinationGCPPubSubType$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 DestinationGCPPubSubType$;
|
|
25
|
+
(function (DestinationGCPPubSubType$) {
|
|
26
|
+
/** @deprecated use `DestinationGCPPubSubType$inboundSchema` instead. */
|
|
27
|
+
DestinationGCPPubSubType$.inboundSchema = DestinationGCPPubSubType$inboundSchema;
|
|
28
|
+
/** @deprecated use `DestinationGCPPubSubType$outboundSchema` instead. */
|
|
29
|
+
DestinationGCPPubSubType$.outboundSchema = DestinationGCPPubSubType$outboundSchema;
|
|
30
|
+
})(DestinationGCPPubSubType$ || (DestinationGCPPubSubType$ = {}));
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const DestinationGCPPubSub$inboundSchema = z.object({
|
|
33
|
+
id: z.string(),
|
|
34
|
+
type: DestinationGCPPubSubType$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: GCPPubSubConfig$inboundSchema,
|
|
39
|
+
credentials: GCPPubSubCredentials$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 DestinationGCPPubSub$outboundSchema = z.object({
|
|
51
|
+
id: z.string(),
|
|
52
|
+
type: DestinationGCPPubSubType$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: GCPPubSubConfig$outboundSchema,
|
|
57
|
+
credentials: GCPPubSubCredentials$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 DestinationGCPPubSub$;
|
|
72
|
+
(function (DestinationGCPPubSub$) {
|
|
73
|
+
/** @deprecated use `DestinationGCPPubSub$inboundSchema` instead. */
|
|
74
|
+
DestinationGCPPubSub$.inboundSchema = DestinationGCPPubSub$inboundSchema;
|
|
75
|
+
/** @deprecated use `DestinationGCPPubSub$outboundSchema` instead. */
|
|
76
|
+
DestinationGCPPubSub$.outboundSchema = DestinationGCPPubSub$outboundSchema;
|
|
77
|
+
})(DestinationGCPPubSub$ || (DestinationGCPPubSub$ = {}));
|
|
78
|
+
export function destinationGCPPubSubToJSON(destinationGCPPubSub) {
|
|
79
|
+
return JSON.stringify(DestinationGCPPubSub$outboundSchema.parse(destinationGCPPubSub));
|
|
80
|
+
}
|
|
81
|
+
export function destinationGCPPubSubFromJSON(jsonString) {
|
|
82
|
+
return safeParse(jsonString, (x) => DestinationGCPPubSub$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestinationGCPPubSub' from JSON`);
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=destinationgcppubsub.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinationgcppubsub.js","sourceRoot":"","sources":["../../../../src/models/components/destinationgcppubsub.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,6BAA6B,EAE7B,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,kC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qB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,kCAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,mCAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,KAArB,qBAAqB,QAOrC;AAED,MAAM,UAAU,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -4,14 +4,16 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
4
4
|
import { DestinationUpdateAWSKinesis, DestinationUpdateAWSKinesis$Outbound } from "./destinationupdateawskinesis.js";
|
|
5
5
|
import { DestinationUpdateAwss3, DestinationUpdateAwss3$Outbound } from "./destinationupdateawss3.js";
|
|
6
6
|
import { DestinationUpdateAWSSQS, DestinationUpdateAWSSQS$Outbound } from "./destinationupdateawssqs.js";
|
|
7
|
+
import { DestinationUpdateAzureServiceBus, DestinationUpdateAzureServiceBus$Outbound } from "./destinationupdateazureservicebus.js";
|
|
8
|
+
import { DestinationUpdateGCPPubSub, DestinationUpdateGCPPubSub$Outbound } from "./destinationupdategcppubsub.js";
|
|
7
9
|
import { DestinationUpdateHookdeck, DestinationUpdateHookdeck$Outbound } from "./destinationupdatehookdeck.js";
|
|
8
10
|
import { DestinationUpdateRabbitMQ, DestinationUpdateRabbitMQ$Outbound } from "./destinationupdaterabbitmq.js";
|
|
9
11
|
import { DestinationUpdateWebhook, DestinationUpdateWebhook$Outbound } from "./destinationupdatewebhook.js";
|
|
10
|
-
export type DestinationUpdate = DestinationUpdateWebhook | DestinationUpdateAWSSQS | DestinationUpdateRabbitMQ | DestinationUpdateHookdeck | DestinationUpdateAWSKinesis | DestinationUpdateAwss3;
|
|
12
|
+
export type DestinationUpdate = DestinationUpdateWebhook | DestinationUpdateAWSSQS | DestinationUpdateRabbitMQ | DestinationUpdateHookdeck | DestinationUpdateAWSKinesis | DestinationUpdateAzureServiceBus | DestinationUpdateAwss3 | DestinationUpdateGCPPubSub;
|
|
11
13
|
/** @internal */
|
|
12
14
|
export declare const DestinationUpdate$inboundSchema: z.ZodType<DestinationUpdate, z.ZodTypeDef, unknown>;
|
|
13
15
|
/** @internal */
|
|
14
|
-
export type DestinationUpdate$Outbound = DestinationUpdateWebhook$Outbound | DestinationUpdateAWSSQS$Outbound | DestinationUpdateRabbitMQ$Outbound | DestinationUpdateHookdeck$Outbound | DestinationUpdateAWSKinesis$Outbound | DestinationUpdateAwss3$Outbound;
|
|
16
|
+
export type DestinationUpdate$Outbound = DestinationUpdateWebhook$Outbound | DestinationUpdateAWSSQS$Outbound | DestinationUpdateRabbitMQ$Outbound | DestinationUpdateHookdeck$Outbound | DestinationUpdateAWSKinesis$Outbound | DestinationUpdateAzureServiceBus$Outbound | DestinationUpdateAwss3$Outbound | DestinationUpdateGCPPubSub$Outbound;
|
|
15
17
|
/** @internal */
|
|
16
18
|
export declare const DestinationUpdate$outboundSchema: z.ZodType<DestinationUpdate$Outbound, z.ZodTypeDef, DestinationUpdate>;
|
|
17
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destinationupdate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/destinationupdate.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,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,wBAAwB,GACxB,uBAAuB,GACvB,yBAAyB,GACzB,yBAAyB,GACzB,2BAA2B,GAC3B,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"destinationupdate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/destinationupdate.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,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,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,wBAAwB,GACxB,uBAAuB,GACvB,yBAAyB,GACzB,yBAAyB,GACzB,2BAA2B,GAC3B,gCAAgC,GAChC,sBAAsB,GACtB,0BAA0B,CAAC;AAE/B,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAClC,iCAAiC,GACjC,gCAAgC,GAChC,kCAAkC,GAClC,kCAAkC,GAClC,oCAAoC,GACpC,yCAAyC,GACzC,+BAA+B,GAC/B,mCAAmC,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAUjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,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"}
|
|
@@ -6,6 +6,8 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
6
6
|
import { DestinationUpdateAWSKinesis$inboundSchema, DestinationUpdateAWSKinesis$outboundSchema, } from "./destinationupdateawskinesis.js";
|
|
7
7
|
import { DestinationUpdateAwss3$inboundSchema, DestinationUpdateAwss3$outboundSchema, } from "./destinationupdateawss3.js";
|
|
8
8
|
import { DestinationUpdateAWSSQS$inboundSchema, DestinationUpdateAWSSQS$outboundSchema, } from "./destinationupdateawssqs.js";
|
|
9
|
+
import { DestinationUpdateAzureServiceBus$inboundSchema, DestinationUpdateAzureServiceBus$outboundSchema, } from "./destinationupdateazureservicebus.js";
|
|
10
|
+
import { DestinationUpdateGCPPubSub$inboundSchema, DestinationUpdateGCPPubSub$outboundSchema, } from "./destinationupdategcppubsub.js";
|
|
9
11
|
import { DestinationUpdateHookdeck$inboundSchema, DestinationUpdateHookdeck$outboundSchema, } from "./destinationupdatehookdeck.js";
|
|
10
12
|
import { DestinationUpdateRabbitMQ$inboundSchema, DestinationUpdateRabbitMQ$outboundSchema, } from "./destinationupdaterabbitmq.js";
|
|
11
13
|
import { DestinationUpdateWebhook$inboundSchema, DestinationUpdateWebhook$outboundSchema, } from "./destinationupdatewebhook.js";
|
|
@@ -16,7 +18,9 @@ export const DestinationUpdate$inboundSchema = z.union([
|
|
|
16
18
|
DestinationUpdateRabbitMQ$inboundSchema,
|
|
17
19
|
DestinationUpdateHookdeck$inboundSchema,
|
|
18
20
|
DestinationUpdateAWSKinesis$inboundSchema,
|
|
21
|
+
DestinationUpdateAzureServiceBus$inboundSchema,
|
|
19
22
|
DestinationUpdateAwss3$inboundSchema,
|
|
23
|
+
DestinationUpdateGCPPubSub$inboundSchema,
|
|
20
24
|
]);
|
|
21
25
|
/** @internal */
|
|
22
26
|
export const DestinationUpdate$outboundSchema = z.union([
|
|
@@ -25,7 +29,9 @@ export const DestinationUpdate$outboundSchema = z.union([
|
|
|
25
29
|
DestinationUpdateRabbitMQ$outboundSchema,
|
|
26
30
|
DestinationUpdateHookdeck$outboundSchema,
|
|
27
31
|
DestinationUpdateAWSKinesis$outboundSchema,
|
|
32
|
+
DestinationUpdateAzureServiceBus$outboundSchema,
|
|
28
33
|
DestinationUpdateAwss3$outboundSchema,
|
|
34
|
+
DestinationUpdateGCPPubSub$outboundSchema,
|
|
29
35
|
]);
|
|
30
36
|
/**
|
|
31
37
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destinationupdate.js","sourceRoot":"","sources":["../../../../src/models/components/destinationupdate.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,oCAAoC,EAEpC,qCAAqC,GACtC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,qCAAqC,EAErC,sCAAsC,GACvC,MAAM,8BAA8B,CAAC;AACtC,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":"destinationupdate.js","sourceRoot":"","sources":["../../../../src/models/components/destinationupdate.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,oCAAoC,EAEpC,qCAAqC,GACtC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,qCAAqC,EAErC,sCAAsC,GACvC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,8CAA8C,EAE9C,+CAA+C,GAChD,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAEL,wCAAwC,EAExC,yCAAyC,GAC1C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,uCAAuC,EAEvC,wCAAwC,GACz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eParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { AzureServiceBusConfig, AzureServiceBusConfig$Outbound } from "./azureservicebusconfig.js";
|
|
5
|
+
import { AzureServiceBusCredentials, AzureServiceBusCredentials$Outbound } from "./azureservicebuscredentials.js";
|
|
6
|
+
import { Topics, Topics$Outbound } from "./topics.js";
|
|
7
|
+
export type DestinationUpdateAzureServiceBus = {
|
|
8
|
+
/**
|
|
9
|
+
* "*" or an array of enabled topics.
|
|
10
|
+
*/
|
|
11
|
+
topics?: Topics | undefined;
|
|
12
|
+
config?: AzureServiceBusConfig | undefined;
|
|
13
|
+
credentials?: AzureServiceBusCredentials | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const DestinationUpdateAzureServiceBus$inboundSchema: z.ZodType<DestinationUpdateAzureServiceBus, z.ZodTypeDef, unknown>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type DestinationUpdateAzureServiceBus$Outbound = {
|
|
19
|
+
topics?: Topics$Outbound | undefined;
|
|
20
|
+
config?: AzureServiceBusConfig$Outbound | undefined;
|
|
21
|
+
credentials?: AzureServiceBusCredentials$Outbound | undefined;
|
|
22
|
+
};
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const DestinationUpdateAzureServiceBus$outboundSchema: z.ZodType<DestinationUpdateAzureServiceBus$Outbound, z.ZodTypeDef, DestinationUpdateAzureServiceBus>;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
+
*/
|
|
29
|
+
export declare namespace DestinationUpdateAzureServiceBus$ {
|
|
30
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$inboundSchema` instead. */
|
|
31
|
+
const inboundSchema: z.ZodType<DestinationUpdateAzureServiceBus, z.ZodTypeDef, unknown>;
|
|
32
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$outboundSchema` instead. */
|
|
33
|
+
const outboundSchema: z.ZodType<DestinationUpdateAzureServiceBus$Outbound, z.ZodTypeDef, DestinationUpdateAzureServiceBus>;
|
|
34
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$Outbound` instead. */
|
|
35
|
+
type Outbound = DestinationUpdateAzureServiceBus$Outbound;
|
|
36
|
+
}
|
|
37
|
+
export declare function destinationUpdateAzureServiceBusToJSON(destinationUpdateAzureServiceBus: DestinationUpdateAzureServiceBus): string;
|
|
38
|
+
export declare function destinationUpdateAzureServiceBusFromJSON(jsonString: string): SafeParseResult<DestinationUpdateAzureServiceBus, SDKValidationError>;
|
|
39
|
+
//# sourceMappingURL=destinationupdateazureservicebus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinationupdateazureservicebus.d.ts","sourceRoot":"","sources":["../../../../src/models/components/destinationupdateazureservicebus.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,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC3C,WAAW,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,yCAAyC,GAAG;IACtD,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IACpD,WAAW,CAAC,EAAE,mCAAmC,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAKhC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iCAAiC,CAAC;IACjD,gFAAgF;IACzE,MAAM,aAAa,oEAAiD,CAAC;IAC5E,iFAAiF;IAC1E,MAAM,cAAc,sGAAkD,CAAC;IAC9E,2EAA2E;IAC3E,KAAY,QAAQ,GAAG,yCAAyC,CAAC;CAClE;AAED,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR;AAED,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { AzureServiceBusConfig$inboundSchema, AzureServiceBusConfig$outboundSchema, } from "./azureservicebusconfig.js";
|
|
7
|
+
import { AzureServiceBusCredentials$inboundSchema, AzureServiceBusCredentials$outboundSchema, } from "./azureservicebuscredentials.js";
|
|
8
|
+
import { Topics$inboundSchema, Topics$outboundSchema, } from "./topics.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const DestinationUpdateAzureServiceBus$inboundSchema = z.object({
|
|
11
|
+
topics: Topics$inboundSchema.optional(),
|
|
12
|
+
config: AzureServiceBusConfig$inboundSchema.optional(),
|
|
13
|
+
credentials: AzureServiceBusCredentials$inboundSchema.optional(),
|
|
14
|
+
});
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const DestinationUpdateAzureServiceBus$outboundSchema = z.object({
|
|
17
|
+
topics: Topics$outboundSchema.optional(),
|
|
18
|
+
config: AzureServiceBusConfig$outboundSchema.optional(),
|
|
19
|
+
credentials: AzureServiceBusCredentials$outboundSchema.optional(),
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
+
*/
|
|
25
|
+
export var DestinationUpdateAzureServiceBus$;
|
|
26
|
+
(function (DestinationUpdateAzureServiceBus$) {
|
|
27
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$inboundSchema` instead. */
|
|
28
|
+
DestinationUpdateAzureServiceBus$.inboundSchema = DestinationUpdateAzureServiceBus$inboundSchema;
|
|
29
|
+
/** @deprecated use `DestinationUpdateAzureServiceBus$outboundSchema` instead. */
|
|
30
|
+
DestinationUpdateAzureServiceBus$.outboundSchema = DestinationUpdateAzureServiceBus$outboundSchema;
|
|
31
|
+
})(DestinationUpdateAzureServiceBus$ || (DestinationUpdateAzureServiceBus$ = {}));
|
|
32
|
+
export function destinationUpdateAzureServiceBusToJSON(destinationUpdateAzureServiceBus) {
|
|
33
|
+
return JSON.stringify(DestinationUpdateAzureServiceBus$outboundSchema.parse(destinationUpdateAzureServiceBus));
|
|
34
|
+
}
|
|
35
|
+
export function destinationUpdateAzureServiceBusFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => DestinationUpdateAzureServiceBus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestinationUpdateAzureServiceBus' from JSON`);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=destinationupdateazureservicebus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinationupdateazureservicebus.js","sourceRoot":"","sources":["../../../../src/models/components/destinationupdateazureservicebus.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,wCAAwC,EAExC,yCAAyC,GAC1C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAWrB,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,mCAAmC,CAAC,QAAQ,EAAE;IACtD,WAAW,EAAE,wCAAwC,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,oCAAoC,CAAC,QAAQ,EAAE;IACvD,WAAW,EAAE,yCAAyC,CAAC,QAAQ,EAAE;CAClE,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,iCAAiC,CAOjD;AAPD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,8CAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,+CAA+C,CAAC;AAGhF,CAAC,EAPgB,iCAAiC,KAAjC,iCAAiC,QAOjD;AAED,MAAM,UAAU,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,+CAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { GCPPubSubConfig, GCPPubSubConfig$Outbound } from "./gcppubsubconfig.js";
|
|
5
|
+
import { GCPPubSubCredentials, GCPPubSubCredentials$Outbound } from "./gcppubsubcredentials.js";
|
|
6
|
+
import { Topics, Topics$Outbound } from "./topics.js";
|
|
7
|
+
export type DestinationUpdateGCPPubSub = {
|
|
8
|
+
/**
|
|
9
|
+
* "*" or an array of enabled topics.
|
|
10
|
+
*/
|
|
11
|
+
topics?: Topics | undefined;
|
|
12
|
+
config?: GCPPubSubConfig | undefined;
|
|
13
|
+
credentials?: GCPPubSubCredentials | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const DestinationUpdateGCPPubSub$inboundSchema: z.ZodType<DestinationUpdateGCPPubSub, z.ZodTypeDef, unknown>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type DestinationUpdateGCPPubSub$Outbound = {
|
|
19
|
+
topics?: Topics$Outbound | undefined;
|
|
20
|
+
config?: GCPPubSubConfig$Outbound | undefined;
|
|
21
|
+
credentials?: GCPPubSubCredentials$Outbound | undefined;
|
|
22
|
+
};
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const DestinationUpdateGCPPubSub$outboundSchema: z.ZodType<DestinationUpdateGCPPubSub$Outbound, z.ZodTypeDef, DestinationUpdateGCPPubSub>;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
+
*/
|
|
29
|
+
export declare namespace DestinationUpdateGCPPubSub$ {
|
|
30
|
+
/** @deprecated use `DestinationUpdateGCPPubSub$inboundSchema` instead. */
|
|
31
|
+
const inboundSchema: z.ZodType<DestinationUpdateGCPPubSub, z.ZodTypeDef, unknown>;
|
|
32
|
+
/** @deprecated use `DestinationUpdateGCPPubSub$outboundSchema` instead. */
|
|
33
|
+
const outboundSchema: z.ZodType<DestinationUpdateGCPPubSub$Outbound, z.ZodTypeDef, DestinationUpdateGCPPubSub>;
|
|
34
|
+
/** @deprecated use `DestinationUpdateGCPPubSub$Outbound` instead. */
|
|
35
|
+
type Outbound = DestinationUpdateGCPPubSub$Outbound;
|
|
36
|
+
}
|
|
37
|
+
export declare function destinationUpdateGCPPubSubToJSON(destinationUpdateGCPPubSub: DestinationUpdateGCPPubSub): string;
|
|
38
|
+
export declare function destinationUpdateGCPPubSubFromJSON(jsonString: string): SafeParseResult<DestinationUpdateGCPPubSub, SDKValidationError>;
|
|
39
|
+
//# sourceMappingURL=destinationupdategcppubsub.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinationupdategcppubsub.d.ts","sourceRoot":"","sources":["../../../../src/models/components/destinationupdategcppubsub.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,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC9C,WAAW,CAAC,EAAE,6BAA6B,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAK1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { GCPPubSubConfig$inboundSchema, GCPPubSubConfig$outboundSchema, } from "./gcppubsubconfig.js";
|
|
7
|
+
import { GCPPubSubCredentials$inboundSchema, GCPPubSubCredentials$outboundSchema, } from "./gcppubsubcredentials.js";
|
|
8
|
+
import { Topics$inboundSchema, Topics$outboundSchema, } from "./topics.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const DestinationUpdateGCPPubSub$inboundSchema = z.object({
|
|
11
|
+
topics: Topics$inboundSchema.optional(),
|
|
12
|
+
config: GCPPubSubConfig$inboundSchema.optional(),
|
|
13
|
+
credentials: GCPPubSubCredentials$inboundSchema.optional(),
|
|
14
|
+
});
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const DestinationUpdateGCPPubSub$outboundSchema = z.object({
|
|
17
|
+
topics: Topics$outboundSchema.optional(),
|
|
18
|
+
config: GCPPubSubConfig$outboundSchema.optional(),
|
|
19
|
+
credentials: GCPPubSubCredentials$outboundSchema.optional(),
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
+
*/
|
|
25
|
+
export var DestinationUpdateGCPPubSub$;
|
|
26
|
+
(function (DestinationUpdateGCPPubSub$) {
|
|
27
|
+
/** @deprecated use `DestinationUpdateGCPPubSub$inboundSchema` instead. */
|
|
28
|
+
DestinationUpdateGCPPubSub$.inboundSchema = DestinationUpdateGCPPubSub$inboundSchema;
|
|
29
|
+
/** @deprecated use `DestinationUpdateGCPPubSub$outboundSchema` instead. */
|
|
30
|
+
DestinationUpdateGCPPubSub$.outboundSchema = DestinationUpdateGCPPubSub$outboundSchema;
|
|
31
|
+
})(DestinationUpdateGCPPubSub$ || (DestinationUpdateGCPPubSub$ = {}));
|
|
32
|
+
export function destinationUpdateGCPPubSubToJSON(destinationUpdateGCPPubSub) {
|
|
33
|
+
return JSON.stringify(DestinationUpdateGCPPubSub$outboundSchema.parse(destinationUpdateGCPPubSub));
|
|
34
|
+
}
|
|
35
|
+
export function destinationUpdateGCPPubSubFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => DestinationUpdateGCPPubSub$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestinationUpdateGCPPubSub' from JSON`);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=destinationupdategcppubsub.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinationupdategcppubsub.js","sourceRoot":"","sources":["../../../../src/models/components/destinationupdategcppubsub.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,6BAA6B,EAE7B,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,kCAAkC,EAElC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAWrB,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,6BAA6B,CAAC,QAAQ,EAAE;IAChD,WAAW,EAAE,kCAAkC,CAAC,QAAQ,EAAE;CAC3D,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,8BAA8B,CAAC,QAAQ,EAAE;IACjD,WAAW,EAAE,mCAAmC,CAAC,QAAQ,EAAE;CAC5D,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,wCAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,yCAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,KAA3B,2BAA2B,QAO3C;AAED,MAAM,UAAU,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const EventStatus: {
|
|
6
|
+
readonly Success: "success";
|
|
7
|
+
readonly Failed: "failed";
|
|
8
|
+
};
|
|
9
|
+
export type EventStatus = ClosedEnum<typeof EventStatus>;
|
|
4
10
|
export type Event = {
|
|
5
11
|
id?: string | undefined;
|
|
6
12
|
destinationId?: string | undefined;
|
|
@@ -18,7 +24,8 @@ export type Event = {
|
|
|
18
24
|
*/
|
|
19
25
|
metadata?: {
|
|
20
26
|
[k: string]: string;
|
|
21
|
-
} | undefined;
|
|
27
|
+
} | null | undefined;
|
|
28
|
+
status?: EventStatus | undefined;
|
|
22
29
|
/**
|
|
23
30
|
* Freeform JSON data of the event.
|
|
24
31
|
*/
|
|
@@ -27,6 +34,26 @@ export type Event = {
|
|
|
27
34
|
} | undefined;
|
|
28
35
|
};
|
|
29
36
|
/** @internal */
|
|
37
|
+
export declare const EventStatus$inboundSchema: z.ZodNativeEnum<typeof EventStatus>;
|
|
38
|
+
/** @internal */
|
|
39
|
+
export declare const EventStatus$outboundSchema: z.ZodNativeEnum<typeof EventStatus>;
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export declare namespace EventStatus$ {
|
|
45
|
+
/** @deprecated use `EventStatus$inboundSchema` instead. */
|
|
46
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
47
|
+
readonly Success: "success";
|
|
48
|
+
readonly Failed: "failed";
|
|
49
|
+
}>;
|
|
50
|
+
/** @deprecated use `EventStatus$outboundSchema` instead. */
|
|
51
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
52
|
+
readonly Success: "success";
|
|
53
|
+
readonly Failed: "failed";
|
|
54
|
+
}>;
|
|
55
|
+
}
|
|
56
|
+
/** @internal */
|
|
30
57
|
export declare const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown>;
|
|
31
58
|
/** @internal */
|
|
32
59
|
export type Event$Outbound = {
|
|
@@ -37,7 +64,8 @@ export type Event$Outbound = {
|
|
|
37
64
|
successful_at?: string | null | undefined;
|
|
38
65
|
metadata?: {
|
|
39
66
|
[k: string]: string;
|
|
40
|
-
} | undefined;
|
|
67
|
+
} | null | undefined;
|
|
68
|
+
status?: string | undefined;
|
|
41
69
|
data?: {
|
|
42
70
|
[k: string]: any;
|
|
43
71
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../../src/models/components/event.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS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AAC,UAAU,EACZ,KAAK,CAeL,CAAC;AAEH;;;GAGG;AACH,yBAAiB,MAAM,CAAC;IACtB,qDAAqD;IAC9C,MAAM,aAAa,yCAAsB,CAAC;IACjD,sDAAsD;IAC/C,MAAM,cAAc,gDAAuB,CAAC;IACnD,gDAAgD;IAChD,KAAY,QAAQ,GAAG,cAAc,CAAC;CACvC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEhD;AAED,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAM5C"}
|
|
@@ -4,6 +4,26 @@
|
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
export const EventStatus = {
|
|
8
|
+
Success: "success",
|
|
9
|
+
Failed: "failed",
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const EventStatus$inboundSchema = z
|
|
13
|
+
.nativeEnum(EventStatus);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const EventStatus$outboundSchema = EventStatus$inboundSchema;
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
19
|
+
*/
|
|
20
|
+
export var EventStatus$;
|
|
21
|
+
(function (EventStatus$) {
|
|
22
|
+
/** @deprecated use `EventStatus$inboundSchema` instead. */
|
|
23
|
+
EventStatus$.inboundSchema = EventStatus$inboundSchema;
|
|
24
|
+
/** @deprecated use `EventStatus$outboundSchema` instead. */
|
|
25
|
+
EventStatus$.outboundSchema = EventStatus$outboundSchema;
|
|
26
|
+
})(EventStatus$ || (EventStatus$ = {}));
|
|
7
27
|
/** @internal */
|
|
8
28
|
export const Event$inboundSchema = z
|
|
9
29
|
.object({
|
|
@@ -13,7 +33,8 @@ export const Event$inboundSchema = z
|
|
|
13
33
|
time: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
14
34
|
.optional(),
|
|
15
35
|
successful_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
|
|
16
|
-
metadata: z.record(z.string()).optional(),
|
|
36
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
37
|
+
status: EventStatus$inboundSchema.optional(),
|
|
17
38
|
data: z.record(z.any()).optional(),
|
|
18
39
|
}).transform((v) => {
|
|
19
40
|
return remap$(v, {
|
|
@@ -28,7 +49,8 @@ export const Event$outboundSchema = z.object({
|
|
|
28
49
|
topic: z.string().optional(),
|
|
29
50
|
time: z.date().transform(v => v.toISOString()).optional(),
|
|
30
51
|
successfulAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
31
|
-
metadata: z.record(z.string()).optional(),
|
|
52
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
53
|
+
status: EventStatus$outboundSchema.optional(),
|
|
32
54
|
data: z.record(z.any()).optional(),
|
|
33
55
|
}).transform((v) => {
|
|
34
56
|
return remap$(v, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../../src/models/components/event.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;
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../../src/models/components/event.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;AAKjD,MAAM,CAAC,MAAM,WAAW,GAAG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,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;QAC/B,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,MAAM,CAOtB;AAPD,WAAiB,MAAM;IACrB,qDAAqD;IACxC,oBAAa,GAAG,mBAAmB,CAAC;IACjD,sDAAsD;IACzC,qBAAc,GAAG,oBAAoB,CAAC;AAGrD,CAAC,EAPgB,MAAM,KAAN,MAAM,QAOtB;AAED,MAAM,UAAU,WAAW,CAAC,KAAY;IACtC,OAAO,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,aAAa,CAC3B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AACJ,CAAC"}
|
|
@@ -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 GCPPubSubConfig = {
|
|
5
|
+
/**
|
|
6
|
+
* The GCP project ID.
|
|
7
|
+
*/
|
|
8
|
+
projectId: string;
|
|
9
|
+
/**
|
|
10
|
+
* The Pub/Sub topic name.
|
|
11
|
+
*/
|
|
12
|
+
topic: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional. Custom endpoint URL (e.g., localhost:8085 for emulator).
|
|
15
|
+
*/
|
|
16
|
+
endpoint?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const GCPPubSubConfig$inboundSchema: z.ZodType<GCPPubSubConfig, z.ZodTypeDef, unknown>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type GCPPubSubConfig$Outbound = {
|
|
22
|
+
project_id: string;
|
|
23
|
+
topic: string;
|
|
24
|
+
endpoint?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const GCPPubSubConfig$outboundSchema: z.ZodType<GCPPubSubConfig$Outbound, z.ZodTypeDef, GCPPubSubConfig>;
|
|
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 GCPPubSubConfig$ {
|
|
33
|
+
/** @deprecated use `GCPPubSubConfig$inboundSchema` instead. */
|
|
34
|
+
const inboundSchema: z.ZodType<GCPPubSubConfig, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @deprecated use `GCPPubSubConfig$outboundSchema` instead. */
|
|
36
|
+
const outboundSchema: z.ZodType<GCPPubSubConfig$Outbound, z.ZodTypeDef, GCPPubSubConfig>;
|
|
37
|
+
/** @deprecated use `GCPPubSubConfig$Outbound` instead. */
|
|
38
|
+
type Outbound = GCPPubSubConfig$Outbound;
|
|
39
|
+
}
|
|
40
|
+
export declare function gcpPubSubConfigToJSON(gcpPubSubConfig: GCPPubSubConfig): string;
|
|
41
|
+
export declare function gcpPubSubConfigFromJSON(jsonString: string): SafeParseResult<GCPPubSubConfig, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=gcppubsubconfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gcppubsubconfig.d.ts","sourceRoot":"","sources":["../../../../src/models/components/gcppubsubconfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CASf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/** @internal */
|
|
8
|
+
export const GCPPubSubConfig$inboundSchema = z.object({
|
|
9
|
+
project_id: z.string(),
|
|
10
|
+
topic: z.string(),
|
|
11
|
+
endpoint: z.string().optional(),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
"project_id": "projectId",
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GCPPubSubConfig$outboundSchema = z.object({
|
|
19
|
+
projectId: z.string(),
|
|
20
|
+
topic: z.string(),
|
|
21
|
+
endpoint: z.string().optional(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
projectId: "project_id",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export var GCPPubSubConfig$;
|
|
32
|
+
(function (GCPPubSubConfig$) {
|
|
33
|
+
/** @deprecated use `GCPPubSubConfig$inboundSchema` instead. */
|
|
34
|
+
GCPPubSubConfig$.inboundSchema = GCPPubSubConfig$inboundSchema;
|
|
35
|
+
/** @deprecated use `GCPPubSubConfig$outboundSchema` instead. */
|
|
36
|
+
GCPPubSubConfig$.outboundSchema = GCPPubSubConfig$outboundSchema;
|
|
37
|
+
})(GCPPubSubConfig$ || (GCPPubSubConfig$ = {}));
|
|
38
|
+
export function gcpPubSubConfigToJSON(gcpPubSubConfig) {
|
|
39
|
+
return JSON.stringify(GCPPubSubConfig$outboundSchema.parse(gcpPubSubConfig));
|
|
40
|
+
}
|
|
41
|
+
export function gcpPubSubConfigFromJSON(jsonString) {
|
|
42
|
+
return safeParse(jsonString, (x) => GCPPubSubConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GCPPubSubConfig' from JSON`);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=gcppubsubconfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gcppubsubconfig.js","sourceRoot":"","sources":["../../../../src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,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 GCPPubSubCredentials = {
|
|
5
|
+
/**
|
|
6
|
+
* Service account key JSON. The entire JSON key file content as a string.
|
|
7
|
+
*/
|
|
8
|
+
serviceAccountJson: string;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const GCPPubSubCredentials$inboundSchema: z.ZodType<GCPPubSubCredentials, z.ZodTypeDef, unknown>;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GCPPubSubCredentials$Outbound = {
|
|
14
|
+
service_account_json: string;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const GCPPubSubCredentials$outboundSchema: z.ZodType<GCPPubSubCredentials$Outbound, z.ZodTypeDef, GCPPubSubCredentials>;
|
|
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 declare namespace GCPPubSubCredentials$ {
|
|
23
|
+
/** @deprecated use `GCPPubSubCredentials$inboundSchema` instead. */
|
|
24
|
+
const inboundSchema: z.ZodType<GCPPubSubCredentials, z.ZodTypeDef, unknown>;
|
|
25
|
+
/** @deprecated use `GCPPubSubCredentials$outboundSchema` instead. */
|
|
26
|
+
const outboundSchema: z.ZodType<GCPPubSubCredentials$Outbound, z.ZodTypeDef, GCPPubSubCredentials>;
|
|
27
|
+
/** @deprecated use `GCPPubSubCredentials$Outbound` instead. */
|
|
28
|
+
type Outbound = GCPPubSubCredentials$Outbound;
|
|
29
|
+
}
|
|
30
|
+
export declare function gcpPubSubCredentialsToJSON(gcpPubSubCredentials: GCPPubSubCredentials): string;
|
|
31
|
+
export declare function gcpPubSubCredentialsFromJSON(jsonString: string): SafeParseResult<GCPPubSubCredentials, SDKValidationError>;
|
|
32
|
+
//# sourceMappingURL=gcppubsubcredentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gcppubsubcredentials.d.ts","sourceRoot":"","sources":["../../../../src/models/components/gcppubsubcredentials.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAOpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|