node-autotask 0.26.0 → 0.28.0

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/MCP_TOOL_CATALOG.json +941 -14
  3. package/MCP_TOOL_MANIFEST.md +71 -16
  4. package/N8N_MCP_MANIFEST.json +91 -10
  5. package/N8N_MCP_MANIFEST.md +14 -11
  6. package/README.md +11 -9
  7. package/capabilities.json +13623 -7738
  8. package/capabilities.schema.json +125 -0
  9. package/dist/capabilities.cjs +2 -2
  10. package/dist/capabilities.js +1 -1
  11. package/dist/{chunk-QXWIQ67O.js → chunk-6EQSXYRW.js} +13622 -7737
  12. package/dist/{chunk-HQGE4WAV.cjs → chunk-D5IVS6GY.cjs} +1054 -235
  13. package/dist/{chunk-5OGJTS2E.cjs → chunk-GUY2KK7U.cjs} +157 -136
  14. package/dist/{chunk-SSUECUVN.js → chunk-IRVZGW5K.js} +947 -128
  15. package/dist/{chunk-7DOSJS6S.js → chunk-O2D7KDDD.js} +23 -2
  16. package/dist/{chunk-VVQ6NJYZ.js → chunk-SYX6EWMT.js} +694 -76
  17. package/dist/{chunk-SG4LIVMG.cjs → chunk-WYKGD5UD.cjs} +1189 -571
  18. package/dist/{chunk-WM6E5O55.cjs → chunk-ZEGMVEF3.cjs} +13622 -7737
  19. package/dist/{index-CKYr0unq.d.cts → index-CORcZUNm.d.cts} +457 -50
  20. package/dist/{index-1zBdJIEy.d.cts → index-DQ9NgraW.d.cts} +281 -1
  21. package/dist/{index-1zBdJIEy.d.ts → index-DQ9NgraW.d.ts} +281 -1
  22. package/dist/{index-C8QH3BkP.d.ts → index-DXuV04zM.d.ts} +457 -50
  23. package/dist/index.cjs +44 -24
  24. package/dist/index.d.cts +11 -5
  25. package/dist/index.d.ts +11 -5
  26. package/dist/index.js +26 -6
  27. package/dist/operations/index.cjs +147 -120
  28. package/dist/operations/index.d.cts +136 -7
  29. package/dist/operations/index.d.ts +136 -7
  30. package/dist/operations/index.js +33 -6
  31. package/dist/pool.cjs +42 -9
  32. package/dist/pool.d.cts +14 -3
  33. package/dist/pool.d.ts +14 -3
  34. package/dist/pool.js +38 -5
  35. package/dist/resources/index.cjs +19 -5
  36. package/dist/resources/index.d.cts +2 -2
  37. package/dist/resources/index.d.ts +2 -2
  38. package/dist/resources/index.js +18 -4
  39. package/dist/types/index.cjs +1 -1
  40. package/dist/types/index.d.cts +1 -1
  41. package/dist/types/index.d.ts +1 -1
  42. package/dist/types/index.js +1 -1
  43. package/docs/API.md +246 -10
  44. package/examples/mcp/schemas.ts +16 -7
  45. package/package.json +1 -1
  46. /package/dist/{chunk-S643FDOR.cjs → chunk-IXF7AKOJ.cjs} +0 -0
  47. /package/dist/{chunk-2TWKEB2L.js → chunk-RMG55JTF.js} +0 -0
  48. /package/dist/{chunk-W3K5BEVY.cjs → chunk-SDYRQFGL.cjs} +0 -0
  49. /package/dist/{chunk-EBCHCNPK.js → chunk-WLTLB2ND.js} +0 -0
@@ -1,4 +1,54 @@
1
- import { I as Identifier, g as AuditEvent, a as FilterCondition, eD as ResolutionCaps, Q as QueryParams, cK as EmptyReasonInfo, eC as Resolution, dH as Page, cM as EntityInformationModel, d0 as FieldInformationModel, c_ as Field, O as OperationResult, cJ as DryRunResult, c as Appointment, d as AppointmentCreate, f as AppointmentUpdate, e as AppointmentSummary, h as AuthTokenResultModel, B as BillingCode, j as BillingCodeCreate, l as BillingCodeUpdate, k as BillingCodeSummary, m as BillingItems, n as BillingItemsCreate, p as BillingItemsUpdate, o as BillingItemsSummary, C as ChangeRequestLink, q as ChangeRequestLinkCreate, s as ChangeRequestLinkUpdate, r as ChangeRequestLinkSummary, t as ChecklistLibrary, y as ChecklistLibraryCreate, D as ChecklistLibraryUpdate, z as ChecklistLibrarySummary, u as ChecklistLibraryChecklistItem, v as ChecklistLibraryChecklistItemCreate, x as ChecklistLibraryChecklistItemUpdate, w as ChecklistLibraryChecklistItemSummary, E as ClassificationIcon, G as ClassificationIconCreate, J as ClassificationIconUpdate, H as ClassificationIconSummary, K as Company, U as CompanyLocation, aP as Contact, Y as CompanyNote, gd as Ticket, dV as Project, hu as CompositeNamesSection, he as TimeEntry, T as CompanyCreate, a5 as CompanyUpdate, a4 as CompanySummary, S as CompanyContext, L as CompanyAlert, M as CompanyAlertCreate, R as CompanyAlertUpdate, N as CompanyAlertSummary, V as CompanyLocationCreate, X as CompanyLocationUpdate, W as CompanyLocationSummary, Z as CompanyNoteCreate, $ as CompanyNoteUpdate, _ as CompanyNoteSummary, a0 as CompanySiteConfigurations, a1 as CompanySiteConfigurationsCreate, a3 as CompanySiteConfigurationsUpdate, a2 as CompanySiteConfigurationsSummary, a6 as CompanyWebhook, a7 as CompanyWebhookCreate, a9 as CompanyWebhookUpdate, a8 as CompanyWebhookSummary, ab as ConfigurationItemBillingProductAssociations, ac as ConfigurationItemBillingProductAssociationsCreate, ae as ConfigurationItemBillingProductAssociationsUpdate, ad as ConfigurationItemBillingProductAssociationsSummary, af as ConfigurationItemCategory, ag as ConfigurationItemCategoryCreate, am as ConfigurationItemCategoryUpdate, ah as ConfigurationItemCategorySummary, ai as ConfigurationItemCategoryUdfAssociation, aj as ConfigurationItemCategoryUdfAssociationCreate, al as ConfigurationItemCategoryUdfAssociationUpdate, ak as ConfigurationItemCategoryUdfAssociationSummary, ap as ConfigurationItemDnsRecord, aq as ConfigurationItemDnsRecordCreate, as as ConfigurationItemDnsRecordUpdate, ar as ConfigurationItemDnsRecordSummary, at as ConfigurationItemNote, au as ConfigurationItemNoteCreate, aw as ConfigurationItemNoteUpdate, av as ConfigurationItemNoteSummary, ax as ConfigurationItemRelatedItem, ay as ConfigurationItemRelatedItemCreate, aA as ConfigurationItemRelatedItemUpdate, az as ConfigurationItemRelatedItemSummary, aa as ConfigurationItem, aG as ConfigurationItemType, ao as ConfigurationItemCreate, aK as ConfigurationItemUpdate, aF as ConfigurationItemSummary, an as ConfigurationItemContext, aB as ConfigurationItemSslSubjectAlternativeName, aC as ConfigurationItemSslSubjectAlternativeNameCreate, aE as ConfigurationItemSslSubjectAlternativeNameUpdate, aD as ConfigurationItemSslSubjectAlternativeNameSummary, aH as ConfigurationItemTypeCreate, aJ as ConfigurationItemTypeUpdate, aI as ConfigurationItemTypeSummary, aL as ConfigurationItemWebhook, aM as ConfigurationItemWebhookCreate, aO as ConfigurationItemWebhookUpdate, aN as ConfigurationItemWebhookSummary, aS as ContactGroupContacts, aT as ContactGroupContactsCreate, aV as ContactGroupContactsUpdate, aU as ContactGroupContactsSummary, aW as ContactGroups, aX as ContactGroupsCreate, aZ as ContactGroupsUpdate, aY as ContactGroupsSummary, a_ as ContactSummary, aR as ContactCreate, a$ as ContactUpdate, aQ as ContactContext, b0 as ContactWebhook, b1 as ContactWebhookCreate, b3 as ContactWebhookUpdate, b2 as ContactWebhookSummary, b5 as ContractBillingRule, b6 as ContractBillingRuleCreate, b8 as ContractBillingRuleUpdate, b7 as ContractBillingRuleSummary, bb as ContractBlockHourFactor, bc as ContractBlockHourFactorCreate, be as ContractBlockHourFactorUpdate, bd as ContractBlockHourFactorSummary, b9 as ContractBlock, ba as ContractBlockCreate, bg as ContractBlockUpdate, bf as ContractBlockSummary, bh as ContractCharge, bi as ContractChargeCreate, bk as ContractChargeUpdate, bj as ContractChargeSummary, bm as ContractExclusionBillingCode, bn as ContractExclusionBillingCodeCreate, bp as ContractExclusionBillingCodeUpdate, bo as ContractExclusionBillingCodeSummary, bq as ContractExclusionRoles, br as ContractExclusionRolesCreate, bt as ContractExclusionRolesUpdate, bs as ContractExclusionRolesSummary, bu as ContractExclusionSetExcludedRoles, bv as ContractExclusionSetExcludedRolesCreate, bx as ContractExclusionSetExcludedRolesUpdate, bw as ContractExclusionSetExcludedRolesSummary, by as ContractExclusionSetExcludedWorkTypes, bz as ContractExclusionSetExcludedWorkTypesCreate, bB as ContractExclusionSetExcludedWorkTypesUpdate, bA as ContractExclusionSetExcludedWorkTypesSummary, bC as ContractExclusionSets, bD as ContractExclusionSetsCreate, bF as ContractExclusionSetsUpdate, bE as ContractExclusionSetsSummary, bG as ContractMilestone, bH as ContractMilestoneCreate, bJ as ContractMilestoneUpdate, bI as ContractMilestoneSummary, bK as ContractNote, bL as ContractNoteCreate, bN as ContractNoteUpdate, bM as ContractNoteSummary, bO as ContractRate, bP as ContractRateCreate, bR as ContractRateUpdate, bQ as ContractRateSummary, bS as ContractRetainers, bT as ContractRetainersCreate, bV as ContractRetainersUpdate, bU as ContractRetainersSummary, bW as ContractRoleCosts, bX as ContractRoleCostsCreate, bZ as ContractRoleCostsUpdate, bY as ContractRoleCostsSummary, b$ as ContractServiceAdjustment, c0 as ContractServiceAdjustmentCreate, c2 as ContractServiceAdjustmentUpdate, c1 as ContractServiceAdjustmentSummary, c4 as ContractServiceBundleAdjustment, c5 as ContractServiceBundleAdjustmentCreate, c7 as ContractServiceBundleAdjustmentUpdate, c6 as ContractServiceBundleAdjustmentSummary, c3 as ContractServiceBundle, c8 as ContractServiceBundleCreate, ce as ContractServiceBundleUpdate, c9 as ContractServiceBundleSummary, ca as ContractServiceBundleUnit, cb as ContractServiceBundleUnitCreate, cd as ContractServiceBundleUnitUpdate, cc as ContractServiceBundleUnitSummary, b_ as ContractService, cf as ContractServiceCreate, cl as ContractServiceUpdate, cg as ContractServiceSummary, ch as ContractServiceUnit, ci as ContractServiceUnitCreate, ck as ContractServiceUnitUpdate, cj as ContractServiceUnitSummary, b4 as Contract, di as Invoice, eE as Resource, cO as ExpenseItem, fE as Subscription, bl as ContractCreate, cr as ContractUpdate, cm as ContractSummary, cn as ContractTicketPurchases, co as ContractTicketPurchasesCreate, cq as ContractTicketPurchasesUpdate, cp as ContractTicketPurchasesSummary, cs as Country, ct as CountryCreate, cv as CountryUpdate, cu as CountrySummary, cw as Currency, cx as CurrencyCreate, cz as CurrencyUpdate, cy as CurrencySummary, cA as Department, cB as DepartmentCreate, cD as DepartmentUpdate, cC as DepartmentSummary, cF as DomainRegistrar, cG as DomainRegistrarCreate, cI as DomainRegistrarUpdate, cH as DomainRegistrarSummary, d2 as GlobalEntityInformationResultModel, cP as ExpenseItemAttachment, cQ as ExpenseItemAttachmentCreate, cS as ExpenseItemAttachmentUpdate, cR as ExpenseItemAttachmentSummary, cT as ExpenseItemCreate, cV as ExpenseItemUpdate, cU as ExpenseItemSummary, cW as ExpenseReport, cX as ExpenseReportCreate, cZ as ExpenseReportUpdate, cY as ExpenseReportSummary, d5 as HolidaySet, d6 as HolidaySetCreate, d8 as HolidaySetUpdate, d7 as HolidaySetSummary, d3 as Holiday, d4 as HolidayCreate, da as HolidayUpdate, d9 as HolidaySummary, db as InventoryProduct, dc as InventoryProductCreate, de as InventoryProductUpdate, dd as InventoryProductSummary, df as InventoryStockedItemAdd, dg as InventoryStockedItemRemove, dh as InventoryStockedItemTransfer, dj as InvoiceCreate, dl as InvoiceUpdate, dk as InvoiceSummary, dn as ModuleAccessResultModel, dp as NotificationHistory, dq as NotificationHistoryCreate, ds as NotificationHistoryUpdate, dr as NotificationHistorySummary, dv as Opportunity, dE as OpportunityCreate, dG as OpportunityUpdate, dF as OpportunitySummary, dw as OpportunityAttachment, dx as OpportunityAttachmentCreate, dz as OpportunityAttachmentUpdate, dy as OpportunityAttachmentSummary, dA as OpportunityCategory, dB as OpportunityCategoryCreate, dD as OpportunityCategoryUpdate, dC as OpportunityCategorySummary, dI as Phase, dJ as PhaseCreate, dL as PhaseUpdate, dK as PhaseSummary, dN as Product, dO as ProductCreate, dQ as ProductUpdate, dP as ProductSummary, dR as ProductVendors, dS as ProductVendorsCreate, dU as ProductVendorsUpdate, dT as ProductVendorsSummary, dW as ProjectCharge, dX as ProjectChargeCreate, dZ as ProjectChargeUpdate, dY as ProjectChargeSummary, e0 as ProjectNote, e1 as ProjectNoteCreate, e3 as ProjectNoteUpdate, e2 as ProjectNoteSummary, d$ as ProjectCreate, e5 as ProjectUpdate, e4 as ProjectSummary, hv as CompositeContextOptions, d_ as ProjectContext, e6 as PurchaseApprovals, e7 as PurchaseApprovalsCreate, e9 as PurchaseApprovalsUpdate, e8 as PurchaseApprovalsSummary, ea as PurchaseOrderItemReceiving, eb as PurchaseOrderItemReceivingCreate, ed as PurchaseOrderItemReceivingUpdate, ec as PurchaseOrderItemReceivingSummary, ee as PurchaseOrderItems, ef as PurchaseOrderItemsCreate, eh as PurchaseOrderItemsUpdate, eg as PurchaseOrderItemsSummary, ei as PurchaseOrders, ej as PurchaseOrdersCreate, el as PurchaseOrdersUpdate, ek as PurchaseOrdersSummary, eo as QuoteItem, ep as QuoteItemCreate, er as QuoteItemUpdate, eq as QuoteItemSummary, es as QuoteLocation, et as QuoteLocationCreate, ev as QuoteLocationUpdate, eu as QuoteLocationSummary, em as Quote, en as QuoteCreate, eB as QuoteUpdate, ew as QuoteSummary, ex as QuoteTemplate, ey as QuoteTemplateCreate, eA as QuoteTemplateUpdate, ez as QuoteTemplateSummary, eI as ResourceRoleQueue, eJ as ResourceRoleQueueCreate, eL as ResourceRoleQueueUpdate, eK as ResourceRoleQueueSummary, eG as ResourceRole, eH as ResourceRoleCreate, eN as ResourceRoleUpdate, eM as ResourceRoleSummary, eO as ResourceSkill, eP as ResourceSkillCreate, eR as ResourceSkillUpdate, eQ as ResourceSkillSummary, eF as ResourceCreate, f3 as ResourceUpdate, eS as ResourceSummary, eT as ResourceTimeOffAdditional, eU as ResourceTimeOffAdditionalCreate, eW as ResourceTimeOffAdditionalUpdate, eV as ResourceTimeOffAdditionalSummary, eX as ResourceTimeOffApprover, eY as ResourceTimeOffApproverCreate, e_ as ResourceTimeOffApproverUpdate, eZ as ResourceTimeOffApproverSummary, e$ as ResourceTimeOffBalance, f0 as ResourceTimeOffBalanceCreate, f2 as ResourceTimeOffBalanceUpdate, f1 as ResourceTimeOffBalanceSummary, f4 as Role, f5 as RoleCreate, f7 as RoleUpdate, f6 as RoleSummary, f9 as ServiceCall, fa as ServiceCallCreate, fs as ServiceCallUpdate, fb as ServiceCallSummary, fe as ServiceCallTaskResource, ff as ServiceCallTaskResourceCreate, fh as ServiceCallTaskResourceUpdate, fg as ServiceCallTaskResourceSummary, fc as ServiceCallTask, fd as ServiceCallTaskCreate, fj as ServiceCallTaskUpdate, fi as ServiceCallTaskSummary, fm as ServiceCallTicketResource, fn as ServiceCallTicketResourceCreate, fp as ServiceCallTicketResourceUpdate, fo as ServiceCallTicketResourceSummary, fk as ServiceCallTicket, fl as ServiceCallTicketCreate, fr as ServiceCallTicketUpdate, fq as ServiceCallTicketSummary, fu as ServiceLevelAgreementResults, fv as ServiceLevelAgreementResultsCreate, fx as ServiceLevelAgreementResultsUpdate, fw as ServiceLevelAgreementResultsSummary, f8 as Service, ft as ServiceCreate, fz as ServiceUpdate, fy as ServiceSummary, fA as Skill, fB as SkillCreate, fD as SkillUpdate, fC as SkillSummary, fG as SubscriptionPeriod, fH as SubscriptionPeriodCreate, fJ as SubscriptionPeriodUpdate, fI as SubscriptionPeriodSummary, fF as SubscriptionCreate, fL as SubscriptionUpdate, fK as SubscriptionSummary, fO as SurveyResults, fP as SurveyResultsCreate, fR as SurveyResultsUpdate, fQ as SurveyResultsSummary, fM as Survey, fN as SurveyCreate, fT as SurveyUpdate, fS as SurveySummary, fV as TagAlias, fW as TagAliasCreate, fY as TagAliasUpdate, fX as TagAliasSummary, f_ as TagGroup, f$ as TagGroupCreate, g1 as TagGroupUpdate, g0 as TagGroupSummary, fU as Tag, fZ as TagCreate, g3 as TagUpdate, g2 as TagSummary, g6 as TaskSecondaryResource, g7 as TaskSecondaryResourceCreate, g9 as TaskSecondaryResourceUpdate, g8 as TaskSecondaryResourceSummary, g4 as Task, g5 as TaskCreate, gb as TaskUpdate, ga as TaskSummary, gc as ThresholdStatusResultModel, ge as TicketAdditionalConfigurationItem, gf as TicketAdditionalConfigurationItemCreate, gh as TicketAdditionalConfigurationItemUpdate, gg as TicketAdditionalConfigurationItemSummary, gi as TicketAdditionalContact, gj as TicketAdditionalContactCreate, gl as TicketAdditionalContactUpdate, gk as TicketAdditionalContactSummary, gm as TicketAttachment, gn as TicketAttachmentCreate, gp as TicketAttachmentUpdate, go as TicketAttachmentSummary, gq as TicketCategory, gr as TicketCategoryCreate, gx as TicketCategoryUpdate, gw as TicketCategorySummary, gs as TicketCategoryFieldDefault, gt as TicketCategoryFieldDefaultCreate, gv as TicketCategoryFieldDefaultUpdate, gu as TicketCategoryFieldDefaultSummary, gy as TicketChangeRequestApproval, gz as TicketChangeRequestApprovalCreate, gB as TicketChangeRequestApprovalUpdate, gA as TicketChangeRequestApprovalSummary, gC as TicketCharge, gD as TicketChargeCreate, gF as TicketChargeUpdate, gE as TicketChargeSummary, gG as TicketChecklistItem, gH as TicketChecklistItemCreate, gJ as TicketChecklistItemUpdate, gI as TicketChecklistItemSummary, gK as TicketChecklistLibrary, gL as TicketChecklistLibraryCreate, gN as TicketChecklistLibraryUpdate, gM as TicketChecklistLibrarySummary, gQ as TicketHistory, gR as TicketHistoryCreate, gT as TicketHistoryUpdate, gS as TicketHistorySummary, gV as TicketNoteAttachment, gW as TicketNoteAttachmentCreate, gY as TicketNoteAttachmentUpdate, gX as TicketNoteAttachmentSummary, gU as TicketNote, gZ as TicketNoteCreate, g$ as TicketNoteUpdate, g_ as TicketNoteSummary, h0 as TicketNoteWebhook, h1 as TicketNoteWebhookCreate, h3 as TicketNoteWebhookUpdate, h2 as TicketNoteWebhookSummary, h4 as TicketSecondaryResource, h5 as TicketSecondaryResourceCreate, h7 as TicketSecondaryResourceUpdate, h6 as TicketSecondaryResourceSummary, gP as TicketCreate, h9 as TicketUpdate, h8 as TicketSummary, gO as TicketContext, ha as TicketWebhook, hb as TicketWebhookCreate, hd as TicketWebhookUpdate, hc as TicketWebhookSummary, hj as TimeEntryCreate, hl as TimeEntryUpdate, hk as TimeEntrySummary, hf as TimeEntryAttachment, hg as TimeEntryAttachmentCreate, hi as TimeEntryAttachmentUpdate, hh as TimeEntryAttachmentSummary, hm as TimeOffRequest, hn as TimeOffRequestCreate, hq as TimeOffRequestUpdate, hp as TimeOffRequestSummary, A as ApiVersionResultModel, i as AutotaskVersionResultModel, hs as ZoneInformationResultModel } from './index-1zBdJIEy.js';
1
+ import { I as Identifier, g as AuditEvent, a as FilterCondition, eX as ResolutionCaps, Q as QueryParams, cO as EmptyReasonInfo, eW as Resolution, d$ as Page, cQ as EntityInformationModel, d4 as FieldInformationModel, d2 as Field, O as OperationResult, cN as DryRunResult, c as Appointment, d as AppointmentCreate, f as AppointmentUpdate, e as AppointmentSummary, h as AuthTokenResultModel, B as BillingCode, j as BillingCodeCreate, l as BillingCodeUpdate, k as BillingCodeSummary, m as BillingItemApprovalLevel, n as BillingItemApprovalLevelCreate, p as BillingItemApprovalLevelUpdate, q as BillingItems, r as BillingItemsCreate, t as BillingItemsUpdate, s as BillingItemsSummary, C as ChangeRequestLink, u as ChangeRequestLinkCreate, w as ChangeRequestLinkUpdate, v as ChangeRequestLinkSummary, x as ChecklistLibrary, G as ChecklistLibraryCreate, J as ChecklistLibraryUpdate, H as ChecklistLibrarySummary, y as ChecklistLibraryChecklistItem, z as ChecklistLibraryChecklistItemCreate, E as ChecklistLibraryChecklistItemUpdate, D as ChecklistLibraryChecklistItemSummary, K as ClassificationIcon, L as ClassificationIconCreate, N as ClassificationIconUpdate, M as ClassificationIconSummary, R as Company, Y as CompanyLocation, aT as Contact, a0 as CompanyNote, gF as Ticket, ed as Project, hW as CompositeNamesSection, hG as TimeEntry, X as CompanyCreate, a9 as CompanyUpdate, a8 as CompanySummary, W as CompanyContext, S as CompanyAlert, T as CompanyAlertCreate, V as CompanyAlertUpdate, U as CompanyAlertSummary, Z as CompanyLocationCreate, $ as CompanyLocationUpdate, _ as CompanyLocationSummary, a1 as CompanyNoteCreate, a3 as CompanyNoteUpdate, a2 as CompanyNoteSummary, a4 as CompanySiteConfigurations, a5 as CompanySiteConfigurationsCreate, a7 as CompanySiteConfigurationsUpdate, a6 as CompanySiteConfigurationsSummary, aa as CompanyWebhook, ab as CompanyWebhookCreate, ad as CompanyWebhookUpdate, ac as CompanyWebhookSummary, af as ConfigurationItemBillingProductAssociations, ag as ConfigurationItemBillingProductAssociationsCreate, ai as ConfigurationItemBillingProductAssociationsUpdate, ah as ConfigurationItemBillingProductAssociationsSummary, aj as ConfigurationItemCategory, ak as ConfigurationItemCategoryCreate, aq as ConfigurationItemCategoryUpdate, al as ConfigurationItemCategorySummary, am as ConfigurationItemCategoryUdfAssociation, an as ConfigurationItemCategoryUdfAssociationCreate, ap as ConfigurationItemCategoryUdfAssociationUpdate, ao as ConfigurationItemCategoryUdfAssociationSummary, at as ConfigurationItemDnsRecord, au as ConfigurationItemDnsRecordCreate, aw as ConfigurationItemDnsRecordUpdate, av as ConfigurationItemDnsRecordSummary, ax as ConfigurationItemNote, ay as ConfigurationItemNoteCreate, aA as ConfigurationItemNoteUpdate, az as ConfigurationItemNoteSummary, aB as ConfigurationItemRelatedItem, aC as ConfigurationItemRelatedItemCreate, aE as ConfigurationItemRelatedItemUpdate, aD as ConfigurationItemRelatedItemSummary, ae as ConfigurationItem, aK as ConfigurationItemType, as as ConfigurationItemCreate, aO as ConfigurationItemUpdate, aJ as ConfigurationItemSummary, ar as ConfigurationItemContext, aF as ConfigurationItemSslSubjectAlternativeName, aG as ConfigurationItemSslSubjectAlternativeNameCreate, aI as ConfigurationItemSslSubjectAlternativeNameUpdate, aH as ConfigurationItemSslSubjectAlternativeNameSummary, aL as ConfigurationItemTypeCreate, aN as ConfigurationItemTypeUpdate, aM as ConfigurationItemTypeSummary, aP as ConfigurationItemWebhook, aQ as ConfigurationItemWebhookCreate, aS as ConfigurationItemWebhookUpdate, aR as ConfigurationItemWebhookSummary, aW as ContactGroupContacts, aX as ContactGroupContactsCreate, aZ as ContactGroupContactsUpdate, aY as ContactGroupContactsSummary, a_ as ContactGroups, a$ as ContactGroupsCreate, b1 as ContactGroupsUpdate, b0 as ContactGroupsSummary, b2 as ContactSummary, aV as ContactCreate, b3 as ContactUpdate, aU as ContactContext, b4 as ContactWebhook, b5 as ContactWebhookCreate, b7 as ContactWebhookUpdate, b6 as ContactWebhookSummary, b9 as ContractBillingRule, ba as ContractBillingRuleCreate, bc as ContractBillingRuleUpdate, bb as ContractBillingRuleSummary, bf as ContractBlockHourFactor, bg as ContractBlockHourFactorCreate, bi as ContractBlockHourFactorUpdate, bh as ContractBlockHourFactorSummary, bd as ContractBlock, be as ContractBlockCreate, bk as ContractBlockUpdate, bj as ContractBlockSummary, bl as ContractCharge, bm as ContractChargeCreate, bo as ContractChargeUpdate, bn as ContractChargeSummary, bq as ContractExclusionBillingCode, br as ContractExclusionBillingCodeCreate, bt as ContractExclusionBillingCodeUpdate, bs as ContractExclusionBillingCodeSummary, bu as ContractExclusionRoles, bv as ContractExclusionRolesCreate, bx as ContractExclusionRolesUpdate, bw as ContractExclusionRolesSummary, by as ContractExclusionSetExcludedRoles, bz as ContractExclusionSetExcludedRolesCreate, bB as ContractExclusionSetExcludedRolesUpdate, bA as ContractExclusionSetExcludedRolesSummary, bC as ContractExclusionSetExcludedWorkTypes, bD as ContractExclusionSetExcludedWorkTypesCreate, bF as ContractExclusionSetExcludedWorkTypesUpdate, bE as ContractExclusionSetExcludedWorkTypesSummary, bG as ContractExclusionSets, bH as ContractExclusionSetsCreate, bJ as ContractExclusionSetsUpdate, bI as ContractExclusionSetsSummary, bK as ContractMilestone, bL as ContractMilestoneCreate, bN as ContractMilestoneUpdate, bM as ContractMilestoneSummary, bO as ContractNote, bP as ContractNoteCreate, bR as ContractNoteUpdate, bQ as ContractNoteSummary, bS as ContractRate, bT as ContractRateCreate, bV as ContractRateUpdate, bU as ContractRateSummary, bW as ContractRetainers, bX as ContractRetainersCreate, bZ as ContractRetainersUpdate, bY as ContractRetainersSummary, b_ as ContractRoleCosts, b$ as ContractRoleCostsCreate, c1 as ContractRoleCostsUpdate, c0 as ContractRoleCostsSummary, c3 as ContractServiceAdjustment, c4 as ContractServiceAdjustmentCreate, c6 as ContractServiceAdjustmentUpdate, c5 as ContractServiceAdjustmentSummary, c8 as ContractServiceBundleAdjustment, c9 as ContractServiceBundleAdjustmentCreate, cb as ContractServiceBundleAdjustmentUpdate, ca as ContractServiceBundleAdjustmentSummary, c7 as ContractServiceBundle, cc as ContractServiceBundleCreate, ci as ContractServiceBundleUpdate, cd as ContractServiceBundleSummary, ce as ContractServiceBundleUnit, cf as ContractServiceBundleUnitCreate, ch as ContractServiceBundleUnitUpdate, cg as ContractServiceBundleUnitSummary, c2 as ContractService, cj as ContractServiceCreate, cp as ContractServiceUpdate, ck as ContractServiceSummary, cl as ContractServiceUnit, cm as ContractServiceUnitCreate, co as ContractServiceUnitUpdate, cn as ContractServiceUnitSummary, b8 as Contract, dm as Invoice, eY as Resource, cS as ExpenseItem, g0 as Subscription, bp as ContractCreate, cv as ContractUpdate, cq as ContractSummary, cr as ContractTicketPurchases, cs as ContractTicketPurchasesCreate, cu as ContractTicketPurchasesUpdate, ct as ContractTicketPurchasesSummary, cw as Country, cx as CountryCreate, cz as CountryUpdate, cy as CountrySummary, cA as Currency, cB as CurrencyCreate, cD as CurrencyUpdate, cC as CurrencySummary, cE as Department, cF as DepartmentCreate, cH as DepartmentUpdate, cG as DepartmentSummary, cJ as DomainRegistrar, cK as DomainRegistrarCreate, cM as DomainRegistrarUpdate, cL as DomainRegistrarSummary, d6 as GlobalEntityInformationResultModel, cT as ExpenseItemAttachment, cU as ExpenseItemAttachmentCreate, cW as ExpenseItemAttachmentUpdate, cV as ExpenseItemAttachmentSummary, cX as ExpenseItemCreate, cZ as ExpenseItemUpdate, cY as ExpenseItemSummary, c_ as ExpenseReport, c$ as ExpenseReportCreate, d1 as ExpenseReportUpdate, d0 as ExpenseReportSummary, d9 as HolidaySet, da as HolidaySetCreate, dc as HolidaySetUpdate, db as HolidaySetSummary, d7 as Holiday, d8 as HolidayCreate, de as HolidayUpdate, dd as HolidaySummary, df as InventoryProduct, dg as InventoryProductCreate, di as InventoryProductUpdate, dh as InventoryProductSummary, dj as InventoryStockedItemAdd, dk as InventoryStockedItemRemove, dl as InventoryStockedItemTransfer, dn as InvoiceCreate, du as InvoiceUpdate, dp as InvoiceSummary, dq as InvoiceTemplate, dr as InvoiceTemplateCreate, dt as InvoiceTemplateUpdate, dw as ModuleAccessResultModel, dx as NotificationHistory, dy as NotificationHistoryCreate, dA as NotificationHistoryUpdate, dz as NotificationHistorySummary, dD as Opportunity, dM as OpportunityCreate, dO as OpportunityUpdate, dN as OpportunitySummary, dE as OpportunityAttachment, dF as OpportunityAttachmentCreate, dH as OpportunityAttachmentUpdate, dG as OpportunityAttachmentSummary, dI as OpportunityCategory, dJ as OpportunityCategoryCreate, dL as OpportunityCategoryUpdate, dK as OpportunityCategorySummary, dP as OrganizationalLevel1, dQ as OrganizationalLevel1Create, dS as OrganizationalLevel1Update, dT as OrganizationalLevel2, dU as OrganizationalLevel2Create, dW as OrganizationalLevel2Update, dX as OrganizationalLevelAssociation, dY as OrganizationalLevelAssociationCreate, d_ as OrganizationalLevelAssociationUpdate, e0 as Phase, e1 as PhaseCreate, e3 as PhaseUpdate, e2 as PhaseSummary, e5 as Product, e6 as ProductCreate, e8 as ProductUpdate, e7 as ProductSummary, e9 as ProductVendors, ea as ProductVendorsCreate, ec as ProductVendorsUpdate, eb as ProductVendorsSummary, ee as ProjectCharge, ef as ProjectChargeCreate, eh as ProjectChargeUpdate, eg as ProjectChargeSummary, ek as ProjectNote, el as ProjectNoteCreate, en as ProjectNoteUpdate, em as ProjectNoteSummary, ej as ProjectCreate, ep as ProjectUpdate, eo as ProjectSummary, hX as CompositeContextOptions, ei as ProjectContext, eq as PurchaseApprovals, er as PurchaseApprovalsCreate, et as PurchaseApprovalsUpdate, es as PurchaseApprovalsSummary, eu as PurchaseOrderItemReceiving, ev as PurchaseOrderItemReceivingCreate, ex as PurchaseOrderItemReceivingUpdate, ew as PurchaseOrderItemReceivingSummary, ey as PurchaseOrderItems, ez as PurchaseOrderItemsCreate, eB as PurchaseOrderItemsUpdate, eA as PurchaseOrderItemsSummary, eC as PurchaseOrders, eD as PurchaseOrdersCreate, eF as PurchaseOrdersUpdate, eE as PurchaseOrdersSummary, eI as QuoteItem, eJ as QuoteItemCreate, eL as QuoteItemUpdate, eK as QuoteItemSummary, eM as QuoteLocation, eN as QuoteLocationCreate, eP as QuoteLocationUpdate, eO as QuoteLocationSummary, eG as Quote, eH as QuoteCreate, eV as QuoteUpdate, eQ as QuoteSummary, eR as QuoteTemplate, eS as QuoteTemplateCreate, eU as QuoteTemplateUpdate, eT as QuoteTemplateSummary, f0 as ResourceRoleQueue, f1 as ResourceRoleQueueCreate, f3 as ResourceRoleQueueUpdate, f2 as ResourceRoleQueueSummary, e_ as ResourceRole, e$ as ResourceRoleCreate, f5 as ResourceRoleUpdate, f4 as ResourceRoleSummary, f6 as ResourceSkill, f7 as ResourceSkillCreate, f9 as ResourceSkillUpdate, f8 as ResourceSkillSummary, eZ as ResourceCreate, fn as ResourceUpdate, fa as ResourceSummary, fb as ResourceTimeOffAdditional, fc as ResourceTimeOffAdditionalCreate, fe as ResourceTimeOffAdditionalUpdate, fd as ResourceTimeOffAdditionalSummary, ff as ResourceTimeOffApprover, fg as ResourceTimeOffApproverCreate, fi as ResourceTimeOffApproverUpdate, fh as ResourceTimeOffApproverSummary, fj as ResourceTimeOffBalance, fk as ResourceTimeOffBalanceCreate, fm as ResourceTimeOffBalanceUpdate, fl as ResourceTimeOffBalanceSummary, fo as Role, fp as RoleCreate, fr as RoleUpdate, fq as RoleSummary, fs as SalesOrder, ft as SalesOrderCreate, fv as SalesOrderUpdate, fx as ServiceCall, fy as ServiceCallCreate, fQ as ServiceCallUpdate, fz as ServiceCallSummary, fC as ServiceCallTaskResource, fD as ServiceCallTaskResourceCreate, fF as ServiceCallTaskResourceUpdate, fE as ServiceCallTaskResourceSummary, fA as ServiceCallTask, fB as ServiceCallTaskCreate, fH as ServiceCallTaskUpdate, fG as ServiceCallTaskSummary, fK as ServiceCallTicketResource, fL as ServiceCallTicketResourceCreate, fN as ServiceCallTicketResourceUpdate, fM as ServiceCallTicketResourceSummary, fI as ServiceCallTicket, fJ as ServiceCallTicketCreate, fP as ServiceCallTicketUpdate, fO as ServiceCallTicketSummary, fS as ServiceLevelAgreementResults, fT as ServiceLevelAgreementResultsCreate, fV as ServiceLevelAgreementResultsUpdate, fU as ServiceLevelAgreementResultsSummary, fw as Service, fR as ServiceCreate, fX as ServiceUpdate, fW as ServiceSummary, fY as Skill, fZ as SkillCreate, f$ as SkillUpdate, f_ as SkillSummary, g2 as SubscriptionPeriod, g3 as SubscriptionPeriodCreate, g5 as SubscriptionPeriodUpdate, g4 as SubscriptionPeriodSummary, g1 as SubscriptionCreate, g7 as SubscriptionUpdate, g6 as SubscriptionSummary, ga as SurveyResults, gb as SurveyResultsCreate, gd as SurveyResultsUpdate, gc as SurveyResultsSummary, g8 as Survey, g9 as SurveyCreate, gf as SurveyUpdate, ge as SurveySummary, gh as TagAlias, gi as TagAliasCreate, gk as TagAliasUpdate, gj as TagAliasSummary, gm as TagGroup, gn as TagGroupCreate, gp as TagGroupUpdate, go as TagGroupSummary, gg as Tag, gl as TagCreate, gr as TagUpdate, gq as TagSummary, gu as TaskSecondaryResource, gv as TaskSecondaryResourceCreate, gx as TaskSecondaryResourceUpdate, gw as TaskSecondaryResourceSummary, gs as Task, gt as TaskCreate, gz as TaskUpdate, gy as TaskSummary, gA as TaxRegion, gB as TaxRegionCreate, gD as TaxRegionUpdate, gE as ThresholdStatusResultModel, gG as TicketAdditionalConfigurationItem, gH as TicketAdditionalConfigurationItemCreate, gJ as TicketAdditionalConfigurationItemUpdate, gI as TicketAdditionalConfigurationItemSummary, gK as TicketAdditionalContact, gL as TicketAdditionalContactCreate, gN as TicketAdditionalContactUpdate, gM as TicketAdditionalContactSummary, gO as TicketAttachment, gP as TicketAttachmentCreate, gR as TicketAttachmentUpdate, gQ as TicketAttachmentSummary, gS as TicketCategory, gT as TicketCategoryCreate, gZ as TicketCategoryUpdate, gY as TicketCategorySummary, gU as TicketCategoryFieldDefault, gV as TicketCategoryFieldDefaultCreate, gX as TicketCategoryFieldDefaultUpdate, gW as TicketCategoryFieldDefaultSummary, g_ as TicketChangeRequestApproval, g$ as TicketChangeRequestApprovalCreate, h1 as TicketChangeRequestApprovalUpdate, h0 as TicketChangeRequestApprovalSummary, h2 as TicketCharge, h3 as TicketChargeCreate, h5 as TicketChargeUpdate, h4 as TicketChargeSummary, h6 as TicketChecklistItem, h7 as TicketChecklistItemCreate, h9 as TicketChecklistItemUpdate, h8 as TicketChecklistItemSummary, ha as TicketChecklistLibrary, hb as TicketChecklistLibraryCreate, hd as TicketChecklistLibraryUpdate, hc as TicketChecklistLibrarySummary, hg as TicketHistory, hh as TicketHistoryCreate, hj as TicketHistoryUpdate, hi as TicketHistorySummary, hl as TicketNoteAttachment, hm as TicketNoteAttachmentCreate, ho as TicketNoteAttachmentUpdate, hn as TicketNoteAttachmentSummary, hk as TicketNote, hp as TicketNoteCreate, hr as TicketNoteUpdate, hq as TicketNoteSummary, hs as TicketNoteWebhook, ht as TicketNoteWebhookCreate, hv as TicketNoteWebhookUpdate, hu as TicketNoteWebhookSummary, hw as TicketSecondaryResource, hx as TicketSecondaryResourceCreate, hz as TicketSecondaryResourceUpdate, hy as TicketSecondaryResourceSummary, hf as TicketCreate, hB as TicketUpdate, hA as TicketSummary, he as TicketContext, hC as TicketWebhook, hD as TicketWebhookCreate, hF as TicketWebhookUpdate, hE as TicketWebhookSummary, hL as TimeEntryCreate, hN as TimeEntryUpdate, hM as TimeEntrySummary, hH as TimeEntryAttachment, hI as TimeEntryAttachmentCreate, hK as TimeEntryAttachmentUpdate, hJ as TimeEntryAttachmentSummary, hO as TimeOffRequest, hP as TimeOffRequestCreate, hS as TimeOffRequestUpdate, hR as TimeOffRequestSummary, A as ApiVersionResultModel, i as AutotaskVersionResultModel, hU as ZoneInformationResultModel } from './index-DQ9NgraW.js';
2
+
3
+ /** Memory guard: when the entry count reaches this on a `set`, expired
4
+ * entries are purged first (a long-lived MCP server must not grow without
5
+ * bound between lazy purges). */
6
+ declare const READ_CACHE_MAX_ENTRIES = 4096;
7
+ /**
8
+ * A read-through TTL cache (lazy purge on read; expiry is `Date.now()`
9
+ * based). Constructed by `resolveConfig` from `cache: { ttlMs,
10
+ * perResourceTtlMs? }` — a positive-integer `ttlMs` is required
11
+ * (validated there too); every `perResourceTtlMs` value is a positive
12
+ * integer, validated fail-closed the same way (issue #32).
13
+ */
14
+ declare class ReadCache {
15
+ /** The configured TTL in ms (the fallback for resources without an override). */
16
+ readonly ttlMs: number;
17
+ /** The per-resource TTL overrides (issue #32; absent = every resource uses `ttlMs`). */
18
+ readonly perResourceTtlMs?: Readonly<Record<string, number>>;
19
+ private readonly store;
20
+ private epochCounter;
21
+ constructor(ttlMs: number, perResourceTtlMs?: Record<string, number>);
22
+ /**
23
+ * The TTL (ms) for a resource plan key: the `perResourceTtlMs` override
24
+ * when the map is present and names the resource, else the base
25
+ * `ttlMs` (absent map, absent key, and `undefined` all fall back).
26
+ */
27
+ ttlFor(resource?: string): number;
28
+ /**
29
+ * Read-through lookup: the live entry's value, or `undefined` (absent OR
30
+ * expired — an expired entry is purged lazily on this read).
31
+ */
32
+ get(key: string): unknown;
33
+ /** Store a successful read payload under `key`, live for `ttlFor(resource)`:
34
+ * the per-resource override (issue #32) when named, else `ttlMs`.
35
+ * `epoch` is the invalidation epoch the caller captured BEFORE its wire
36
+ * read: a read that straddled a `clear()` (a write) is dropped, never
37
+ * re-stored with its pre-write body. */
38
+ set(key: string, value: unknown, resource?: string, epoch?: number): void;
39
+ /** Drop every expired entry (returns the number removed). */
40
+ purgeExpired(): number;
41
+ /** Current entry count (live + not-yet-purged expired). */
42
+ get size(): number;
43
+ /** Drop one key (issue #36: a later positive outcome clears a stale 'absent' marker). */
44
+ delete(key: string): boolean;
45
+ /** The invalidation epoch: bumped by `clear()`; capture it before a wire
46
+ * read and pass it to `set` so a read in flight across a write cannot
47
+ * re-store its stale answer. */
48
+ get epoch(): number;
49
+ /** Drop everything (e.g. a caller that knows the tenant was reset). */
50
+ clear(): void;
51
+ }
2
52
 
3
53
  /** The 23 named zones (catalog pinned from the node credential definition, G1 api-behavior section 2). */
4
54
  type ZoneName = 'pre-release' | 'pre-release-uk' | 'limited-release' | 'limited-release-uk' | 'america-east' | 'america-east-2' | 'america-east-3' | 'america-west' | 'america-west-2' | 'america-west-3' | 'america-west-4' | 'uk' | 'uk2' | 'uk3' | 'old-australian' | 'australia-nz' | 'australia-2' | 'pre-release-de' | 'pre-release-es' | 'german' | 'eu1' | 'spanish' | 'other';
@@ -58,52 +108,6 @@ declare const AGENT_PROFILE: {
58
108
  };
59
109
  };
60
110
 
61
- /**
62
- * A read-through TTL cache (lazy purge on read; expiry is `Date.now()`
63
- * based). Constructed by `resolveConfig` from `cache: { ttlMs,
64
- * perResourceTtlMs? }` — a positive-integer `ttlMs` is required
65
- * (validated there too); every `perResourceTtlMs` value is a positive
66
- * integer, validated fail-closed the same way (issue #32).
67
- */
68
- declare class ReadCache {
69
- /** The configured TTL in ms (the fallback for resources without an override). */
70
- readonly ttlMs: number;
71
- /** The per-resource TTL overrides (issue #32; absent = every resource uses `ttlMs`). */
72
- readonly perResourceTtlMs?: Readonly<Record<string, number>>;
73
- private readonly store;
74
- private epochCounter;
75
- constructor(ttlMs: number, perResourceTtlMs?: Record<string, number>);
76
- /**
77
- * The TTL (ms) for a resource plan key: the `perResourceTtlMs` override
78
- * when the map is present and names the resource, else the base
79
- * `ttlMs` (absent map, absent key, and `undefined` all fall back).
80
- */
81
- ttlFor(resource?: string): number;
82
- /**
83
- * Read-through lookup: the live entry's value, or `undefined` (absent OR
84
- * expired — an expired entry is purged lazily on this read).
85
- */
86
- get(key: string): unknown;
87
- /** Store a successful read payload under `key`, live for `ttlFor(resource)`:
88
- * the per-resource override (issue #32) when named, else `ttlMs`.
89
- * `epoch` is the invalidation epoch the caller captured BEFORE its wire
90
- * read: a read that straddled a `clear()` (a write) is dropped, never
91
- * re-stored with its pre-write body. */
92
- set(key: string, value: unknown, resource?: string, epoch?: number): void;
93
- /** Drop every expired entry (returns the number removed). */
94
- purgeExpired(): number;
95
- /** Current entry count (live + not-yet-purged expired). */
96
- get size(): number;
97
- /** Drop one key (issue #36: a later positive outcome clears a stale 'absent' marker). */
98
- delete(key: string): boolean;
99
- /** The invalidation epoch: bumped by `clear()`; capture it before a wire
100
- * read and pass it to `set` so a read in flight across a write cannot
101
- * re-store its stale answer. */
102
- get epoch(): number;
103
- /** Drop everything (e.g. a caller that knows the tenant was reset). */
104
- clear(): void;
105
- }
106
-
107
111
  /** The three metadata reads one entity can serve (closed set). */
108
112
  declare const FIELD_CACHE_KINDS: readonly ["info", "fields", "udf"];
109
113
  /** One of the three per-entity metadata channels. */
@@ -807,6 +811,15 @@ interface AutotaskConfig {
807
811
  cache?: false | {
808
812
  ttlMs?: number;
809
813
  perResourceTtlMs?: Record<string, number>;
814
+ /**
815
+ * Advanced (issue #219 N6): supply the `ReadCache` INSTANCE instead of
816
+ * letting the client build one — `ClientPool` shares one per tenant
817
+ * across the clients it builds, so a write through any pooled client
818
+ * voids the read cache for all of them. The instance owns its TTLs:
819
+ * combining it with `ttlMs` / `perResourceTtlMs` refuses (fail closed).
820
+ * `ReadCache` is exported from the SDK root (`import { ReadCache } from 'node-autotask'`).
821
+ */
822
+ store?: ReadCache;
810
823
  };
811
824
  /**
812
825
  * Live field-metadata channel for the entityInformation trio
@@ -1375,7 +1388,7 @@ declare class HttpClient {
1375
1388
  * queryBounded noteChars free-text cap (issue #61 — response-side only);
1376
1389
  * - docs/API.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
1377
1390
  *
1378
- * planHash: 930b907e3b06a5ff3b72fd312854a14e5acedaf03effee5ced3c960b1afbf086
1391
+ * planHash: ebbd6f31ae865f058a45d3bc0735b4e3a849217a920df510b541ea5c3d7519ce
1379
1392
  */
1380
1393
 
1381
1394
  /** One pinned blind-surface stamp (the result-time sentinel object). */
@@ -1431,6 +1444,19 @@ interface BlindSurfaceInventory {
1431
1444
  }
1432
1445
  /** The create-blocker class (issue #12 — the closed 9-set; the gate re-derives). */
1433
1446
  type CreateBlockerKind = 'ok' | 'blind-reference' | 'blind-parent' | 'picklist-unexposed' | 'undocumented-ladder' | 'resource-role-pair' | 'delete-absent' | 'non-mutable' | 'unknown';
1447
+ /**
1448
+ * One structured create requirement (issue #219 N3 — plan shape
1449
+ * blocker.requires): the fields a caller must supply (anyOf / allOf) or must
1450
+ * not (noneOf) for the create to be accepted. Vendor field names.
1451
+ */
1452
+ interface CreateGuidanceRequires {
1453
+ /** At least one of these fields must be supplied (ticket_charges.create: productID | billingCodeID). */
1454
+ anyOf?: string[];
1455
+ /** Every one of these fields must be supplied. */
1456
+ allOf?: string[];
1457
+ /** None of these fields may be supplied. */
1458
+ noneOf?: string[];
1459
+ }
1434
1460
  /** The structured blocker on one create-guidance row (issue #12). */
1435
1461
  interface CreateGuidanceBlocker {
1436
1462
  kind: CreateBlockerKind;
@@ -1440,6 +1466,33 @@ interface CreateGuidanceBlocker {
1440
1466
  referenceField?: string;
1441
1467
  /** The remedy (what to do about it). */
1442
1468
  remedy: string;
1469
+ /** The fields the create requires (issue #219 N3) — a DECLARED requirement, never a reconstruction of the (possibly truncated) vendor receipt, which stays in vendorEvidence. Absent = no known requirement beyond the required set. */
1470
+ requires?: CreateGuidanceRequires;
1471
+ }
1472
+ /** A requirement conditioned on a picklist value (issue #219 N3): createGuidance.requiresByValue. */
1473
+ interface CreateGuidanceValueRequirement {
1474
+ /** The conditioning field (e.g. contractType). */
1475
+ field: string;
1476
+ /** The value that switches the requirement on. */
1477
+ value: string | number | boolean;
1478
+ /** The fields required when field = value. */
1479
+ requires: CreateGuidanceRequires;
1480
+ /** Field values the condition also fixes (e.g. contractPeriodType = 2 under contractType 7). */
1481
+ values?: Record<string, string | number | boolean>;
1482
+ }
1483
+ /** A picklist value the vendor rejects for a field (issue #219 N3): createGuidance.rejectedValues. */
1484
+ interface CreateGuidanceRejectedValue {
1485
+ field: string;
1486
+ value: string | number | boolean;
1487
+ }
1488
+ /** One declared derived field (issue #219 N8): the value is an OUTPUT of the vendor's own computation or of another record. */
1489
+ interface DerivedField {
1490
+ /** The vendor field name (never send an authoritative value for it). */
1491
+ field: string;
1492
+ /** The closed rule token: elapsed(<start>,<end>) (recomputed from those timestamps) | parent (inherited from the parent record) | mirror(<field>) (the vendor copies that field) | external (written by another entity's op — writableRoute names it). */
1493
+ rule: string;
1494
+ /** The op that actually writes the value (required by the external rule — e.g. billing_item_approval_levels.create). */
1495
+ writableRoute?: string;
1443
1496
  }
1444
1497
  /** One create-guidance row (issue #12 — the served zone-fact row). */
1445
1498
  interface CreateGuidanceRow {
@@ -1461,6 +1514,12 @@ interface CreateGuidanceRow {
1461
1514
  note: string | null;
1462
1515
  };
1463
1516
  zone: string;
1517
+ /** Requirements conditioned on a field value (issue #219 N3 — e.g. contracts.create's contractType gates). Absent = none declared. */
1518
+ requiresByValue?: CreateGuidanceValueRequirement[];
1519
+ /** Picklist values the vendor rejects for a field (issue #219 N3). Absent = none declared. */
1520
+ rejectedValues?: CreateGuidanceRejectedValue[];
1521
+ /** The fields the vendor DERIVES for this resource (issue #219 N8): a submitted value is not authoritative. Distinct from readOnly — readOnly (the live field catalog's isReadOnly) means never write the field at all; derived means the vendor overwrites or inherits it. Absent = none declared. */
1522
+ derived?: DerivedField[];
1464
1523
  }
1465
1524
  /** The zone-fact create-guidance report (issue #12 — the served 92-entity catalog). */
1466
1525
  interface CreateGuidanceReport {
@@ -1550,6 +1609,8 @@ interface RelationshipResource {
1550
1609
  message: string;
1551
1610
  referenceField?: string;
1552
1611
  remedy: string;
1612
+ /** The declared create requirement (issue #219 N3). */
1613
+ requires?: CreateGuidanceRequires;
1553
1614
  } | null;
1554
1615
  vendorEvidence: string[];
1555
1616
  deleteBoundary: {
@@ -1557,6 +1618,10 @@ interface RelationshipResource {
1557
1618
  note: string | null;
1558
1619
  };
1559
1620
  zone: string;
1621
+ /** Value-conditioned create requirements (issue #219 N3). */
1622
+ requiresByValue?: CreateGuidanceValueRequirement[];
1623
+ /** Picklist values the vendor rejects (issue #219 N3). */
1624
+ rejectedValues?: CreateGuidanceRejectedValue[];
1560
1625
  };
1561
1626
  } | null;
1562
1627
  /** The spec-derived delete boundary (issue #9; null = the vendor defines a DELETE). */
@@ -2319,6 +2384,31 @@ declare class BillingCodesResource extends BaseResource<BillingCode, BillingCode
2319
2384
  }): Promise<BillingCodeSummary[]>;
2320
2385
  }
2321
2386
 
2387
+ /**
2388
+ * BillingItemApprovalLevelsResource — BillingItemApprovalLevel resource (G5 batch B, plan key 'billing_item_approval_levels').
2389
+ * GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
2390
+ * Do not hand-edit; re-run the generator (the plan is the source of truth).
2391
+ */
2392
+
2393
+ /** Query params for BillingItemApprovalLevelsResource (the G3 filter surface; no per-resource invention). */
2394
+ type BillingItemApprovalLevelsResourceQueryParams = QueryParams;
2395
+ declare class BillingItemApprovalLevelsResource extends BaseResource<BillingItemApprovalLevel, BillingItemApprovalLevelCreate, BillingItemApprovalLevelUpdate> {
2396
+ constructor(http: HttpClient, pageSize: number);
2397
+ /** Query BillingItemApprovalLevel records with the G3 filter surface (server-side JSON filter). */
2398
+ query(params?: BillingItemApprovalLevelsResourceQueryParams): AsyncIterable<BillingItemApprovalLevel>;
2399
+ /** Get every BillingItemApprovalLevel record (the MCP-preferred read; 1000-page guarded). */
2400
+ queryAll(params?: BillingItemApprovalLevelsResourceQueryParams): Promise<BillingItemApprovalLevel[]>;
2401
+ /** Count matching records (queryCount envelope unwrapped to a plain number). */
2402
+ count(params?: BillingItemApprovalLevelsResourceQueryParams): Promise<number>;
2403
+ /** Get one record by id (item envelope; item: null → NotFoundError). */
2404
+ get(id: Identifier): Promise<BillingItemApprovalLevel>;
2405
+ /** Create a record (OperationResultModel → { id}). `dryRun: true` returns the
2406
+ * pinned envelope (section 19.3) and never issues the create. A 2xx that is not the
2407
+ * specced envelope runs the plan-pinned marker recovery (issue #13 — one bounded read;
2408
+ * `recoverIdFromMarker: false` restores the pre-recovery behaviour). */
2409
+ create(data: BillingItemApprovalLevelCreate, opts?: CreateOpts): Promise<OperationResult | DryRunResult<BillingItemApprovalLevelCreate>>;
2410
+ }
2411
+
2322
2412
  /** The shared window opts shape (`TimeEntriesWindowOptions` is an alias of
2323
2413
  * this type — `tz` is the issue #66 addition). */
2324
2414
  interface DateWindowOptions {
@@ -2630,6 +2720,37 @@ interface CompaniesUpsertByNameResult {
2630
2720
  sideEffects?: string[];
2631
2721
  }
2632
2722
 
2723
+ /** One picklist entry of `TicketModel.status` (the vendor sends `value` as a string). */
2724
+ interface TicketStatusPicklistValue {
2725
+ id: number;
2726
+ label: string;
2727
+ }
2728
+ /** The disclosure block every closed-state consumer puts in its own output (issue #226). */
2729
+ interface TicketStatusDisclosure {
2730
+ closedIds: number[];
2731
+ source: 'picklist' | 'assumed';
2732
+ note: string;
2733
+ }
2734
+ /** What the closed-status resolution produced — always carries its own provenance. */
2735
+ interface TicketStatusSemantics {
2736
+ /** The tenant's `status` picklist (empty when the catalog could not be read). */
2737
+ picklist: TicketStatusPicklistValue[];
2738
+ /** The ids treated as closed. */
2739
+ closedIds: number[];
2740
+ /** `picklist` = read from live field metadata; `assumed` = the documented fallback. */
2741
+ source: 'picklist' | 'assumed';
2742
+ /** The fallback id, present exactly when `source` is `assumed`. */
2743
+ assumedId?: number;
2744
+ /** One-line provenance, for the caller's output. */
2745
+ note: string;
2746
+ }
2747
+ interface TicketStatusOptions {
2748
+ /** Skip the cached catalog and refetch it (the caller knows the tenant's picklist just changed). */
2749
+ fresh?: boolean;
2750
+ /** Explicit closed ids: the caller's override wins over the picklist and is reported as `picklist` (a caller decision is not an assumption). */
2751
+ excludeStatusIds?: readonly number[];
2752
+ }
2753
+
2633
2754
  /** The list parts that accept a per-part field projection (issue #200). `company` is the single get and is not projectable. */
2634
2755
  declare const FULL_PROFILE_PROJECTABLE_PARTS: readonly ["locations", "contacts", "notes", "projects", "openTickets"];
2635
2756
  type CompanyFullProfilePartName = (typeof FULL_PROFILE_PROJECTABLE_PARTS)[number];
@@ -2675,7 +2796,9 @@ interface CompanyFullProfileOpenTickets {
2675
2796
  capped: boolean;
2676
2797
  /** True when the typed blind-surface sentinel stamps the empty answer. */
2677
2798
  blind: boolean;
2678
- /** The open-status assumption (always) + the sentinel note when blind. */
2799
+ /** The closed-status provenance (issue #226): the ids filtered on, and whether they were read from the tenant picklist or assumed. Always present. */
2800
+ closedStatus: TicketStatusDisclosure;
2801
+ /** The open-status semantics + the sentinel note when blind. */
2679
2802
  note: string;
2680
2803
  /** The S12-C typed sentinel, present exactly when `blind` is true. */
2681
2804
  blindSurface?: BlindSurfaceInfo;
@@ -5618,6 +5741,26 @@ declare class InvoicesResource extends BaseResource<Invoice, InvoiceCreate, Invo
5618
5741
  yesterday(opts?: DateWindowOptions): Promise<Invoice[]>;
5619
5742
  }
5620
5743
 
5744
+ /**
5745
+ * InvoiceTemplatesResource — InvoiceTemplate resource (G5 batch B, plan key 'invoice_templates').
5746
+ * GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
5747
+ * Do not hand-edit; re-run the generator (the plan is the source of truth).
5748
+ */
5749
+
5750
+ /** Query params for InvoiceTemplatesResource (the G3 filter surface; no per-resource invention). */
5751
+ type InvoiceTemplatesResourceQueryParams = QueryParams;
5752
+ declare class InvoiceTemplatesResource extends BaseResource<InvoiceTemplate, InvoiceTemplateCreate, InvoiceTemplateUpdate> {
5753
+ constructor(http: HttpClient, pageSize: number);
5754
+ /** Query InvoiceTemplate records with the G3 filter surface (server-side JSON filter). */
5755
+ query(params?: InvoiceTemplatesResourceQueryParams): AsyncIterable<InvoiceTemplate>;
5756
+ /** Get every InvoiceTemplate record (the MCP-preferred read; 1000-page guarded). */
5757
+ queryAll(params?: InvoiceTemplatesResourceQueryParams): Promise<InvoiceTemplate[]>;
5758
+ /** Count matching records (queryCount envelope unwrapped to a plain number). */
5759
+ count(params?: InvoiceTemplatesResourceQueryParams): Promise<number>;
5760
+ /** Get one record by id (item envelope; item: null → NotFoundError). */
5761
+ get(id: Identifier): Promise<InvoiceTemplate>;
5762
+ }
5763
+
5621
5764
  /**
5622
5765
  * ModulesResource — integration endpoint (G5 batch B, plan key 'modules').
5623
5766
  *
@@ -5794,6 +5937,111 @@ declare class OpportunityCategoriesResource extends BaseResource<OpportunityCate
5794
5937
  }): Promise<OpportunityCategorySummary[]>;
5795
5938
  }
5796
5939
 
5940
+ /**
5941
+ * OrganizationalLevel1sResource — OrganizationalLevel1 resource (G5 batch B, plan key 'organizational_level1s').
5942
+ * GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
5943
+ * Do not hand-edit; re-run the generator (the plan is the source of truth).
5944
+ */
5945
+
5946
+ /** Query params for OrganizationalLevel1sResource (the G3 filter surface; no per-resource invention). */
5947
+ type OrganizationalLevel1sResourceQueryParams = QueryParams;
5948
+ declare class OrganizationalLevel1sResource extends BaseResource<OrganizationalLevel1, OrganizationalLevel1Create, OrganizationalLevel1Update> {
5949
+ constructor(http: HttpClient, pageSize: number);
5950
+ /** Query OrganizationalLevel1 records with the G3 filter surface (server-side JSON filter). */
5951
+ query(params?: OrganizationalLevel1sResourceQueryParams): AsyncIterable<OrganizationalLevel1>;
5952
+ /** Get every OrganizationalLevel1 record (the MCP-preferred read; 1000-page guarded). */
5953
+ queryAll(params?: OrganizationalLevel1sResourceQueryParams): Promise<OrganizationalLevel1[]>;
5954
+ /** Count matching records (queryCount envelope unwrapped to a plain number). */
5955
+ count(params?: OrganizationalLevel1sResourceQueryParams): Promise<number>;
5956
+ /** Get one record by id (item envelope; item: null → NotFoundError). */
5957
+ get(id: Identifier): Promise<OrganizationalLevel1>;
5958
+ /** Create a record (OperationResultModel → { id}). `dryRun: true` returns the
5959
+ * pinned envelope (section 19.3) and never issues the create. A 2xx that is not the
5960
+ * specced envelope runs the plan-pinned marker recovery (issue #13 — one bounded read;
5961
+ * `recoverIdFromMarker: false` restores the pre-recovery behaviour). */
5962
+ create(data: OrganizationalLevel1Create, opts?: CreateOpts): Promise<OperationResult | DryRunResult<OrganizationalLevel1Create>>;
5963
+ /** Update a record (PUT on the COLLECTION — the vendored spec's item path is GET-only; the vendor
5964
+ * keys the record by the id in the body). The vendor validates the FULL model on this route (V2), so a
5965
+ * partial body is merged into the CURRENT record first: one fresh GET (which also serves the
5966
+ * stale-object guard's read) then the collection PUT of the merged model — an explicit null in the
5967
+ * caller body sends null; an omitted field keeps the current value. `raw: true` in the opts bag sends
5968
+ * the body as-is (full model or intentional partial — the compatibility escape hatch; no merge read).
5969
+ * `dryRun: true` returns the pinned envelope whose `data` is the merged body (the exact confirmed
5970
+ * wire) with the best-effort diff, from that same single read; a caller-supplied lastModifiedDate that
5971
+ * mismatches the vendor's current value throws STALE_OBJECT before the mutation. */
5972
+ update(id: Identifier, data: OrganizationalLevel1Update, opts?: MutationOpts): Promise<OperationResult | DryRunResult<OrganizationalLevel1Update>>;
5973
+ }
5974
+
5975
+ /**
5976
+ * OrganizationalLevel2sResource — OrganizationalLevel2 resource (G5 batch B, plan key 'organizational_level2s').
5977
+ * GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
5978
+ * Do not hand-edit; re-run the generator (the plan is the source of truth).
5979
+ */
5980
+
5981
+ /** Query params for OrganizationalLevel2sResource (the G3 filter surface; no per-resource invention). */
5982
+ type OrganizationalLevel2sResourceQueryParams = QueryParams;
5983
+ declare class OrganizationalLevel2sResource extends BaseResource<OrganizationalLevel2, OrganizationalLevel2Create, OrganizationalLevel2Update> {
5984
+ constructor(http: HttpClient, pageSize: number);
5985
+ /** Query OrganizationalLevel2 records with the G3 filter surface (server-side JSON filter). */
5986
+ query(params?: OrganizationalLevel2sResourceQueryParams): AsyncIterable<OrganizationalLevel2>;
5987
+ /** Get every OrganizationalLevel2 record (the MCP-preferred read; 1000-page guarded). */
5988
+ queryAll(params?: OrganizationalLevel2sResourceQueryParams): Promise<OrganizationalLevel2[]>;
5989
+ /** Count matching records (queryCount envelope unwrapped to a plain number). */
5990
+ count(params?: OrganizationalLevel2sResourceQueryParams): Promise<number>;
5991
+ /** Get one record by id (item envelope; item: null → NotFoundError). */
5992
+ get(id: Identifier): Promise<OrganizationalLevel2>;
5993
+ /** Create a record (OperationResultModel → { id}). `dryRun: true` returns the
5994
+ * pinned envelope (section 19.3) and never issues the create. A 2xx that is not the
5995
+ * specced envelope runs the plan-pinned marker recovery (issue #13 — one bounded read;
5996
+ * `recoverIdFromMarker: false` restores the pre-recovery behaviour). */
5997
+ create(data: OrganizationalLevel2Create, opts?: CreateOpts): Promise<OperationResult | DryRunResult<OrganizationalLevel2Create>>;
5998
+ /** Update a record (PUT on the COLLECTION — the vendored spec's item path is GET-only; the vendor
5999
+ * keys the record by the id in the body). The vendor validates the FULL model on this route (V2), so a
6000
+ * partial body is merged into the CURRENT record first: one fresh GET (which also serves the
6001
+ * stale-object guard's read) then the collection PUT of the merged model — an explicit null in the
6002
+ * caller body sends null; an omitted field keeps the current value. `raw: true` in the opts bag sends
6003
+ * the body as-is (full model or intentional partial — the compatibility escape hatch; no merge read).
6004
+ * `dryRun: true` returns the pinned envelope whose `data` is the merged body (the exact confirmed
6005
+ * wire) with the best-effort diff, from that same single read; a caller-supplied lastModifiedDate that
6006
+ * mismatches the vendor's current value throws STALE_OBJECT before the mutation. */
6007
+ update(id: Identifier, data: OrganizationalLevel2Update, opts?: MutationOpts): Promise<OperationResult | DryRunResult<OrganizationalLevel2Update>>;
6008
+ }
6009
+
6010
+ /**
6011
+ * OrganizationalLevelAssociationsResource — OrganizationalLevelAssociation resource (G5 batch B, plan key 'organizational_level_associations').
6012
+ * GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
6013
+ * Do not hand-edit; re-run the generator (the plan is the source of truth).
6014
+ */
6015
+
6016
+ /** Query params for OrganizationalLevelAssociationsResource (the G3 filter surface; no per-resource invention). */
6017
+ type OrganizationalLevelAssociationsResourceQueryParams = QueryParams;
6018
+ declare class OrganizationalLevelAssociationsResource extends BaseResource<OrganizationalLevelAssociation, OrganizationalLevelAssociationCreate, OrganizationalLevelAssociationUpdate> {
6019
+ constructor(http: HttpClient, pageSize: number);
6020
+ /** Query OrganizationalLevelAssociation records with the G3 filter surface (server-side JSON filter). */
6021
+ query(params?: OrganizationalLevelAssociationsResourceQueryParams): AsyncIterable<OrganizationalLevelAssociation>;
6022
+ /** Get every OrganizationalLevelAssociation record (the MCP-preferred read; 1000-page guarded). */
6023
+ queryAll(params?: OrganizationalLevelAssociationsResourceQueryParams): Promise<OrganizationalLevelAssociation[]>;
6024
+ /** Count matching records (queryCount envelope unwrapped to a plain number). */
6025
+ count(params?: OrganizationalLevelAssociationsResourceQueryParams): Promise<number>;
6026
+ /** Get one record by id (item envelope; item: null → NotFoundError). */
6027
+ get(id: Identifier): Promise<OrganizationalLevelAssociation>;
6028
+ /** Create a record (OperationResultModel → { id}). `dryRun: true` returns the
6029
+ * pinned envelope (section 19.3) and never issues the create. A 2xx that is not the
6030
+ * specced envelope runs the plan-pinned marker recovery (issue #13 — one bounded read;
6031
+ * `recoverIdFromMarker: false` restores the pre-recovery behaviour). */
6032
+ create(data: OrganizationalLevelAssociationCreate, opts?: CreateOpts): Promise<OperationResult | DryRunResult<OrganizationalLevelAssociationCreate>>;
6033
+ /** Update a record (PUT on the COLLECTION — the vendored spec's item path is GET-only; the vendor
6034
+ * keys the record by the id in the body). The vendor validates the FULL model on this route (V2), so a
6035
+ * partial body is merged into the CURRENT record first: one fresh GET (which also serves the
6036
+ * stale-object guard's read) then the collection PUT of the merged model — an explicit null in the
6037
+ * caller body sends null; an omitted field keeps the current value. `raw: true` in the opts bag sends
6038
+ * the body as-is (full model or intentional partial — the compatibility escape hatch; no merge read).
6039
+ * `dryRun: true` returns the pinned envelope whose `data` is the merged body (the exact confirmed
6040
+ * wire) with the best-effort diff, from that same single read; a caller-supplied lastModifiedDate that
6041
+ * mismatches the vendor's current value throws STALE_OBJECT before the mutation. */
6042
+ update(id: Identifier, data: OrganizationalLevelAssociationUpdate, opts?: MutationOpts): Promise<OperationResult | DryRunResult<OrganizationalLevelAssociationUpdate>>;
6043
+ }
6044
+
5797
6045
  /**
5798
6046
  * PhasesResource — Phase resource (G4 batch A, plan key 'phases').
5799
6047
  * GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
@@ -6757,6 +7005,36 @@ declare class RolesResource extends BaseResource<Role, RoleCreate, RoleUpdate> {
6757
7005
  }): Promise<RoleSummary[]>;
6758
7006
  }
6759
7007
 
7008
+ /**
7009
+ * SalesOrdersResource — SalesOrder resource (G5 batch B, plan key 'sales_orders').
7010
+ * GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
7011
+ * Do not hand-edit; re-run the generator (the plan is the source of truth).
7012
+ */
7013
+
7014
+ /** Query params for SalesOrdersResource (the G3 filter surface; no per-resource invention). */
7015
+ type SalesOrdersResourceQueryParams = QueryParams;
7016
+ declare class SalesOrdersResource extends BaseResource<SalesOrder, SalesOrderCreate, SalesOrderUpdate> {
7017
+ constructor(http: HttpClient, pageSize: number);
7018
+ /** Query SalesOrder records with the G3 filter surface (server-side JSON filter). */
7019
+ query(params?: SalesOrdersResourceQueryParams): AsyncIterable<SalesOrder>;
7020
+ /** Get every SalesOrder record (the MCP-preferred read; 1000-page guarded). */
7021
+ queryAll(params?: SalesOrdersResourceQueryParams): Promise<SalesOrder[]>;
7022
+ /** Count matching records (queryCount envelope unwrapped to a plain number). */
7023
+ count(params?: SalesOrdersResourceQueryParams): Promise<number>;
7024
+ /** Get one record by id (item envelope; item: null → NotFoundError). */
7025
+ get(id: Identifier): Promise<SalesOrder>;
7026
+ /** Update a record (PUT on the COLLECTION — the vendored spec's item path is GET-only; the vendor
7027
+ * keys the record by the id in the body). The vendor validates the FULL model on this route (V2), so a
7028
+ * partial body is merged into the CURRENT record first: one fresh GET (which also serves the
7029
+ * stale-object guard's read) then the collection PUT of the merged model — an explicit null in the
7030
+ * caller body sends null; an omitted field keeps the current value. `raw: true` in the opts bag sends
7031
+ * the body as-is (full model or intentional partial — the compatibility escape hatch; no merge read).
7032
+ * `dryRun: true` returns the pinned envelope whose `data` is the merged body (the exact confirmed
7033
+ * wire) with the best-effort diff, from that same single read; a caller-supplied lastModifiedDate that
7034
+ * mismatches the vendor's current value throws STALE_OBJECT before the mutation. */
7035
+ update(id: Identifier, data: SalesOrderUpdate, opts?: MutationOpts): Promise<OperationResult | DryRunResult<SalesOrderUpdate>>;
7036
+ }
7037
+
6760
7038
  /**
6761
7039
  * ServiceCallsResource — ServiceCall resource (G5 batch B, plan key 'service_calls').
6762
7040
  * GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
@@ -7442,6 +7720,41 @@ declare class TasksResource extends BaseResource<Task, TaskCreate, TaskUpdate> {
7442
7720
  }): Promise<TaskSummary[]>;
7443
7721
  }
7444
7722
 
7723
+ /**
7724
+ * TaxRegionsResource — TaxRegion resource (G5 batch B, plan key 'tax_regions').
7725
+ * GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
7726
+ * Do not hand-edit; re-run the generator (the plan is the source of truth).
7727
+ */
7728
+
7729
+ /** Query params for TaxRegionsResource (the G3 filter surface; no per-resource invention). */
7730
+ type TaxRegionsResourceQueryParams = QueryParams;
7731
+ declare class TaxRegionsResource extends BaseResource<TaxRegion, TaxRegionCreate, TaxRegionUpdate> {
7732
+ constructor(http: HttpClient, pageSize: number);
7733
+ /** Query TaxRegion records with the G3 filter surface (server-side JSON filter). */
7734
+ query(params?: TaxRegionsResourceQueryParams): AsyncIterable<TaxRegion>;
7735
+ /** Get every TaxRegion record (the MCP-preferred read; 1000-page guarded). */
7736
+ queryAll(params?: TaxRegionsResourceQueryParams): Promise<TaxRegion[]>;
7737
+ /** Count matching records (queryCount envelope unwrapped to a plain number). */
7738
+ count(params?: TaxRegionsResourceQueryParams): Promise<number>;
7739
+ /** Get one record by id (item envelope; item: null → NotFoundError). */
7740
+ get(id: Identifier): Promise<TaxRegion>;
7741
+ /** Create a record (OperationResultModel → { id}). `dryRun: true` returns the
7742
+ * pinned envelope (section 19.3) and never issues the create. A 2xx that is not the
7743
+ * specced envelope runs the plan-pinned marker recovery (issue #13 — one bounded read;
7744
+ * `recoverIdFromMarker: false` restores the pre-recovery behaviour). */
7745
+ create(data: TaxRegionCreate, opts?: CreateOpts): Promise<OperationResult | DryRunResult<TaxRegionCreate>>;
7746
+ /** Update a record (PUT on the COLLECTION — the vendored spec's item path is GET-only; the vendor
7747
+ * keys the record by the id in the body). The vendor validates the FULL model on this route (V2), so a
7748
+ * partial body is merged into the CURRENT record first: one fresh GET (which also serves the
7749
+ * stale-object guard's read) then the collection PUT of the merged model — an explicit null in the
7750
+ * caller body sends null; an omitted field keeps the current value. `raw: true` in the opts bag sends
7751
+ * the body as-is (full model or intentional partial — the compatibility escape hatch; no merge read).
7752
+ * `dryRun: true` returns the pinned envelope whose `data` is the merged body (the exact confirmed
7753
+ * wire) with the best-effort diff, from that same single read; a caller-supplied lastModifiedDate that
7754
+ * mismatches the vendor's current value throws STALE_OBJECT before the mutation. */
7755
+ update(id: Identifier, data: TaxRegionUpdate, opts?: MutationOpts): Promise<OperationResult | DryRunResult<TaxRegionUpdate>>;
7756
+ }
7757
+
7445
7758
  /**
7446
7759
  * ThresholdInformationResource — integration endpoint (G5 batch B, plan key 'threshold_information').
7447
7760
  *
@@ -8330,6 +8643,46 @@ interface TicketFullContext {
8330
8643
  };
8331
8644
  }
8332
8645
 
8646
+ type TicketAssignmentScope = 'primary' | 'secondary' | 'both';
8647
+ interface TicketsForResourceOptions {
8648
+ /** Which assignments to include (default 'both'). */
8649
+ scope?: TicketAssignmentScope;
8650
+ /** Keep only open tickets (default false) — the closed set is the tenant's picklist, see `closedStatus` in the result. */
8651
+ openOnly?: boolean;
8652
+ /** Explicit closed ids, overriding the resolved picklist (a caller decision, reported as source 'picklist'). */
8653
+ excludeStatusIds?: number[];
8654
+ /** Total ticket cap (1-500, default 100); `capped` is true when anything was dropped. */
8655
+ limit?: number;
8656
+ /** Extra Ticket fields on top of the pinned projection (id, ticketNumber, title, status, assignedResourceID, companyID). */
8657
+ includeFields?: string[];
8658
+ }
8659
+ interface TicketsForResourceResult {
8660
+ resourceID: number;
8661
+ scope: TicketAssignmentScope;
8662
+ openOnly: boolean;
8663
+ /** The union, de-duplicated by id, ascending. */
8664
+ tickets: Ticket[];
8665
+ /** Ids returned for the primary read. */
8666
+ primaryIds: number[];
8667
+ /** Ticket ids the secondary link rows point at (and the ticket read returned). */
8668
+ secondaryIds: number[];
8669
+ /** The de-duplicated intersection: primary AND secondary. */
8670
+ bothIds: number[];
8671
+ /** `open` counts the OPEN tickets among those returned (a closed ticket rides the set when openOnly is false); `primary`/`secondary`/`both` count ids in the union. All four describe the returned, possibly capped, set. */
8672
+ counts: {
8673
+ primary: number;
8674
+ secondary: number;
8675
+ both: number;
8676
+ open: number;
8677
+ };
8678
+ /** True when a link page, the primary page or the total cap cut the answer. */
8679
+ capped: boolean;
8680
+ /** Ticket ids the link rows named that the ticket read did not return (deleted or invisible to this API user). */
8681
+ unresolvedIds: number[];
8682
+ /** The closed set this call filtered on, and its provenance (issue #226 disclosure). */
8683
+ closedStatus: TicketStatusDisclosure;
8684
+ }
8685
+
8333
8686
  /**
8334
8687
  * TicketsResource — Ticket resource (G4 batch A, plan key 'tickets').
8335
8688
  * GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
@@ -8408,6 +8761,10 @@ declare class TicketsResource extends BaseResource<Ticket, TicketCreate, TicketU
8408
8761
  }): Promise<TicketTimeline>;
8409
8762
  /** Node-parity special op (hand-written in src/resources/special/tickets.ts). */
8410
8763
  fullContext(id: Identifier, opts?: TicketFullContextOptions): Promise<TicketFullContext>;
8764
+ /** Node-parity special op (hand-written in src/resources/special/tickets.ts). */
8765
+ statusSemantics(opts?: TicketStatusOptions): Promise<TicketStatusSemantics>;
8766
+ /** Node-parity special op (hand-written in src/resources/special/tickets.ts). */
8767
+ forResource(resourceID: Identifier, opts?: TicketsForResourceOptions): Promise<TicketsForResourceResult>;
8411
8768
  }
8412
8769
 
8413
8770
  /**
@@ -8570,6 +8927,47 @@ interface TimeEntriesCreateForResourceResult {
8570
8927
  type TimeEntriesMoveToTicketOptions = MoveToTicketOptions;
8571
8928
  type TimeEntriesMoveToTicketResult = MoveResult;
8572
8929
 
8930
+ /** Options for `time_entries.approve` (the shared mutation bag + the approval pins). */
8931
+ interface TimeEntriesApproveOptions extends MutationOpts {
8932
+ /** The approving resource id (default: the time entry's own resourceID). */
8933
+ approvalResourceID?: Identifier;
8934
+ /** The approval level (1-based integer, default 1). */
8935
+ approvalLevel?: number;
8936
+ /** The approval instant (ISO string or Date, default: now). */
8937
+ approvalDateTime?: string | Date;
8938
+ }
8939
+ /**
8940
+ * `approved`: the approval level was created AND the follow-up update
8941
+ * persisted both time-entry fields (verified by the read-back).
8942
+ * `approval_fields_not_persisted`: the approval level was created but the
8943
+ * read-back shows the vendor kept the old billingApprovalDateTime /
8944
+ * billingApprovalResourceID — re-apply, or set them in the Autotask UI.
8945
+ */
8946
+ type TimeEntriesApproveStatus = 'approved' | 'approval_fields_not_persisted';
8947
+ /** What `time_entries.approve` returns on the applied path. */
8948
+ interface TimeEntriesApproveResult {
8949
+ /** The approved time entry. */
8950
+ timeEntryID: number;
8951
+ /** The id of the created BillingItemApprovalLevels record. */
8952
+ billingItemApprovalLevelID: number;
8953
+ /** The approval level sent (1-based). */
8954
+ approvalLevel: number;
8955
+ /** The approving resource id sent. */
8956
+ approvalResourceID: number;
8957
+ /** The approval instant sent (ISO 8601). */
8958
+ approvalDateTime: string;
8959
+ /** Read back from the time entry: the vendor's most-recent level (null when unset). */
8960
+ billingApprovalLevelMostRecent: number | null;
8961
+ /** Read back from the time entry: the persisted approval instant (null when unset). */
8962
+ billingApprovalDateTime: string | null;
8963
+ /** Read back from the time entry: the persisted approving resource (null when unset). */
8964
+ billingApprovalResourceID: number | null;
8965
+ /** Honest outcome of the two-call sequence. */
8966
+ status: TimeEntriesApproveStatus;
8967
+ /** `status === 'approved'` (true only when the read-back matched what was sent). */
8968
+ persisted: boolean;
8969
+ }
8970
+
8573
8971
  interface TimeEntriesRecentTicketsOptions {
8574
8972
  /** The resource whose time entries are read (REQUIRED). */
8575
8973
  resourceID: Identifier;
@@ -8659,6 +9057,8 @@ declare class TimeEntriesResource extends BaseResource<TimeEntry, TimeEntryCreat
8659
9057
  expand?: boolean;
8660
9058
  }): Promise<TimeEntrySummary | null>;
8661
9059
  /** Node-parity special op (hand-written in src/resources/special/time_entries.ts). */
9060
+ approve(id: Identifier, opts?: TimeEntriesApproveOptions): Promise<TimeEntriesApproveResult | DryRunResult<Record<string, unknown>>>;
9061
+ /** Node-parity special op (hand-written in src/resources/special/time_entries.ts). */
8662
9062
  createForResource(resourceID: Identifier, params: TimeEntriesCreateForResourceParams, opts?: MutationOpts): Promise<TimeEntriesCreateForResourceResult | DryRunResult<Record<string, unknown>>>;
8663
9063
  /** Node-parity special op (hand-written in src/resources/special/time_entries.ts). */
8664
9064
  customRange(from: string, to: string, opts?: TimeEntriesWindowOptions): Promise<TimeEntry[]>;
@@ -8847,6 +9247,7 @@ declare class AutotaskClient {
8847
9247
  readonly appointments: AppointmentsResource;
8848
9248
  readonly authenticateResource: AuthenticateResource;
8849
9249
  readonly billingCodes: BillingCodesResource;
9250
+ readonly billingItemApprovalLevels: BillingItemApprovalLevelsResource;
8850
9251
  readonly billingItems: BillingItemsResource;
8851
9252
  readonly changeRequestLinks: ChangeRequestLinksResource;
8852
9253
  readonly checklistLibraries: ChecklistLibrariesResource;
@@ -8906,11 +9307,15 @@ declare class AutotaskClient {
8906
9307
  readonly holidays: HolidaysResource;
8907
9308
  readonly inventoryProducts: InventoryProductsResource;
8908
9309
  readonly invoices: InvoicesResource;
9310
+ readonly invoiceTemplates: InvoiceTemplatesResource;
8909
9311
  readonly modules: ModulesResource;
8910
9312
  readonly notificationHistory: NotificationHistoryResource;
8911
9313
  readonly opportunities: OpportunitiesResource;
8912
9314
  readonly opportunityAttachments: OpportunityAttachmentsResource;
8913
9315
  readonly opportunityCategories: OpportunityCategoriesResource;
9316
+ readonly organizationalLevel1s: OrganizationalLevel1sResource;
9317
+ readonly organizationalLevel2s: OrganizationalLevel2sResource;
9318
+ readonly organizationalLevelAssociations: OrganizationalLevelAssociationsResource;
8914
9319
  readonly phases: PhasesResource;
8915
9320
  readonly products: ProductsResource;
8916
9321
  readonly productVendors: ProductVendorsResource;
@@ -8933,6 +9338,7 @@ declare class AutotaskClient {
8933
9338
  readonly resourceTimeOffApprovers: ResourceTimeOffApproversResource;
8934
9339
  readonly resourceTimeOffBalances: ResourceTimeOffBalancesResource;
8935
9340
  readonly roles: RolesResource;
9341
+ readonly salesOrders: SalesOrdersResource;
8936
9342
  readonly serviceCalls: ServiceCallsResource;
8937
9343
  readonly serviceCallTaskResources: ServiceCallTaskResourcesResource;
8938
9344
  readonly serviceCallTasks: ServiceCallTasksResource;
@@ -8950,6 +9356,7 @@ declare class AutotaskClient {
8950
9356
  readonly tags: TagsResource;
8951
9357
  readonly taskSecondaryResources: TaskSecondaryResourcesResource;
8952
9358
  readonly tasks: TasksResource;
9359
+ readonly taxRegions: TaxRegionsResource;
8953
9360
  readonly thresholdInformation: ThresholdInformationResource;
8954
9361
  readonly ticketAdditionalConfigurationItems: TicketAdditionalConfigurationItemsResource;
8955
9362
  readonly ticketAdditionalContacts: TicketAdditionalContactsResource;
@@ -9029,4 +9436,4 @@ declare class AutotaskClient {
9029
9436
  }): Promise<PromiseSettledResult<R>[]>;
9030
9437
  }
9031
9438
 
9032
- export { type ConfigurationItemSslSubjectAlternativeNamesResourceQueryParams as $, type AutotaskConfig as A, BillingCodesResource as B, CREDENTIAL_HEADER_NAMES as C, CompanyLocationsResource as D, type CompanyLocationsResourceQueryParams as E, CompanyNotesResource as F, type CompanyNotesResourceQueryParams as G, CompanySiteConfigurationsResource as H, type CompanySiteConfigurationsResourceQueryParams as I, CompanyWebhooksResource as J, type CompanyWebhooksResourceQueryParams as K, type ConfigProfile as L, ConfigurationItemBillingProductAssociationsResource as M, type ConfigurationItemBillingProductAssociationsResourceQueryParams as N, ConfigurationItemCategoriesResource as O, type ConfigurationItemCategoriesResourceQueryParams as P, ConfigurationItemCategoryUdfAssociationsResource as Q, type ResolvedAutotaskConfig as R, type ConfigurationItemCategoryUdfAssociationsResourceQueryParams as S, ConfigurationItemDnsRecordsResource as T, type ConfigurationItemDnsRecordsResourceQueryParams as U, ConfigurationItemNotesResource as V, type ConfigurationItemNotesResourceQueryParams as W, ConfigurationItemRelatedItemsResource as X, type ConfigurationItemRelatedItemsResourceQueryParams as Y, type ZoneName as Z, ConfigurationItemSslSubjectAlternativeNamesResource as _, AutotaskClient as a, CurrenciesResource as a$, ConfigurationItemTypesResource as a0, type ConfigurationItemTypesResourceQueryParams as a1, ConfigurationItemWebhooksResource as a2, type ConfigurationItemWebhooksResourceQueryParams as a3, ConfigurationItemsResource as a4, type ConfigurationItemsResourceQueryParams as a5, ContactGroupContactsResource as a6, type ContactGroupContactsResourceQueryParams as a7, ContactGroupsResource as a8, type ContactGroupsResourceQueryParams as a9, ContractRatesResource as aA, type ContractRatesResourceQueryParams as aB, ContractRetainersResource as aC, type ContractRetainersResourceQueryParams as aD, ContractRoleCostsResource as aE, type ContractRoleCostsResourceQueryParams as aF, ContractServiceAdjustmentsResource as aG, type ContractServiceAdjustmentsResourceQueryParams as aH, ContractServiceBundleAdjustmentsResource as aI, type ContractServiceBundleAdjustmentsResourceQueryParams as aJ, ContractServiceBundleUnitsResource as aK, type ContractServiceBundleUnitsResourceQueryParams as aL, ContractServiceBundlesResource as aM, type ContractServiceBundlesResourceQueryParams as aN, ContractServiceUnitsResource as aO, type ContractServiceUnitsResourceQueryParams as aP, ContractServicesResource as aQ, type ContractServicesResourceQueryParams as aR, ContractTicketPurchasesResource as aS, type ContractTicketPurchasesResourceQueryParams as aT, type ContractsProfitabilityResult as aU, ContractsResource as aV, type ContractsResourceQueryParams as aW, type CooldownStore as aX, type CostRateResolution as aY, CountriesResource as aZ, type CountriesResourceQueryParams as a_, ContactWebhooksResource as aa, type ContactWebhooksResourceQueryParams as ab, ContactsResource as ac, type ContactsResourceQueryParams as ad, ContractBillingRulesResource as ae, type ContractBillingRulesResourceQueryParams as af, ContractBlockHourFactorsResource as ag, type ContractBlockHourFactorsResourceQueryParams as ah, ContractBlocksResource as ai, type ContractBlocksResourceQueryParams as aj, ContractChargesResource as ak, type ContractChargesResourceQueryParams as al, ContractExclusionBillingCodesResource as am, type ContractExclusionBillingCodesResourceQueryParams as an, ContractExclusionRolesResource as ao, type ContractExclusionRolesResourceQueryParams as ap, ContractExclusionSetExcludedRolesResource as aq, type ContractExclusionSetExcludedRolesResourceQueryParams as ar, ContractExclusionSetExcludedWorkTypesResource as as, type ContractExclusionSetExcludedWorkTypesResourceQueryParams as at, ContractExclusionSetsResource as au, type ContractExclusionSetsResourceQueryParams as av, ContractMilestonesResource as aw, type ContractMilestonesResourceQueryParams as ax, ContractNotesResource as ay, type ContractNotesResourceQueryParams as az, AutotaskError as b, type ProfitabilityOptions as b$, type CurrenciesResourceQueryParams as b0, DEFAULT_CIRCUIT_BREAKER_FAILURE_THRESHOLD as b1, DEFAULT_CIRCUIT_BREAKER_MAX_ENTRIES as b2, DEFAULT_CIRCUIT_BREAKER_OPEN_TIMEOUT_MS as b3, DEFAULT_CIRCUIT_BREAKER_SUCCESSES_TO_CLOSE as b4, DEFAULT_CIRCUIT_BREAKER_WINDOW_MS as b5, DEFAULT_COOLDOWN_DEFAULT_MS as b6, DEFAULT_COOLDOWN_MAX_ENTRIES as b7, DEFAULT_COOLDOWN_MAX_MS as b8, DEFAULT_ZONE as b9, MAX_PAGES as bA, ModulesResource as bB, NoopLogger as bC, NotificationHistoryResource as bD, type NotificationHistoryResourceQueryParams as bE, OpportunitiesResource as bF, type OpportunitiesResourceQueryParams as bG, OpportunityAttachmentsResource as bH, type OpportunityAttachmentsResourceQueryParams as bI, OpportunityCategoriesResource as bJ, type OpportunityCategoriesResourceQueryParams as bK, type PageFetcher as bL, type PaginateOptions as bM, PhasesResource as bN, type PhasesResourceQueryParams as bO, ProductVendorsResource as bP, type ProductVendorsResourceQueryParams as bQ, ProductsResource as bR, type ProductsResourceQueryParams as bS, type ProfitRateSource as bT, type ProfitabilityActivityCategory as bU, type ProfitabilityDataQualityWarning as bV, type ProfitabilityHighestCostTicket as bW, type ProfitabilityLabourCostMethod as bX, type ProfitabilityMiscoding as bY, type ProfitabilityMonthlyRow as bZ, type ProfitabilityOpenRenewalItem as b_, DepartmentsResource as ba, type DepartmentsResourceQueryParams as bb, DomainRegistrarsResource as bc, type DomainRegistrarsResourceQueryParams as bd, EntityInformationResource as be, type ErrorCategory as bf, type ErrorIdRef as bg, ExpenseItemAttachmentsResource as bh, type ExpenseItemAttachmentsResourceQueryParams as bi, ExpenseItemsResource as bj, type ExpenseItemsResourceQueryParams as bk, ExpenseReportsResource as bl, type ExpenseReportsResourceQueryParams as bm, HolidaySetsResource as bn, type HolidaySetsResourceQueryParams as bo, HolidaysResource as bp, type HolidaysResourceQueryParams as bq, HttpClient as br, IDEMPOTENT_METHODS as bs, InMemoryCircuitBreakerStore as bt, InMemoryCooldownStore as bu, InventoryProductsResource as bv, type InventoryProductsResourceQueryParams as bw, InvoicesResource as bx, type InvoicesResourceQueryParams as by, type Logger as bz, type AutotaskErrorOptions as c, type SurveyResultsResourceQueryParams as c$, type ProfitabilityPart as c0, type ProfitabilityPartDigest as c1, type ProfitabilityRevenueByType as c2, ProjectChargesResource as c3, type ProjectChargesResourceQueryParams as c4, ProjectNotesResource as c5, type ProjectNotesResourceQueryParams as c6, ProjectsResource as c7, type ProjectsResourceQueryParams as c8, PurchaseApprovalsResource as c9, ResourceTimeOffBalancesResource as cA, type ResourceTimeOffBalancesResourceQueryParams as cB, ResourcesResource as cC, type ResourcesResourceQueryParams as cD, RolesResource as cE, type RolesResourceQueryParams as cF, ServiceCallTaskResourcesResource as cG, type ServiceCallTaskResourcesResourceQueryParams as cH, ServiceCallTasksResource as cI, type ServiceCallTasksResourceQueryParams as cJ, ServiceCallTicketResourcesResource as cK, type ServiceCallTicketResourcesResourceQueryParams as cL, ServiceCallTicketsResource as cM, type ServiceCallTicketsResourceQueryParams as cN, ServiceCallsResource as cO, type ServiceCallsResourceQueryParams as cP, ServiceLevelAgreementResultsResource as cQ, type ServiceLevelAgreementResultsResourceQueryParams as cR, ServicesResource as cS, type ServicesResourceQueryParams as cT, SkillsResource as cU, type SkillsResourceQueryParams as cV, SubscriptionPeriodsResource as cW, type SubscriptionPeriodsResourceQueryParams as cX, SubscriptionsResource as cY, type SubscriptionsResourceQueryParams as cZ, SurveyResultsResource as c_, type PurchaseApprovalsResourceQueryParams as ca, PurchaseOrderItemReceivingResource as cb, type PurchaseOrderItemReceivingResourceQueryParams as cc, PurchaseOrderItemsResource as cd, type PurchaseOrderItemsResourceQueryParams as ce, PurchaseOrdersResource as cf, type PurchaseOrdersResourceQueryParams as cg, QuoteItemsResource as ch, type QuoteItemsResourceQueryParams as ci, QuoteLocationsResource as cj, type QuoteLocationsResourceQueryParams as ck, QuoteTemplatesResource as cl, type QuoteTemplatesResourceQueryParams as cm, QuotesResource as cn, type QuotesResourceQueryParams as co, REDACTED as cp, ResourceRoleQueuesResource as cq, type ResourceRoleQueuesResourceQueryParams as cr, ResourceRolesResource as cs, type ResourceRolesResourceQueryParams as ct, ResourceSkillsResource as cu, type ResourceSkillsResourceQueryParams as cv, ResourceTimeOffAdditionalResource as cw, type ResourceTimeOffAdditionalResourceQueryParams as cx, ResourceTimeOffApproversResource as cy, type ResourceTimeOffApproversResourceQueryParams as cz, type RequestOptions as d, defaultCooldownStore as d$, SurveysResource as d0, type SurveysResourceQueryParams as d1, TagAliasesResource as d2, type TagAliasesResourceQueryParams as d3, TagGroupsResource as d4, type TagGroupsResourceQueryParams as d5, TagsResource as d6, type TagsResourceQueryParams as d7, TaskSecondaryResourcesResource as d8, type TaskSecondaryResourcesResourceQueryParams as d9, TicketNoteWebhooksResource as dA, type TicketNoteWebhooksResourceQueryParams as dB, TicketNotesResource as dC, type TicketNotesResourceQueryParams as dD, TicketSecondaryResourcesResource as dE, type TicketSecondaryResourcesResourceQueryParams as dF, TicketWebhooksResource as dG, type TicketWebhooksResourceQueryParams as dH, TicketsResource as dI, type TicketsResourceQueryParams as dJ, TimeEntriesResource as dK, type TimeEntriesResourceQueryParams as dL, TimeEntryAttachmentsResource as dM, type TimeEntryAttachmentsResourceQueryParams as dN, TimeOffRequestsResource as dO, type TimeOffRequestsResourceQueryParams as dP, VersionInformationResource as dQ, VersionResource as dR, ZONES as dS, ZONE_CATALOG as dT, ZoneInformationResource as dU, buildBreakerKey as dV, buildTenantKey as dW, clampPageSize as dX, collectAll as dY, cooldownDurationMs as dZ, defaultCircuitBreakerStore as d_, TasksResource as da, type TasksResourceQueryParams as db, ThresholdInformationResource as dc, TicketAdditionalConfigurationItemsResource as dd, type TicketAdditionalConfigurationItemsResourceQueryParams as de, TicketAdditionalContactsResource as df, type TicketAdditionalContactsResourceQueryParams as dg, TicketAttachmentsResource as dh, type TicketAttachmentsResourceQueryParams as di, TicketCategoriesResource as dj, type TicketCategoriesResourceQueryParams as dk, TicketCategoryFieldDefaultsResource as dl, type TicketCategoryFieldDefaultsResourceQueryParams as dm, TicketChangeRequestApprovalsResource as dn, type TicketChangeRequestApprovalsResourceQueryParams as dp, TicketChargesResource as dq, type TicketChargesResourceQueryParams as dr, TicketChecklistItemsResource as ds, type TicketChecklistItemsResourceQueryParams as dt, TicketChecklistLibrariesResource as du, type TicketChecklistLibrariesResourceQueryParams as dv, TicketHistoryResource as dw, type TicketHistoryResourceQueryParams as dx, TicketNoteAttachmentsResource as dy, type TicketNoteAttachmentsResourceQueryParams as dz, AGENT_PROFILE as e, isAutotaskError as e0, isBreakerFailure as e1, isCredentialHeaderName as e2, paginate as e3, paginateItems as e4, redactRecord as e5, resetDefaultCircuitBreakerStore as e6, resetDefaultCooldownStore as e7, resolveBaseUrl as e8, toArray as e9, totalPagesFor as ea, zoneUrl as eb, type BlindSurfaceInfo as ec, type RelationshipResource as ed, type BlindSurfaceInventory as ee, type BlindSurfaceRow as ef, type CreateBlockerKind as eg, type CreateGuidanceReport as eh, type FieldCacheKind as ei, FIELD_CACHE_KINDS as ej, AppointmentsResource as f, type AppointmentsResourceQueryParams as g, AuthenticateResource as h, AutotaskConfigError as i, type BillingCodesResourceQueryParams as j, BillingItemsResource as k, type BillingItemsResourceQueryParams as l, ChangeRequestLinksResource as m, type ChangeRequestLinksResourceQueryParams as n, ChecklistLibrariesResource as o, type ChecklistLibrariesResourceQueryParams as p, ChecklistLibraryChecklistItemsResource as q, type ChecklistLibraryChecklistItemsResourceQueryParams as r, type CircuitBreakerState as s, type CircuitBreakerStore as t, ClassificationIconsResource as u, type ClassificationIconsResourceQueryParams as v, CompaniesResource as w, type CompaniesResourceQueryParams as x, CompanyAlertsResource as y, type CompanyAlertsResourceQueryParams as z };
9439
+ export { ConfigurationItemRelatedItemsResource as $, type AutotaskConfig as A, BillingCodesResource as B, CREDENTIAL_HEADER_NAMES as C, type CompaniesResourceQueryParams as D, CompanyAlertsResource as E, type CompanyAlertsResourceQueryParams as F, CompanyLocationsResource as G, type CompanyLocationsResourceQueryParams as H, CompanyNotesResource as I, type CompanyNotesResourceQueryParams as J, CompanySiteConfigurationsResource as K, type CompanySiteConfigurationsResourceQueryParams as L, CompanyWebhooksResource as M, type CompanyWebhooksResourceQueryParams as N, type ConfigProfile as O, ConfigurationItemBillingProductAssociationsResource as P, type ConfigurationItemBillingProductAssociationsResourceQueryParams as Q, ReadCache as R, ConfigurationItemCategoriesResource as S, type ConfigurationItemCategoriesResourceQueryParams as T, ConfigurationItemCategoryUdfAssociationsResource as U, type ConfigurationItemCategoryUdfAssociationsResourceQueryParams as V, ConfigurationItemDnsRecordsResource as W, type ConfigurationItemDnsRecordsResourceQueryParams as X, ConfigurationItemNotesResource as Y, type ZoneName as Z, type ConfigurationItemNotesResourceQueryParams as _, AutotaskClient as a, type CostRateResolution as a$, type ConfigurationItemRelatedItemsResourceQueryParams as a0, ConfigurationItemSslSubjectAlternativeNamesResource as a1, type ConfigurationItemSslSubjectAlternativeNamesResourceQueryParams as a2, ConfigurationItemTypesResource as a3, type ConfigurationItemTypesResourceQueryParams as a4, ConfigurationItemWebhooksResource as a5, type ConfigurationItemWebhooksResourceQueryParams as a6, ConfigurationItemsResource as a7, type ConfigurationItemsResourceQueryParams as a8, ContactGroupContactsResource as a9, type ContractMilestonesResourceQueryParams as aA, ContractNotesResource as aB, type ContractNotesResourceQueryParams as aC, ContractRatesResource as aD, type ContractRatesResourceQueryParams as aE, ContractRetainersResource as aF, type ContractRetainersResourceQueryParams as aG, ContractRoleCostsResource as aH, type ContractRoleCostsResourceQueryParams as aI, ContractServiceAdjustmentsResource as aJ, type ContractServiceAdjustmentsResourceQueryParams as aK, ContractServiceBundleAdjustmentsResource as aL, type ContractServiceBundleAdjustmentsResourceQueryParams as aM, ContractServiceBundleUnitsResource as aN, type ContractServiceBundleUnitsResourceQueryParams as aO, ContractServiceBundlesResource as aP, type ContractServiceBundlesResourceQueryParams as aQ, ContractServiceUnitsResource as aR, type ContractServiceUnitsResourceQueryParams as aS, ContractServicesResource as aT, type ContractServicesResourceQueryParams as aU, ContractTicketPurchasesResource as aV, type ContractTicketPurchasesResourceQueryParams as aW, type ContractsProfitabilityResult as aX, ContractsResource as aY, type ContractsResourceQueryParams as aZ, type CooldownStore as a_, type ContactGroupContactsResourceQueryParams as aa, ContactGroupsResource as ab, type ContactGroupsResourceQueryParams as ac, ContactWebhooksResource as ad, type ContactWebhooksResourceQueryParams as ae, ContactsResource as af, type ContactsResourceQueryParams as ag, ContractBillingRulesResource as ah, type ContractBillingRulesResourceQueryParams as ai, ContractBlockHourFactorsResource as aj, type ContractBlockHourFactorsResourceQueryParams as ak, ContractBlocksResource as al, type ContractBlocksResourceQueryParams as am, ContractChargesResource as an, type ContractChargesResourceQueryParams as ao, ContractExclusionBillingCodesResource as ap, type ContractExclusionBillingCodesResourceQueryParams as aq, ContractExclusionRolesResource as ar, type ContractExclusionRolesResourceQueryParams as as, ContractExclusionSetExcludedRolesResource as at, type ContractExclusionSetExcludedRolesResourceQueryParams as au, ContractExclusionSetExcludedWorkTypesResource as av, type ContractExclusionSetExcludedWorkTypesResourceQueryParams as aw, ContractExclusionSetsResource as ax, type ContractExclusionSetsResourceQueryParams as ay, ContractMilestonesResource as az, AutotaskError as b, type ProductVendorsResourceQueryParams as b$, CountriesResource as b0, type CountriesResourceQueryParams as b1, CurrenciesResource as b2, type CurrenciesResourceQueryParams as b3, DEFAULT_CIRCUIT_BREAKER_FAILURE_THRESHOLD as b4, DEFAULT_CIRCUIT_BREAKER_MAX_ENTRIES as b5, DEFAULT_CIRCUIT_BREAKER_OPEN_TIMEOUT_MS as b6, DEFAULT_CIRCUIT_BREAKER_SUCCESSES_TO_CLOSE as b7, DEFAULT_CIRCUIT_BREAKER_WINDOW_MS as b8, DEFAULT_COOLDOWN_DEFAULT_MS as b9, InvoiceTemplatesResource as bA, type InvoiceTemplatesResourceQueryParams as bB, InvoicesResource as bC, type InvoicesResourceQueryParams as bD, type Logger as bE, MAX_PAGES as bF, ModulesResource as bG, NoopLogger as bH, NotificationHistoryResource as bI, type NotificationHistoryResourceQueryParams as bJ, OpportunitiesResource as bK, type OpportunitiesResourceQueryParams as bL, OpportunityAttachmentsResource as bM, type OpportunityAttachmentsResourceQueryParams as bN, OpportunityCategoriesResource as bO, type OpportunityCategoriesResourceQueryParams as bP, OrganizationalLevel1sResource as bQ, type OrganizationalLevel1sResourceQueryParams as bR, OrganizationalLevel2sResource as bS, type OrganizationalLevel2sResourceQueryParams as bT, OrganizationalLevelAssociationsResource as bU, type OrganizationalLevelAssociationsResourceQueryParams as bV, type PageFetcher as bW, type PaginateOptions as bX, PhasesResource as bY, type PhasesResourceQueryParams as bZ, ProductVendorsResource as b_, DEFAULT_COOLDOWN_MAX_ENTRIES as ba, DEFAULT_COOLDOWN_MAX_MS as bb, DEFAULT_ZONE as bc, DepartmentsResource as bd, type DepartmentsResourceQueryParams as be, DomainRegistrarsResource as bf, type DomainRegistrarsResourceQueryParams as bg, EntityInformationResource as bh, type ErrorCategory as bi, type ErrorIdRef as bj, ExpenseItemAttachmentsResource as bk, type ExpenseItemAttachmentsResourceQueryParams as bl, ExpenseItemsResource as bm, type ExpenseItemsResourceQueryParams as bn, ExpenseReportsResource as bo, type ExpenseReportsResourceQueryParams as bp, HolidaySetsResource as bq, type HolidaySetsResourceQueryParams as br, HolidaysResource as bs, type HolidaysResourceQueryParams as bt, HttpClient as bu, IDEMPOTENT_METHODS as bv, InMemoryCircuitBreakerStore as bw, InMemoryCooldownStore as bx, InventoryProductsResource as by, type InventoryProductsResourceQueryParams as bz, type AutotaskErrorOptions as c, type ServiceCallTicketsResourceQueryParams as c$, ProductsResource as c0, type ProductsResourceQueryParams as c1, type ProfitRateSource as c2, type ProfitabilityActivityCategory as c3, type ProfitabilityDataQualityWarning as c4, type ProfitabilityHighestCostTicket as c5, type ProfitabilityLabourCostMethod as c6, type ProfitabilityMiscoding as c7, type ProfitabilityMonthlyRow as c8, type ProfitabilityOpenRenewalItem as c9, READ_CACHE_MAX_ENTRIES as cA, REDACTED as cB, ResourceRoleQueuesResource as cC, type ResourceRoleQueuesResourceQueryParams as cD, ResourceRolesResource as cE, type ResourceRolesResourceQueryParams as cF, ResourceSkillsResource as cG, type ResourceSkillsResourceQueryParams as cH, ResourceTimeOffAdditionalResource as cI, type ResourceTimeOffAdditionalResourceQueryParams as cJ, ResourceTimeOffApproversResource as cK, type ResourceTimeOffApproversResourceQueryParams as cL, ResourceTimeOffBalancesResource as cM, type ResourceTimeOffBalancesResourceQueryParams as cN, ResourcesResource as cO, type ResourcesResourceQueryParams as cP, RolesResource as cQ, type RolesResourceQueryParams as cR, SalesOrdersResource as cS, type SalesOrdersResourceQueryParams as cT, ServiceCallTaskResourcesResource as cU, type ServiceCallTaskResourcesResourceQueryParams as cV, ServiceCallTasksResource as cW, type ServiceCallTasksResourceQueryParams as cX, ServiceCallTicketResourcesResource as cY, type ServiceCallTicketResourcesResourceQueryParams as cZ, ServiceCallTicketsResource as c_, type ProfitabilityOptions as ca, type ProfitabilityPart as cb, type ProfitabilityPartDigest as cc, type ProfitabilityRevenueByType as cd, ProjectChargesResource as ce, type ProjectChargesResourceQueryParams as cf, ProjectNotesResource as cg, type ProjectNotesResourceQueryParams as ch, ProjectsResource as ci, type ProjectsResourceQueryParams as cj, PurchaseApprovalsResource as ck, type PurchaseApprovalsResourceQueryParams as cl, PurchaseOrderItemReceivingResource as cm, type PurchaseOrderItemReceivingResourceQueryParams as cn, PurchaseOrderItemsResource as co, type PurchaseOrderItemsResourceQueryParams as cp, PurchaseOrdersResource as cq, type PurchaseOrdersResourceQueryParams as cr, QuoteItemsResource as cs, type QuoteItemsResourceQueryParams as ct, QuoteLocationsResource as cu, type QuoteLocationsResourceQueryParams as cv, QuoteTemplatesResource as cw, type QuoteTemplatesResourceQueryParams as cx, QuotesResource as cy, type QuotesResourceQueryParams as cz, type ResolvedAutotaskConfig as d, type TimeEntriesResourceQueryParams as d$, ServiceCallsResource as d0, type ServiceCallsResourceQueryParams as d1, ServiceLevelAgreementResultsResource as d2, type ServiceLevelAgreementResultsResourceQueryParams as d3, ServicesResource as d4, type ServicesResourceQueryParams as d5, SkillsResource as d6, type SkillsResourceQueryParams as d7, SubscriptionPeriodsResource as d8, type SubscriptionPeriodsResourceQueryParams as d9, TicketCategoriesResource as dA, type TicketCategoriesResourceQueryParams as dB, TicketCategoryFieldDefaultsResource as dC, type TicketCategoryFieldDefaultsResourceQueryParams as dD, TicketChangeRequestApprovalsResource as dE, type TicketChangeRequestApprovalsResourceQueryParams as dF, TicketChargesResource as dG, type TicketChargesResourceQueryParams as dH, TicketChecklistItemsResource as dI, type TicketChecklistItemsResourceQueryParams as dJ, TicketChecklistLibrariesResource as dK, type TicketChecklistLibrariesResourceQueryParams as dL, TicketHistoryResource as dM, type TicketHistoryResourceQueryParams as dN, TicketNoteAttachmentsResource as dO, type TicketNoteAttachmentsResourceQueryParams as dP, TicketNoteWebhooksResource as dQ, type TicketNoteWebhooksResourceQueryParams as dR, TicketNotesResource as dS, type TicketNotesResourceQueryParams as dT, TicketSecondaryResourcesResource as dU, type TicketSecondaryResourcesResourceQueryParams as dV, TicketWebhooksResource as dW, type TicketWebhooksResourceQueryParams as dX, TicketsResource as dY, type TicketsResourceQueryParams as dZ, TimeEntriesResource as d_, SubscriptionsResource as da, type SubscriptionsResourceQueryParams as db, SurveyResultsResource as dc, type SurveyResultsResourceQueryParams as dd, SurveysResource as de, type SurveysResourceQueryParams as df, TagAliasesResource as dg, type TagAliasesResourceQueryParams as dh, TagGroupsResource as di, type TagGroupsResourceQueryParams as dj, TagsResource as dk, type TagsResourceQueryParams as dl, TaskSecondaryResourcesResource as dm, type TaskSecondaryResourcesResourceQueryParams as dn, TasksResource as dp, type TasksResourceQueryParams as dq, TaxRegionsResource as dr, type TaxRegionsResourceQueryParams as ds, ThresholdInformationResource as dt, TicketAdditionalConfigurationItemsResource as du, type TicketAdditionalConfigurationItemsResourceQueryParams as dv, TicketAdditionalContactsResource as dw, type TicketAdditionalContactsResourceQueryParams as dx, TicketAttachmentsResource as dy, type TicketAttachmentsResourceQueryParams as dz, type RequestOptions as e, TimeEntryAttachmentsResource as e0, type TimeEntryAttachmentsResourceQueryParams as e1, TimeOffRequestsResource as e2, type TimeOffRequestsResourceQueryParams as e3, VersionInformationResource as e4, VersionResource as e5, ZONES as e6, ZONE_CATALOG as e7, ZoneInformationResource as e8, buildBreakerKey as e9, FIELD_CACHE_KINDS as eA, buildTenantKey as ea, clampPageSize as eb, collectAll as ec, cooldownDurationMs as ed, defaultCircuitBreakerStore as ee, defaultCooldownStore as ef, isAutotaskError as eg, isBreakerFailure as eh, isCredentialHeaderName as ei, paginate as ej, paginateItems as ek, redactRecord as el, resetDefaultCircuitBreakerStore as em, resetDefaultCooldownStore as en, resolveBaseUrl as eo, toArray as ep, totalPagesFor as eq, zoneUrl as er, type BlindSurfaceInfo as es, type RelationshipResource as et, type BlindSurfaceInventory as eu, type BlindSurfaceRow as ev, type CreateGuidanceRow as ew, type CreateBlockerKind as ex, type CreateGuidanceReport as ey, type FieldCacheKind as ez, AGENT_PROFILE as f, AppointmentsResource as g, type AppointmentsResourceQueryParams as h, AuthenticateResource as i, AutotaskConfigError as j, type BillingCodesResourceQueryParams as k, BillingItemApprovalLevelsResource as l, type BillingItemApprovalLevelsResourceQueryParams as m, BillingItemsResource as n, type BillingItemsResourceQueryParams as o, ChangeRequestLinksResource as p, type ChangeRequestLinksResourceQueryParams as q, ChecklistLibrariesResource as r, type ChecklistLibrariesResourceQueryParams as s, ChecklistLibraryChecklistItemsResource as t, type ChecklistLibraryChecklistItemsResourceQueryParams as u, type CircuitBreakerState as v, type CircuitBreakerStore as w, ClassificationIconsResource as x, type ClassificationIconsResourceQueryParams as y, CompaniesResource as z };