node-autotask 0.71.0 → 0.72.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 +10 -0
  2. package/MCP_TOOL_CATALOG.json +155 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +519 -9
  5. package/dist/capabilities-data.js +518 -8
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-YKQ2KNQO.js → chunk-A4IRIYZ5.js} +3 -2
  9. package/dist/{chunk-4OR3XBIP.js → chunk-EGG2RGL5.js} +145 -4
  10. package/dist/{chunk-5COLIVBE.js → chunk-F2TYZKJS.js} +2 -2
  11. package/dist/{chunk-4DSLRDIF.cjs → chunk-HJVTA7SI.cjs} +31 -30
  12. package/dist/{chunk-LKJA57CH.js → chunk-K33DPJFK.js} +3 -3
  13. package/dist/{chunk-QQFF7X67.cjs → chunk-KVC5DZAP.cjs} +150 -9
  14. package/dist/{chunk-JLCHKCEB.cjs → chunk-SPME362B.cjs} +3 -3
  15. package/dist/{chunk-QJ327YI6.cjs → chunk-V5UGW6KZ.cjs} +177 -177
  16. package/dist/{index-CM_SRgtH.d.cts → index-BXnhBnhN.d.cts} +40 -1
  17. package/dist/{index-CM_SRgtH.d.ts → index-BXnhBnhN.d.ts} +40 -1
  18. package/dist/{index-CAXT5ZKT.d.cts → index-CqsY5YHt.d.cts} +3 -2
  19. package/dist/{index-lGpxr4gY.d.ts → index-DxfspQR1.d.ts} +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 +25 -6
  39. package/package.json +1 -1
package/capabilities.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
- "generatedAt": "2026-11-18T09:40:46.394Z",
2
+ "generatedAt": "2026-11-18T13:26:09.242Z",
3
3
  "groups": {
4
4
  "B": {
5
- "planHash": "275fdf2fd6712f9384c1a65f98c5faf1fda9695475ffbdf35c08e574c18b4157",
6
- "builtAt": "2026-11-18T09:40:46.384Z",
5
+ "planHash": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
6
+ "builtAt": "2026-11-18T13:26:09.223Z",
7
7
  "records": [
8
8
  {
9
9
  "id": "appointments.count",
@@ -42786,8 +42786,8 @@
42786
42786
  ]
42787
42787
  },
42788
42788
  "A": {
42789
- "planHash": "275fdf2fd6712f9384c1a65f98c5faf1fda9695475ffbdf35c08e574c18b4157",
42790
- "builtAt": "2026-11-18T09:40:46.384Z",
42789
+ "planHash": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
42790
+ "builtAt": "2026-11-18T13:26:09.224Z",
42791
42791
  "records": [
42792
42792
  {
42793
42793
  "id": "attachment_info.count",
@@ -49725,7 +49725,7 @@
49725
49725
  "drops": []
49726
49726
  },
49727
49727
  "examples": [
49728
- "await client.configurationItemDnsRecords.count({ filter: [{ field: 'name', op: 'eq', value: 'example' }] })"
49728
+ "await invoke(client, 'configuration_item_dns_records.count', [{ filter: [{ field: 'installedProductID', op: 'eq', value: 7 }] }])"
49729
49729
  ],
49730
49730
  "permissions": "unknown",
49731
49731
  "pagination": {
@@ -50101,7 +50101,7 @@
50101
50101
  "drops": []
50102
50102
  },
50103
50103
  "examples": [
50104
- "await client.configurationItemDnsRecords.query({ filter: [{ field: 'name', op: 'eq', value: 'example' }], limit: 500 })"
50104
+ "await invoke(client, 'configuration_item_dns_records.query', [{ filter: [{ field: 'installedProductID', op: 'eq', value: 7 }], limit: 500 }])"
50105
50105
  ],
50106
50106
  "permissions": "unknown",
50107
50107
  "pagination": {
@@ -74405,6 +74405,516 @@
74405
74405
  "compact": null,
74406
74406
  "status": "tested"
74407
74407
  },
74408
+ {
74409
+ "id": "task_notes.count",
74410
+ "resource": "task_notes",
74411
+ "udfCapable": false,
74412
+ "operation": "count",
74413
+ "kind": "primitive",
74414
+ "endpoint": "GET|POST /V1.0/TaskNotes/query/count",
74415
+ "effect": "read",
74416
+ "flags": [],
74417
+ "dryRun": false,
74418
+ "envelope": "QueryCountResultModel",
74419
+ "inputSchema": {
74420
+ "params": {
74421
+ "type": "object",
74422
+ "required": false,
74423
+ "description": "The query params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only wire parameter (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too.",
74424
+ "properties": [
74425
+ {
74426
+ "name": "filter",
74427
+ "type": "FilterCondition[]",
74428
+ "optional": true
74429
+ },
74430
+ {
74431
+ "name": "fieldCheck",
74432
+ "type": "boolean",
74433
+ "optional": true
74434
+ }
74435
+ ]
74436
+ }
74437
+ },
74438
+ "inputSchemaStrict": true,
74439
+ "outputSchema": {
74440
+ "type": "QueryCountResultModel",
74441
+ "drops": []
74442
+ },
74443
+ "examples": [
74444
+ "await invoke(client, 'task_notes.count', [{ filter: [{ field: 'taskID', op: 'eq', value: 7 }] }])"
74445
+ ],
74446
+ "permissions": "unknown",
74447
+ "pagination": {
74448
+ "mode": "none"
74449
+ },
74450
+ "resolution": null,
74451
+ "retry": {
74452
+ "preset": "retry-ffb3a9cb"
74453
+ },
74454
+ "errors": {
74455
+ "set": 0
74456
+ },
74457
+ "metadata": {
74458
+ "purpose": "Count task note records matching a JSON filter.",
74459
+ "usage": "Unwraps queryCount; returns a plain number.",
74460
+ "preferredWhen": null,
74461
+ "related": [
74462
+ "task_notes.query"
74463
+ ],
74464
+ "args": "args[0] is a params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only parameter sent to the vendor (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars.",
74465
+ "untrustedFields": [
74466
+ "description",
74467
+ "title"
74468
+ ]
74469
+ },
74470
+ "compact": null,
74471
+ "status": "tested"
74472
+ },
74473
+ {
74474
+ "id": "task_notes.create",
74475
+ "resource": "task_notes",
74476
+ "udfCapable": false,
74477
+ "operation": "create",
74478
+ "kind": "primitive",
74479
+ "endpoint": "POST /V1.0/Tasks/{parentId}/Notes",
74480
+ "effect": "write",
74481
+ "flags": [],
74482
+ "dryRun": true,
74483
+ "envelope": "OperationResultModel",
74484
+ "inputSchema": {
74485
+ "parentId": {
74486
+ "type": "string | number",
74487
+ "required": true,
74488
+ "description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
74489
+ },
74490
+ "data": {
74491
+ "type": "object",
74492
+ "required": true,
74493
+ "description": "The record payload (vendor model fields)."
74494
+ }
74495
+ },
74496
+ "inputSchemaStrict": true,
74497
+ "outputSchema": {
74498
+ "type": "OperationResultModel",
74499
+ "drops": []
74500
+ },
74501
+ "examples": [
74502
+ "const fields = await client.taskNotes.getFieldInfo();\nconst activeValue = (name) => {\n const field = fields.find(field => field.name === name && field.isPickList === true);\n const choice = field?.picklistValues?.find(choice => choice.isActive === true && typeof choice.value === 'string' && /^-?\\d+$/.test(choice.value) && Number.isSafeInteger(Number(choice.value)));\n if (!choice) throw new Error(`No active integer picklist choice is available for ${name}; check TaskNotes field metadata.`);\n return Number(choice.value);\n};\nconst noteType = activeValue('noteType');\nconst publish = activeValue('publish');\nawait client.taskNotes.create(7, { description: 'Work completed', title: 'Progress', noteType, publish, taskID: 7 }, { dryRun: true });"
74503
+ ],
74504
+ "permissions": "unknown",
74505
+ "pagination": {
74506
+ "mode": "none"
74507
+ },
74508
+ "resolution": null,
74509
+ "retry": {
74510
+ "preset": "retry-c5657094"
74511
+ },
74512
+ "errors": {
74513
+ "set": 1
74514
+ },
74515
+ "metadata": {
74516
+ "purpose": "Create a task note.",
74517
+ "usage": "Returns OperationResultModel.itemId (the new id); the full record is not returned — follow up with get where needed. Parent-scoped: parentId is a path parameter. Description writes use plain text and can lose existing rich text/images. The create body must include taskID equal to the parentId path argument; official documentation does not establish that the URL fills this required field. Current field metadata supplies picklist values; no numeric value is presumed valid. Baseline-project notes are read-only. Task Category settings may require title. Contact impersonation requires permission, publish ALL (resolve its value from current metadata), an active contact and account, and a task belonging to the contact's account or a child account. Writable fields: description (max 3200), title (max 250), noteType, publish, createdByContactID and matching taskID; creator/date fields and UDF writes are refused. Create requires description, noteType, publish and taskID.",
74518
+ "preferredWhen": "Only for a record that does not exist yet; prefer update for an id you already have.",
74519
+ "related": [
74520
+ "task_notes.update"
74521
+ ],
74522
+ "deleteBoundary": {
74523
+ "resource": "task_notes",
74524
+ "note": "The vendor defines no DELETE for task_notes (spec-derived); a created task note cannot be removed through the public API.",
74525
+ "proof": "spec-derived"
74526
+ },
74527
+ "untrustedFields": [
74528
+ "description",
74529
+ "title"
74530
+ ]
74531
+ },
74532
+ "compact": null,
74533
+ "status": "tested"
74534
+ },
74535
+ {
74536
+ "id": "task_notes.get",
74537
+ "resource": "task_notes",
74538
+ "udfCapable": false,
74539
+ "operation": "get",
74540
+ "kind": "primitive",
74541
+ "endpoint": "GET /V1.0/Tasks/{parentId}/Notes/{id}",
74542
+ "effect": "read",
74543
+ "flags": [],
74544
+ "dryRun": false,
74545
+ "envelope": "ItemQueryResultModel[TaskNoteModel,TaskNote]",
74546
+ "inputSchema": {
74547
+ "parentId": {
74548
+ "type": "string | number",
74549
+ "required": true,
74550
+ "description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
74551
+ },
74552
+ "id": {
74553
+ "type": "string | number",
74554
+ "required": true,
74555
+ "description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
74556
+ },
74557
+ "opts": {
74558
+ "type": "object",
74559
+ "required": false,
74560
+ "description": "The read options bag (CLOSED): { fresh?: boolean } — fresh: true bypasses the read-cache lookup and refreshes the entry with the live response. Omitted: the cached read (default unchanged). A positional fresh via invoke is REFUSED (typed error, zero wire — the fresh invoke option is the only spelling); the typed method get(id, { fresh: true }) is unchanged.",
74561
+ "properties": [
74562
+ {
74563
+ "name": "fresh",
74564
+ "type": "boolean",
74565
+ "optional": true
74566
+ }
74567
+ ]
74568
+ }
74569
+ },
74570
+ "inputSchemaStrict": true,
74571
+ "outputSchema": {
74572
+ "type": "ItemQueryResultModel[TaskNoteModel,TaskNote]",
74573
+ "drops": []
74574
+ },
74575
+ "examples": [
74576
+ "await client.taskNotes.get(7, 3)"
74577
+ ],
74578
+ "permissions": "unknown",
74579
+ "pagination": {
74580
+ "mode": "none"
74581
+ },
74582
+ "resolution": null,
74583
+ "retry": {
74584
+ "preset": "retry-ffb3a9cb"
74585
+ },
74586
+ "errors": {
74587
+ "set": 3
74588
+ },
74589
+ "metadata": {
74590
+ "purpose": "Get one TaskNote by id.",
74591
+ "usage": "item: null on the 200 body maps to NotFoundError (vendor not-found signal). Parent-scoped: parentId + id.",
74592
+ "preferredWhen": "Preferred when the parent task ID and note ID are known; use a bounded taskID-filtered query to discover notes.",
74593
+ "related": [],
74594
+ "args": "args are (parentId: number, id: number) Item GET returns the FULL vendor model — the vendor documents no field selection on single-record reads. For a slim record use a task_notes.query with includeFields.",
74595
+ "untrustedFields": [
74596
+ "description",
74597
+ "title"
74598
+ ]
74599
+ },
74600
+ "compact": null,
74601
+ "status": "tested"
74602
+ },
74603
+ {
74604
+ "id": "task_notes.getEntityInfo",
74605
+ "resource": "task_notes",
74606
+ "udfCapable": false,
74607
+ "operation": "getEntityInfo",
74608
+ "kind": "primitive",
74609
+ "endpoint": "GET /V1.0/TaskNotes/entityInformation",
74610
+ "effect": "read",
74611
+ "flags": [],
74612
+ "dryRun": false,
74613
+ "envelope": "EntityInformationResultModel",
74614
+ "inputSchema": {},
74615
+ "inputSchemaStrict": true,
74616
+ "outputSchema": {
74617
+ "type": "EntityInformationResultModel",
74618
+ "drops": []
74619
+ },
74620
+ "examples": [
74621
+ "await client.taskNotes.getEntityInfo()"
74622
+ ],
74623
+ "permissions": "unknown",
74624
+ "pagination": {
74625
+ "mode": "none"
74626
+ },
74627
+ "resolution": null,
74628
+ "retry": {
74629
+ "preset": "retry-ffb3a9cb"
74630
+ },
74631
+ "errors": {
74632
+ "set": 0
74633
+ },
74634
+ "metadata": {
74635
+ "purpose": "Get the TaskNote capability metadata (canCreate/canUpdate/hasUserDefinedFields/...).",
74636
+ "usage": "Unwraps info{}; drives client-side capability checks.",
74637
+ "preferredWhen": null,
74638
+ "related": [
74639
+ "task_notes.getFieldInfo"
74640
+ ],
74641
+ "untrustedFields": [
74642
+ "description",
74643
+ "title"
74644
+ ]
74645
+ },
74646
+ "compact": null,
74647
+ "status": "tested"
74648
+ },
74649
+ {
74650
+ "id": "task_notes.getFieldInfo",
74651
+ "resource": "task_notes",
74652
+ "udfCapable": false,
74653
+ "operation": "getFieldInfo",
74654
+ "kind": "primitive",
74655
+ "endpoint": "GET /V1.0/TaskNotes/entityInformation/fields",
74656
+ "effect": "read",
74657
+ "flags": [],
74658
+ "dryRun": false,
74659
+ "envelope": "FieldInformationResultModel",
74660
+ "inputSchema": {},
74661
+ "inputSchemaStrict": true,
74662
+ "outputSchema": {
74663
+ "type": "FieldInformationResultModel",
74664
+ "drops": []
74665
+ },
74666
+ "examples": [
74667
+ "await client.taskNotes.getFieldInfo()"
74668
+ ],
74669
+ "permissions": "unknown",
74670
+ "pagination": {
74671
+ "mode": "none"
74672
+ },
74673
+ "resolution": null,
74674
+ "retry": {
74675
+ "preset": "retry-ffb3a9cb"
74676
+ },
74677
+ "errors": {
74678
+ "set": 0
74679
+ },
74680
+ "metadata": {
74681
+ "purpose": "Get the TaskNote field catalog (types, picklists, required, maxLength) — the full raw field dump (the largest read of the info trio; compact discovery: operations.fieldCatalog).",
74682
+ "usage": "Unwraps fields[]; full raw field dump — the largest read of the info trio (compact discovery: operations.fieldCatalog); the raw dump is also the basis for UDF handling.",
74683
+ "preferredWhen": null,
74684
+ "related": [
74685
+ "task_notes.getEntityInfo",
74686
+ "task_notes.getUdfInfo"
74687
+ ],
74688
+ "untrustedFields": [
74689
+ "description",
74690
+ "title"
74691
+ ]
74692
+ },
74693
+ "compact": null,
74694
+ "status": "tested"
74695
+ },
74696
+ {
74697
+ "id": "task_notes.getUdfInfo",
74698
+ "resource": "task_notes",
74699
+ "udfCapable": false,
74700
+ "operation": "getUdfInfo",
74701
+ "kind": "primitive",
74702
+ "endpoint": "GET /V1.0/TaskNotes/entityInformation/userDefinedFields",
74703
+ "effect": "read",
74704
+ "flags": [],
74705
+ "dryRun": false,
74706
+ "envelope": "UserDefinedFieldInformationResultModel",
74707
+ "inputSchema": {},
74708
+ "inputSchemaStrict": true,
74709
+ "outputSchema": {
74710
+ "type": "UserDefinedFieldInformationResultModel",
74711
+ "drops": []
74712
+ },
74713
+ "examples": [
74714
+ "await client.taskNotes.getUdfInfo()"
74715
+ ],
74716
+ "permissions": "unknown",
74717
+ "pagination": {
74718
+ "mode": "none"
74719
+ },
74720
+ "resolution": null,
74721
+ "retry": {
74722
+ "preset": "retry-ffb3a9cb"
74723
+ },
74724
+ "errors": {
74725
+ "set": 0
74726
+ },
74727
+ "metadata": {
74728
+ "purpose": "Get the TaskNote user-defined-field catalog.",
74729
+ "usage": "Unwraps fields[]; only meaningful where the entity is UDF-capable. (entity is not UDF-capable; catalog is expected empty).",
74730
+ "preferredWhen": null,
74731
+ "related": [
74732
+ "task_notes.getFieldInfo"
74733
+ ],
74734
+ "untrustedFields": [
74735
+ "description",
74736
+ "title"
74737
+ ]
74738
+ },
74739
+ "compact": null,
74740
+ "status": "tested"
74741
+ },
74742
+ {
74743
+ "id": "task_notes.query",
74744
+ "resource": "task_notes",
74745
+ "udfCapable": false,
74746
+ "operation": "query",
74747
+ "kind": "primitive",
74748
+ "endpoint": "GET|POST /V1.0/TaskNotes/query",
74749
+ "effect": "read",
74750
+ "flags": [],
74751
+ "dryRun": false,
74752
+ "envelope": "QueryActionResult[<Model>,<Entity>]",
74753
+ "inputSchema": {
74754
+ "params": {
74755
+ "type": "object",
74756
+ "required": false,
74757
+ "description": "The query params object (CLOSED — unknown keys are refused pre-request with a typed error naming the key + the valid keys): { filter?: FilterCondition[], limit?: number (total cap, default 500, max 2500 — NOT a page size), latest?: number (1-2500; the N highest-id rows — the vendor has no sort; count-probe + id-threshold semantics, see docs/API.md §4; the same-process latest-walk count probes are briefly cached per client — a 30 s TTL, cleared on a write through this client (a probe in flight across the write is discarded by the cache's invalidation epoch); the plain count op and aggregate stay fresh; limit and latest may coexist only when limit >= latest), noteChars?: number (integer >= 1; opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result), includeFields?: string[], fieldCheck?: boolean (default true: every includeFields NAME and every filter condition FIELD NAME is checked pre-request against the live field set (the vendored spec when that read faults — the resource's plan-pinned live-only fields, metadata.liveOnlyFields, are exempt from the vendored refusal: the live entity carries them and the vendor model omits them (e.g. time_entries postedDate/postedOnTime) — a truly unknown name is still refused); a refusal costs zero QUERY wire — the query POST and the count probe that anchors latest are never issued, a COLD fieldCache performs one authority metadata GET first (zero on a warm one); the one udf:true condition per query is exempt (a tenant UDF name is absent from the vendored spec by definition); false disables both name checks, never the shape/grammar checks; the count verb's bag is name-checked the same way and carries the same fieldCheck opt-out; a direct queryBounded/queryAll call is not checked (no bag contract there)), names?: boolean (absent = the client's labels option — OFF by default (the label pass costs a field-catalog read + up to 20 cold name reads per call; the MCP server (iit-mcp-autotask) enables the client labels option when it re-pins to this version (downstream)); true adds the row label siblings: picklist <field>Label (statusLabel), <fk>Name for companyID/contractID/ticketID/roleID/billingCodeID/*ResourceID (contractIDName, assignedResourceIDName) — null, never missing, when the field is keyed with a null value, a 0 id or an unresolved value (a picklist 0 is labelled when the picklist defines it); a names summary appears only when something was left unlabelled (the 20 uncached name-read cap or an unresolved picklist value); false = raw ids, ~30% smaller on a full tickets row), via?: \"post\" | \"get\" (vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected to read over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result's scopeNote says so), walk?: object (walk.maxRows: positive integer — (D6): the walk's TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result's truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) }. Filter grammar: 13 operators (eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn; in/notIn: array or \"1,2,3\") + and/or grouping (no not-group); field names in vendor API casing (via operations.fieldCatalog); caps: 500 OR-conditions / 1 UDF / 8000 chars.",
74758
+ "properties": [
74759
+ {
74760
+ "name": "filter",
74761
+ "type": "FilterCondition[]",
74762
+ "optional": true
74763
+ },
74764
+ {
74765
+ "name": "limit",
74766
+ "type": "number",
74767
+ "optional": true,
74768
+ "default": 500
74769
+ },
74770
+ {
74771
+ "name": "latest",
74772
+ "type": "number",
74773
+ "optional": true
74774
+ },
74775
+ {
74776
+ "name": "noteChars",
74777
+ "type": "number",
74778
+ "optional": true
74779
+ },
74780
+ {
74781
+ "name": "includeFields",
74782
+ "type": "string[]",
74783
+ "optional": true
74784
+ },
74785
+ {
74786
+ "name": "fieldCheck",
74787
+ "type": "boolean",
74788
+ "optional": true,
74789
+ "default": true
74790
+ },
74791
+ {
74792
+ "name": "names",
74793
+ "type": "boolean",
74794
+ "optional": true
74795
+ },
74796
+ {
74797
+ "name": "via",
74798
+ "type": "\"post\" | \"get\"",
74799
+ "optional": true
74800
+ },
74801
+ {
74802
+ "name": "acknowledgeUnscoped",
74803
+ "type": "boolean",
74804
+ "optional": true
74805
+ },
74806
+ {
74807
+ "name": "walk",
74808
+ "type": "object",
74809
+ "optional": true
74810
+ }
74811
+ ]
74812
+ }
74813
+ },
74814
+ "inputSchemaStrict": true,
74815
+ "outputSchema": {
74816
+ "type": "QueryActionResult[<Model>,<Entity>]",
74817
+ "drops": []
74818
+ },
74819
+ "examples": [
74820
+ "await invoke(client, 'task_notes.query', [{ filter: [{ field: 'taskID', op: 'eq', value: 7 }], limit: 25 }])"
74821
+ ],
74822
+ "permissions": "unknown",
74823
+ "pagination": {
74824
+ "mode": "cursor",
74825
+ "vendorDefault": 10,
74826
+ "vendorMax": 500,
74827
+ "pageGuard": 1000,
74828
+ "queryBounded": {
74829
+ "default": 500,
74830
+ "max": 2500
74831
+ }
74832
+ },
74833
+ "resolution": null,
74834
+ "retry": {
74835
+ "preset": "retry-ffb3a9cb"
74836
+ },
74837
+ "errors": {
74838
+ "set": 4
74839
+ },
74840
+ "metadata": {
74841
+ "purpose": "Query TaskNote records with a JSON filter.",
74842
+ "usage": "Server-side pagination: one call walks the vendor cursor internally (page 1 POSTs the QueryModel body with MaxRecords = the walk's internal page size (at most 500; the default POST path — `via: 'get'` issues a GET on page 1); later pages POST the SAME body — IncludeFields, MaxRecords and the preserved filter — to the absolute vendor cursor, rebased to the client base URL; the vendor honours IncludeFields on a continuation and ignores MaxRecords there, so a later page carries the vendor's own page size) until the limit is met or the cursor is null; 1000-page guard (hasMore stays true at the guard). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. noteChars: N (integer >= 1) is an opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose — the same set the server wraps): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result (zero wire — response-side only). latest: N returns the N highest-id rows (id-descending): the vendor has no sort parameter — this is the only ordering channel, and a date window in `filter` narrows the cost; count-anchored — C ≤ 2500 → one count + a ≤6-page walk of the matching set, C > 2500 → count probes + an id-threshold window (≤64 probes; LATEST_THRESHOLD_UNRESOLVED on budget exhaustion), a blind count → a bounded walk with the blind-surface stamp (LATEST_WINDOW_INCOMPLETE on a truncated walk). Parent-scoped entity: the query stays global (filter with taskID eq <parentId> where the parent is known). Explicit walk.maxRows independently sets the TOTAL returned-row cap (including export-sized walks); the ordinary limit is still validated in 1..2500 and only bounds the internal page size for this form. hasMore and truncated remain true at the page guard or while a cursor or unserved fetched rows remain. Self-resource prefixes are accepted in filter fields and includeFields; dotted UDF names are always refused before metadata or vendor requests, never rewritten to another tenant UDF.",
74843
+ "preferredWhen": "Default for filtered reads (the bounded query op). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. Prefer an includeFields subset over the full model (field names via operations.fieldCatalog). latest: N is the latest-N rows (id-descending) when the newest rows are the goal (the vendor has no sort — count-anchored, docs/API.md §4). Prefer a hand-listed includeFields for common narrow reads (removed the closed fieldsPreset presets — the v1 billing_join field list for billing_items.query, if you need it, is: companyID, ticketID, projectID, timeEntryID, contractServiceID, contractID, billingCodeID, expenseItemID, itemDate, quantity, rate, extendedPrice, totalAmount, nonBillable); noteChars: N caps the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose) to N chars each with the explicit … [+N chars truncated] marker (opt-in; the raw result when absent).",
74844
+ "related": [],
74845
+ "args": "args[0] is a params object: { filter?: FilterCondition[], limit?: total cap (default 500, max 2500; server-side pagination), latest?: number (1-2500 — the N highest-id rows; the vendor has no sort parameter, so this is a count-anchored mechanism — see docs/API.md §4; coexists with limit only when limit >= latest), noteChars?: number (integer >= 1 — opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result) maxRecords?: page size — raw SDK `queryAll`/`query` walks only (this bounded query ignores it; the invoke bag refuses it — pass limit), includeFields?: string[], fieldCheck?: boolean (default true — the pre-request field-name check on includeFields names and filter condition fields; false disables it — consumed by the invoke router, never sent to the vendor), via?: \"post\" | \"get\" (the wire method; the vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result’s scopeNote says so), walk?: { maxRows: positive integer (D6: the walk’s TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result’s truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) } }. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars. By default the FULL vendor model is returned (all fields). To slim the payload for context savings pass includeFields with the exact vendor field names you need (discover them via operations.fieldCatalog); only those fields + id come back. The subset persists across the internal page walk.",
74846
+ "untrustedFields": [
74847
+ "description",
74848
+ "title"
74849
+ ]
74850
+ },
74851
+ "compact": null,
74852
+ "status": "tested"
74853
+ },
74854
+ {
74855
+ "id": "task_notes.update",
74856
+ "resource": "task_notes",
74857
+ "udfCapable": false,
74858
+ "operation": "update",
74859
+ "kind": "primitive",
74860
+ "endpoint": "PUT|PATCH /V1.0/Tasks/{parentId}/Notes",
74861
+ "effect": "write",
74862
+ "flags": [
74863
+ "idempotent"
74864
+ ],
74865
+ "dryRun": true,
74866
+ "envelope": "OperationResultModel",
74867
+ "inputSchema": {
74868
+ "parentId": {
74869
+ "type": "string | number",
74870
+ "required": true,
74871
+ "description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
74872
+ },
74873
+ "id": {
74874
+ "type": "string | number",
74875
+ "required": true,
74876
+ "description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
74877
+ },
74878
+ "data": {
74879
+ "type": "object",
74880
+ "required": true,
74881
+ "description": "The record payload (vendor model fields)."
74882
+ }
74883
+ },
74884
+ "inputSchemaStrict": true,
74885
+ "outputSchema": {
74886
+ "type": "OperationResultModel",
74887
+ "drops": []
74888
+ },
74889
+ "examples": [
74890
+ "await client.taskNotes.update(7, 3, { description: 'Updated progress' }, { dryRun: true })"
74891
+ ],
74892
+ "permissions": "unknown",
74893
+ "pagination": {
74894
+ "mode": "none"
74895
+ },
74896
+ "resolution": null,
74897
+ "retry": {
74898
+ "preset": "retry-85897a3a"
74899
+ },
74900
+ "errors": {
74901
+ "set": 1
74902
+ },
74903
+ "metadata": {
74904
+ "purpose": "Update a task note.",
74905
+ "usage": "Issues PATCH on the collection (swagger documents put+patch there; the node strips the id from the path and the vendor keys the record by the id in the body). TaskNoteModel has no supported lastModifiedDate stale token; preview reads a fresh record, without promising an atomic vendor precondition. Parent-scoped: parentId + id. Description writes use plain text and can lose existing rich text/images. Parent taskID is the path argument; a supplied taskID must match. Current field metadata supplies picklist values; no numeric value is presumed valid. Baseline-project notes are read-only. Task Category settings may require title. Writable fields: description (max 3200), title (max 250), noteType, publish, createdByContactID and matching taskID; creator/date fields and UDF writes are refused.",
74906
+ "preferredWhen": "Use when an existing task note needs a supported field change.",
74907
+ "related": [
74908
+ "task_notes.get"
74909
+ ],
74910
+ "untrustedFields": [
74911
+ "description",
74912
+ "title"
74913
+ ]
74914
+ },
74915
+ "compact": null,
74916
+ "status": "tested"
74917
+ },
74408
74918
  {
74409
74919
  "id": "task_secondary_resources.count",
74410
74920
  "resource": "task_secondary_resources",
@@ -83599,8 +84109,8 @@
83599
84109
  ]
83600
84110
  },
83601
84111
  "operations": {
83602
- "planHash": "275fdf2fd6712f9384c1a65f98c5faf1fda9695475ffbdf35c08e574c18b4157",
83603
- "builtAt": "2026-11-18T09:40:46.384Z",
84112
+ "planHash": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
84113
+ "builtAt": "2026-11-18T13:26:09.224Z",
83604
84114
  "records": [
83605
84115
  {
83606
84116
  "id": "operations.aggregate",