@novu/api 0.0.1-alpha.126 → 0.0.1-alpha.128
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/docs/sdks/subscribers/README.md +8 -2
- package/funcs/subscribersCreateBulk.d.ts +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +2 -3
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/bulkcreatesubscriberresponsedto.d.ts +45 -0
- package/models/components/bulkcreatesubscriberresponsedto.d.ts.map +1 -0
- package/models/components/bulkcreatesubscriberresponsedto.js +66 -0
- package/models/components/bulkcreatesubscriberresponsedto.js.map +1 -0
- package/models/components/bulksubscribercreatedto.d.ts +3 -2
- package/models/components/bulksubscribercreatedto.d.ts.map +1 -1
- package/models/components/bulksubscribercreatedto.js +3 -2
- package/models/components/bulksubscribercreatedto.js.map +1 -1
- package/models/components/createdsubscriberdto.d.ts +32 -0
- package/models/components/createdsubscriberdto.d.ts.map +1 -0
- package/models/components/createdsubscriberdto.js +59 -0
- package/models/components/createdsubscriberdto.js.map +1 -0
- package/models/components/failedoperationdto.d.ts +37 -0
- package/models/components/failedoperationdto.d.ts.map +1 -0
- package/models/components/failedoperationdto.js +61 -0
- package/models/components/failedoperationdto.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/updatedsubscriberdto.d.ts +32 -0
- package/models/components/updatedsubscriberdto.d.ts.map +1 -0
- package/models/components/updatedsubscriberdto.js +59 -0
- package/models/components/updatedsubscriberdto.js.map +1 -0
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +3 -0
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +5 -0
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +1 -1
- package/package.json +1 -1
- package/sdk/subscribers.d.ts +1 -1
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js.map +1 -1
- package/src/funcs/subscribersCreateBulk.ts +6 -6
- package/src/lib/config.ts +2 -2
- package/src/models/components/bulkcreatesubscriberresponsedto.ts +103 -0
- package/src/models/components/bulksubscribercreatedto.ts +10 -4
- package/src/models/components/createdsubscriberdto.ts +69 -0
- package/src/models/components/failedoperationdto.ts +76 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/updatedsubscriberdto.ts +69 -0
- package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +7 -0
- package/src/sdk/subscribers.ts +1 -3
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.updatedSubscriberDtoFromJSON = exports.updatedSubscriberDtoToJSON = exports.UpdatedSubscriberDto$ = exports.UpdatedSubscriberDto$outboundSchema = exports.UpdatedSubscriberDto$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
/** @internal */
|
|
33
|
+
exports.UpdatedSubscriberDto$inboundSchema = z.object({
|
|
34
|
+
subscriberId: z.string(),
|
|
35
|
+
});
|
|
36
|
+
/** @internal */
|
|
37
|
+
exports.UpdatedSubscriberDto$outboundSchema = z.object({
|
|
38
|
+
subscriberId: z.string(),
|
|
39
|
+
});
|
|
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
|
+
var UpdatedSubscriberDto$;
|
|
45
|
+
(function (UpdatedSubscriberDto$) {
|
|
46
|
+
/** @deprecated use `UpdatedSubscriberDto$inboundSchema` instead. */
|
|
47
|
+
UpdatedSubscriberDto$.inboundSchema = exports.UpdatedSubscriberDto$inboundSchema;
|
|
48
|
+
/** @deprecated use `UpdatedSubscriberDto$outboundSchema` instead. */
|
|
49
|
+
UpdatedSubscriberDto$.outboundSchema = exports.UpdatedSubscriberDto$outboundSchema;
|
|
50
|
+
})(UpdatedSubscriberDto$ || (exports.UpdatedSubscriberDto$ = UpdatedSubscriberDto$ = {}));
|
|
51
|
+
function updatedSubscriberDtoToJSON(updatedSubscriberDto) {
|
|
52
|
+
return JSON.stringify(exports.UpdatedSubscriberDto$outboundSchema.parse(updatedSubscriberDto));
|
|
53
|
+
}
|
|
54
|
+
exports.updatedSubscriberDtoToJSON = updatedSubscriberDtoToJSON;
|
|
55
|
+
function updatedSubscriberDtoFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatedSubscriberDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatedSubscriberDto' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
exports.updatedSubscriberDtoFromJSON = updatedSubscriberDtoFromJSON;
|
|
59
|
+
//# sourceMappingURL=updatedsubscriberdto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatedsubscriberdto.js","sourceRoot":"","sources":["../../src/models/components/updatedsubscriberdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAND,gEAMC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC;AARD,oEAQC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import * as components from "../components/index.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
export type SubscribersControllerBulkCreateSubscribersResponse = {
|
|
5
6
|
headers: {
|
|
6
7
|
[k: string]: Array<string>;
|
|
7
8
|
};
|
|
9
|
+
result: components.BulkCreateSubscriberResponseDto;
|
|
8
10
|
};
|
|
9
11
|
/** @internal */
|
|
10
12
|
export declare const SubscribersControllerBulkCreateSubscribersResponse$inboundSchema: z.ZodType<SubscribersControllerBulkCreateSubscribersResponse, z.ZodTypeDef, unknown>;
|
|
@@ -13,6 +15,7 @@ export type SubscribersControllerBulkCreateSubscribersResponse$Outbound = {
|
|
|
13
15
|
Headers: {
|
|
14
16
|
[k: string]: Array<string>;
|
|
15
17
|
};
|
|
18
|
+
Result: components.BulkCreateSubscriberResponseDto$Outbound;
|
|
16
19
|
};
|
|
17
20
|
/** @internal */
|
|
18
21
|
export declare const SubscribersControllerBulkCreateSubscribersResponse$outboundSchema: z.ZodType<SubscribersControllerBulkCreateSubscribersResponse$Outbound, z.ZodTypeDef, SubscribersControllerBulkCreateSubscribersResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriberscontrollerbulkcreatesubscribers.d.ts","sourceRoot":"","sources":["../../src/models/operations/subscriberscontrollerbulkcreatesubscribers.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,kDAAkD,GAAG;IAC/D,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"subscriberscontrollerbulkcreatesubscribers.d.ts","sourceRoot":"","sources":["../../src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,kDAAkD,GAAG;IAC/D,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,+BAA+B,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gEAAgE,EAC3E,CAAC,CAAC,OAAO,CACP,kDAAkD,EAClD,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,2DAA2D,GAAG;IACxE,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,wCAAwC,CAAC;CAC7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iEAAiE,EAC5E,CAAC,CAAC,OAAO,CACP,2DAA2D,EAC3D,CAAC,CAAC,UAAU,EACZ,kDAAkD,CASlD,CAAC;AAEL;;;GAGG;AACH,yBAAiB,mDAAmD,CAAC;IACnE,kGAAkG;IAC3F,MAAM,aAAa,sFACwC,CAAC;IACnE,mGAAmG;IAC5F,MAAM,cAAc,0IACwC,CAAC;IACpE,6FAA6F;IAC7F,KAAY,QAAQ,GAClB,2DAA2D,CAAC;CAC/D;AAED,wBAAgB,wDAAwD,CACtE,kDAAkD,EAChD,kDAAkD,GACnD,MAAM,CAMR;AAED,wBAAgB,0DAA0D,CACxE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,kDAAkD,EAClD,kBAAkB,CACnB,CASA"}
|
|
@@ -30,20 +30,25 @@ exports.subscribersControllerBulkCreateSubscribersResponseFromJSON = exports.sub
|
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
33
|
+
const components = __importStar(require("../components/index.js"));
|
|
33
34
|
/** @internal */
|
|
34
35
|
exports.SubscribersControllerBulkCreateSubscribersResponse$inboundSchema = z.object({
|
|
35
36
|
Headers: z.record(z.array(z.string())),
|
|
37
|
+
Result: components.BulkCreateSubscriberResponseDto$inboundSchema,
|
|
36
38
|
}).transform((v) => {
|
|
37
39
|
return (0, primitives_js_1.remap)(v, {
|
|
38
40
|
"Headers": "headers",
|
|
41
|
+
"Result": "result",
|
|
39
42
|
});
|
|
40
43
|
});
|
|
41
44
|
/** @internal */
|
|
42
45
|
exports.SubscribersControllerBulkCreateSubscribersResponse$outboundSchema = z.object({
|
|
43
46
|
headers: z.record(z.array(z.string())),
|
|
47
|
+
result: components.BulkCreateSubscriberResponseDto$outboundSchema,
|
|
44
48
|
}).transform((v) => {
|
|
45
49
|
return (0, primitives_js_1.remap)(v, {
|
|
46
50
|
headers: "Headers",
|
|
51
|
+
result: "Result",
|
|
47
52
|
});
|
|
48
53
|
});
|
|
49
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriberscontrollerbulkcreatesubscribers.js","sourceRoot":"","sources":["../../src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;
|
|
1
|
+
{"version":3,"file":"subscriberscontrollerbulkcreatesubscribers.js","sourceRoot":"","sources":["../../src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAQrD,gBAAgB;AACH,QAAA,gEAAgE,GAKvE,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,UAAU,CAAC,6CAA6C;CACjE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,iEAAiE,GAKxE,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,UAAU,CAAC,8CAA8C;CAClE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL;;;GAGG;AACH,IAAiB,mDAAmD,CAUnE;AAVD,WAAiB,mDAAmD;IAClE,kGAAkG;IACrF,iEAAa,GACxB,wEAAgE,CAAC;IACnE,mGAAmG;IACtF,kEAAc,GACzB,yEAAiE,CAAC;AAItE,CAAC,EAVgB,mDAAmD,mEAAnD,mDAAmD,QAUnE;AAED,SAAgB,wDAAwD,CACtE,kDACoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,yEAAiE,CAAC,KAAK,CACrE,kDAAkD,CACnD,CACF,CAAC;AACJ,CAAC;AATD,4HASC;AAED,SAAgB,0DAA0D,CACxE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,wEAAgE,CAAC,KAAK,CACpE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,gFAAgF,CACjF,CAAC;AACJ,CAAC;AAdD,gIAcC"}
|
package/package.json
CHANGED
package/sdk/subscribers.d.ts
CHANGED
|
@@ -66,6 +66,6 @@ export declare class Subscribers extends ClientSDK {
|
|
|
66
66
|
* Using this endpoint you can create multiple subscribers at once, to avoid multiple calls to the API.
|
|
67
67
|
* The bulk API is limited to 500 subscribers per request.
|
|
68
68
|
*/
|
|
69
|
-
createBulk(request: components.BulkSubscriberCreateDto, options?: RequestOptions): Promise<operations.SubscribersControllerBulkCreateSubscribersResponse
|
|
69
|
+
createBulk(request: components.BulkSubscriberCreateDto, options?: RequestOptions): Promise<operations.SubscribersControllerBulkCreateSubscribersResponse>;
|
|
70
70
|
}
|
|
71
71
|
//# sourceMappingURL=subscribers.d.ts.map
|
package/sdk/subscribers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribers.d.ts","sourceRoot":"","sources":["../src/sdk/subscribers.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,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CreateBulk(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): Promise<
|
|
39
39
|
Result<
|
|
40
|
-
operations.SubscribersControllerBulkCreateSubscribersResponse
|
|
40
|
+
operations.SubscribersControllerBulkCreateSubscribersResponse,
|
|
41
41
|
| errors.ErrorDto
|
|
42
42
|
| errors.ValidationErrorDto
|
|
43
43
|
| SDKError
|
|
@@ -124,7 +124,7 @@ export async function subscribersCreateBulk(
|
|
|
124
124
|
};
|
|
125
125
|
|
|
126
126
|
const [result] = await M.match<
|
|
127
|
-
operations.SubscribersControllerBulkCreateSubscribersResponse
|
|
127
|
+
operations.SubscribersControllerBulkCreateSubscribersResponse,
|
|
128
128
|
| errors.ErrorDto
|
|
129
129
|
| errors.ValidationErrorDto
|
|
130
130
|
| SDKError
|
|
@@ -135,11 +135,11 @@ export async function subscribersCreateBulk(
|
|
|
135
135
|
| RequestTimeoutError
|
|
136
136
|
| ConnectionError
|
|
137
137
|
>(
|
|
138
|
-
M.
|
|
139
|
-
|
|
138
|
+
M.json(
|
|
139
|
+
200,
|
|
140
140
|
operations
|
|
141
|
-
.SubscribersControllerBulkCreateSubscribersResponse$inboundSchema
|
|
142
|
-
|
|
141
|
+
.SubscribersControllerBulkCreateSubscribersResponse$inboundSchema,
|
|
142
|
+
{ hdrs: true, key: "Result" },
|
|
143
143
|
),
|
|
144
144
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
145
145
|
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
package/src/lib/config.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0",
|
|
58
|
-
sdkVersion: "0.0.1-alpha.
|
|
58
|
+
sdkVersion: "0.0.1-alpha.128",
|
|
59
59
|
genVersion: "2.481.0",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.128 2.481.0 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
CreatedSubscriberDto,
|
|
11
|
+
CreatedSubscriberDto$inboundSchema,
|
|
12
|
+
CreatedSubscriberDto$Outbound,
|
|
13
|
+
CreatedSubscriberDto$outboundSchema,
|
|
14
|
+
} from "./createdsubscriberdto.js";
|
|
15
|
+
import {
|
|
16
|
+
FailedOperationDto,
|
|
17
|
+
FailedOperationDto$inboundSchema,
|
|
18
|
+
FailedOperationDto$Outbound,
|
|
19
|
+
FailedOperationDto$outboundSchema,
|
|
20
|
+
} from "./failedoperationdto.js";
|
|
21
|
+
import {
|
|
22
|
+
UpdatedSubscriberDto,
|
|
23
|
+
UpdatedSubscriberDto$inboundSchema,
|
|
24
|
+
UpdatedSubscriberDto$Outbound,
|
|
25
|
+
UpdatedSubscriberDto$outboundSchema,
|
|
26
|
+
} from "./updatedsubscriberdto.js";
|
|
27
|
+
|
|
28
|
+
export type BulkCreateSubscriberResponseDto = {
|
|
29
|
+
/**
|
|
30
|
+
* An array of subscribers that were successfully updated.
|
|
31
|
+
*/
|
|
32
|
+
updated: Array<UpdatedSubscriberDto>;
|
|
33
|
+
/**
|
|
34
|
+
* An array of subscribers that were successfully created.
|
|
35
|
+
*/
|
|
36
|
+
created: Array<CreatedSubscriberDto>;
|
|
37
|
+
/**
|
|
38
|
+
* An array of failed operations with error messages and optional subscriber IDs.
|
|
39
|
+
*/
|
|
40
|
+
failed: Array<FailedOperationDto>;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const BulkCreateSubscriberResponseDto$inboundSchema: z.ZodType<
|
|
45
|
+
BulkCreateSubscriberResponseDto,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({
|
|
49
|
+
updated: z.array(UpdatedSubscriberDto$inboundSchema),
|
|
50
|
+
created: z.array(CreatedSubscriberDto$inboundSchema),
|
|
51
|
+
failed: z.array(FailedOperationDto$inboundSchema),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type BulkCreateSubscriberResponseDto$Outbound = {
|
|
56
|
+
updated: Array<UpdatedSubscriberDto$Outbound>;
|
|
57
|
+
created: Array<CreatedSubscriberDto$Outbound>;
|
|
58
|
+
failed: Array<FailedOperationDto$Outbound>;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const BulkCreateSubscriberResponseDto$outboundSchema: z.ZodType<
|
|
63
|
+
BulkCreateSubscriberResponseDto$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
BulkCreateSubscriberResponseDto
|
|
66
|
+
> = z.object({
|
|
67
|
+
updated: z.array(UpdatedSubscriberDto$outboundSchema),
|
|
68
|
+
created: z.array(CreatedSubscriberDto$outboundSchema),
|
|
69
|
+
failed: z.array(FailedOperationDto$outboundSchema),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace BulkCreateSubscriberResponseDto$ {
|
|
77
|
+
/** @deprecated use `BulkCreateSubscriberResponseDto$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = BulkCreateSubscriberResponseDto$inboundSchema;
|
|
79
|
+
/** @deprecated use `BulkCreateSubscriberResponseDto$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = BulkCreateSubscriberResponseDto$outboundSchema;
|
|
81
|
+
/** @deprecated use `BulkCreateSubscriberResponseDto$Outbound` instead. */
|
|
82
|
+
export type Outbound = BulkCreateSubscriberResponseDto$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function bulkCreateSubscriberResponseDtoToJSON(
|
|
86
|
+
bulkCreateSubscriberResponseDto: BulkCreateSubscriberResponseDto,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
BulkCreateSubscriberResponseDto$outboundSchema.parse(
|
|
90
|
+
bulkCreateSubscriberResponseDto,
|
|
91
|
+
),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function bulkCreateSubscriberResponseDtoFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<BulkCreateSubscriberResponseDto, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => BulkCreateSubscriberResponseDto$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'BulkCreateSubscriberResponseDto' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
@@ -6,12 +6,18 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
CreateSubscriberRequestDto,
|
|
11
|
+
CreateSubscriberRequestDto$inboundSchema,
|
|
12
|
+
CreateSubscriberRequestDto$Outbound,
|
|
13
|
+
CreateSubscriberRequestDto$outboundSchema,
|
|
14
|
+
} from "./createsubscriberrequestdto.js";
|
|
9
15
|
|
|
10
16
|
export type BulkSubscriberCreateDto = {
|
|
11
17
|
/**
|
|
12
18
|
* An array of subscribers to be created in bulk.
|
|
13
19
|
*/
|
|
14
|
-
subscribers: Array<
|
|
20
|
+
subscribers: Array<CreateSubscriberRequestDto>;
|
|
15
21
|
};
|
|
16
22
|
|
|
17
23
|
/** @internal */
|
|
@@ -20,12 +26,12 @@ export const BulkSubscriberCreateDto$inboundSchema: z.ZodType<
|
|
|
20
26
|
z.ZodTypeDef,
|
|
21
27
|
unknown
|
|
22
28
|
> = z.object({
|
|
23
|
-
subscribers: z.array(
|
|
29
|
+
subscribers: z.array(CreateSubscriberRequestDto$inboundSchema),
|
|
24
30
|
});
|
|
25
31
|
|
|
26
32
|
/** @internal */
|
|
27
33
|
export type BulkSubscriberCreateDto$Outbound = {
|
|
28
|
-
subscribers: Array<
|
|
34
|
+
subscribers: Array<CreateSubscriberRequestDto$Outbound>;
|
|
29
35
|
};
|
|
30
36
|
|
|
31
37
|
/** @internal */
|
|
@@ -34,7 +40,7 @@ export const BulkSubscriberCreateDto$outboundSchema: z.ZodType<
|
|
|
34
40
|
z.ZodTypeDef,
|
|
35
41
|
BulkSubscriberCreateDto
|
|
36
42
|
> = z.object({
|
|
37
|
-
subscribers: z.array(
|
|
43
|
+
subscribers: z.array(CreateSubscriberRequestDto$outboundSchema),
|
|
38
44
|
});
|
|
39
45
|
|
|
40
46
|
/**
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
|
|
10
|
+
export type CreatedSubscriberDto = {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the subscriber that was created.
|
|
13
|
+
*/
|
|
14
|
+
subscriberId: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CreatedSubscriberDto$inboundSchema: z.ZodType<
|
|
19
|
+
CreatedSubscriberDto,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
subscriberId: z.string(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type CreatedSubscriberDto$Outbound = {
|
|
28
|
+
subscriberId: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const CreatedSubscriberDto$outboundSchema: z.ZodType<
|
|
33
|
+
CreatedSubscriberDto$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
CreatedSubscriberDto
|
|
36
|
+
> = z.object({
|
|
37
|
+
subscriberId: z.string(),
|
|
38
|
+
});
|
|
39
|
+
|
|
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 namespace CreatedSubscriberDto$ {
|
|
45
|
+
/** @deprecated use `CreatedSubscriberDto$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = CreatedSubscriberDto$inboundSchema;
|
|
47
|
+
/** @deprecated use `CreatedSubscriberDto$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = CreatedSubscriberDto$outboundSchema;
|
|
49
|
+
/** @deprecated use `CreatedSubscriberDto$Outbound` instead. */
|
|
50
|
+
export type Outbound = CreatedSubscriberDto$Outbound;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function createdSubscriberDtoToJSON(
|
|
54
|
+
createdSubscriberDto: CreatedSubscriberDto,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
CreatedSubscriberDto$outboundSchema.parse(createdSubscriberDto),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function createdSubscriberDtoFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<CreatedSubscriberDto, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => CreatedSubscriberDto$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'CreatedSubscriberDto' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
|
|
10
|
+
export type FailedOperationDto = {
|
|
11
|
+
/**
|
|
12
|
+
* The error message associated with the failed operation.
|
|
13
|
+
*/
|
|
14
|
+
message?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The subscriber ID associated with the failed operation. This field is optional.
|
|
17
|
+
*/
|
|
18
|
+
subscriberId?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const FailedOperationDto$inboundSchema: z.ZodType<
|
|
23
|
+
FailedOperationDto,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
message: z.string().optional(),
|
|
28
|
+
subscriberId: z.string().optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type FailedOperationDto$Outbound = {
|
|
33
|
+
message?: string | undefined;
|
|
34
|
+
subscriberId?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const FailedOperationDto$outboundSchema: z.ZodType<
|
|
39
|
+
FailedOperationDto$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
FailedOperationDto
|
|
42
|
+
> = z.object({
|
|
43
|
+
message: z.string().optional(),
|
|
44
|
+
subscriberId: z.string().optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace FailedOperationDto$ {
|
|
52
|
+
/** @deprecated use `FailedOperationDto$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = FailedOperationDto$inboundSchema;
|
|
54
|
+
/** @deprecated use `FailedOperationDto$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = FailedOperationDto$outboundSchema;
|
|
56
|
+
/** @deprecated use `FailedOperationDto$Outbound` instead. */
|
|
57
|
+
export type Outbound = FailedOperationDto$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function failedOperationDtoToJSON(
|
|
61
|
+
failedOperationDto: FailedOperationDto,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
FailedOperationDto$outboundSchema.parse(failedOperationDto),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function failedOperationDtoFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<FailedOperationDto, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => FailedOperationDto$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'FailedOperationDto' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -15,6 +15,7 @@ export * from "./actorfeeditemdto.js";
|
|
|
15
15
|
export * from "./actortypeenum.js";
|
|
16
16
|
export * from "./addsubscribersrequestdto.js";
|
|
17
17
|
export * from "./assignsubscribertotopicdto.js";
|
|
18
|
+
export * from "./bulkcreatesubscriberresponsedto.js";
|
|
18
19
|
export * from "./bulksubscribercreatedto.js";
|
|
19
20
|
export * from "./bulktriggereventdto.js";
|
|
20
21
|
export * from "./channelcredentials.js";
|
|
@@ -22,6 +23,7 @@ export * from "./channelcredentialsdto.js";
|
|
|
22
23
|
export * from "./channelpreference.js";
|
|
23
24
|
export * from "./channelsettings.js";
|
|
24
25
|
export * from "./channeltypeenum.js";
|
|
26
|
+
export * from "./createdsubscriberdto.js";
|
|
25
27
|
export * from "./createintegrationrequestdto.js";
|
|
26
28
|
export * from "./createsubscriberrequestdto.js";
|
|
27
29
|
export * from "./createtopicrequestdto.js";
|
|
@@ -37,6 +39,7 @@ export * from "./digesttimedmetadata.js";
|
|
|
37
39
|
export * from "./emailblock.js";
|
|
38
40
|
export * from "./emailblockstyles.js";
|
|
39
41
|
export * from "./failedassignmentsdto.js";
|
|
42
|
+
export * from "./failedoperationdto.js";
|
|
40
43
|
export * from "./feedresponsedto.js";
|
|
41
44
|
export * from "./filtertopicsresponsedto.js";
|
|
42
45
|
export * from "./getsubscriberpreferencesresponsedto.js";
|
|
@@ -82,6 +85,7 @@ export * from "./triggereventresponsedto.js";
|
|
|
82
85
|
export * from "./triggereventtoallrequestdto.js";
|
|
83
86
|
export * from "./triggerrecipientstypeenum.js";
|
|
84
87
|
export * from "./unseencountresponse.js";
|
|
88
|
+
export * from "./updatedsubscriberdto.js";
|
|
85
89
|
export * from "./updateintegrationrequestdto.js";
|
|
86
90
|
export * from "./updatesubscriberchannelrequestdto.js";
|
|
87
91
|
export * from "./updatesubscriberglobalpreferencesrequestdto.js";
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
|
|
10
|
+
export type UpdatedSubscriberDto = {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the subscriber that was updated.
|
|
13
|
+
*/
|
|
14
|
+
subscriberId: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const UpdatedSubscriberDto$inboundSchema: z.ZodType<
|
|
19
|
+
UpdatedSubscriberDto,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
subscriberId: z.string(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type UpdatedSubscriberDto$Outbound = {
|
|
28
|
+
subscriberId: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const UpdatedSubscriberDto$outboundSchema: z.ZodType<
|
|
33
|
+
UpdatedSubscriberDto$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
UpdatedSubscriberDto
|
|
36
|
+
> = z.object({
|
|
37
|
+
subscriberId: z.string(),
|
|
38
|
+
});
|
|
39
|
+
|
|
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 namespace UpdatedSubscriberDto$ {
|
|
45
|
+
/** @deprecated use `UpdatedSubscriberDto$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = UpdatedSubscriberDto$inboundSchema;
|
|
47
|
+
/** @deprecated use `UpdatedSubscriberDto$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = UpdatedSubscriberDto$outboundSchema;
|
|
49
|
+
/** @deprecated use `UpdatedSubscriberDto$Outbound` instead. */
|
|
50
|
+
export type Outbound = UpdatedSubscriberDto$Outbound;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function updatedSubscriberDtoToJSON(
|
|
54
|
+
updatedSubscriberDto: UpdatedSubscriberDto,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
UpdatedSubscriberDto$outboundSchema.parse(updatedSubscriberDto),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function updatedSubscriberDtoFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<UpdatedSubscriberDto, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => UpdatedSubscriberDto$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'UpdatedSubscriberDto' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -6,10 +6,12 @@ import * as z from "zod";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
11
12
|
export type SubscribersControllerBulkCreateSubscribersResponse = {
|
|
12
13
|
headers: { [k: string]: Array<string> };
|
|
14
|
+
result: components.BulkCreateSubscriberResponseDto;
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
/** @internal */
|
|
@@ -20,15 +22,18 @@ export const SubscribersControllerBulkCreateSubscribersResponse$inboundSchema:
|
|
|
20
22
|
unknown
|
|
21
23
|
> = z.object({
|
|
22
24
|
Headers: z.record(z.array(z.string())),
|
|
25
|
+
Result: components.BulkCreateSubscriberResponseDto$inboundSchema,
|
|
23
26
|
}).transform((v) => {
|
|
24
27
|
return remap$(v, {
|
|
25
28
|
"Headers": "headers",
|
|
29
|
+
"Result": "result",
|
|
26
30
|
});
|
|
27
31
|
});
|
|
28
32
|
|
|
29
33
|
/** @internal */
|
|
30
34
|
export type SubscribersControllerBulkCreateSubscribersResponse$Outbound = {
|
|
31
35
|
Headers: { [k: string]: Array<string> };
|
|
36
|
+
Result: components.BulkCreateSubscriberResponseDto$Outbound;
|
|
32
37
|
};
|
|
33
38
|
|
|
34
39
|
/** @internal */
|
|
@@ -39,9 +44,11 @@ export const SubscribersControllerBulkCreateSubscribersResponse$outboundSchema:
|
|
|
39
44
|
SubscribersControllerBulkCreateSubscribersResponse
|
|
40
45
|
> = z.object({
|
|
41
46
|
headers: z.record(z.array(z.string())),
|
|
47
|
+
result: components.BulkCreateSubscriberResponseDto$outboundSchema,
|
|
42
48
|
}).transform((v) => {
|
|
43
49
|
return remap$(v, {
|
|
44
50
|
headers: "Headers",
|
|
51
|
+
result: "Result",
|
|
45
52
|
});
|
|
46
53
|
});
|
|
47
54
|
|