node-autotask 0.65.0 → 0.66.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 (34) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/MCP_TOOL_CATALOG.json +34 -14
  3. package/README.md +1 -1
  4. package/capabilities.json +157 -96
  5. package/dist/capabilities-data.js +156 -95
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-C73NILBZ.js → chunk-4HJVHVPE.js} +2 -2
  9. package/dist/{chunk-WKR5IJEC.cjs → chunk-FLVMENXG.cjs} +3 -3
  10. package/dist/{chunk-ULI4UUB3.js → chunk-KO36QZXN.js} +390 -405
  11. package/dist/{chunk-N4EO3KAY.js → chunk-L5K2D2MZ.js} +3 -3
  12. package/dist/{chunk-M63TK4ZH.cjs → chunk-QG3O5G4L.cjs} +175 -179
  13. package/dist/{chunk-MXLE2F5G.js → chunk-T5TI22K5.js} +4 -8
  14. package/dist/{chunk-NTHEFYA7.cjs → chunk-TIFJFCCN.cjs} +395 -410
  15. package/dist/{chunk-UHV7SAX6.cjs → chunk-XAJ7SBPE.cjs} +31 -31
  16. package/dist/{index-vcFKvZqm.d.ts → index-BZ11hF8H.d.ts} +10 -24
  17. package/dist/{index-CRVQBajX.d.cts → index-DnisYPlj.d.cts} +10 -24
  18. package/dist/index.cjs +84 -84
  19. package/dist/index.d.cts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +5 -5
  22. package/dist/operations/index.cjs +50 -50
  23. package/dist/operations/index.d.cts +3 -3
  24. package/dist/operations/index.d.ts +3 -3
  25. package/dist/operations/index.js +2 -2
  26. package/dist/pool.cjs +8 -8
  27. package/dist/pool.js +4 -4
  28. package/dist/resources/index.cjs +27 -27
  29. package/dist/resources/index.d.cts +1 -1
  30. package/dist/resources/index.d.ts +1 -1
  31. package/dist/resources/index.js +3 -3
  32. package/docs/API.md +2 -2
  33. package/docs/VENDOR-QUIRKS.md +50 -34
  34. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkM63TK4ZH_cjs = require('./chunk-M63TK4ZH.cjs');
4
- var chunkNTHEFYA7_cjs = require('./chunk-NTHEFYA7.cjs');
3
+ var chunkQG3O5G4L_cjs = require('./chunk-QG3O5G4L.cjs');
4
+ var chunkTIFJFCCN_cjs = require('./chunk-TIFJFCCN.cjs');
5
5
 
6
6
  // src/client.ts
7
7
  var AutotaskClient = class {
@@ -154,34 +154,34 @@ var AutotaskClient = class {
154
154
  * anything is wired. Construction issues NO request.
155
155
  */
156
156
  constructor(options) {
157
- this.config = chunkNTHEFYA7_cjs.resolveConfig(options);
158
- this.http = new chunkNTHEFYA7_cjs.HttpClient(this.config);
157
+ this.config = chunkTIFJFCCN_cjs.resolveConfig(options);
158
+ this.http = new chunkTIFJFCCN_cjs.HttpClient(this.config);
159
159
  this.http.client = this;
160
- for (const entry of chunkNTHEFYA7_cjs.SIMPLE_RESOURCES) {
161
- this[entry.accessor] = new chunkNTHEFYA7_cjs.GenericResource(this.http, entry, this.config.pageSize);
160
+ for (const entry of chunkTIFJFCCN_cjs.SIMPLE_RESOURCES) {
161
+ this[entry.accessor] = new chunkTIFJFCCN_cjs.GenericResource(this.http, entry, this.config.pageSize);
162
162
  }
163
- this.companies = new chunkNTHEFYA7_cjs.CompaniesResource(this.http, this.config.pageSize);
164
- this.configurationItems = new chunkM63TK4ZH_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
165
- this.contacts = new chunkM63TK4ZH_cjs.ContactsResource(this.http, this.config.pageSize);
166
- this.contracts = new chunkNTHEFYA7_cjs.ContractsResource(this.http, this.config.pageSize);
167
- this.inventoryProducts = new chunkM63TK4ZH_cjs.InventoryProductsResource(this.http, this.config.pageSize);
168
- this.invoices = new chunkNTHEFYA7_cjs.InvoicesResource(this.http, this.config.pageSize);
169
- this.quotes = new chunkM63TK4ZH_cjs.QuotesResource(this.http, this.config.pageSize);
170
- this.resourceTimeOffAdditional = new chunkM63TK4ZH_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
171
- this.resourceTimeOffBalances = new chunkM63TK4ZH_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
172
- this.resources = new chunkM63TK4ZH_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
173
- this.serviceCalls = new chunkM63TK4ZH_cjs.ServiceCallsResource(this.http, this.config.pageSize);
174
- this.ticketCharges = new chunkM63TK4ZH_cjs.TicketChargesResource(this.http, this.config.pageSize);
175
- this.tickets = new chunkM63TK4ZH_cjs.TicketsResource(this.http, this.config.pageSize);
176
- this.timeEntries = new chunkNTHEFYA7_cjs.TimeEntriesResource(this.http, this.config.pageSize);
177
- this.timeOffRequests = new chunkM63TK4ZH_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
178
- this.authenticateResource = new chunkM63TK4ZH_cjs.AuthenticateResource(this.http);
179
- this.entityInformation = new chunkM63TK4ZH_cjs.EntityInformationResource(this.http);
180
- this.modules = new chunkM63TK4ZH_cjs.ModulesResource(this.http);
181
- this.thresholdInformation = new chunkM63TK4ZH_cjs.ThresholdInformationResource(this.http);
182
- this.version = new chunkM63TK4ZH_cjs.VersionResource(this.http);
183
- this.versionInformation = new chunkM63TK4ZH_cjs.VersionInformationResource(this.http);
184
- this.zoneInformation = new chunkM63TK4ZH_cjs.ZoneInformationResource(this.http);
163
+ this.companies = new chunkTIFJFCCN_cjs.CompaniesResource(this.http, this.config.pageSize);
164
+ this.configurationItems = new chunkQG3O5G4L_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
165
+ this.contacts = new chunkQG3O5G4L_cjs.ContactsResource(this.http, this.config.pageSize);
166
+ this.contracts = new chunkTIFJFCCN_cjs.ContractsResource(this.http, this.config.pageSize);
167
+ this.inventoryProducts = new chunkQG3O5G4L_cjs.InventoryProductsResource(this.http, this.config.pageSize);
168
+ this.invoices = new chunkTIFJFCCN_cjs.InvoicesResource(this.http, this.config.pageSize);
169
+ this.quotes = new chunkQG3O5G4L_cjs.QuotesResource(this.http, this.config.pageSize);
170
+ this.resourceTimeOffAdditional = new chunkQG3O5G4L_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
171
+ this.resourceTimeOffBalances = new chunkQG3O5G4L_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
172
+ this.resources = new chunkQG3O5G4L_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
173
+ this.serviceCalls = new chunkQG3O5G4L_cjs.ServiceCallsResource(this.http, this.config.pageSize);
174
+ this.ticketCharges = new chunkQG3O5G4L_cjs.TicketChargesResource(this.http, this.config.pageSize);
175
+ this.tickets = new chunkQG3O5G4L_cjs.TicketsResource(this.http, this.config.pageSize);
176
+ this.timeEntries = new chunkTIFJFCCN_cjs.TimeEntriesResource(this.http, this.config.pageSize);
177
+ this.timeOffRequests = new chunkQG3O5G4L_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
178
+ this.authenticateResource = new chunkQG3O5G4L_cjs.AuthenticateResource(this.http);
179
+ this.entityInformation = new chunkQG3O5G4L_cjs.EntityInformationResource(this.http);
180
+ this.modules = new chunkQG3O5G4L_cjs.ModulesResource(this.http);
181
+ this.thresholdInformation = new chunkQG3O5G4L_cjs.ThresholdInformationResource(this.http);
182
+ this.version = new chunkQG3O5G4L_cjs.VersionResource(this.http);
183
+ this.versionInformation = new chunkQG3O5G4L_cjs.VersionInformationResource(this.http);
184
+ this.zoneInformation = new chunkQG3O5G4L_cjs.ZoneInformationResource(this.http);
185
185
  }
186
186
  /**
187
187
  * `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
@@ -215,12 +215,12 @@ var AutotaskClient = class {
215
215
  * parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
216
216
  */
217
217
  withSignal(signal, fn) {
218
- return chunkNTHEFYA7_cjs.runWithSignal(signal, fn);
218
+ return chunkTIFJFCCN_cjs.runWithSignal(signal, fn);
219
219
  }
220
220
  async batch(fn, items, opts = {}) {
221
221
  const concurrency = opts.concurrency ?? this.config.maxConcurrent;
222
222
  if (!Number.isInteger(concurrency) || concurrency <= 0) {
223
- throw new chunkNTHEFYA7_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
223
+ throw new chunkTIFJFCCN_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
224
224
  }
225
225
  const { signal, settle } = opts;
226
226
  const results = new Array(items.length);
@@ -235,7 +235,7 @@ var AutotaskClient = class {
235
235
  const i = next++;
236
236
  try {
237
237
  const item = items[i];
238
- const value = await (signal === void 0 ? fn(item) : chunkNTHEFYA7_cjs.runWithSignal(signal, () => fn(item)));
238
+ const value = await (signal === void 0 ? fn(item) : chunkTIFJFCCN_cjs.runWithSignal(signal, () => fn(item)));
239
239
  results[i] = settle ? { status: "fulfilled", value } : value;
240
240
  } catch (error) {
241
241
  if (settle) results[i] = { status: "rejected", reason: error };
@@ -32,7 +32,7 @@ import { L as Logger } from './logger-B1gYmFre.js';
32
32
  * queryBounded noteChars free-text cap (issue #61 — response-side only);
33
33
  * - docs/VENDOR-QUIRKS.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
34
34
  *
35
- * planHash: 546e9de78d62f2c30190c1bb82f89be73f9cc0a75d633d771956566c78f4efeb
35
+ * planHash: 94052c314d189d4b2fcf6bc842d983d4817c8410109074ed9505b682f4855790
36
36
  */
37
37
 
38
38
  /** One pinned blind-surface stamp (the result-time sentinel object). */
@@ -43,7 +43,7 @@ interface BlindSurfaceInfo {
43
43
  kind: 'unowned-blind' | 'fully-blind' | 'unfiltered-blind';
44
44
  /** The authority op that returns the record (the remedy the sentinel serves). */
45
45
  authority: string;
46
- /** The zone fact + remedy, LLM-consumer grade. */
46
+ /** The conditional visibility warning and remedy. */
47
47
  note: string;
48
48
  }
49
49
  /** The create-blocker class (issue #12 — the closed 9-set; the gate re-derives). */
@@ -994,17 +994,10 @@ interface CompanyFullProfilePart<TItem> {
994
994
  capped: boolean;
995
995
  }
996
996
  /**
997
- * The open-tickets part (plan T6): the filtered `tickets.query`
998
- * (companyID eq + status noteq 5). S12-B P1 settled the blind-surface probe
999
- * live: the tickets count/query surface is blind UNFILTERED on ww29 (0 before
1000
- * AND after a proven live create), but FILTERED tickets queries RETURN DATA
1001
- * (3 open tickets via a companyID+status filter). So an EMPTY answer degrades
1002
- * to the TYPED blind part (`blind: true` + the S12-C sentinel + the note)
1003
- * ONLY when the filter-aware `blindStampFor` predicate stamps THIS call — on
1004
- * the `unfiltered-blind` tickets surface a filtered empty answer is a TRUE
1005
- * zero (the company has no open tickets), never a sentinel; a non-empty
1006
- * answer is data and clears the flag. Never an error, never a misleading
1007
- * empty list.
997
+ * The open-tickets part uses the current closed-status semantics and a company filter.
998
+ * A conservative sentinel may annotate an empty result only when its filter-aware
999
+ * predicate covers the call. Non-empty data is never marked blind; an empty scoped
1000
+ * query does not establish tenant-wide absence or different zone capabilities.
1008
1001
  */
1009
1002
  interface CompanyFullProfileOpenTickets {
1010
1003
  items: Ticket[];
@@ -1325,20 +1318,13 @@ interface ConfigurationItemProfilePart<TItem> {
1325
1318
  items: TItem[];
1326
1319
  capped: boolean;
1327
1320
  }
1328
- /**
1329
- * The billing-product associations part (plan T7): the raw association rows
1330
- * (billingProductID FK) + the TYPED product-wall annotation. On a productless
1331
- * tenant (ww29: products.count = 0, live-verified — the wall that blocked
1332
- * every CI create) the association's product references cannot be
1333
- * enumerated: the served zone-facts quirk annotates the part
1334
- * (`blind: true` + `note`) — NEVER an error.
1335
- */
1321
+ /** The billing-product association rows returned by the scoped vendor query. */
1336
1322
  interface ConfigurationItemProfileProductAssociations {
1337
1323
  items: ConfigurationItemBillingProductAssociations[];
1338
1324
  capped: boolean;
1339
- /** True when the served zone facts pin the product wall for this tenant. */
1325
+ /** Compatibility flag: a successful association query is not classified blind by static create guidance. */
1340
1326
  blind: boolean;
1341
- /** The served zone-facts quirk text (present exactly when `blind`). */
1327
+ /** Optional visibility note; never inferred from a product create constraint or tenant inventory. */
1342
1328
  note?: string;
1343
1329
  }
1344
1330
  /** The full configuration-item profile in ONE call (<=6 bounded reads). */
@@ -1353,7 +1339,7 @@ interface ConfigurationItemProfile {
1353
1339
  productAssociations: ConfigurationItemProfileProductAssociations;
1354
1340
  /** The opt-in name/label section (issue #77) — present EXACTLY when `names: true` (the sibling keys are absent from the rows otherwise). */
1355
1341
  names?: CompositeNamesSection;
1356
- /** Per-part status: FK parts 'ok' | 'absent' (dangling/missing FK); list parts 'ok'; productAssociations 'ok' | 'blind' (the typed wall annotation). */
1342
+ /** Per-part status: FK parts 'ok' | 'absent' (dangling/missing FK); list parts 'ok'; productAssociations 'ok' on a successful scoped query ('blind' retained for compatibility). */
1357
1343
  parts: {
1358
1344
  ci: 'ok';
1359
1345
  type: 'ok' | 'absent';
@@ -32,7 +32,7 @@ import { L as Logger } from './logger-B1gYmFre.cjs';
32
32
  * queryBounded noteChars free-text cap (issue #61 — response-side only);
33
33
  * - docs/VENDOR-QUIRKS.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
34
34
  *
35
- * planHash: 546e9de78d62f2c30190c1bb82f89be73f9cc0a75d633d771956566c78f4efeb
35
+ * planHash: 94052c314d189d4b2fcf6bc842d983d4817c8410109074ed9505b682f4855790
36
36
  */
37
37
 
38
38
  /** One pinned blind-surface stamp (the result-time sentinel object). */
@@ -43,7 +43,7 @@ interface BlindSurfaceInfo {
43
43
  kind: 'unowned-blind' | 'fully-blind' | 'unfiltered-blind';
44
44
  /** The authority op that returns the record (the remedy the sentinel serves). */
45
45
  authority: string;
46
- /** The zone fact + remedy, LLM-consumer grade. */
46
+ /** The conditional visibility warning and remedy. */
47
47
  note: string;
48
48
  }
49
49
  /** The create-blocker class (issue #12 — the closed 9-set; the gate re-derives). */
@@ -994,17 +994,10 @@ interface CompanyFullProfilePart<TItem> {
994
994
  capped: boolean;
995
995
  }
996
996
  /**
997
- * The open-tickets part (plan T6): the filtered `tickets.query`
998
- * (companyID eq + status noteq 5). S12-B P1 settled the blind-surface probe
999
- * live: the tickets count/query surface is blind UNFILTERED on ww29 (0 before
1000
- * AND after a proven live create), but FILTERED tickets queries RETURN DATA
1001
- * (3 open tickets via a companyID+status filter). So an EMPTY answer degrades
1002
- * to the TYPED blind part (`blind: true` + the S12-C sentinel + the note)
1003
- * ONLY when the filter-aware `blindStampFor` predicate stamps THIS call — on
1004
- * the `unfiltered-blind` tickets surface a filtered empty answer is a TRUE
1005
- * zero (the company has no open tickets), never a sentinel; a non-empty
1006
- * answer is data and clears the flag. Never an error, never a misleading
1007
- * empty list.
997
+ * The open-tickets part uses the current closed-status semantics and a company filter.
998
+ * A conservative sentinel may annotate an empty result only when its filter-aware
999
+ * predicate covers the call. Non-empty data is never marked blind; an empty scoped
1000
+ * query does not establish tenant-wide absence or different zone capabilities.
1008
1001
  */
1009
1002
  interface CompanyFullProfileOpenTickets {
1010
1003
  items: Ticket[];
@@ -1325,20 +1318,13 @@ interface ConfigurationItemProfilePart<TItem> {
1325
1318
  items: TItem[];
1326
1319
  capped: boolean;
1327
1320
  }
1328
- /**
1329
- * The billing-product associations part (plan T7): the raw association rows
1330
- * (billingProductID FK) + the TYPED product-wall annotation. On a productless
1331
- * tenant (ww29: products.count = 0, live-verified — the wall that blocked
1332
- * every CI create) the association's product references cannot be
1333
- * enumerated: the served zone-facts quirk annotates the part
1334
- * (`blind: true` + `note`) — NEVER an error.
1335
- */
1321
+ /** The billing-product association rows returned by the scoped vendor query. */
1336
1322
  interface ConfigurationItemProfileProductAssociations {
1337
1323
  items: ConfigurationItemBillingProductAssociations[];
1338
1324
  capped: boolean;
1339
- /** True when the served zone facts pin the product wall for this tenant. */
1325
+ /** Compatibility flag: a successful association query is not classified blind by static create guidance. */
1340
1326
  blind: boolean;
1341
- /** The served zone-facts quirk text (present exactly when `blind`). */
1327
+ /** Optional visibility note; never inferred from a product create constraint or tenant inventory. */
1342
1328
  note?: string;
1343
1329
  }
1344
1330
  /** The full configuration-item profile in ONE call (<=6 bounded reads). */
@@ -1353,7 +1339,7 @@ interface ConfigurationItemProfile {
1353
1339
  productAssociations: ConfigurationItemProfileProductAssociations;
1354
1340
  /** The opt-in name/label section (issue #77) — present EXACTLY when `names: true` (the sibling keys are absent from the rows otherwise). */
1355
1341
  names?: CompositeNamesSection;
1356
- /** Per-part status: FK parts 'ok' | 'absent' (dangling/missing FK); list parts 'ok'; productAssociations 'ok' | 'blind' (the typed wall annotation). */
1342
+ /** Per-part status: FK parts 'ok' | 'absent' (dangling/missing FK); list parts 'ok'; productAssociations 'ok' on a successful scoped query ('blind' retained for compatibility). */
1357
1343
  parts: {
1358
1344
  ci: 'ok';
1359
1345
  type: 'ok' | 'absent';