@createiq/backend 1.0.91 → 1.0.92

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/client/sdk.gen.ts CHANGED
@@ -1741,42 +1741,42 @@ export const breakingChanges = <ThrowOnError extends boolean = false>(options: O
1741
1741
  };
1742
1742
 
1743
1743
  /**
1744
- * View all answers for the major version numbers of the other party in a sided negotiation
1744
+ * Override reject an election
1745
1745
  *
1746
- * View all answers for the major version numbers of the other party in a sided negotiation.
1746
+ * Override reject an election.
1747
1747
  */
1748
- export const getOtherPartyAnswers = <ThrowOnError extends boolean = false>(options: Options<getOtherPartyAnswersData, ThrowOnError>) => {
1749
- return (options.client ?? client).get<getOtherPartyAnswersResponses, getOtherPartyAnswersErrors, ThrowOnError>({
1748
+ export const overrideElectionRejection = <ThrowOnError extends boolean = false>(options: Options<overrideElectionRejectionData, ThrowOnError>) => {
1749
+ return (options.client ?? client).put<overrideElectionRejectionResponses, overrideElectionRejectionErrors, ThrowOnError>({
1750
1750
  security: [
1751
1751
  {
1752
1752
  name: 'Authorization',
1753
1753
  type: 'apiKey'
1754
1754
  }
1755
1755
  ],
1756
- url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{counterpartyId}/versions/{version}',
1757
- ...options
1756
+ url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/reject/override',
1757
+ ...options,
1758
+ headers: {
1759
+ 'Content-Type': 'application/json',
1760
+ ...options.headers
1761
+ }
1758
1762
  });
1759
1763
  };
1760
1764
 
1761
1765
  /**
1762
- * Override reject an election
1766
+ * View all answers for the major version numbers of the other party in a sided negotiation
1763
1767
  *
1764
- * Override reject an election.
1768
+ * View all answers for the major version numbers of the other party in a sided negotiation.
1765
1769
  */
1766
- export const overrideElectionRejection = <ThrowOnError extends boolean = false>(options: Options<overrideElectionRejectionData, ThrowOnError>) => {
1767
- return (options.client ?? client).put<overrideElectionRejectionResponses, overrideElectionRejectionErrors, ThrowOnError>({
1770
+ export const getOtherPartyAnswers = <ThrowOnError extends boolean = false>(options: Options<getOtherPartyAnswersData, ThrowOnError>) => {
1771
+ return (options.client ?? client).get<getOtherPartyAnswersResponses, getOtherPartyAnswersErrors, ThrowOnError>({
1768
1772
  security: [
1769
1773
  {
1770
1774
  name: 'Authorization',
1771
1775
  type: 'apiKey'
1772
1776
  }
1773
1777
  ],
1774
- url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/reject/override',
1775
- ...options,
1776
- headers: {
1777
- 'Content-Type': 'application/json',
1778
- ...options.headers
1779
- }
1778
+ url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{counterpartyId}/versions/{version}',
1779
+ ...options
1780
1780
  });
1781
1781
  };
1782
1782
 
@@ -2567,6 +2567,12 @@ export type BulkSetJobCountDto = {
2567
2567
  failedCreationJobs: number;
2568
2568
  };
2569
2569
 
2570
+ export type MfaStatusResponseDto = {
2571
+ verified: boolean;
2572
+ expiresAt?: string;
2573
+ interactionCode?: string;
2574
+ };
2575
+
2570
2576
  export type DocumentVersionsWithMajorChangesDto_MajorChangesFlagDto = {
2571
2577
  persistedValue: boolean;
2572
2578
  suggestedValue: boolean;
@@ -3868,6 +3874,11 @@ export type RejectPresetDto = {
3868
3874
  comment: string;
3869
3875
  };
3870
3876
 
3877
+ export type MfaVerifyRequestDto = {
3878
+ otp: string;
3879
+ rememberDevice?: boolean;
3880
+ };
3881
+
3871
3882
  export type LegacyNegotiationStatisticsDto = {
3872
3883
  counterpartyTurn: LegacySidedNegotiationCountsDto;
3873
3884
  ourTurn: LegacySidedNegotiationCountsDto;
@@ -6472,34 +6483,6 @@ export type breakingChangesResponses = {
6472
6483
 
6473
6484
  export type breakingChangesResponse = breakingChangesResponses[keyof breakingChangesResponses];
6474
6485
 
6475
- export type getOtherPartyAnswersData = {
6476
- body?: never;
6477
- path: {
6478
- subAccountId: string;
6479
- negotiationId: string;
6480
- counterpartyId: string;
6481
- version: string;
6482
- };
6483
- query?: never;
6484
- url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{counterpartyId}/versions/{version}';
6485
- };
6486
-
6487
- export type getOtherPartyAnswersErrors = {
6488
- /**
6489
- * Party answers not found of the party id for the specified version or negotiation not found
6490
- */
6491
- 404: unknown;
6492
- };
6493
-
6494
- export type getOtherPartyAnswersResponses = {
6495
- /**
6496
- * Other party answers
6497
- */
6498
- 200: VersionedPartyAnswersDto;
6499
- };
6500
-
6501
- export type getOtherPartyAnswersResponse = getOtherPartyAnswersResponses[keyof getOtherPartyAnswersResponses];
6502
-
6503
6486
  export type overrideElectionRejectionData = {
6504
6487
  body: ApprovalCommentDto;
6505
6488
  path: {
@@ -6535,6 +6518,34 @@ export type overrideElectionRejectionResponses = {
6535
6518
 
6536
6519
  export type overrideElectionRejectionResponse = overrideElectionRejectionResponses[keyof overrideElectionRejectionResponses];
6537
6520
 
6521
+ export type getOtherPartyAnswersData = {
6522
+ body?: never;
6523
+ path: {
6524
+ subAccountId: string;
6525
+ negotiationId: string;
6526
+ counterpartyId: string;
6527
+ version: string;
6528
+ };
6529
+ query?: never;
6530
+ url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{counterpartyId}/versions/{version}';
6531
+ };
6532
+
6533
+ export type getOtherPartyAnswersErrors = {
6534
+ /**
6535
+ * Party answers not found of the party id for the specified version or negotiation not found
6536
+ */
6537
+ 404: unknown;
6538
+ };
6539
+
6540
+ export type getOtherPartyAnswersResponses = {
6541
+ /**
6542
+ * Other party answers
6543
+ */
6544
+ 200: VersionedPartyAnswersDto;
6545
+ };
6546
+
6547
+ export type getOtherPartyAnswersResponse = getOtherPartyAnswersResponses[keyof getOtherPartyAnswersResponses];
6548
+
6538
6549
  export type overrideElectionApprovalData = {
6539
6550
  body: ApprovalCommentDto;
6540
6551
  path: {
package/dist/index.cjs CHANGED
@@ -2329,18 +2329,6 @@ var breakingChanges = (options) => {
2329
2329
  ...options
2330
2330
  });
2331
2331
  };
2332
- var getOtherPartyAnswers = (options) => {
2333
- return (options.client ?? client).get({
2334
- security: [
2335
- {
2336
- name: "Authorization",
2337
- type: "apiKey"
2338
- }
2339
- ],
2340
- url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{counterpartyId}/versions/{version}",
2341
- ...options
2342
- });
2343
- };
2344
2332
  var overrideElectionRejection = (options) => {
2345
2333
  return (options.client ?? client).put({
2346
2334
  security: [
@@ -2357,6 +2345,18 @@ var overrideElectionRejection = (options) => {
2357
2345
  }
2358
2346
  });
2359
2347
  };
2348
+ var getOtherPartyAnswers = (options) => {
2349
+ return (options.client ?? client).get({
2350
+ security: [
2351
+ {
2352
+ name: "Authorization",
2353
+ type: "apiKey"
2354
+ }
2355
+ ],
2356
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{counterpartyId}/versions/{version}",
2357
+ ...options
2358
+ });
2359
+ };
2360
2360
  var overrideElectionApproval = (options) => {
2361
2361
  return (options.client ?? client).put({
2362
2362
  security: [