@vrplatform/api 1.3.1-stage.37627863106 → 1.3.1-stage.37628933993

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.
@@ -7219,6 +7219,27 @@ export interface paths {
7219
7219
  patch?: never;
7220
7220
  trace?: never;
7221
7221
  };
7222
+ "/statements/{id}/email-history": {
7223
+ parameters: {
7224
+ query?: never;
7225
+ header?: never;
7226
+ path?: never;
7227
+ cookie?: never;
7228
+ };
7229
+ /**
7230
+ * @description List the owner emails sent for a statement, newest first, with each recipient outcome.
7231
+ *
7232
+ * Required scope: statements:read
7233
+ */
7234
+ get: operations["getStatementsByIdEmailHistory"];
7235
+ put?: never;
7236
+ post?: never;
7237
+ delete?: never;
7238
+ options?: never;
7239
+ head?: never;
7240
+ patch?: never;
7241
+ trace?: never;
7242
+ };
7222
7243
  "/statements/{id}/refresh-layout": {
7223
7244
  parameters: {
7224
7245
  query?: never;
@@ -294519,6 +294540,589 @@ export interface operations {
294519
294540
  };
294520
294541
  };
294521
294542
  };
294543
+ getStatementsByIdEmailHistory: {
294544
+ parameters: {
294545
+ query?: never;
294546
+ header?: never;
294547
+ path: {
294548
+ id: string;
294549
+ };
294550
+ cookie?: never;
294551
+ };
294552
+ requestBody?: never;
294553
+ responses: {
294554
+ /** @description Successful response */
294555
+ 200: {
294556
+ headers: {
294557
+ [name: string]: unknown;
294558
+ };
294559
+ content: {
294560
+ "application/json": {
294561
+ data: {
294562
+ /**
294563
+ * Format: uuid
294564
+ * @description Email send ID.
294565
+ */
294566
+ id: string;
294567
+ /**
294568
+ * Format: date-time
294569
+ * @description When the send was requested.
294570
+ */
294571
+ createdAt: string;
294572
+ /** @description publish, resend, or newLink when an owner requested a new statement link. Null for sends recorded before actions were tracked. */
294573
+ action: ("publish" | "resend" | "newLink") | null;
294574
+ /** @description Team member who published or resent. Null for owner requests. */
294575
+ requestedBy: {
294576
+ /** Format: uuid */
294577
+ id: string;
294578
+ name: string;
294579
+ email: string | null;
294580
+ } | null;
294581
+ /**
294582
+ * @description State of the whole send.
294583
+ * @enum {string}
294584
+ */
294585
+ status: "queued" | "processing" | "completed" | "failed" | "canceled";
294586
+ recipients: {
294587
+ /** @description Owner contact recipient. */
294588
+ contactId: string | null;
294589
+ /** @description Portal user recipient. */
294590
+ userId: string | null;
294591
+ name: string;
294592
+ email: string | null;
294593
+ /**
294594
+ * @description sent means the email provider accepted the email.
294595
+ * @enum {string}
294596
+ */
294597
+ outcome: "sent" | "skipped" | "failed" | "pending" | "canceled";
294598
+ /** @description Why the email was skipped or failed. */
294599
+ reason: ("missingEmail" | "unsubscribed" | "notificationsDisabled" | "inactiveRecipient" | "providerRejected" | "deliveryFailed") | null;
294600
+ /** @description When the outcome was recorded. */
294601
+ finishedAt: string | null;
294602
+ }[];
294603
+ }[];
294604
+ };
294605
+ };
294606
+ };
294607
+ /** @description Bad request */
294608
+ 400: {
294609
+ headers: {
294610
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
294611
+ "Retry-After"?: number;
294612
+ [name: string]: unknown;
294613
+ };
294614
+ content: {
294615
+ "application/json": {
294616
+ /** @enum {string} */
294617
+ 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";
294618
+ /**
294619
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294620
+ * @enum {string}
294621
+ */
294622
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294623
+ message: string;
294624
+ links?: {
294625
+ docs: string;
294626
+ schema: string;
294627
+ };
294628
+ issues: {
294629
+ /** @enum {string} */
294630
+ code?: "duplicateLast4";
294631
+ message: string;
294632
+ path?: (string | number)[];
294633
+ schema?: string;
294634
+ }[];
294635
+ retryable?: boolean;
294636
+ context?: unknown;
294637
+ };
294638
+ };
294639
+ };
294640
+ /** @description Unauthorized */
294641
+ 401: {
294642
+ headers: {
294643
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
294644
+ "Retry-After"?: number;
294645
+ [name: string]: unknown;
294646
+ };
294647
+ content: {
294648
+ "application/json": {
294649
+ /** @enum {string} */
294650
+ 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";
294651
+ /**
294652
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294653
+ * @enum {string}
294654
+ */
294655
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294656
+ message: string;
294657
+ links?: {
294658
+ docs: string;
294659
+ schema: string;
294660
+ };
294661
+ issues: {
294662
+ /** @enum {string} */
294663
+ code?: "duplicateLast4";
294664
+ message: string;
294665
+ path?: (string | number)[];
294666
+ schema?: string;
294667
+ }[];
294668
+ retryable?: boolean;
294669
+ context?: unknown;
294670
+ };
294671
+ };
294672
+ };
294673
+ /** @description Forbidden */
294674
+ 403: {
294675
+ headers: {
294676
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
294677
+ "Retry-After"?: number;
294678
+ [name: string]: unknown;
294679
+ };
294680
+ content: {
294681
+ "application/json": {
294682
+ /** @enum {string} */
294683
+ 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";
294684
+ /**
294685
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294686
+ * @enum {string}
294687
+ */
294688
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294689
+ message: string;
294690
+ links?: {
294691
+ docs: string;
294692
+ schema: string;
294693
+ };
294694
+ issues: {
294695
+ /** @enum {string} */
294696
+ code?: "duplicateLast4";
294697
+ message: string;
294698
+ path?: (string | number)[];
294699
+ schema?: string;
294700
+ }[];
294701
+ retryable?: boolean;
294702
+ context?: unknown;
294703
+ };
294704
+ };
294705
+ };
294706
+ /** @description Not found */
294707
+ 404: {
294708
+ headers: {
294709
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
294710
+ "Retry-After"?: number;
294711
+ [name: string]: unknown;
294712
+ };
294713
+ content: {
294714
+ "application/json": {
294715
+ /** @enum {string} */
294716
+ 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";
294717
+ /**
294718
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294719
+ * @enum {string}
294720
+ */
294721
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294722
+ message: string;
294723
+ links?: {
294724
+ docs: string;
294725
+ schema: string;
294726
+ };
294727
+ issues: {
294728
+ /** @enum {string} */
294729
+ code?: "duplicateLast4";
294730
+ message: string;
294731
+ path?: (string | number)[];
294732
+ schema?: string;
294733
+ }[];
294734
+ retryable?: boolean;
294735
+ context?: unknown;
294736
+ };
294737
+ };
294738
+ };
294739
+ /** @description Conflict */
294740
+ 409: {
294741
+ headers: {
294742
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
294743
+ "Retry-After"?: number;
294744
+ [name: string]: unknown;
294745
+ };
294746
+ content: {
294747
+ "application/json": {
294748
+ /** @enum {string} */
294749
+ 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";
294750
+ /**
294751
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294752
+ * @enum {string}
294753
+ */
294754
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294755
+ message: string;
294756
+ links?: {
294757
+ docs: string;
294758
+ schema: string;
294759
+ };
294760
+ issues: {
294761
+ /** @enum {string} */
294762
+ code?: "duplicateLast4";
294763
+ message: string;
294764
+ path?: (string | number)[];
294765
+ schema?: string;
294766
+ }[];
294767
+ retryable?: boolean;
294768
+ context?: unknown;
294769
+ };
294770
+ };
294771
+ };
294772
+ /** @description Gone */
294773
+ 410: {
294774
+ headers: {
294775
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
294776
+ "Retry-After"?: number;
294777
+ [name: string]: unknown;
294778
+ };
294779
+ content: {
294780
+ "application/json": {
294781
+ /** @enum {string} */
294782
+ 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";
294783
+ /**
294784
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294785
+ * @enum {string}
294786
+ */
294787
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294788
+ message: string;
294789
+ links?: {
294790
+ docs: string;
294791
+ schema: string;
294792
+ };
294793
+ issues: {
294794
+ /** @enum {string} */
294795
+ code?: "duplicateLast4";
294796
+ message: string;
294797
+ path?: (string | number)[];
294798
+ schema?: string;
294799
+ }[];
294800
+ retryable?: boolean;
294801
+ context?: unknown;
294802
+ } | {
294803
+ /** @constant */
294804
+ code: "TEAM_DELETED";
294805
+ /**
294806
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294807
+ * @enum {string}
294808
+ */
294809
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294810
+ message: string;
294811
+ links?: {
294812
+ docs: string;
294813
+ schema: string;
294814
+ };
294815
+ issues: {
294816
+ /** @enum {string} */
294817
+ code?: "duplicateLast4";
294818
+ message: string;
294819
+ path?: (string | number)[];
294820
+ schema?: string;
294821
+ }[];
294822
+ retryable?: boolean;
294823
+ context: {
294824
+ /** Format: uuid */
294825
+ teamId: string;
294826
+ /** @constant */
294827
+ reason: "deleted";
294828
+ };
294829
+ };
294830
+ };
294831
+ };
294832
+ /** @description Payload too large */
294833
+ 413: {
294834
+ headers: {
294835
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
294836
+ "Retry-After"?: number;
294837
+ [name: string]: unknown;
294838
+ };
294839
+ content: {
294840
+ "application/json": {
294841
+ /** @enum {string} */
294842
+ 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";
294843
+ /**
294844
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294845
+ * @enum {string}
294846
+ */
294847
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294848
+ message: string;
294849
+ links?: {
294850
+ docs: string;
294851
+ schema: string;
294852
+ };
294853
+ issues: {
294854
+ /** @enum {string} */
294855
+ code?: "duplicateLast4";
294856
+ message: string;
294857
+ path?: (string | number)[];
294858
+ schema?: string;
294859
+ }[];
294860
+ retryable?: boolean;
294861
+ context?: unknown;
294862
+ };
294863
+ };
294864
+ };
294865
+ /** @description Misdirected regional request */
294866
+ 421: {
294867
+ headers: {
294868
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
294869
+ "Retry-After"?: number;
294870
+ [name: string]: unknown;
294871
+ };
294872
+ content: {
294873
+ "application/json": {
294874
+ /** @constant */
294875
+ code: "MISDIRECTED_REQUEST";
294876
+ /**
294877
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294878
+ * @enum {string}
294879
+ */
294880
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294881
+ message: string;
294882
+ links?: {
294883
+ docs: string;
294884
+ schema: string;
294885
+ };
294886
+ issues: {
294887
+ /** @enum {string} */
294888
+ code?: "duplicateLast4";
294889
+ message: string;
294890
+ path?: (string | number)[];
294891
+ schema?: string;
294892
+ }[];
294893
+ retryable?: boolean;
294894
+ context: {
294895
+ /** Format: uuid */
294896
+ teamId?: string;
294897
+ /** @enum {string} */
294898
+ dataRegion: "ap" | "crunchy" | "eu" | "hostaway" | "us";
294899
+ /** Format: uri */
294900
+ apiBaseUrl: string;
294901
+ };
294902
+ };
294903
+ };
294904
+ };
294905
+ /** @description Unprocessable content */
294906
+ 422: {
294907
+ headers: {
294908
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
294909
+ "Retry-After"?: number;
294910
+ [name: string]: unknown;
294911
+ };
294912
+ content: {
294913
+ "application/json": {
294914
+ /** @enum {string} */
294915
+ 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";
294916
+ /**
294917
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294918
+ * @enum {string}
294919
+ */
294920
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294921
+ message: string;
294922
+ links?: {
294923
+ docs: string;
294924
+ schema: string;
294925
+ };
294926
+ issues: {
294927
+ /** @enum {string} */
294928
+ code?: "duplicateLast4";
294929
+ message: string;
294930
+ path?: (string | number)[];
294931
+ schema?: string;
294932
+ }[];
294933
+ retryable?: boolean;
294934
+ context?: unknown;
294935
+ };
294936
+ };
294937
+ };
294938
+ /** @description Locked */
294939
+ 423: {
294940
+ headers: {
294941
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
294942
+ "Retry-After"?: number;
294943
+ [name: string]: unknown;
294944
+ };
294945
+ content: {
294946
+ "application/json": {
294947
+ /** @constant */
294948
+ code: "LOCKED";
294949
+ /**
294950
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294951
+ * @enum {string}
294952
+ */
294953
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294954
+ message: string;
294955
+ links?: {
294956
+ docs: string;
294957
+ schema: string;
294958
+ };
294959
+ issues: {
294960
+ /** @enum {string} */
294961
+ code?: "duplicateLast4";
294962
+ message: string;
294963
+ path?: (string | number)[];
294964
+ schema?: string;
294965
+ }[];
294966
+ retryable?: boolean;
294967
+ context?: unknown;
294968
+ } | {
294969
+ /** @constant */
294970
+ code: "TEAM_MIGRATION_FROZEN";
294971
+ /**
294972
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
294973
+ * @enum {string}
294974
+ */
294975
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
294976
+ message: string;
294977
+ links?: {
294978
+ docs: string;
294979
+ schema: string;
294980
+ };
294981
+ issues: {
294982
+ /** @enum {string} */
294983
+ code?: "duplicateLast4";
294984
+ message: string;
294985
+ path?: (string | number)[];
294986
+ schema?: string;
294987
+ }[];
294988
+ retryable?: boolean;
294989
+ context: {
294990
+ /** Format: uuid */
294991
+ teamId: string;
294992
+ /** @constant */
294993
+ migrationStatus: "frozen";
294994
+ /** @constant */
294995
+ reason: "migration";
294996
+ };
294997
+ } | {
294998
+ /** @constant */
294999
+ code: "TEAM_DELETION_FROZEN";
295000
+ /**
295001
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
295002
+ * @enum {string}
295003
+ */
295004
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
295005
+ message: string;
295006
+ links?: {
295007
+ docs: string;
295008
+ schema: string;
295009
+ };
295010
+ issues: {
295011
+ /** @enum {string} */
295012
+ code?: "duplicateLast4";
295013
+ message: string;
295014
+ path?: (string | number)[];
295015
+ schema?: string;
295016
+ }[];
295017
+ retryable?: boolean;
295018
+ context: {
295019
+ /** Format: uuid */
295020
+ teamId: string;
295021
+ /** @constant */
295022
+ migrationStatus: "frozen";
295023
+ /** @constant */
295024
+ reason: "deletion";
295025
+ };
295026
+ } | {
295027
+ /** @constant */
295028
+ code: "TEAM_WRITES_FROZEN";
295029
+ /**
295030
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
295031
+ * @enum {string}
295032
+ */
295033
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
295034
+ message: string;
295035
+ links?: {
295036
+ docs: string;
295037
+ schema: string;
295038
+ };
295039
+ issues: {
295040
+ /** @enum {string} */
295041
+ code?: "duplicateLast4";
295042
+ message: string;
295043
+ path?: (string | number)[];
295044
+ schema?: string;
295045
+ }[];
295046
+ retryable?: boolean;
295047
+ context: {
295048
+ /** Format: uuid */
295049
+ teamId: string;
295050
+ /** @constant */
295051
+ migrationStatus: "frozen";
295052
+ /** @constant */
295053
+ reason: "unknown";
295054
+ };
295055
+ };
295056
+ };
295057
+ };
295058
+ /** @description Internal server error */
295059
+ 500: {
295060
+ headers: {
295061
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
295062
+ "Retry-After"?: number;
295063
+ [name: string]: unknown;
295064
+ };
295065
+ content: {
295066
+ "application/json": {
295067
+ /** @enum {string} */
295068
+ 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";
295069
+ /**
295070
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
295071
+ * @enum {string}
295072
+ */
295073
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
295074
+ message: string;
295075
+ links?: {
295076
+ docs: string;
295077
+ schema: string;
295078
+ };
295079
+ issues: {
295080
+ /** @enum {string} */
295081
+ code?: "duplicateLast4";
295082
+ message: string;
295083
+ path?: (string | number)[];
295084
+ schema?: string;
295085
+ }[];
295086
+ retryable?: boolean;
295087
+ context?: unknown;
295088
+ };
295089
+ };
295090
+ };
295091
+ /** @description Service unavailable */
295092
+ 503: {
295093
+ headers: {
295094
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
295095
+ "Retry-After"?: number;
295096
+ [name: string]: unknown;
295097
+ };
295098
+ content: {
295099
+ "application/json": {
295100
+ /** @enum {string} */
295101
+ 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";
295102
+ /**
295103
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
295104
+ * @enum {string}
295105
+ */
295106
+ 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" | "subscriptionRecoveryUnavailable" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
295107
+ message: string;
295108
+ links?: {
295109
+ docs: string;
295110
+ schema: string;
295111
+ };
295112
+ issues: {
295113
+ /** @enum {string} */
295114
+ code?: "duplicateLast4";
295115
+ message: string;
295116
+ path?: (string | number)[];
295117
+ schema?: string;
295118
+ }[];
295119
+ retryable?: boolean;
295120
+ context?: unknown;
295121
+ };
295122
+ };
295123
+ };
295124
+ };
295125
+ };
294522
295126
  postStatementsByIdRefreshLayout: {
294523
295127
  parameters: {
294524
295128
  query?: never;