@documenso/sdk-typescript 0.1.1 → 0.1.2
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 +3 -1
- package/README.md +76 -69
- package/docs/sdks/directlink/README.md +7 -7
- package/docs/sdks/documensofields/README.md +184 -96
- package/docs/sdks/documensorecipients/README.md +162 -54
- package/docs/sdks/documents/README.md +26 -22
- package/docs/sdks/fields/README.md +491 -10
- package/docs/sdks/recipients/README.md +461 -10
- package/docs/sdks/templates/README.md +31 -17
- package/funcs/documentsDelete.d.ts +1 -1
- package/funcs/documentsDelete.d.ts.map +1 -1
- package/funcs/documentsDelete.js +1 -2
- package/funcs/documentsDelete.js.map +1 -1
- package/funcs/documentsFieldsDelete.d.ts +1 -1
- package/funcs/documentsFieldsDelete.d.ts.map +1 -1
- package/funcs/documentsFieldsDelete.js +1 -2
- package/funcs/documentsFieldsDelete.js.map +1 -1
- package/funcs/{fieldsGet.d.ts → documentsFieldsGet.d.ts} +4 -4
- package/funcs/documentsFieldsGet.d.ts.map +1 -0
- package/funcs/{recipientsGet.js → documentsFieldsGet.js} +10 -10
- package/funcs/documentsFieldsGet.js.map +1 -0
- package/funcs/documentsRecipientsDelete.d.ts +1 -1
- package/funcs/documentsRecipientsDelete.d.ts.map +1 -1
- package/funcs/documentsRecipientsDelete.js +1 -2
- package/funcs/documentsRecipientsDelete.js.map +1 -1
- package/funcs/{recipientsGet.d.ts → documentsRecipientsGet.d.ts} +4 -4
- package/funcs/documentsRecipientsGet.d.ts.map +1 -0
- package/funcs/documentsRecipientsGet.js +116 -0
- package/funcs/documentsRecipientsGet.js.map +1 -0
- package/funcs/documentsRedistribute.d.ts +1 -1
- package/funcs/documentsRedistribute.d.ts.map +1 -1
- package/funcs/documentsRedistribute.js +1 -2
- package/funcs/documentsRedistribute.js.map +1 -1
- package/funcs/templatesDelete.d.ts +1 -1
- package/funcs/templatesDelete.d.ts.map +1 -1
- package/funcs/templatesDelete.js +1 -2
- package/funcs/templatesDelete.js.map +1 -1
- package/funcs/templatesDirectLinkDelete.d.ts +1 -1
- package/funcs/templatesDirectLinkDelete.d.ts.map +1 -1
- package/funcs/templatesDirectLinkDelete.js +1 -2
- package/funcs/templatesDirectLinkDelete.js.map +1 -1
- package/funcs/templatesFieldsDelete.d.ts +1 -1
- package/funcs/templatesFieldsDelete.d.ts.map +1 -1
- package/funcs/templatesFieldsDelete.js +1 -2
- package/funcs/templatesFieldsDelete.js.map +1 -1
- package/funcs/templatesFieldsGet.d.ts +16 -0
- package/funcs/templatesFieldsGet.d.ts.map +1 -0
- package/funcs/{fieldsGet.js → templatesFieldsGet.js} +9 -9
- package/funcs/templatesFieldsGet.js.map +1 -0
- package/funcs/templatesRecipientsDelete.d.ts +1 -1
- package/funcs/templatesRecipientsDelete.d.ts.map +1 -1
- package/funcs/templatesRecipientsDelete.js +1 -2
- package/funcs/templatesRecipientsDelete.js.map +1 -1
- package/funcs/templatesRecipientsGet.d.ts +16 -0
- package/funcs/templatesRecipientsGet.d.ts.map +1 -0
- package/funcs/templatesRecipientsGet.js +116 -0
- package/funcs/templatesRecipientsGet.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +4 -1
- package/lib/schemas.js.map +1 -1
- package/models/operations/documentdeletedocument.d.ts +28 -0
- package/models/operations/documentdeletedocument.d.ts.map +1 -1
- package/models/operations/documentdeletedocument.js +28 -1
- package/models/operations/documentdeletedocument.js.map +1 -1
- package/models/operations/documentresenddocument.d.ts +28 -0
- package/models/operations/documentresenddocument.d.ts.map +1 -1
- package/models/operations/documentresenddocument.js +28 -1
- package/models/operations/documentresenddocument.js.map +1 -1
- package/models/operations/fielddeletedocumentfield.d.ts +28 -0
- package/models/operations/fielddeletedocumentfield.d.ts.map +1 -1
- package/models/operations/fielddeletedocumentfield.js +28 -1
- package/models/operations/fielddeletedocumentfield.js.map +1 -1
- package/models/operations/fielddeletetemplatefield.d.ts +28 -0
- package/models/operations/fielddeletetemplatefield.d.ts.map +1 -1
- package/models/operations/fielddeletetemplatefield.js +28 -1
- package/models/operations/fielddeletetemplatefield.js.map +1 -1
- package/models/operations/{fieldgetfield.d.ts → fieldgetdocumentfield.d.ts} +142 -142
- package/models/operations/fieldgetdocumentfield.d.ts.map +1 -0
- package/models/operations/fieldgetdocumentfield.js +817 -0
- package/models/operations/fieldgetdocumentfield.js.map +1 -0
- package/models/operations/fieldgettemplatefield.d.ts +774 -0
- package/models/operations/fieldgettemplatefield.d.ts.map +1 -0
- package/models/operations/fieldgettemplatefield.js +819 -0
- package/models/operations/fieldgettemplatefield.js.map +1 -0
- package/models/operations/index.d.ts +4 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/recipientdeletedocumentrecipient.d.ts +28 -0
- package/models/operations/recipientdeletedocumentrecipient.d.ts.map +1 -1
- package/models/operations/recipientdeletedocumentrecipient.js +28 -1
- package/models/operations/recipientdeletedocumentrecipient.js.map +1 -1
- package/models/operations/recipientdeletetemplaterecipient.d.ts +28 -0
- package/models/operations/recipientdeletetemplaterecipient.d.ts.map +1 -1
- package/models/operations/recipientdeletetemplaterecipient.js +28 -1
- package/models/operations/recipientdeletetemplaterecipient.js.map +1 -1
- package/models/operations/recipientgetdocumentrecipient.d.ts +1041 -0
- package/models/operations/recipientgetdocumentrecipient.d.ts.map +1 -0
- package/models/operations/recipientgetdocumentrecipient.js +1038 -0
- package/models/operations/recipientgetdocumentrecipient.js.map +1 -0
- package/models/operations/recipientgettemplaterecipient.d.ts +1041 -0
- package/models/operations/recipientgettemplaterecipient.d.ts.map +1 -0
- package/models/operations/recipientgettemplaterecipient.js +1039 -0
- package/models/operations/recipientgettemplaterecipient.js.map +1 -0
- package/models/operations/templatedeletetemplate.d.ts +28 -0
- package/models/operations/templatedeletetemplate.d.ts.map +1 -1
- package/models/operations/templatedeletetemplate.js +28 -1
- package/models/operations/templatedeletetemplate.js.map +1 -1
- package/models/operations/templatedeletetemplatedirectlink.d.ts +28 -0
- package/models/operations/templatedeletetemplatedirectlink.d.ts.map +1 -1
- package/models/operations/templatedeletetemplatedirectlink.js +28 -1
- package/models/operations/templatedeletetemplatedirectlink.js.map +1 -1
- package/package.json +5 -1
- package/sdk/directlink.d.ts +1 -1
- package/sdk/directlink.d.ts.map +1 -1
- package/sdk/documensofields.d.ts +21 -14
- package/sdk/documensofields.d.ts.map +1 -1
- package/sdk/documensofields.js +29 -19
- package/sdk/documensofields.js.map +1 -1
- package/sdk/documensorecipients.d.ts +21 -14
- package/sdk/documensorecipients.d.ts.map +1 -1
- package/sdk/documensorecipients.js +29 -19
- package/sdk/documensorecipients.js.map +1 -1
- package/sdk/documents.d.ts +6 -6
- package/sdk/documents.d.ts.map +1 -1
- package/sdk/documents.js +4 -4
- package/sdk/documents.js.map +1 -1
- package/sdk/fields.d.ts +35 -3
- package/sdk/fields.d.ts.map +1 -1
- package/sdk/fields.js +51 -4
- package/sdk/fields.js.map +1 -1
- package/sdk/recipients.d.ts +35 -3
- package/sdk/recipients.d.ts.map +1 -1
- package/sdk/recipients.js +51 -4
- package/sdk/recipients.js.map +1 -1
- package/sdk/sdk.d.ts +0 -6
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -8
- package/sdk/sdk.js.map +1 -1
- package/sdk/templates.d.ts +5 -5
- package/sdk/templates.d.ts.map +1 -1
- package/sdk/templates.js +4 -4
- package/sdk/templates.js.map +1 -1
- package/src/funcs/documentsDelete.ts +3 -4
- package/src/funcs/documentsFieldsDelete.ts +3 -4
- package/src/funcs/{fieldsGet.ts → documentsFieldsGet.ts} +11 -10
- package/src/funcs/documentsRecipientsDelete.ts +6 -4
- package/src/funcs/{recipientsGet.ts → documentsRecipientsGet.ts} +15 -10
- package/src/funcs/documentsRedistribute.ts +3 -4
- package/src/funcs/templatesDelete.ts +3 -4
- package/src/funcs/templatesDirectLinkDelete.ts +6 -4
- package/src/funcs/templatesFieldsDelete.ts +3 -4
- package/src/funcs/templatesFieldsGet.ts +147 -0
- package/src/funcs/templatesRecipientsDelete.ts +6 -4
- package/src/funcs/templatesRecipientsGet.ts +152 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/schemas.ts +5 -0
- package/src/models/operations/documentdeletedocument.ts +65 -0
- package/src/models/operations/documentresenddocument.ts +65 -0
- package/src/models/operations/fielddeletedocumentfield.ts +66 -0
- package/src/models/operations/fielddeletetemplatefield.ts +66 -0
- package/src/models/operations/{fieldgetfield.ts → fieldgetdocumentfield.ts} +337 -282
- package/src/models/operations/fieldgettemplatefield.ts +1697 -0
- package/src/models/operations/index.ts +4 -2
- package/src/models/operations/recipientdeletedocumentrecipient.ts +74 -0
- package/src/models/operations/recipientdeletetemplaterecipient.ts +74 -0
- package/src/models/operations/recipientgetdocumentrecipient.ts +2235 -0
- package/src/models/operations/recipientgettemplaterecipient.ts +2251 -0
- package/src/models/operations/templatedeletetemplate.ts +65 -0
- package/src/models/operations/templatedeletetemplatedirectlink.ts +74 -0
- package/src/sdk/directlink.ts +1 -1
- package/src/sdk/documensofields.ts +47 -29
- package/src/sdk/documensorecipients.ts +47 -29
- package/src/sdk/documents.ts +10 -10
- package/src/sdk/fields.ts +93 -6
- package/src/sdk/recipients.ts +93 -6
- package/src/sdk/sdk.ts +0 -12
- package/src/sdk/templates.ts +9 -11
- package/.devcontainer/README.md +0 -30
- package/.devcontainer/devcontainer.json +0 -45
- package/docs/sdks/documensotemplatesfields/README.md +0 -456
- package/docs/sdks/documensotemplatesrecipients/README.md +0 -440
- package/funcs/fieldsGet.d.ts.map +0 -1
- package/funcs/fieldsGet.js.map +0 -1
- package/funcs/recipientsGet.d.ts.map +0 -1
- package/funcs/recipientsGet.js.map +0 -1
- package/local-openapi.json +0 -21024
- package/models/operations/fieldgetfield.d.ts.map +0 -1
- package/models/operations/fieldgetfield.js +0 -820
- package/models/operations/fieldgetfield.js.map +0 -1
- package/models/operations/recipientgetrecipient.d.ts +0 -1041
- package/models/operations/recipientgetrecipient.d.ts.map +0 -1
- package/models/operations/recipientgetrecipient.js +0 -1033
- package/models/operations/recipientgetrecipient.js.map +0 -1
- package/sdk/documensotemplatesfields.d.ts +0 -37
- package/sdk/documensotemplatesfields.d.ts.map +0 -1
- package/sdk/documensotemplatesfields.js +0 -59
- package/sdk/documensotemplatesfields.js.map +0 -1
- package/sdk/documensotemplatesrecipients.d.ts +0 -37
- package/sdk/documensotemplatesrecipients.d.ts.map +0 -1
- package/sdk/documensotemplatesrecipients.js +0 -59
- package/sdk/documensotemplatesrecipients.js.map +0 -1
- package/src/models/operations/recipientgetrecipient.ts +0 -2060
- package/src/sdk/documensotemplatesfields.ts +0 -96
- package/src/sdk/documensotemplatesrecipients.ts +0 -96
|
@@ -24,18 +24,18 @@ import * as operations from "../models/operations/index.js";
|
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Get field
|
|
27
|
+
* Get document field
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Returns a single field. If you want to retrieve all the fields for a document
|
|
30
|
+
* Returns a single field. If you want to retrieve all the fields for a document, use the "Get Document" endpoint.
|
|
31
31
|
*/
|
|
32
|
-
export async function
|
|
32
|
+
export async function documentsFieldsGet(
|
|
33
33
|
client: DocumensoCore,
|
|
34
|
-
request: operations.
|
|
34
|
+
request: operations.FieldGetDocumentFieldRequest,
|
|
35
35
|
options?: RequestOptions,
|
|
36
36
|
): Promise<
|
|
37
37
|
Result<
|
|
38
|
-
operations.
|
|
38
|
+
operations.FieldGetDocumentFieldResponseBody,
|
|
39
39
|
| errors.ErrorBADREQUEST
|
|
40
40
|
| errors.ErrorNOTFOUND
|
|
41
41
|
| errors.Errorinternalservererror
|
|
@@ -50,7 +50,8 @@ export async function fieldsGet(
|
|
|
50
50
|
> {
|
|
51
51
|
const parsed = safeParse(
|
|
52
52
|
request,
|
|
53
|
-
(value) =>
|
|
53
|
+
(value) =>
|
|
54
|
+
operations.FieldGetDocumentFieldRequest$outboundSchema.parse(value),
|
|
54
55
|
"Input validation failed",
|
|
55
56
|
);
|
|
56
57
|
if (!parsed.ok) {
|
|
@@ -66,7 +67,7 @@ export async function fieldsGet(
|
|
|
66
67
|
}),
|
|
67
68
|
};
|
|
68
69
|
|
|
69
|
-
const path = pathToFunc("/field/{fieldId}")(pathParams);
|
|
70
|
+
const path = pathToFunc("/document/field/{fieldId}")(pathParams);
|
|
70
71
|
|
|
71
72
|
const headers = new Headers(compactMap({
|
|
72
73
|
Accept: "application/json",
|
|
@@ -77,7 +78,7 @@ export async function fieldsGet(
|
|
|
77
78
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78
79
|
|
|
79
80
|
const context = {
|
|
80
|
-
operationID: "field-
|
|
81
|
+
operationID: "field-getDocumentField",
|
|
81
82
|
oAuth2Scopes: [],
|
|
82
83
|
|
|
83
84
|
resolvedSecurity: requestSecurity,
|
|
@@ -119,7 +120,7 @@ export async function fieldsGet(
|
|
|
119
120
|
};
|
|
120
121
|
|
|
121
122
|
const [result] = await M.match<
|
|
122
|
-
operations.
|
|
123
|
+
operations.FieldGetDocumentFieldResponseBody,
|
|
123
124
|
| errors.ErrorBADREQUEST
|
|
124
125
|
| errors.ErrorNOTFOUND
|
|
125
126
|
| errors.Errorinternalservererror
|
|
@@ -131,7 +132,7 @@ export async function fieldsGet(
|
|
|
131
132
|
| RequestTimeoutError
|
|
132
133
|
| ConnectionError
|
|
133
134
|
>(
|
|
134
|
-
M.json(200, operations.
|
|
135
|
+
M.json(200, operations.FieldGetDocumentFieldResponseBody$inboundSchema),
|
|
135
136
|
M.jsonErr(400, errors.ErrorBADREQUEST$inboundSchema),
|
|
136
137
|
M.jsonErr(404, errors.ErrorNOTFOUND$inboundSchema),
|
|
137
138
|
M.jsonErr(500, errors.Errorinternalservererror$inboundSchema),
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { DocumensoCore } from "../core.js";
|
|
7
6
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -33,7 +32,7 @@ export async function documentsRecipientsDelete(
|
|
|
33
32
|
options?: RequestOptions,
|
|
34
33
|
): Promise<
|
|
35
34
|
Result<
|
|
36
|
-
|
|
35
|
+
operations.RecipientDeleteDocumentRecipientResponseBody,
|
|
37
36
|
| errors.ErrorBADREQUEST
|
|
38
37
|
| errors.Errorinternalservererror
|
|
39
38
|
| APIError
|
|
@@ -112,7 +111,7 @@ export async function documentsRecipientsDelete(
|
|
|
112
111
|
};
|
|
113
112
|
|
|
114
113
|
const [result] = await M.match<
|
|
115
|
-
|
|
114
|
+
operations.RecipientDeleteDocumentRecipientResponseBody,
|
|
116
115
|
| errors.ErrorBADREQUEST
|
|
117
116
|
| errors.Errorinternalservererror
|
|
118
117
|
| APIError
|
|
@@ -123,7 +122,10 @@ export async function documentsRecipientsDelete(
|
|
|
123
122
|
| RequestTimeoutError
|
|
124
123
|
| ConnectionError
|
|
125
124
|
>(
|
|
126
|
-
M.json(
|
|
125
|
+
M.json(
|
|
126
|
+
200,
|
|
127
|
+
operations.RecipientDeleteDocumentRecipientResponseBody$inboundSchema,
|
|
128
|
+
),
|
|
127
129
|
M.jsonErr(400, errors.ErrorBADREQUEST$inboundSchema),
|
|
128
130
|
M.jsonErr(500, errors.Errorinternalservererror$inboundSchema),
|
|
129
131
|
M.fail("4XX"),
|
|
@@ -24,18 +24,18 @@ import * as operations from "../models/operations/index.js";
|
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Get recipient
|
|
27
|
+
* Get document recipient
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Returns a single recipient. If you want to retrieve all the recipients for a document
|
|
30
|
+
* Returns a single recipient. If you want to retrieve all the recipients for a document, use the "Get Document" endpoint.
|
|
31
31
|
*/
|
|
32
|
-
export async function
|
|
32
|
+
export async function documentsRecipientsGet(
|
|
33
33
|
client: DocumensoCore,
|
|
34
|
-
request: operations.
|
|
34
|
+
request: operations.RecipientGetDocumentRecipientRequest,
|
|
35
35
|
options?: RequestOptions,
|
|
36
36
|
): Promise<
|
|
37
37
|
Result<
|
|
38
|
-
operations.
|
|
38
|
+
operations.RecipientGetDocumentRecipientResponseBody,
|
|
39
39
|
| errors.ErrorBADREQUEST
|
|
40
40
|
| errors.ErrorNOTFOUND
|
|
41
41
|
| errors.Errorinternalservererror
|
|
@@ -51,7 +51,9 @@ export async function recipientsGet(
|
|
|
51
51
|
const parsed = safeParse(
|
|
52
52
|
request,
|
|
53
53
|
(value) =>
|
|
54
|
-
operations.
|
|
54
|
+
operations.RecipientGetDocumentRecipientRequest$outboundSchema.parse(
|
|
55
|
+
value,
|
|
56
|
+
),
|
|
55
57
|
"Input validation failed",
|
|
56
58
|
);
|
|
57
59
|
if (!parsed.ok) {
|
|
@@ -67,7 +69,7 @@ export async function recipientsGet(
|
|
|
67
69
|
}),
|
|
68
70
|
};
|
|
69
71
|
|
|
70
|
-
const path = pathToFunc("/recipient/{recipientId}")(pathParams);
|
|
72
|
+
const path = pathToFunc("/document/recipient/{recipientId}")(pathParams);
|
|
71
73
|
|
|
72
74
|
const headers = new Headers(compactMap({
|
|
73
75
|
Accept: "application/json",
|
|
@@ -78,7 +80,7 @@ export async function recipientsGet(
|
|
|
78
80
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
79
81
|
|
|
80
82
|
const context = {
|
|
81
|
-
operationID: "recipient-
|
|
83
|
+
operationID: "recipient-getDocumentRecipient",
|
|
82
84
|
oAuth2Scopes: [],
|
|
83
85
|
|
|
84
86
|
resolvedSecurity: requestSecurity,
|
|
@@ -120,7 +122,7 @@ export async function recipientsGet(
|
|
|
120
122
|
};
|
|
121
123
|
|
|
122
124
|
const [result] = await M.match<
|
|
123
|
-
operations.
|
|
125
|
+
operations.RecipientGetDocumentRecipientResponseBody,
|
|
124
126
|
| errors.ErrorBADREQUEST
|
|
125
127
|
| errors.ErrorNOTFOUND
|
|
126
128
|
| errors.Errorinternalservererror
|
|
@@ -132,7 +134,10 @@ export async function recipientsGet(
|
|
|
132
134
|
| RequestTimeoutError
|
|
133
135
|
| ConnectionError
|
|
134
136
|
>(
|
|
135
|
-
M.json(
|
|
137
|
+
M.json(
|
|
138
|
+
200,
|
|
139
|
+
operations.RecipientGetDocumentRecipientResponseBody$inboundSchema,
|
|
140
|
+
),
|
|
136
141
|
M.jsonErr(400, errors.ErrorBADREQUEST$inboundSchema),
|
|
137
142
|
M.jsonErr(404, errors.ErrorNOTFOUND$inboundSchema),
|
|
138
143
|
M.jsonErr(500, errors.Errorinternalservererror$inboundSchema),
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { DocumensoCore } from "../core.js";
|
|
7
6
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -36,7 +35,7 @@ export async function documentsRedistribute(
|
|
|
36
35
|
options?: RequestOptions,
|
|
37
36
|
): Promise<
|
|
38
37
|
Result<
|
|
39
|
-
|
|
38
|
+
operations.DocumentResendDocumentResponseBody,
|
|
40
39
|
| errors.ErrorBADREQUEST
|
|
41
40
|
| errors.Errorinternalservererror
|
|
42
41
|
| APIError
|
|
@@ -114,7 +113,7 @@ export async function documentsRedistribute(
|
|
|
114
113
|
};
|
|
115
114
|
|
|
116
115
|
const [result] = await M.match<
|
|
117
|
-
|
|
116
|
+
operations.DocumentResendDocumentResponseBody,
|
|
118
117
|
| errors.ErrorBADREQUEST
|
|
119
118
|
| errors.Errorinternalservererror
|
|
120
119
|
| APIError
|
|
@@ -125,7 +124,7 @@ export async function documentsRedistribute(
|
|
|
125
124
|
| RequestTimeoutError
|
|
126
125
|
| ConnectionError
|
|
127
126
|
>(
|
|
128
|
-
M.json(200,
|
|
127
|
+
M.json(200, operations.DocumentResendDocumentResponseBody$inboundSchema),
|
|
129
128
|
M.jsonErr(400, errors.ErrorBADREQUEST$inboundSchema),
|
|
130
129
|
M.jsonErr(500, errors.Errorinternalservererror$inboundSchema),
|
|
131
130
|
M.fail("4XX"),
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { DocumensoCore } from "../core.js";
|
|
7
6
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -33,7 +32,7 @@ export async function templatesDelete(
|
|
|
33
32
|
options?: RequestOptions,
|
|
34
33
|
): Promise<
|
|
35
34
|
Result<
|
|
36
|
-
|
|
35
|
+
operations.TemplateDeleteTemplateResponseBody,
|
|
37
36
|
| errors.ErrorBADREQUEST
|
|
38
37
|
| errors.Errorinternalservererror
|
|
39
38
|
| APIError
|
|
@@ -111,7 +110,7 @@ export async function templatesDelete(
|
|
|
111
110
|
};
|
|
112
111
|
|
|
113
112
|
const [result] = await M.match<
|
|
114
|
-
|
|
113
|
+
operations.TemplateDeleteTemplateResponseBody,
|
|
115
114
|
| errors.ErrorBADREQUEST
|
|
116
115
|
| errors.Errorinternalservererror
|
|
117
116
|
| APIError
|
|
@@ -122,7 +121,7 @@ export async function templatesDelete(
|
|
|
122
121
|
| RequestTimeoutError
|
|
123
122
|
| ConnectionError
|
|
124
123
|
>(
|
|
125
|
-
M.json(200,
|
|
124
|
+
M.json(200, operations.TemplateDeleteTemplateResponseBody$inboundSchema),
|
|
126
125
|
M.jsonErr(400, errors.ErrorBADREQUEST$inboundSchema),
|
|
127
126
|
M.jsonErr(500, errors.Errorinternalservererror$inboundSchema),
|
|
128
127
|
M.fail("4XX"),
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { DocumensoCore } from "../core.js";
|
|
7
6
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -36,7 +35,7 @@ export async function templatesDirectLinkDelete(
|
|
|
36
35
|
options?: RequestOptions,
|
|
37
36
|
): Promise<
|
|
38
37
|
Result<
|
|
39
|
-
|
|
38
|
+
operations.TemplateDeleteTemplateDirectLinkResponseBody,
|
|
40
39
|
| errors.ErrorBADREQUEST
|
|
41
40
|
| errors.Errorinternalservererror
|
|
42
41
|
| APIError
|
|
@@ -115,7 +114,7 @@ export async function templatesDirectLinkDelete(
|
|
|
115
114
|
};
|
|
116
115
|
|
|
117
116
|
const [result] = await M.match<
|
|
118
|
-
|
|
117
|
+
operations.TemplateDeleteTemplateDirectLinkResponseBody,
|
|
119
118
|
| errors.ErrorBADREQUEST
|
|
120
119
|
| errors.Errorinternalservererror
|
|
121
120
|
| APIError
|
|
@@ -126,7 +125,10 @@ export async function templatesDirectLinkDelete(
|
|
|
126
125
|
| RequestTimeoutError
|
|
127
126
|
| ConnectionError
|
|
128
127
|
>(
|
|
129
|
-
M.json(
|
|
128
|
+
M.json(
|
|
129
|
+
200,
|
|
130
|
+
operations.TemplateDeleteTemplateDirectLinkResponseBody$inboundSchema,
|
|
131
|
+
),
|
|
130
132
|
M.jsonErr(400, errors.ErrorBADREQUEST$inboundSchema),
|
|
131
133
|
M.jsonErr(500, errors.Errorinternalservererror$inboundSchema),
|
|
132
134
|
M.fail("4XX"),
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { DocumensoCore } from "../core.js";
|
|
7
6
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -33,7 +32,7 @@ export async function templatesFieldsDelete(
|
|
|
33
32
|
options?: RequestOptions,
|
|
34
33
|
): Promise<
|
|
35
34
|
Result<
|
|
36
|
-
|
|
35
|
+
operations.FieldDeleteTemplateFieldResponseBody,
|
|
37
36
|
| errors.ErrorBADREQUEST
|
|
38
37
|
| errors.Errorinternalservererror
|
|
39
38
|
| APIError
|
|
@@ -113,7 +112,7 @@ export async function templatesFieldsDelete(
|
|
|
113
112
|
};
|
|
114
113
|
|
|
115
114
|
const [result] = await M.match<
|
|
116
|
-
|
|
115
|
+
operations.FieldDeleteTemplateFieldResponseBody,
|
|
117
116
|
| errors.ErrorBADREQUEST
|
|
118
117
|
| errors.Errorinternalservererror
|
|
119
118
|
| APIError
|
|
@@ -124,7 +123,7 @@ export async function templatesFieldsDelete(
|
|
|
124
123
|
| RequestTimeoutError
|
|
125
124
|
| ConnectionError
|
|
126
125
|
>(
|
|
127
|
-
M.json(200,
|
|
126
|
+
M.json(200, operations.FieldDeleteTemplateFieldResponseBody$inboundSchema),
|
|
128
127
|
M.jsonErr(400, errors.ErrorBADREQUEST$inboundSchema),
|
|
129
128
|
M.jsonErr(500, errors.Errorinternalservererror$inboundSchema),
|
|
130
129
|
M.fail("4XX"),
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { DocumensoCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Get template field
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Returns a single field. If you want to retrieve all the fields for a template, use the "Get Template" endpoint.
|
|
31
|
+
*/
|
|
32
|
+
export async function templatesFieldsGet(
|
|
33
|
+
client: DocumensoCore,
|
|
34
|
+
request: operations.FieldGetTemplateFieldRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): Promise<
|
|
37
|
+
Result<
|
|
38
|
+
operations.FieldGetTemplateFieldResponseBody,
|
|
39
|
+
| errors.ErrorBADREQUEST
|
|
40
|
+
| errors.ErrorNOTFOUND
|
|
41
|
+
| errors.Errorinternalservererror
|
|
42
|
+
| APIError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
const parsed = safeParse(
|
|
52
|
+
request,
|
|
53
|
+
(value) =>
|
|
54
|
+
operations.FieldGetTemplateFieldRequest$outboundSchema.parse(value),
|
|
55
|
+
"Input validation failed",
|
|
56
|
+
);
|
|
57
|
+
if (!parsed.ok) {
|
|
58
|
+
return parsed;
|
|
59
|
+
}
|
|
60
|
+
const payload = parsed.value;
|
|
61
|
+
const body = null;
|
|
62
|
+
|
|
63
|
+
const pathParams = {
|
|
64
|
+
fieldId: encodeSimple("fieldId", payload.fieldId, {
|
|
65
|
+
explode: false,
|
|
66
|
+
charEncoding: "percent",
|
|
67
|
+
}),
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const path = pathToFunc("/template/field/{fieldId}")(pathParams);
|
|
71
|
+
|
|
72
|
+
const headers = new Headers(compactMap({
|
|
73
|
+
Accept: "application/json",
|
|
74
|
+
}));
|
|
75
|
+
|
|
76
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
77
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
78
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
79
|
+
|
|
80
|
+
const context = {
|
|
81
|
+
operationID: "field-getTemplateField",
|
|
82
|
+
oAuth2Scopes: [],
|
|
83
|
+
|
|
84
|
+
resolvedSecurity: requestSecurity,
|
|
85
|
+
|
|
86
|
+
securitySource: client._options.apiKey,
|
|
87
|
+
retryConfig: options?.retries
|
|
88
|
+
|| client._options.retryConfig
|
|
89
|
+
|| { strategy: "none" },
|
|
90
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const requestRes = client._createRequest(context, {
|
|
94
|
+
security: requestSecurity,
|
|
95
|
+
method: "GET",
|
|
96
|
+
baseURL: options?.serverURL,
|
|
97
|
+
path: path,
|
|
98
|
+
headers: headers,
|
|
99
|
+
body: body,
|
|
100
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
101
|
+
}, options);
|
|
102
|
+
if (!requestRes.ok) {
|
|
103
|
+
return requestRes;
|
|
104
|
+
}
|
|
105
|
+
const req = requestRes.value;
|
|
106
|
+
|
|
107
|
+
const doResult = await client._do(req, {
|
|
108
|
+
context,
|
|
109
|
+
errorCodes: ["400", "404", "4XX", "500", "5XX"],
|
|
110
|
+
retryConfig: context.retryConfig,
|
|
111
|
+
retryCodes: context.retryCodes,
|
|
112
|
+
});
|
|
113
|
+
if (!doResult.ok) {
|
|
114
|
+
return doResult;
|
|
115
|
+
}
|
|
116
|
+
const response = doResult.value;
|
|
117
|
+
|
|
118
|
+
const responseFields = {
|
|
119
|
+
HttpMeta: { Response: response, Request: req },
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const [result] = await M.match<
|
|
123
|
+
operations.FieldGetTemplateFieldResponseBody,
|
|
124
|
+
| errors.ErrorBADREQUEST
|
|
125
|
+
| errors.ErrorNOTFOUND
|
|
126
|
+
| errors.Errorinternalservererror
|
|
127
|
+
| APIError
|
|
128
|
+
| SDKValidationError
|
|
129
|
+
| UnexpectedClientError
|
|
130
|
+
| InvalidRequestError
|
|
131
|
+
| RequestAbortedError
|
|
132
|
+
| RequestTimeoutError
|
|
133
|
+
| ConnectionError
|
|
134
|
+
>(
|
|
135
|
+
M.json(200, operations.FieldGetTemplateFieldResponseBody$inboundSchema),
|
|
136
|
+
M.jsonErr(400, errors.ErrorBADREQUEST$inboundSchema),
|
|
137
|
+
M.jsonErr(404, errors.ErrorNOTFOUND$inboundSchema),
|
|
138
|
+
M.jsonErr(500, errors.Errorinternalservererror$inboundSchema),
|
|
139
|
+
M.fail("4XX"),
|
|
140
|
+
M.fail("5XX"),
|
|
141
|
+
)(response, { extraFields: responseFields });
|
|
142
|
+
if (!result.ok) {
|
|
143
|
+
return result;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return result;
|
|
147
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { DocumensoCore } from "../core.js";
|
|
7
6
|
import { encodeJSON } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -33,7 +32,7 @@ export async function templatesRecipientsDelete(
|
|
|
33
32
|
options?: RequestOptions,
|
|
34
33
|
): Promise<
|
|
35
34
|
Result<
|
|
36
|
-
|
|
35
|
+
operations.RecipientDeleteTemplateRecipientResponseBody,
|
|
37
36
|
| errors.ErrorBADREQUEST
|
|
38
37
|
| errors.Errorinternalservererror
|
|
39
38
|
| APIError
|
|
@@ -112,7 +111,7 @@ export async function templatesRecipientsDelete(
|
|
|
112
111
|
};
|
|
113
112
|
|
|
114
113
|
const [result] = await M.match<
|
|
115
|
-
|
|
114
|
+
operations.RecipientDeleteTemplateRecipientResponseBody,
|
|
116
115
|
| errors.ErrorBADREQUEST
|
|
117
116
|
| errors.Errorinternalservererror
|
|
118
117
|
| APIError
|
|
@@ -123,7 +122,10 @@ export async function templatesRecipientsDelete(
|
|
|
123
122
|
| RequestTimeoutError
|
|
124
123
|
| ConnectionError
|
|
125
124
|
>(
|
|
126
|
-
M.json(
|
|
125
|
+
M.json(
|
|
126
|
+
200,
|
|
127
|
+
operations.RecipientDeleteTemplateRecipientResponseBody$inboundSchema,
|
|
128
|
+
),
|
|
127
129
|
M.jsonErr(400, errors.ErrorBADREQUEST$inboundSchema),
|
|
128
130
|
M.jsonErr(500, errors.Errorinternalservererror$inboundSchema),
|
|
129
131
|
M.fail("4XX"),
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { DocumensoCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Get template recipient
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Returns a single recipient. If you want to retrieve all the recipients for a template, use the "Get Template" endpoint.
|
|
31
|
+
*/
|
|
32
|
+
export async function templatesRecipientsGet(
|
|
33
|
+
client: DocumensoCore,
|
|
34
|
+
request: operations.RecipientGetTemplateRecipientRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): Promise<
|
|
37
|
+
Result<
|
|
38
|
+
operations.RecipientGetTemplateRecipientResponseBody,
|
|
39
|
+
| errors.ErrorBADREQUEST
|
|
40
|
+
| errors.ErrorNOTFOUND
|
|
41
|
+
| errors.Errorinternalservererror
|
|
42
|
+
| APIError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
const parsed = safeParse(
|
|
52
|
+
request,
|
|
53
|
+
(value) =>
|
|
54
|
+
operations.RecipientGetTemplateRecipientRequest$outboundSchema.parse(
|
|
55
|
+
value,
|
|
56
|
+
),
|
|
57
|
+
"Input validation failed",
|
|
58
|
+
);
|
|
59
|
+
if (!parsed.ok) {
|
|
60
|
+
return parsed;
|
|
61
|
+
}
|
|
62
|
+
const payload = parsed.value;
|
|
63
|
+
const body = null;
|
|
64
|
+
|
|
65
|
+
const pathParams = {
|
|
66
|
+
recipientId: encodeSimple("recipientId", payload.recipientId, {
|
|
67
|
+
explode: false,
|
|
68
|
+
charEncoding: "percent",
|
|
69
|
+
}),
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const path = pathToFunc("/template/recipient/{recipientId}")(pathParams);
|
|
73
|
+
|
|
74
|
+
const headers = new Headers(compactMap({
|
|
75
|
+
Accept: "application/json",
|
|
76
|
+
}));
|
|
77
|
+
|
|
78
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
79
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
80
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81
|
+
|
|
82
|
+
const context = {
|
|
83
|
+
operationID: "recipient-getTemplateRecipient",
|
|
84
|
+
oAuth2Scopes: [],
|
|
85
|
+
|
|
86
|
+
resolvedSecurity: requestSecurity,
|
|
87
|
+
|
|
88
|
+
securitySource: client._options.apiKey,
|
|
89
|
+
retryConfig: options?.retries
|
|
90
|
+
|| client._options.retryConfig
|
|
91
|
+
|| { strategy: "none" },
|
|
92
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const requestRes = client._createRequest(context, {
|
|
96
|
+
security: requestSecurity,
|
|
97
|
+
method: "GET",
|
|
98
|
+
baseURL: options?.serverURL,
|
|
99
|
+
path: path,
|
|
100
|
+
headers: headers,
|
|
101
|
+
body: body,
|
|
102
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
103
|
+
}, options);
|
|
104
|
+
if (!requestRes.ok) {
|
|
105
|
+
return requestRes;
|
|
106
|
+
}
|
|
107
|
+
const req = requestRes.value;
|
|
108
|
+
|
|
109
|
+
const doResult = await client._do(req, {
|
|
110
|
+
context,
|
|
111
|
+
errorCodes: ["400", "404", "4XX", "500", "5XX"],
|
|
112
|
+
retryConfig: context.retryConfig,
|
|
113
|
+
retryCodes: context.retryCodes,
|
|
114
|
+
});
|
|
115
|
+
if (!doResult.ok) {
|
|
116
|
+
return doResult;
|
|
117
|
+
}
|
|
118
|
+
const response = doResult.value;
|
|
119
|
+
|
|
120
|
+
const responseFields = {
|
|
121
|
+
HttpMeta: { Response: response, Request: req },
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const [result] = await M.match<
|
|
125
|
+
operations.RecipientGetTemplateRecipientResponseBody,
|
|
126
|
+
| errors.ErrorBADREQUEST
|
|
127
|
+
| errors.ErrorNOTFOUND
|
|
128
|
+
| errors.Errorinternalservererror
|
|
129
|
+
| APIError
|
|
130
|
+
| SDKValidationError
|
|
131
|
+
| UnexpectedClientError
|
|
132
|
+
| InvalidRequestError
|
|
133
|
+
| RequestAbortedError
|
|
134
|
+
| RequestTimeoutError
|
|
135
|
+
| ConnectionError
|
|
136
|
+
>(
|
|
137
|
+
M.json(
|
|
138
|
+
200,
|
|
139
|
+
operations.RecipientGetTemplateRecipientResponseBody$inboundSchema,
|
|
140
|
+
),
|
|
141
|
+
M.jsonErr(400, errors.ErrorBADREQUEST$inboundSchema),
|
|
142
|
+
M.jsonErr(404, errors.ErrorNOTFOUND$inboundSchema),
|
|
143
|
+
M.jsonErr(500, errors.Errorinternalservererror$inboundSchema),
|
|
144
|
+
M.fail("4XX"),
|
|
145
|
+
M.fail("5XX"),
|
|
146
|
+
)(response, { extraFields: responseFields });
|
|
147
|
+
if (!result.ok) {
|
|
148
|
+
return result;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return result;
|
|
152
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { Params, pathToFunc } from "./url.js";
|
|
|
11
11
|
* Contains the list of servers available to the SDK
|
|
12
12
|
*/
|
|
13
13
|
export const ServerList = [
|
|
14
|
-
"
|
|
14
|
+
"https://app.documenso.com/api/v2-beta",
|
|
15
15
|
] as const;
|
|
16
16
|
|
|
17
17
|
export type SDKOptions = {
|
|
@@ -54,8 +54,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
54
54
|
export const SDK_METADATA = {
|
|
55
55
|
language: "typescript",
|
|
56
56
|
openapiDocVersion: "0.0.0",
|
|
57
|
-
sdkVersion: "0.1.
|
|
58
|
-
genVersion: "2.493.
|
|
57
|
+
sdkVersion: "0.1.2",
|
|
58
|
+
genVersion: "2.493.31",
|
|
59
59
|
userAgent:
|
|
60
|
-
"speakeasy-sdk/typescript 0.1.
|
|
60
|
+
"speakeasy-sdk/typescript 0.1.2 2.493.31 0.0.0 @documenso/sdk-typescript",
|
|
61
61
|
} as const;
|