node-autotask 0.75.0 → 0.76.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 (39) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/MCP_TOOL_CATALOG.json +137 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +483 -7
  5. package/dist/capabilities-data.js +482 -6
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-MCAGTC6R.js → chunk-3SFIKG2R.js} +189 -17
  9. package/dist/{chunk-YGJCTU7F.cjs → chunk-55BQEFBO.cjs} +31 -30
  10. package/dist/{chunk-VMFQ53HQ.cjs → chunk-C4S3EKIK.cjs} +3 -3
  11. package/dist/{chunk-OFYXDB5G.js → chunk-ECSE6B3U.js} +3 -3
  12. package/dist/{chunk-JEARDPBL.js → chunk-S7QPD6TR.js} +2 -2
  13. package/dist/{chunk-OTDNHBJJ.js → chunk-UFK7JYYC.js} +3 -2
  14. package/dist/{chunk-54CRUNXF.cjs → chunk-Y4BH5N6R.cjs} +194 -22
  15. package/dist/{chunk-52YS7NCR.cjs → chunk-YRTOAPWD.cjs} +199 -199
  16. package/dist/{index-BEuTtkQE.d.cts → index-BbAzrm2i.d.cts} +46 -1
  17. package/dist/{index-BEuTtkQE.d.ts → index-BbAzrm2i.d.ts} +46 -1
  18. package/dist/{index-CNuQgQ_Z.d.ts → index-CY7exGOe.d.ts} +3 -2
  19. package/dist/{index-BAu5alhB.d.cts → index-MY7qYY5d.d.cts} +3 -2
  20. package/dist/index.cjs +84 -84
  21. package/dist/index.d.cts +3 -3
  22. package/dist/index.d.ts +3 -3
  23. package/dist/index.js +5 -5
  24. package/dist/operations/index.cjs +51 -51
  25. package/dist/operations/index.d.cts +4 -4
  26. package/dist/operations/index.d.ts +4 -4
  27. package/dist/operations/index.js +2 -2
  28. package/dist/pool.cjs +12 -12
  29. package/dist/pool.d.cts +1 -1
  30. package/dist/pool.d.ts +1 -1
  31. package/dist/pool.js +4 -4
  32. package/dist/resources/index.cjs +27 -27
  33. package/dist/resources/index.d.cts +2 -2
  34. package/dist/resources/index.d.ts +2 -2
  35. package/dist/resources/index.js +3 -3
  36. package/dist/types/index.d.cts +1 -1
  37. package/dist/types/index.d.ts +1 -1
  38. package/docs/API.md +3 -2
  39. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { loadCapabilityRecords } from './chunk-OFYXDB5G.js';
1
+ import { loadCapabilityRecords } from './chunk-ECSE6B3U.js';
2
2
  import { NoopLogger, REDACTED, deepMarkUntrusted, wrapUntrusted } from './chunk-7NKB4UXV.js';
3
3
  import { randomUUID, createHash } from 'crypto';
4
4
  import { AsyncLocalStorage } from 'async_hooks';
@@ -9773,7 +9773,24 @@ var RELATIONSHIP_MAP = {
9773
9773
  "segment": "Notes",
9774
9774
  "field": "taskID"
9775
9775
  },
9776
- "children": [],
9776
+ "children": [
9777
+ {
9778
+ "resource": "task_note_attachments",
9779
+ "apiEntity": "TaskNoteAttachment",
9780
+ "parentField": "taskNoteID",
9781
+ "parentSegment": "Attachments",
9782
+ "tier": "extended",
9783
+ "workflowResource": false,
9784
+ "specialOps": [],
9785
+ "searchCovers": null,
9786
+ "scopedOps": {
9787
+ "create": true,
9788
+ "query": true,
9789
+ "update": false,
9790
+ "delete": true
9791
+ }
9792
+ }
9793
+ ],
9777
9794
  "naturalKeys": {
9778
9795
  "hasSearch": false,
9779
9796
  "searchCovers": null,
@@ -9904,6 +9921,72 @@ var RELATIONSHIP_MAP = {
9904
9921
  },
9905
9922
  "deleteBoundary": null,
9906
9923
  "markerField": null
9924
+ },
9925
+ "task_note_attachments": {
9926
+ "resource": "task_note_attachments",
9927
+ "apiEntity": "TaskNoteAttachment",
9928
+ "kind": "entity",
9929
+ "path": "TaskNoteAttachments",
9930
+ "parentScoped": true,
9931
+ "tier": "extended",
9932
+ "workflowResource": false,
9933
+ "group": "A",
9934
+ "parent": {
9935
+ "resource": "task_notes",
9936
+ "segment": "Attachments",
9937
+ "field": "taskNoteID"
9938
+ },
9939
+ "children": [],
9940
+ "naturalKeys": {
9941
+ "hasSearch": false,
9942
+ "searchCovers": null,
9943
+ "findBy": []
9944
+ },
9945
+ "blindSurfaces": null,
9946
+ "zoneFacts": {
9947
+ "createGuidance": {
9948
+ "createOp": "task_note_attachments.create",
9949
+ "parentScoped": true,
9950
+ "liveProvenPrefix": [],
9951
+ "unproven": true,
9952
+ "blocker": {
9953
+ "kind": "unknown",
9954
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
9955
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
9956
+ "requires": {
9957
+ "allOf": [
9958
+ "attachmentType",
9959
+ "fullPath",
9960
+ "title",
9961
+ "publish",
9962
+ "data"
9963
+ ]
9964
+ }
9965
+ },
9966
+ "requiresByValue": [
9967
+ {
9968
+ "field": "attachmentType",
9969
+ "value": "FILE_ATTACHMENT",
9970
+ "requires": {
9971
+ "allOf": [
9972
+ "data"
9973
+ ]
9974
+ }
9975
+ }
9976
+ ],
9977
+ "vendorEvidence": [
9978
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/TaskNoteAttachmentsEntity.htm",
9979
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
9980
+ "Official entity URLs table repeats TaskNotes routes, while vendored TaskNoteAttachments controllers define the actual scoped attachment routes. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
9981
+ ],
9982
+ "deleteBoundary": {
9983
+ "available": true,
9984
+ "note": null
9985
+ }
9986
+ }
9987
+ },
9988
+ "deleteBoundary": null,
9989
+ "markerField": null
9907
9990
  }
9908
9991
  };
9909
9992
  var BLIND_SURFACE_STAMPS = {
@@ -13491,6 +13574,47 @@ var CREATE_GUIDANCE = {
13491
13574
  }
13492
13575
  ]
13493
13576
  },
13577
+ {
13578
+ "resource": "task_note_attachments",
13579
+ "createOp": "task_note_attachments.create",
13580
+ "parentScoped": true,
13581
+ "liveProvenPrefix": [],
13582
+ "unproven": true,
13583
+ "blocker": {
13584
+ "kind": "unknown",
13585
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
13586
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
13587
+ "requires": {
13588
+ "allOf": [
13589
+ "attachmentType",
13590
+ "fullPath",
13591
+ "title",
13592
+ "publish",
13593
+ "data"
13594
+ ]
13595
+ }
13596
+ },
13597
+ "vendorEvidence": [
13598
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/TaskNoteAttachmentsEntity.htm",
13599
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
13600
+ "Official entity URLs table repeats TaskNotes routes, while vendored TaskNoteAttachments controllers define the actual scoped attachment routes. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
13601
+ ],
13602
+ "deleteBoundary": {
13603
+ "available": true,
13604
+ "note": null
13605
+ },
13606
+ "requiresByValue": [
13607
+ {
13608
+ "field": "attachmentType",
13609
+ "value": "FILE_ATTACHMENT",
13610
+ "requires": {
13611
+ "allOf": [
13612
+ "data"
13613
+ ]
13614
+ }
13615
+ }
13616
+ ]
13617
+ },
13494
13618
  {
13495
13619
  "resource": "task_notes",
13496
13620
  "createOp": "task_notes.create",
@@ -14084,7 +14208,7 @@ var CREATE_GUIDANCE = {
14084
14208
  }
14085
14209
  ],
14086
14210
  "counts": {
14087
- "total": 105,
14211
+ "total": 106,
14088
14212
  "byKind": {
14089
14213
  "ok": 41,
14090
14214
  "blind-reference": 16,
@@ -14094,7 +14218,7 @@ var CREATE_GUIDANCE = {
14094
14218
  "resource-role-pair": 2,
14095
14219
  "delete-absent": 0,
14096
14220
  "non-mutable": 0,
14097
- "unknown": 29
14221
+ "unknown": 30
14098
14222
  }
14099
14223
  }
14100
14224
  };
@@ -14827,6 +14951,9 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
14827
14951
  ],
14828
14952
  "task_attachments": [
14829
14953
  "title"
14954
+ ],
14955
+ "task_note_attachments": [
14956
+ "title"
14830
14957
  ]
14831
14958
  };
14832
14959
 
@@ -17922,6 +18049,7 @@ var MODEL_FIELD_SETS = {
17922
18049
  "tag_groups": ["id", "displayColor", "isActive", "isSystem", "label"],
17923
18050
  "tags": ["id", "createDateTime", "isActive", "isExcludedFromAutomaticTagging", "isSystem", "label", "lastModifiedDateTime", "tagGroupID"],
17924
18051
  "task_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentAttachmentID", "parentID", "publish", "taskID", "taskNoteID", "timeEntryID", "title", "data", "isTaskAttachment", "parentType", "soapParentPropertyId"],
18052
+ "task_note_attachments": ["id", "isTaskAttachment", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "taskID", "taskNoteID", "title", "data", "parentType", "soapParentPropertyId"],
17925
18053
  "task_notes": ["id", "createDateTime", "creatorResourceID", "createdByContactID", "description", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "lastActivityDate", "noteType", "publish", "taskID", "title", "soapParentPropertyId"],
17926
18054
  "task_predecessors": ["id", "lagDays", "predecessorTaskID", "successorTaskID", "soapParentPropertyId"],
17927
18055
  "task_secondary_resources": ["id", "resourceID", "roleID", "taskID", "soapParentPropertyId"],
@@ -18001,6 +18129,7 @@ var MODEL_DATE_FIELDS = {
18001
18129
  "survey_results": ["completeDate", "sendDate"],
18002
18130
  "tags": ["createDateTime", "lastModifiedDateTime"],
18003
18131
  "task_attachments": ["attachDate"],
18132
+ "task_note_attachments": ["attachDate"],
18004
18133
  "task_notes": ["createDateTime", "lastActivityDate"],
18005
18134
  "tasks": ["completedDateTime", "createDateTime", "endDateTime", "lastActivityDateTime", "startDateTime"],
18006
18135
  "ticket_attachments": ["attachDate"],
@@ -20356,7 +20485,11 @@ async function findUnknownFieldNames(record, holder, lists) {
20356
20485
 
20357
20486
  // src/resources/special/taskAttachments.ts
20358
20487
  var WRITABLE2 = /* @__PURE__ */ new Set(["attachmentType", "contentType", "data", "fullPath", "parentAttachmentID", "publish", "taskID", "title"]);
20488
+ var NOTE_WRITABLE = /* @__PURE__ */ new Set(["attachmentType", "data", "fullPath", "publish", "title", "attachedByContactID"]);
20359
20489
  var NON_QUERYABLE = /* @__PURE__ */ new Set(["creatortype", "data", "filesize"]);
20490
+ function isBase64(value) {
20491
+ return value.length % 4 === 0 && /^[A-Za-z0-9+/]+={0,2}$/.test(value);
20492
+ }
20360
20493
  function admitTaskAttachment(data, parentId) {
20361
20494
  const parent = parseIdentifier(parentId, "parentId");
20362
20495
  const fail2 = (message) => {
@@ -20374,7 +20507,7 @@ function admitTaskAttachment(data, parentId) {
20374
20507
  }
20375
20508
  if (body.attachmentType === "FILE_ATTACHMENT") {
20376
20509
  if (typeof body.data !== "string" || body.data === "") return fail2("FILE_ATTACHMENT requires non-empty base64 data");
20377
- if (body.data.length % 4 !== 0 || !/^[A-Za-z0-9+/]+={0,2}$/.test(body.data)) fail2("FILE_ATTACHMENT data must be base64 encoded");
20510
+ if (!isBase64(body.data)) fail2("FILE_ATTACHMENT data must be base64 encoded");
20378
20511
  }
20379
20512
  if (body.taskID !== void 0) {
20380
20513
  if (typeof body.taskID !== "number") fail2("taskID must be a numeric identifier");
@@ -20385,13 +20518,32 @@ function admitTaskAttachment(data, parentId) {
20385
20518
  parseIdentifier(body.parentAttachmentID, "parentAttachmentID");
20386
20519
  }
20387
20520
  }
20388
- function admitTaskAttachmentQuery(params) {
20389
- const fields = collectFilterFieldNames(normalizedConditions(params?.filter) ?? [], "task_attachments");
20521
+ function admitTaskNoteAttachment(data, parentId) {
20522
+ parseIdentifier(parentId, "parentId");
20523
+ const fail2 = (message) => {
20524
+ throw new AutotaskConfigError(`task_note_attachments: ${message}`);
20525
+ };
20526
+ if (data === null || typeof data !== "object" || ![Object.prototype, null].includes(Object.getPrototypeOf(data))) fail2("data must be a plain record");
20527
+ const body = data;
20528
+ for (const field of Object.keys(body)) if (!NOTE_WRITABLE.has(field)) fail2(`${field} is not a supported create field`);
20529
+ if (body.attachmentType !== "FILE_ATTACHMENT") fail2("attachmentType must explicitly be FILE_ATTACHMENT; other attachment types are unsupported");
20530
+ for (const field of ["fullPath", "title"]) {
20531
+ if (typeof body[field] !== "string" || body[field].trim() === "" || body[field].length > 255) fail2(`${field} is required and must be a nonblank string of at most 255 characters`);
20532
+ }
20533
+ if (typeof body.publish !== "number" || !Number.isSafeInteger(body.publish)) fail2("publish must be an integer from current field metadata");
20534
+ if (typeof body.data !== "string" || !isBase64(body.data)) fail2("FILE_ATTACHMENT requires nonempty base64 data");
20535
+ if (body.attachedByContactID !== void 0) {
20536
+ if (typeof body.attachedByContactID !== "number") fail2("attachedByContactID must be a numeric identifier");
20537
+ if (parseIdentifier(body.attachedByContactID, "attachedByContactID") === 0) fail2("attachedByContactID must be positive");
20538
+ }
20539
+ }
20540
+ function admitTaskAttachmentQuery(resource, params) {
20541
+ const fields = collectFilterFieldNames(normalizedConditions(params?.filter) ?? [], resource);
20390
20542
  for (const field of fields) {
20391
- if (NON_QUERYABLE.has(field.toLowerCase())) throw new AutotaskConfigError(`task_attachments: ${field} is not queryable`);
20543
+ if (NON_QUERYABLE.has(field.toLowerCase())) throw new AutotaskConfigError(`${resource}: ${field} is not queryable`);
20392
20544
  }
20393
20545
  }
20394
- function assertTaskAttachmentIdentity(model, parentId, id) {
20546
+ function assertTaskAttachmentIdentity(resource, model, parentId, id) {
20395
20547
  const matches = (value, expected) => {
20396
20548
  try {
20397
20549
  return parseIdentifier(value) === parseIdentifier(expected);
@@ -20399,11 +20551,13 @@ function assertTaskAttachmentIdentity(model, parentId, id) {
20399
20551
  return false;
20400
20552
  }
20401
20553
  };
20402
- if (!isRecord2(model) || !matches(model.id, id) || model.taskID != null && !matches(model.taskID, parentId)) {
20403
- throw new AutotaskError("Returned attachment identifiers contradict the requested task or attachment", {
20554
+ const parentField = resource === "task_attachments" ? "taskID" : "taskNoteID";
20555
+ if (!isRecord2(model) || !matches(model.id, id) || model[parentField] != null && !matches(model[parentField], parentId)) {
20556
+ const parentName = resource === "task_attachments" ? "task" : "task note";
20557
+ throw new AutotaskError(`Returned attachment identifiers contradict the requested ${parentName} or attachment`, {
20404
20558
  code: "INVALID_RESPONSE",
20405
20559
  category: "server",
20406
- operation: "task_attachments.get"
20560
+ operation: `${resource}.get`
20407
20561
  });
20408
20562
  }
20409
20563
  }
@@ -21653,6 +21807,20 @@ var SIMPLE_RESOURCES = [
21653
21807
  helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
21654
21808
  opForms: { get: "scoped", create: "scoped", delete: "scoped" }
21655
21809
  },
21810
+ {
21811
+ key: "task_note_attachments",
21812
+ accessor: "taskNoteAttachments",
21813
+ resourcePath: "/V1.0/TaskNoteAttachments",
21814
+ parentScopedPath: "/V1.0/TaskNotes/{parentId}/Attachments",
21815
+ parentPath: "/V1.0/TaskNotes",
21816
+ parentField: "taskNoteID",
21817
+ deletable: true,
21818
+ udfCapable: false,
21819
+ attachmentGet: true,
21820
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
21821
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
21822
+ opForms: { get: "scoped", create: "scoped", delete: "scoped" }
21823
+ },
21656
21824
  {
21657
21825
  key: "task_notes",
21658
21826
  accessor: "taskNotes",
@@ -21941,10 +22109,10 @@ var SIMPLE_RESOURCES = [
21941
22109
  var GenericResource = class extends BaseResource {
21942
22110
  constructor(http, config, pageSize) {
21943
22111
  super(http, config, pageSize);
21944
- if (["company_attachments", "company_note_attachments", "task_attachments"].includes(config.key)) this.getUdfInfo = async () => {
22112
+ if (["company_attachments", "company_note_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
21945
22113
  throw new OperationNotSupportedError(config.key, "getUdfInfo");
21946
22114
  };
21947
- if (config.ops?.create === false || ["company_attachments", "task_attachments", "task_predecessors"].includes(config.key)) this.createIfNotExists = async () => {
22115
+ if (config.ops?.create === false || ["company_attachments", "task_attachments", "task_note_attachments", "task_predecessors"].includes(config.key)) this.createIfNotExists = async () => {
21948
22116
  throw new OperationNotSupportedError(config.key, "createIfNotExists");
21949
22117
  };
21950
22118
  if (config.key === "task_notes") {
@@ -21976,15 +22144,18 @@ var GenericResource = class extends BaseResource {
21976
22144
  }
21977
22145
  async getScopedModel(parentId, id, fresh = false) {
21978
22146
  const model = await super.getScopedModel(parentId, id, fresh);
21979
- if (this.config.key === "task_attachments") assertTaskAttachmentIdentity(model, parentId, id);
22147
+ const key = this.config.key;
22148
+ if (key === "task_attachments" || key === "task_note_attachments") assertTaskAttachmentIdentity(key, model, parentId, id);
21980
22149
  return model;
21981
22150
  }
21982
22151
  async fetchPage(params, page, pageSize, state2) {
21983
- if (this.config.key === "task_attachments") admitTaskAttachmentQuery(params);
22152
+ const key = this.config.key;
22153
+ if (key === "task_attachments" || key === "task_note_attachments") admitTaskAttachmentQuery(key, params);
21984
22154
  return super.fetchPage(params, page, pageSize, state2);
21985
22155
  }
21986
22156
  async countGlobal(params) {
21987
- if (this.config.key === "task_attachments") admitTaskAttachmentQuery(params);
22157
+ const key = this.config.key;
22158
+ if (key === "task_attachments" || key === "task_note_attachments") admitTaskAttachmentQuery(key, params);
21988
22159
  return super.countGlobal(params);
21989
22160
  }
21990
22161
  /** Query records with the G3 filter surface (server-side JSON filter). */
@@ -22027,6 +22198,7 @@ var GenericResource = class extends BaseResource {
22027
22198
  const opts2 = this.config.key === "task_predecessors" ? { ...c } : c ?? {};
22028
22199
  if (this.config.key === "task_notes") admitTaskNote(data2, parentId, true);
22029
22200
  if (this.config.key === "task_attachments") admitTaskAttachment(data2, parentId);
22201
+ if (this.config.key === "task_note_attachments") admitTaskNoteAttachment(data2, parentId);
22030
22202
  if (this.config.key === "task_predecessors") await guardTaskPredecessor(this.http, parentId, void 0, data2);
22031
22203
  if (opts2.dryRun === true) return this.runCreateDryRun(data2, parentId);
22032
22204
  return this.createScopedRaw(parentId, data2, opts2);
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk52YS7NCR_cjs = require('./chunk-52YS7NCR.cjs');
4
- var chunk54CRUNXF_cjs = require('./chunk-54CRUNXF.cjs');
3
+ var chunkYRTOAPWD_cjs = require('./chunk-YRTOAPWD.cjs');
4
+ var chunkY4BH5N6R_cjs = require('./chunk-Y4BH5N6R.cjs');
5
5
 
6
6
  // src/client.ts
7
7
  var AutotaskClient = class {
@@ -124,6 +124,7 @@ var AutotaskClient = class {
124
124
  tagGroups;
125
125
  tags;
126
126
  taskAttachments;
127
+ taskNoteAttachments;
127
128
  taskNotes;
128
129
  taskPredecessors;
129
130
  tasks;
@@ -160,34 +161,34 @@ var AutotaskClient = class {
160
161
  * anything is wired. Construction issues NO request.
161
162
  */
162
163
  constructor(options) {
163
- this.config = chunk54CRUNXF_cjs.resolveConfig(options);
164
- this.http = new chunk54CRUNXF_cjs.HttpClient(this.config);
164
+ this.config = chunkY4BH5N6R_cjs.resolveConfig(options);
165
+ this.http = new chunkY4BH5N6R_cjs.HttpClient(this.config);
165
166
  this.http.client = this;
166
- for (const entry of chunk54CRUNXF_cjs.SIMPLE_RESOURCES) {
167
- this[entry.accessor] = new chunk54CRUNXF_cjs.GenericResource(this.http, entry, this.config.pageSize);
167
+ for (const entry of chunkY4BH5N6R_cjs.SIMPLE_RESOURCES) {
168
+ this[entry.accessor] = new chunkY4BH5N6R_cjs.GenericResource(this.http, entry, this.config.pageSize);
168
169
  }
169
- this.companies = new chunk54CRUNXF_cjs.CompaniesResource(this.http, this.config.pageSize);
170
- this.configurationItems = new chunk52YS7NCR_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
171
- this.contacts = new chunk52YS7NCR_cjs.ContactsResource(this.http, this.config.pageSize);
172
- this.contracts = new chunk54CRUNXF_cjs.ContractsResource(this.http, this.config.pageSize);
173
- this.inventoryProducts = new chunk52YS7NCR_cjs.InventoryProductsResource(this.http, this.config.pageSize);
174
- this.invoices = new chunk54CRUNXF_cjs.InvoicesResource(this.http, this.config.pageSize);
175
- this.quotes = new chunk52YS7NCR_cjs.QuotesResource(this.http, this.config.pageSize);
176
- this.resourceTimeOffAdditional = new chunk52YS7NCR_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
177
- this.resourceTimeOffBalances = new chunk52YS7NCR_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
178
- this.resources = new chunk52YS7NCR_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
179
- this.serviceCalls = new chunk52YS7NCR_cjs.ServiceCallsResource(this.http, this.config.pageSize);
180
- this.ticketCharges = new chunk52YS7NCR_cjs.TicketChargesResource(this.http, this.config.pageSize);
181
- this.tickets = new chunk52YS7NCR_cjs.TicketsResource(this.http, this.config.pageSize);
182
- this.timeEntries = new chunk54CRUNXF_cjs.TimeEntriesResource(this.http, this.config.pageSize);
183
- this.timeOffRequests = new chunk52YS7NCR_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
184
- this.authenticateResource = new chunk52YS7NCR_cjs.AuthenticateResource(this.http);
185
- this.entityInformation = new chunk52YS7NCR_cjs.EntityInformationResource(this.http);
186
- this.modules = new chunk52YS7NCR_cjs.ModulesResource(this.http);
187
- this.thresholdInformation = new chunk52YS7NCR_cjs.ThresholdInformationResource(this.http);
188
- this.version = new chunk52YS7NCR_cjs.VersionResource(this.http);
189
- this.versionInformation = new chunk52YS7NCR_cjs.VersionInformationResource(this.http);
190
- this.zoneInformation = new chunk52YS7NCR_cjs.ZoneInformationResource(this.http);
170
+ this.companies = new chunkY4BH5N6R_cjs.CompaniesResource(this.http, this.config.pageSize);
171
+ this.configurationItems = new chunkYRTOAPWD_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
172
+ this.contacts = new chunkYRTOAPWD_cjs.ContactsResource(this.http, this.config.pageSize);
173
+ this.contracts = new chunkY4BH5N6R_cjs.ContractsResource(this.http, this.config.pageSize);
174
+ this.inventoryProducts = new chunkYRTOAPWD_cjs.InventoryProductsResource(this.http, this.config.pageSize);
175
+ this.invoices = new chunkY4BH5N6R_cjs.InvoicesResource(this.http, this.config.pageSize);
176
+ this.quotes = new chunkYRTOAPWD_cjs.QuotesResource(this.http, this.config.pageSize);
177
+ this.resourceTimeOffAdditional = new chunkYRTOAPWD_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
178
+ this.resourceTimeOffBalances = new chunkYRTOAPWD_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
179
+ this.resources = new chunkYRTOAPWD_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
180
+ this.serviceCalls = new chunkYRTOAPWD_cjs.ServiceCallsResource(this.http, this.config.pageSize);
181
+ this.ticketCharges = new chunkYRTOAPWD_cjs.TicketChargesResource(this.http, this.config.pageSize);
182
+ this.tickets = new chunkYRTOAPWD_cjs.TicketsResource(this.http, this.config.pageSize);
183
+ this.timeEntries = new chunkY4BH5N6R_cjs.TimeEntriesResource(this.http, this.config.pageSize);
184
+ this.timeOffRequests = new chunkYRTOAPWD_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
185
+ this.authenticateResource = new chunkYRTOAPWD_cjs.AuthenticateResource(this.http);
186
+ this.entityInformation = new chunkYRTOAPWD_cjs.EntityInformationResource(this.http);
187
+ this.modules = new chunkYRTOAPWD_cjs.ModulesResource(this.http);
188
+ this.thresholdInformation = new chunkYRTOAPWD_cjs.ThresholdInformationResource(this.http);
189
+ this.version = new chunkYRTOAPWD_cjs.VersionResource(this.http);
190
+ this.versionInformation = new chunkYRTOAPWD_cjs.VersionInformationResource(this.http);
191
+ this.zoneInformation = new chunkYRTOAPWD_cjs.ZoneInformationResource(this.http);
191
192
  }
192
193
  /**
193
194
  * `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
@@ -221,10 +222,10 @@ var AutotaskClient = class {
221
222
  * parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
222
223
  */
223
224
  withSignal(signal, fn) {
224
- return chunk54CRUNXF_cjs.runWithSignal(signal, fn);
225
+ return chunkY4BH5N6R_cjs.runWithSignal(signal, fn);
225
226
  }
226
227
  async batch(fn, items, opts = {}) {
227
- return chunk54CRUNXF_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
228
+ return chunkY4BH5N6R_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
228
229
  }
229
230
  };
230
231
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  // src/capabilities.ts
4
4
  var CAPABILITY_PLAN_HASHES = {
5
- "B": "3732a92572dcff19995b19cf9ba1dec6156153313f5d54704d1cca885d1aff45",
6
- "A": "3732a92572dcff19995b19cf9ba1dec6156153313f5d54704d1cca885d1aff45",
7
- "operations": "3732a92572dcff19995b19cf9ba1dec6156153313f5d54704d1cca885d1aff45"
5
+ "B": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4",
6
+ "A": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4",
7
+ "operations": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4"
8
8
  };
9
9
  var cached = null;
10
10
  function loadCapabilities() {
@@ -1,8 +1,8 @@
1
1
  // src/capabilities.ts
2
2
  var CAPABILITY_PLAN_HASHES = {
3
- "B": "3732a92572dcff19995b19cf9ba1dec6156153313f5d54704d1cca885d1aff45",
4
- "A": "3732a92572dcff19995b19cf9ba1dec6156153313f5d54704d1cca885d1aff45",
5
- "operations": "3732a92572dcff19995b19cf9ba1dec6156153313f5d54704d1cca885d1aff45"
3
+ "B": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4",
4
+ "A": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4",
5
+ "operations": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4"
6
6
  };
7
7
  var cached = null;
8
8
  function loadCapabilities() {
@@ -1,5 +1,5 @@
1
- import { GenericResource, readTasks, OperationNotSupportedError, parseIdentifier, AutotaskConfigError, isRecord, isDateYMD, isAutotaskError, RateLimitError, MaintenanceError, AutotaskError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-MCAGTC6R.js';
2
- import { loadCapabilityRecords } from './chunk-OFYXDB5G.js';
1
+ import { GenericResource, readTasks, OperationNotSupportedError, parseIdentifier, AutotaskConfigError, isRecord, isDateYMD, isAutotaskError, RateLimitError, MaintenanceError, AutotaskError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-3SFIKG2R.js';
2
+ import { loadCapabilityRecords } from './chunk-ECSE6B3U.js';
3
3
 
4
4
  // src/resources/special/configuration_items.ts
5
5
  async function fetchRecord(http, path, label, readOpts) {
@@ -1,5 +1,5 @@
1
- import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-JEARDPBL.js';
2
- import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-MCAGTC6R.js';
1
+ import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-S7QPD6TR.js';
2
+ import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-3SFIKG2R.js';
3
3
 
4
4
  // src/client.ts
5
5
  var AutotaskClient = class {
@@ -122,6 +122,7 @@ var AutotaskClient = class {
122
122
  tagGroups;
123
123
  tags;
124
124
  taskAttachments;
125
+ taskNoteAttachments;
125
126
  taskNotes;
126
127
  taskPredecessors;
127
128
  tasks;