node-autotask 0.88.1 → 0.89.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.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -4
- package/dist/{chunk-JVVE4XEN.js → chunk-2PWAWWWM.js} +2 -2
- package/dist/{chunk-33UVHMFN.js → chunk-4EIN7AZJ.js} +2 -2
- package/dist/{chunk-JHDT4O7N.cjs → chunk-4MPQ5CDB.cjs} +199 -199
- package/dist/{chunk-DSHWQMF2.cjs → chunk-BRU7TZOD.cjs} +30 -30
- package/dist/{chunk-KM7ITBOT.js → chunk-OVIYLMGB.js} +8 -9
- package/dist/{chunk-YTOBU3Z6.cjs → chunk-YAXEPESA.cjs} +8 -9
- package/dist/{index-XDIy_GvD.d.cts → index-CoTtEn8U.d.cts} +5 -10
- package/dist/{index-GSA44LRd.d.ts → index-Wh6bLfv_.d.ts} +5 -10
- package/dist/index.cjs +84 -84
- package/dist/index.d.cts +7 -10
- package/dist/index.d.ts +7 -10
- package/dist/index.js +4 -4
- package/dist/operations/index.cjs +50 -50
- package/dist/operations/index.d.cts +2 -2
- package/dist/operations/index.d.ts +2 -2
- package/dist/operations/index.js +1 -1
- package/dist/pool.cjs +11 -11
- package/dist/pool.js +3 -3
- package/dist/resources/index.cjs +26 -26
- package/dist/resources/index.d.cts +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.js +2 -2
- package/docs/API.md +17 -29
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.89.0] - 2026-11-21
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **Breaking:** Personal and business-sensitive fields now pass through by default in parsed responses, vendor errors and dry-run results. Set `redactPersonalData: true` to retain the previous redaction policy. Structured secret fields remain redacted under either policy (#498).
|
|
15
|
+
|
|
10
16
|
## [0.88.1] - 2026-11-21
|
|
11
17
|
|
|
12
18
|
- Require own submitted and current InventoryLocations fields for create validation, inactivation guards and persisted verification. Validate the requested identity and response envelope, keep mutation IDs out of create bodies, and clarify the collection PATCH input comment (#504).
|
package/README.md
CHANGED
|
@@ -6,10 +6,9 @@ dependencies. Built for building MCP servers and integrations.
|
|
|
6
6
|
The SDK is also the **deterministic execution layer for agents**: a generated capability registry (one record per operation, across the entity
|
|
7
7
|
registry in `capabilities.json`), a mechanical MCP substrate (registry → manifest → overrides → core tier +
|
|
8
8
|
catalog meta-tool), and a write governor (dry-run-first, destructive
|
|
9
|
-
confirmation). The SDK
|
|
10
|
-
|
|
11
|
-
business-sensitive
|
|
12
|
-
exempt).
|
|
9
|
+
confirmation). The SDK always redacts structured secret fields
|
|
10
|
+
(`password`, `secretKey`, `secret`). Set `redactPersonalData: true` to also
|
|
11
|
+
redact personal and business-sensitive fields. `authToken` is exempt.
|
|
13
12
|
It is MCP-import-free by design — the generated data and `operations.invoke` are the
|
|
14
13
|
substrate; the integration layers (the MCP server
|
|
15
14
|
[`iit-mcp-autotask`](https://github.com/msoukhomlinov/iit-mcp-autotask), the n8n thin importer) build
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-
|
|
2
|
-
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-
|
|
1
|
+
import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-4EIN7AZJ.js';
|
|
2
|
+
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-OVIYLMGB.js';
|
|
3
3
|
|
|
4
4
|
// src/client.ts
|
|
5
5
|
var AutotaskClient = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenericResource, readTasks, OperationNotSupportedError, parseIdentifier, AutotaskConfigError, isRecord, isDateYMD, isAutotaskError, RateLimitError, MaintenanceError, AutotaskError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-
|
|
1
|
+
import { GenericResource, readTasks, OperationNotSupportedError, parseIdentifier, AutotaskConfigError, isRecord, isDateYMD, isAutotaskError, RateLimitError, MaintenanceError, AutotaskError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-OVIYLMGB.js';
|
|
2
2
|
import { loadCapabilityRecords } from './chunk-ZADTVF6M.js';
|
|
3
3
|
|
|
4
4
|
// src/resources/special/configuration_items.ts
|
|
@@ -423,7 +423,7 @@ async function stockedItems(_resource, kind, parentId, data, opts = {}) {
|
|
|
423
423
|
checks: [{ name: "input-validation", ok: true }],
|
|
424
424
|
impact: { affected: 1, scope: "single-record", reversible: kind !== "add" },
|
|
425
425
|
data: { ...data }
|
|
426
|
-
});
|
|
426
|
+
}, { redactPersonalData: http.redactPersonalData });
|
|
427
427
|
}
|
|
428
428
|
const res = await http.request({
|
|
429
429
|
method: "POST",
|