@documenso/sdk-typescript 0.3.0 → 0.3.1
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/FUNCTIONS.md +5 -3
- package/README.md +110 -108
- package/bin/mcp-server.js +600 -1261
- package/bin/mcp-server.js.map +35 -43
- package/docs/sdks/documents/README.md +63 -140
- package/docs/sdks/templates/README.md +1 -78
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +2 -6
- package/mcp-server/server.js.map +1 -1
- package/models/errors/index.d.ts +0 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -2
- package/models/errors/index.js.map +1 -1
- package/models/operations/documentcreatedocumenttemporary.d.ts +8 -8
- package/models/operations/documentcreatedocumenttemporary.d.ts.map +1 -1
- package/models/operations/documentcreatedocumenttemporary.js +16 -16
- package/models/operations/documentcreatedocumenttemporary.js.map +1 -1
- package/models/operations/documentfinddocuments.d.ts +2 -2
- package/models/operations/documentfinddocuments.d.ts.map +1 -1
- package/models/operations/documentfinddocuments.js +2 -2
- package/models/operations/documentfinddocuments.js.map +1 -1
- package/models/operations/documentgetdocumentwithdetailsbyid.d.ts +8 -8
- package/models/operations/documentgetdocumentwithdetailsbyid.d.ts.map +1 -1
- package/models/operations/documentgetdocumentwithdetailsbyid.js +16 -16
- package/models/operations/documentgetdocumentwithdetailsbyid.js.map +1 -1
- package/models/operations/documentsenddocument.d.ts +2 -2
- package/models/operations/documentsenddocument.d.ts.map +1 -1
- package/models/operations/documentsenddocument.js +2 -2
- package/models/operations/documentsenddocument.js.map +1 -1
- package/models/operations/documentupdatedocument.d.ts +2 -2
- package/models/operations/documentupdatedocument.d.ts.map +1 -1
- package/models/operations/documentupdatedocument.js +2 -2
- package/models/operations/documentupdatedocument.js.map +1 -1
- package/models/operations/fieldcreatedocumentfield.d.ts +4 -4
- package/models/operations/fieldcreatedocumentfield.d.ts.map +1 -1
- package/models/operations/fieldcreatedocumentfield.js +12 -12
- package/models/operations/fieldcreatedocumentfield.js.map +1 -1
- package/models/operations/fieldcreatedocumentfields.d.ts +4 -4
- package/models/operations/fieldcreatedocumentfields.d.ts.map +1 -1
- package/models/operations/fieldcreatedocumentfields.js +12 -12
- package/models/operations/fieldcreatedocumentfields.js.map +1 -1
- package/models/operations/fieldcreatetemplatefield.d.ts +4 -4
- package/models/operations/fieldcreatetemplatefield.d.ts.map +1 -1
- package/models/operations/fieldcreatetemplatefield.js +12 -12
- package/models/operations/fieldcreatetemplatefield.js.map +1 -1
- package/models/operations/fieldcreatetemplatefields.d.ts +4 -4
- package/models/operations/fieldcreatetemplatefields.d.ts.map +1 -1
- package/models/operations/fieldcreatetemplatefields.js +12 -12
- package/models/operations/fieldcreatetemplatefields.js.map +1 -1
- package/models/operations/fieldgetdocumentfield.d.ts +4 -4
- package/models/operations/fieldgetdocumentfield.d.ts.map +1 -1
- package/models/operations/fieldgetdocumentfield.js +12 -12
- package/models/operations/fieldgetdocumentfield.js.map +1 -1
- package/models/operations/fieldgettemplatefield.d.ts +4 -4
- package/models/operations/fieldgettemplatefield.d.ts.map +1 -1
- package/models/operations/fieldgettemplatefield.js +12 -12
- package/models/operations/fieldgettemplatefield.js.map +1 -1
- package/models/operations/fieldupdatedocumentfield.d.ts +4 -4
- package/models/operations/fieldupdatedocumentfield.d.ts.map +1 -1
- package/models/operations/fieldupdatedocumentfield.js +12 -12
- package/models/operations/fieldupdatedocumentfield.js.map +1 -1
- package/models/operations/fieldupdatedocumentfields.d.ts +4 -4
- package/models/operations/fieldupdatedocumentfields.d.ts.map +1 -1
- package/models/operations/fieldupdatedocumentfields.js +12 -12
- package/models/operations/fieldupdatedocumentfields.js.map +1 -1
- package/models/operations/fieldupdatetemplatefield.d.ts +4 -4
- package/models/operations/fieldupdatetemplatefield.d.ts.map +1 -1
- package/models/operations/fieldupdatetemplatefield.js +12 -12
- package/models/operations/fieldupdatetemplatefield.js.map +1 -1
- package/models/operations/fieldupdatetemplatefields.d.ts +4 -4
- package/models/operations/fieldupdatetemplatefields.d.ts.map +1 -1
- package/models/operations/fieldupdatetemplatefields.js +12 -12
- package/models/operations/fieldupdatetemplatefields.js.map +1 -1
- package/models/operations/index.d.ts +0 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/recipientgetdocumentrecipient.d.ts +4 -4
- package/models/operations/recipientgetdocumentrecipient.d.ts.map +1 -1
- package/models/operations/recipientgetdocumentrecipient.js +12 -12
- package/models/operations/recipientgetdocumentrecipient.js.map +1 -1
- package/models/operations/recipientgettemplaterecipient.d.ts +4 -4
- package/models/operations/recipientgettemplaterecipient.d.ts.map +1 -1
- package/models/operations/recipientgettemplaterecipient.js +12 -12
- package/models/operations/recipientgettemplaterecipient.js.map +1 -1
- package/models/operations/recipientupdatedocumentrecipient.d.ts +4 -4
- package/models/operations/recipientupdatedocumentrecipient.d.ts.map +1 -1
- package/models/operations/recipientupdatedocumentrecipient.js +12 -12
- package/models/operations/recipientupdatedocumentrecipient.js.map +1 -1
- package/models/operations/recipientupdatedocumentrecipients.d.ts +4 -4
- package/models/operations/recipientupdatedocumentrecipients.d.ts.map +1 -1
- package/models/operations/recipientupdatedocumentrecipients.js +12 -12
- package/models/operations/recipientupdatedocumentrecipients.js.map +1 -1
- package/models/operations/recipientupdatetemplaterecipient.d.ts +4 -4
- package/models/operations/recipientupdatetemplaterecipient.d.ts.map +1 -1
- package/models/operations/recipientupdatetemplaterecipient.js +12 -12
- package/models/operations/recipientupdatetemplaterecipient.js.map +1 -1
- package/models/operations/recipientupdatetemplaterecipients.d.ts +4 -4
- package/models/operations/recipientupdatetemplaterecipients.d.ts.map +1 -1
- package/models/operations/recipientupdatetemplaterecipients.js +12 -12
- package/models/operations/recipientupdatetemplaterecipients.js.map +1 -1
- package/models/operations/templatecreatedocumentfromtemplate.d.ts +12 -12
- package/models/operations/templatecreatedocumentfromtemplate.d.ts.map +1 -1
- package/models/operations/templatecreatedocumentfromtemplate.js +28 -28
- package/models/operations/templatecreatedocumentfromtemplate.js.map +1 -1
- package/models/operations/templateduplicatetemplate.d.ts +2 -2
- package/models/operations/templateduplicatetemplate.d.ts.map +1 -1
- package/models/operations/templateduplicatetemplate.js +2 -2
- package/models/operations/templateduplicatetemplate.js.map +1 -1
- package/models/operations/templatefindtemplates.d.ts +6 -6
- package/models/operations/templatefindtemplates.d.ts.map +1 -1
- package/models/operations/templatefindtemplates.js +14 -14
- package/models/operations/templatefindtemplates.js.map +1 -1
- package/models/operations/templategettemplatebyid.d.ts +8 -8
- package/models/operations/templategettemplatebyid.d.ts.map +1 -1
- package/models/operations/templategettemplatebyid.js +16 -16
- package/models/operations/templategettemplatebyid.js.map +1 -1
- package/models/operations/templateupdatetemplate.d.ts +2 -2
- package/models/operations/templateupdatetemplate.d.ts.map +1 -1
- package/models/operations/templateupdatetemplate.js +2 -2
- package/models/operations/templateupdatetemplate.js.map +1 -1
- package/package.json +1 -1
- package/sdk/documents.d.ts +4 -11
- package/sdk/documents.d.ts.map +1 -1
- package/sdk/documents.js +6 -16
- package/sdk/documents.js.map +1 -1
- package/sdk/templates.d.ts +0 -7
- package/sdk/templates.d.ts.map +1 -1
- package/sdk/templates.js +0 -10
- package/sdk/templates.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -6
- package/src/models/errors/index.ts +0 -2
- package/src/models/operations/documentcreatedocumenttemporary.ts +34 -34
- package/src/models/operations/documentfinddocuments.ts +4 -4
- package/src/models/operations/documentgetdocumentwithdetailsbyid.ts +49 -49
- package/src/models/operations/documentsenddocument.ts +4 -4
- package/src/models/operations/documentupdatedocument.ts +4 -4
- package/src/models/operations/fieldcreatedocumentfield.ts +35 -35
- package/src/models/operations/fieldcreatedocumentfields.ts +38 -38
- package/src/models/operations/fieldcreatetemplatefield.ts +35 -35
- package/src/models/operations/fieldcreatetemplatefields.ts +38 -38
- package/src/models/operations/fieldgetdocumentfield.ts +26 -26
- package/src/models/operations/fieldgettemplatefield.ts +26 -26
- package/src/models/operations/fieldupdatedocumentfield.ts +35 -35
- package/src/models/operations/fieldupdatedocumentfields.ts +38 -38
- package/src/models/operations/fieldupdatetemplatefield.ts +35 -35
- package/src/models/operations/fieldupdatetemplatefields.ts +38 -38
- package/src/models/operations/index.ts +0 -2
- package/src/models/operations/recipientgetdocumentrecipient.ts +31 -33
- package/src/models/operations/recipientgettemplaterecipient.ts +31 -33
- package/src/models/operations/recipientupdatedocumentrecipient.ts +36 -36
- package/src/models/operations/recipientupdatedocumentrecipients.ts +38 -38
- package/src/models/operations/recipientupdatetemplaterecipient.ts +36 -36
- package/src/models/operations/recipientupdatetemplaterecipients.ts +38 -38
- package/src/models/operations/templatecreatedocumentfromtemplate.ts +73 -73
- package/src/models/operations/templateduplicatetemplate.ts +4 -4
- package/src/models/operations/templatefindtemplates.ts +30 -30
- package/src/models/operations/templategettemplatebyid.ts +34 -34
- package/src/models/operations/templateupdatetemplate.ts +4 -4
- package/src/sdk/documents.ts +14 -32
- package/src/sdk/templates.ts +0 -18
- package/src/types/constdatetime.ts +1 -1
- package/types/constdatetime.js +1 -1
- package/funcs/documentsMoveToTeam.d.ts +0 -18
- package/funcs/documentsMoveToTeam.d.ts.map +0 -1
- package/funcs/documentsMoveToTeam.js +0 -118
- package/funcs/documentsMoveToTeam.js.map +0 -1
- package/funcs/templatesMoveToTeam.d.ts +0 -18
- package/funcs/templatesMoveToTeam.d.ts.map +0 -1
- package/funcs/templatesMoveToTeam.js +0 -118
- package/funcs/templatesMoveToTeam.js.map +0 -1
- package/mcp-server/tools/documentsMoveToTeam.d.ts +0 -8
- package/mcp-server/tools/documentsMoveToTeam.d.ts.map +0 -1
- package/mcp-server/tools/documentsMoveToTeam.js +0 -64
- package/mcp-server/tools/documentsMoveToTeam.js.map +0 -1
- package/mcp-server/tools/templatesMoveToTeam.d.ts +0 -8
- package/mcp-server/tools/templatesMoveToTeam.d.ts.map +0 -1
- package/mcp-server/tools/templatesMoveToTeam.js +0 -64
- package/mcp-server/tools/templatesMoveToTeam.js.map +0 -1
- package/models/errors/documentmovedocumenttoteam.d.ts +0 -143
- package/models/errors/documentmovedocumenttoteam.d.ts.map +0 -1
- package/models/errors/documentmovedocumenttoteam.js +0 -201
- package/models/errors/documentmovedocumenttoteam.js.map +0 -1
- package/models/errors/templatemovetemplatetoteam.d.ts +0 -143
- package/models/errors/templatemovetemplatetoteam.d.ts.map +0 -1
- package/models/errors/templatemovetemplatetoteam.js +0 -201
- package/models/errors/templatemovetemplatetoteam.js.map +0 -1
- package/models/operations/documentmovedocumenttoteam.d.ts +0 -310
- package/models/operations/documentmovedocumenttoteam.d.ts.map +0 -1
- package/models/operations/documentmovedocumenttoteam.js +0 -292
- package/models/operations/documentmovedocumenttoteam.js.map +0 -1
- package/models/operations/templatemovetemplatetoteam.d.ts +0 -239
- package/models/operations/templatemovetemplatetoteam.d.ts.map +0 -1
- package/models/operations/templatemovetemplatetoteam.js +0 -241
- package/models/operations/templatemovetemplatetoteam.js.map +0 -1
- package/src/funcs/documentsMoveToTeam.ts +0 -180
- package/src/funcs/templatesMoveToTeam.ts +0 -180
- package/src/mcp-server/tools/documentsMoveToTeam.ts +0 -37
- package/src/mcp-server/tools/templatesMoveToTeam.ts +0 -37
- package/src/models/errors/documentmovedocumenttoteam.ts +0 -358
- package/src/models/errors/templatemovetemplatetoteam.ts +0 -358
- package/src/models/operations/documentmovedocumenttoteam.ts +0 -529
- package/src/models/operations/templatemovetemplatetoteam.ts +0 -417
|
@@ -1,358 +0,0 @@
|
|
|
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 { DocumensoError } from "./documensoerror.js";
|
|
9
|
-
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type DocumentMoveDocumentToTeamInternalServerErrorIssue = {
|
|
12
|
-
message: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Internal server error
|
|
17
|
-
*/
|
|
18
|
-
export type DocumentMoveDocumentToTeamInternalServerErrorData = {
|
|
19
|
-
message: string;
|
|
20
|
-
code: string;
|
|
21
|
-
issues?:
|
|
22
|
-
| Array<DocumentMoveDocumentToTeamInternalServerErrorIssue>
|
|
23
|
-
| undefined;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Internal server error
|
|
28
|
-
*/
|
|
29
|
-
export class DocumentMoveDocumentToTeamInternalServerError
|
|
30
|
-
extends DocumensoError
|
|
31
|
-
{
|
|
32
|
-
code: string;
|
|
33
|
-
issues?:
|
|
34
|
-
| Array<DocumentMoveDocumentToTeamInternalServerErrorIssue>
|
|
35
|
-
| undefined;
|
|
36
|
-
|
|
37
|
-
/** The original data that was passed to this error instance. */
|
|
38
|
-
data$: DocumentMoveDocumentToTeamInternalServerErrorData;
|
|
39
|
-
|
|
40
|
-
constructor(
|
|
41
|
-
err: DocumentMoveDocumentToTeamInternalServerErrorData,
|
|
42
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
43
|
-
) {
|
|
44
|
-
const message = "message" in err && typeof err.message === "string"
|
|
45
|
-
? err.message
|
|
46
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
47
|
-
super(message, httpMeta);
|
|
48
|
-
this.data$ = err;
|
|
49
|
-
this.code = err.code;
|
|
50
|
-
if (err.issues != null) this.issues = err.issues;
|
|
51
|
-
|
|
52
|
-
this.name = "DocumentMoveDocumentToTeamInternalServerError";
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type DocumentMoveDocumentToTeamBadRequestIssue = {
|
|
57
|
-
message: string;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Invalid input data
|
|
62
|
-
*/
|
|
63
|
-
export type DocumentMoveDocumentToTeamBadRequestErrorData = {
|
|
64
|
-
message: string;
|
|
65
|
-
code: string;
|
|
66
|
-
issues?: Array<DocumentMoveDocumentToTeamBadRequestIssue> | undefined;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Invalid input data
|
|
71
|
-
*/
|
|
72
|
-
export class DocumentMoveDocumentToTeamBadRequestError extends DocumensoError {
|
|
73
|
-
code: string;
|
|
74
|
-
issues?: Array<DocumentMoveDocumentToTeamBadRequestIssue> | undefined;
|
|
75
|
-
|
|
76
|
-
/** The original data that was passed to this error instance. */
|
|
77
|
-
data$: DocumentMoveDocumentToTeamBadRequestErrorData;
|
|
78
|
-
|
|
79
|
-
constructor(
|
|
80
|
-
err: DocumentMoveDocumentToTeamBadRequestErrorData,
|
|
81
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
82
|
-
) {
|
|
83
|
-
const message = "message" in err && typeof err.message === "string"
|
|
84
|
-
? err.message
|
|
85
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
86
|
-
super(message, httpMeta);
|
|
87
|
-
this.data$ = err;
|
|
88
|
-
this.code = err.code;
|
|
89
|
-
if (err.issues != null) this.issues = err.issues;
|
|
90
|
-
|
|
91
|
-
this.name = "DocumentMoveDocumentToTeamBadRequestError";
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/** @internal */
|
|
96
|
-
export const DocumentMoveDocumentToTeamInternalServerErrorIssue$inboundSchema:
|
|
97
|
-
z.ZodType<
|
|
98
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue,
|
|
99
|
-
z.ZodTypeDef,
|
|
100
|
-
unknown
|
|
101
|
-
> = z.object({
|
|
102
|
-
message: z.string(),
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
/** @internal */
|
|
106
|
-
export type DocumentMoveDocumentToTeamInternalServerErrorIssue$Outbound = {
|
|
107
|
-
message: string;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/** @internal */
|
|
111
|
-
export const DocumentMoveDocumentToTeamInternalServerErrorIssue$outboundSchema:
|
|
112
|
-
z.ZodType<
|
|
113
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue$Outbound,
|
|
114
|
-
z.ZodTypeDef,
|
|
115
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue
|
|
116
|
-
> = z.object({
|
|
117
|
-
message: z.string(),
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @internal
|
|
122
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
123
|
-
*/
|
|
124
|
-
export namespace DocumentMoveDocumentToTeamInternalServerErrorIssue$ {
|
|
125
|
-
/** @deprecated use `DocumentMoveDocumentToTeamInternalServerErrorIssue$inboundSchema` instead. */
|
|
126
|
-
export const inboundSchema =
|
|
127
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue$inboundSchema;
|
|
128
|
-
/** @deprecated use `DocumentMoveDocumentToTeamInternalServerErrorIssue$outboundSchema` instead. */
|
|
129
|
-
export const outboundSchema =
|
|
130
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue$outboundSchema;
|
|
131
|
-
/** @deprecated use `DocumentMoveDocumentToTeamInternalServerErrorIssue$Outbound` instead. */
|
|
132
|
-
export type Outbound =
|
|
133
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue$Outbound;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export function documentMoveDocumentToTeamInternalServerErrorIssueToJSON(
|
|
137
|
-
documentMoveDocumentToTeamInternalServerErrorIssue:
|
|
138
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue,
|
|
139
|
-
): string {
|
|
140
|
-
return JSON.stringify(
|
|
141
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue$outboundSchema.parse(
|
|
142
|
-
documentMoveDocumentToTeamInternalServerErrorIssue,
|
|
143
|
-
),
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export function documentMoveDocumentToTeamInternalServerErrorIssueFromJSON(
|
|
148
|
-
jsonString: string,
|
|
149
|
-
): SafeParseResult<
|
|
150
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue,
|
|
151
|
-
SDKValidationError
|
|
152
|
-
> {
|
|
153
|
-
return safeParse(
|
|
154
|
-
jsonString,
|
|
155
|
-
(x) =>
|
|
156
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue$inboundSchema.parse(
|
|
157
|
-
JSON.parse(x),
|
|
158
|
-
),
|
|
159
|
-
`Failed to parse 'DocumentMoveDocumentToTeamInternalServerErrorIssue' from JSON`,
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/** @internal */
|
|
164
|
-
export const DocumentMoveDocumentToTeamInternalServerError$inboundSchema:
|
|
165
|
-
z.ZodType<
|
|
166
|
-
DocumentMoveDocumentToTeamInternalServerError,
|
|
167
|
-
z.ZodTypeDef,
|
|
168
|
-
unknown
|
|
169
|
-
> = z.object({
|
|
170
|
-
message: z.string(),
|
|
171
|
-
code: z.string(),
|
|
172
|
-
issues: z.array(
|
|
173
|
-
z.lazy(() =>
|
|
174
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue$inboundSchema
|
|
175
|
-
),
|
|
176
|
-
).optional(),
|
|
177
|
-
request$: z.instanceof(Request),
|
|
178
|
-
response$: z.instanceof(Response),
|
|
179
|
-
body$: z.string(),
|
|
180
|
-
})
|
|
181
|
-
.transform((v) => {
|
|
182
|
-
return new DocumentMoveDocumentToTeamInternalServerError(v, {
|
|
183
|
-
request: v.request$,
|
|
184
|
-
response: v.response$,
|
|
185
|
-
body: v.body$,
|
|
186
|
-
});
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
/** @internal */
|
|
190
|
-
export type DocumentMoveDocumentToTeamInternalServerError$Outbound = {
|
|
191
|
-
message: string;
|
|
192
|
-
code: string;
|
|
193
|
-
issues?:
|
|
194
|
-
| Array<DocumentMoveDocumentToTeamInternalServerErrorIssue$Outbound>
|
|
195
|
-
| undefined;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
/** @internal */
|
|
199
|
-
export const DocumentMoveDocumentToTeamInternalServerError$outboundSchema:
|
|
200
|
-
z.ZodType<
|
|
201
|
-
DocumentMoveDocumentToTeamInternalServerError$Outbound,
|
|
202
|
-
z.ZodTypeDef,
|
|
203
|
-
DocumentMoveDocumentToTeamInternalServerError
|
|
204
|
-
> = z.instanceof(DocumentMoveDocumentToTeamInternalServerError)
|
|
205
|
-
.transform(v => v.data$)
|
|
206
|
-
.pipe(z.object({
|
|
207
|
-
message: z.string(),
|
|
208
|
-
code: z.string(),
|
|
209
|
-
issues: z.array(
|
|
210
|
-
z.lazy(() =>
|
|
211
|
-
DocumentMoveDocumentToTeamInternalServerErrorIssue$outboundSchema
|
|
212
|
-
),
|
|
213
|
-
).optional(),
|
|
214
|
-
}));
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @internal
|
|
218
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
219
|
-
*/
|
|
220
|
-
export namespace DocumentMoveDocumentToTeamInternalServerError$ {
|
|
221
|
-
/** @deprecated use `DocumentMoveDocumentToTeamInternalServerError$inboundSchema` instead. */
|
|
222
|
-
export const inboundSchema =
|
|
223
|
-
DocumentMoveDocumentToTeamInternalServerError$inboundSchema;
|
|
224
|
-
/** @deprecated use `DocumentMoveDocumentToTeamInternalServerError$outboundSchema` instead. */
|
|
225
|
-
export const outboundSchema =
|
|
226
|
-
DocumentMoveDocumentToTeamInternalServerError$outboundSchema;
|
|
227
|
-
/** @deprecated use `DocumentMoveDocumentToTeamInternalServerError$Outbound` instead. */
|
|
228
|
-
export type Outbound = DocumentMoveDocumentToTeamInternalServerError$Outbound;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/** @internal */
|
|
232
|
-
export const DocumentMoveDocumentToTeamBadRequestIssue$inboundSchema: z.ZodType<
|
|
233
|
-
DocumentMoveDocumentToTeamBadRequestIssue,
|
|
234
|
-
z.ZodTypeDef,
|
|
235
|
-
unknown
|
|
236
|
-
> = z.object({
|
|
237
|
-
message: z.string(),
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
/** @internal */
|
|
241
|
-
export type DocumentMoveDocumentToTeamBadRequestIssue$Outbound = {
|
|
242
|
-
message: string;
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
/** @internal */
|
|
246
|
-
export const DocumentMoveDocumentToTeamBadRequestIssue$outboundSchema:
|
|
247
|
-
z.ZodType<
|
|
248
|
-
DocumentMoveDocumentToTeamBadRequestIssue$Outbound,
|
|
249
|
-
z.ZodTypeDef,
|
|
250
|
-
DocumentMoveDocumentToTeamBadRequestIssue
|
|
251
|
-
> = z.object({
|
|
252
|
-
message: z.string(),
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* @internal
|
|
257
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
258
|
-
*/
|
|
259
|
-
export namespace DocumentMoveDocumentToTeamBadRequestIssue$ {
|
|
260
|
-
/** @deprecated use `DocumentMoveDocumentToTeamBadRequestIssue$inboundSchema` instead. */
|
|
261
|
-
export const inboundSchema =
|
|
262
|
-
DocumentMoveDocumentToTeamBadRequestIssue$inboundSchema;
|
|
263
|
-
/** @deprecated use `DocumentMoveDocumentToTeamBadRequestIssue$outboundSchema` instead. */
|
|
264
|
-
export const outboundSchema =
|
|
265
|
-
DocumentMoveDocumentToTeamBadRequestIssue$outboundSchema;
|
|
266
|
-
/** @deprecated use `DocumentMoveDocumentToTeamBadRequestIssue$Outbound` instead. */
|
|
267
|
-
export type Outbound = DocumentMoveDocumentToTeamBadRequestIssue$Outbound;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export function documentMoveDocumentToTeamBadRequestIssueToJSON(
|
|
271
|
-
documentMoveDocumentToTeamBadRequestIssue:
|
|
272
|
-
DocumentMoveDocumentToTeamBadRequestIssue,
|
|
273
|
-
): string {
|
|
274
|
-
return JSON.stringify(
|
|
275
|
-
DocumentMoveDocumentToTeamBadRequestIssue$outboundSchema.parse(
|
|
276
|
-
documentMoveDocumentToTeamBadRequestIssue,
|
|
277
|
-
),
|
|
278
|
-
);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export function documentMoveDocumentToTeamBadRequestIssueFromJSON(
|
|
282
|
-
jsonString: string,
|
|
283
|
-
): SafeParseResult<
|
|
284
|
-
DocumentMoveDocumentToTeamBadRequestIssue,
|
|
285
|
-
SDKValidationError
|
|
286
|
-
> {
|
|
287
|
-
return safeParse(
|
|
288
|
-
jsonString,
|
|
289
|
-
(x) =>
|
|
290
|
-
DocumentMoveDocumentToTeamBadRequestIssue$inboundSchema.parse(
|
|
291
|
-
JSON.parse(x),
|
|
292
|
-
),
|
|
293
|
-
`Failed to parse 'DocumentMoveDocumentToTeamBadRequestIssue' from JSON`,
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/** @internal */
|
|
298
|
-
export const DocumentMoveDocumentToTeamBadRequestError$inboundSchema: z.ZodType<
|
|
299
|
-
DocumentMoveDocumentToTeamBadRequestError,
|
|
300
|
-
z.ZodTypeDef,
|
|
301
|
-
unknown
|
|
302
|
-
> = z.object({
|
|
303
|
-
message: z.string(),
|
|
304
|
-
code: z.string(),
|
|
305
|
-
issues: z.array(
|
|
306
|
-
z.lazy(() => DocumentMoveDocumentToTeamBadRequestIssue$inboundSchema),
|
|
307
|
-
).optional(),
|
|
308
|
-
request$: z.instanceof(Request),
|
|
309
|
-
response$: z.instanceof(Response),
|
|
310
|
-
body$: z.string(),
|
|
311
|
-
})
|
|
312
|
-
.transform((v) => {
|
|
313
|
-
return new DocumentMoveDocumentToTeamBadRequestError(v, {
|
|
314
|
-
request: v.request$,
|
|
315
|
-
response: v.response$,
|
|
316
|
-
body: v.body$,
|
|
317
|
-
});
|
|
318
|
-
});
|
|
319
|
-
|
|
320
|
-
/** @internal */
|
|
321
|
-
export type DocumentMoveDocumentToTeamBadRequestError$Outbound = {
|
|
322
|
-
message: string;
|
|
323
|
-
code: string;
|
|
324
|
-
issues?:
|
|
325
|
-
| Array<DocumentMoveDocumentToTeamBadRequestIssue$Outbound>
|
|
326
|
-
| undefined;
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
/** @internal */
|
|
330
|
-
export const DocumentMoveDocumentToTeamBadRequestError$outboundSchema:
|
|
331
|
-
z.ZodType<
|
|
332
|
-
DocumentMoveDocumentToTeamBadRequestError$Outbound,
|
|
333
|
-
z.ZodTypeDef,
|
|
334
|
-
DocumentMoveDocumentToTeamBadRequestError
|
|
335
|
-
> = z.instanceof(DocumentMoveDocumentToTeamBadRequestError)
|
|
336
|
-
.transform(v => v.data$)
|
|
337
|
-
.pipe(z.object({
|
|
338
|
-
message: z.string(),
|
|
339
|
-
code: z.string(),
|
|
340
|
-
issues: z.array(
|
|
341
|
-
z.lazy(() => DocumentMoveDocumentToTeamBadRequestIssue$outboundSchema),
|
|
342
|
-
).optional(),
|
|
343
|
-
}));
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* @internal
|
|
347
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
348
|
-
*/
|
|
349
|
-
export namespace DocumentMoveDocumentToTeamBadRequestError$ {
|
|
350
|
-
/** @deprecated use `DocumentMoveDocumentToTeamBadRequestError$inboundSchema` instead. */
|
|
351
|
-
export const inboundSchema =
|
|
352
|
-
DocumentMoveDocumentToTeamBadRequestError$inboundSchema;
|
|
353
|
-
/** @deprecated use `DocumentMoveDocumentToTeamBadRequestError$outboundSchema` instead. */
|
|
354
|
-
export const outboundSchema =
|
|
355
|
-
DocumentMoveDocumentToTeamBadRequestError$outboundSchema;
|
|
356
|
-
/** @deprecated use `DocumentMoveDocumentToTeamBadRequestError$Outbound` instead. */
|
|
357
|
-
export type Outbound = DocumentMoveDocumentToTeamBadRequestError$Outbound;
|
|
358
|
-
}
|
|
@@ -1,358 +0,0 @@
|
|
|
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 { DocumensoError } from "./documensoerror.js";
|
|
9
|
-
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type TemplateMoveTemplateToTeamInternalServerErrorIssue = {
|
|
12
|
-
message: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Internal server error
|
|
17
|
-
*/
|
|
18
|
-
export type TemplateMoveTemplateToTeamInternalServerErrorData = {
|
|
19
|
-
message: string;
|
|
20
|
-
code: string;
|
|
21
|
-
issues?:
|
|
22
|
-
| Array<TemplateMoveTemplateToTeamInternalServerErrorIssue>
|
|
23
|
-
| undefined;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Internal server error
|
|
28
|
-
*/
|
|
29
|
-
export class TemplateMoveTemplateToTeamInternalServerError
|
|
30
|
-
extends DocumensoError
|
|
31
|
-
{
|
|
32
|
-
code: string;
|
|
33
|
-
issues?:
|
|
34
|
-
| Array<TemplateMoveTemplateToTeamInternalServerErrorIssue>
|
|
35
|
-
| undefined;
|
|
36
|
-
|
|
37
|
-
/** The original data that was passed to this error instance. */
|
|
38
|
-
data$: TemplateMoveTemplateToTeamInternalServerErrorData;
|
|
39
|
-
|
|
40
|
-
constructor(
|
|
41
|
-
err: TemplateMoveTemplateToTeamInternalServerErrorData,
|
|
42
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
43
|
-
) {
|
|
44
|
-
const message = "message" in err && typeof err.message === "string"
|
|
45
|
-
? err.message
|
|
46
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
47
|
-
super(message, httpMeta);
|
|
48
|
-
this.data$ = err;
|
|
49
|
-
this.code = err.code;
|
|
50
|
-
if (err.issues != null) this.issues = err.issues;
|
|
51
|
-
|
|
52
|
-
this.name = "TemplateMoveTemplateToTeamInternalServerError";
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type TemplateMoveTemplateToTeamBadRequestIssue = {
|
|
57
|
-
message: string;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Invalid input data
|
|
62
|
-
*/
|
|
63
|
-
export type TemplateMoveTemplateToTeamBadRequestErrorData = {
|
|
64
|
-
message: string;
|
|
65
|
-
code: string;
|
|
66
|
-
issues?: Array<TemplateMoveTemplateToTeamBadRequestIssue> | undefined;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Invalid input data
|
|
71
|
-
*/
|
|
72
|
-
export class TemplateMoveTemplateToTeamBadRequestError extends DocumensoError {
|
|
73
|
-
code: string;
|
|
74
|
-
issues?: Array<TemplateMoveTemplateToTeamBadRequestIssue> | undefined;
|
|
75
|
-
|
|
76
|
-
/** The original data that was passed to this error instance. */
|
|
77
|
-
data$: TemplateMoveTemplateToTeamBadRequestErrorData;
|
|
78
|
-
|
|
79
|
-
constructor(
|
|
80
|
-
err: TemplateMoveTemplateToTeamBadRequestErrorData,
|
|
81
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
82
|
-
) {
|
|
83
|
-
const message = "message" in err && typeof err.message === "string"
|
|
84
|
-
? err.message
|
|
85
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
86
|
-
super(message, httpMeta);
|
|
87
|
-
this.data$ = err;
|
|
88
|
-
this.code = err.code;
|
|
89
|
-
if (err.issues != null) this.issues = err.issues;
|
|
90
|
-
|
|
91
|
-
this.name = "TemplateMoveTemplateToTeamBadRequestError";
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/** @internal */
|
|
96
|
-
export const TemplateMoveTemplateToTeamInternalServerErrorIssue$inboundSchema:
|
|
97
|
-
z.ZodType<
|
|
98
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue,
|
|
99
|
-
z.ZodTypeDef,
|
|
100
|
-
unknown
|
|
101
|
-
> = z.object({
|
|
102
|
-
message: z.string(),
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
/** @internal */
|
|
106
|
-
export type TemplateMoveTemplateToTeamInternalServerErrorIssue$Outbound = {
|
|
107
|
-
message: string;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/** @internal */
|
|
111
|
-
export const TemplateMoveTemplateToTeamInternalServerErrorIssue$outboundSchema:
|
|
112
|
-
z.ZodType<
|
|
113
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue$Outbound,
|
|
114
|
-
z.ZodTypeDef,
|
|
115
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue
|
|
116
|
-
> = z.object({
|
|
117
|
-
message: z.string(),
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @internal
|
|
122
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
123
|
-
*/
|
|
124
|
-
export namespace TemplateMoveTemplateToTeamInternalServerErrorIssue$ {
|
|
125
|
-
/** @deprecated use `TemplateMoveTemplateToTeamInternalServerErrorIssue$inboundSchema` instead. */
|
|
126
|
-
export const inboundSchema =
|
|
127
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue$inboundSchema;
|
|
128
|
-
/** @deprecated use `TemplateMoveTemplateToTeamInternalServerErrorIssue$outboundSchema` instead. */
|
|
129
|
-
export const outboundSchema =
|
|
130
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue$outboundSchema;
|
|
131
|
-
/** @deprecated use `TemplateMoveTemplateToTeamInternalServerErrorIssue$Outbound` instead. */
|
|
132
|
-
export type Outbound =
|
|
133
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue$Outbound;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export function templateMoveTemplateToTeamInternalServerErrorIssueToJSON(
|
|
137
|
-
templateMoveTemplateToTeamInternalServerErrorIssue:
|
|
138
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue,
|
|
139
|
-
): string {
|
|
140
|
-
return JSON.stringify(
|
|
141
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue$outboundSchema.parse(
|
|
142
|
-
templateMoveTemplateToTeamInternalServerErrorIssue,
|
|
143
|
-
),
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export function templateMoveTemplateToTeamInternalServerErrorIssueFromJSON(
|
|
148
|
-
jsonString: string,
|
|
149
|
-
): SafeParseResult<
|
|
150
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue,
|
|
151
|
-
SDKValidationError
|
|
152
|
-
> {
|
|
153
|
-
return safeParse(
|
|
154
|
-
jsonString,
|
|
155
|
-
(x) =>
|
|
156
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue$inboundSchema.parse(
|
|
157
|
-
JSON.parse(x),
|
|
158
|
-
),
|
|
159
|
-
`Failed to parse 'TemplateMoveTemplateToTeamInternalServerErrorIssue' from JSON`,
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/** @internal */
|
|
164
|
-
export const TemplateMoveTemplateToTeamInternalServerError$inboundSchema:
|
|
165
|
-
z.ZodType<
|
|
166
|
-
TemplateMoveTemplateToTeamInternalServerError,
|
|
167
|
-
z.ZodTypeDef,
|
|
168
|
-
unknown
|
|
169
|
-
> = z.object({
|
|
170
|
-
message: z.string(),
|
|
171
|
-
code: z.string(),
|
|
172
|
-
issues: z.array(
|
|
173
|
-
z.lazy(() =>
|
|
174
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue$inboundSchema
|
|
175
|
-
),
|
|
176
|
-
).optional(),
|
|
177
|
-
request$: z.instanceof(Request),
|
|
178
|
-
response$: z.instanceof(Response),
|
|
179
|
-
body$: z.string(),
|
|
180
|
-
})
|
|
181
|
-
.transform((v) => {
|
|
182
|
-
return new TemplateMoveTemplateToTeamInternalServerError(v, {
|
|
183
|
-
request: v.request$,
|
|
184
|
-
response: v.response$,
|
|
185
|
-
body: v.body$,
|
|
186
|
-
});
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
/** @internal */
|
|
190
|
-
export type TemplateMoveTemplateToTeamInternalServerError$Outbound = {
|
|
191
|
-
message: string;
|
|
192
|
-
code: string;
|
|
193
|
-
issues?:
|
|
194
|
-
| Array<TemplateMoveTemplateToTeamInternalServerErrorIssue$Outbound>
|
|
195
|
-
| undefined;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
/** @internal */
|
|
199
|
-
export const TemplateMoveTemplateToTeamInternalServerError$outboundSchema:
|
|
200
|
-
z.ZodType<
|
|
201
|
-
TemplateMoveTemplateToTeamInternalServerError$Outbound,
|
|
202
|
-
z.ZodTypeDef,
|
|
203
|
-
TemplateMoveTemplateToTeamInternalServerError
|
|
204
|
-
> = z.instanceof(TemplateMoveTemplateToTeamInternalServerError)
|
|
205
|
-
.transform(v => v.data$)
|
|
206
|
-
.pipe(z.object({
|
|
207
|
-
message: z.string(),
|
|
208
|
-
code: z.string(),
|
|
209
|
-
issues: z.array(
|
|
210
|
-
z.lazy(() =>
|
|
211
|
-
TemplateMoveTemplateToTeamInternalServerErrorIssue$outboundSchema
|
|
212
|
-
),
|
|
213
|
-
).optional(),
|
|
214
|
-
}));
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @internal
|
|
218
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
219
|
-
*/
|
|
220
|
-
export namespace TemplateMoveTemplateToTeamInternalServerError$ {
|
|
221
|
-
/** @deprecated use `TemplateMoveTemplateToTeamInternalServerError$inboundSchema` instead. */
|
|
222
|
-
export const inboundSchema =
|
|
223
|
-
TemplateMoveTemplateToTeamInternalServerError$inboundSchema;
|
|
224
|
-
/** @deprecated use `TemplateMoveTemplateToTeamInternalServerError$outboundSchema` instead. */
|
|
225
|
-
export const outboundSchema =
|
|
226
|
-
TemplateMoveTemplateToTeamInternalServerError$outboundSchema;
|
|
227
|
-
/** @deprecated use `TemplateMoveTemplateToTeamInternalServerError$Outbound` instead. */
|
|
228
|
-
export type Outbound = TemplateMoveTemplateToTeamInternalServerError$Outbound;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/** @internal */
|
|
232
|
-
export const TemplateMoveTemplateToTeamBadRequestIssue$inboundSchema: z.ZodType<
|
|
233
|
-
TemplateMoveTemplateToTeamBadRequestIssue,
|
|
234
|
-
z.ZodTypeDef,
|
|
235
|
-
unknown
|
|
236
|
-
> = z.object({
|
|
237
|
-
message: z.string(),
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
/** @internal */
|
|
241
|
-
export type TemplateMoveTemplateToTeamBadRequestIssue$Outbound = {
|
|
242
|
-
message: string;
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
/** @internal */
|
|
246
|
-
export const TemplateMoveTemplateToTeamBadRequestIssue$outboundSchema:
|
|
247
|
-
z.ZodType<
|
|
248
|
-
TemplateMoveTemplateToTeamBadRequestIssue$Outbound,
|
|
249
|
-
z.ZodTypeDef,
|
|
250
|
-
TemplateMoveTemplateToTeamBadRequestIssue
|
|
251
|
-
> = z.object({
|
|
252
|
-
message: z.string(),
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* @internal
|
|
257
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
258
|
-
*/
|
|
259
|
-
export namespace TemplateMoveTemplateToTeamBadRequestIssue$ {
|
|
260
|
-
/** @deprecated use `TemplateMoveTemplateToTeamBadRequestIssue$inboundSchema` instead. */
|
|
261
|
-
export const inboundSchema =
|
|
262
|
-
TemplateMoveTemplateToTeamBadRequestIssue$inboundSchema;
|
|
263
|
-
/** @deprecated use `TemplateMoveTemplateToTeamBadRequestIssue$outboundSchema` instead. */
|
|
264
|
-
export const outboundSchema =
|
|
265
|
-
TemplateMoveTemplateToTeamBadRequestIssue$outboundSchema;
|
|
266
|
-
/** @deprecated use `TemplateMoveTemplateToTeamBadRequestIssue$Outbound` instead. */
|
|
267
|
-
export type Outbound = TemplateMoveTemplateToTeamBadRequestIssue$Outbound;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export function templateMoveTemplateToTeamBadRequestIssueToJSON(
|
|
271
|
-
templateMoveTemplateToTeamBadRequestIssue:
|
|
272
|
-
TemplateMoveTemplateToTeamBadRequestIssue,
|
|
273
|
-
): string {
|
|
274
|
-
return JSON.stringify(
|
|
275
|
-
TemplateMoveTemplateToTeamBadRequestIssue$outboundSchema.parse(
|
|
276
|
-
templateMoveTemplateToTeamBadRequestIssue,
|
|
277
|
-
),
|
|
278
|
-
);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export function templateMoveTemplateToTeamBadRequestIssueFromJSON(
|
|
282
|
-
jsonString: string,
|
|
283
|
-
): SafeParseResult<
|
|
284
|
-
TemplateMoveTemplateToTeamBadRequestIssue,
|
|
285
|
-
SDKValidationError
|
|
286
|
-
> {
|
|
287
|
-
return safeParse(
|
|
288
|
-
jsonString,
|
|
289
|
-
(x) =>
|
|
290
|
-
TemplateMoveTemplateToTeamBadRequestIssue$inboundSchema.parse(
|
|
291
|
-
JSON.parse(x),
|
|
292
|
-
),
|
|
293
|
-
`Failed to parse 'TemplateMoveTemplateToTeamBadRequestIssue' from JSON`,
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/** @internal */
|
|
298
|
-
export const TemplateMoveTemplateToTeamBadRequestError$inboundSchema: z.ZodType<
|
|
299
|
-
TemplateMoveTemplateToTeamBadRequestError,
|
|
300
|
-
z.ZodTypeDef,
|
|
301
|
-
unknown
|
|
302
|
-
> = z.object({
|
|
303
|
-
message: z.string(),
|
|
304
|
-
code: z.string(),
|
|
305
|
-
issues: z.array(
|
|
306
|
-
z.lazy(() => TemplateMoveTemplateToTeamBadRequestIssue$inboundSchema),
|
|
307
|
-
).optional(),
|
|
308
|
-
request$: z.instanceof(Request),
|
|
309
|
-
response$: z.instanceof(Response),
|
|
310
|
-
body$: z.string(),
|
|
311
|
-
})
|
|
312
|
-
.transform((v) => {
|
|
313
|
-
return new TemplateMoveTemplateToTeamBadRequestError(v, {
|
|
314
|
-
request: v.request$,
|
|
315
|
-
response: v.response$,
|
|
316
|
-
body: v.body$,
|
|
317
|
-
});
|
|
318
|
-
});
|
|
319
|
-
|
|
320
|
-
/** @internal */
|
|
321
|
-
export type TemplateMoveTemplateToTeamBadRequestError$Outbound = {
|
|
322
|
-
message: string;
|
|
323
|
-
code: string;
|
|
324
|
-
issues?:
|
|
325
|
-
| Array<TemplateMoveTemplateToTeamBadRequestIssue$Outbound>
|
|
326
|
-
| undefined;
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
/** @internal */
|
|
330
|
-
export const TemplateMoveTemplateToTeamBadRequestError$outboundSchema:
|
|
331
|
-
z.ZodType<
|
|
332
|
-
TemplateMoveTemplateToTeamBadRequestError$Outbound,
|
|
333
|
-
z.ZodTypeDef,
|
|
334
|
-
TemplateMoveTemplateToTeamBadRequestError
|
|
335
|
-
> = z.instanceof(TemplateMoveTemplateToTeamBadRequestError)
|
|
336
|
-
.transform(v => v.data$)
|
|
337
|
-
.pipe(z.object({
|
|
338
|
-
message: z.string(),
|
|
339
|
-
code: z.string(),
|
|
340
|
-
issues: z.array(
|
|
341
|
-
z.lazy(() => TemplateMoveTemplateToTeamBadRequestIssue$outboundSchema),
|
|
342
|
-
).optional(),
|
|
343
|
-
}));
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* @internal
|
|
347
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
348
|
-
*/
|
|
349
|
-
export namespace TemplateMoveTemplateToTeamBadRequestError$ {
|
|
350
|
-
/** @deprecated use `TemplateMoveTemplateToTeamBadRequestError$inboundSchema` instead. */
|
|
351
|
-
export const inboundSchema =
|
|
352
|
-
TemplateMoveTemplateToTeamBadRequestError$inboundSchema;
|
|
353
|
-
/** @deprecated use `TemplateMoveTemplateToTeamBadRequestError$outboundSchema` instead. */
|
|
354
|
-
export const outboundSchema =
|
|
355
|
-
TemplateMoveTemplateToTeamBadRequestError$outboundSchema;
|
|
356
|
-
/** @deprecated use `TemplateMoveTemplateToTeamBadRequestError$Outbound` instead. */
|
|
357
|
-
export type Outbound = TemplateMoveTemplateToTeamBadRequestError$Outbound;
|
|
358
|
-
}
|