@createiq/backend 1.0.63 → 1.0.64

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/dist/index.cjs CHANGED
@@ -56,22 +56,22 @@ __export(index_exports, {
56
56
  checkForBrokenApprovers: () => checkForBrokenApprovers,
57
57
  checkOfflineNegotiatedDocument: () => checkOfflineNegotiatedDocument,
58
58
  checkSignedExecutedVersion: () => checkSignedExecutedVersion,
59
- checkSignedSignaturePagePdf: () => checkSignedSignaturePagePdf,
59
+ checkSignedSignaturePagePDF: () => checkSignedSignaturePagePDF,
60
60
  clonePreset: () => clonePreset,
61
61
  confirm: () => confirm,
62
62
  confirmExecutionVersion: () => confirmExecutionVersion,
63
63
  consentCodeCallback: () => consentCodeCallback,
64
64
  contactForNewApprover: () => contactForNewApprover,
65
65
  createAuditTrailJson: () => createAuditTrailJson,
66
- createAuditTrailPdf: () => createAuditTrailPdf,
67
- createAuditTrailXlsx: () => createAuditTrailXlsx,
66
+ createAuditTrailPDF: () => createAuditTrailPDF,
67
+ createAuditTrailXLSX: () => createAuditTrailXLSX,
68
68
  createBulkSet: () => createBulkSet,
69
69
  createGroup: () => createGroup,
70
70
  createNegotiation: () => createNegotiation,
71
71
  createPreset: () => createPreset,
72
72
  createPresetAuditTrailJson: () => createPresetAuditTrailJson,
73
- createPresetAuditTrailXlsx: () => createPresetAuditTrailXlsx,
74
- createSignaturePagePdf: () => createSignaturePagePdf,
73
+ createPresetAuditTrailXLSX: () => createPresetAuditTrailXLSX,
74
+ createSignaturePagePDF: () => createSignaturePagePDF,
75
75
  createSigningPack: () => createSigningPack,
76
76
  deleteApprovalComment: () => deleteApprovalComment,
77
77
  deleteAuxiliaryDocument: () => deleteAuxiliaryDocument,
@@ -117,7 +117,7 @@ __export(index_exports, {
117
117
  getApprovalComments: () => getApprovalComments,
118
118
  getApprovalHistory: () => getApprovalHistory,
119
119
  getApprovalRound: () => getApprovalRound,
120
- getAsCdm: () => getAsCdm,
120
+ getAsCDM: () => getAsCDM,
121
121
  getAuxiliaryDocument: () => getAuxiliaryDocument,
122
122
  getBulkSet: () => getBulkSet,
123
123
  getBulkSetAttachment: () => getBulkSetAttachment,
@@ -160,11 +160,11 @@ __export(index_exports, {
160
160
  getPreviousMajorVersionsNestedAnswerElections: () => getPreviousMajorVersionsNestedAnswerElections,
161
161
  getPreviousMajorVersionsNestedAnswerIds: () => getPreviousMajorVersionsNestedAnswerIds,
162
162
  getProfile: () => getProfile,
163
+ getSSOConfig: () => getSSOConfig,
163
164
  getSecurityContext: () => getSecurityContext,
164
165
  getSettings: () => getSettings,
165
166
  getSignedExecutedVersion: () => getSignedExecutedVersion,
166
- getSignedSignaturePagePdf: () => getSignedSignaturePagePdf,
167
- getSsoConfig: () => getSsoConfig,
167
+ getSignedSignaturePagePDF: () => getSignedSignaturePagePDF,
168
168
  getStatistics: () => getStatistics,
169
169
  getStatisticsOverview: () => getStatisticsOverview,
170
170
  getSubAccount: () => getSubAccount,
@@ -245,7 +245,7 @@ __export(index_exports, {
245
245
  revokePresetsAccess: () => revokePresetsAccess,
246
246
  revokeWindow: () => revokeWindow,
247
247
  scheduleExtraction: () => scheduleExtraction,
248
- schemaAvailableAsCdm: () => schemaAvailableAsCdm,
248
+ schemaAvailableAsCDM: () => schemaAvailableAsCDM,
249
249
  searchEntity: () => searchEntity,
250
250
  sendBulkSetToCounterpartiesInitial: () => sendBulkSetToCounterpartiesInitial,
251
251
  sendChaserEmail: () => sendChaserEmail,
@@ -304,12 +304,830 @@ __export(index_exports, {
304
304
  });
305
305
  module.exports = __toCommonJS(index_exports);
306
306
 
307
- // client/sdk.gen.ts
308
- var import_client_fetch2 = require("@hey-api/client-fetch");
307
+ // client/core/bodySerializer.gen.ts
308
+ var serializeFormDataPair = (data, key, value) => {
309
+ if (typeof value === "string" || value instanceof Blob) {
310
+ data.append(key, value);
311
+ } else if (value instanceof Date) {
312
+ data.append(key, value.toISOString());
313
+ } else {
314
+ data.append(key, JSON.stringify(value));
315
+ }
316
+ };
317
+ var formDataBodySerializer = {
318
+ bodySerializer: (body) => {
319
+ const data = new FormData();
320
+ Object.entries(body).forEach(([key, value]) => {
321
+ if (value === void 0 || value === null) {
322
+ return;
323
+ }
324
+ if (Array.isArray(value)) {
325
+ value.forEach((v) => serializeFormDataPair(data, key, v));
326
+ } else {
327
+ serializeFormDataPair(data, key, value);
328
+ }
329
+ });
330
+ return data;
331
+ }
332
+ };
333
+ var jsonBodySerializer = {
334
+ bodySerializer: (body) => JSON.stringify(
335
+ body,
336
+ (_key, value) => typeof value === "bigint" ? value.toString() : value
337
+ )
338
+ };
339
+
340
+ // client/core/params.gen.ts
341
+ var extraPrefixesMap = {
342
+ $body_: "body",
343
+ $headers_: "headers",
344
+ $path_: "path",
345
+ $query_: "query"
346
+ };
347
+ var extraPrefixes = Object.entries(extraPrefixesMap);
348
+
349
+ // client/core/serverSentEvents.gen.ts
350
+ var createSseClient = ({
351
+ onRequest,
352
+ onSseError,
353
+ onSseEvent,
354
+ responseTransformer,
355
+ responseValidator,
356
+ sseDefaultRetryDelay,
357
+ sseMaxRetryAttempts,
358
+ sseMaxRetryDelay,
359
+ sseSleepFn,
360
+ url,
361
+ ...options
362
+ }) => {
363
+ let lastEventId;
364
+ const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
365
+ const createStream = async function* () {
366
+ let retryDelay = sseDefaultRetryDelay ?? 3e3;
367
+ let attempt = 0;
368
+ const signal = options.signal ?? new AbortController().signal;
369
+ while (true) {
370
+ if (signal.aborted) break;
371
+ attempt++;
372
+ const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
373
+ if (lastEventId !== void 0) {
374
+ headers.set("Last-Event-ID", lastEventId);
375
+ }
376
+ try {
377
+ const requestInit = {
378
+ redirect: "follow",
379
+ ...options,
380
+ body: options.serializedBody,
381
+ headers,
382
+ signal
383
+ };
384
+ let request = new Request(url, requestInit);
385
+ if (onRequest) {
386
+ request = await onRequest(url, requestInit);
387
+ }
388
+ const _fetch = options.fetch ?? globalThis.fetch;
389
+ const response = await _fetch(request);
390
+ if (!response.ok)
391
+ throw new Error(
392
+ `SSE failed: ${response.status} ${response.statusText}`
393
+ );
394
+ if (!response.body) throw new Error("No body in SSE response");
395
+ const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
396
+ let buffer = "";
397
+ const abortHandler = () => {
398
+ try {
399
+ reader.cancel();
400
+ } catch {
401
+ }
402
+ };
403
+ signal.addEventListener("abort", abortHandler);
404
+ try {
405
+ while (true) {
406
+ const { done, value } = await reader.read();
407
+ if (done) break;
408
+ buffer += value;
409
+ const chunks = buffer.split("\n\n");
410
+ buffer = chunks.pop() ?? "";
411
+ for (const chunk of chunks) {
412
+ const lines = chunk.split("\n");
413
+ const dataLines = [];
414
+ let eventName;
415
+ for (const line of lines) {
416
+ if (line.startsWith("data:")) {
417
+ dataLines.push(line.replace(/^data:\s*/, ""));
418
+ } else if (line.startsWith("event:")) {
419
+ eventName = line.replace(/^event:\s*/, "");
420
+ } else if (line.startsWith("id:")) {
421
+ lastEventId = line.replace(/^id:\s*/, "");
422
+ } else if (line.startsWith("retry:")) {
423
+ const parsed = Number.parseInt(
424
+ line.replace(/^retry:\s*/, ""),
425
+ 10
426
+ );
427
+ if (!Number.isNaN(parsed)) {
428
+ retryDelay = parsed;
429
+ }
430
+ }
431
+ }
432
+ let data;
433
+ let parsedJson = false;
434
+ if (dataLines.length) {
435
+ const rawData = dataLines.join("\n");
436
+ try {
437
+ data = JSON.parse(rawData);
438
+ parsedJson = true;
439
+ } catch {
440
+ data = rawData;
441
+ }
442
+ }
443
+ if (parsedJson) {
444
+ if (responseValidator) {
445
+ await responseValidator(data);
446
+ }
447
+ if (responseTransformer) {
448
+ data = await responseTransformer(data);
449
+ }
450
+ }
451
+ onSseEvent?.({
452
+ data,
453
+ event: eventName,
454
+ id: lastEventId,
455
+ retry: retryDelay
456
+ });
457
+ if (dataLines.length) {
458
+ yield data;
459
+ }
460
+ }
461
+ }
462
+ } finally {
463
+ signal.removeEventListener("abort", abortHandler);
464
+ reader.releaseLock();
465
+ }
466
+ break;
467
+ } catch (error) {
468
+ onSseError?.(error);
469
+ if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
470
+ break;
471
+ }
472
+ const backoff = Math.min(
473
+ retryDelay * 2 ** (attempt - 1),
474
+ sseMaxRetryDelay ?? 3e4
475
+ );
476
+ await sleep(backoff);
477
+ }
478
+ }
479
+ };
480
+ const stream = createStream();
481
+ return { stream };
482
+ };
483
+
484
+ // client/core/pathSerializer.gen.ts
485
+ var separatorArrayExplode = (style) => {
486
+ switch (style) {
487
+ case "label":
488
+ return ".";
489
+ case "matrix":
490
+ return ";";
491
+ case "simple":
492
+ return ",";
493
+ default:
494
+ return "&";
495
+ }
496
+ };
497
+ var separatorArrayNoExplode = (style) => {
498
+ switch (style) {
499
+ case "form":
500
+ return ",";
501
+ case "pipeDelimited":
502
+ return "|";
503
+ case "spaceDelimited":
504
+ return "%20";
505
+ default:
506
+ return ",";
507
+ }
508
+ };
509
+ var separatorObjectExplode = (style) => {
510
+ switch (style) {
511
+ case "label":
512
+ return ".";
513
+ case "matrix":
514
+ return ";";
515
+ case "simple":
516
+ return ",";
517
+ default:
518
+ return "&";
519
+ }
520
+ };
521
+ var serializeArrayParam = ({
522
+ allowReserved,
523
+ explode,
524
+ name,
525
+ style,
526
+ value
527
+ }) => {
528
+ if (!explode) {
529
+ const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
530
+ switch (style) {
531
+ case "label":
532
+ return `.${joinedValues2}`;
533
+ case "matrix":
534
+ return `;${name}=${joinedValues2}`;
535
+ case "simple":
536
+ return joinedValues2;
537
+ default:
538
+ return `${name}=${joinedValues2}`;
539
+ }
540
+ }
541
+ const separator = separatorArrayExplode(style);
542
+ const joinedValues = value.map((v) => {
543
+ if (style === "label" || style === "simple") {
544
+ return allowReserved ? v : encodeURIComponent(v);
545
+ }
546
+ return serializePrimitiveParam({
547
+ allowReserved,
548
+ name,
549
+ value: v
550
+ });
551
+ }).join(separator);
552
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
553
+ };
554
+ var serializePrimitiveParam = ({
555
+ allowReserved,
556
+ name,
557
+ value
558
+ }) => {
559
+ if (value === void 0 || value === null) {
560
+ return "";
561
+ }
562
+ if (typeof value === "object") {
563
+ throw new Error(
564
+ "Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these."
565
+ );
566
+ }
567
+ return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
568
+ };
569
+ var serializeObjectParam = ({
570
+ allowReserved,
571
+ explode,
572
+ name,
573
+ style,
574
+ value,
575
+ valueOnly
576
+ }) => {
577
+ if (value instanceof Date) {
578
+ return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
579
+ }
580
+ if (style !== "deepObject" && !explode) {
581
+ let values = [];
582
+ Object.entries(value).forEach(([key, v]) => {
583
+ values = [
584
+ ...values,
585
+ key,
586
+ allowReserved ? v : encodeURIComponent(v)
587
+ ];
588
+ });
589
+ const joinedValues2 = values.join(",");
590
+ switch (style) {
591
+ case "form":
592
+ return `${name}=${joinedValues2}`;
593
+ case "label":
594
+ return `.${joinedValues2}`;
595
+ case "matrix":
596
+ return `;${name}=${joinedValues2}`;
597
+ default:
598
+ return joinedValues2;
599
+ }
600
+ }
601
+ const separator = separatorObjectExplode(style);
602
+ const joinedValues = Object.entries(value).map(
603
+ ([key, v]) => serializePrimitiveParam({
604
+ allowReserved,
605
+ name: style === "deepObject" ? `${name}[${key}]` : key,
606
+ value: v
607
+ })
608
+ ).join(separator);
609
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
610
+ };
611
+
612
+ // client/core/utils.gen.ts
613
+ var PATH_PARAM_RE = /\{[^{}]+\}/g;
614
+ var defaultPathSerializer = ({ path, url: _url }) => {
615
+ let url = _url;
616
+ const matches = _url.match(PATH_PARAM_RE);
617
+ if (matches) {
618
+ for (const match of matches) {
619
+ let explode = false;
620
+ let name = match.substring(1, match.length - 1);
621
+ let style = "simple";
622
+ if (name.endsWith("*")) {
623
+ explode = true;
624
+ name = name.substring(0, name.length - 1);
625
+ }
626
+ if (name.startsWith(".")) {
627
+ name = name.substring(1);
628
+ style = "label";
629
+ } else if (name.startsWith(";")) {
630
+ name = name.substring(1);
631
+ style = "matrix";
632
+ }
633
+ const value = path[name];
634
+ if (value === void 0 || value === null) {
635
+ continue;
636
+ }
637
+ if (Array.isArray(value)) {
638
+ url = url.replace(
639
+ match,
640
+ serializeArrayParam({ explode, name, style, value })
641
+ );
642
+ continue;
643
+ }
644
+ if (typeof value === "object") {
645
+ url = url.replace(
646
+ match,
647
+ serializeObjectParam({
648
+ explode,
649
+ name,
650
+ style,
651
+ value,
652
+ valueOnly: true
653
+ })
654
+ );
655
+ continue;
656
+ }
657
+ if (style === "matrix") {
658
+ url = url.replace(
659
+ match,
660
+ `;${serializePrimitiveParam({
661
+ name,
662
+ value
663
+ })}`
664
+ );
665
+ continue;
666
+ }
667
+ const replaceValue = encodeURIComponent(
668
+ style === "label" ? `.${value}` : value
669
+ );
670
+ url = url.replace(match, replaceValue);
671
+ }
672
+ }
673
+ return url;
674
+ };
675
+ var getUrl = ({
676
+ baseUrl,
677
+ path,
678
+ query,
679
+ querySerializer,
680
+ url: _url
681
+ }) => {
682
+ const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
683
+ let url = (baseUrl ?? "") + pathUrl;
684
+ if (path) {
685
+ url = defaultPathSerializer({ path, url });
686
+ }
687
+ let search = query ? querySerializer(query) : "";
688
+ if (search.startsWith("?")) {
689
+ search = search.substring(1);
690
+ }
691
+ if (search) {
692
+ url += `?${search}`;
693
+ }
694
+ return url;
695
+ };
696
+ function getValidRequestBody(options) {
697
+ const hasBody = options.body !== void 0;
698
+ const isSerializedBody = hasBody && options.bodySerializer;
699
+ if (isSerializedBody) {
700
+ if ("serializedBody" in options) {
701
+ const hasSerializedBody = options.serializedBody !== void 0 && options.serializedBody !== "";
702
+ return hasSerializedBody ? options.serializedBody : null;
703
+ }
704
+ return options.body !== "" ? options.body : null;
705
+ }
706
+ if (hasBody) {
707
+ return options.body;
708
+ }
709
+ return void 0;
710
+ }
711
+
712
+ // client/core/auth.gen.ts
713
+ var getAuthToken = async (auth, callback) => {
714
+ const token = typeof callback === "function" ? await callback(auth) : callback;
715
+ if (!token) {
716
+ return;
717
+ }
718
+ if (auth.scheme === "bearer") {
719
+ return `Bearer ${token}`;
720
+ }
721
+ if (auth.scheme === "basic") {
722
+ return `Basic ${btoa(token)}`;
723
+ }
724
+ return token;
725
+ };
726
+
727
+ // client/client/utils.gen.ts
728
+ var createQuerySerializer = ({
729
+ parameters = {},
730
+ ...args
731
+ } = {}) => {
732
+ const querySerializer = (queryParams) => {
733
+ const search = [];
734
+ if (queryParams && typeof queryParams === "object") {
735
+ for (const name in queryParams) {
736
+ const value = queryParams[name];
737
+ if (value === void 0 || value === null) {
738
+ continue;
739
+ }
740
+ const options = parameters[name] || args;
741
+ if (Array.isArray(value)) {
742
+ const serializedArray = serializeArrayParam({
743
+ allowReserved: options.allowReserved,
744
+ explode: true,
745
+ name,
746
+ style: "form",
747
+ value,
748
+ ...options.array
749
+ });
750
+ if (serializedArray) search.push(serializedArray);
751
+ } else if (typeof value === "object") {
752
+ const serializedObject = serializeObjectParam({
753
+ allowReserved: options.allowReserved,
754
+ explode: true,
755
+ name,
756
+ style: "deepObject",
757
+ value,
758
+ ...options.object
759
+ });
760
+ if (serializedObject) search.push(serializedObject);
761
+ } else {
762
+ const serializedPrimitive = serializePrimitiveParam({
763
+ allowReserved: options.allowReserved,
764
+ name,
765
+ value
766
+ });
767
+ if (serializedPrimitive) search.push(serializedPrimitive);
768
+ }
769
+ }
770
+ }
771
+ return search.join("&");
772
+ };
773
+ return querySerializer;
774
+ };
775
+ var getParseAs = (contentType) => {
776
+ if (!contentType) {
777
+ return "stream";
778
+ }
779
+ const cleanContent = contentType.split(";")[0]?.trim();
780
+ if (!cleanContent) {
781
+ return;
782
+ }
783
+ if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
784
+ return "json";
785
+ }
786
+ if (cleanContent === "multipart/form-data") {
787
+ return "formData";
788
+ }
789
+ if (["application/", "audio/", "image/", "video/"].some(
790
+ (type) => cleanContent.startsWith(type)
791
+ )) {
792
+ return "blob";
793
+ }
794
+ if (cleanContent.startsWith("text/")) {
795
+ return "text";
796
+ }
797
+ return;
798
+ };
799
+ var checkForExistence = (options, name) => {
800
+ if (!name) {
801
+ return false;
802
+ }
803
+ if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
804
+ return true;
805
+ }
806
+ return false;
807
+ };
808
+ var setAuthParams = async ({
809
+ security,
810
+ ...options
811
+ }) => {
812
+ for (const auth of security) {
813
+ if (checkForExistence(options, auth.name)) {
814
+ continue;
815
+ }
816
+ const token = await getAuthToken(auth, options.auth);
817
+ if (!token) {
818
+ continue;
819
+ }
820
+ const name = auth.name ?? "Authorization";
821
+ switch (auth.in) {
822
+ case "query":
823
+ if (!options.query) {
824
+ options.query = {};
825
+ }
826
+ options.query[name] = token;
827
+ break;
828
+ case "cookie":
829
+ options.headers.append("Cookie", `${name}=${token}`);
830
+ break;
831
+ case "header":
832
+ default:
833
+ options.headers.set(name, token);
834
+ break;
835
+ }
836
+ }
837
+ };
838
+ var buildUrl = (options) => getUrl({
839
+ baseUrl: options.baseUrl,
840
+ path: options.path,
841
+ query: options.query,
842
+ querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
843
+ url: options.url
844
+ });
845
+ var mergeConfigs = (a, b) => {
846
+ const config = { ...a, ...b };
847
+ if (config.baseUrl?.endsWith("/")) {
848
+ config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
849
+ }
850
+ config.headers = mergeHeaders(a.headers, b.headers);
851
+ return config;
852
+ };
853
+ var headersEntries = (headers) => {
854
+ const entries = [];
855
+ headers.forEach((value, key) => {
856
+ entries.push([key, value]);
857
+ });
858
+ return entries;
859
+ };
860
+ var mergeHeaders = (...headers) => {
861
+ const mergedHeaders = new Headers();
862
+ for (const header of headers) {
863
+ if (!header) {
864
+ continue;
865
+ }
866
+ const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);
867
+ for (const [key, value] of iterator) {
868
+ if (value === null) {
869
+ mergedHeaders.delete(key);
870
+ } else if (Array.isArray(value)) {
871
+ for (const v of value) {
872
+ mergedHeaders.append(key, v);
873
+ }
874
+ } else if (value !== void 0) {
875
+ mergedHeaders.set(
876
+ key,
877
+ typeof value === "object" ? JSON.stringify(value) : value
878
+ );
879
+ }
880
+ }
881
+ }
882
+ return mergedHeaders;
883
+ };
884
+ var Interceptors = class {
885
+ fns = [];
886
+ clear() {
887
+ this.fns = [];
888
+ }
889
+ eject(id) {
890
+ const index = this.getInterceptorIndex(id);
891
+ if (this.fns[index]) {
892
+ this.fns[index] = null;
893
+ }
894
+ }
895
+ exists(id) {
896
+ const index = this.getInterceptorIndex(id);
897
+ return Boolean(this.fns[index]);
898
+ }
899
+ getInterceptorIndex(id) {
900
+ if (typeof id === "number") {
901
+ return this.fns[id] ? id : -1;
902
+ }
903
+ return this.fns.indexOf(id);
904
+ }
905
+ update(id, fn) {
906
+ const index = this.getInterceptorIndex(id);
907
+ if (this.fns[index]) {
908
+ this.fns[index] = fn;
909
+ return id;
910
+ }
911
+ return false;
912
+ }
913
+ use(fn) {
914
+ this.fns.push(fn);
915
+ return this.fns.length - 1;
916
+ }
917
+ };
918
+ var createInterceptors = () => ({
919
+ error: new Interceptors(),
920
+ request: new Interceptors(),
921
+ response: new Interceptors()
922
+ });
923
+ var defaultQuerySerializer = createQuerySerializer({
924
+ allowReserved: false,
925
+ array: {
926
+ explode: true,
927
+ style: "form"
928
+ },
929
+ object: {
930
+ explode: true,
931
+ style: "deepObject"
932
+ }
933
+ });
934
+ var defaultHeaders = {
935
+ "Content-Type": "application/json"
936
+ };
937
+ var createConfig = (override = {}) => ({
938
+ ...jsonBodySerializer,
939
+ headers: defaultHeaders,
940
+ parseAs: "auto",
941
+ querySerializer: defaultQuerySerializer,
942
+ ...override
943
+ });
944
+
945
+ // client/client/client.gen.ts
946
+ var createClient = (config = {}) => {
947
+ let _config = mergeConfigs(createConfig(), config);
948
+ const getConfig = () => ({ ..._config });
949
+ const setConfig = (config2) => {
950
+ _config = mergeConfigs(_config, config2);
951
+ return getConfig();
952
+ };
953
+ const interceptors = createInterceptors();
954
+ const beforeRequest = async (options) => {
955
+ const opts = {
956
+ ..._config,
957
+ ...options,
958
+ fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
959
+ headers: mergeHeaders(_config.headers, options.headers),
960
+ serializedBody: void 0
961
+ };
962
+ if (opts.security) {
963
+ await setAuthParams({
964
+ ...opts,
965
+ security: opts.security
966
+ });
967
+ }
968
+ if (opts.requestValidator) {
969
+ await opts.requestValidator(opts);
970
+ }
971
+ if (opts.body !== void 0 && opts.bodySerializer) {
972
+ opts.serializedBody = opts.bodySerializer(opts.body);
973
+ }
974
+ if (opts.body === void 0 || opts.serializedBody === "") {
975
+ opts.headers.delete("Content-Type");
976
+ }
977
+ const url = buildUrl(opts);
978
+ return { opts, url };
979
+ };
980
+ const request = async (options) => {
981
+ const { opts, url } = await beforeRequest(options);
982
+ const requestInit = {
983
+ redirect: "follow",
984
+ ...opts,
985
+ body: getValidRequestBody(opts)
986
+ };
987
+ let request2 = new Request(url, requestInit);
988
+ for (const fn of interceptors.request.fns) {
989
+ if (fn) {
990
+ request2 = await fn(request2, opts);
991
+ }
992
+ }
993
+ const _fetch = opts.fetch;
994
+ let response = await _fetch(request2);
995
+ for (const fn of interceptors.response.fns) {
996
+ if (fn) {
997
+ response = await fn(response, request2, opts);
998
+ }
999
+ }
1000
+ const result = {
1001
+ request: request2,
1002
+ response
1003
+ };
1004
+ if (response.ok) {
1005
+ const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
1006
+ if (response.status === 204 || response.headers.get("Content-Length") === "0") {
1007
+ let emptyData;
1008
+ switch (parseAs) {
1009
+ case "arrayBuffer":
1010
+ case "blob":
1011
+ case "text":
1012
+ emptyData = await response[parseAs]();
1013
+ break;
1014
+ case "formData":
1015
+ emptyData = new FormData();
1016
+ break;
1017
+ case "stream":
1018
+ emptyData = response.body;
1019
+ break;
1020
+ case "json":
1021
+ default:
1022
+ emptyData = {};
1023
+ break;
1024
+ }
1025
+ return opts.responseStyle === "data" ? emptyData : {
1026
+ data: emptyData,
1027
+ ...result
1028
+ };
1029
+ }
1030
+ let data;
1031
+ switch (parseAs) {
1032
+ case "arrayBuffer":
1033
+ case "blob":
1034
+ case "formData":
1035
+ case "json":
1036
+ case "text":
1037
+ data = await response[parseAs]();
1038
+ break;
1039
+ case "stream":
1040
+ return opts.responseStyle === "data" ? response.body : {
1041
+ data: response.body,
1042
+ ...result
1043
+ };
1044
+ }
1045
+ if (parseAs === "json") {
1046
+ if (opts.responseValidator) {
1047
+ await opts.responseValidator(data);
1048
+ }
1049
+ if (opts.responseTransformer) {
1050
+ data = await opts.responseTransformer(data);
1051
+ }
1052
+ }
1053
+ return opts.responseStyle === "data" ? data : {
1054
+ data,
1055
+ ...result
1056
+ };
1057
+ }
1058
+ const textError = await response.text();
1059
+ let jsonError;
1060
+ try {
1061
+ jsonError = JSON.parse(textError);
1062
+ } catch {
1063
+ }
1064
+ const error = jsonError ?? textError;
1065
+ let finalError = error;
1066
+ for (const fn of interceptors.error.fns) {
1067
+ if (fn) {
1068
+ finalError = await fn(error, response, request2, opts);
1069
+ }
1070
+ }
1071
+ finalError = finalError || {};
1072
+ if (opts.throwOnError) {
1073
+ throw finalError;
1074
+ }
1075
+ return opts.responseStyle === "data" ? void 0 : {
1076
+ error: finalError,
1077
+ ...result
1078
+ };
1079
+ };
1080
+ const makeMethodFn = (method) => (options) => request({ ...options, method });
1081
+ const makeSseFn = (method) => async (options) => {
1082
+ const { opts, url } = await beforeRequest(options);
1083
+ return createSseClient({
1084
+ ...opts,
1085
+ body: opts.body,
1086
+ headers: opts.headers,
1087
+ method,
1088
+ onRequest: async (url2, init) => {
1089
+ let request2 = new Request(url2, init);
1090
+ for (const fn of interceptors.request.fns) {
1091
+ if (fn) {
1092
+ request2 = await fn(request2, opts);
1093
+ }
1094
+ }
1095
+ return request2;
1096
+ },
1097
+ url
1098
+ });
1099
+ };
1100
+ return {
1101
+ buildUrl,
1102
+ connect: makeMethodFn("CONNECT"),
1103
+ delete: makeMethodFn("DELETE"),
1104
+ get: makeMethodFn("GET"),
1105
+ getConfig,
1106
+ head: makeMethodFn("HEAD"),
1107
+ interceptors,
1108
+ options: makeMethodFn("OPTIONS"),
1109
+ patch: makeMethodFn("PATCH"),
1110
+ post: makeMethodFn("POST"),
1111
+ put: makeMethodFn("PUT"),
1112
+ request,
1113
+ setConfig,
1114
+ sse: {
1115
+ connect: makeSseFn("CONNECT"),
1116
+ delete: makeSseFn("DELETE"),
1117
+ get: makeSseFn("GET"),
1118
+ head: makeSseFn("HEAD"),
1119
+ options: makeSseFn("OPTIONS"),
1120
+ patch: makeSseFn("PATCH"),
1121
+ post: makeSseFn("POST"),
1122
+ put: makeSseFn("PUT"),
1123
+ trace: makeSseFn("TRACE")
1124
+ },
1125
+ trace: makeMethodFn("TRACE")
1126
+ };
1127
+ };
309
1128
 
310
1129
  // client/client.gen.ts
311
- var import_client_fetch = require("@hey-api/client-fetch");
312
- var client = (0, import_client_fetch.createClient)((0, import_client_fetch.createConfig)());
1130
+ var client = createClient(createConfig());
313
1131
 
314
1132
  // client/sdk.gen.ts
315
1133
  var getNegotiationDeltas = (options) => {
@@ -324,7 +1142,7 @@ var getNegotiationDeltas = (options) => {
324
1142
  ...options,
325
1143
  headers: {
326
1144
  "Content-Type": "application/json",
327
- ...options?.headers
1145
+ ...options.headers
328
1146
  }
329
1147
  });
330
1148
  };
@@ -436,7 +1254,7 @@ var addWatchers = (options) => {
436
1254
  ...options,
437
1255
  headers: {
438
1256
  "Content-Type": "application/json",
439
- ...options?.headers
1257
+ ...options.headers
440
1258
  }
441
1259
  });
442
1260
  };
@@ -464,7 +1282,7 @@ var revertToAmending = (options) => {
464
1282
  ...options,
465
1283
  headers: {
466
1284
  "Content-Type": "application/json",
467
- ...options?.headers
1285
+ ...options.headers
468
1286
  }
469
1287
  });
470
1288
  };
@@ -480,7 +1298,7 @@ var setReceiverEntity = (options) => {
480
1298
  ...options,
481
1299
  headers: {
482
1300
  "Content-Type": "application/json",
483
- ...options?.headers
1301
+ ...options.headers
484
1302
  }
485
1303
  });
486
1304
  };
@@ -496,7 +1314,7 @@ var markCommentEventsAsViewed = (options) => {
496
1314
  ...options,
497
1315
  headers: {
498
1316
  "Content-Type": "application/json",
499
- ...options?.headers
1317
+ ...options.headers
500
1318
  }
501
1319
  });
502
1320
  };
@@ -512,7 +1330,7 @@ var presetSetFinalApproval = (options) => {
512
1330
  ...options,
513
1331
  headers: {
514
1332
  "Content-Type": "application/json",
515
- ...options?.headers
1333
+ ...options.headers
516
1334
  }
517
1335
  });
518
1336
  };
@@ -546,7 +1364,7 @@ var createPreset = (options) => {
546
1364
  ...options,
547
1365
  headers: {
548
1366
  "Content-Type": "application/json",
549
- ...options?.headers
1367
+ ...options.headers
550
1368
  }
551
1369
  });
552
1370
  };
@@ -562,7 +1380,7 @@ var presetGetMultipleNestedAnswers = (options) => {
562
1380
  ...options,
563
1381
  headers: {
564
1382
  "Content-Type": "application/json",
565
- ...options?.headers
1383
+ ...options.headers
566
1384
  }
567
1385
  });
568
1386
  };
@@ -578,7 +1396,7 @@ var presetSetMultipleNestedAnswers = (options) => {
578
1396
  ...options,
579
1397
  headers: {
580
1398
  "Content-Type": "application/json",
581
- ...options?.headers
1399
+ ...options.headers
582
1400
  }
583
1401
  });
584
1402
  };
@@ -606,7 +1424,7 @@ var updateCommentReaction = (options) => {
606
1424
  ...options,
607
1425
  headers: {
608
1426
  "Content-Type": "application/json",
609
- ...options?.headers
1427
+ ...options.headers
610
1428
  }
611
1429
  });
612
1430
  };
@@ -622,7 +1440,7 @@ var overrideApproveFinalDocument = (options) => {
622
1440
  ...options,
623
1441
  headers: {
624
1442
  "Content-Type": "application/json",
625
- ...options?.headers
1443
+ ...options.headers
626
1444
  }
627
1445
  });
628
1446
  };
@@ -662,7 +1480,7 @@ var updateSelectedElections = (options) => {
662
1480
  ...options,
663
1481
  headers: {
664
1482
  "Content-Type": "application/json",
665
- ...options?.headers
1483
+ ...options.headers
666
1484
  }
667
1485
  });
668
1486
  };
@@ -690,7 +1508,7 @@ var presetEditAnswers = (options) => {
690
1508
  ...options,
691
1509
  headers: {
692
1510
  "Content-Type": "application/json",
693
- ...options?.headers
1511
+ ...options.headers
694
1512
  }
695
1513
  });
696
1514
  };
@@ -706,7 +1524,7 @@ var deleteComment = (options) => {
706
1524
  ...options,
707
1525
  headers: {
708
1526
  "Content-Type": "application/json",
709
- ...options?.headers
1527
+ ...options.headers
710
1528
  }
711
1529
  });
712
1530
  };
@@ -722,7 +1540,7 @@ var updateComment = (options) => {
722
1540
  ...options,
723
1541
  headers: {
724
1542
  "Content-Type": "application/json",
725
- ...options?.headers
1543
+ ...options.headers
726
1544
  }
727
1545
  });
728
1546
  };
@@ -750,7 +1568,7 @@ var setGeneralCoverNote = (options) => {
750
1568
  ...options,
751
1569
  headers: {
752
1570
  "Content-Type": "application/json",
753
- ...options?.headers
1571
+ ...options.headers
754
1572
  }
755
1573
  });
756
1574
  };
@@ -778,7 +1596,7 @@ var validateEntities = (options) => {
778
1596
  ...options,
779
1597
  headers: {
780
1598
  "Content-Type": "application/json",
781
- ...options?.headers
1599
+ ...options.headers
782
1600
  }
783
1601
  });
784
1602
  };
@@ -818,7 +1636,7 @@ var unsubscribe = (options) => {
818
1636
  ...options,
819
1637
  headers: {
820
1638
  "Content-Type": "application/json",
821
- ...options?.headers
1639
+ ...options.headers
822
1640
  }
823
1641
  });
824
1642
  };
@@ -834,7 +1652,7 @@ var overrideRejectFinalDocument = (options) => {
834
1652
  ...options,
835
1653
  headers: {
836
1654
  "Content-Type": "application/json",
837
- ...options?.headers
1655
+ ...options.headers
838
1656
  }
839
1657
  });
840
1658
  };
@@ -862,7 +1680,7 @@ var updateExtractionFeedback = (options) => {
862
1680
  ...options,
863
1681
  headers: {
864
1682
  "Content-Type": "application/json",
865
- ...options?.headers
1683
+ ...options.headers
866
1684
  }
867
1685
  });
868
1686
  };
@@ -902,7 +1720,7 @@ var addElectionRejection = (options) => {
902
1720
  ...options,
903
1721
  headers: {
904
1722
  "Content-Type": "application/json",
905
- ...options?.headers
1723
+ ...options.headers
906
1724
  }
907
1725
  });
908
1726
  };
@@ -966,7 +1784,7 @@ var moveEntity = (options) => {
966
1784
  ...options,
967
1785
  headers: {
968
1786
  "Content-Type": "application/json",
969
- ...options?.headers
1787
+ ...options.headers
970
1788
  }
971
1789
  });
972
1790
  };
@@ -994,7 +1812,7 @@ var shareSubAccount = (options) => {
994
1812
  ...options,
995
1813
  headers: {
996
1814
  "Content-Type": "application/json",
997
- ...options?.headers
1815
+ ...options.headers
998
1816
  }
999
1817
  });
1000
1818
  };
@@ -1010,7 +1828,7 @@ var assignEntity = (options) => {
1010
1828
  ...options,
1011
1829
  headers: {
1012
1830
  "Content-Type": "application/json",
1013
- ...options?.headers
1831
+ ...options.headers
1014
1832
  }
1015
1833
  });
1016
1834
  };
@@ -1026,7 +1844,7 @@ var setFinalApproval = (options) => {
1026
1844
  ...options,
1027
1845
  headers: {
1028
1846
  "Content-Type": "application/json",
1029
- ...options?.headers
1847
+ ...options.headers
1030
1848
  }
1031
1849
  });
1032
1850
  };
@@ -1042,7 +1860,7 @@ var setElectionApproval = (options) => {
1042
1860
  ...options,
1043
1861
  headers: {
1044
1862
  "Content-Type": "application/json",
1045
- ...options?.headers
1863
+ ...options.headers
1046
1864
  }
1047
1865
  });
1048
1866
  };
@@ -1082,7 +1900,7 @@ var editApprovalComment = (options) => {
1082
1900
  ...options,
1083
1901
  headers: {
1084
1902
  "Content-Type": "application/json",
1085
- ...options?.headers
1903
+ ...options.headers
1086
1904
  }
1087
1905
  });
1088
1906
  };
@@ -1182,7 +2000,7 @@ var updateGroupName = (options) => {
1182
2000
  ...options,
1183
2001
  headers: {
1184
2002
  "Content-Type": "application/json",
1185
- ...options?.headers
2003
+ ...options.headers
1186
2004
  }
1187
2005
  });
1188
2006
  };
@@ -1198,7 +2016,7 @@ var changeSigningMode = (options) => {
1198
2016
  ...options,
1199
2017
  headers: {
1200
2018
  "Content-Type": "application/json",
1201
- ...options?.headers
2019
+ ...options.headers
1202
2020
  }
1203
2021
  });
1204
2022
  };
@@ -1214,7 +2032,7 @@ var sendToCounterparty = (options) => {
1214
2032
  ...options,
1215
2033
  headers: {
1216
2034
  "Content-Type": "application/json",
1217
- ...options?.headers
2035
+ ...options.headers
1218
2036
  }
1219
2037
  });
1220
2038
  };
@@ -1266,13 +2084,13 @@ var shareNegotiation = (options) => {
1266
2084
  ...options,
1267
2085
  headers: {
1268
2086
  "Content-Type": "application/json",
1269
- ...options?.headers
2087
+ ...options.headers
1270
2088
  }
1271
2089
  });
1272
2090
  };
1273
2091
  var setBulkSetAttachments = (options) => {
1274
2092
  return (options.client ?? client).post({
1275
- ...import_client_fetch2.formDataBodySerializer,
2093
+ ...formDataBodySerializer,
1276
2094
  security: [
1277
2095
  {
1278
2096
  name: "Authorization",
@@ -1283,7 +2101,7 @@ var setBulkSetAttachments = (options) => {
1283
2101
  ...options,
1284
2102
  headers: {
1285
2103
  "Content-Type": null,
1286
- ...options?.headers
2104
+ ...options.headers
1287
2105
  }
1288
2106
  });
1289
2107
  };
@@ -1299,7 +2117,7 @@ var addElectionApproval = (options) => {
1299
2117
  ...options,
1300
2118
  headers: {
1301
2119
  "Content-Type": "application/json",
1302
- ...options?.headers
2120
+ ...options.headers
1303
2121
  }
1304
2122
  });
1305
2123
  };
@@ -1327,7 +2145,7 @@ var rejectFinalDocument = (options) => {
1327
2145
  ...options,
1328
2146
  headers: {
1329
2147
  "Content-Type": "application/json",
1330
- ...options?.headers
2148
+ ...options.headers
1331
2149
  }
1332
2150
  });
1333
2151
  };
@@ -1379,7 +2197,7 @@ var updateNegotiationsToMatch = (options) => {
1379
2197
  ...options,
1380
2198
  headers: {
1381
2199
  "Content-Type": "application/json",
1382
- ...options?.headers
2200
+ ...options.headers
1383
2201
  }
1384
2202
  });
1385
2203
  };
@@ -1419,7 +2237,7 @@ var editDefaultAnswers = (options) => {
1419
2237
  ...options,
1420
2238
  headers: {
1421
2239
  "Content-Type": "application/json",
1422
- ...options?.headers
2240
+ ...options.headers
1423
2241
  }
1424
2242
  });
1425
2243
  };
@@ -1447,7 +2265,7 @@ var fixApprovalRules = (options) => {
1447
2265
  ...options,
1448
2266
  headers: {
1449
2267
  "Content-Type": "application/json",
1450
- ...options?.headers
2268
+ ...options.headers
1451
2269
  }
1452
2270
  });
1453
2271
  };
@@ -1475,7 +2293,7 @@ var sendGroupToCounterparty = (options) => {
1475
2293
  ...options,
1476
2294
  headers: {
1477
2295
  "Content-Type": "application/json",
1478
- ...options?.headers
2296
+ ...options.headers
1479
2297
  }
1480
2298
  });
1481
2299
  };
@@ -1515,7 +2333,7 @@ var overrideElectionRejection = (options) => {
1515
2333
  ...options,
1516
2334
  headers: {
1517
2335
  "Content-Type": "application/json",
1518
- ...options?.headers
2336
+ ...options.headers
1519
2337
  }
1520
2338
  });
1521
2339
  };
@@ -1531,7 +2349,7 @@ var overrideElectionApproval = (options) => {
1531
2349
  ...options,
1532
2350
  headers: {
1533
2351
  "Content-Type": "application/json",
1534
- ...options?.headers
2352
+ ...options.headers
1535
2353
  }
1536
2354
  });
1537
2355
  };
@@ -1559,7 +2377,7 @@ var listPotentialPresetAdvisors = (options) => {
1559
2377
  ...options
1560
2378
  });
1561
2379
  };
1562
- var getAsCdm = (options) => {
2380
+ var getAsCDM = (options) => {
1563
2381
  return (options.client ?? client).get({
1564
2382
  security: [
1565
2383
  {
@@ -1607,7 +2425,7 @@ var revokePresetsAccess = (options) => {
1607
2425
  ...options,
1608
2426
  headers: {
1609
2427
  "Content-Type": "application/json",
1610
- ...options?.headers
2428
+ ...options.headers
1611
2429
  }
1612
2430
  });
1613
2431
  };
@@ -1623,7 +2441,7 @@ var grantPresetsAccess = (options) => {
1623
2441
  ...options,
1624
2442
  headers: {
1625
2443
  "Content-Type": "application/json",
1626
- ...options?.headers
2444
+ ...options.headers
1627
2445
  }
1628
2446
  });
1629
2447
  };
@@ -1651,7 +2469,7 @@ var removeWatchers = (options) => {
1651
2469
  ...options,
1652
2470
  headers: {
1653
2471
  "Content-Type": "application/json",
1654
- ...options?.headers
2472
+ ...options.headers
1655
2473
  }
1656
2474
  });
1657
2475
  };
@@ -1679,7 +2497,7 @@ var updateMetadata = (options) => {
1679
2497
  ...options,
1680
2498
  headers: {
1681
2499
  "Content-Type": "application/json",
1682
- ...options?.headers
2500
+ ...options.headers
1683
2501
  }
1684
2502
  });
1685
2503
  };
@@ -1707,7 +2525,7 @@ var generateExecutedNegotiationsReportAsExcel = (options) => {
1707
2525
  ...options,
1708
2526
  headers: {
1709
2527
  "Content-Type": "application/json",
1710
- ...options?.headers
2528
+ ...options.headers
1711
2529
  }
1712
2530
  });
1713
2531
  };
@@ -1735,7 +2553,7 @@ var setSignedSignaturePageForParty = (options) => {
1735
2553
  ...options,
1736
2554
  headers: {
1737
2555
  "Content-Type": "application/pdf",
1738
- ...options?.headers
2556
+ ...options.headers
1739
2557
  }
1740
2558
  });
1741
2559
  };
@@ -1763,7 +2581,7 @@ var markActivityEventsAsViewed = (options) => {
1763
2581
  ...options,
1764
2582
  headers: {
1765
2583
  "Content-Type": "application/json",
1766
- ...options?.headers
2584
+ ...options.headers
1767
2585
  }
1768
2586
  });
1769
2587
  };
@@ -1791,7 +2609,7 @@ var patchAnswers = (options) => {
1791
2609
  ...options,
1792
2610
  headers: {
1793
2611
  "Content-Type": "application/json-patch+json",
1794
- ...options?.headers
2612
+ ...options.headers
1795
2613
  }
1796
2614
  });
1797
2615
  };
@@ -1807,7 +2625,7 @@ var editAnswers = (options) => {
1807
2625
  ...options,
1808
2626
  headers: {
1809
2627
  "Content-Type": "application/json",
1810
- ...options?.headers
2628
+ ...options.headers
1811
2629
  }
1812
2630
  });
1813
2631
  };
@@ -1919,7 +2737,7 @@ var createGroup = (options) => {
1919
2737
  ...options,
1920
2738
  headers: {
1921
2739
  "Content-Type": "application/json",
1922
- ...options?.headers
2740
+ ...options.headers
1923
2741
  }
1924
2742
  });
1925
2743
  };
@@ -2019,7 +2837,7 @@ var approveFinalDocument = (options) => {
2019
2837
  ...options,
2020
2838
  headers: {
2021
2839
  "Content-Type": "application/json",
2022
- ...options?.headers
2840
+ ...options.headers
2023
2841
  }
2024
2842
  });
2025
2843
  };
@@ -2047,7 +2865,7 @@ var resetUserAnswers = (options) => {
2047
2865
  ...options,
2048
2866
  headers: {
2049
2867
  "Content-Type": "application/json",
2050
- ...options?.headers
2868
+ ...options.headers
2051
2869
  }
2052
2870
  });
2053
2871
  };
@@ -2063,7 +2881,7 @@ var updateUserAnswers = (options) => {
2063
2881
  ...options,
2064
2882
  headers: {
2065
2883
  "Content-Type": "application/json",
2066
- ...options?.headers
2884
+ ...options.headers
2067
2885
  }
2068
2886
  });
2069
2887
  };
@@ -2127,11 +2945,11 @@ var updateGroupMembers = (options) => {
2127
2945
  ...options,
2128
2946
  headers: {
2129
2947
  "Content-Type": "application/json",
2130
- ...options?.headers
2948
+ ...options.headers
2131
2949
  }
2132
2950
  });
2133
2951
  };
2134
- var getSignedSignaturePagePdf = (options) => {
2952
+ var getSignedSignaturePagePDF = (options) => {
2135
2953
  return (options.client ?? client).get({
2136
2954
  security: [
2137
2955
  {
@@ -2191,7 +3009,7 @@ var markAsOffline = (options) => {
2191
3009
  ...options
2192
3010
  });
2193
3011
  };
2194
- var checkSignedSignaturePagePdf = (options) => {
3012
+ var checkSignedSignaturePagePDF = (options) => {
2195
3013
  return (options.client ?? client).get({
2196
3014
  security: [
2197
3015
  {
@@ -2251,7 +3069,7 @@ var setAuxiliaryDocument = (options) => {
2251
3069
  ...options,
2252
3070
  headers: {
2253
3071
  "Content-Type": "application/pdf",
2254
- ...options?.headers
3072
+ ...options.headers
2255
3073
  }
2256
3074
  });
2257
3075
  };
@@ -2279,7 +3097,7 @@ var cancel = (options) => {
2279
3097
  ...options,
2280
3098
  headers: {
2281
3099
  "Content-Type": "application/json",
2282
- ...options?.headers
3100
+ ...options.headers
2283
3101
  }
2284
3102
  });
2285
3103
  };
@@ -2295,7 +3113,7 @@ var revokeNegotiationsAccess = (options) => {
2295
3113
  ...options,
2296
3114
  headers: {
2297
3115
  "Content-Type": "application/json",
2298
- ...options?.headers
3116
+ ...options.headers
2299
3117
  }
2300
3118
  });
2301
3119
  };
@@ -2311,7 +3129,7 @@ var grantNegotiationsAccess = (options) => {
2311
3129
  ...options,
2312
3130
  headers: {
2313
3131
  "Content-Type": "application/json",
2314
- ...options?.headers
3132
+ ...options.headers
2315
3133
  }
2316
3134
  });
2317
3135
  };
@@ -2603,7 +3421,7 @@ var createNegotiation = (options) => {
2603
3421
  ...options,
2604
3422
  headers: {
2605
3423
  "Content-Type": "application/json",
2606
- ...options?.headers
3424
+ ...options.headers
2607
3425
  }
2608
3426
  });
2609
3427
  };
@@ -2631,11 +3449,11 @@ var presetSetNestedAnswers = (options) => {
2631
3449
  ...options,
2632
3450
  headers: {
2633
3451
  "Content-Type": "application/json",
2634
- ...options?.headers
3452
+ ...options.headers
2635
3453
  }
2636
3454
  });
2637
3455
  };
2638
- var createPresetAuditTrailXlsx = (options) => {
3456
+ var createPresetAuditTrailXLSX = (options) => {
2639
3457
  return (options.client ?? client).get({
2640
3458
  security: [
2641
3459
  {
@@ -2659,7 +3477,7 @@ var clonePreset = (options) => {
2659
3477
  ...options,
2660
3478
  headers: {
2661
3479
  "Content-Type": "application/json",
2662
- ...options?.headers
3480
+ ...options.headers
2663
3481
  }
2664
3482
  });
2665
3483
  };
@@ -2723,7 +3541,7 @@ var patchEmailPreferences = (options) => {
2723
3541
  ...options,
2724
3542
  headers: {
2725
3543
  "Content-Type": "application/json",
2726
- ...options?.headers
3544
+ ...options.headers
2727
3545
  }
2728
3546
  });
2729
3547
  };
@@ -2765,7 +3583,7 @@ var listExternalAttachments = (options) => {
2765
3583
  };
2766
3584
  var setExternalAttachments = (options) => {
2767
3585
  return (options.client ?? client).post({
2768
- ...import_client_fetch2.formDataBodySerializer,
3586
+ ...formDataBodySerializer,
2769
3587
  security: [
2770
3588
  {
2771
3589
  name: "Authorization",
@@ -2776,12 +3594,13 @@ var setExternalAttachments = (options) => {
2776
3594
  ...options,
2777
3595
  headers: {
2778
3596
  "Content-Type": null,
2779
- ...options?.headers
3597
+ ...options.headers
2780
3598
  }
2781
3599
  });
2782
3600
  };
2783
3601
  var setExternalAttachment = (options) => {
2784
3602
  return (options.client ?? client).put({
3603
+ bodySerializer: null,
2785
3604
  security: [
2786
3605
  {
2787
3606
  name: "Authorization",
@@ -2792,7 +3611,7 @@ var setExternalAttachment = (options) => {
2792
3611
  ...options,
2793
3612
  headers: {
2794
3613
  "Content-Type": "application/octet-stream",
2795
- ...options?.headers
3614
+ ...options.headers
2796
3615
  }
2797
3616
  });
2798
3617
  };
@@ -2820,7 +3639,7 @@ var validateDraftReceiverEmails = (options) => {
2820
3639
  ...options,
2821
3640
  headers: {
2822
3641
  "Content-Type": "application/json",
2823
- ...options?.headers
3642
+ ...options.headers
2824
3643
  }
2825
3644
  });
2826
3645
  };
@@ -2848,7 +3667,7 @@ var markApprovalCommentsAsViewed = (options) => {
2848
3667
  ...options,
2849
3668
  headers: {
2850
3669
  "Content-Type": "application/json",
2851
- ...options?.headers
3670
+ ...options.headers
2852
3671
  }
2853
3672
  });
2854
3673
  };
@@ -2876,7 +3695,7 @@ var cancelNegotiations = (options) => {
2876
3695
  ...options,
2877
3696
  headers: {
2878
3697
  "Content-Type": "application/json",
2879
- ...options?.headers
3698
+ ...options.headers
2880
3699
  }
2881
3700
  });
2882
3701
  };
@@ -2952,7 +3771,7 @@ var syncNewApprover = (options) => {
2952
3771
  ...options,
2953
3772
  headers: {
2954
3773
  "Content-Type": "application/json",
2955
- ...options?.headers
3774
+ ...options.headers
2956
3775
  }
2957
3776
  });
2958
3777
  };
@@ -2968,7 +3787,7 @@ var getMultipleNestedAnswers = (options) => {
2968
3787
  ...options,
2969
3788
  headers: {
2970
3789
  "Content-Type": "application/json",
2971
- ...options?.headers
3790
+ ...options.headers
2972
3791
  }
2973
3792
  });
2974
3793
  };
@@ -2984,7 +3803,7 @@ var setMultipleNestedAnswers = (options) => {
2984
3803
  ...options,
2985
3804
  headers: {
2986
3805
  "Content-Type": "application/json",
2987
- ...options?.headers
3806
+ ...options.headers
2988
3807
  }
2989
3808
  });
2990
3809
  };
@@ -3024,7 +3843,7 @@ var createBulkSet = (options) => {
3024
3843
  ...options,
3025
3844
  headers: {
3026
3845
  "Content-Type": "application/json",
3027
- ...options?.headers
3846
+ ...options.headers
3028
3847
  }
3029
3848
  });
3030
3849
  };
@@ -3040,7 +3859,7 @@ var addApprovalComment = (options) => {
3040
3859
  ...options,
3041
3860
  headers: {
3042
3861
  "Content-Type": "application/json",
3043
- ...options?.headers
3862
+ ...options.headers
3044
3863
  }
3045
3864
  });
3046
3865
  };
@@ -3092,7 +3911,7 @@ var negotiationsFilter = (options) => {
3092
3911
  ...options
3093
3912
  });
3094
3913
  };
3095
- var createAuditTrailXlsx = (options) => {
3914
+ var createAuditTrailXLSX = (options) => {
3096
3915
  return (options.client ?? client).get({
3097
3916
  security: [
3098
3917
  {
@@ -3116,7 +3935,7 @@ var setPreset = (options) => {
3116
3935
  ...options,
3117
3936
  headers: {
3118
3937
  "Content-Type": "application/json",
3119
- ...options?.headers
3938
+ ...options.headers
3120
3939
  }
3121
3940
  });
3122
3941
  };
@@ -3204,7 +4023,7 @@ var updateSubAccount = (options) => {
3204
4023
  ...options,
3205
4024
  headers: {
3206
4025
  "Content-Type": "application/json",
3207
- ...options?.headers
4026
+ ...options.headers
3208
4027
  }
3209
4028
  });
3210
4029
  };
@@ -3232,7 +4051,7 @@ var rejectPresetApproval = (options) => {
3232
4051
  ...options,
3233
4052
  headers: {
3234
4053
  "Content-Type": "application/json",
3235
- ...options?.headers
4054
+ ...options.headers
3236
4055
  }
3237
4056
  });
3238
4057
  };
@@ -3248,7 +4067,7 @@ var setOwnerEntity = (options) => {
3248
4067
  ...options,
3249
4068
  headers: {
3250
4069
  "Content-Type": "application/json",
3251
- ...options?.headers
4070
+ ...options.headers
3252
4071
  }
3253
4072
  });
3254
4073
  };
@@ -3264,7 +4083,7 @@ var negotiationSendForApproval = (options) => {
3264
4083
  ...options,
3265
4084
  headers: {
3266
4085
  "Content-Type": "application/json",
3267
- ...options?.headers
4086
+ ...options.headers
3268
4087
  }
3269
4088
  });
3270
4089
  };
@@ -3304,7 +4123,7 @@ var retract = (options) => {
3304
4123
  ...options,
3305
4124
  headers: {
3306
4125
  "Content-Type": "application/json",
3307
- ...options?.headers
4126
+ ...options.headers
3308
4127
  }
3309
4128
  });
3310
4129
  };
@@ -3332,7 +4151,7 @@ var renameExecutionAttachment = (options) => {
3332
4151
  ...options,
3333
4152
  headers: {
3334
4153
  "Content-Type": "application/json",
3335
- ...options?.headers
4154
+ ...options.headers
3336
4155
  }
3337
4156
  });
3338
4157
  };
@@ -3360,7 +4179,7 @@ var setNestedAnswers = (options) => {
3360
4179
  ...options,
3361
4180
  headers: {
3362
4181
  "Content-Type": "application/json",
3363
- ...options?.headers
4182
+ ...options.headers
3364
4183
  }
3365
4184
  });
3366
4185
  };
@@ -3390,7 +4209,7 @@ var listExecutionAttachments = (options) => {
3390
4209
  };
3391
4210
  var setExecutionAttachments = (options) => {
3392
4211
  return (options.client ?? client).post({
3393
- ...import_client_fetch2.formDataBodySerializer,
4212
+ ...formDataBodySerializer,
3394
4213
  security: [
3395
4214
  {
3396
4215
  name: "Authorization",
@@ -3401,7 +4220,7 @@ var setExecutionAttachments = (options) => {
3401
4220
  ...options,
3402
4221
  headers: {
3403
4222
  "Content-Type": null,
3404
- ...options?.headers
4223
+ ...options.headers
3405
4224
  }
3406
4225
  });
3407
4226
  };
@@ -3417,7 +4236,7 @@ var setExecutionAttachment = (options) => {
3417
4236
  ...options,
3418
4237
  headers: {
3419
4238
  "Content-Type": "application/pdf",
3420
- ...options?.headers
4239
+ ...options.headers
3421
4240
  }
3422
4241
  });
3423
4242
  };
@@ -3469,7 +4288,7 @@ var generateActiveNegotiationsReportAsExcel = (options) => {
3469
4288
  ...options,
3470
4289
  headers: {
3471
4290
  "Content-Type": "application/json",
3472
- ...options?.headers
4291
+ ...options.headers
3473
4292
  }
3474
4293
  });
3475
4294
  };
@@ -3497,7 +4316,7 @@ var setCounterparties = (options) => {
3497
4316
  ...options,
3498
4317
  headers: {
3499
4318
  "Content-Type": "application/json",
3500
- ...options?.headers
4319
+ ...options.headers
3501
4320
  }
3502
4321
  });
3503
4322
  };
@@ -3525,7 +4344,7 @@ var getChannelTimeline = (options) => {
3525
4344
  ...options
3526
4345
  });
3527
4346
  };
3528
- var schemaAvailableAsCdm = (options) => {
4347
+ var schemaAvailableAsCDM = (options) => {
3529
4348
  return (options.client ?? client).get({
3530
4349
  security: [
3531
4350
  {
@@ -3621,7 +4440,7 @@ var setOfflineNegotiatedDocument = (options) => {
3621
4440
  ...options,
3622
4441
  headers: {
3623
4442
  "Content-Type": "application/pdf",
3624
- ...options?.headers
4443
+ ...options.headers
3625
4444
  }
3626
4445
  });
3627
4446
  };
@@ -3661,7 +4480,7 @@ var setSignedExecutedVersion = (options) => {
3661
4480
  ...options,
3662
4481
  headers: {
3663
4482
  "Content-Type": "application/pdf",
3664
- ...options?.headers
4483
+ ...options.headers
3665
4484
  }
3666
4485
  });
3667
4486
  };
@@ -3689,7 +4508,7 @@ var updateCoverNote = (options) => {
3689
4508
  ...options,
3690
4509
  headers: {
3691
4510
  "Content-Type": "application/json",
3692
- ...options?.headers
4511
+ ...options.headers
3693
4512
  }
3694
4513
  });
3695
4514
  };
@@ -3705,11 +4524,11 @@ var queueGenerateNegotiationDocumentJob = (options) => {
3705
4524
  ...options,
3706
4525
  headers: {
3707
4526
  "Content-Type": "application/json",
3708
- ...options?.headers
4527
+ ...options.headers
3709
4528
  }
3710
4529
  });
3711
4530
  };
3712
- var createSignaturePagePdf = (options) => {
4531
+ var createSignaturePagePDF = (options) => {
3713
4532
  return (options.client ?? client).get({
3714
4533
  security: [
3715
4534
  {
@@ -3745,7 +4564,7 @@ var sendToCounterpartyInitial = (options) => {
3745
4564
  ...options,
3746
4565
  headers: {
3747
4566
  "Content-Type": "application/json",
3748
- ...options?.headers
4567
+ ...options.headers
3749
4568
  }
3750
4569
  });
3751
4570
  };
@@ -3797,7 +4616,7 @@ var addComment = (options) => {
3797
4616
  ...options,
3798
4617
  headers: {
3799
4618
  "Content-Type": "application/json",
3800
- ...options?.headers
4619
+ ...options.headers
3801
4620
  }
3802
4621
  });
3803
4622
  };
@@ -3813,11 +4632,11 @@ var presetSetElectionApproval = (options) => {
3813
4632
  ...options,
3814
4633
  headers: {
3815
4634
  "Content-Type": "application/json",
3816
- ...options?.headers
4635
+ ...options.headers
3817
4636
  }
3818
4637
  });
3819
4638
  };
3820
- var getSsoConfig = (options) => {
4639
+ var getSSOConfig = (options) => {
3821
4640
  return (options?.client ?? client).get({
3822
4641
  security: [
3823
4642
  {
@@ -3841,7 +4660,7 @@ var updateCustomFields = (options) => {
3841
4660
  ...options,
3842
4661
  headers: {
3843
4662
  "Content-Type": "application/json",
3844
- ...options?.headers
4663
+ ...options.headers
3845
4664
  }
3846
4665
  });
3847
4666
  };
@@ -3977,7 +4796,7 @@ var updateDraftingNotes = (options) => {
3977
4796
  ...options
3978
4797
  });
3979
4798
  };
3980
- var createAuditTrailPdf = (options) => {
4799
+ var createAuditTrailPDF = (options) => {
3981
4800
  return (options.client ?? client).get({
3982
4801
  security: [
3983
4802
  {
@@ -4087,22 +4906,22 @@ var getProfile = (options) => {
4087
4906
  checkForBrokenApprovers,
4088
4907
  checkOfflineNegotiatedDocument,
4089
4908
  checkSignedExecutedVersion,
4090
- checkSignedSignaturePagePdf,
4909
+ checkSignedSignaturePagePDF,
4091
4910
  clonePreset,
4092
4911
  confirm,
4093
4912
  confirmExecutionVersion,
4094
4913
  consentCodeCallback,
4095
4914
  contactForNewApprover,
4096
4915
  createAuditTrailJson,
4097
- createAuditTrailPdf,
4098
- createAuditTrailXlsx,
4916
+ createAuditTrailPDF,
4917
+ createAuditTrailXLSX,
4099
4918
  createBulkSet,
4100
4919
  createGroup,
4101
4920
  createNegotiation,
4102
4921
  createPreset,
4103
4922
  createPresetAuditTrailJson,
4104
- createPresetAuditTrailXlsx,
4105
- createSignaturePagePdf,
4923
+ createPresetAuditTrailXLSX,
4924
+ createSignaturePagePDF,
4106
4925
  createSigningPack,
4107
4926
  deleteApprovalComment,
4108
4927
  deleteAuxiliaryDocument,
@@ -4148,7 +4967,7 @@ var getProfile = (options) => {
4148
4967
  getApprovalComments,
4149
4968
  getApprovalHistory,
4150
4969
  getApprovalRound,
4151
- getAsCdm,
4970
+ getAsCDM,
4152
4971
  getAuxiliaryDocument,
4153
4972
  getBulkSet,
4154
4973
  getBulkSetAttachment,
@@ -4191,11 +5010,11 @@ var getProfile = (options) => {
4191
5010
  getPreviousMajorVersionsNestedAnswerElections,
4192
5011
  getPreviousMajorVersionsNestedAnswerIds,
4193
5012
  getProfile,
5013
+ getSSOConfig,
4194
5014
  getSecurityContext,
4195
5015
  getSettings,
4196
5016
  getSignedExecutedVersion,
4197
- getSignedSignaturePagePdf,
4198
- getSsoConfig,
5017
+ getSignedSignaturePagePDF,
4199
5018
  getStatistics,
4200
5019
  getStatisticsOverview,
4201
5020
  getSubAccount,
@@ -4276,7 +5095,7 @@ var getProfile = (options) => {
4276
5095
  revokePresetsAccess,
4277
5096
  revokeWindow,
4278
5097
  scheduleExtraction,
4279
- schemaAvailableAsCdm,
5098
+ schemaAvailableAsCDM,
4280
5099
  searchEntity,
4281
5100
  sendBulkSetToCounterpartiesInitial,
4282
5101
  sendChaserEmail,