@vrplatform/api 1.3.1-stage.37340033356 → 1.3.1-stage.37340781014

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.
@@ -5030,6 +5030,27 @@ export interface paths {
5030
5030
  patch?: never;
5031
5031
  trace?: never;
5032
5032
  };
5033
+ "/partner/vri-to-vrt/reservation-line-mappings": {
5034
+ parameters: {
5035
+ query?: never;
5036
+ header?: never;
5037
+ path?: never;
5038
+ cookie?: never;
5039
+ };
5040
+ /**
5041
+ * @description Read sanitized original VRI mapping rules for an authorized linked VRI/VRT pair across data regions. Defaults, child rules, and unresolved references are review facts, not proposed VRT configuration.
5042
+ *
5043
+ * Required scope: reservation-mappings:read
5044
+ */
5045
+ get: operations["getPartnerVriReservationSetup"];
5046
+ put?: never;
5047
+ post?: never;
5048
+ delete?: never;
5049
+ options?: never;
5050
+ head?: never;
5051
+ patch?: never;
5052
+ trace?: never;
5053
+ };
5033
5054
  "/partner/vri-to-vrt/statements": {
5034
5055
  parameters: {
5035
5056
  query?: never;
@@ -187377,28 +187398,612 @@ export interface operations {
187377
187398
  };
187378
187399
  };
187379
187400
  };
187380
- getPartnerUsers: {
187401
+ getPartnerUsers: {
187402
+ parameters: {
187403
+ query?: {
187404
+ /** @description Filter by user name or email */
187405
+ search?: string;
187406
+ /** @description Filter by the exact user type */
187407
+ type?: "owner" | "user";
187408
+ /** @description Comma separated team ids; only return users with a membership on one of these teams */
187409
+ teamIds?: string;
187410
+ /** @description users: non-owner users with a portfolio membership; owners: owner users linked via membership or owner access; missing: users without any portfolio membership (delete candidates). Omitted returns every linked user. */
187411
+ view?: "users" | "owners" | "missing";
187412
+ /** @description Sort field; prefix with - for descending order */
187413
+ sort?: "name" | "-name" | "email" | "-email" | "lastSeen" | "-lastSeen" | "created" | "-created";
187414
+ limit?: number;
187415
+ page?: number;
187416
+ offset?: number;
187417
+ };
187418
+ header?: {
187419
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
187420
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
187421
+ };
187422
+ path?: never;
187423
+ cookie?: never;
187424
+ };
187425
+ requestBody?: never;
187426
+ responses: {
187427
+ /** @description Successful response */
187428
+ 200: {
187429
+ headers: {
187430
+ [name: string]: unknown;
187431
+ };
187432
+ content: {
187433
+ "application/json": {
187434
+ data: {
187435
+ /** Format: uuid */
187436
+ id: string;
187437
+ firstName: string | null;
187438
+ lastName: string | null;
187439
+ /** Format: email */
187440
+ email: string;
187441
+ secondaryEmails: string[];
187442
+ /** @description User kind (e.g. user, owner) */
187443
+ type?: string | null;
187444
+ lastSeen: string | null;
187445
+ createdAt: string | null;
187446
+ memberships: {
187447
+ /** @enum {string} */
187448
+ accessSource?: "direct" | "partnerManaged";
187449
+ /** Format: uuid */
187450
+ teamId: string;
187451
+ teamName: string;
187452
+ role?: string | null;
187453
+ status?: string | null;
187454
+ lastInvitedAt: string | null;
187455
+ }[];
187456
+ ownerAccesses: {
187457
+ /** Format: uuid */
187458
+ teamId: string;
187459
+ contactId: string | null;
187460
+ ownerId: string | null;
187461
+ role?: string | null;
187462
+ /** @description Owner contact name */
187463
+ name?: string | null;
187464
+ }[];
187465
+ }[];
187466
+ pagination: {
187467
+ /** @default 100 */
187468
+ limit: number;
187469
+ /** @default 1 */
187470
+ page: number;
187471
+ total: number;
187472
+ totalPage: number;
187473
+ nextPage?: number;
187474
+ };
187475
+ };
187476
+ };
187477
+ };
187478
+ /** @description Bad request */
187479
+ 400: {
187480
+ headers: {
187481
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187482
+ "Retry-After"?: number;
187483
+ [name: string]: unknown;
187484
+ };
187485
+ content: {
187486
+ "application/json": {
187487
+ /** @enum {string} */
187488
+ 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";
187489
+ /**
187490
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187491
+ * @enum {string}
187492
+ */
187493
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187494
+ message: string;
187495
+ links?: {
187496
+ docs: string;
187497
+ schema: string;
187498
+ };
187499
+ issues: {
187500
+ /** @enum {string} */
187501
+ code?: "duplicateLast4";
187502
+ message: string;
187503
+ path?: (string | number)[];
187504
+ schema?: string;
187505
+ }[];
187506
+ retryable?: boolean;
187507
+ context?: unknown;
187508
+ };
187509
+ };
187510
+ };
187511
+ /** @description Unauthorized */
187512
+ 401: {
187513
+ headers: {
187514
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187515
+ "Retry-After"?: number;
187516
+ [name: string]: unknown;
187517
+ };
187518
+ content: {
187519
+ "application/json": {
187520
+ /** @enum {string} */
187521
+ 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";
187522
+ /**
187523
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187524
+ * @enum {string}
187525
+ */
187526
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187527
+ message: string;
187528
+ links?: {
187529
+ docs: string;
187530
+ schema: string;
187531
+ };
187532
+ issues: {
187533
+ /** @enum {string} */
187534
+ code?: "duplicateLast4";
187535
+ message: string;
187536
+ path?: (string | number)[];
187537
+ schema?: string;
187538
+ }[];
187539
+ retryable?: boolean;
187540
+ context?: unknown;
187541
+ };
187542
+ };
187543
+ };
187544
+ /** @description Forbidden */
187545
+ 403: {
187546
+ headers: {
187547
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187548
+ "Retry-After"?: number;
187549
+ [name: string]: unknown;
187550
+ };
187551
+ content: {
187552
+ "application/json": {
187553
+ /** @enum {string} */
187554
+ 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";
187555
+ /**
187556
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187557
+ * @enum {string}
187558
+ */
187559
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187560
+ message: string;
187561
+ links?: {
187562
+ docs: string;
187563
+ schema: string;
187564
+ };
187565
+ issues: {
187566
+ /** @enum {string} */
187567
+ code?: "duplicateLast4";
187568
+ message: string;
187569
+ path?: (string | number)[];
187570
+ schema?: string;
187571
+ }[];
187572
+ retryable?: boolean;
187573
+ context?: unknown;
187574
+ };
187575
+ };
187576
+ };
187577
+ /** @description Not found */
187578
+ 404: {
187579
+ headers: {
187580
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187581
+ "Retry-After"?: number;
187582
+ [name: string]: unknown;
187583
+ };
187584
+ content: {
187585
+ "application/json": {
187586
+ /** @enum {string} */
187587
+ 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";
187588
+ /**
187589
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187590
+ * @enum {string}
187591
+ */
187592
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187593
+ message: string;
187594
+ links?: {
187595
+ docs: string;
187596
+ schema: string;
187597
+ };
187598
+ issues: {
187599
+ /** @enum {string} */
187600
+ code?: "duplicateLast4";
187601
+ message: string;
187602
+ path?: (string | number)[];
187603
+ schema?: string;
187604
+ }[];
187605
+ retryable?: boolean;
187606
+ context?: unknown;
187607
+ };
187608
+ };
187609
+ };
187610
+ /** @description Conflict */
187611
+ 409: {
187612
+ headers: {
187613
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187614
+ "Retry-After"?: number;
187615
+ [name: string]: unknown;
187616
+ };
187617
+ content: {
187618
+ "application/json": {
187619
+ /** @enum {string} */
187620
+ 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";
187621
+ /**
187622
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187623
+ * @enum {string}
187624
+ */
187625
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187626
+ message: string;
187627
+ links?: {
187628
+ docs: string;
187629
+ schema: string;
187630
+ };
187631
+ issues: {
187632
+ /** @enum {string} */
187633
+ code?: "duplicateLast4";
187634
+ message: string;
187635
+ path?: (string | number)[];
187636
+ schema?: string;
187637
+ }[];
187638
+ retryable?: boolean;
187639
+ context?: unknown;
187640
+ };
187641
+ };
187642
+ };
187643
+ /** @description Gone */
187644
+ 410: {
187645
+ headers: {
187646
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187647
+ "Retry-After"?: number;
187648
+ [name: string]: unknown;
187649
+ };
187650
+ content: {
187651
+ "application/json": {
187652
+ /** @enum {string} */
187653
+ 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";
187654
+ /**
187655
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187656
+ * @enum {string}
187657
+ */
187658
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187659
+ message: string;
187660
+ links?: {
187661
+ docs: string;
187662
+ schema: string;
187663
+ };
187664
+ issues: {
187665
+ /** @enum {string} */
187666
+ code?: "duplicateLast4";
187667
+ message: string;
187668
+ path?: (string | number)[];
187669
+ schema?: string;
187670
+ }[];
187671
+ retryable?: boolean;
187672
+ context?: unknown;
187673
+ } | {
187674
+ /** @constant */
187675
+ code: "TEAM_DELETED";
187676
+ /**
187677
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187678
+ * @enum {string}
187679
+ */
187680
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187681
+ message: string;
187682
+ links?: {
187683
+ docs: string;
187684
+ schema: string;
187685
+ };
187686
+ issues: {
187687
+ /** @enum {string} */
187688
+ code?: "duplicateLast4";
187689
+ message: string;
187690
+ path?: (string | number)[];
187691
+ schema?: string;
187692
+ }[];
187693
+ retryable?: boolean;
187694
+ context: {
187695
+ /** Format: uuid */
187696
+ teamId: string;
187697
+ /** @constant */
187698
+ reason: "deleted";
187699
+ };
187700
+ };
187701
+ };
187702
+ };
187703
+ /** @description Payload too large */
187704
+ 413: {
187705
+ headers: {
187706
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187707
+ "Retry-After"?: number;
187708
+ [name: string]: unknown;
187709
+ };
187710
+ content: {
187711
+ "application/json": {
187712
+ /** @enum {string} */
187713
+ 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";
187714
+ /**
187715
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187716
+ * @enum {string}
187717
+ */
187718
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187719
+ message: string;
187720
+ links?: {
187721
+ docs: string;
187722
+ schema: string;
187723
+ };
187724
+ issues: {
187725
+ /** @enum {string} */
187726
+ code?: "duplicateLast4";
187727
+ message: string;
187728
+ path?: (string | number)[];
187729
+ schema?: string;
187730
+ }[];
187731
+ retryable?: boolean;
187732
+ context?: unknown;
187733
+ };
187734
+ };
187735
+ };
187736
+ /** @description Misdirected regional request */
187737
+ 421: {
187738
+ headers: {
187739
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187740
+ "Retry-After"?: number;
187741
+ [name: string]: unknown;
187742
+ };
187743
+ content: {
187744
+ "application/json": {
187745
+ /** @constant */
187746
+ code: "MISDIRECTED_REQUEST";
187747
+ /**
187748
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187749
+ * @enum {string}
187750
+ */
187751
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187752
+ message: string;
187753
+ links?: {
187754
+ docs: string;
187755
+ schema: string;
187756
+ };
187757
+ issues: {
187758
+ /** @enum {string} */
187759
+ code?: "duplicateLast4";
187760
+ message: string;
187761
+ path?: (string | number)[];
187762
+ schema?: string;
187763
+ }[];
187764
+ retryable?: boolean;
187765
+ context: {
187766
+ /** Format: uuid */
187767
+ teamId?: string;
187768
+ /** @enum {string} */
187769
+ dataRegion: "ap" | "crunchy" | "eu" | "hostaway" | "us";
187770
+ /** Format: uri */
187771
+ apiBaseUrl: string;
187772
+ };
187773
+ };
187774
+ };
187775
+ };
187776
+ /** @description Unprocessable content */
187777
+ 422: {
187778
+ headers: {
187779
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187780
+ "Retry-After"?: number;
187781
+ [name: string]: unknown;
187782
+ };
187783
+ content: {
187784
+ "application/json": {
187785
+ /** @enum {string} */
187786
+ 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";
187787
+ /**
187788
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187789
+ * @enum {string}
187790
+ */
187791
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187792
+ message: string;
187793
+ links?: {
187794
+ docs: string;
187795
+ schema: string;
187796
+ };
187797
+ issues: {
187798
+ /** @enum {string} */
187799
+ code?: "duplicateLast4";
187800
+ message: string;
187801
+ path?: (string | number)[];
187802
+ schema?: string;
187803
+ }[];
187804
+ retryable?: boolean;
187805
+ context?: unknown;
187806
+ };
187807
+ };
187808
+ };
187809
+ /** @description Locked */
187810
+ 423: {
187811
+ headers: {
187812
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187813
+ "Retry-After"?: number;
187814
+ [name: string]: unknown;
187815
+ };
187816
+ content: {
187817
+ "application/json": {
187818
+ /** @constant */
187819
+ code: "LOCKED";
187820
+ /**
187821
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187822
+ * @enum {string}
187823
+ */
187824
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187825
+ message: string;
187826
+ links?: {
187827
+ docs: string;
187828
+ schema: string;
187829
+ };
187830
+ issues: {
187831
+ /** @enum {string} */
187832
+ code?: "duplicateLast4";
187833
+ message: string;
187834
+ path?: (string | number)[];
187835
+ schema?: string;
187836
+ }[];
187837
+ retryable?: boolean;
187838
+ context?: unknown;
187839
+ } | {
187840
+ /** @constant */
187841
+ code: "TEAM_MIGRATION_FROZEN";
187842
+ /**
187843
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187844
+ * @enum {string}
187845
+ */
187846
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187847
+ message: string;
187848
+ links?: {
187849
+ docs: string;
187850
+ schema: string;
187851
+ };
187852
+ issues: {
187853
+ /** @enum {string} */
187854
+ code?: "duplicateLast4";
187855
+ message: string;
187856
+ path?: (string | number)[];
187857
+ schema?: string;
187858
+ }[];
187859
+ retryable?: boolean;
187860
+ context: {
187861
+ /** Format: uuid */
187862
+ teamId: string;
187863
+ /** @constant */
187864
+ migrationStatus: "frozen";
187865
+ /** @constant */
187866
+ reason: "migration";
187867
+ };
187868
+ } | {
187869
+ /** @constant */
187870
+ code: "TEAM_DELETION_FROZEN";
187871
+ /**
187872
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187873
+ * @enum {string}
187874
+ */
187875
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187876
+ message: string;
187877
+ links?: {
187878
+ docs: string;
187879
+ schema: string;
187880
+ };
187881
+ issues: {
187882
+ /** @enum {string} */
187883
+ code?: "duplicateLast4";
187884
+ message: string;
187885
+ path?: (string | number)[];
187886
+ schema?: string;
187887
+ }[];
187888
+ retryable?: boolean;
187889
+ context: {
187890
+ /** Format: uuid */
187891
+ teamId: string;
187892
+ /** @constant */
187893
+ migrationStatus: "frozen";
187894
+ /** @constant */
187895
+ reason: "deletion";
187896
+ };
187897
+ } | {
187898
+ /** @constant */
187899
+ code: "TEAM_WRITES_FROZEN";
187900
+ /**
187901
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187902
+ * @enum {string}
187903
+ */
187904
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187905
+ message: string;
187906
+ links?: {
187907
+ docs: string;
187908
+ schema: string;
187909
+ };
187910
+ issues: {
187911
+ /** @enum {string} */
187912
+ code?: "duplicateLast4";
187913
+ message: string;
187914
+ path?: (string | number)[];
187915
+ schema?: string;
187916
+ }[];
187917
+ retryable?: boolean;
187918
+ context: {
187919
+ /** Format: uuid */
187920
+ teamId: string;
187921
+ /** @constant */
187922
+ migrationStatus: "frozen";
187923
+ /** @constant */
187924
+ reason: "unknown";
187925
+ };
187926
+ };
187927
+ };
187928
+ };
187929
+ /** @description Internal server error */
187930
+ 500: {
187931
+ headers: {
187932
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187933
+ "Retry-After"?: number;
187934
+ [name: string]: unknown;
187935
+ };
187936
+ content: {
187937
+ "application/json": {
187938
+ /** @enum {string} */
187939
+ 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";
187940
+ /**
187941
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187942
+ * @enum {string}
187943
+ */
187944
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187945
+ message: string;
187946
+ links?: {
187947
+ docs: string;
187948
+ schema: string;
187949
+ };
187950
+ issues: {
187951
+ /** @enum {string} */
187952
+ code?: "duplicateLast4";
187953
+ message: string;
187954
+ path?: (string | number)[];
187955
+ schema?: string;
187956
+ }[];
187957
+ retryable?: boolean;
187958
+ context?: unknown;
187959
+ };
187960
+ };
187961
+ };
187962
+ /** @description Service unavailable */
187963
+ 503: {
187964
+ headers: {
187965
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
187966
+ "Retry-After"?: number;
187967
+ [name: string]: unknown;
187968
+ };
187969
+ content: {
187970
+ "application/json": {
187971
+ /** @enum {string} */
187972
+ 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";
187973
+ /**
187974
+ * @description Stable business-rule reason. Absent for access, authentication, and integration errors.
187975
+ * @enum {string}
187976
+ */
187977
+ 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" | "listingMappingRequired" | "mergeDryRunRequired" | "mergePlanChanged" | "notBankAccount" | "openingBalanceUpdateInProgress" | "openingTrialBalanceLocked" | "operationsAccountingDisabled" | "paymentAccountRequiresMarkPaid" | "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";
187978
+ message: string;
187979
+ links?: {
187980
+ docs: string;
187981
+ schema: string;
187982
+ };
187983
+ issues: {
187984
+ /** @enum {string} */
187985
+ code?: "duplicateLast4";
187986
+ message: string;
187987
+ path?: (string | number)[];
187988
+ schema?: string;
187989
+ }[];
187990
+ retryable?: boolean;
187991
+ context?: unknown;
187992
+ };
187993
+ };
187994
+ };
187995
+ };
187996
+ };
187997
+ getPartnerUser: {
187381
187998
  parameters: {
187382
- query?: {
187383
- /** @description Filter by user name or email */
187384
- search?: string;
187385
- /** @description Filter by the exact user type */
187386
- type?: "owner" | "user";
187387
- /** @description Comma separated team ids; only return users with a membership on one of these teams */
187388
- teamIds?: string;
187389
- /** @description users: non-owner users with a portfolio membership; owners: owner users linked via membership or owner access; missing: users without any portfolio membership (delete candidates). Omitted returns every linked user. */
187390
- view?: "users" | "owners" | "missing";
187391
- /** @description Sort field; prefix with - for descending order */
187392
- sort?: "name" | "-name" | "email" | "-email" | "lastSeen" | "-lastSeen" | "created" | "-created";
187393
- limit?: number;
187394
- page?: number;
187395
- offset?: number;
187396
- };
187999
+ query?: never;
187397
188000
  header?: {
187398
188001
  /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
187399
188002
  "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
187400
188003
  };
187401
- path?: never;
188004
+ path: {
188005
+ id: string;
188006
+ };
187402
188007
  cookie?: never;
187403
188008
  };
187404
188009
  requestBody?: never;
@@ -187410,47 +188015,36 @@ export interface operations {
187410
188015
  };
187411
188016
  content: {
187412
188017
  "application/json": {
187413
- data: {
188018
+ /** Format: uuid */
188019
+ id: string;
188020
+ firstName: string | null;
188021
+ lastName: string | null;
188022
+ /** Format: email */
188023
+ email: string;
188024
+ secondaryEmails: string[];
188025
+ /** @description User kind (e.g. user, owner) */
188026
+ type?: string | null;
188027
+ lastSeen: string | null;
188028
+ createdAt: string | null;
188029
+ memberships: {
188030
+ /** @enum {string} */
188031
+ accessSource?: "direct" | "partnerManaged";
187414
188032
  /** Format: uuid */
187415
- id: string;
187416
- firstName: string | null;
187417
- lastName: string | null;
187418
- /** Format: email */
187419
- email: string;
187420
- secondaryEmails: string[];
187421
- /** @description User kind (e.g. user, owner) */
187422
- type?: string | null;
187423
- lastSeen: string | null;
187424
- createdAt: string | null;
187425
- memberships: {
187426
- /** @enum {string} */
187427
- accessSource?: "direct" | "partnerManaged";
187428
- /** Format: uuid */
187429
- teamId: string;
187430
- teamName: string;
187431
- role?: string | null;
187432
- status?: string | null;
187433
- lastInvitedAt: string | null;
187434
- }[];
187435
- ownerAccesses: {
187436
- /** Format: uuid */
187437
- teamId: string;
187438
- contactId: string | null;
187439
- ownerId: string | null;
187440
- role?: string | null;
187441
- /** @description Owner contact name */
187442
- name?: string | null;
187443
- }[];
188033
+ teamId: string;
188034
+ teamName: string;
188035
+ role?: string | null;
188036
+ status?: string | null;
188037
+ lastInvitedAt: string | null;
188038
+ }[];
188039
+ ownerAccesses: {
188040
+ /** Format: uuid */
188041
+ teamId: string;
188042
+ contactId: string | null;
188043
+ ownerId: string | null;
188044
+ role?: string | null;
188045
+ /** @description Owner contact name */
188046
+ name?: string | null;
187444
188047
  }[];
187445
- pagination: {
187446
- /** @default 100 */
187447
- limit: number;
187448
- /** @default 1 */
187449
- page: number;
187450
- total: number;
187451
- totalPage: number;
187452
- nextPage?: number;
187453
- };
187454
188048
  };
187455
188049
  };
187456
188050
  };
@@ -187973,13 +188567,10 @@ export interface operations {
187973
188567
  };
187974
188568
  };
187975
188569
  };
187976
- getPartnerUser: {
188570
+ deletePartnerUser: {
187977
188571
  parameters: {
187978
188572
  query?: never;
187979
- header?: {
187980
- /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
187981
- "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
187982
- };
188573
+ header?: never;
187983
188574
  path: {
187984
188575
  id: string;
187985
188576
  };
@@ -187994,36 +188585,14 @@ export interface operations {
187994
188585
  };
187995
188586
  content: {
187996
188587
  "application/json": {
187997
- /** Format: uuid */
187998
- id: string;
187999
- firstName: string | null;
188000
- lastName: string | null;
188001
- /** Format: email */
188002
- email: string;
188003
- secondaryEmails: string[];
188004
- /** @description User kind (e.g. user, owner) */
188005
- type?: string | null;
188006
- lastSeen: string | null;
188007
- createdAt: string | null;
188008
- memberships: {
188009
- /** @enum {string} */
188010
- accessSource?: "direct" | "partnerManaged";
188011
- /** Format: uuid */
188012
- teamId: string;
188013
- teamName: string;
188014
- role?: string | null;
188015
- status?: string | null;
188016
- lastInvitedAt: string | null;
188017
- }[];
188018
- ownerAccesses: {
188019
- /** Format: uuid */
188020
- teamId: string;
188021
- contactId: string | null;
188022
- ownerId: string | null;
188023
- role?: string | null;
188024
- /** @description Owner contact name */
188025
- name?: string | null;
188026
- }[];
188588
+ /** @enum {string} */
188589
+ status: "deleted";
188590
+ /** @description Deprecated: use status */
188591
+ deleted: boolean;
188592
+ files: number;
188593
+ memberships: number;
188594
+ ownerAccess: number;
188595
+ tokens: number;
188027
188596
  };
188028
188597
  };
188029
188598
  };
@@ -188546,7 +189115,7 @@ export interface operations {
188546
189115
  };
188547
189116
  };
188548
189117
  };
188549
- deletePartnerUser: {
189118
+ updatePartnerUserMemberships: {
188550
189119
  parameters: {
188551
189120
  query?: never;
188552
189121
  header?: never;
@@ -188555,7 +189124,24 @@ export interface operations {
188555
189124
  };
188556
189125
  cookie?: never;
188557
189126
  };
188558
- requestBody?: never;
189127
+ requestBody?: {
189128
+ content: {
189129
+ "application/json": {
189130
+ /**
189131
+ * @description Partner-level child-team access mode. Omit to preserve the member's current mode.
189132
+ * @enum {string}
189133
+ */
189134
+ managedTeamAccess?: "all" | "assigned";
189135
+ /** @description Replace semantics across the partner CHILD teams: listed teams are upserted with the given role, unlisted child-team memberships are removed. The partner-tenant membership itself and owner-role memberships are never touched. */
189136
+ memberships: {
189137
+ /** Format: uuid */
189138
+ teamId: string;
189139
+ /** @enum {string} */
189140
+ role: "admin" | "user";
189141
+ }[];
189142
+ };
189143
+ };
189144
+ };
188559
189145
  responses: {
188560
189146
  /** @description Successful response */
188561
189147
  200: {
@@ -188564,14 +189150,15 @@ export interface operations {
188564
189150
  };
188565
189151
  content: {
188566
189152
  "application/json": {
188567
- /** @enum {string} */
188568
- status: "deleted";
188569
- /** @description Deprecated: use status */
188570
- deleted: boolean;
188571
- files: number;
188572
- memberships: number;
188573
- ownerAccess: number;
188574
- tokens: number;
189153
+ data: {
189154
+ /** @enum {string} */
189155
+ accessSource?: "direct" | "partnerManaged";
189156
+ /** Format: uuid */
189157
+ teamId: string;
189158
+ teamName: string;
189159
+ role?: string | null;
189160
+ status?: string | null;
189161
+ }[];
188575
189162
  };
188576
189163
  };
188577
189164
  };
@@ -189094,30 +189681,25 @@ export interface operations {
189094
189681
  };
189095
189682
  };
189096
189683
  };
189097
- updatePartnerUserMemberships: {
189684
+ migratePartnerVriToVrt: {
189098
189685
  parameters: {
189099
189686
  query?: never;
189100
- header?: never;
189101
- path: {
189102
- id: string;
189687
+ header?: {
189688
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
189689
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
189103
189690
  };
189691
+ path?: never;
189104
189692
  cookie?: never;
189105
189693
  };
189106
189694
  requestBody?: {
189107
189695
  content: {
189108
189696
  "application/json": {
189109
- /**
189110
- * @description Partner-level child-team access mode. Omit to preserve the member's current mode.
189111
- * @enum {string}
189112
- */
189113
- managedTeamAccess?: "all" | "assigned";
189114
- /** @description Replace semantics across the partner CHILD teams: listed teams are upserted with the given role, unlisted child-team memberships are removed. The partner-tenant membership itself and owner-role memberships are never touched. */
189115
- memberships: {
189116
- /** Format: uuid */
189117
- teamId: string;
189118
- /** @enum {string} */
189119
- role: "admin" | "user";
189120
- }[];
189697
+ targetPartnerId?: string | null;
189698
+ targetName?: string | null;
189699
+ glStartAt: string;
189700
+ moveConnectionCredentials?: boolean;
189701
+ /** Format: uuid */
189702
+ sourceTeamId: string;
189121
189703
  };
189122
189704
  };
189123
189705
  };
@@ -189129,15 +189711,19 @@ export interface operations {
189129
189711
  };
189130
189712
  content: {
189131
189713
  "application/json": {
189132
- data: {
189714
+ operationId: string;
189715
+ /** @enum {string} */
189716
+ type: "ach-verification" | "bank-rule-run" | "calendar-block" | "calendar-unblock" | "connection-archive" | "connection-connect" | "connection-extract" | "connection-sync" | "csv-import" | "csv-import-preview" | "export" | "flow-run" | "historical-gl-import" | "historical-statement-import" | "listing-journal-refresh" | "plaid-initial-sync" | "pms-cutover" | "pms-cutover-preview" | "provider-payment" | "provider-payment-recovery" | "recurring-transaction-run" | "reservation-journal-refresh" | "statement-payout" | "statement-payout-preview" | "team-delete" | "team-demo-data" | "team-duplicate" | "team-initialize" | "transaction-journal-refresh" | "vri-statement-import" | "vri-team-migration" | "webhook-test";
189717
+ /** @constant */
189718
+ status: "queued";
189719
+ resource: {
189133
189720
  /** @enum {string} */
189134
- accessSource?: "direct" | "partnerManaged";
189721
+ type: "bank-rule" | "connection" | "contact" | "file" | "flow" | "listing" | "recurring-fee" | "recurring-transaction-template" | "reservation" | "statement" | "team" | "transaction" | "webhook";
189135
189722
  /** Format: uuid */
189136
- teamId: string;
189137
- teamName: string;
189138
- role?: string | null;
189139
- status?: string | null;
189140
- }[];
189723
+ id: string;
189724
+ /** @enum {string} */
189725
+ role: "source" | "target" | "result";
189726
+ } | null;
189141
189727
  };
189142
189728
  };
189143
189729
  };
@@ -189660,7 +190246,7 @@ export interface operations {
189660
190246
  };
189661
190247
  };
189662
190248
  };
189663
- migratePartnerVriToVrt: {
190249
+ backfillPartnerVriToVrtBookingChannels: {
189664
190250
  parameters: {
189665
190251
  query?: never;
189666
190252
  header?: {
@@ -189673,10 +190259,6 @@ export interface operations {
189673
190259
  requestBody?: {
189674
190260
  content: {
189675
190261
  "application/json": {
189676
- targetPartnerId?: string | null;
189677
- targetName?: string | null;
189678
- glStartAt: string;
189679
- moveConnectionCredentials?: boolean;
189680
190262
  /** Format: uuid */
189681
190263
  sourceTeamId: string;
189682
190264
  };
@@ -189690,19 +190272,7 @@ export interface operations {
189690
190272
  };
189691
190273
  content: {
189692
190274
  "application/json": {
189693
- operationId: string;
189694
- /** @enum {string} */
189695
- type: "ach-verification" | "bank-rule-run" | "calendar-block" | "calendar-unblock" | "connection-archive" | "connection-connect" | "connection-extract" | "connection-sync" | "csv-import" | "csv-import-preview" | "export" | "flow-run" | "historical-gl-import" | "historical-statement-import" | "listing-journal-refresh" | "plaid-initial-sync" | "pms-cutover" | "pms-cutover-preview" | "provider-payment" | "provider-payment-recovery" | "recurring-transaction-run" | "reservation-journal-refresh" | "statement-payout" | "statement-payout-preview" | "team-delete" | "team-demo-data" | "team-duplicate" | "team-initialize" | "transaction-journal-refresh" | "vri-statement-import" | "vri-team-migration" | "webhook-test";
189696
- /** @constant */
189697
- status: "queued";
189698
- resource: {
189699
- /** @enum {string} */
189700
- type: "bank-rule" | "connection" | "contact" | "file" | "flow" | "listing" | "recurring-fee" | "recurring-transaction-template" | "reservation" | "statement" | "team" | "transaction" | "webhook";
189701
- /** Format: uuid */
189702
- id: string;
189703
- /** @enum {string} */
189704
- role: "source" | "target" | "result";
189705
- } | null;
190275
+ bookingChannelCount: number;
189706
190276
  };
189707
190277
  };
189708
190278
  };
@@ -190225,9 +190795,16 @@ export interface operations {
190225
190795
  };
190226
190796
  };
190227
190797
  };
190228
- backfillPartnerVriToVrtBookingChannels: {
190798
+ getPartnerVriReservationSetup: {
190229
190799
  parameters: {
190230
- query?: never;
190800
+ query: {
190801
+ /** @description Original non-GL VRI team managed by the selected partner. */
190802
+ sourceTeamId: string;
190803
+ /** @description Linked GL-enabled VRT team managed by the selected partner. */
190804
+ targetTeamId: string;
190805
+ limit?: number;
190806
+ offset?: number;
190807
+ };
190231
190808
  header?: {
190232
190809
  /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
190233
190810
  "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
@@ -190235,14 +190812,7 @@ export interface operations {
190235
190812
  path?: never;
190236
190813
  cookie?: never;
190237
190814
  };
190238
- requestBody?: {
190239
- content: {
190240
- "application/json": {
190241
- /** Format: uuid */
190242
- sourceTeamId: string;
190243
- };
190244
- };
190245
- };
190815
+ requestBody?: never;
190246
190816
  responses: {
190247
190817
  /** @description Successful response */
190248
190818
  200: {
@@ -190251,7 +190821,74 @@ export interface operations {
190251
190821
  };
190252
190822
  content: {
190253
190823
  "application/json": {
190254
- bookingChannelCount: number;
190824
+ sourceTeam: {
190825
+ /** Format: uuid */
190826
+ id: string;
190827
+ name: string;
190828
+ dataRegion: string;
190829
+ };
190830
+ targetTeam: {
190831
+ /** Format: uuid */
190832
+ id: string;
190833
+ name: string;
190834
+ dataRegion: string;
190835
+ };
190836
+ /** @description Observed or explicitly configured source reservation line types; absence of a source rule is unresolved. */
190837
+ lineTypes: {
190838
+ type: string;
190839
+ appId: string | null;
190840
+ }[];
190841
+ hasMoreLineTypes: boolean;
190842
+ /** @description Stored source rules: id, key, status, automationId, localAutomationId, parentSettingId, leftConnectionId, rightConnectionId, updatedAt, isDefault, inclusion, left, right, flags. Each side has type, value and nullable source with id, type, remoteId, name, status, isArchived, classification. Flags: manualReviewRequired, unsupportedKey, unsupportedType, unsupportedValue, missingSourceReference, archivedSourceReference, inactiveSourceReference, orphanChild, providerItemRequiresReview. No effective-rule evaluation or VRT account selection is performed. */
190843
+ rules: {
190844
+ /** Format: uuid */
190845
+ id: string;
190846
+ /** @description Unsupported keys are withheld. */
190847
+ key: string | null;
190848
+ status: string | null;
190849
+ automationId: string | null;
190850
+ localAutomationId: string | null;
190851
+ /** @description Stored child relationship; this read does not evaluate precedence. */
190852
+ parentSettingId: string | null;
190853
+ leftConnectionId: string | null;
190854
+ rightConnectionId: string | null;
190855
+ updatedAt: string;
190856
+ isDefault: boolean;
190857
+ /** @description Only an explicit supported inclusion rule supplies this value. Missing rules do not mean exclusion. */
190858
+ inclusion: ("exclude" | "invoice" | "journalEntry") | null;
190859
+ left: {
190860
+ type: string | null;
190861
+ value: string | null;
190862
+ source: {
190863
+ /** Format: uuid */
190864
+ id: string;
190865
+ type: string;
190866
+ remoteId: string | null;
190867
+ name: string | null;
190868
+ status: string | null;
190869
+ isArchived: boolean;
190870
+ classification: string | null;
190871
+ } | null;
190872
+ };
190873
+ right: {
190874
+ type: string | null;
190875
+ value: string | null;
190876
+ source: {
190877
+ /** Format: uuid */
190878
+ id: string;
190879
+ type: string;
190880
+ remoteId: string | null;
190881
+ name: string | null;
190882
+ status: string | null;
190883
+ isArchived: boolean;
190884
+ classification: string | null;
190885
+ } | null;
190886
+ };
190887
+ flags: ("manualReviewRequired" | "unsupportedKey" | "unsupportedType" | "unsupportedValue" | "missingSourceReference" | "archivedSourceReference" | "inactiveSourceReference" | "orphanChild" | "providerItemRequiresReview")[];
190888
+ }[];
190889
+ total: number;
190890
+ /** @description More stored rules exist; paginate before comparing setup. */
190891
+ hasMore: boolean;
190255
190892
  };
190256
190893
  };
190257
190894
  };