node-autotask 0.67.0 → 0.68.1

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 +16 -0
  2. package/MCP_TOOL_CATALOG.json +28 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +107 -8
  5. package/dist/capabilities-data.js +106 -7
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-C7M7PXLW.cjs → chunk-2D2KJOX2.cjs} +173 -173
  9. package/dist/{chunk-4GH73U2I.js → chunk-JCMXQUIC.js} +3 -3
  10. package/dist/{chunk-54L7KKUD.cjs → chunk-KRQONGLD.cjs} +31 -31
  11. package/dist/{chunk-UCPSQ6GN.js → chunk-LOLWHPTJ.js} +2 -2
  12. package/dist/{chunk-EXLJHU5W.js → chunk-S6HEIGGM.js} +2 -2
  13. package/dist/{chunk-7GBOQ7YA.cjs → chunk-SGH7F2CH.cjs} +3 -3
  14. package/dist/{chunk-VO4ABDZA.cjs → chunk-XKIRTR37.cjs} +2628 -2311
  15. package/dist/{chunk-N7WB65IS.js → chunk-YYHCZRUH.js} +2623 -2307
  16. package/dist/{index-CYlKHo5N.d.ts → index-DQ08uOH0.d.ts} +45 -5
  17. package/dist/{index-D_1wP3Je.d.cts → index-mIsdpO5d.d.cts} +45 -5
  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 +2 -2
  24. package/dist/operations/index.d.ts +2 -2
  25. package/dist/operations/index.js +2 -2
  26. package/dist/pool.cjs +29 -11
  27. package/dist/pool.js +25 -7
  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 +3 -3
  33. package/docs/VENDOR-QUIRKS.md +47 -0
  34. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkVO4ABDZA_cjs = require('../chunk-VO4ABDZA.cjs');
4
- require('../chunk-7GBOQ7YA.cjs');
3
+ var chunkXKIRTR37_cjs = require('../chunk-XKIRTR37.cjs');
4
+ require('../chunk-SGH7F2CH.cjs');
5
5
  var chunkBD4AUGCJ_cjs = require('../chunk-BD4AUGCJ.cjs');
6
6
 
7
7
  // src/operations/describeWrite.ts
@@ -78,194 +78,194 @@ function describeWrite(dry, record, opts) {
78
78
 
79
79
  Object.defineProperty(exports, "AGGREGATE_DATE_BUCKETS", {
80
80
  enumerable: true,
81
- get: function () { return chunkVO4ABDZA_cjs.AGGREGATE_DATE_BUCKETS; }
81
+ get: function () { return chunkXKIRTR37_cjs.AGGREGATE_DATE_BUCKETS; }
82
82
  });
83
83
  Object.defineProperty(exports, "AGGREGATE_DEFAULT_LIMIT", {
84
84
  enumerable: true,
85
- get: function () { return chunkVO4ABDZA_cjs.AGGREGATE_DEFAULT_LIMIT; }
85
+ get: function () { return chunkXKIRTR37_cjs.AGGREGATE_DEFAULT_LIMIT; }
86
86
  });
87
87
  Object.defineProperty(exports, "AGGREGATE_DEFAULT_TOP", {
88
88
  enumerable: true,
89
- get: function () { return chunkVO4ABDZA_cjs.AGGREGATE_DEFAULT_TOP; }
89
+ get: function () { return chunkXKIRTR37_cjs.AGGREGATE_DEFAULT_TOP; }
90
90
  });
91
91
  Object.defineProperty(exports, "AGGREGATE_TOP_MAX", {
92
92
  enumerable: true,
93
- get: function () { return chunkVO4ABDZA_cjs.AGGREGATE_TOP_MAX; }
93
+ get: function () { return chunkXKIRTR37_cjs.AGGREGATE_TOP_MAX; }
94
94
  });
95
95
  Object.defineProperty(exports, "CREATE_BLOCKER_KINDS", {
96
96
  enumerable: true,
97
- get: function () { return chunkVO4ABDZA_cjs.CREATE_BLOCKER_KINDS; }
97
+ get: function () { return chunkXKIRTR37_cjs.CREATE_BLOCKER_KINDS; }
98
98
  });
99
99
  Object.defineProperty(exports, "EXPAND_RESOURCE_NAMES_MAX_IDS", {
100
100
  enumerable: true,
101
- get: function () { return chunkVO4ABDZA_cjs.EXPAND_RESOURCE_NAMES_MAX_IDS; }
101
+ get: function () { return chunkXKIRTR37_cjs.EXPAND_RESOURCE_NAMES_MAX_IDS; }
102
102
  });
103
103
  Object.defineProperty(exports, "FETCH_BY_IDS_CHUNK_SIZE", {
104
104
  enumerable: true,
105
- get: function () { return chunkVO4ABDZA_cjs.FETCH_BY_IDS_CHUNK_SIZE; }
105
+ get: function () { return chunkXKIRTR37_cjs.FETCH_BY_IDS_CHUNK_SIZE; }
106
106
  });
107
107
  Object.defineProperty(exports, "FETCH_BY_IDS_MAX_ITEMS", {
108
108
  enumerable: true,
109
- get: function () { return chunkVO4ABDZA_cjs.FETCH_BY_IDS_MAX_ITEMS; }
109
+ get: function () { return chunkXKIRTR37_cjs.FETCH_BY_IDS_MAX_ITEMS; }
110
110
  });
111
111
  Object.defineProperty(exports, "FIELD_CACHE_KINDS", {
112
112
  enumerable: true,
113
- get: function () { return chunkVO4ABDZA_cjs.FIELD_CACHE_KINDS; }
113
+ get: function () { return chunkXKIRTR37_cjs.FIELD_CACHE_KINDS; }
114
114
  });
115
115
  Object.defineProperty(exports, "FIELD_CATALOG_HONESTY_NOTE", {
116
116
  enumerable: true,
117
- get: function () { return chunkVO4ABDZA_cjs.FIELD_CATALOG_HONESTY_NOTE; }
117
+ get: function () { return chunkXKIRTR37_cjs.FIELD_CATALOG_HONESTY_NOTE; }
118
118
  });
119
119
  Object.defineProperty(exports, "INVOKE_OPTION_KEYS", {
120
120
  enumerable: true,
121
- get: function () { return chunkVO4ABDZA_cjs.INVOKE_OPTION_KEYS; }
121
+ get: function () { return chunkXKIRTR37_cjs.INVOKE_OPTION_KEYS; }
122
122
  });
123
123
  Object.defineProperty(exports, "MAX_FIELD_CATALOG_WIRE", {
124
124
  enumerable: true,
125
- get: function () { return chunkVO4ABDZA_cjs.MAX_FIELD_CATALOG_WIRE; }
125
+ get: function () { return chunkXKIRTR37_cjs.MAX_FIELD_CATALOG_WIRE; }
126
126
  });
127
127
  Object.defineProperty(exports, "MIN_FIELD_CATALOG_MAX_BYTES", {
128
128
  enumerable: true,
129
- get: function () { return chunkVO4ABDZA_cjs.MIN_FIELD_CATALOG_MAX_BYTES; }
129
+ get: function () { return chunkXKIRTR37_cjs.MIN_FIELD_CATALOG_MAX_BYTES; }
130
130
  });
131
131
  Object.defineProperty(exports, "PARAMS_BAG_KEYS", {
132
132
  enumerable: true,
133
- get: function () { return chunkVO4ABDZA_cjs.PARAMS_BAG_KEYS; }
133
+ get: function () { return chunkXKIRTR37_cjs.PARAMS_BAG_KEYS; }
134
134
  });
135
135
  Object.defineProperty(exports, "PICKLIST_VALUE_NOT_SERVED_NOTE", {
136
136
  enumerable: true,
137
- get: function () { return chunkVO4ABDZA_cjs.PICKLIST_VALUE_NOT_SERVED_NOTE; }
137
+ get: function () { return chunkXKIRTR37_cjs.PICKLIST_VALUE_NOT_SERVED_NOTE; }
138
138
  });
139
139
  Object.defineProperty(exports, "UI_LINK_ENTITIES", {
140
140
  enumerable: true,
141
- get: function () { return chunkVO4ABDZA_cjs.UI_LINK_ENTITIES; }
141
+ get: function () { return chunkXKIRTR37_cjs.UI_LINK_ENTITIES; }
142
142
  });
143
143
  Object.defineProperty(exports, "WORKFLOW_RESOURCES", {
144
144
  enumerable: true,
145
- get: function () { return chunkVO4ABDZA_cjs.WORKFLOW_RESOURCES; }
145
+ get: function () { return chunkXKIRTR37_cjs.WORKFLOW_RESOURCES; }
146
146
  });
147
147
  Object.defineProperty(exports, "aggregate", {
148
148
  enumerable: true,
149
- get: function () { return chunkVO4ABDZA_cjs.aggregate; }
149
+ get: function () { return chunkXKIRTR37_cjs.aggregate; }
150
150
  });
151
151
  Object.defineProperty(exports, "arAging", {
152
152
  enumerable: true,
153
- get: function () { return chunkVO4ABDZA_cjs.arAging; }
153
+ get: function () { return chunkXKIRTR37_cjs.arAging; }
154
154
  });
155
155
  Object.defineProperty(exports, "buildUiLink", {
156
156
  enumerable: true,
157
- get: function () { return chunkVO4ABDZA_cjs.buildUiLink; }
157
+ get: function () { return chunkXKIRTR37_cjs.buildUiLink; }
158
158
  });
159
159
  Object.defineProperty(exports, "createGuidance", {
160
160
  enumerable: true,
161
- get: function () { return chunkVO4ABDZA_cjs.createGuidance; }
161
+ get: function () { return chunkXKIRTR37_cjs.createGuidance; }
162
162
  });
163
163
  Object.defineProperty(exports, "dateBucketLabel", {
164
164
  enumerable: true,
165
- get: function () { return chunkVO4ABDZA_cjs.dateBucketLabel; }
165
+ get: function () { return chunkXKIRTR37_cjs.dateBucketLabel; }
166
166
  });
167
167
  Object.defineProperty(exports, "effectiveRequiredFields", {
168
168
  enumerable: true,
169
- get: function () { return chunkVO4ABDZA_cjs.effectiveRequiredFields; }
169
+ get: function () { return chunkXKIRTR37_cjs.effectiveRequiredFields; }
170
170
  });
171
171
  Object.defineProperty(exports, "expandResourceNames", {
172
172
  enumerable: true,
173
- get: function () { return chunkVO4ABDZA_cjs.expandResourceNames; }
173
+ get: function () { return chunkXKIRTR37_cjs.expandResourceNames; }
174
174
  });
175
175
  Object.defineProperty(exports, "fetchByIds", {
176
176
  enumerable: true,
177
- get: function () { return chunkVO4ABDZA_cjs.fetchByIds; }
177
+ get: function () { return chunkXKIRTR37_cjs.fetchByIds; }
178
178
  });
179
179
  Object.defineProperty(exports, "fieldCatalog", {
180
180
  enumerable: true,
181
- get: function () { return chunkVO4ABDZA_cjs.fieldCatalog; }
181
+ get: function () { return chunkXKIRTR37_cjs.fieldCatalog; }
182
182
  });
183
183
  Object.defineProperty(exports, "foldFlattenedOpts", {
184
184
  enumerable: true,
185
- get: function () { return chunkVO4ABDZA_cjs.foldFlattenedOpts; }
185
+ get: function () { return chunkXKIRTR37_cjs.foldFlattenedOpts; }
186
186
  });
187
187
  Object.defineProperty(exports, "invoke", {
188
188
  enumerable: true,
189
- get: function () { return chunkVO4ABDZA_cjs.invoke; }
189
+ get: function () { return chunkXKIRTR37_cjs.invoke; }
190
190
  });
191
191
  Object.defineProperty(exports, "invokeDelete", {
192
192
  enumerable: true,
193
- get: function () { return chunkVO4ABDZA_cjs.invokeDelete; }
193
+ get: function () { return chunkXKIRTR37_cjs.invokeDelete; }
194
194
  });
195
195
  Object.defineProperty(exports, "invokeRead", {
196
196
  enumerable: true,
197
- get: function () { return chunkVO4ABDZA_cjs.invokeRead; }
197
+ get: function () { return chunkXKIRTR37_cjs.invokeRead; }
198
198
  });
199
199
  Object.defineProperty(exports, "invokeWrite", {
200
200
  enumerable: true,
201
- get: function () { return chunkVO4ABDZA_cjs.invokeWrite; }
201
+ get: function () { return chunkXKIRTR37_cjs.invokeWrite; }
202
202
  });
203
203
  Object.defineProperty(exports, "needsConfirmation", {
204
204
  enumerable: true,
205
- get: function () { return chunkVO4ABDZA_cjs.needsConfirmation; }
205
+ get: function () { return chunkXKIRTR37_cjs.needsConfirmation; }
206
206
  });
207
207
  Object.defineProperty(exports, "nonChargeableWork", {
208
208
  enumerable: true,
209
- get: function () { return chunkVO4ABDZA_cjs.nonChargeableWork; }
209
+ get: function () { return chunkXKIRTR37_cjs.nonChargeableWork; }
210
210
  });
211
211
  Object.defineProperty(exports, "notPersistedFields", {
212
212
  enumerable: true,
213
- get: function () { return chunkVO4ABDZA_cjs.notPersistedFields; }
213
+ get: function () { return chunkXKIRTR37_cjs.notPersistedFields; }
214
214
  });
215
215
  Object.defineProperty(exports, "portfolioMargin", {
216
216
  enumerable: true,
217
- get: function () { return chunkVO4ABDZA_cjs.portfolioMargin; }
217
+ get: function () { return chunkXKIRTR37_cjs.portfolioMargin; }
218
218
  });
219
219
  Object.defineProperty(exports, "recurringRevenue", {
220
220
  enumerable: true,
221
- get: function () { return chunkVO4ABDZA_cjs.recurringRevenue; }
221
+ get: function () { return chunkXKIRTR37_cjs.recurringRevenue; }
222
222
  });
223
223
  Object.defineProperty(exports, "relationshipMap", {
224
224
  enumerable: true,
225
- get: function () { return chunkVO4ABDZA_cjs.relationshipMap; }
225
+ get: function () { return chunkXKIRTR37_cjs.relationshipMap; }
226
226
  });
227
227
  Object.defineProperty(exports, "resolveAny", {
228
228
  enumerable: true,
229
- get: function () { return chunkVO4ABDZA_cjs.resolveAny; }
229
+ get: function () { return chunkXKIRTR37_cjs.resolveAny; }
230
230
  });
231
231
  Object.defineProperty(exports, "resolveStaff", {
232
232
  enumerable: true,
233
- get: function () { return chunkVO4ABDZA_cjs.resolveStaff; }
233
+ get: function () { return chunkXKIRTR37_cjs.resolveStaff; }
234
234
  });
235
235
  Object.defineProperty(exports, "revenueRollup", {
236
236
  enumerable: true,
237
- get: function () { return chunkVO4ABDZA_cjs.revenueRollup; }
237
+ get: function () { return chunkXKIRTR37_cjs.revenueRollup; }
238
238
  });
239
239
  Object.defineProperty(exports, "sanitiseResult", {
240
240
  enumerable: true,
241
- get: function () { return chunkVO4ABDZA_cjs.sanitiseResult; }
241
+ get: function () { return chunkXKIRTR37_cjs.sanitiseResult; }
242
242
  });
243
243
  Object.defineProperty(exports, "searchAcrossResources", {
244
244
  enumerable: true,
245
- get: function () { return chunkVO4ABDZA_cjs.searchAcrossResources; }
245
+ get: function () { return chunkXKIRTR37_cjs.searchAcrossResources; }
246
246
  });
247
247
  Object.defineProperty(exports, "uiLink", {
248
248
  enumerable: true,
249
- get: function () { return chunkVO4ABDZA_cjs.uiLink; }
249
+ get: function () { return chunkXKIRTR37_cjs.uiLink; }
250
250
  });
251
251
  Object.defineProperty(exports, "unknownKeysRefusal", {
252
252
  enumerable: true,
253
- get: function () { return chunkVO4ABDZA_cjs.unknownKeysRefusal; }
253
+ get: function () { return chunkXKIRTR37_cjs.unknownKeysRefusal; }
254
254
  });
255
255
  Object.defineProperty(exports, "validateDispatchArgs", {
256
256
  enumerable: true,
257
- get: function () { return chunkVO4ABDZA_cjs.validateDispatchArgs; }
257
+ get: function () { return chunkXKIRTR37_cjs.validateDispatchArgs; }
258
258
  });
259
259
  Object.defineProperty(exports, "validateInvokeOptions", {
260
260
  enumerable: true,
261
- get: function () { return chunkVO4ABDZA_cjs.validateInvokeOptions; }
261
+ get: function () { return chunkXKIRTR37_cjs.validateInvokeOptions; }
262
262
  });
263
263
  Object.defineProperty(exports, "validateParamsBag", {
264
264
  enumerable: true,
265
- get: function () { return chunkVO4ABDZA_cjs.validateParamsBag; }
265
+ get: function () { return chunkXKIRTR37_cjs.validateParamsBag; }
266
266
  });
267
267
  Object.defineProperty(exports, "wipHours", {
268
268
  enumerable: true,
269
- get: function () { return chunkVO4ABDZA_cjs.wipHours; }
269
+ get: function () { return chunkXKIRTR37_cjs.wipHours; }
270
270
  });
271
271
  exports.describeWrite = describeWrite;
@@ -1,6 +1,6 @@
1
- import { a3 as RowNamesSummary, a4 as BlindSurfaceInfo, a5 as RelationshipResource, a6 as CreateGuidanceValueRequirement, a7 as CreateGuidanceRow, a8 as CreateBlockerKind, a9 as CreateGuidanceReport, aa as FieldCacheKind } from '../index-D_1wP3Je.cjs';
1
+ import { a6 as RowNamesSummary, a7 as BlindSurfaceInfo, a8 as RelationshipResource, a9 as CreateGuidanceValueRequirement, aa as CreateGuidanceRow, ab as CreateBlockerKind, ac as CreateGuidanceReport, ad as FieldCacheKind } from '../index-mIsdpO5d.cjs';
2
2
  import { AutotaskClient, ProfitabilityLabourCostMethod, ZoneName } from '../index.cjs';
3
- export { ab as FIELD_CACHE_KINDS } from '../index-D_1wP3Je.cjs';
3
+ export { ae as FIELD_CACHE_KINDS } from '../index-mIsdpO5d.cjs';
4
4
  import { I as Identifier, E as EmptyReasonInfo, D as DryRunResult, P as PickListValue } from '../index-COQEG55Q.cjs';
5
5
  export { a as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-COQEG55Q.cjs';
6
6
  import { CapabilityRecord } from '../capabilities.cjs';
@@ -1,6 +1,6 @@
1
- import { a3 as RowNamesSummary, a4 as BlindSurfaceInfo, a5 as RelationshipResource, a6 as CreateGuidanceValueRequirement, a7 as CreateGuidanceRow, a8 as CreateBlockerKind, a9 as CreateGuidanceReport, aa as FieldCacheKind } from '../index-CYlKHo5N.js';
1
+ import { a6 as RowNamesSummary, a7 as BlindSurfaceInfo, a8 as RelationshipResource, a9 as CreateGuidanceValueRequirement, aa as CreateGuidanceRow, ab as CreateBlockerKind, ac as CreateGuidanceReport, ad as FieldCacheKind } from '../index-DQ08uOH0.js';
2
2
  import { AutotaskClient, ProfitabilityLabourCostMethod, ZoneName } from '../index.js';
3
- export { ab as FIELD_CACHE_KINDS } from '../index-CYlKHo5N.js';
3
+ export { ae as FIELD_CACHE_KINDS } from '../index-DQ08uOH0.js';
4
4
  import { I as Identifier, E as EmptyReasonInfo, D as DryRunResult, P as PickListValue } from '../index-COQEG55Q.js';
5
5
  export { a as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-COQEG55Q.js';
6
6
  import { CapabilityRecord } from '../capabilities.js';
@@ -1,5 +1,5 @@
1
- export { AGGREGATE_DATE_BUCKETS, AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, CREATE_BLOCKER_KINDS, EXPAND_RESOURCE_NAMES_MAX_IDS, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FIELD_CACHE_KINDS, FIELD_CATALOG_HONESTY_NOTE, INVOKE_OPTION_KEYS, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, PARAMS_BAG_KEYS, PICKLIST_VALUE_NOT_SERVED_NOTE, UI_LINK_ENTITIES, WORKFLOW_RESOURCES, aggregate, arAging, buildUiLink, createGuidance, dateBucketLabel, effectiveRequiredFields, expandResourceNames, fetchByIds, fieldCatalog, foldFlattenedOpts, invoke, invokeDelete, invokeRead, invokeWrite, needsConfirmation, nonChargeableWork, notPersistedFields, portfolioMargin, recurringRevenue, relationshipMap, resolveAny, resolveStaff, revenueRollup, sanitiseResult, searchAcrossResources, uiLink, unknownKeysRefusal, validateDispatchArgs, validateInvokeOptions, validateParamsBag, wipHours } from '../chunk-N7WB65IS.js';
2
- import '../chunk-4GH73U2I.js';
1
+ export { AGGREGATE_DATE_BUCKETS, AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, CREATE_BLOCKER_KINDS, EXPAND_RESOURCE_NAMES_MAX_IDS, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FIELD_CACHE_KINDS, FIELD_CATALOG_HONESTY_NOTE, INVOKE_OPTION_KEYS, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, PARAMS_BAG_KEYS, PICKLIST_VALUE_NOT_SERVED_NOTE, UI_LINK_ENTITIES, WORKFLOW_RESOURCES, aggregate, arAging, buildUiLink, createGuidance, dateBucketLabel, effectiveRequiredFields, expandResourceNames, fetchByIds, fieldCatalog, foldFlattenedOpts, invoke, invokeDelete, invokeRead, invokeWrite, needsConfirmation, nonChargeableWork, notPersistedFields, portfolioMargin, recurringRevenue, relationshipMap, resolveAny, resolveStaff, revenueRollup, sanitiseResult, searchAcrossResources, uiLink, unknownKeysRefusal, validateDispatchArgs, validateInvokeOptions, validateParamsBag, wipHours } from '../chunk-YYHCZRUH.js';
2
+ import '../chunk-JCMXQUIC.js';
3
3
  import { REDACTED } from '../chunk-7NKB4UXV.js';
4
4
 
5
5
  // src/operations/describeWrite.ts
package/dist/pool.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunk54L7KKUD_cjs = require('./chunk-54L7KKUD.cjs');
4
- require('./chunk-C7M7PXLW.cjs');
5
- var chunkVO4ABDZA_cjs = require('./chunk-VO4ABDZA.cjs');
6
- require('./chunk-7GBOQ7YA.cjs');
3
+ var chunkKRQONGLD_cjs = require('./chunk-KRQONGLD.cjs');
4
+ require('./chunk-2D2KJOX2.cjs');
5
+ var chunkXKIRTR37_cjs = require('./chunk-XKIRTR37.cjs');
6
+ require('./chunk-SGH7F2CH.cjs');
7
7
  require('./chunk-BD4AUGCJ.cjs');
8
8
  var crypto = require('crypto');
9
9
 
10
10
  function createClientPool(options = {}) {
11
11
  const maxSize = options.maxSize ?? 128;
12
12
  if (!Number.isInteger(maxSize) || maxSize < 1) {
13
- throw new chunkVO4ABDZA_cjs.AutotaskConfigError(
13
+ throw new chunkXKIRTR37_cjs.AutotaskConfigError(
14
14
  `ClientPool maxSize must be a positive integer (got ${String(options.maxSize)})`
15
15
  );
16
16
  }
@@ -25,12 +25,13 @@ function createClientPool(options = {}) {
25
25
  readCaches.set(key, existing);
26
26
  return existing;
27
27
  }
28
- const created = chunkVO4ABDZA_cjs.buildReadCache(config);
28
+ const created = chunkXKIRTR37_cjs.buildReadCache(config);
29
29
  if (created === void 0) return void 0;
30
30
  readCaches.set(key, created);
31
31
  while (readCaches.size > maxSize) {
32
- const oldest = readCaches.keys().next().value;
32
+ const oldest = [...readCaches.keys()].find((candidate) => candidate !== key && !entries.has(candidate));
33
33
  if (oldest === void 0) break;
34
+ chunkXKIRTR37_cjs.suspendCompanyIndex(readCaches.get(oldest));
34
35
  readCaches.delete(oldest);
35
36
  }
36
37
  return created;
@@ -42,7 +43,7 @@ function createClientPool(options = {}) {
42
43
  return { ...config, cache };
43
44
  }
44
45
  function keyFor(config) {
45
- const resolved = chunkVO4ABDZA_cjs.resolveCredentials(config);
46
+ const resolved = chunkXKIRTR37_cjs.resolveCredentials(config);
46
47
  const tuple = [
47
48
  resolved.userName,
48
49
  resolved.apiIntegrationCode,
@@ -59,20 +60,37 @@ function createClientPool(options = {}) {
59
60
  if (hit !== void 0) {
60
61
  entries.delete(key);
61
62
  entries.set(key, hit);
63
+ const store = readCaches.get(key);
64
+ if (store !== void 0) {
65
+ readCaches.delete(key);
66
+ readCaches.set(key, store);
67
+ }
62
68
  return hit;
63
69
  }
64
70
  if (entries.size >= maxSize) {
65
71
  const oldest = entries.keys().next().value;
66
- if (oldest !== void 0) entries.delete(oldest);
72
+ if (oldest !== void 0) {
73
+ const store = entries.get(oldest)?.http.readCache;
74
+ if (store !== void 0) chunkXKIRTR37_cjs.suspendCompanyIndex(store);
75
+ entries.delete(oldest);
76
+ }
67
77
  }
68
- const client = new chunk54L7KKUD_cjs.AutotaskClient(withSharedCache(config, sharedCacheFor(key, config)));
78
+ const client = new chunkKRQONGLD_cjs.AutotaskClient(withSharedCache(config, sharedCacheFor(key, config)));
69
79
  entries.set(key, client);
70
80
  return client;
71
81
  },
72
82
  delete(config) {
73
- return entries.delete(keyFor(config));
83
+ const key = keyFor(config);
84
+ const store = entries.get(key)?.http.readCache ?? readCaches.get(key);
85
+ if (store !== void 0) chunkXKIRTR37_cjs.suspendCompanyIndex(store);
86
+ return entries.delete(key);
74
87
  },
75
88
  clear() {
89
+ const stores = new Set(readCaches.values());
90
+ for (const client of entries.values()) {
91
+ if (client.http.readCache !== void 0) stores.add(client.http.readCache);
92
+ }
93
+ for (const store of stores) chunkXKIRTR37_cjs.suspendCompanyIndex(store);
76
94
  entries.clear();
77
95
  readCaches.clear();
78
96
  },
package/dist/pool.js CHANGED
@@ -1,7 +1,7 @@
1
- import { AutotaskClient } from './chunk-UCPSQ6GN.js';
2
- import './chunk-EXLJHU5W.js';
3
- import { AutotaskConfigError, buildReadCache, resolveCredentials } from './chunk-N7WB65IS.js';
4
- import './chunk-4GH73U2I.js';
1
+ import { AutotaskClient } from './chunk-LOLWHPTJ.js';
2
+ import './chunk-S6HEIGGM.js';
3
+ import { AutotaskConfigError, suspendCompanyIndex, buildReadCache, resolveCredentials } from './chunk-YYHCZRUH.js';
4
+ import './chunk-JCMXQUIC.js';
5
5
  import './chunk-7NKB4UXV.js';
6
6
  import { createHash } from 'crypto';
7
7
 
@@ -27,8 +27,9 @@ function createClientPool(options = {}) {
27
27
  if (created === void 0) return void 0;
28
28
  readCaches.set(key, created);
29
29
  while (readCaches.size > maxSize) {
30
- const oldest = readCaches.keys().next().value;
30
+ const oldest = [...readCaches.keys()].find((candidate) => candidate !== key && !entries.has(candidate));
31
31
  if (oldest === void 0) break;
32
+ suspendCompanyIndex(readCaches.get(oldest));
32
33
  readCaches.delete(oldest);
33
34
  }
34
35
  return created;
@@ -57,20 +58,37 @@ function createClientPool(options = {}) {
57
58
  if (hit !== void 0) {
58
59
  entries.delete(key);
59
60
  entries.set(key, hit);
61
+ const store = readCaches.get(key);
62
+ if (store !== void 0) {
63
+ readCaches.delete(key);
64
+ readCaches.set(key, store);
65
+ }
60
66
  return hit;
61
67
  }
62
68
  if (entries.size >= maxSize) {
63
69
  const oldest = entries.keys().next().value;
64
- if (oldest !== void 0) entries.delete(oldest);
70
+ if (oldest !== void 0) {
71
+ const store = entries.get(oldest)?.http.readCache;
72
+ if (store !== void 0) suspendCompanyIndex(store);
73
+ entries.delete(oldest);
74
+ }
65
75
  }
66
76
  const client = new AutotaskClient(withSharedCache(config, sharedCacheFor(key, config)));
67
77
  entries.set(key, client);
68
78
  return client;
69
79
  },
70
80
  delete(config) {
71
- return entries.delete(keyFor(config));
81
+ const key = keyFor(config);
82
+ const store = entries.get(key)?.http.readCache ?? readCaches.get(key);
83
+ if (store !== void 0) suspendCompanyIndex(store);
84
+ return entries.delete(key);
72
85
  },
73
86
  clear() {
87
+ const stores = new Set(readCaches.values());
88
+ for (const client of entries.values()) {
89
+ if (client.http.readCache !== void 0) stores.add(client.http.readCache);
90
+ }
91
+ for (const store of stores) suspendCompanyIndex(store);
74
92
  entries.clear();
75
93
  readCaches.clear();
76
94
  },
@@ -1,106 +1,106 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-S5CH4H6H.cjs');
4
- var chunkC7M7PXLW_cjs = require('../chunk-C7M7PXLW.cjs');
5
- var chunkVO4ABDZA_cjs = require('../chunk-VO4ABDZA.cjs');
6
- require('../chunk-7GBOQ7YA.cjs');
4
+ var chunk2D2KJOX2_cjs = require('../chunk-2D2KJOX2.cjs');
5
+ var chunkXKIRTR37_cjs = require('../chunk-XKIRTR37.cjs');
6
+ require('../chunk-SGH7F2CH.cjs');
7
7
  require('../chunk-BD4AUGCJ.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "AuthenticateResource", {
12
12
  enumerable: true,
13
- get: function () { return chunkC7M7PXLW_cjs.AuthenticateResource; }
13
+ get: function () { return chunk2D2KJOX2_cjs.AuthenticateResource; }
14
14
  });
15
15
  Object.defineProperty(exports, "ConfigurationItemsResource", {
16
16
  enumerable: true,
17
- get: function () { return chunkC7M7PXLW_cjs.ConfigurationItemsResource; }
17
+ get: function () { return chunk2D2KJOX2_cjs.ConfigurationItemsResource; }
18
18
  });
19
19
  Object.defineProperty(exports, "ContactsResource", {
20
20
  enumerable: true,
21
- get: function () { return chunkC7M7PXLW_cjs.ContactsResource; }
21
+ get: function () { return chunk2D2KJOX2_cjs.ContactsResource; }
22
22
  });
23
23
  Object.defineProperty(exports, "EntityInformationResource", {
24
24
  enumerable: true,
25
- get: function () { return chunkC7M7PXLW_cjs.EntityInformationResource; }
25
+ get: function () { return chunk2D2KJOX2_cjs.EntityInformationResource; }
26
26
  });
27
27
  Object.defineProperty(exports, "InventoryProductsResource", {
28
28
  enumerable: true,
29
- get: function () { return chunkC7M7PXLW_cjs.InventoryProductsResource; }
29
+ get: function () { return chunk2D2KJOX2_cjs.InventoryProductsResource; }
30
30
  });
31
31
  Object.defineProperty(exports, "ModulesResource", {
32
32
  enumerable: true,
33
- get: function () { return chunkC7M7PXLW_cjs.ModulesResource; }
33
+ get: function () { return chunk2D2KJOX2_cjs.ModulesResource; }
34
34
  });
35
35
  Object.defineProperty(exports, "QuotesResource", {
36
36
  enumerable: true,
37
- get: function () { return chunkC7M7PXLW_cjs.QuotesResource; }
37
+ get: function () { return chunk2D2KJOX2_cjs.QuotesResource; }
38
38
  });
39
39
  Object.defineProperty(exports, "ResourceTimeOffAdditionalResource", {
40
40
  enumerable: true,
41
- get: function () { return chunkC7M7PXLW_cjs.ResourceTimeOffAdditionalResource; }
41
+ get: function () { return chunk2D2KJOX2_cjs.ResourceTimeOffAdditionalResource; }
42
42
  });
43
43
  Object.defineProperty(exports, "ResourceTimeOffBalancesResource", {
44
44
  enumerable: true,
45
- get: function () { return chunkC7M7PXLW_cjs.ResourceTimeOffBalancesResource; }
45
+ get: function () { return chunk2D2KJOX2_cjs.ResourceTimeOffBalancesResource; }
46
46
  });
47
47
  Object.defineProperty(exports, "ResourcesResource", {
48
48
  enumerable: true,
49
- get: function () { return chunkC7M7PXLW_cjs.ResourcesResource; }
49
+ get: function () { return chunk2D2KJOX2_cjs.ResourcesResource; }
50
50
  });
51
51
  Object.defineProperty(exports, "ServiceCallsResource", {
52
52
  enumerable: true,
53
- get: function () { return chunkC7M7PXLW_cjs.ServiceCallsResource; }
53
+ get: function () { return chunk2D2KJOX2_cjs.ServiceCallsResource; }
54
54
  });
55
55
  Object.defineProperty(exports, "ThresholdInformationResource", {
56
56
  enumerable: true,
57
- get: function () { return chunkC7M7PXLW_cjs.ThresholdInformationResource; }
57
+ get: function () { return chunk2D2KJOX2_cjs.ThresholdInformationResource; }
58
58
  });
59
59
  Object.defineProperty(exports, "TicketChargesResource", {
60
60
  enumerable: true,
61
- get: function () { return chunkC7M7PXLW_cjs.TicketChargesResource; }
61
+ get: function () { return chunk2D2KJOX2_cjs.TicketChargesResource; }
62
62
  });
63
63
  Object.defineProperty(exports, "TicketsResource", {
64
64
  enumerable: true,
65
- get: function () { return chunkC7M7PXLW_cjs.TicketsResource; }
65
+ get: function () { return chunk2D2KJOX2_cjs.TicketsResource; }
66
66
  });
67
67
  Object.defineProperty(exports, "TimeOffRequestsResource", {
68
68
  enumerable: true,
69
- get: function () { return chunkC7M7PXLW_cjs.TimeOffRequestsResource; }
69
+ get: function () { return chunk2D2KJOX2_cjs.TimeOffRequestsResource; }
70
70
  });
71
71
  Object.defineProperty(exports, "VersionInformationResource", {
72
72
  enumerable: true,
73
- get: function () { return chunkC7M7PXLW_cjs.VersionInformationResource; }
73
+ get: function () { return chunk2D2KJOX2_cjs.VersionInformationResource; }
74
74
  });
75
75
  Object.defineProperty(exports, "VersionResource", {
76
76
  enumerable: true,
77
- get: function () { return chunkC7M7PXLW_cjs.VersionResource; }
77
+ get: function () { return chunk2D2KJOX2_cjs.VersionResource; }
78
78
  });
79
79
  Object.defineProperty(exports, "ZoneInformationResource", {
80
80
  enumerable: true,
81
- get: function () { return chunkC7M7PXLW_cjs.ZoneInformationResource; }
81
+ get: function () { return chunk2D2KJOX2_cjs.ZoneInformationResource; }
82
82
  });
83
83
  Object.defineProperty(exports, "CompaniesResource", {
84
84
  enumerable: true,
85
- get: function () { return chunkVO4ABDZA_cjs.CompaniesResource; }
85
+ get: function () { return chunkXKIRTR37_cjs.CompaniesResource; }
86
86
  });
87
87
  Object.defineProperty(exports, "ContractsResource", {
88
88
  enumerable: true,
89
- get: function () { return chunkVO4ABDZA_cjs.ContractsResource; }
89
+ get: function () { return chunkXKIRTR37_cjs.ContractsResource; }
90
90
  });
91
91
  Object.defineProperty(exports, "GenericResource", {
92
92
  enumerable: true,
93
- get: function () { return chunkVO4ABDZA_cjs.GenericResource; }
93
+ get: function () { return chunkXKIRTR37_cjs.GenericResource; }
94
94
  });
95
95
  Object.defineProperty(exports, "InvoicesResource", {
96
96
  enumerable: true,
97
- get: function () { return chunkVO4ABDZA_cjs.InvoicesResource; }
97
+ get: function () { return chunkXKIRTR37_cjs.InvoicesResource; }
98
98
  });
99
99
  Object.defineProperty(exports, "SIMPLE_RESOURCES", {
100
100
  enumerable: true,
101
- get: function () { return chunkVO4ABDZA_cjs.SIMPLE_RESOURCES; }
101
+ get: function () { return chunkXKIRTR37_cjs.SIMPLE_RESOURCES; }
102
102
  });
103
103
  Object.defineProperty(exports, "TimeEntriesResource", {
104
104
  enumerable: true,
105
- get: function () { return chunkVO4ABDZA_cjs.TimeEntriesResource; }
105
+ get: function () { return chunkXKIRTR37_cjs.TimeEntriesResource; }
106
106
  });
@@ -1,3 +1,3 @@
1
- export { c as AuthenticateResource, C as CompaniesResource, d as ConfigurationItemsResource, e as ContactsResource, g as ContractsResource, E as EntityInformationResource, G as GenericResource, i as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, j as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, v as ResourceTimeOffBalancesResource, w as ResourcesResource, S as SIMPLE_RESOURCES, x as ServiceCallsResource, y as SimpleResourceEntry, z as ThresholdInformationResource, B as TicketChargesResource, D as TicketsResource, V as TimeEntriesResource, Y as TimeOffRequestsResource, _ as VersionInformationResource, $ as VersionResource, a1 as ZoneInformationResource } from '../index-D_1wP3Je.cjs';
1
+ export { c as AuthenticateResource, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, i as ContractsResource, E as EntityInformationResource, F as FuzzyCompanyRow, G as GenericResource, k as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, l as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, x as ResourceTimeOffBalancesResource, y as ResourcesResource, S as SIMPLE_RESOURCES, z as ServiceCallsResource, B as SimpleResourceEntry, D as ThresholdInformationResource, J as TicketChargesResource, K as TicketsResource, Y as TimeEntriesResource, $ as TimeOffRequestsResource, a1 as VersionInformationResource, a2 as VersionResource, a4 as ZoneInformationResource } from '../index-mIsdpO5d.cjs';
2
2
  import '../index-COQEG55Q.cjs';
3
3
  import '../logger-B1gYmFre.cjs';
@@ -1,3 +1,3 @@
1
- export { c as AuthenticateResource, C as CompaniesResource, d as ConfigurationItemsResource, e as ContactsResource, g as ContractsResource, E as EntityInformationResource, G as GenericResource, i as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, j as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, v as ResourceTimeOffBalancesResource, w as ResourcesResource, S as SIMPLE_RESOURCES, x as ServiceCallsResource, y as SimpleResourceEntry, z as ThresholdInformationResource, B as TicketChargesResource, D as TicketsResource, V as TimeEntriesResource, Y as TimeOffRequestsResource, _ as VersionInformationResource, $ as VersionResource, a1 as ZoneInformationResource } from '../index-CYlKHo5N.js';
1
+ export { c as AuthenticateResource, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, i as ContractsResource, E as EntityInformationResource, F as FuzzyCompanyRow, G as GenericResource, k as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, l as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, x as ResourceTimeOffBalancesResource, y as ResourcesResource, S as SIMPLE_RESOURCES, z as ServiceCallsResource, B as SimpleResourceEntry, D as ThresholdInformationResource, J as TicketChargesResource, K as TicketsResource, Y as TimeEntriesResource, $ as TimeOffRequestsResource, a1 as VersionInformationResource, a2 as VersionResource, a4 as ZoneInformationResource } from '../index-DQ08uOH0.js';
2
2
  import '../index-COQEG55Q.js';
3
3
  import '../logger-B1gYmFre.js';
@@ -1,5 +1,5 @@
1
1
  import '../chunk-YL6HXU33.js';
2
- export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from '../chunk-EXLJHU5W.js';
3
- export { CompaniesResource, ContractsResource, GenericResource, InvoicesResource, SIMPLE_RESOURCES, TimeEntriesResource } from '../chunk-N7WB65IS.js';
4
- import '../chunk-4GH73U2I.js';
2
+ export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from '../chunk-S6HEIGGM.js';
3
+ export { CompaniesResource, ContractsResource, GenericResource, InvoicesResource, SIMPLE_RESOURCES, TimeEntriesResource } from '../chunk-YYHCZRUH.js';
4
+ import '../chunk-JCMXQUIC.js';
5
5
  import '../chunk-7NKB4UXV.js';
package/docs/API.md CHANGED
@@ -518,7 +518,7 @@ Host form: `https://<name>.autotask.net/atservicesrest` (lowercase
518
518
  | `logger` | `NoopLogger` | — | request log sink |
519
519
  | `labels` | `false` | — | opt-in label siblings (`statusLabel`, `<fk>Name`) on query, aggregate and fetch rows (issue #287); a per-call `names` overrides it — section 11.27 |
520
520
  | `redactPersonalData` | `true` | — | response redaction for PII + confidential fields (section 10); `false` = raw personal data, secrets still redacted |
521
- | `cache` | on | read 4096 / field 256 entries | `{ ttlMs?, fieldTtlMs?, store? }` the SDK's in-memory caches (issue #286; one block): single-record reads (get-by-id, the id branch of `resolve`, composite FK reads, `operations.expandResourceNames` names) live `ttlMs` (default 5 min; the reference tables `REFERENCE_ENTITIES` live 1 h), entity field metadata lives `fieldTtlMs` (default 5 min). `false` = every channel off. A real write through the client clears the record cache; a vendor drift signal drops one entity's field metadata (section 11.14). Lists, queries, counts, mutations and errors are never cached. `fieldCache`, `resourceNameCache` and `cache.perResourceTtlMs` were removed in 0.40.0 (the first two are refused) |
521
+ | `cache` | on | read 4096 / field 256 entries | `{ ttlMs?, fieldTtlMs?, companyIndexTtlMs?, store? }` the SDK's in-memory caches (issue #286; one block): single-record reads (get-by-id, the id branch of `resolve`, composite FK reads, `operations.expandResourceNames` names) live `ttlMs` (default 5 min; the reference tables `REFERENCE_ENTITIES` live 1 h), entity field metadata lives `fieldTtlMs` (default 5 min). `false` = every channel off. A real write through the client clears the record cache; a vendor drift signal drops one entity's field metadata (section 11.14). Ordinary lists, queries, counts, mutations and errors are never cached. The named exception is the separate `companies.searchFuzzy` name index (default refresh 30 min, `companyIndexTtlMs`); company writes invalidate and rebuild it, and `false` disables it too. `fieldCache`, `resourceNameCache` and `cache.perResourceTtlMs` were removed in 0.40.0 (the first two are refused) |
522
522
  | `update` | off | — | `{ putFallback?: boolean }` opt-in PUT item-path fallback for a 404'd non-collectionUpdate update route (issue #34) — see section 11.16. A TYPED 404 retries ONCE as `PUT /{Entity}/{id}` with the caller's fields merged onto a fresh unredacted read (never a null-clearing partial); collectionUpdate routes, `raw: true` updates and every non-404 fault are never retried — a declined gate throws the self-explaining error naming the route, the status and the opt-in |
523
523
  | `reResolveZoneOn401` | off | — | opt-in zone re-resolution on 401 (issue #43) — see section 11.19. A 401 on a relative path against a CATALOG base makes ONE unauthenticated vendor zone-discovery call; if the tenant's zone base has moved, the client re-points its live base URL (process-lifetime, observable via `http.baseUrl`) and retries the SAME request ONCE. An explicit `baseUrl` and an absolute path are never re-pointed; a resolved base identical to the live one, or a discovery fault, propagates today's typed 401 untouched (zero retry); a retry that 401s again carries `details.zoneRecovery = { from, to, retried: true }` |
524
524
  | `hostPolicy` | off | — | opt-in config-time HOST BOUNDS (skill 3.5.0 / L2) — see section 11.20. `{ blockPrivateHosts?: boolean; allowedOrigins?: readonly string[] }`: the RESOLVED base URL (explicit `baseUrl` or zone-derived) must pass every ACTIVE bound at construction time, pre-wire; a violation throws the typed `HostPolicyDeniedError` (`HOST_POLICY_DENIED`, category `policy`, `retryable: false`) naming the offending origin. `blockPrivateHosts: true` refuses a LITERAL private / loopback / link-local host (IPv4 10/8, 172.16/12, 192.168/16, 127/8, 169.254/16, 0/8; IPv6 `::1`, `fc00::/7`, `fe80::/10`, IPv4-mapped `::ffff:a.b.c.d`); `allowedOrigins` is an EXACT normalised-origin allow-list. Checks run on the canonical `new URL(origin).host` — HOSTNAMES are never blocked (no DNS lookups); the private bound is checked FIRST and WINS; a present block with no active bound is refused fail-closed; with `reResolveZoneOn401: true` the same bounds gate the discovery-provided re-point target (a refused host is a discovery fault) |
@@ -1136,7 +1136,7 @@ be cross-mode-refused.
1136
1136
  every op × 3 modes, zero wire).
1137
1137
 
1138
1138
  <!-- BEGIN GENERATED:approval-policy -->
1139
- **Harness approval policy (recommended).** Require approval on every tool whose MCP annotation is `readOnlyHint !== true` — today exactly **252 tools**: the 250 dedicated write/delete tools (194 `effect=write` + 56 `effect=destructive`, every one of them has a dedicated tool) + `autotask_write` + `autotask_delete`. The remaining **610 tools** (the 597 dedicated read tools + the 10 core read tools + `autotask_read` + `autotask_catalog` + `autotask_describe`) all carry `readOnlyHint: true` and are safe ungated: every op they can route is `effect=read` (zero mutating requests). Refined class for the highest-risk ops: the **57 tools with `destructiveHint: true`** (56 dedicated delete tools + `autotask_delete`) additionally require `confirm === <operation key>` even inside `autotask_delete`. The approval-gated writes (`configuration_items.moveConfigurationItem`, `contacts.moveToCompany`) require the same confirm inside `autotask_write`. Migration: `autotask_invoke` is REPLACED by `autotask_read`/`autotask_write`/`autotask_delete` — update harness config and remove any `autotask_invoke` entry. The rule is derivable from the registry `effect` column and the mode tools’ fixed annotations; it never needs a hand-maintained name list.
1139
+ **Harness approval policy (recommended).** Require approval on every tool whose MCP annotation is `readOnlyHint !== true` — today exactly **252 tools**: the 250 dedicated write/delete tools (194 `effect=write` + 56 `effect=destructive`, every one of them has a dedicated tool) + `autotask_write` + `autotask_delete`. The remaining **611 tools** (the 598 dedicated read tools + the 10 core read tools + `autotask_read` + `autotask_catalog` + `autotask_describe`) all carry `readOnlyHint: true` and are safe ungated: every op they can route is `effect=read` (zero mutating requests). Refined class for the highest-risk ops: the **57 tools with `destructiveHint: true`** (56 dedicated delete tools + `autotask_delete`) additionally require `confirm === <operation key>` even inside `autotask_delete`. The approval-gated writes (`configuration_items.moveConfigurationItem`, `contacts.moveToCompany`) require the same confirm inside `autotask_write`. Migration: `autotask_invoke` is REPLACED by `autotask_read`/`autotask_write`/`autotask_delete` — update harness config and remove any `autotask_invoke` entry. The rule is derivable from the registry `effect` column and the mode tools’ fixed annotations; it never needs a hand-maintained name list.
1140
1140
  <!-- END GENERATED:approval-policy -->
1141
1141
 
1142
1142
  ### 7.5 the `create` dry-run delete-boundary warning (issue #9)
@@ -2088,7 +2088,7 @@ Standard methods (every resource, `BaseResource`): `query` (stream, 1000-page gu
2088
2088
  | `checklist_libraries` | ChecklistLibrary | entity | extended | no | query, count, get, create, update, delete, resolve, search | getEntityInfo, getFieldInfo, getUdfInfo | autotask_checklistLibrary_get |
2089
2089
  | `checklist_library_checklist_items` | ChecklistLibraryChecklistItem | entity | extended | yes (checklist_libraries) | query, count, get, create, update, delete, resolve | getEntityInfo, getFieldInfo, getUdfInfo | autotask_checklistLibraryChecklistItem_get |
2090
2090
  | `classification_icons` | ClassificationIcon | entity | advanced | no | query, count, get, resolve, search | getEntityInfo, getFieldInfo, getUdfInfo | autotask_classificationIcon_get |
2091
- | `companies` | Company | entity | core | no | query, count, get, create, update, resolve, search, getContext | fullProfile, getEntityInfo, getFieldInfo, getUdfInfo, prepareCrmWrite, searchByDomain, searchByIdentity, unbilledWork | autotask_company_get |
2091
+ | `companies` | Company | entity | core | no | query, count, get, create, update, resolve, search, getContext | fullProfile, getEntityInfo, getFieldInfo, getUdfInfo, prepareCrmWrite, searchByDomain, searchByIdentity, searchFuzzy, unbilledWork | autotask_company_get |
2092
2092
  | `company_alerts` | CompanyAlert | entity | extended | yes (companies) | query, count, get, create, update, delete, resolve | getEntityInfo, getFieldInfo, getUdfInfo | autotask_companyAlert_get |
2093
2093
  | `company_locations` | CompanyLocation | entity | extended | yes (companies) | query, count, get, create, update, delete, resolve, search | getEntityInfo, getFieldInfo, getUdfInfo | autotask_companyLocation_get |
2094
2094
  | `company_notes` | CompanyNote | entity | extended | yes (companies) | query, count, get, create, update, resolve, search | getEntityInfo, getFieldInfo, getUdfInfo | autotask_companyNote_get |