@unified-api/typescript-sdk 2.9.9 → 2.9.10
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 +27 -19
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/package.json +1 -1
- package/sdk/models/shared/messagingattachment.d.ts +2 -0
- package/sdk/models/shared/messagingattachment.d.ts.map +1 -1
- package/sdk/models/shared/messagingattachment.js +4 -0
- package/sdk/models/shared/messagingattachment.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/shared/messagingattachment.ts +6 -0
package/README.md
CHANGED
|
@@ -228,19 +228,7 @@ run();
|
|
|
228
228
|
<!-- Start Error Handling [errors] -->
|
|
229
229
|
## Error Handling
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
If a HTTP request fails, an operation my also throw an error from the `sdk/models/errors/httpclienterrors.ts` module:
|
|
234
|
-
|
|
235
|
-
| HTTP Client Error | Description |
|
|
236
|
-
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
237
|
-
| RequestAbortedError | HTTP request was aborted by the client |
|
|
238
|
-
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
239
|
-
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
240
|
-
| InvalidRequestError | Any input used to create a request is invalid |
|
|
241
|
-
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
242
|
-
|
|
243
|
-
In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `createAccountingAccount` method may throw the following errors:
|
|
231
|
+
If the request fails due to, for example 4XX or 5XX status codes, it will throw a `SDKError`.
|
|
244
232
|
|
|
245
233
|
| Error Type | Status Code | Content Type |
|
|
246
234
|
| --------------- | ----------- | ------------ |
|
|
@@ -267,14 +255,24 @@ async function run() {
|
|
|
267
255
|
console.log(result);
|
|
268
256
|
} catch (err) {
|
|
269
257
|
switch (true) {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
258
|
+
// The server response does not match the expected SDK schema
|
|
259
|
+
case (err instanceof SDKValidationError):
|
|
260
|
+
{
|
|
261
|
+
// Pretty-print will provide a human-readable multi-line error message
|
|
262
|
+
console.error(err.pretty());
|
|
263
|
+
// Raw value may also be inspected
|
|
264
|
+
console.error(err.rawValue);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
sdkerror.js;
|
|
268
|
+
// Server returned an error status code or an unknown content type
|
|
269
|
+
case (err instanceof SDKError): {
|
|
270
|
+
console.error(err.statusCode);
|
|
271
|
+
console.error(err.rawResponse.body);
|
|
275
272
|
return;
|
|
276
273
|
}
|
|
277
274
|
default: {
|
|
275
|
+
// Other errors such as network errors, see HTTPClientErrors for more details
|
|
278
276
|
throw err;
|
|
279
277
|
}
|
|
280
278
|
}
|
|
@@ -285,7 +283,17 @@ run();
|
|
|
285
283
|
|
|
286
284
|
```
|
|
287
285
|
|
|
288
|
-
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
|
286
|
+
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
|
287
|
+
|
|
288
|
+
In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `sdk/models/errors/httpclienterrors.ts` module:
|
|
289
|
+
|
|
290
|
+
| HTTP Client Error | Description |
|
|
291
|
+
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
292
|
+
| RequestAbortedError | HTTP request was aborted by the client |
|
|
293
|
+
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
294
|
+
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
295
|
+
| InvalidRequestError | Any input used to create a request is invalid |
|
|
296
|
+
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
289
297
|
<!-- End Error Handling [errors] -->
|
|
290
298
|
|
|
291
299
|
<!-- Start Requirements [requirements] -->
|
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.0";
|
|
34
|
-
readonly sdkVersion: "2.9.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.9.
|
|
34
|
+
readonly sdkVersion: "2.9.10";
|
|
35
|
+
readonly genVersion: "2.477.4";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.9.10 2.477.4 1.0 @unified-api/typescript-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -36,8 +36,8 @@ function serverURLFromOptions(options) {
|
|
|
36
36
|
exports.SDK_METADATA = {
|
|
37
37
|
language: "typescript",
|
|
38
38
|
openapiDocVersion: "1.0",
|
|
39
|
-
sdkVersion: "2.9.
|
|
40
|
-
genVersion: "2.
|
|
41
|
-
userAgent: "speakeasy-sdk/typescript 2.9.
|
|
39
|
+
sdkVersion: "2.9.10",
|
|
40
|
+
genVersion: "2.477.4",
|
|
41
|
+
userAgent: "speakeasy-sdk/typescript 2.9.10 2.477.4 1.0 @unified-api/typescript-sdk",
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA6CH,oDAeC;AAtDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,wBAAwB;IACxB;;OAEG;IACH,2BAA2B;CACnB,CAAC;AAyBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA6CH,oDAeC;AAtDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,wBAAwB;IACxB;;OAEG;IACH,2BAA2B;CACnB,CAAC;AAyBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,yEAAyE;CACnE,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import * as z from "zod";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type MessagingAttachment = {
|
|
5
|
+
contentIdentifier?: string | undefined;
|
|
5
6
|
contentType?: string | undefined;
|
|
6
7
|
downloadUrl?: string | undefined;
|
|
7
8
|
filename?: string | undefined;
|
|
@@ -12,6 +13,7 @@ export type MessagingAttachment = {
|
|
|
12
13
|
export declare const MessagingAttachment$inboundSchema: z.ZodType<MessagingAttachment, z.ZodTypeDef, unknown>;
|
|
13
14
|
/** @internal */
|
|
14
15
|
export type MessagingAttachment$Outbound = {
|
|
16
|
+
content_identifier?: string | undefined;
|
|
15
17
|
content_type?: string | undefined;
|
|
16
18
|
download_url?: string | undefined;
|
|
17
19
|
filename?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messagingattachment.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/messagingattachment.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,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"messagingattachment.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/messagingattachment.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,mBAAmB,GAAG;IAChC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAenB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -34,6 +34,7 @@ const primitives_js_1 = require("../../../lib/primitives.js");
|
|
|
34
34
|
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
35
35
|
/** @internal */
|
|
36
36
|
exports.MessagingAttachment$inboundSchema = z.object({
|
|
37
|
+
content_identifier: z.string().optional(),
|
|
37
38
|
content_type: z.string().optional(),
|
|
38
39
|
download_url: z.string().optional(),
|
|
39
40
|
filename: z.string().optional(),
|
|
@@ -41,6 +42,7 @@ exports.MessagingAttachment$inboundSchema = z.object({
|
|
|
41
42
|
size: z.number().optional(),
|
|
42
43
|
}).transform((v) => {
|
|
43
44
|
return (0, primitives_js_1.remap)(v, {
|
|
45
|
+
"content_identifier": "contentIdentifier",
|
|
44
46
|
"content_type": "contentType",
|
|
45
47
|
"download_url": "downloadUrl",
|
|
46
48
|
"message_id": "messageId",
|
|
@@ -48,6 +50,7 @@ exports.MessagingAttachment$inboundSchema = z.object({
|
|
|
48
50
|
});
|
|
49
51
|
/** @internal */
|
|
50
52
|
exports.MessagingAttachment$outboundSchema = z.object({
|
|
53
|
+
contentIdentifier: z.string().optional(),
|
|
51
54
|
contentType: z.string().optional(),
|
|
52
55
|
downloadUrl: z.string().optional(),
|
|
53
56
|
filename: z.string().optional(),
|
|
@@ -55,6 +58,7 @@ exports.MessagingAttachment$outboundSchema = z.object({
|
|
|
55
58
|
size: z.number().optional(),
|
|
56
59
|
}).transform((v) => {
|
|
57
60
|
return (0, primitives_js_1.remap)(v, {
|
|
61
|
+
contentIdentifier: "content_identifier",
|
|
58
62
|
contentType: "content_type",
|
|
59
63
|
downloadUrl: "download_url",
|
|
60
64
|
messageId: "message_id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messagingattachment.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/messagingattachment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"messagingattachment.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/messagingattachment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFH,8DAMC;AAED,kEAQC;AAhGD,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;AAapD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,oBAAoB,EAAE,mBAAmB;QACzC,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,oBAAoB;QACvC,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.0",
|
|
68
|
-
sdkVersion: "2.9.
|
|
69
|
-
genVersion: "2.
|
|
68
|
+
sdkVersion: "2.9.10",
|
|
69
|
+
genVersion: "2.477.4",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/typescript 2.9.
|
|
71
|
+
"speakeasy-sdk/typescript 2.9.10 2.477.4 1.0 @unified-api/typescript-sdk",
|
|
72
72
|
} as const;
|
|
@@ -9,6 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type MessagingAttachment = {
|
|
12
|
+
contentIdentifier?: string | undefined;
|
|
12
13
|
contentType?: string | undefined;
|
|
13
14
|
downloadUrl?: string | undefined;
|
|
14
15
|
filename?: string | undefined;
|
|
@@ -22,6 +23,7 @@ export const MessagingAttachment$inboundSchema: z.ZodType<
|
|
|
22
23
|
z.ZodTypeDef,
|
|
23
24
|
unknown
|
|
24
25
|
> = z.object({
|
|
26
|
+
content_identifier: z.string().optional(),
|
|
25
27
|
content_type: z.string().optional(),
|
|
26
28
|
download_url: z.string().optional(),
|
|
27
29
|
filename: z.string().optional(),
|
|
@@ -29,6 +31,7 @@ export const MessagingAttachment$inboundSchema: z.ZodType<
|
|
|
29
31
|
size: z.number().optional(),
|
|
30
32
|
}).transform((v) => {
|
|
31
33
|
return remap$(v, {
|
|
34
|
+
"content_identifier": "contentIdentifier",
|
|
32
35
|
"content_type": "contentType",
|
|
33
36
|
"download_url": "downloadUrl",
|
|
34
37
|
"message_id": "messageId",
|
|
@@ -37,6 +40,7 @@ export const MessagingAttachment$inboundSchema: z.ZodType<
|
|
|
37
40
|
|
|
38
41
|
/** @internal */
|
|
39
42
|
export type MessagingAttachment$Outbound = {
|
|
43
|
+
content_identifier?: string | undefined;
|
|
40
44
|
content_type?: string | undefined;
|
|
41
45
|
download_url?: string | undefined;
|
|
42
46
|
filename?: string | undefined;
|
|
@@ -50,6 +54,7 @@ export const MessagingAttachment$outboundSchema: z.ZodType<
|
|
|
50
54
|
z.ZodTypeDef,
|
|
51
55
|
MessagingAttachment
|
|
52
56
|
> = z.object({
|
|
57
|
+
contentIdentifier: z.string().optional(),
|
|
53
58
|
contentType: z.string().optional(),
|
|
54
59
|
downloadUrl: z.string().optional(),
|
|
55
60
|
filename: z.string().optional(),
|
|
@@ -57,6 +62,7 @@ export const MessagingAttachment$outboundSchema: z.ZodType<
|
|
|
57
62
|
size: z.number().optional(),
|
|
58
63
|
}).transform((v) => {
|
|
59
64
|
return remap$(v, {
|
|
65
|
+
contentIdentifier: "content_identifier",
|
|
60
66
|
contentType: "content_type",
|
|
61
67
|
downloadUrl: "download_url",
|
|
62
68
|
messageId: "message_id",
|