@vrplatform/api 1.3.1-stage.983 → 1.3.1-stage.985

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.
@@ -1311,6 +1311,27 @@ export interface paths {
1311
1311
  patch?: never;
1312
1312
  trace?: never;
1313
1313
  };
1314
+ "/contacts/{id}/preview": {
1315
+ parameters: {
1316
+ query?: never;
1317
+ header?: never;
1318
+ path?: never;
1319
+ cookie?: never;
1320
+ };
1321
+ get?: never;
1322
+ put?: never;
1323
+ /**
1324
+ * @description Issue a short-lived, read-only bearer token that shows the owner portal as this owner contact sees it. Successful responses use Cache-Control: no-store.
1325
+ *
1326
+ * Required scope: contacts:read
1327
+ */
1328
+ post: operations["postContactsByIdPreview"];
1329
+ delete?: never;
1330
+ options?: never;
1331
+ head?: never;
1332
+ patch?: never;
1333
+ trace?: never;
1334
+ };
1314
1335
  "/contacts/{id}/revoke-access": {
1315
1336
  parameters: {
1316
1337
  query?: never;
@@ -58365,6 +58386,569 @@ export interface operations {
58365
58386
  };
58366
58387
  };
58367
58388
  };
58389
+ postContactsByIdPreview: {
58390
+ parameters: {
58391
+ query?: never;
58392
+ header?: never;
58393
+ path: {
58394
+ id: string;
58395
+ };
58396
+ cookie?: never;
58397
+ };
58398
+ requestBody?: {
58399
+ content: {
58400
+ "application/json": Record<string, never>;
58401
+ };
58402
+ };
58403
+ responses: {
58404
+ /** @description Successful response */
58405
+ 200: {
58406
+ headers: {
58407
+ /** @description Prevents storage of the preview bearer token. */
58408
+ "Cache-Control"?: "no-store";
58409
+ [name: string]: unknown;
58410
+ };
58411
+ content: {
58412
+ "application/json": {
58413
+ /** @description Read-only bearer token scoped to this owner contact. */
58414
+ accessToken: string;
58415
+ /**
58416
+ * Format: uuid
58417
+ * @description Owner contact the preview shows.
58418
+ */
58419
+ contactId: string;
58420
+ /**
58421
+ * Format: date-time
58422
+ * @description Bearer-token expiration timestamp.
58423
+ */
58424
+ expiresAt: string;
58425
+ /**
58426
+ * Format: uuid
58427
+ * @description Team bound to the preview.
58428
+ */
58429
+ teamId: string;
58430
+ };
58431
+ };
58432
+ };
58433
+ /** @description Bad request */
58434
+ 400: {
58435
+ headers: {
58436
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58437
+ "Retry-After"?: number;
58438
+ [name: string]: unknown;
58439
+ };
58440
+ content: {
58441
+ "application/json": {
58442
+ /** @enum {string} */
58443
+ 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" | "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";
58444
+ /**
58445
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58446
+ * @enum {string}
58447
+ */
58448
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58449
+ message: string;
58450
+ links?: {
58451
+ docs: string;
58452
+ schema: string;
58453
+ };
58454
+ issues: {
58455
+ /** @enum {string} */
58456
+ code?: "duplicateLast4";
58457
+ message: string;
58458
+ path?: (string | number)[];
58459
+ schema?: string;
58460
+ }[];
58461
+ retryable?: boolean;
58462
+ context?: unknown;
58463
+ };
58464
+ };
58465
+ };
58466
+ /** @description Unauthorized */
58467
+ 401: {
58468
+ headers: {
58469
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58470
+ "Retry-After"?: number;
58471
+ [name: string]: unknown;
58472
+ };
58473
+ content: {
58474
+ "application/json": {
58475
+ /** @enum {string} */
58476
+ 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" | "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";
58477
+ /**
58478
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58479
+ * @enum {string}
58480
+ */
58481
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58482
+ message: string;
58483
+ links?: {
58484
+ docs: string;
58485
+ schema: string;
58486
+ };
58487
+ issues: {
58488
+ /** @enum {string} */
58489
+ code?: "duplicateLast4";
58490
+ message: string;
58491
+ path?: (string | number)[];
58492
+ schema?: string;
58493
+ }[];
58494
+ retryable?: boolean;
58495
+ context?: unknown;
58496
+ };
58497
+ };
58498
+ };
58499
+ /** @description Forbidden */
58500
+ 403: {
58501
+ headers: {
58502
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58503
+ "Retry-After"?: number;
58504
+ [name: string]: unknown;
58505
+ };
58506
+ content: {
58507
+ "application/json": {
58508
+ /** @enum {string} */
58509
+ 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" | "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";
58510
+ /**
58511
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58512
+ * @enum {string}
58513
+ */
58514
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58515
+ message: string;
58516
+ links?: {
58517
+ docs: string;
58518
+ schema: string;
58519
+ };
58520
+ issues: {
58521
+ /** @enum {string} */
58522
+ code?: "duplicateLast4";
58523
+ message: string;
58524
+ path?: (string | number)[];
58525
+ schema?: string;
58526
+ }[];
58527
+ retryable?: boolean;
58528
+ context?: unknown;
58529
+ };
58530
+ };
58531
+ };
58532
+ /** @description Not found */
58533
+ 404: {
58534
+ headers: {
58535
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58536
+ "Retry-After"?: number;
58537
+ [name: string]: unknown;
58538
+ };
58539
+ content: {
58540
+ "application/json": {
58541
+ /** @enum {string} */
58542
+ 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" | "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";
58543
+ /**
58544
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58545
+ * @enum {string}
58546
+ */
58547
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58548
+ message: string;
58549
+ links?: {
58550
+ docs: string;
58551
+ schema: string;
58552
+ };
58553
+ issues: {
58554
+ /** @enum {string} */
58555
+ code?: "duplicateLast4";
58556
+ message: string;
58557
+ path?: (string | number)[];
58558
+ schema?: string;
58559
+ }[];
58560
+ retryable?: boolean;
58561
+ context?: unknown;
58562
+ };
58563
+ };
58564
+ };
58565
+ /** @description Conflict */
58566
+ 409: {
58567
+ headers: {
58568
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58569
+ "Retry-After"?: number;
58570
+ [name: string]: unknown;
58571
+ };
58572
+ content: {
58573
+ "application/json": {
58574
+ /** @enum {string} */
58575
+ 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" | "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";
58576
+ /**
58577
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58578
+ * @enum {string}
58579
+ */
58580
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58581
+ message: string;
58582
+ links?: {
58583
+ docs: string;
58584
+ schema: string;
58585
+ };
58586
+ issues: {
58587
+ /** @enum {string} */
58588
+ code?: "duplicateLast4";
58589
+ message: string;
58590
+ path?: (string | number)[];
58591
+ schema?: string;
58592
+ }[];
58593
+ retryable?: boolean;
58594
+ context?: unknown;
58595
+ };
58596
+ };
58597
+ };
58598
+ /** @description Gone */
58599
+ 410: {
58600
+ headers: {
58601
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58602
+ "Retry-After"?: number;
58603
+ [name: string]: unknown;
58604
+ };
58605
+ content: {
58606
+ "application/json": {
58607
+ /** @enum {string} */
58608
+ 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" | "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";
58609
+ /**
58610
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58611
+ * @enum {string}
58612
+ */
58613
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58614
+ message: string;
58615
+ links?: {
58616
+ docs: string;
58617
+ schema: string;
58618
+ };
58619
+ issues: {
58620
+ /** @enum {string} */
58621
+ code?: "duplicateLast4";
58622
+ message: string;
58623
+ path?: (string | number)[];
58624
+ schema?: string;
58625
+ }[];
58626
+ retryable?: boolean;
58627
+ context?: unknown;
58628
+ } | {
58629
+ /** @constant */
58630
+ code: "TEAM_DELETED";
58631
+ /**
58632
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58633
+ * @enum {string}
58634
+ */
58635
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58636
+ message: string;
58637
+ links?: {
58638
+ docs: string;
58639
+ schema: string;
58640
+ };
58641
+ issues: {
58642
+ /** @enum {string} */
58643
+ code?: "duplicateLast4";
58644
+ message: string;
58645
+ path?: (string | number)[];
58646
+ schema?: string;
58647
+ }[];
58648
+ retryable?: boolean;
58649
+ context: {
58650
+ /** Format: uuid */
58651
+ teamId: string;
58652
+ /** @constant */
58653
+ reason: "deleted";
58654
+ };
58655
+ };
58656
+ };
58657
+ };
58658
+ /** @description Payload too large */
58659
+ 413: {
58660
+ headers: {
58661
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58662
+ "Retry-After"?: number;
58663
+ [name: string]: unknown;
58664
+ };
58665
+ content: {
58666
+ "application/json": {
58667
+ /** @enum {string} */
58668
+ 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" | "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";
58669
+ /**
58670
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58671
+ * @enum {string}
58672
+ */
58673
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58674
+ message: string;
58675
+ links?: {
58676
+ docs: string;
58677
+ schema: string;
58678
+ };
58679
+ issues: {
58680
+ /** @enum {string} */
58681
+ code?: "duplicateLast4";
58682
+ message: string;
58683
+ path?: (string | number)[];
58684
+ schema?: string;
58685
+ }[];
58686
+ retryable?: boolean;
58687
+ context?: unknown;
58688
+ };
58689
+ };
58690
+ };
58691
+ /** @description Misdirected regional request */
58692
+ 421: {
58693
+ headers: {
58694
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58695
+ "Retry-After"?: number;
58696
+ [name: string]: unknown;
58697
+ };
58698
+ content: {
58699
+ "application/json": {
58700
+ /** @constant */
58701
+ code: "MISDIRECTED_REQUEST";
58702
+ /**
58703
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58704
+ * @enum {string}
58705
+ */
58706
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58707
+ message: string;
58708
+ links?: {
58709
+ docs: string;
58710
+ schema: string;
58711
+ };
58712
+ issues: {
58713
+ /** @enum {string} */
58714
+ code?: "duplicateLast4";
58715
+ message: string;
58716
+ path?: (string | number)[];
58717
+ schema?: string;
58718
+ }[];
58719
+ retryable?: boolean;
58720
+ context: {
58721
+ /** Format: uuid */
58722
+ teamId?: string;
58723
+ /** @enum {string} */
58724
+ dataRegion: "ap" | "crunchy" | "eu" | "hostaway" | "us";
58725
+ /** Format: uri */
58726
+ apiBaseUrl: string;
58727
+ };
58728
+ };
58729
+ };
58730
+ };
58731
+ /** @description Unprocessable content */
58732
+ 422: {
58733
+ headers: {
58734
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58735
+ "Retry-After"?: number;
58736
+ [name: string]: unknown;
58737
+ };
58738
+ content: {
58739
+ "application/json": {
58740
+ /** @enum {string} */
58741
+ 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" | "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";
58742
+ /**
58743
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58744
+ * @enum {string}
58745
+ */
58746
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58747
+ message: string;
58748
+ links?: {
58749
+ docs: string;
58750
+ schema: string;
58751
+ };
58752
+ issues: {
58753
+ /** @enum {string} */
58754
+ code?: "duplicateLast4";
58755
+ message: string;
58756
+ path?: (string | number)[];
58757
+ schema?: string;
58758
+ }[];
58759
+ retryable?: boolean;
58760
+ context?: unknown;
58761
+ };
58762
+ };
58763
+ };
58764
+ /** @description Locked */
58765
+ 423: {
58766
+ headers: {
58767
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58768
+ "Retry-After"?: number;
58769
+ [name: string]: unknown;
58770
+ };
58771
+ content: {
58772
+ "application/json": {
58773
+ /** @constant */
58774
+ code: "LOCKED";
58775
+ /**
58776
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58777
+ * @enum {string}
58778
+ */
58779
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58780
+ message: string;
58781
+ links?: {
58782
+ docs: string;
58783
+ schema: string;
58784
+ };
58785
+ issues: {
58786
+ /** @enum {string} */
58787
+ code?: "duplicateLast4";
58788
+ message: string;
58789
+ path?: (string | number)[];
58790
+ schema?: string;
58791
+ }[];
58792
+ retryable?: boolean;
58793
+ context?: unknown;
58794
+ } | {
58795
+ /** @constant */
58796
+ code: "TEAM_MIGRATION_FROZEN";
58797
+ /**
58798
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58799
+ * @enum {string}
58800
+ */
58801
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58802
+ message: string;
58803
+ links?: {
58804
+ docs: string;
58805
+ schema: string;
58806
+ };
58807
+ issues: {
58808
+ /** @enum {string} */
58809
+ code?: "duplicateLast4";
58810
+ message: string;
58811
+ path?: (string | number)[];
58812
+ schema?: string;
58813
+ }[];
58814
+ retryable?: boolean;
58815
+ context: {
58816
+ /** Format: uuid */
58817
+ teamId: string;
58818
+ /** @constant */
58819
+ migrationStatus: "frozen";
58820
+ /** @constant */
58821
+ reason: "migration";
58822
+ };
58823
+ } | {
58824
+ /** @constant */
58825
+ code: "TEAM_DELETION_FROZEN";
58826
+ /**
58827
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58828
+ * @enum {string}
58829
+ */
58830
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58831
+ message: string;
58832
+ links?: {
58833
+ docs: string;
58834
+ schema: string;
58835
+ };
58836
+ issues: {
58837
+ /** @enum {string} */
58838
+ code?: "duplicateLast4";
58839
+ message: string;
58840
+ path?: (string | number)[];
58841
+ schema?: string;
58842
+ }[];
58843
+ retryable?: boolean;
58844
+ context: {
58845
+ /** Format: uuid */
58846
+ teamId: string;
58847
+ /** @constant */
58848
+ migrationStatus: "frozen";
58849
+ /** @constant */
58850
+ reason: "deletion";
58851
+ };
58852
+ } | {
58853
+ /** @constant */
58854
+ code: "TEAM_WRITES_FROZEN";
58855
+ /**
58856
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58857
+ * @enum {string}
58858
+ */
58859
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58860
+ message: string;
58861
+ links?: {
58862
+ docs: string;
58863
+ schema: string;
58864
+ };
58865
+ issues: {
58866
+ /** @enum {string} */
58867
+ code?: "duplicateLast4";
58868
+ message: string;
58869
+ path?: (string | number)[];
58870
+ schema?: string;
58871
+ }[];
58872
+ retryable?: boolean;
58873
+ context: {
58874
+ /** Format: uuid */
58875
+ teamId: string;
58876
+ /** @constant */
58877
+ migrationStatus: "frozen";
58878
+ /** @constant */
58879
+ reason: "unknown";
58880
+ };
58881
+ };
58882
+ };
58883
+ };
58884
+ /** @description Internal server error */
58885
+ 500: {
58886
+ headers: {
58887
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58888
+ "Retry-After"?: number;
58889
+ [name: string]: unknown;
58890
+ };
58891
+ content: {
58892
+ "application/json": {
58893
+ /** @enum {string} */
58894
+ 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" | "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";
58895
+ /**
58896
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58897
+ * @enum {string}
58898
+ */
58899
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58900
+ message: string;
58901
+ links?: {
58902
+ docs: string;
58903
+ schema: string;
58904
+ };
58905
+ issues: {
58906
+ /** @enum {string} */
58907
+ code?: "duplicateLast4";
58908
+ message: string;
58909
+ path?: (string | number)[];
58910
+ schema?: string;
58911
+ }[];
58912
+ retryable?: boolean;
58913
+ context?: unknown;
58914
+ };
58915
+ };
58916
+ };
58917
+ /** @description Service unavailable */
58918
+ 503: {
58919
+ headers: {
58920
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
58921
+ "Retry-After"?: number;
58922
+ [name: string]: unknown;
58923
+ };
58924
+ content: {
58925
+ "application/json": {
58926
+ /** @enum {string} */
58927
+ 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" | "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";
58928
+ /**
58929
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
58930
+ * @enum {string}
58931
+ */
58932
+ reason?: "accountClassificationLocked" | "accountConnectionAttached" | "accountInUse" | "alreadyPaid" | "amountExceedsReturnable" | "archiveRequired" | "bankAccountTooManyRecords" | "bankRecordInactive" | "bankRecordNotCsvSource" | "bankRecordPlaidSource" | "bankRecordReconciled" | "bankRecordRuleMatched" | "bankRecordUnassigned" | "bankRuleRunIncomplete" | "beforeStatementStartDate" | "booksClosed" | "dailyGlSummaryDisabled" | "duplicateLast4" | "duplicateName" | "duplicateUniqueRef" | "generalLedgerDisabled" | "generalLedgerStartDateMissing" | "historicalImportPending" | "inUse" | "lastAccessManager" | "listingInGroup" | "listingInGroupAlready" | "listingInactive" | "listingMappingAmbiguous" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAttempted" | "paymentReturnInvolved" | "paymentReturnNotEligible" | "plaidReplacementUnavailable" | "pmsAccountingStartMissing" | "previousStatementsOpen" | "providerPaymentRecoveryInProgress" | "providerPaymentRecoveryUnavailable" | "rampAccountNotReady" | "rampConnectionInactive" | "rampPaymentNotSupported" | "rampRecipientNotReady" | "reconciliationAmountMismatch" | "reconciliationTransferMismatch" | "requiredAccountMissing" | "reservationLocked" | "reservationUnmatched" | "selfModification" | "statementAttachment" | "statementExists" | "statementFutureExists" | "statementHasBlockingIssues" | "statementHasPayouts" | "statementInReview" | "statementNotReadyForPayment" | "statementPeriod" | "statementPublished" | "transactionInactive" | "transactionReconciled" | "transactionReconciledElsewhere";
58933
+ message: string;
58934
+ links?: {
58935
+ docs: string;
58936
+ schema: string;
58937
+ };
58938
+ issues: {
58939
+ /** @enum {string} */
58940
+ code?: "duplicateLast4";
58941
+ message: string;
58942
+ path?: (string | number)[];
58943
+ schema?: string;
58944
+ }[];
58945
+ retryable?: boolean;
58946
+ context?: unknown;
58947
+ };
58948
+ };
58949
+ };
58950
+ };
58951
+ };
58368
58952
  postContactsByIdRevokeAccess: {
58369
58953
  parameters: {
58370
58954
  query?: never;