diff --git a/openapi.yaml b/openapi.yaml index e7a14f3..0df1304 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -8094,6 +8094,13 @@ paths: type: string description: Workspace unique_key required: true + - in: query + name: format + schema: + type: string + enum: + - json + - octet-stream - in: path name: id schema: @@ -8109,27 +8116,37 @@ paths: responses: '200': content: - application/json: + application/octet-stream: schema: - $ref: '#/components/schemas/Envelope' + type: string + format: binary description: '' '401': content: application/json: schema: $ref: '#/components/schemas/UnauthenticatedError' + application/octet-stream: + schema: + $ref: '#/components/schemas/UnauthenticatedError' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenError' + application/octet-stream: + schema: + $ref: '#/components/schemas/ForbiddenError' description: '' '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundError' + application/octet-stream: + schema: + $ref: '#/components/schemas/NotFoundError' description: '' /esign/envelopes/{id}/recipient/{recipient_id}/: put: @@ -9291,6 +9308,7 @@ components: email_address: type: string format: email + minLength: 5 country_code: type: string phone_number: diff --git a/src/api/services/EsignService.ts b/src/api/services/EsignService.ts index 6900681..359ac16 100644 --- a/src/api/services/EsignService.ts +++ b/src/api/services/EsignService.ts @@ -258,23 +258,28 @@ export class EsignService { /** * preview Envelope - * @returns Envelope + * @returns binary * @throws ApiError */ public static previewEnvelope({ id, + format, }: { /** * A unique integer value identifying this envelope. */ id: number, - }): CancelablePromise { + format?: 'json' | 'octet-stream', + }): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/esign/envelopes/{id}/preview/', path: { 'id': id, }, + query: { + 'format': format, + }, }); }