@vrplatform/api 1.3.1-stage.37585410751 → 1.3.1-stage.37588677505

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.
@@ -6865,6 +6865,27 @@ export interface paths {
6865
6865
  patch?: never;
6866
6866
  trace?: never;
6867
6867
  };
6868
+ "/statements/email-recipients": {
6869
+ parameters: {
6870
+ query?: never;
6871
+ header?: never;
6872
+ path?: never;
6873
+ cookie?: never;
6874
+ };
6875
+ /**
6876
+ * @description List who receives the owner statement email when a statement of the ownership period is published or resent.
6877
+ *
6878
+ * Required scope: statements:read
6879
+ */
6880
+ get: operations["getStatementsEmailRecipients"];
6881
+ put?: never;
6882
+ post?: never;
6883
+ delete?: never;
6884
+ options?: never;
6885
+ head?: never;
6886
+ patch?: never;
6887
+ trace?: never;
6888
+ };
6868
6889
  "/statements/historical": {
6869
6890
  parameters: {
6870
6891
  query?: never;
@@ -277616,6 +277637,567 @@ export interface operations {
277616
277637
  };
277617
277638
  };
277618
277639
  };
277640
+ getStatementsEmailRecipients: {
277641
+ parameters: {
277642
+ query: {
277643
+ /** @description Ownership period of the statement to publish or resend. */
277644
+ ownershipPeriodId: string;
277645
+ };
277646
+ header?: never;
277647
+ path?: never;
277648
+ cookie?: never;
277649
+ };
277650
+ requestBody?: never;
277651
+ responses: {
277652
+ /** @description Successful response */
277653
+ 200: {
277654
+ headers: {
277655
+ [name: string]: unknown;
277656
+ };
277657
+ content: {
277658
+ "application/json": {
277659
+ /**
277660
+ * @description ownerContacts: owners get a no-login link at their contact email. portalUsers: owners get the email through their portal logins.
277661
+ * @enum {string}
277662
+ */
277663
+ delivery: "ownerContacts" | "portalUsers";
277664
+ /** @description Owner contacts of the ownership period. Empty for portalUsers. */
277665
+ recipients: {
277666
+ /**
277667
+ * Format: uuid
277668
+ * @description Owner contact on the statement.
277669
+ */
277670
+ contactId: string;
277671
+ firstName: string | null;
277672
+ /** @description Last name or company name. */
277673
+ name: string;
277674
+ /** @description Address the email goes to. */
277675
+ email: string | null;
277676
+ /** @description Why this owner gets no email, or null. */
277677
+ skipReason: ("missingEmail" | "unsubscribed") | null;
277678
+ }[];
277679
+ };
277680
+ };
277681
+ };
277682
+ /** @description Bad request */
277683
+ 400: {
277684
+ headers: {
277685
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
277686
+ "Retry-After"?: number;
277687
+ [name: string]: unknown;
277688
+ };
277689
+ content: {
277690
+ "application/json": {
277691
+ /** @enum {string} */
277692
+ code: "AUDIT_CURSOR_EXPIRED" | "AUDIT_EVENT_REVISED" | "BAD_GATEWAY" | "BAD_REQUEST" | "CONFLICT" | "CONNECTION_RECONNECT_REQUIRED" | "EXPORT_REQUIRES_POST" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "GONE" | "INTERNAL_SERVER_ERROR" | "INVALID_PLAID_CONNECT_MODE" | "JOURNAL_RECALCULATION_PENDING" | "LOCKED" | "METHOD_NOT_SUPPORTED" | "MISDIRECTED_REQUEST" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "OWNER_STATEMENT_LINK_EXPIRED" | "OWNER_STATEMENT_LINK_INVALID" | "PAYLOAD_TOO_LARGE" | "PLAID_CONNECTION_NOT_FOUND" | "PLAID_CONNECT_CONFIGURATION_CHANGED" | "PLAID_CONNECT_EXPIRED" | "PLAID_CONNECT_IN_PROGRESS" | "PLAID_CONNECT_REQUIRES_NEW_LINK" | "PLAID_PROVIDER_UNAVAILABLE" | "RAMP_VENDOR_OWNER_REQUIRED" | "RATE_LIMITED" | "SERVICE_UNAVAILABLE" | "TEAM_DELETED" | "TEAM_DELETION_FROZEN" | "TEAM_MIGRATION_FROZEN" | "TEAM_WRITES_FROZEN" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT";
277693
+ /**
277694
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
277695
+ * @enum {string}
277696
+ */
277697
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
277698
+ message: string;
277699
+ links?: {
277700
+ docs: string;
277701
+ schema: string;
277702
+ };
277703
+ issues: {
277704
+ /** @enum {string} */
277705
+ code?: "duplicateLast4";
277706
+ message: string;
277707
+ path?: (string | number)[];
277708
+ schema?: string;
277709
+ }[];
277710
+ retryable?: boolean;
277711
+ context?: unknown;
277712
+ };
277713
+ };
277714
+ };
277715
+ /** @description Unauthorized */
277716
+ 401: {
277717
+ headers: {
277718
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
277719
+ "Retry-After"?: number;
277720
+ [name: string]: unknown;
277721
+ };
277722
+ content: {
277723
+ "application/json": {
277724
+ /** @enum {string} */
277725
+ code: "AUDIT_CURSOR_EXPIRED" | "AUDIT_EVENT_REVISED" | "BAD_GATEWAY" | "BAD_REQUEST" | "CONFLICT" | "CONNECTION_RECONNECT_REQUIRED" | "EXPORT_REQUIRES_POST" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "GONE" | "INTERNAL_SERVER_ERROR" | "INVALID_PLAID_CONNECT_MODE" | "JOURNAL_RECALCULATION_PENDING" | "LOCKED" | "METHOD_NOT_SUPPORTED" | "MISDIRECTED_REQUEST" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "OWNER_STATEMENT_LINK_EXPIRED" | "OWNER_STATEMENT_LINK_INVALID" | "PAYLOAD_TOO_LARGE" | "PLAID_CONNECTION_NOT_FOUND" | "PLAID_CONNECT_CONFIGURATION_CHANGED" | "PLAID_CONNECT_EXPIRED" | "PLAID_CONNECT_IN_PROGRESS" | "PLAID_CONNECT_REQUIRES_NEW_LINK" | "PLAID_PROVIDER_UNAVAILABLE" | "RAMP_VENDOR_OWNER_REQUIRED" | "RATE_LIMITED" | "SERVICE_UNAVAILABLE" | "TEAM_DELETED" | "TEAM_DELETION_FROZEN" | "TEAM_MIGRATION_FROZEN" | "TEAM_WRITES_FROZEN" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT";
277726
+ /**
277727
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
277728
+ * @enum {string}
277729
+ */
277730
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
277731
+ message: string;
277732
+ links?: {
277733
+ docs: string;
277734
+ schema: string;
277735
+ };
277736
+ issues: {
277737
+ /** @enum {string} */
277738
+ code?: "duplicateLast4";
277739
+ message: string;
277740
+ path?: (string | number)[];
277741
+ schema?: string;
277742
+ }[];
277743
+ retryable?: boolean;
277744
+ context?: unknown;
277745
+ };
277746
+ };
277747
+ };
277748
+ /** @description Forbidden */
277749
+ 403: {
277750
+ headers: {
277751
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
277752
+ "Retry-After"?: number;
277753
+ [name: string]: unknown;
277754
+ };
277755
+ content: {
277756
+ "application/json": {
277757
+ /** @enum {string} */
277758
+ code: "AUDIT_CURSOR_EXPIRED" | "AUDIT_EVENT_REVISED" | "BAD_GATEWAY" | "BAD_REQUEST" | "CONFLICT" | "CONNECTION_RECONNECT_REQUIRED" | "EXPORT_REQUIRES_POST" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "GONE" | "INTERNAL_SERVER_ERROR" | "INVALID_PLAID_CONNECT_MODE" | "JOURNAL_RECALCULATION_PENDING" | "LOCKED" | "METHOD_NOT_SUPPORTED" | "MISDIRECTED_REQUEST" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "OWNER_STATEMENT_LINK_EXPIRED" | "OWNER_STATEMENT_LINK_INVALID" | "PAYLOAD_TOO_LARGE" | "PLAID_CONNECTION_NOT_FOUND" | "PLAID_CONNECT_CONFIGURATION_CHANGED" | "PLAID_CONNECT_EXPIRED" | "PLAID_CONNECT_IN_PROGRESS" | "PLAID_CONNECT_REQUIRES_NEW_LINK" | "PLAID_PROVIDER_UNAVAILABLE" | "RAMP_VENDOR_OWNER_REQUIRED" | "RATE_LIMITED" | "SERVICE_UNAVAILABLE" | "TEAM_DELETED" | "TEAM_DELETION_FROZEN" | "TEAM_MIGRATION_FROZEN" | "TEAM_WRITES_FROZEN" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT";
277759
+ /**
277760
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
277761
+ * @enum {string}
277762
+ */
277763
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
277764
+ message: string;
277765
+ links?: {
277766
+ docs: string;
277767
+ schema: string;
277768
+ };
277769
+ issues: {
277770
+ /** @enum {string} */
277771
+ code?: "duplicateLast4";
277772
+ message: string;
277773
+ path?: (string | number)[];
277774
+ schema?: string;
277775
+ }[];
277776
+ retryable?: boolean;
277777
+ context?: unknown;
277778
+ };
277779
+ };
277780
+ };
277781
+ /** @description Not found */
277782
+ 404: {
277783
+ headers: {
277784
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
277785
+ "Retry-After"?: number;
277786
+ [name: string]: unknown;
277787
+ };
277788
+ content: {
277789
+ "application/json": {
277790
+ /** @enum {string} */
277791
+ code: "AUDIT_CURSOR_EXPIRED" | "AUDIT_EVENT_REVISED" | "BAD_GATEWAY" | "BAD_REQUEST" | "CONFLICT" | "CONNECTION_RECONNECT_REQUIRED" | "EXPORT_REQUIRES_POST" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "GONE" | "INTERNAL_SERVER_ERROR" | "INVALID_PLAID_CONNECT_MODE" | "JOURNAL_RECALCULATION_PENDING" | "LOCKED" | "METHOD_NOT_SUPPORTED" | "MISDIRECTED_REQUEST" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "OWNER_STATEMENT_LINK_EXPIRED" | "OWNER_STATEMENT_LINK_INVALID" | "PAYLOAD_TOO_LARGE" | "PLAID_CONNECTION_NOT_FOUND" | "PLAID_CONNECT_CONFIGURATION_CHANGED" | "PLAID_CONNECT_EXPIRED" | "PLAID_CONNECT_IN_PROGRESS" | "PLAID_CONNECT_REQUIRES_NEW_LINK" | "PLAID_PROVIDER_UNAVAILABLE" | "RAMP_VENDOR_OWNER_REQUIRED" | "RATE_LIMITED" | "SERVICE_UNAVAILABLE" | "TEAM_DELETED" | "TEAM_DELETION_FROZEN" | "TEAM_MIGRATION_FROZEN" | "TEAM_WRITES_FROZEN" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT";
277792
+ /**
277793
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
277794
+ * @enum {string}
277795
+ */
277796
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
277797
+ message: string;
277798
+ links?: {
277799
+ docs: string;
277800
+ schema: string;
277801
+ };
277802
+ issues: {
277803
+ /** @enum {string} */
277804
+ code?: "duplicateLast4";
277805
+ message: string;
277806
+ path?: (string | number)[];
277807
+ schema?: string;
277808
+ }[];
277809
+ retryable?: boolean;
277810
+ context?: unknown;
277811
+ };
277812
+ };
277813
+ };
277814
+ /** @description Conflict */
277815
+ 409: {
277816
+ headers: {
277817
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
277818
+ "Retry-After"?: number;
277819
+ [name: string]: unknown;
277820
+ };
277821
+ content: {
277822
+ "application/json": {
277823
+ /** @enum {string} */
277824
+ code: "AUDIT_CURSOR_EXPIRED" | "AUDIT_EVENT_REVISED" | "BAD_GATEWAY" | "BAD_REQUEST" | "CONFLICT" | "CONNECTION_RECONNECT_REQUIRED" | "EXPORT_REQUIRES_POST" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "GONE" | "INTERNAL_SERVER_ERROR" | "INVALID_PLAID_CONNECT_MODE" | "JOURNAL_RECALCULATION_PENDING" | "LOCKED" | "METHOD_NOT_SUPPORTED" | "MISDIRECTED_REQUEST" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "OWNER_STATEMENT_LINK_EXPIRED" | "OWNER_STATEMENT_LINK_INVALID" | "PAYLOAD_TOO_LARGE" | "PLAID_CONNECTION_NOT_FOUND" | "PLAID_CONNECT_CONFIGURATION_CHANGED" | "PLAID_CONNECT_EXPIRED" | "PLAID_CONNECT_IN_PROGRESS" | "PLAID_CONNECT_REQUIRES_NEW_LINK" | "PLAID_PROVIDER_UNAVAILABLE" | "RAMP_VENDOR_OWNER_REQUIRED" | "RATE_LIMITED" | "SERVICE_UNAVAILABLE" | "TEAM_DELETED" | "TEAM_DELETION_FROZEN" | "TEAM_MIGRATION_FROZEN" | "TEAM_WRITES_FROZEN" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT";
277825
+ /**
277826
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
277827
+ * @enum {string}
277828
+ */
277829
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
277830
+ message: string;
277831
+ links?: {
277832
+ docs: string;
277833
+ schema: string;
277834
+ };
277835
+ issues: {
277836
+ /** @enum {string} */
277837
+ code?: "duplicateLast4";
277838
+ message: string;
277839
+ path?: (string | number)[];
277840
+ schema?: string;
277841
+ }[];
277842
+ retryable?: boolean;
277843
+ context?: unknown;
277844
+ };
277845
+ };
277846
+ };
277847
+ /** @description Gone */
277848
+ 410: {
277849
+ headers: {
277850
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
277851
+ "Retry-After"?: number;
277852
+ [name: string]: unknown;
277853
+ };
277854
+ content: {
277855
+ "application/json": {
277856
+ /** @enum {string} */
277857
+ code: "AUDIT_CURSOR_EXPIRED" | "AUDIT_EVENT_REVISED" | "BAD_GATEWAY" | "BAD_REQUEST" | "CONFLICT" | "CONNECTION_RECONNECT_REQUIRED" | "EXPORT_REQUIRES_POST" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "GONE" | "INTERNAL_SERVER_ERROR" | "INVALID_PLAID_CONNECT_MODE" | "JOURNAL_RECALCULATION_PENDING" | "LOCKED" | "METHOD_NOT_SUPPORTED" | "MISDIRECTED_REQUEST" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "OWNER_STATEMENT_LINK_EXPIRED" | "OWNER_STATEMENT_LINK_INVALID" | "PAYLOAD_TOO_LARGE" | "PLAID_CONNECTION_NOT_FOUND" | "PLAID_CONNECT_CONFIGURATION_CHANGED" | "PLAID_CONNECT_EXPIRED" | "PLAID_CONNECT_IN_PROGRESS" | "PLAID_CONNECT_REQUIRES_NEW_LINK" | "PLAID_PROVIDER_UNAVAILABLE" | "RAMP_VENDOR_OWNER_REQUIRED" | "RATE_LIMITED" | "SERVICE_UNAVAILABLE" | "TEAM_DELETION_FROZEN" | "TEAM_MIGRATION_FROZEN" | "TEAM_WRITES_FROZEN" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT";
277858
+ /**
277859
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
277860
+ * @enum {string}
277861
+ */
277862
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
277863
+ message: string;
277864
+ links?: {
277865
+ docs: string;
277866
+ schema: string;
277867
+ };
277868
+ issues: {
277869
+ /** @enum {string} */
277870
+ code?: "duplicateLast4";
277871
+ message: string;
277872
+ path?: (string | number)[];
277873
+ schema?: string;
277874
+ }[];
277875
+ retryable?: boolean;
277876
+ context?: unknown;
277877
+ } | {
277878
+ /** @constant */
277879
+ code: "TEAM_DELETED";
277880
+ /**
277881
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
277882
+ * @enum {string}
277883
+ */
277884
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
277885
+ message: string;
277886
+ links?: {
277887
+ docs: string;
277888
+ schema: string;
277889
+ };
277890
+ issues: {
277891
+ /** @enum {string} */
277892
+ code?: "duplicateLast4";
277893
+ message: string;
277894
+ path?: (string | number)[];
277895
+ schema?: string;
277896
+ }[];
277897
+ retryable?: boolean;
277898
+ context: {
277899
+ /** Format: uuid */
277900
+ teamId: string;
277901
+ /** @constant */
277902
+ reason: "deleted";
277903
+ };
277904
+ };
277905
+ };
277906
+ };
277907
+ /** @description Payload too large */
277908
+ 413: {
277909
+ headers: {
277910
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
277911
+ "Retry-After"?: number;
277912
+ [name: string]: unknown;
277913
+ };
277914
+ content: {
277915
+ "application/json": {
277916
+ /** @enum {string} */
277917
+ code: "AUDIT_CURSOR_EXPIRED" | "AUDIT_EVENT_REVISED" | "BAD_GATEWAY" | "BAD_REQUEST" | "CONFLICT" | "CONNECTION_RECONNECT_REQUIRED" | "EXPORT_REQUIRES_POST" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "GONE" | "INTERNAL_SERVER_ERROR" | "INVALID_PLAID_CONNECT_MODE" | "JOURNAL_RECALCULATION_PENDING" | "LOCKED" | "METHOD_NOT_SUPPORTED" | "MISDIRECTED_REQUEST" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "OWNER_STATEMENT_LINK_EXPIRED" | "OWNER_STATEMENT_LINK_INVALID" | "PAYLOAD_TOO_LARGE" | "PLAID_CONNECTION_NOT_FOUND" | "PLAID_CONNECT_CONFIGURATION_CHANGED" | "PLAID_CONNECT_EXPIRED" | "PLAID_CONNECT_IN_PROGRESS" | "PLAID_CONNECT_REQUIRES_NEW_LINK" | "PLAID_PROVIDER_UNAVAILABLE" | "RAMP_VENDOR_OWNER_REQUIRED" | "RATE_LIMITED" | "SERVICE_UNAVAILABLE" | "TEAM_DELETED" | "TEAM_DELETION_FROZEN" | "TEAM_MIGRATION_FROZEN" | "TEAM_WRITES_FROZEN" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT";
277918
+ /**
277919
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
277920
+ * @enum {string}
277921
+ */
277922
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
277923
+ message: string;
277924
+ links?: {
277925
+ docs: string;
277926
+ schema: string;
277927
+ };
277928
+ issues: {
277929
+ /** @enum {string} */
277930
+ code?: "duplicateLast4";
277931
+ message: string;
277932
+ path?: (string | number)[];
277933
+ schema?: string;
277934
+ }[];
277935
+ retryable?: boolean;
277936
+ context?: unknown;
277937
+ };
277938
+ };
277939
+ };
277940
+ /** @description Misdirected regional request */
277941
+ 421: {
277942
+ headers: {
277943
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
277944
+ "Retry-After"?: number;
277945
+ [name: string]: unknown;
277946
+ };
277947
+ content: {
277948
+ "application/json": {
277949
+ /** @constant */
277950
+ code: "MISDIRECTED_REQUEST";
277951
+ /**
277952
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
277953
+ * @enum {string}
277954
+ */
277955
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
277956
+ message: string;
277957
+ links?: {
277958
+ docs: string;
277959
+ schema: string;
277960
+ };
277961
+ issues: {
277962
+ /** @enum {string} */
277963
+ code?: "duplicateLast4";
277964
+ message: string;
277965
+ path?: (string | number)[];
277966
+ schema?: string;
277967
+ }[];
277968
+ retryable?: boolean;
277969
+ context: {
277970
+ /** Format: uuid */
277971
+ teamId?: string;
277972
+ /** @enum {string} */
277973
+ dataRegion: "ap" | "crunchy" | "eu" | "hostaway" | "us";
277974
+ /** Format: uri */
277975
+ apiBaseUrl: string;
277976
+ };
277977
+ };
277978
+ };
277979
+ };
277980
+ /** @description Unprocessable content */
277981
+ 422: {
277982
+ headers: {
277983
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
277984
+ "Retry-After"?: number;
277985
+ [name: string]: unknown;
277986
+ };
277987
+ content: {
277988
+ "application/json": {
277989
+ /** @enum {string} */
277990
+ code: "AUDIT_CURSOR_EXPIRED" | "AUDIT_EVENT_REVISED" | "BAD_GATEWAY" | "BAD_REQUEST" | "CONFLICT" | "CONNECTION_RECONNECT_REQUIRED" | "EXPORT_REQUIRES_POST" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "GONE" | "INTERNAL_SERVER_ERROR" | "INVALID_PLAID_CONNECT_MODE" | "JOURNAL_RECALCULATION_PENDING" | "LOCKED" | "METHOD_NOT_SUPPORTED" | "MISDIRECTED_REQUEST" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "OWNER_STATEMENT_LINK_EXPIRED" | "OWNER_STATEMENT_LINK_INVALID" | "PAYLOAD_TOO_LARGE" | "PLAID_CONNECTION_NOT_FOUND" | "PLAID_CONNECT_CONFIGURATION_CHANGED" | "PLAID_CONNECT_EXPIRED" | "PLAID_CONNECT_IN_PROGRESS" | "PLAID_CONNECT_REQUIRES_NEW_LINK" | "PLAID_PROVIDER_UNAVAILABLE" | "RAMP_VENDOR_OWNER_REQUIRED" | "RATE_LIMITED" | "SERVICE_UNAVAILABLE" | "TEAM_DELETED" | "TEAM_DELETION_FROZEN" | "TEAM_MIGRATION_FROZEN" | "TEAM_WRITES_FROZEN" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT";
277991
+ /**
277992
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
277993
+ * @enum {string}
277994
+ */
277995
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
277996
+ message: string;
277997
+ links?: {
277998
+ docs: string;
277999
+ schema: string;
278000
+ };
278001
+ issues: {
278002
+ /** @enum {string} */
278003
+ code?: "duplicateLast4";
278004
+ message: string;
278005
+ path?: (string | number)[];
278006
+ schema?: string;
278007
+ }[];
278008
+ retryable?: boolean;
278009
+ context?: unknown;
278010
+ };
278011
+ };
278012
+ };
278013
+ /** @description Locked */
278014
+ 423: {
278015
+ headers: {
278016
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
278017
+ "Retry-After"?: number;
278018
+ [name: string]: unknown;
278019
+ };
278020
+ content: {
278021
+ "application/json": {
278022
+ /** @constant */
278023
+ code: "LOCKED";
278024
+ /**
278025
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
278026
+ * @enum {string}
278027
+ */
278028
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
278029
+ message: string;
278030
+ links?: {
278031
+ docs: string;
278032
+ schema: string;
278033
+ };
278034
+ issues: {
278035
+ /** @enum {string} */
278036
+ code?: "duplicateLast4";
278037
+ message: string;
278038
+ path?: (string | number)[];
278039
+ schema?: string;
278040
+ }[];
278041
+ retryable?: boolean;
278042
+ context?: unknown;
278043
+ } | {
278044
+ /** @constant */
278045
+ code: "TEAM_MIGRATION_FROZEN";
278046
+ /**
278047
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
278048
+ * @enum {string}
278049
+ */
278050
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
278051
+ message: string;
278052
+ links?: {
278053
+ docs: string;
278054
+ schema: string;
278055
+ };
278056
+ issues: {
278057
+ /** @enum {string} */
278058
+ code?: "duplicateLast4";
278059
+ message: string;
278060
+ path?: (string | number)[];
278061
+ schema?: string;
278062
+ }[];
278063
+ retryable?: boolean;
278064
+ context: {
278065
+ /** Format: uuid */
278066
+ teamId: string;
278067
+ /** @constant */
278068
+ migrationStatus: "frozen";
278069
+ /** @constant */
278070
+ reason: "migration";
278071
+ };
278072
+ } | {
278073
+ /** @constant */
278074
+ code: "TEAM_DELETION_FROZEN";
278075
+ /**
278076
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
278077
+ * @enum {string}
278078
+ */
278079
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
278080
+ message: string;
278081
+ links?: {
278082
+ docs: string;
278083
+ schema: string;
278084
+ };
278085
+ issues: {
278086
+ /** @enum {string} */
278087
+ code?: "duplicateLast4";
278088
+ message: string;
278089
+ path?: (string | number)[];
278090
+ schema?: string;
278091
+ }[];
278092
+ retryable?: boolean;
278093
+ context: {
278094
+ /** Format: uuid */
278095
+ teamId: string;
278096
+ /** @constant */
278097
+ migrationStatus: "frozen";
278098
+ /** @constant */
278099
+ reason: "deletion";
278100
+ };
278101
+ } | {
278102
+ /** @constant */
278103
+ code: "TEAM_WRITES_FROZEN";
278104
+ /**
278105
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
278106
+ * @enum {string}
278107
+ */
278108
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
278109
+ message: string;
278110
+ links?: {
278111
+ docs: string;
278112
+ schema: string;
278113
+ };
278114
+ issues: {
278115
+ /** @enum {string} */
278116
+ code?: "duplicateLast4";
278117
+ message: string;
278118
+ path?: (string | number)[];
278119
+ schema?: string;
278120
+ }[];
278121
+ retryable?: boolean;
278122
+ context: {
278123
+ /** Format: uuid */
278124
+ teamId: string;
278125
+ /** @constant */
278126
+ migrationStatus: "frozen";
278127
+ /** @constant */
278128
+ reason: "unknown";
278129
+ };
278130
+ };
278131
+ };
278132
+ };
278133
+ /** @description Internal server error */
278134
+ 500: {
278135
+ headers: {
278136
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
278137
+ "Retry-After"?: number;
278138
+ [name: string]: unknown;
278139
+ };
278140
+ content: {
278141
+ "application/json": {
278142
+ /** @enum {string} */
278143
+ code: "AUDIT_CURSOR_EXPIRED" | "AUDIT_EVENT_REVISED" | "BAD_GATEWAY" | "BAD_REQUEST" | "CONFLICT" | "CONNECTION_RECONNECT_REQUIRED" | "EXPORT_REQUIRES_POST" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "GONE" | "INTERNAL_SERVER_ERROR" | "INVALID_PLAID_CONNECT_MODE" | "JOURNAL_RECALCULATION_PENDING" | "LOCKED" | "METHOD_NOT_SUPPORTED" | "MISDIRECTED_REQUEST" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "OWNER_STATEMENT_LINK_EXPIRED" | "OWNER_STATEMENT_LINK_INVALID" | "PAYLOAD_TOO_LARGE" | "PLAID_CONNECTION_NOT_FOUND" | "PLAID_CONNECT_CONFIGURATION_CHANGED" | "PLAID_CONNECT_EXPIRED" | "PLAID_CONNECT_IN_PROGRESS" | "PLAID_CONNECT_REQUIRES_NEW_LINK" | "PLAID_PROVIDER_UNAVAILABLE" | "RAMP_VENDOR_OWNER_REQUIRED" | "RATE_LIMITED" | "SERVICE_UNAVAILABLE" | "TEAM_DELETED" | "TEAM_DELETION_FROZEN" | "TEAM_MIGRATION_FROZEN" | "TEAM_WRITES_FROZEN" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT";
278144
+ /**
278145
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
278146
+ * @enum {string}
278147
+ */
278148
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
278149
+ message: string;
278150
+ links?: {
278151
+ docs: string;
278152
+ schema: string;
278153
+ };
278154
+ issues: {
278155
+ /** @enum {string} */
278156
+ code?: "duplicateLast4";
278157
+ message: string;
278158
+ path?: (string | number)[];
278159
+ schema?: string;
278160
+ }[];
278161
+ retryable?: boolean;
278162
+ context?: unknown;
278163
+ };
278164
+ };
278165
+ };
278166
+ /** @description Service unavailable */
278167
+ 503: {
278168
+ headers: {
278169
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
278170
+ "Retry-After"?: number;
278171
+ [name: string]: unknown;
278172
+ };
278173
+ content: {
278174
+ "application/json": {
278175
+ /** @enum {string} */
278176
+ code: "AUDIT_CURSOR_EXPIRED" | "AUDIT_EVENT_REVISED" | "BAD_GATEWAY" | "BAD_REQUEST" | "CONFLICT" | "CONNECTION_RECONNECT_REQUIRED" | "EXPORT_REQUIRES_POST" | "FORBIDDEN" | "GATEWAY_TIMEOUT" | "GONE" | "INTERNAL_SERVER_ERROR" | "INVALID_PLAID_CONNECT_MODE" | "JOURNAL_RECALCULATION_PENDING" | "LOCKED" | "METHOD_NOT_SUPPORTED" | "MISDIRECTED_REQUEST" | "NOT_FOUND" | "NOT_IMPLEMENTED" | "OWNER_STATEMENT_LINK_EXPIRED" | "OWNER_STATEMENT_LINK_INVALID" | "PAYLOAD_TOO_LARGE" | "PLAID_CONNECTION_NOT_FOUND" | "PLAID_CONNECT_CONFIGURATION_CHANGED" | "PLAID_CONNECT_EXPIRED" | "PLAID_CONNECT_IN_PROGRESS" | "PLAID_CONNECT_REQUIRES_NEW_LINK" | "PLAID_PROVIDER_UNAVAILABLE" | "RAMP_VENDOR_OWNER_REQUIRED" | "RATE_LIMITED" | "SERVICE_UNAVAILABLE" | "TEAM_DELETED" | "TEAM_DELETION_FROZEN" | "TEAM_MIGRATION_FROZEN" | "TEAM_WRITES_FROZEN" | "UNAUTHORIZED" | "UNPROCESSABLE_CONTENT";
278177
+ /**
278178
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
278179
+ * @enum {string}
278180
+ */
278181
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportExists" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "paymentAttempted" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "rampConnectionInactive" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
278182
+ message: string;
278183
+ links?: {
278184
+ docs: string;
278185
+ schema: string;
278186
+ };
278187
+ issues: {
278188
+ /** @enum {string} */
278189
+ code?: "duplicateLast4";
278190
+ message: string;
278191
+ path?: (string | number)[];
278192
+ schema?: string;
278193
+ }[];
278194
+ retryable?: boolean;
278195
+ context?: unknown;
278196
+ };
278197
+ };
278198
+ };
278199
+ };
278200
+ };
277619
278201
  postStatementsHistorical: {
277620
278202
  parameters: {
277621
278203
  query?: {