node-autotask 0.60.1 → 0.61.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 +19 -0
  2. package/MCP_TOOL_CATALOG.json +298 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +1035 -7
  5. package/dist/capabilities-data.js +1034 -6
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-MYLSBOZI.cjs → chunk-4SEIDMF6.cjs} +195 -11
  9. package/dist/{chunk-Y2SR6D2D.js → chunk-BSFJ5JYP.js} +190 -6
  10. package/dist/{chunk-VN3OZHC7.cjs → chunk-CWH2SLP2.cjs} +174 -174
  11. package/dist/{chunk-K722F7EM.js → chunk-GUXVYGBK.js} +3 -3
  12. package/dist/{chunk-XYWSPKCN.cjs → chunk-JTRC7XEH.cjs} +33 -31
  13. package/dist/{chunk-2GPQ55O6.js → chunk-NFTWRHUR.js} +4 -2
  14. package/dist/{chunk-XUPVX5MQ.js → chunk-O63FO5XC.js} +2 -2
  15. package/dist/{chunk-XP43NERF.cjs → chunk-TE7RUKU2.cjs} +3 -3
  16. package/dist/{index-cAntv7_A.d.ts → index-Bc3yX2Nc.d.ts} +4 -2
  17. package/dist/{index-D6bAO4ZV.d.cts → index-COQEG55Q.d.cts} +90 -1
  18. package/dist/{index-D6bAO4ZV.d.ts → index-COQEG55Q.d.ts} +90 -1
  19. package/dist/{index-BmaFIj42.d.cts → index-D1dW10iM.d.cts} +4 -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 +50 -50
  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 +8 -8
  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 +4 -2
  39. package/package.json +1 -1
@@ -348,8 +348,8 @@ const CAPABILITY_DATA = {
348
348
  ],
349
349
  "groups": {
350
350
  "B": {
351
- "planHash": "95323eaa92fca1ba1541721c6f34ce671118736aca889ea432156d87a8a8ecd8",
352
- "builtAt": "2026-11-08T03:49:04.955Z",
351
+ "planHash": "6ea020dd5a389c0930923a23c1074b96e4280391b1d4fe6fca869e0effbf3a1a",
352
+ "builtAt": "2026-11-11T11:15:40.015Z",
353
353
  "records": [
354
354
  {
355
355
  "id": "appointments.count",
@@ -41905,6 +41905,1028 @@ const CAPABILITY_DATA = {
41905
41905
  "compact": "TimeOffRequestSummary",
41906
41906
  "status": "tested"
41907
41907
  },
41908
+ {
41909
+ "id": "user_defined_field_definitions.count",
41910
+ "resource": "user_defined_field_definitions",
41911
+ "udfCapable": false,
41912
+ "operation": "count",
41913
+ "kind": "primitive",
41914
+ "endpoint": "GET|POST /V1.0/UserDefinedFieldDefinitions/query/count",
41915
+ "effect": "read",
41916
+ "flags": [],
41917
+ "dryRun": false,
41918
+ "envelope": "QueryCountResultModel",
41919
+ "inputSchema": {
41920
+ "params": {
41921
+ "type": "object",
41922
+ "required": false,
41923
+ "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.",
41924
+ "properties": [
41925
+ {
41926
+ "name": "filter",
41927
+ "type": "FilterCondition[]",
41928
+ "optional": true
41929
+ },
41930
+ {
41931
+ "name": "fieldCheck",
41932
+ "type": "boolean",
41933
+ "optional": true
41934
+ }
41935
+ ]
41936
+ }
41937
+ },
41938
+ "inputSchemaStrict": true,
41939
+ "outputSchema": {
41940
+ "type": "QueryCountResultModel",
41941
+ "drops": []
41942
+ },
41943
+ "examples": [
41944
+ "await client.userDefinedFieldDefinitions.count({ filter: [{ field: 'name', op: 'eq', value: 'example' }] })"
41945
+ ],
41946
+ "permissions": "unknown",
41947
+ "pagination": {
41948
+ "mode": "none"
41949
+ },
41950
+ "resolution": null,
41951
+ "retry": {
41952
+ "preset": "retry-ffb3a9cb"
41953
+ },
41954
+ "errors": {
41955
+ "set": 0
41956
+ },
41957
+ "metadata": {
41958
+ "purpose": "Count user-defined field definition records matching a JSON filter.",
41959
+ "usage": "Unwraps queryCount; returns a plain number.",
41960
+ "preferredWhen": null,
41961
+ "related": [
41962
+ "user_defined_field_definitions.query"
41963
+ ],
41964
+ "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.",
41965
+ "untrustedFields": [
41966
+ "description",
41967
+ "mergeVariableName",
41968
+ "name"
41969
+ ]
41970
+ },
41971
+ "compact": null,
41972
+ "status": "tested"
41973
+ },
41974
+ {
41975
+ "id": "user_defined_field_definitions.create",
41976
+ "resource": "user_defined_field_definitions",
41977
+ "udfCapable": false,
41978
+ "operation": "create",
41979
+ "kind": "primitive",
41980
+ "endpoint": "POST /V1.0/UserDefinedFieldDefinitions",
41981
+ "effect": "write",
41982
+ "flags": [],
41983
+ "dryRun": true,
41984
+ "envelope": "OperationResultModel",
41985
+ "inputSchema": {
41986
+ "data": {
41987
+ "type": "object",
41988
+ "required": true,
41989
+ "description": "The record payload (vendor model fields)."
41990
+ }
41991
+ },
41992
+ "inputSchemaStrict": true,
41993
+ "outputSchema": {
41994
+ "type": "OperationResultModel",
41995
+ "drops": []
41996
+ },
41997
+ "examples": [
41998
+ "await client.userDefinedFieldDefinitions.create({ name: 'example' }, { dryRun: true })"
41999
+ ],
42000
+ "permissions": "unknown",
42001
+ "pagination": {
42002
+ "mode": "none"
42003
+ },
42004
+ "resolution": null,
42005
+ "retry": {
42006
+ "preset": "retry-c5657094"
42007
+ },
42008
+ "errors": {
42009
+ "set": 1
42010
+ },
42011
+ "metadata": {
42012
+ "purpose": "Create a UDF definition.",
42013
+ "usage": "Returns OperationResultModel.itemId (the new id); the full record is not returned — follow up with get where needed. Vendor constraints: `dataType` and `udfType` are chosen at creation and immutable after it (udfType 1 = Company/Account); for `dataType = List` the `defaultValue` cannot be set at creation (the list items must exist first); the vendor caps active company UDFs at 200.",
42014
+ "preferredWhen": "Only for a record that does not exist yet; prefer update for an id you already have.",
42015
+ "related": [
42016
+ "user_defined_field_definitions.update"
42017
+ ],
42018
+ "deleteBoundary": {
42019
+ "resource": "user_defined_field_definitions",
42020
+ "note": "the vendor defines no DELETE for user_defined_field_definitions (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) — a UDF definition cannot be deleted through the API; deactivation is via isActive (vendor soft-removal); hard cleanup is UI-only.",
42021
+ "proof": "spec-derived"
42022
+ },
42023
+ "untrustedFields": [
42024
+ "description",
42025
+ "mergeVariableName",
42026
+ "name"
42027
+ ],
42028
+ "accountWide": true
42029
+ },
42030
+ "compact": null,
42031
+ "status": "tested"
42032
+ },
42033
+ {
42034
+ "id": "user_defined_field_definitions.get",
42035
+ "resource": "user_defined_field_definitions",
42036
+ "udfCapable": false,
42037
+ "operation": "get",
42038
+ "kind": "primitive",
42039
+ "endpoint": "GET /V1.0/UserDefinedFieldDefinitions/{id}",
42040
+ "effect": "read",
42041
+ "flags": [],
42042
+ "dryRun": false,
42043
+ "envelope": "ItemQueryResultModel[UserDefinedFieldDefinitionModel,UserDefinedFieldDefinition]",
42044
+ "inputSchema": {
42045
+ "id": {
42046
+ "type": "string | number",
42047
+ "required": true,
42048
+ "description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
42049
+ },
42050
+ "opts": {
42051
+ "type": "object",
42052
+ "required": false,
42053
+ "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.",
42054
+ "properties": [
42055
+ {
42056
+ "name": "fresh",
42057
+ "type": "boolean",
42058
+ "optional": true
42059
+ }
42060
+ ]
42061
+ }
42062
+ },
42063
+ "inputSchemaStrict": true,
42064
+ "outputSchema": {
42065
+ "type": "ItemQueryResultModel[UserDefinedFieldDefinitionModel,UserDefinedFieldDefinition]",
42066
+ "drops": []
42067
+ },
42068
+ "examples": [
42069
+ "await client.userDefinedFieldDefinitions.get('example-value')"
42070
+ ],
42071
+ "permissions": "unknown",
42072
+ "pagination": {
42073
+ "mode": "none"
42074
+ },
42075
+ "resolution": null,
42076
+ "retry": {
42077
+ "preset": "retry-ffb3a9cb"
42078
+ },
42079
+ "errors": {
42080
+ "set": 3
42081
+ },
42082
+ "metadata": {
42083
+ "purpose": "Get one UserDefinedFieldDefinition by id.",
42084
+ "usage": "item: null on the 200 body maps to NotFoundError (vendor not-found signal).",
42085
+ "preferredWhen": "Preferred when the numeric id is already known; query by name when it is not.",
42086
+ "related": [],
42087
+ "args": "args[0] is the record id (number) Item GET returns the FULL vendor model — the vendor documents no field selection on single-record reads. For a slim record use an user_defined_field_definitions.query with includeFields.",
42088
+ "untrustedFields": [
42089
+ "description",
42090
+ "mergeVariableName",
42091
+ "name"
42092
+ ]
42093
+ },
42094
+ "compact": null,
42095
+ "status": "tested"
42096
+ },
42097
+ {
42098
+ "id": "user_defined_field_definitions.getEntityInfo",
42099
+ "resource": "user_defined_field_definitions",
42100
+ "udfCapable": false,
42101
+ "operation": "getEntityInfo",
42102
+ "kind": "primitive",
42103
+ "endpoint": "GET /V1.0/UserDefinedFieldDefinitions/entityInformation",
42104
+ "effect": "read",
42105
+ "flags": [],
42106
+ "dryRun": false,
42107
+ "envelope": "EntityInformationResultModel",
42108
+ "inputSchema": {},
42109
+ "inputSchemaStrict": true,
42110
+ "outputSchema": {
42111
+ "type": "EntityInformationResultModel",
42112
+ "drops": []
42113
+ },
42114
+ "examples": [
42115
+ "await client.userDefinedFieldDefinitions.getEntityInfo()"
42116
+ ],
42117
+ "permissions": "unknown",
42118
+ "pagination": {
42119
+ "mode": "none"
42120
+ },
42121
+ "resolution": null,
42122
+ "retry": {
42123
+ "preset": "retry-ffb3a9cb"
42124
+ },
42125
+ "errors": {
42126
+ "set": 0
42127
+ },
42128
+ "metadata": {
42129
+ "purpose": "Get the UserDefinedFieldDefinition capability metadata (canCreate/canUpdate/hasUserDefinedFields/...).",
42130
+ "usage": "Unwraps info{}; drives client-side capability checks.",
42131
+ "preferredWhen": null,
42132
+ "related": [
42133
+ "user_defined_field_definitions.getFieldInfo"
42134
+ ],
42135
+ "untrustedFields": [
42136
+ "description",
42137
+ "mergeVariableName",
42138
+ "name"
42139
+ ]
42140
+ },
42141
+ "compact": null,
42142
+ "status": "tested"
42143
+ },
42144
+ {
42145
+ "id": "user_defined_field_definitions.getFieldInfo",
42146
+ "resource": "user_defined_field_definitions",
42147
+ "udfCapable": false,
42148
+ "operation": "getFieldInfo",
42149
+ "kind": "primitive",
42150
+ "endpoint": "GET /V1.0/UserDefinedFieldDefinitions/entityInformation/fields",
42151
+ "effect": "read",
42152
+ "flags": [],
42153
+ "dryRun": false,
42154
+ "envelope": "FieldInformationResultModel",
42155
+ "inputSchema": {},
42156
+ "inputSchemaStrict": true,
42157
+ "outputSchema": {
42158
+ "type": "FieldInformationResultModel",
42159
+ "drops": []
42160
+ },
42161
+ "examples": [
42162
+ "await client.userDefinedFieldDefinitions.getFieldInfo()"
42163
+ ],
42164
+ "permissions": "unknown",
42165
+ "pagination": {
42166
+ "mode": "none"
42167
+ },
42168
+ "resolution": null,
42169
+ "retry": {
42170
+ "preset": "retry-ffb3a9cb"
42171
+ },
42172
+ "errors": {
42173
+ "set": 0
42174
+ },
42175
+ "metadata": {
42176
+ "purpose": "Get the UserDefinedFieldDefinition field catalog (types, picklists, required, maxLength) — the full raw field dump (the largest read of the info trio; compact discovery: operations.fieldCatalog).",
42177
+ "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.",
42178
+ "preferredWhen": null,
42179
+ "related": [
42180
+ "user_defined_field_definitions.getEntityInfo",
42181
+ "user_defined_field_definitions.getUdfInfo"
42182
+ ],
42183
+ "untrustedFields": [
42184
+ "description",
42185
+ "mergeVariableName",
42186
+ "name"
42187
+ ]
42188
+ },
42189
+ "compact": null,
42190
+ "status": "tested"
42191
+ },
42192
+ {
42193
+ "id": "user_defined_field_definitions.getUdfInfo",
42194
+ "resource": "user_defined_field_definitions",
42195
+ "udfCapable": false,
42196
+ "operation": "getUdfInfo",
42197
+ "kind": "primitive",
42198
+ "endpoint": "GET /V1.0/UserDefinedFieldDefinitions/entityInformation/userDefinedFields",
42199
+ "effect": "read",
42200
+ "flags": [],
42201
+ "dryRun": false,
42202
+ "envelope": "UserDefinedFieldInformationResultModel",
42203
+ "inputSchema": {},
42204
+ "inputSchemaStrict": true,
42205
+ "outputSchema": {
42206
+ "type": "UserDefinedFieldInformationResultModel",
42207
+ "drops": []
42208
+ },
42209
+ "examples": [
42210
+ "await client.userDefinedFieldDefinitions.getUdfInfo()"
42211
+ ],
42212
+ "permissions": "unknown",
42213
+ "pagination": {
42214
+ "mode": "none"
42215
+ },
42216
+ "resolution": null,
42217
+ "retry": {
42218
+ "preset": "retry-ffb3a9cb"
42219
+ },
42220
+ "errors": {
42221
+ "set": 0
42222
+ },
42223
+ "metadata": {
42224
+ "purpose": "Get the UserDefinedFieldDefinition user-defined-field catalog.",
42225
+ "usage": "Unwraps fields[]; only meaningful where the entity is UDF-capable. (entity is not UDF-capable; catalog is expected empty).",
42226
+ "preferredWhen": null,
42227
+ "related": [
42228
+ "user_defined_field_definitions.getFieldInfo"
42229
+ ],
42230
+ "untrustedFields": [
42231
+ "description",
42232
+ "mergeVariableName",
42233
+ "name"
42234
+ ]
42235
+ },
42236
+ "compact": null,
42237
+ "status": "tested"
42238
+ },
42239
+ {
42240
+ "id": "user_defined_field_definitions.query",
42241
+ "resource": "user_defined_field_definitions",
42242
+ "udfCapable": false,
42243
+ "operation": "query",
42244
+ "kind": "primitive",
42245
+ "endpoint": "GET|POST /V1.0/UserDefinedFieldDefinitions/query",
42246
+ "effect": "read",
42247
+ "flags": [],
42248
+ "dryRun": false,
42249
+ "envelope": "QueryActionResult[<Model>,<Entity>]",
42250
+ "inputSchema": {
42251
+ "params": {
42252
+ "type": "object",
42253
+ "required": false,
42254
+ "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.",
42255
+ "properties": [
42256
+ {
42257
+ "name": "filter",
42258
+ "type": "FilterCondition[]",
42259
+ "optional": true
42260
+ },
42261
+ {
42262
+ "name": "limit",
42263
+ "type": "number",
42264
+ "optional": true,
42265
+ "default": 500
42266
+ },
42267
+ {
42268
+ "name": "latest",
42269
+ "type": "number",
42270
+ "optional": true
42271
+ },
42272
+ {
42273
+ "name": "noteChars",
42274
+ "type": "number",
42275
+ "optional": true
42276
+ },
42277
+ {
42278
+ "name": "includeFields",
42279
+ "type": "string[]",
42280
+ "optional": true
42281
+ },
42282
+ {
42283
+ "name": "fieldCheck",
42284
+ "type": "boolean",
42285
+ "optional": true,
42286
+ "default": true
42287
+ },
42288
+ {
42289
+ "name": "names",
42290
+ "type": "boolean",
42291
+ "optional": true
42292
+ },
42293
+ {
42294
+ "name": "via",
42295
+ "type": "\"post\" | \"get\"",
42296
+ "optional": true
42297
+ },
42298
+ {
42299
+ "name": "acknowledgeUnscoped",
42300
+ "type": "boolean",
42301
+ "optional": true
42302
+ },
42303
+ {
42304
+ "name": "walk",
42305
+ "type": "object",
42306
+ "optional": true
42307
+ }
42308
+ ]
42309
+ }
42310
+ },
42311
+ "inputSchemaStrict": true,
42312
+ "outputSchema": {
42313
+ "type": "QueryActionResult[<Model>,<Entity>]",
42314
+ "drops": []
42315
+ },
42316
+ "examples": [
42317
+ "await client.userDefinedFieldDefinitions.query({ filter: [{ field: 'name', op: 'eq', value: 'example' }], limit: 500 })"
42318
+ ],
42319
+ "permissions": "unknown",
42320
+ "pagination": {
42321
+ "mode": "cursor",
42322
+ "vendorDefault": 10,
42323
+ "vendorMax": 500,
42324
+ "pageGuard": 1000,
42325
+ "queryBounded": {
42326
+ "default": 500,
42327
+ "max": 2500
42328
+ }
42329
+ },
42330
+ "resolution": null,
42331
+ "retry": {
42332
+ "preset": "retry-ffb3a9cb"
42333
+ },
42334
+ "errors": {
42335
+ "set": 4
42336
+ },
42337
+ "metadata": {
42338
+ "purpose": "Query UserDefinedFieldDefinition records with a JSON filter.",
42339
+ "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). 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.",
42340
+ "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).",
42341
+ "related": [
42342
+ "user_defined_field_definitions.get"
42343
+ ],
42344
+ "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.",
42345
+ "untrustedFields": [
42346
+ "description",
42347
+ "mergeVariableName",
42348
+ "name"
42349
+ ]
42350
+ },
42351
+ "compact": null,
42352
+ "status": "tested"
42353
+ },
42354
+ {
42355
+ "id": "user_defined_field_definitions.update",
42356
+ "resource": "user_defined_field_definitions",
42357
+ "udfCapable": false,
42358
+ "operation": "update",
42359
+ "kind": "primitive",
42360
+ "endpoint": "PUT|PATCH /V1.0/UserDefinedFieldDefinitions",
42361
+ "effect": "write",
42362
+ "flags": [
42363
+ "idempotent"
42364
+ ],
42365
+ "dryRun": true,
42366
+ "envelope": "OperationResultModel",
42367
+ "inputSchema": {
42368
+ "id": {
42369
+ "type": "string | number",
42370
+ "required": true,
42371
+ "description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
42372
+ },
42373
+ "data": {
42374
+ "type": "object",
42375
+ "required": true,
42376
+ "description": "The record payload (vendor model fields)."
42377
+ }
42378
+ },
42379
+ "inputSchemaStrict": true,
42380
+ "outputSchema": {
42381
+ "type": "OperationResultModel",
42382
+ "drops": []
42383
+ },
42384
+ "examples": [
42385
+ "await client.userDefinedFieldDefinitions.update('example-value', { name: 'example' }, { dryRun: true })"
42386
+ ],
42387
+ "permissions": "unknown",
42388
+ "pagination": {
42389
+ "mode": "none"
42390
+ },
42391
+ "resolution": null,
42392
+ "retry": {
42393
+ "preset": "retry-1849870d"
42394
+ },
42395
+ "errors": {
42396
+ "set": 1
42397
+ },
42398
+ "metadata": {
42399
+ "purpose": "Update a UDF definition.",
42400
+ "usage": "Issues PUT (vendor tolerates PATCH for the same endpoint). Stale check via lastModifiedDate where present. Vendor constraints: `dataType` and `udfType` cannot be changed; `isFieldMapping` is immutable (a mapped field only accepts `isActive`/`sortOrder` updates); a `List` UDF's `defaultValue` is a list item's `valueForDisplay` (set it only after the items exist). The collection PUT validates the FULL model (vendor V2): a partial body is merged into the current record (one GET — also the stale-object guard's read) before the PUT; explicit nulls send null, omitted fields keep the current value. Pass raw: true in the opts bag to send the body as-is (no merge).",
42401
+ "preferredWhen": "Preferred over create or delete when the record exists and only some fields change.",
42402
+ "related": [
42403
+ "user_defined_field_definitions.get"
42404
+ ],
42405
+ "collectionUpdate": true,
42406
+ "untrustedFields": [
42407
+ "description",
42408
+ "mergeVariableName",
42409
+ "name"
42410
+ ],
42411
+ "accountWide": true
42412
+ },
42413
+ "compact": null,
42414
+ "status": "tested"
42415
+ },
42416
+ {
42417
+ "id": "user_defined_field_list_items.count",
42418
+ "resource": "user_defined_field_list_items",
42419
+ "udfCapable": false,
42420
+ "operation": "count",
42421
+ "kind": "primitive",
42422
+ "endpoint": "GET|POST /V1.0/UserDefinedFieldListItems/query/count",
42423
+ "effect": "read",
42424
+ "flags": [],
42425
+ "dryRun": false,
42426
+ "envelope": "QueryCountResultModel",
42427
+ "inputSchema": {
42428
+ "params": {
42429
+ "type": "object",
42430
+ "required": false,
42431
+ "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.",
42432
+ "properties": [
42433
+ {
42434
+ "name": "filter",
42435
+ "type": "FilterCondition[]",
42436
+ "optional": true
42437
+ },
42438
+ {
42439
+ "name": "fieldCheck",
42440
+ "type": "boolean",
42441
+ "optional": true
42442
+ }
42443
+ ]
42444
+ }
42445
+ },
42446
+ "inputSchemaStrict": true,
42447
+ "outputSchema": {
42448
+ "type": "QueryCountResultModel",
42449
+ "drops": []
42450
+ },
42451
+ "examples": [
42452
+ "await client.userDefinedFieldListItems.count({ filter: [{ field: 'name', op: 'eq', value: 'example' }] })"
42453
+ ],
42454
+ "permissions": "unknown",
42455
+ "pagination": {
42456
+ "mode": "none"
42457
+ },
42458
+ "resolution": null,
42459
+ "retry": {
42460
+ "preset": "retry-ffb3a9cb"
42461
+ },
42462
+ "errors": {
42463
+ "set": 0
42464
+ },
42465
+ "metadata": {
42466
+ "purpose": "Count user-defined field list item records matching a JSON filter.",
42467
+ "usage": "Unwraps queryCount; returns a plain number.",
42468
+ "preferredWhen": null,
42469
+ "related": [
42470
+ "user_defined_field_list_items.query"
42471
+ ],
42472
+ "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.",
42473
+ "untrustedFields": [
42474
+ "valueForDisplay",
42475
+ "valueForExport"
42476
+ ]
42477
+ },
42478
+ "compact": null,
42479
+ "status": "tested"
42480
+ },
42481
+ {
42482
+ "id": "user_defined_field_list_items.create",
42483
+ "resource": "user_defined_field_list_items",
42484
+ "udfCapable": false,
42485
+ "operation": "create",
42486
+ "kind": "primitive",
42487
+ "endpoint": "POST /V1.0/UserDefinedFields/{parentId}/ListItems",
42488
+ "effect": "write",
42489
+ "flags": [],
42490
+ "dryRun": true,
42491
+ "envelope": "OperationResultModel",
42492
+ "inputSchema": {
42493
+ "parentId": {
42494
+ "type": "string | number",
42495
+ "required": true,
42496
+ "description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
42497
+ },
42498
+ "data": {
42499
+ "type": "object",
42500
+ "required": true,
42501
+ "description": "The record payload (vendor model fields)."
42502
+ }
42503
+ },
42504
+ "inputSchemaStrict": true,
42505
+ "outputSchema": {
42506
+ "type": "OperationResultModel",
42507
+ "drops": []
42508
+ },
42509
+ "examples": [
42510
+ "await client.userDefinedFieldListItems.create('example-value', { name: 'example' }, { dryRun: true })"
42511
+ ],
42512
+ "permissions": "unknown",
42513
+ "pagination": {
42514
+ "mode": "none"
42515
+ },
42516
+ "resolution": null,
42517
+ "retry": {
42518
+ "preset": "retry-c5657094"
42519
+ },
42520
+ "errors": {
42521
+ "set": 1
42522
+ },
42523
+ "metadata": {
42524
+ "purpose": "Create a UDF list item.",
42525
+ "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. `valueForDisplay` and `valueForExport` are both required and must be unique within the UDF; `isActive` defaults to true (there is no vendor delete — removal is soft via `isActive`).",
42526
+ "preferredWhen": "Only for a record that does not exist yet; prefer update for an id you already have.",
42527
+ "related": [
42528
+ "user_defined_field_list_items.update"
42529
+ ],
42530
+ "deleteBoundary": {
42531
+ "resource": "user_defined_field_list_items",
42532
+ "note": "the vendor defines no DELETE for user_defined_field_list_items (spec-derived: the vendored api-docs.json defines no DELETE on the standalone or parent-scoped ListItems paths) — a picklist value cannot be deleted through the API; deactivation is via isActive (vendor soft-removal); hard cleanup is UI-only.",
42533
+ "proof": "spec-derived"
42534
+ },
42535
+ "untrustedFields": [
42536
+ "valueForDisplay",
42537
+ "valueForExport"
42538
+ ],
42539
+ "accountWide": true
42540
+ },
42541
+ "compact": null,
42542
+ "status": "tested"
42543
+ },
42544
+ {
42545
+ "id": "user_defined_field_list_items.get",
42546
+ "resource": "user_defined_field_list_items",
42547
+ "udfCapable": false,
42548
+ "operation": "get",
42549
+ "kind": "primitive",
42550
+ "endpoint": "GET /V1.0/UserDefinedFields/{parentId}/ListItems/{id}",
42551
+ "effect": "read",
42552
+ "flags": [],
42553
+ "dryRun": false,
42554
+ "envelope": "ItemQueryResultModel[UserDefinedFieldListItemModel,UserDefinedFieldListItem]",
42555
+ "inputSchema": {
42556
+ "parentId": {
42557
+ "type": "string | number",
42558
+ "required": true,
42559
+ "description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
42560
+ },
42561
+ "id": {
42562
+ "type": "string | number",
42563
+ "required": true,
42564
+ "description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
42565
+ },
42566
+ "opts": {
42567
+ "type": "object",
42568
+ "required": false,
42569
+ "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.",
42570
+ "properties": [
42571
+ {
42572
+ "name": "fresh",
42573
+ "type": "boolean",
42574
+ "optional": true
42575
+ }
42576
+ ]
42577
+ }
42578
+ },
42579
+ "inputSchemaStrict": true,
42580
+ "outputSchema": {
42581
+ "type": "ItemQueryResultModel[UserDefinedFieldListItemModel,UserDefinedFieldListItem]",
42582
+ "drops": []
42583
+ },
42584
+ "examples": [
42585
+ "await client.userDefinedFieldListItems.get('example-value', 'example-value')"
42586
+ ],
42587
+ "permissions": "unknown",
42588
+ "pagination": {
42589
+ "mode": "none"
42590
+ },
42591
+ "resolution": null,
42592
+ "retry": {
42593
+ "preset": "retry-ffb3a9cb"
42594
+ },
42595
+ "errors": {
42596
+ "set": 3
42597
+ },
42598
+ "metadata": {
42599
+ "purpose": "Get one UserDefinedFieldListItem by id.",
42600
+ "usage": "item: null on the 200 body maps to NotFoundError (vendor not-found signal). Parent-scoped: parentId + id.",
42601
+ "preferredWhen": "Preferred when the numeric id is known with the parent definition id; query by udfFieldId when it is not.",
42602
+ "related": [],
42603
+ "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 an user_defined_field_list_items.query with includeFields.",
42604
+ "untrustedFields": [
42605
+ "valueForDisplay",
42606
+ "valueForExport"
42607
+ ]
42608
+ },
42609
+ "compact": null,
42610
+ "status": "tested"
42611
+ },
42612
+ {
42613
+ "id": "user_defined_field_list_items.getEntityInfo",
42614
+ "resource": "user_defined_field_list_items",
42615
+ "udfCapable": false,
42616
+ "operation": "getEntityInfo",
42617
+ "kind": "primitive",
42618
+ "endpoint": "GET /V1.0/UserDefinedFieldListItems/entityInformation",
42619
+ "effect": "read",
42620
+ "flags": [],
42621
+ "dryRun": false,
42622
+ "envelope": "EntityInformationResultModel",
42623
+ "inputSchema": {},
42624
+ "inputSchemaStrict": true,
42625
+ "outputSchema": {
42626
+ "type": "EntityInformationResultModel",
42627
+ "drops": []
42628
+ },
42629
+ "examples": [
42630
+ "await client.userDefinedFieldListItems.getEntityInfo()"
42631
+ ],
42632
+ "permissions": "unknown",
42633
+ "pagination": {
42634
+ "mode": "none"
42635
+ },
42636
+ "resolution": null,
42637
+ "retry": {
42638
+ "preset": "retry-ffb3a9cb"
42639
+ },
42640
+ "errors": {
42641
+ "set": 0
42642
+ },
42643
+ "metadata": {
42644
+ "purpose": "Get the UserDefinedFieldListItem capability metadata (canCreate/canUpdate/hasUserDefinedFields/...).",
42645
+ "usage": "Unwraps info{}; drives client-side capability checks.",
42646
+ "preferredWhen": null,
42647
+ "related": [
42648
+ "user_defined_field_list_items.getFieldInfo"
42649
+ ],
42650
+ "untrustedFields": [
42651
+ "valueForDisplay",
42652
+ "valueForExport"
42653
+ ]
42654
+ },
42655
+ "compact": null,
42656
+ "status": "tested"
42657
+ },
42658
+ {
42659
+ "id": "user_defined_field_list_items.getFieldInfo",
42660
+ "resource": "user_defined_field_list_items",
42661
+ "udfCapable": false,
42662
+ "operation": "getFieldInfo",
42663
+ "kind": "primitive",
42664
+ "endpoint": "GET /V1.0/UserDefinedFieldListItems/entityInformation/fields",
42665
+ "effect": "read",
42666
+ "flags": [],
42667
+ "dryRun": false,
42668
+ "envelope": "FieldInformationResultModel",
42669
+ "inputSchema": {},
42670
+ "inputSchemaStrict": true,
42671
+ "outputSchema": {
42672
+ "type": "FieldInformationResultModel",
42673
+ "drops": []
42674
+ },
42675
+ "examples": [
42676
+ "await client.userDefinedFieldListItems.getFieldInfo()"
42677
+ ],
42678
+ "permissions": "unknown",
42679
+ "pagination": {
42680
+ "mode": "none"
42681
+ },
42682
+ "resolution": null,
42683
+ "retry": {
42684
+ "preset": "retry-ffb3a9cb"
42685
+ },
42686
+ "errors": {
42687
+ "set": 0
42688
+ },
42689
+ "metadata": {
42690
+ "purpose": "Get the UserDefinedFieldListItem field catalog (types, picklists, required, maxLength) — the full raw field dump (the largest read of the info trio; compact discovery: operations.fieldCatalog).",
42691
+ "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.",
42692
+ "preferredWhen": null,
42693
+ "related": [
42694
+ "user_defined_field_list_items.getEntityInfo",
42695
+ "user_defined_field_list_items.getUdfInfo"
42696
+ ],
42697
+ "untrustedFields": [
42698
+ "valueForDisplay",
42699
+ "valueForExport"
42700
+ ]
42701
+ },
42702
+ "compact": null,
42703
+ "status": "tested"
42704
+ },
42705
+ {
42706
+ "id": "user_defined_field_list_items.getUdfInfo",
42707
+ "resource": "user_defined_field_list_items",
42708
+ "udfCapable": false,
42709
+ "operation": "getUdfInfo",
42710
+ "kind": "primitive",
42711
+ "endpoint": "GET /V1.0/UserDefinedFieldListItems/entityInformation/userDefinedFields",
42712
+ "effect": "read",
42713
+ "flags": [],
42714
+ "dryRun": false,
42715
+ "envelope": "UserDefinedFieldInformationResultModel",
42716
+ "inputSchema": {},
42717
+ "inputSchemaStrict": true,
42718
+ "outputSchema": {
42719
+ "type": "UserDefinedFieldInformationResultModel",
42720
+ "drops": []
42721
+ },
42722
+ "examples": [
42723
+ "await client.userDefinedFieldListItems.getUdfInfo()"
42724
+ ],
42725
+ "permissions": "unknown",
42726
+ "pagination": {
42727
+ "mode": "none"
42728
+ },
42729
+ "resolution": null,
42730
+ "retry": {
42731
+ "preset": "retry-ffb3a9cb"
42732
+ },
42733
+ "errors": {
42734
+ "set": 0
42735
+ },
42736
+ "metadata": {
42737
+ "purpose": "Get the UserDefinedFieldListItem user-defined-field catalog.",
42738
+ "usage": "Unwraps fields[]; only meaningful where the entity is UDF-capable. (entity is not UDF-capable; catalog is expected empty).",
42739
+ "preferredWhen": null,
42740
+ "related": [
42741
+ "user_defined_field_list_items.getFieldInfo"
42742
+ ],
42743
+ "untrustedFields": [
42744
+ "valueForDisplay",
42745
+ "valueForExport"
42746
+ ]
42747
+ },
42748
+ "compact": null,
42749
+ "status": "tested"
42750
+ },
42751
+ {
42752
+ "id": "user_defined_field_list_items.query",
42753
+ "resource": "user_defined_field_list_items",
42754
+ "udfCapable": false,
42755
+ "operation": "query",
42756
+ "kind": "primitive",
42757
+ "endpoint": "GET|POST /V1.0/UserDefinedFieldListItems/query",
42758
+ "effect": "read",
42759
+ "flags": [],
42760
+ "dryRun": false,
42761
+ "envelope": "QueryActionResult[<Model>,<Entity>]",
42762
+ "inputSchema": {
42763
+ "params": {
42764
+ "type": "object",
42765
+ "required": false,
42766
+ "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.",
42767
+ "properties": [
42768
+ {
42769
+ "name": "filter",
42770
+ "type": "FilterCondition[]",
42771
+ "optional": true
42772
+ },
42773
+ {
42774
+ "name": "limit",
42775
+ "type": "number",
42776
+ "optional": true,
42777
+ "default": 500
42778
+ },
42779
+ {
42780
+ "name": "latest",
42781
+ "type": "number",
42782
+ "optional": true
42783
+ },
42784
+ {
42785
+ "name": "noteChars",
42786
+ "type": "number",
42787
+ "optional": true
42788
+ },
42789
+ {
42790
+ "name": "includeFields",
42791
+ "type": "string[]",
42792
+ "optional": true
42793
+ },
42794
+ {
42795
+ "name": "fieldCheck",
42796
+ "type": "boolean",
42797
+ "optional": true,
42798
+ "default": true
42799
+ },
42800
+ {
42801
+ "name": "names",
42802
+ "type": "boolean",
42803
+ "optional": true
42804
+ },
42805
+ {
42806
+ "name": "via",
42807
+ "type": "\"post\" | \"get\"",
42808
+ "optional": true
42809
+ },
42810
+ {
42811
+ "name": "acknowledgeUnscoped",
42812
+ "type": "boolean",
42813
+ "optional": true
42814
+ },
42815
+ {
42816
+ "name": "walk",
42817
+ "type": "object",
42818
+ "optional": true
42819
+ }
42820
+ ]
42821
+ }
42822
+ },
42823
+ "inputSchemaStrict": true,
42824
+ "outputSchema": {
42825
+ "type": "QueryActionResult[<Model>,<Entity>]",
42826
+ "drops": []
42827
+ },
42828
+ "examples": [
42829
+ "await client.userDefinedFieldListItems.query({ filter: [{ field: 'name', op: 'eq', value: 'example' }], limit: 500 })"
42830
+ ],
42831
+ "permissions": "unknown",
42832
+ "pagination": {
42833
+ "mode": "cursor",
42834
+ "vendorDefault": 10,
42835
+ "vendorMax": 500,
42836
+ "pageGuard": 1000,
42837
+ "queryBounded": {
42838
+ "default": 500,
42839
+ "max": 2500
42840
+ }
42841
+ },
42842
+ "resolution": null,
42843
+ "retry": {
42844
+ "preset": "retry-ffb3a9cb"
42845
+ },
42846
+ "errors": {
42847
+ "set": 4
42848
+ },
42849
+ "metadata": {
42850
+ "purpose": "Query UserDefinedFieldListItem records with a JSON filter.",
42851
+ "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 udfFieldId eq <parentId> where the parent is known). Each returned item carries `udfFieldId` (the parent link), so a global query result can drive the parent-scoped get. 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.",
42852
+ "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).",
42853
+ "related": [
42854
+ "user_defined_field_list_items.get"
42855
+ ],
42856
+ "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.",
42857
+ "untrustedFields": [
42858
+ "valueForDisplay",
42859
+ "valueForExport"
42860
+ ]
42861
+ },
42862
+ "compact": null,
42863
+ "status": "tested"
42864
+ },
42865
+ {
42866
+ "id": "user_defined_field_list_items.update",
42867
+ "resource": "user_defined_field_list_items",
42868
+ "udfCapable": false,
42869
+ "operation": "update",
42870
+ "kind": "primitive",
42871
+ "endpoint": "PUT|PATCH /V1.0/UserDefinedFields/{parentId}/ListItems",
42872
+ "effect": "write",
42873
+ "flags": [
42874
+ "idempotent"
42875
+ ],
42876
+ "dryRun": true,
42877
+ "envelope": "OperationResultModel",
42878
+ "inputSchema": {
42879
+ "parentId": {
42880
+ "type": "string | number",
42881
+ "required": true,
42882
+ "description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
42883
+ },
42884
+ "id": {
42885
+ "type": "string | number",
42886
+ "required": true,
42887
+ "description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
42888
+ },
42889
+ "data": {
42890
+ "type": "object",
42891
+ "required": true,
42892
+ "description": "The record payload (vendor model fields)."
42893
+ }
42894
+ },
42895
+ "inputSchemaStrict": true,
42896
+ "outputSchema": {
42897
+ "type": "OperationResultModel",
42898
+ "drops": []
42899
+ },
42900
+ "examples": [
42901
+ "await client.userDefinedFieldListItems.update('example-value', 'example-value', { name: 'example' }, { dryRun: true })"
42902
+ ],
42903
+ "permissions": "unknown",
42904
+ "pagination": {
42905
+ "mode": "none"
42906
+ },
42907
+ "resolution": null,
42908
+ "retry": {
42909
+ "preset": "retry-85897a3a"
42910
+ },
42911
+ "errors": {
42912
+ "set": 1
42913
+ },
42914
+ "metadata": {
42915
+ "purpose": "Update a UDF list item.",
42916
+ "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). Stale check via lastModifiedDate where present. Parent-scoped: parentId + id. `valueForDisplay`/`valueForExport` stay required and unique; a list item that is the UDF's `defaultValue` has its `valueForDisplay` rename-locked (move the definition's `defaultValue` to another item first); toggling `isActive` is the only removal (no vendor delete).",
42917
+ "preferredWhen": "Preferred over create or delete when the record exists and only some fields change.",
42918
+ "related": [
42919
+ "user_defined_field_list_items.get"
42920
+ ],
42921
+ "untrustedFields": [
42922
+ "valueForDisplay",
42923
+ "valueForExport"
42924
+ ],
42925
+ "accountWide": true
42926
+ },
42927
+ "compact": null,
42928
+ "status": "tested"
42929
+ },
41908
42930
  {
41909
42931
  "id": "version_information.get",
41910
42932
  "resource": "version_information",
@@ -42037,8 +43059,8 @@ const CAPABILITY_DATA = {
42037
43059
  ]
42038
43060
  },
42039
43061
  "A": {
42040
- "planHash": "95323eaa92fca1ba1541721c6f34ce671118736aca889ea432156d87a8a8ecd8",
42041
- "builtAt": "2026-11-08T03:49:04.955Z",
43062
+ "planHash": "6ea020dd5a389c0930923a23c1074b96e4280391b1d4fe6fca869e0effbf3a1a",
43063
+ "builtAt": "2026-11-11T11:15:40.016Z",
42042
43064
  "records": [
42043
43065
  {
42044
43066
  "id": "companies.count",
@@ -81446,8 +82468,8 @@ const CAPABILITY_DATA = {
81446
82468
  ]
81447
82469
  },
81448
82470
  "operations": {
81449
- "planHash": "95323eaa92fca1ba1541721c6f34ce671118736aca889ea432156d87a8a8ecd8",
81450
- "builtAt": "2026-11-08T03:49:04.955Z",
82471
+ "planHash": "6ea020dd5a389c0930923a23c1074b96e4280391b1d4fe6fca869e0effbf3a1a",
82472
+ "builtAt": "2026-11-11T11:15:40.016Z",
81451
82473
  "records": [
81452
82474
  {
81453
82475
  "id": "operations.aggregate",
@@ -82397,6 +83419,7 @@ const CAPABILITY_DATA = {
82397
83419
  "manufacturerServiceProvider",
82398
83420
  "market",
82399
83421
  "memo",
83422
+ "mergeVariableName",
82400
83423
  "middleInitial",
82401
83424
  "middleName",
82402
83425
  "name",
@@ -82435,6 +83458,8 @@ const CAPABILITY_DATA = {
82435
83458
  "title",
82436
83459
  "travelAvailabilityPct",
82437
83460
  "userName",
83461
+ "valueForDisplay",
83462
+ "valueForExport",
82438
83463
  "winReasonDetail"
82439
83464
  ]
82440
83465
  },
@@ -82865,6 +83890,7 @@ const CAPABILITY_DATA = {
82865
83890
  "manufacturerServiceProvider",
82866
83891
  "market",
82867
83892
  "memo",
83893
+ "mergeVariableName",
82868
83894
  "middleInitial",
82869
83895
  "middleName",
82870
83896
  "name",
@@ -82903,6 +83929,8 @@ const CAPABILITY_DATA = {
82903
83929
  "title",
82904
83930
  "travelAvailabilityPct",
82905
83931
  "userName",
83932
+ "valueForDisplay",
83933
+ "valueForExport",
82906
83934
  "winReasonDetail"
82907
83935
  ]
82908
83936
  },