node-autotask 0.86.0 → 0.88.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 (46) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/MCP_TOOL_CATALOG.json +152 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +714 -194
  5. package/dist/capabilities-data.js +713 -193
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-SZ33SCCI.cjs → chunk-AB326MJO.cjs} +200 -200
  9. package/dist/{chunk-BD4AUGCJ.cjs → chunk-CM5O672I.cjs} +5 -4
  10. package/dist/{chunk-23LTWBKP.cjs → chunk-ESKQAINP.cjs} +31 -30
  11. package/dist/{chunk-YX6SSS4I.cjs → chunk-GEFUSYH5.cjs} +739 -378
  12. package/dist/{chunk-ELZTECDS.js → chunk-K72PPAAD.js} +726 -365
  13. package/dist/{chunk-AZ54RMQR.js → chunk-LGOJ2HBH.js} +3 -2
  14. package/dist/{chunk-DVD7RZIB.js → chunk-QKRHKLVY.js} +2 -2
  15. package/dist/{chunk-EYRQUMA2.cjs → chunk-SHJ7EOBW.cjs} +3 -3
  16. package/dist/{chunk-7NKB4UXV.js → chunk-X6VWD6WW.js} +5 -4
  17. package/dist/{chunk-KYFJOIG4.js → chunk-ZADTVF6M.js} +3 -3
  18. package/dist/{index-B3zO78nP.d.ts → index-BFgZJsqx.d.ts} +19 -13
  19. package/dist/{index-CIgmz8qI.d.cts → index-D0KHVqoO.d.cts} +37 -3
  20. package/dist/{index-CIgmz8qI.d.ts → index-D0KHVqoO.d.ts} +37 -3
  21. package/dist/{index-C2p8D2mZ.d.cts → index-DsA1-2GA.d.cts} +19 -13
  22. package/dist/index.cjs +90 -87
  23. package/dist/index.d.cts +4 -3
  24. package/dist/index.d.ts +4 -3
  25. package/dist/index.js +9 -6
  26. package/dist/operations/index.cjs +53 -53
  27. package/dist/operations/index.d.cts +4 -4
  28. package/dist/operations/index.d.ts +4 -4
  29. package/dist/operations/index.js +3 -3
  30. package/dist/pool.cjs +13 -13
  31. package/dist/pool.d.cts +1 -1
  32. package/dist/pool.d.ts +1 -1
  33. package/dist/pool.js +5 -5
  34. package/dist/resources/index.cjs +28 -28
  35. package/dist/resources/index.d.cts +2 -2
  36. package/dist/resources/index.d.ts +2 -2
  37. package/dist/resources/index.js +4 -4
  38. package/dist/types/index.d.cts +1 -1
  39. package/dist/types/index.d.ts +1 -1
  40. package/dist/untrusted.cjs +11 -11
  41. package/dist/untrusted.d.cts +1 -1
  42. package/dist/untrusted.d.ts +1 -1
  43. package/dist/untrusted.js +1 -1
  44. package/docs/API.md +6 -2
  45. package/docs/VENDOR-QUIRKS.md +34 -17
  46. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunk23LTWBKP_cjs = require('./chunk-23LTWBKP.cjs');
3
+ var chunkESKQAINP_cjs = require('./chunk-ESKQAINP.cjs');
4
4
  require('./chunk-S5CH4H6H.cjs');
5
- var chunkSZ33SCCI_cjs = require('./chunk-SZ33SCCI.cjs');
6
- var chunkYX6SSS4I_cjs = require('./chunk-YX6SSS4I.cjs');
7
- require('./chunk-EYRQUMA2.cjs');
8
- var chunkBD4AUGCJ_cjs = require('./chunk-BD4AUGCJ.cjs');
5
+ var chunkAB326MJO_cjs = require('./chunk-AB326MJO.cjs');
6
+ var chunkGEFUSYH5_cjs = require('./chunk-GEFUSYH5.cjs');
7
+ require('./chunk-SHJ7EOBW.cjs');
8
+ var chunkCM5O672I_cjs = require('./chunk-CM5O672I.cjs');
9
9
  var fs = require('fs');
10
10
 
11
11
  var DEFAULT_NAMES = {
@@ -19,7 +19,7 @@ var ALIASES = {
19
19
  AUTOTASK_USERNAME: ["AUTOTASK_USER"]
20
20
  };
21
21
  function presenceError(name, source) {
22
- return new chunkYX6SSS4I_cjs.AutotaskConfigError(
22
+ return new chunkGEFUSYH5_cjs.AutotaskConfigError(
23
23
  `${source}: ${name} is not set (or is empty after shell-equivalent loading)`,
24
24
  {
25
25
  suggestedAction: `Set ${name} before running (see the "Credentials & env files" section of the README).`
@@ -27,8 +27,8 @@ function presenceError(name, source) {
27
27
  );
28
28
  }
29
29
  function shapeError(name, value, source) {
30
- return new chunkYX6SSS4I_cjs.AutotaskConfigError(
31
- `${source}: ${name} ${chunkYX6SSS4I_cjs.CREDENTIAL_ENV_LOAD_ACTION} [${chunkYX6SSS4I_cjs.credentialValueSummary(value)}]`,
30
+ return new chunkGEFUSYH5_cjs.AutotaskConfigError(
31
+ `${source}: ${name} ${chunkGEFUSYH5_cjs.CREDENTIAL_ENV_LOAD_ACTION} [${chunkGEFUSYH5_cjs.credentialValueSummary(value)}]`,
32
32
  {
33
33
  code: "INVALID_CREDENTIAL_SHAPE",
34
34
  suggestedAction: "Load the credential file with the shell (`set -a; . ./.env; set +a`), use loadAutotaskCredentialEnvFile(path), or fix the quoted/contaminated value; no request was sent."
@@ -52,7 +52,7 @@ function parseCredentialEnvText(text) {
52
52
  }
53
53
  function readCredentialEnvFile(path) {
54
54
  if (!fs.existsSync(path)) {
55
- throw new chunkYX6SSS4I_cjs.AutotaskConfigError(`credential env file not found: ${path}`, {
55
+ throw new chunkGEFUSYH5_cjs.AutotaskConfigError(`credential env file not found: ${path}`, {
56
56
  suggestedAction: "Check the path, or create the file with the credentials your host needs."
57
57
  });
58
58
  }
@@ -98,7 +98,7 @@ function pickCredentials(values, names, source, canonical) {
98
98
  if (entry === void 0) continue;
99
99
  const value = normalizeCredentialValue(entry.raw);
100
100
  if (value.length === 0) throw presenceError(name, source);
101
- if (chunkYX6SSS4I_cjs.credentialShapeProblem(value, { skipEdgeWhitespace: true }) !== void 0) {
101
+ if (chunkGEFUSYH5_cjs.credentialShapeProblem(value, { skipEdgeWhitespace: true }) !== void 0) {
102
102
  throw shapeError(name, value, source);
103
103
  }
104
104
  out[name] = value;
@@ -122,7 +122,7 @@ var DOCTOR_ENTITIES = [
122
122
  { key: "resources", label: "Resources", path: "/V1.0/Resources" }
123
123
  ];
124
124
  var present = (v) => typeof v === "string" && v.trim().length > 0;
125
- var knownZone = (z) => typeof z === "string" && chunkYX6SSS4I_cjs.ZONES.includes(z);
125
+ var knownZone = (z) => typeof z === "string" && chunkGEFUSYH5_cjs.ZONES.includes(z);
126
126
  function doctorConfigStep(source, origin = "config") {
127
127
  const fields = ["apiIntegrationCode", "userName", "secret", "zone", "baseUrl", "impersonationResourceId"];
128
128
  const sources = {};
@@ -150,7 +150,7 @@ function doctorConfigStep(source, origin = "config") {
150
150
  } else if (knownZone(zone)) {
151
151
  let url;
152
152
  try {
153
- url = chunkYX6SSS4I_cjs.zoneUrl(zone);
153
+ url = chunkGEFUSYH5_cjs.zoneUrl(zone);
154
154
  zoneInfo = { provided: true, resolvable: true, zone, baseUrlHost: new URL(url).host };
155
155
  } catch {
156
156
  zoneInfo = { provided: true, resolvable: false, zone };
@@ -159,13 +159,13 @@ function doctorConfigStep(source, origin = "config") {
159
159
  zoneInfo = { provided: true, resolvable: false, zone };
160
160
  }
161
161
  } else {
162
- zoneInfo = { provided: false, resolvable: true, zone: chunkYX6SSS4I_cjs.DEFAULT_ZONE, baseUrlHost: new URL(chunkYX6SSS4I_cjs.zoneUrl(chunkYX6SSS4I_cjs.DEFAULT_ZONE)).host };
162
+ zoneInfo = { provided: false, resolvable: true, zone: chunkGEFUSYH5_cjs.DEFAULT_ZONE, baseUrlHost: new URL(chunkGEFUSYH5_cjs.zoneUrl(chunkGEFUSYH5_cjs.DEFAULT_ZONE)).host };
163
163
  }
164
164
  const problems = [];
165
165
  if (missing.length > 0) problems.push(`missing credential(s): ${missing.join(", ")}`);
166
166
  if (zoneInfo.provided && !zoneInfo.resolvable) {
167
167
  problems.push(
168
- source.baseUrl !== void 0 && present(source.baseUrl) ? "baseUrl is not a valid http(s) URL" : source.zone === "other" ? 'zone "other" requires a baseUrl' : `zone "${zone}" is not a known zone (the catalog has ${chunkYX6SSS4I_cjs.ZONES.length} zones)`
168
+ source.baseUrl !== void 0 && present(source.baseUrl) ? "baseUrl is not a valid http(s) URL" : source.zone === "other" ? 'zone "other" requires a baseUrl' : `zone "${zone}" is not a known zone (the catalog has ${chunkGEFUSYH5_cjs.ZONES.length} zones)`
169
169
  );
170
170
  }
171
171
  if (problems.length > 0) {
@@ -193,20 +193,20 @@ async function timeCheck(id, fn) {
193
193
  const out = await fn();
194
194
  return { check: { id, status: out.status, message: out.message, ...out.hint !== void 0 ? { hint: out.hint } : {}, durationMs: Date.now() - started }, value: out.value };
195
195
  } catch (err) {
196
- const code = chunkYX6SSS4I_cjs.isAutotaskError(err) ? err.code : "UNEXPECTED";
196
+ const code = chunkGEFUSYH5_cjs.isAutotaskError(err) ? err.code : "UNEXPECTED";
197
197
  return {
198
198
  check: {
199
199
  id,
200
200
  status: "fail",
201
201
  message: `check failed unexpectedly (machine code ${code})`,
202
- hint: chunkYX6SSS4I_cjs.isAutotaskError(err) ? err.suggestedAction : void 0,
202
+ hint: chunkGEFUSYH5_cjs.isAutotaskError(err) ? err.suggestedAction : void 0,
203
203
  durationMs: Date.now() - started
204
204
  }
205
205
  };
206
206
  }
207
207
  }
208
208
  function failFrom(err, what) {
209
- if (err instanceof chunkYX6SSS4I_cjs.RateLimitError && err.code === "RATE_LIMITED_COOLDOWN") {
209
+ if (err instanceof chunkGEFUSYH5_cjs.RateLimitError && err.code === "RATE_LIMITED_COOLDOWN") {
210
210
  return {
211
211
  status: "fail",
212
212
  message: `${what} \u2014 refused LOCALLY by the tenant 429 cooldown gate (the call was NOT sent)`,
@@ -252,7 +252,7 @@ function makeWire(run, timeoutMs) {
252
252
  });
253
253
  return { body };
254
254
  } catch (err) {
255
- if (chunkYX6SSS4I_cjs.isAutotaskError(err)) return { error: err };
255
+ if (chunkGEFUSYH5_cjs.isAutotaskError(err)) return { error: err };
256
256
  throw err;
257
257
  }
258
258
  };
@@ -311,7 +311,7 @@ async function checkReads(run, zoneUnavailable) {
311
311
  const id = `read.${entity.key}`;
312
312
  const result = await timeCheck(id, async () => {
313
313
  if (zoneUnavailable) return skip(ZONE_UNAVAILABLE_SKIP);
314
- const req = chunkYX6SSS4I_cjs.buildQueryRequest(cfg.baseUrl, entity.path, { maxRecords: 1 });
314
+ const req = chunkGEFUSYH5_cjs.buildQueryRequest(cfg.baseUrl, entity.path, { maxRecords: 1 });
315
315
  const out = await run.wire(req.method, req.path, `doctor.${id}`, { body: req.body, idempotent: req.idempotent });
316
316
  if (out.error) {
317
317
  const f = failFrom(out.error, `read access to ${entity.label}`);
@@ -395,17 +395,20 @@ function outcome(state, retryable, code, httpStatus) {
395
395
  return httpStatus === void 0 ? { state, retryable, code } : { state, retryable, code, httpStatus };
396
396
  }
397
397
  function vendorErrorsNonEmpty(vendorError) {
398
- const entries = chunkYX6SSS4I_cjs.parseVendorErrors(vendorError);
398
+ const entries = chunkGEFUSYH5_cjs.parseVendorErrors(vendorError);
399
399
  return entries !== void 0 && entries.length > 0;
400
400
  }
401
401
  function classifyWriteOutcome(error) {
402
- if (chunkYX6SSS4I_cjs.isAutotaskError(error)) {
402
+ if (chunkGEFUSYH5_cjs.isAutotaskError(error)) {
403
403
  const rawStatus = error.httpStatus;
404
404
  const httpStatus = typeof rawStatus === "number" ? rawStatus : void 0;
405
405
  const statusMalformed = rawStatus !== void 0 && httpStatus === void 0;
406
406
  if (error.notSent === true) {
407
407
  return outcome("failed", error.retryable, error.code, httpStatus);
408
408
  }
409
+ if (error instanceof chunkGEFUSYH5_cjs.MaintenanceError && httpStatus !== void 0 && !error.retryable) {
410
+ return outcome("unknown", false, error.code, httpStatus);
411
+ }
409
412
  if (httpStatus !== void 0 && httpStatus >= 400 && httpStatus <= 499) {
410
413
  return outcome("failed", httpStatus === 429, error.code, httpStatus);
411
414
  }
@@ -425,7 +428,7 @@ function classifyWriteOutcome(error) {
425
428
  return outcome("failed", error.retryable, error.code);
426
429
  }
427
430
  }
428
- const typed = chunkYX6SSS4I_cjs.isAutotaskError(error);
431
+ const typed = chunkGEFUSYH5_cjs.isAutotaskError(error);
429
432
  const status = typed && typeof error.httpStatus === "number" ? error.httpStatus : void 0;
430
433
  const code = typed ? error.code : error instanceof Error ? error.name : "UNKNOWN";
431
434
  return outcome("unknown", false, code, status);
@@ -433,263 +436,263 @@ function classifyWriteOutcome(error) {
433
436
 
434
437
  Object.defineProperty(exports, "AutotaskClient", {
435
438
  enumerable: true,
436
- get: function () { return chunk23LTWBKP_cjs.AutotaskClient; }
439
+ get: function () { return chunkESKQAINP_cjs.AutotaskClient; }
437
440
  });
438
441
  Object.defineProperty(exports, "AuthenticateResource", {
439
442
  enumerable: true,
440
- get: function () { return chunkSZ33SCCI_cjs.AuthenticateResource; }
443
+ get: function () { return chunkAB326MJO_cjs.AuthenticateResource; }
441
444
  });
442
445
  Object.defineProperty(exports, "ConfigurationItemsResource", {
443
446
  enumerable: true,
444
- get: function () { return chunkSZ33SCCI_cjs.ConfigurationItemsResource; }
447
+ get: function () { return chunkAB326MJO_cjs.ConfigurationItemsResource; }
445
448
  });
446
449
  Object.defineProperty(exports, "ContactsResource", {
447
450
  enumerable: true,
448
- get: function () { return chunkSZ33SCCI_cjs.ContactsResource; }
451
+ get: function () { return chunkAB326MJO_cjs.ContactsResource; }
449
452
  });
450
453
  Object.defineProperty(exports, "EntityInformationResource", {
451
454
  enumerable: true,
452
- get: function () { return chunkSZ33SCCI_cjs.EntityInformationResource; }
455
+ get: function () { return chunkAB326MJO_cjs.EntityInformationResource; }
453
456
  });
454
457
  Object.defineProperty(exports, "InventoryProductsResource", {
455
458
  enumerable: true,
456
- get: function () { return chunkSZ33SCCI_cjs.InventoryProductsResource; }
459
+ get: function () { return chunkAB326MJO_cjs.InventoryProductsResource; }
457
460
  });
458
461
  Object.defineProperty(exports, "ModulesResource", {
459
462
  enumerable: true,
460
- get: function () { return chunkSZ33SCCI_cjs.ModulesResource; }
463
+ get: function () { return chunkAB326MJO_cjs.ModulesResource; }
461
464
  });
462
465
  Object.defineProperty(exports, "QuotesResource", {
463
466
  enumerable: true,
464
- get: function () { return chunkSZ33SCCI_cjs.QuotesResource; }
467
+ get: function () { return chunkAB326MJO_cjs.QuotesResource; }
465
468
  });
466
469
  Object.defineProperty(exports, "ResourceTimeOffAdditionalResource", {
467
470
  enumerable: true,
468
- get: function () { return chunkSZ33SCCI_cjs.ResourceTimeOffAdditionalResource; }
471
+ get: function () { return chunkAB326MJO_cjs.ResourceTimeOffAdditionalResource; }
469
472
  });
470
473
  Object.defineProperty(exports, "ResourceTimeOffBalancesResource", {
471
474
  enumerable: true,
472
- get: function () { return chunkSZ33SCCI_cjs.ResourceTimeOffBalancesResource; }
475
+ get: function () { return chunkAB326MJO_cjs.ResourceTimeOffBalancesResource; }
473
476
  });
474
477
  Object.defineProperty(exports, "ResourcesResource", {
475
478
  enumerable: true,
476
- get: function () { return chunkSZ33SCCI_cjs.ResourcesResource; }
479
+ get: function () { return chunkAB326MJO_cjs.ResourcesResource; }
477
480
  });
478
481
  Object.defineProperty(exports, "ServiceCallsResource", {
479
482
  enumerable: true,
480
- get: function () { return chunkSZ33SCCI_cjs.ServiceCallsResource; }
483
+ get: function () { return chunkAB326MJO_cjs.ServiceCallsResource; }
481
484
  });
482
485
  Object.defineProperty(exports, "ThresholdInformationResource", {
483
486
  enumerable: true,
484
- get: function () { return chunkSZ33SCCI_cjs.ThresholdInformationResource; }
487
+ get: function () { return chunkAB326MJO_cjs.ThresholdInformationResource; }
485
488
  });
486
489
  Object.defineProperty(exports, "TicketChargesResource", {
487
490
  enumerable: true,
488
- get: function () { return chunkSZ33SCCI_cjs.TicketChargesResource; }
491
+ get: function () { return chunkAB326MJO_cjs.TicketChargesResource; }
489
492
  });
490
493
  Object.defineProperty(exports, "TicketsResource", {
491
494
  enumerable: true,
492
- get: function () { return chunkSZ33SCCI_cjs.TicketsResource; }
495
+ get: function () { return chunkAB326MJO_cjs.TicketsResource; }
493
496
  });
494
497
  Object.defineProperty(exports, "TimeOffRequestsResource", {
495
498
  enumerable: true,
496
- get: function () { return chunkSZ33SCCI_cjs.TimeOffRequestsResource; }
499
+ get: function () { return chunkAB326MJO_cjs.TimeOffRequestsResource; }
497
500
  });
498
501
  Object.defineProperty(exports, "VersionInformationResource", {
499
502
  enumerable: true,
500
- get: function () { return chunkSZ33SCCI_cjs.VersionInformationResource; }
503
+ get: function () { return chunkAB326MJO_cjs.VersionInformationResource; }
501
504
  });
502
505
  Object.defineProperty(exports, "VersionResource", {
503
506
  enumerable: true,
504
- get: function () { return chunkSZ33SCCI_cjs.VersionResource; }
507
+ get: function () { return chunkAB326MJO_cjs.VersionResource; }
505
508
  });
506
509
  Object.defineProperty(exports, "ZoneInformationResource", {
507
510
  enumerable: true,
508
- get: function () { return chunkSZ33SCCI_cjs.ZoneInformationResource; }
511
+ get: function () { return chunkAB326MJO_cjs.ZoneInformationResource; }
509
512
  });
510
513
  Object.defineProperty(exports, "AutotaskAbortError", {
511
514
  enumerable: true,
512
- get: function () { return chunkYX6SSS4I_cjs.AutotaskAbortError; }
515
+ get: function () { return chunkGEFUSYH5_cjs.AutotaskAbortError; }
513
516
  });
514
517
  Object.defineProperty(exports, "AutotaskConfigError", {
515
518
  enumerable: true,
516
- get: function () { return chunkYX6SSS4I_cjs.AutotaskConfigError; }
519
+ get: function () { return chunkGEFUSYH5_cjs.AutotaskConfigError; }
517
520
  });
518
521
  Object.defineProperty(exports, "AutotaskError", {
519
522
  enumerable: true,
520
- get: function () { return chunkYX6SSS4I_cjs.AutotaskError; }
523
+ get: function () { return chunkGEFUSYH5_cjs.AutotaskError; }
521
524
  });
522
525
  Object.defineProperty(exports, "AutotaskNetworkError", {
523
526
  enumerable: true,
524
- get: function () { return chunkYX6SSS4I_cjs.AutotaskNetworkError; }
527
+ get: function () { return chunkGEFUSYH5_cjs.AutotaskNetworkError; }
525
528
  });
526
529
  Object.defineProperty(exports, "AutotaskTimeoutError", {
527
530
  enumerable: true,
528
- get: function () { return chunkYX6SSS4I_cjs.AutotaskTimeoutError; }
531
+ get: function () { return chunkGEFUSYH5_cjs.AutotaskTimeoutError; }
529
532
  });
530
533
  Object.defineProperty(exports, "CREDENTIAL_SHAPE_POINTER", {
531
534
  enumerable: true,
532
- get: function () { return chunkYX6SSS4I_cjs.CREDENTIAL_SHAPE_POINTER; }
535
+ get: function () { return chunkGEFUSYH5_cjs.CREDENTIAL_SHAPE_POINTER; }
533
536
  });
534
537
  Object.defineProperty(exports, "CompaniesResource", {
535
538
  enumerable: true,
536
- get: function () { return chunkYX6SSS4I_cjs.CompaniesResource; }
539
+ get: function () { return chunkGEFUSYH5_cjs.CompaniesResource; }
537
540
  });
538
541
  Object.defineProperty(exports, "ConfirmationRequiredError", {
539
542
  enumerable: true,
540
- get: function () { return chunkYX6SSS4I_cjs.ConfirmationRequiredError; }
543
+ get: function () { return chunkGEFUSYH5_cjs.ConfirmationRequiredError; }
541
544
  });
542
545
  Object.defineProperty(exports, "ConflictError", {
543
546
  enumerable: true,
544
- get: function () { return chunkYX6SSS4I_cjs.ConflictError; }
547
+ get: function () { return chunkGEFUSYH5_cjs.ConflictError; }
545
548
  });
546
549
  Object.defineProperty(exports, "ContractsResource", {
547
550
  enumerable: true,
548
- get: function () { return chunkYX6SSS4I_cjs.ContractsResource; }
551
+ get: function () { return chunkGEFUSYH5_cjs.ContractsResource; }
549
552
  });
550
553
  Object.defineProperty(exports, "DeleteBoundaryError", {
551
554
  enumerable: true,
552
- get: function () { return chunkYX6SSS4I_cjs.DeleteBoundaryError; }
555
+ get: function () { return chunkGEFUSYH5_cjs.DeleteBoundaryError; }
553
556
  });
554
557
  Object.defineProperty(exports, "EmptyResponseError", {
555
558
  enumerable: true,
556
- get: function () { return chunkYX6SSS4I_cjs.EmptyResponseError; }
559
+ get: function () { return chunkGEFUSYH5_cjs.EmptyResponseError; }
557
560
  });
558
561
  Object.defineProperty(exports, "GenericResource", {
559
562
  enumerable: true,
560
- get: function () { return chunkYX6SSS4I_cjs.GenericResource; }
563
+ get: function () { return chunkGEFUSYH5_cjs.GenericResource; }
561
564
  });
562
565
  Object.defineProperty(exports, "HostPolicyDeniedError", {
563
566
  enumerable: true,
564
- get: function () { return chunkYX6SSS4I_cjs.HostPolicyDeniedError; }
567
+ get: function () { return chunkGEFUSYH5_cjs.HostPolicyDeniedError; }
565
568
  });
566
569
  Object.defineProperty(exports, "InvoicesResource", {
567
570
  enumerable: true,
568
- get: function () { return chunkYX6SSS4I_cjs.InvoicesResource; }
571
+ get: function () { return chunkGEFUSYH5_cjs.InvoicesResource; }
569
572
  });
570
573
  Object.defineProperty(exports, "MIN_PREFIX_SUMMARY_LENGTH", {
571
574
  enumerable: true,
572
- get: function () { return chunkYX6SSS4I_cjs.MIN_PREFIX_SUMMARY_LENGTH; }
575
+ get: function () { return chunkGEFUSYH5_cjs.MIN_PREFIX_SUMMARY_LENGTH; }
573
576
  });
574
577
  Object.defineProperty(exports, "MaintenanceError", {
575
578
  enumerable: true,
576
- get: function () { return chunkYX6SSS4I_cjs.MaintenanceError; }
579
+ get: function () { return chunkGEFUSYH5_cjs.MaintenanceError; }
577
580
  });
578
581
  Object.defineProperty(exports, "MarkerUnsafeIdError", {
579
582
  enumerable: true,
580
- get: function () { return chunkYX6SSS4I_cjs.MarkerUnsafeIdError; }
583
+ get: function () { return chunkGEFUSYH5_cjs.MarkerUnsafeIdError; }
581
584
  });
582
585
  Object.defineProperty(exports, "MoveRefusedError", {
583
586
  enumerable: true,
584
- get: function () { return chunkYX6SSS4I_cjs.MoveRefusedError; }
587
+ get: function () { return chunkGEFUSYH5_cjs.MoveRefusedError; }
585
588
  });
586
589
  Object.defineProperty(exports, "NotFoundError", {
587
590
  enumerable: true,
588
- get: function () { return chunkYX6SSS4I_cjs.NotFoundError; }
591
+ get: function () { return chunkGEFUSYH5_cjs.NotFoundError; }
589
592
  });
590
593
  Object.defineProperty(exports, "OperationNotSupportedError", {
591
594
  enumerable: true,
592
- get: function () { return chunkYX6SSS4I_cjs.OperationNotSupportedError; }
595
+ get: function () { return chunkGEFUSYH5_cjs.OperationNotSupportedError; }
593
596
  });
594
597
  Object.defineProperty(exports, "PaginationLimitError", {
595
598
  enumerable: true,
596
- get: function () { return chunkYX6SSS4I_cjs.PaginationLimitError; }
599
+ get: function () { return chunkGEFUSYH5_cjs.PaginationLimitError; }
597
600
  });
598
601
  Object.defineProperty(exports, "QueryTooLongError", {
599
602
  enumerable: true,
600
- get: function () { return chunkYX6SSS4I_cjs.QueryTooLongError; }
603
+ get: function () { return chunkGEFUSYH5_cjs.QueryTooLongError; }
601
604
  });
602
605
  Object.defineProperty(exports, "RateLimitError", {
603
606
  enumerable: true,
604
- get: function () { return chunkYX6SSS4I_cjs.RateLimitError; }
607
+ get: function () { return chunkGEFUSYH5_cjs.RateLimitError; }
605
608
  });
606
609
  Object.defineProperty(exports, "RecoveryTruncatedError", {
607
610
  enumerable: true,
608
- get: function () { return chunkYX6SSS4I_cjs.RecoveryTruncatedError; }
611
+ get: function () { return chunkGEFUSYH5_cjs.RecoveryTruncatedError; }
609
612
  });
610
613
  Object.defineProperty(exports, "ResolutionError", {
611
614
  enumerable: true,
612
- get: function () { return chunkYX6SSS4I_cjs.ResolutionError; }
615
+ get: function () { return chunkGEFUSYH5_cjs.ResolutionError; }
613
616
  });
614
617
  Object.defineProperty(exports, "ResponseRejectedError", {
615
618
  enumerable: true,
616
- get: function () { return chunkYX6SSS4I_cjs.ResponseRejectedError; }
619
+ get: function () { return chunkGEFUSYH5_cjs.ResponseRejectedError; }
617
620
  });
618
621
  Object.defineProperty(exports, "SIMPLE_RESOURCES", {
619
622
  enumerable: true,
620
- get: function () { return chunkYX6SSS4I_cjs.SIMPLE_RESOURCES; }
623
+ get: function () { return chunkGEFUSYH5_cjs.SIMPLE_RESOURCES; }
621
624
  });
622
625
  Object.defineProperty(exports, "ScopeRequiredError", {
623
626
  enumerable: true,
624
- get: function () { return chunkYX6SSS4I_cjs.ScopeRequiredError; }
627
+ get: function () { return chunkGEFUSYH5_cjs.ScopeRequiredError; }
625
628
  });
626
629
  Object.defineProperty(exports, "StaleObjectError", {
627
630
  enumerable: true,
628
- get: function () { return chunkYX6SSS4I_cjs.StaleObjectError; }
631
+ get: function () { return chunkGEFUSYH5_cjs.StaleObjectError; }
629
632
  });
630
633
  Object.defineProperty(exports, "TimeEntriesResource", {
631
634
  enumerable: true,
632
- get: function () { return chunkYX6SSS4I_cjs.TimeEntriesResource; }
635
+ get: function () { return chunkGEFUSYH5_cjs.TimeEntriesResource; }
633
636
  });
634
637
  Object.defineProperty(exports, "TtlCache", {
635
638
  enumerable: true,
636
- get: function () { return chunkYX6SSS4I_cjs.TtlCache; }
639
+ get: function () { return chunkGEFUSYH5_cjs.TtlCache; }
637
640
  });
638
641
  Object.defineProperty(exports, "UNSCOPED_WALK_THRESHOLD", {
639
642
  enumerable: true,
640
- get: function () { return chunkYX6SSS4I_cjs.UNSCOPED_WALK_THRESHOLD; }
643
+ get: function () { return chunkGEFUSYH5_cjs.UNSCOPED_WALK_THRESHOLD; }
641
644
  });
642
645
  Object.defineProperty(exports, "UnexpectedContentTypeError", {
643
646
  enumerable: true,
644
- get: function () { return chunkYX6SSS4I_cjs.UnexpectedContentTypeError; }
647
+ get: function () { return chunkGEFUSYH5_cjs.UnexpectedContentTypeError; }
645
648
  });
646
649
  Object.defineProperty(exports, "ZONES", {
647
650
  enumerable: true,
648
- get: function () { return chunkYX6SSS4I_cjs.ZONES; }
651
+ get: function () { return chunkGEFUSYH5_cjs.ZONES; }
649
652
  });
650
653
  Object.defineProperty(exports, "credentialShapeProblem", {
651
654
  enumerable: true,
652
- get: function () { return chunkYX6SSS4I_cjs.credentialShapeProblem; }
655
+ get: function () { return chunkGEFUSYH5_cjs.credentialShapeProblem; }
653
656
  });
654
657
  Object.defineProperty(exports, "credentialValueSummary", {
655
658
  enumerable: true,
656
- get: function () { return chunkYX6SSS4I_cjs.credentialValueSummary; }
659
+ get: function () { return chunkGEFUSYH5_cjs.credentialValueSummary; }
657
660
  });
658
661
  Object.defineProperty(exports, "errorFromStatus", {
659
662
  enumerable: true,
660
- get: function () { return chunkYX6SSS4I_cjs.errorFromStatus; }
663
+ get: function () { return chunkGEFUSYH5_cjs.errorFromStatus; }
661
664
  });
662
665
  Object.defineProperty(exports, "formatVendorDetail", {
663
666
  enumerable: true,
664
- get: function () { return chunkYX6SSS4I_cjs.formatVendorDetail; }
667
+ get: function () { return chunkGEFUSYH5_cjs.formatVendorDetail; }
665
668
  });
666
669
  Object.defineProperty(exports, "isAutotaskError", {
667
670
  enumerable: true,
668
- get: function () { return chunkYX6SSS4I_cjs.isAutotaskError; }
671
+ get: function () { return chunkGEFUSYH5_cjs.isAutotaskError; }
669
672
  });
670
673
  Object.defineProperty(exports, "isDeterministicVendor500", {
671
674
  enumerable: true,
672
- get: function () { return chunkYX6SSS4I_cjs.isDeterministicVendor500; }
675
+ get: function () { return chunkGEFUSYH5_cjs.isDeterministicVendor500; }
673
676
  });
674
677
  Object.defineProperty(exports, "mergeDetails", {
675
678
  enumerable: true,
676
- get: function () { return chunkYX6SSS4I_cjs.mergeDetails; }
679
+ get: function () { return chunkGEFUSYH5_cjs.mergeDetails; }
677
680
  });
678
681
  Object.defineProperty(exports, "nextActionFor", {
679
682
  enumerable: true,
680
- get: function () { return chunkYX6SSS4I_cjs.nextActionFor; }
683
+ get: function () { return chunkGEFUSYH5_cjs.nextActionFor; }
681
684
  });
682
685
  Object.defineProperty(exports, "parseVendorErrors", {
683
686
  enumerable: true,
684
- get: function () { return chunkYX6SSS4I_cjs.parseVendorErrors; }
687
+ get: function () { return chunkGEFUSYH5_cjs.parseVendorErrors; }
685
688
  });
686
689
  Object.defineProperty(exports, "NoopLogger", {
687
690
  enumerable: true,
688
- get: function () { return chunkBD4AUGCJ_cjs.NoopLogger; }
691
+ get: function () { return chunkCM5O672I_cjs.NoopLogger; }
689
692
  });
690
693
  Object.defineProperty(exports, "REDACTED", {
691
694
  enumerable: true,
692
- get: function () { return chunkBD4AUGCJ_cjs.REDACTED; }
695
+ get: function () { return chunkCM5O672I_cjs.REDACTED; }
693
696
  });
694
697
  exports.DOCTOR_CHECK_TIMEOUT_MS = DOCTOR_CHECK_TIMEOUT_MS;
695
698
  exports.classifyWriteOutcome = classifyWriteOutcome;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-C2p8D2mZ.cjs';
2
- export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-C2p8D2mZ.cjs';
1
+ import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-DsA1-2GA.cjs';
2
+ export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-DsA1-2GA.cjs';
3
3
  export { N as NoopLogger, R as REDACTED } from './logger-B1gYmFre.cjs';
4
- export { A as AuditEvent, Q as QueryParams } from './index-CIgmz8qI.cjs';
4
+ export { A as AuditEvent, Q as QueryParams } from './index-D0KHVqoO.cjs';
5
5
 
6
6
  declare class AutotaskNetworkError extends AutotaskError {
7
7
  constructor(message: string, options?: AutotaskErrorOptions);
@@ -567,6 +567,7 @@ declare function runDoctor(client: AutotaskClient, opts?: DoctorOptions): Promis
567
567
  * `failed`, `retryable` follows the error's own flag (the maintenance
568
568
  * refusal: retry the same call after the window; the cooldown's:
569
569
  * `retryable: false` — wait, then narrow the query first).
570
+ * A non-retryable maintenance response is ambiguous even at a 4xx status.
570
571
  * 2. `httpStatus` in 400..499 except 429 → `failed`, never retryable
571
572
  * (the vendor answered; the write is definitely not applied).
572
573
  * 3. `httpStatus === 429` → `failed`, retryable (a pre-processing refusal —
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-B3zO78nP.js';
2
- export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-B3zO78nP.js';
1
+ import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-BFgZJsqx.js';
2
+ export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-BFgZJsqx.js';
3
3
  export { N as NoopLogger, R as REDACTED } from './logger-B1gYmFre.js';
4
- export { A as AuditEvent, Q as QueryParams } from './index-CIgmz8qI.js';
4
+ export { A as AuditEvent, Q as QueryParams } from './index-D0KHVqoO.js';
5
5
 
6
6
  declare class AutotaskNetworkError extends AutotaskError {
7
7
  constructor(message: string, options?: AutotaskErrorOptions);
@@ -567,6 +567,7 @@ declare function runDoctor(client: AutotaskClient, opts?: DoctorOptions): Promis
567
567
  * `failed`, `retryable` follows the error's own flag (the maintenance
568
568
  * refusal: retry the same call after the window; the cooldown's:
569
569
  * `retryable: false` — wait, then narrow the query first).
570
+ * A non-retryable maintenance response is ambiguous even at a 4xx status.
570
571
  * 2. `httpStatus` in 400..499 except 429 → `failed`, never retryable
571
572
  * (the vendor answered; the write is definitely not applied).
572
573
  * 3. `httpStatus === 429` → `failed`, retryable (a pre-processing refusal —
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- export { AutotaskClient } from './chunk-AZ54RMQR.js';
1
+ export { AutotaskClient } from './chunk-LGOJ2HBH.js';
2
2
  import './chunk-YL6HXU33.js';
3
- export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from './chunk-DVD7RZIB.js';
4
- import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-ELZTECDS.js';
5
- export { AutotaskAbortError, AutotaskConfigError, AutotaskError, AutotaskNetworkError, AutotaskTimeoutError, CREDENTIAL_SHAPE_POINTER, CompaniesResource, ConfirmationRequiredError, ConflictError, ContractsResource, DeleteBoundaryError, EmptyResponseError, GenericResource, HostPolicyDeniedError, InvoicesResource, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PaginationLimitError, QueryTooLongError, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, SIMPLE_RESOURCES, ScopeRequiredError, StaleObjectError, TimeEntriesResource, TtlCache, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, ZONES, credentialShapeProblem, credentialValueSummary, errorFromStatus, formatVendorDetail, isAutotaskError, isDeterministicVendor500, mergeDetails, nextActionFor, parseVendorErrors } from './chunk-ELZTECDS.js';
6
- import './chunk-KYFJOIG4.js';
7
- export { NoopLogger, REDACTED } from './chunk-7NKB4UXV.js';
3
+ export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from './chunk-QKRHKLVY.js';
4
+ import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, MaintenanceError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-K72PPAAD.js';
5
+ export { AutotaskAbortError, AutotaskConfigError, AutotaskError, AutotaskNetworkError, AutotaskTimeoutError, CREDENTIAL_SHAPE_POINTER, CompaniesResource, ConfirmationRequiredError, ConflictError, ContractsResource, DeleteBoundaryError, EmptyResponseError, GenericResource, HostPolicyDeniedError, InvoicesResource, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PaginationLimitError, QueryTooLongError, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, SIMPLE_RESOURCES, ScopeRequiredError, StaleObjectError, TimeEntriesResource, TtlCache, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, ZONES, credentialShapeProblem, credentialValueSummary, errorFromStatus, formatVendorDetail, isAutotaskError, isDeterministicVendor500, mergeDetails, nextActionFor, parseVendorErrors } from './chunk-K72PPAAD.js';
6
+ import './chunk-ZADTVF6M.js';
7
+ export { NoopLogger, REDACTED } from './chunk-X6VWD6WW.js';
8
8
  import { existsSync, readFileSync } from 'fs';
9
9
 
10
10
  var DEFAULT_NAMES = {
@@ -405,6 +405,9 @@ function classifyWriteOutcome(error) {
405
405
  if (error.notSent === true) {
406
406
  return outcome("failed", error.retryable, error.code, httpStatus);
407
407
  }
408
+ if (error instanceof MaintenanceError && httpStatus !== void 0 && !error.retryable) {
409
+ return outcome("unknown", false, error.code, httpStatus);
410
+ }
408
411
  if (httpStatus !== void 0 && httpStatus >= 400 && httpStatus <= 499) {
409
412
  return outcome("failed", httpStatus === 429, error.code, httpStatus);
410
413
  }