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

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